/* ==================== MERLIN — WHITE PREMIUM ==================== */
    :root {
      --bg-primary: #ffffff;
      --bg-secondary: #f8f9fa;
      --bg-tertiary: #f0f2f5;
      --bg-card: #ffffff;
      --border: rgba(0, 0, 0, 0.08);
      --border-hover: #2a5f7a;
      --text-primary: #1a1a2e;
      --text-secondary: #4a5568;
      --text-muted: #868e96;
      --accent: #2a5f7a;
      --accent-light: #3d8fb5;
      --accent-bg: rgba(42, 95, 122, 0.08);
      --accent-gradient: linear-gradient(135deg, #2a5f7a, #3d8fb5);
      --success: #3E8A6E;
      --warning: #C8A84E;
      --danger: #B85640;
      --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
      --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
      --dock-bg: rgba(255, 255, 255, 0.95);
      --alfred: #C8A84E;
      /* Sidebar strip — deep navy */
      --sidebar-bg: #080e18;
      --sidebar-panel-bg: #132a42;
      --sidebar-border: rgba(91, 168, 204, 0.1);
      --sidebar-icon: rgba(255, 255, 255, 0.4);
      --sidebar-icon-hover: rgba(255, 255, 255, 0.8);
      --sidebar-text: #F0EDE6;
      --sidebar-muted: rgba(255, 255, 255, 0.35);
    }

    * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
    a, button, [role="button"], .sidebar-icon-item, .sidebar-country, .sidebar-region-header, .filter-btn, .view-btn, .cta-analysis { touch-action: manipulation; }
    html {
      scroll-behavior: smooth;
      -webkit-text-size-adjust: 100%;
      text-size-adjust: 100%;
    }

    /* Reduced motion — accessibility */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
    }

    /* ==================== ENTRANCE ANIMATIONS ==================== */
    @keyframes fadeSlideUp {
      from { opacity: 0; transform: translateY(24px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .hero {
      animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .stats-bar {
      animation: fadeSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
    }

    .controls {
      animation: fadeSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
    }

    .stat:nth-child(1) { animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both; }
    .stat:nth-child(2) { animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both; }
    .stat:nth-child(3) { animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both; }
    .stat:nth-child(4) { animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both; }

    /* Filters + legend stagger after controls */
    .filters { animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both; }
    .view-toggle { animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both; }
    .legend { animation: fadeSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both; }

    /* ==================== LUCIDE ICONS ==================== */
    [data-lucide] {
      width: 18px;
      height: 18px;
      stroke-width: 1.5;
      flex-shrink: 0;
      display: inline-block;
      vertical-align: middle;
    }

    body {
      font-family: 'Riviera Nights', 'Outfit', Helvetica, Arial, -apple-system, sans-serif;
      background: var(--bg-primary);
      color: var(--text-primary);
      line-height: 1.6;
      padding-bottom: 80px;
      padding-left: 56px;
      transition: padding-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      overscroll-behavior: none;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    /* Hide everything until JS init completes — prevents any flash on reload */
    html.lead-passed body:not(.app-ready) { opacity: 0; }
    html.lead-passed body.app-ready { animation: appFadeIn 0.3s ease both; }
    @keyframes appFadeIn { from { opacity: 0; } to { opacity: 1; } }
    /* Hide default hero for returning users until JS sets correct state */
    html.lead-passed body:not(.app-ready) #heroDefault { display: none; }

    /* Sidebar expanded (no panel) */
    body.sidebar-expanded { padding-left: 220px; }

    /* Panel open (sidebar collapsed) */
    body.panel-open { padding-left: 276px; }

    /* Both open */
    body.sidebar-expanded.panel-open { padding-left: 440px; }

    /* ==================== NAVIGATION ==================== */
    nav.top-nav {
      position: sticky;
      top: 0;
      z-index: 1000;
      padding: 0 48px;
      height: 48px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(248, 249, 250, 0.85);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
    }

    .logo {
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--text-primary);
    }

    .nav-controls {
      display: flex;
      align-items: center;
      gap: 32px;
    }

    .nav-links {
      display: flex;
      gap: 24px;
    }

    .nav-link {
      font-size: 13px;
      font-weight: 400;
      color: var(--text-muted);
      text-decoration: none;
      cursor: pointer;
      transition: color 0.2s;
      padding: 6px 0;
    }

    .nav-link:hover, .nav-link.active {
      color: var(--text-primary);
    }

    /* ==================== HERO ==================== */
    .hero {
      padding: 48px 48px 40px;
      background: var(--bg-secondary);
      border-bottom: 1px solid var(--border);
      transition: padding 0.2s ease;
    }

    /* Default + Frameworks shared styles */
    .hero-default h1, .hero-default-h1 {
      font-size: clamp(32px, 4vw, 48px);
      font-weight: 400;
      letter-spacing: -0.01em;
      margin-bottom: 16px;
    }

    .hero-default p, .hero-default-p {
      font-size: 15px;
      font-weight: 300;
      color: var(--text-secondary);
      max-width: 620px;
      line-height: 1.75;
      letter-spacing: 0.01em;
    }

    .hero-cta {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: 28px;
      padding: 11px 22px;
      background: var(--accent);
      color: #fff;
      font-size: 13px;
      font-weight: 500;
      letter-spacing: 0.02em;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
    }
    .hero-cta:hover {
      background: var(--accent-light);
      transform: translateY(-1px);
      box-shadow: 0 4px 16px rgba(42, 95, 122, 0.25);
    }
    .hero-cta [data-lucide] { width: 15px; height: 15px; }

    .hero-frameworks {
      animation: heroFadeIn 0.2s ease;
    }

    /* Country briefing state */
    .hero-country {
      animation: heroFadeIn 0.25s ease;
    }

    @keyframes heroFadeIn {
      from { opacity: 0; transform: translateY(6px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .hero-country-header {
      display: flex;
      align-items: baseline;
      gap: 14px;
      margin-bottom: 28px;
    }

    .hero-country-flag {
      font-size: 32px;
      line-height: 1;
    }

    .hero-country-name {
      font-size: clamp(28px, 3.5vw, 44px);
      font-weight: 300;
      letter-spacing: -0.02em;
      color: var(--text-primary);
    }

    .hero-country-breadcrumb {
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 8px;
    }

    .hero-country-fields {
      display: flex;
      gap: 0;
      margin-bottom: 20px;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }

    .hero-country-field {
      flex: 1;
      padding: 16px 24px 16px 0;
      display: flex;
      flex-direction: column;
      gap: 5px;
      border-right: 1px solid var(--border);
    }

    .hero-country-field:last-child {
      border-right: none;
      padding-left: 24px;
    }

    .hero-country-field:first-child {
      padding-left: 0;
    }

    .hero-field-label {
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    .hero-field-value {
      font-size: 13px;
      font-weight: 400;
      color: var(--text-primary);
      line-height: 1.5;
    }

    .hero-field-value.none {
      color: var(--text-muted);
      font-style: italic;
    }

    .hero-country-summary {
      font-size: 14px;
      font-weight: 300;
      color: var(--text-secondary);
      line-height: 1.75;
      max-width: 820px;
    }

    /* ==================== STATS ==================== */
    .stats-bar {
      display: flex;
      gap: 48px;
      padding: 32px 48px;
      background: var(--bg-secondary);
    }

    .stat {
      display: flex;
      align-items: baseline;
      gap: 8px;
    }

    .stat-value {
      font-size: 28px;
      font-weight: 400;
    }

    .stat-label {
      font-size: 11px;
      font-weight: 400;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    /* ==================== CONTROLS ==================== */
    .controls {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 48px;
      background: var(--bg-secondary);
      border-bottom: 1px solid var(--border);
      flex-wrap: wrap;
      gap: 16px;
    }

    .view-toggle {
      display: flex;
      gap: 8px;
    }

    .view-btn {
      padding: 10px 20px;
      font-family: inherit;
      font-size: 13px;
      font-weight: 400;
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--text-muted);
      cursor: pointer;
      transition: all 0.2s;
    }

    .view-btn:hover {
      border-color: var(--text-muted);
      color: var(--text-secondary);
    }

    .view-btn.active {
      background: var(--text-primary);
      border-color: var(--text-primary);
      color: var(--bg-secondary);
    }

    .filters {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .filter-btn {
      padding: 8px 18px;
      font-family: inherit;
      font-size: 12px;
      font-weight: 400;
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 20px;
      color: var(--text-muted);
      cursor: pointer;
      transition: all 0.2s;
    }

    .filter-btn:hover {
      border-color: var(--text-muted);
    }

    .filter-btn.active {
      background: var(--text-primary);
      border-color: var(--text-primary);
      color: var(--bg-secondary);
    }

    /* ==================== MAIN CONTENT ==================== */
    main {
      padding: 40px 48px;
      max-width: 1600px;
      margin: 0 auto;
    }

    /* ==================== LEGEND ==================== */
    .legend {
      display: flex;
      gap: 24px;
      padding: 20px 0;
      margin-bottom: 24px;
    }

    .legend-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: var(--text-muted);
    }

    .legend-dot {
      width: 12px;
      height: 12px;
      border-radius: 4px;
    }

    /* ==================== MATRIX VIEW ==================== */
    .matrix-container {
      overflow-x: auto;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: var(--bg-secondary);
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    .matrix-container::-webkit-scrollbar { display: none; }

    .matrix {
      width: 100%;
      border-collapse: collapse;
      font-size: 12px;
    }

    .matrix th {
      padding: 16px 12px;
      font-weight: 400;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      background: var(--bg-tertiary);
      color: var(--text-muted);
      border-bottom: 1px solid var(--border);
      white-space: nowrap;
      font-size: 10px;
    }

    .matrix th:first-child {
      text-align: left;
      padding-left: 24px;
      min-width: 300px;
      position: sticky;
      left: 0;
      z-index: 10;
      background: var(--bg-tertiary);
    }

    .matrix td {
      padding: 14px 12px;
      text-align: center;
      border-bottom: 1px solid var(--border);
    }

    .matrix tr:hover td { background: var(--bg-tertiary); }

    .matrix td:first-child {
      text-align: left;
      padding-left: 24px;
      font-weight: 400;
      position: sticky;
      left: 0;
      background: var(--bg-secondary);
      z-index: 5;
    }

    .matrix tr:hover td:first-child { background: var(--bg-tertiary); }

    .matrix .cell {
      width: 24px;
      height: 24px;
      border-radius: 6px;
      margin: 0 auto;
      transition: transform 0.2s;
    }

    .matrix .cell:hover { transform: scale(1.2); }

    .cell.full { background: #53BD6F; }
    .cell.partial { background: #FFBE0F; }
    .cell.none { background: #F06C6C; opacity: 0.8; }

    .matrix .tag {
      display: inline-block;
      padding: 3px 8px;
      font-size: 9px;
      font-weight: 500;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      border-radius: 4px;
      margin-left: 10px;
    }

    .tag.new { background: rgba(61, 143, 181, 0.12); color: #3d8fb5; }
    .tag.updated { background: rgba(42, 95, 122, 0.12); color: #2a5f7a; }
    .tag.pending { background: rgba(134, 142, 150, 0.12); color: #868e96; }

    /* ==================== CARDS VIEW ==================== */
    .cards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
      gap: 24px;
    }

    .card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 28px;
      cursor: default;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      display: flex;
      flex-direction: column;
    }

    .card:hover {
      border-color: var(--border-hover);
      box-shadow: var(--shadow-hover);
      transform: translateY(-2px);
      transition-delay: 60ms;
    }

    .card-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 16px;
    }

    .card-category {
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 5px 12px;
      border-radius: 6px;
    }

    .card-category.security { background: rgba(42, 95, 122, 0.1); color: #2a5f7a; }
    .card-category.privacy { background: rgba(107, 130, 153, 0.1); color: #4a6d8c; }
    .card-category.financial { background: rgba(61, 143, 181, 0.1); color: #3d8fb5; }
    .card-category.government { background: rgba(42, 95, 122, 0.1); color: #2a5f7a; }
    .card-category.health { background: rgba(62, 138, 110, 0.1); color: #2d7a5e; }
    .card-category.energy { background: rgba(200, 168, 78, 0.1); color: #a08030; }
    .card-category.telecom { background: rgba(91, 168, 204, 0.1); color: #3d8fb5; }
    .card-category.fintech { background: rgba(42, 109, 158, 0.1); color: #2a6d9e; }

    .card-tag {
      font-size: 9px;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    .card-tag.new { color: #3d8fb5; }
    .card-tag.updated { color: #2a5f7a; }
    .card-tag.pending { color: #868e96; }

    .card-title {
      font-size: 18px;
      font-weight: 500;
      letter-spacing: -0.01em;
      margin-bottom: 12px;
    }

    .card-desc {
      font-size: 14px;
      font-weight: 300;
      color: var(--text-secondary);
      line-height: 1.75;
      letter-spacing: 0.01em;
      flex-grow: 1;
    }

    .card-footer {
      margin-top: 24px;
      padding-top: 16px;
      border-top: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .card-scope {
      font-size: 12px;
      color: var(--text-muted);
    }

    .card-year {
      font-size: 11px;
      font-weight: 500;
      color: var(--text-muted);
      background: var(--bg-tertiary);
      padding: 4px 10px;
      border-radius: 6px;
      border: 1px solid var(--border);
    }

    /* ==================== EMPTY STATE ==================== */
    .empty-state {
      text-align: center;
      padding: 80px 40px;
      background: var(--bg-card);
      border: 1px dashed var(--border);
      border-radius: 12px;
    }

    .empty-state [data-lucide] {
      width: 48px; height: 48px;
      color: var(--text-muted);
      opacity: 0.4;
      margin-bottom: 16px;
    }

    .empty-state h3 {
      font-size: 18px;
      font-weight: 400;
      margin-bottom: 8px;
    }

    .empty-state p {
      font-size: 14px;
      font-weight: 300;
      color: var(--text-muted);
      max-width: 400px;
      margin: 0 auto;
    }

    /* ==================== SIDEBAR ==================== */

    .sidebar {
      position: fixed;
      left: 0;
      top: 0;
      bottom: 0;
      z-index: 9999;
      width: 56px;
      background: var(--sidebar-bg);
      border-right: 1px solid var(--sidebar-border);
      box-shadow: 2px 0 16px rgba(0,0,0,0.25);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    body.sidebar-expanded .sidebar {
      width: 220px;
    }

    /* Hover expand — sidebar only (no body shift), disabled when panel is open */
    @media (hover: hover) and (min-width: 769px) {
      body:not(.panel-open) .sidebar:hover {
        width: 220px;
      }
      body:not(.panel-open) .sidebar:hover .sidebar-icon-label {
        opacity: 1;
      }
      body:not(.panel-open) .sidebar:hover .sidebar-logo {
        opacity: 1;
      }
      body:not(.panel-open) .sidebar:hover .alfred-badge {
        opacity: 1;
      }
      body:not(.panel-open) .sidebar:hover .sidebar-toggle [data-lucide] {
        transform: rotate(180deg);
      }
    }

    /* Expand toggle button — sits at top of sidebar */
    .sidebar-toggle {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 56px;
      height: 48px;
      flex-shrink: 0;
      cursor: pointer;
      color: var(--sidebar-icon);
      border-bottom: 1px solid var(--sidebar-border);
      transition: color 0.15s ease;
    }

    .sidebar-toggle:hover { color: var(--sidebar-text); }

    .sidebar-toggle [data-lucide] {
      width: 20px; height: 20px;
      transition: transform 0.25s ease;
    }

    body.sidebar-expanded .sidebar-toggle [data-lucide] {
      transform: rotate(180deg);
    }

    .sidebar-logo {
      padding: 8px 16px;
      border-bottom: 1px solid var(--sidebar-border);
      opacity: 0;
      width: 220px;
      transition: opacity 0.15s ease;
      overflow: hidden;
      white-space: nowrap;
    }

    body.sidebar-expanded .sidebar-logo {
      opacity: 1;
    }

    .sidebar-logo-name {
      font-size: 13px;
      font-weight: 500;
      color: var(--sidebar-text);
      letter-spacing: 0.04em;
    }

    .sidebar-logo-sub {
      font-size: 10px;
      color: var(--sidebar-muted);
      font-weight: 300;
      margin-top: 1px;
    }

    /* Nav items */
    .sidebar-nav {
      flex: 1;
      display: flex;
      flex-direction: column;
      padding: 6px 8px;
      overflow-y: auto;
      overflow-x: hidden;
      gap: 1px;
    }

    .sidebar-nav::-webkit-scrollbar { width: 0; }

    .sidebar-icon-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 8px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.15s ease;
      color: var(--sidebar-icon);
      position: relative;
      user-select: none;
      white-space: nowrap;
      overflow: hidden;
    }

    .sidebar-icon-item:hover {
      background: rgba(240, 237, 230, 0.07);
      color: var(--sidebar-icon-hover);
    }

    .sidebar-icon-item.active {
      background: var(--accent);
      color: #fff;
    }

    .sidebar-icon-item.active:hover {
      background: var(--accent-light);
    }

    .sidebar-icon-item [data-lucide] {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
    }

    .sidebar-icon-label {
      font-size: 13px;
      font-weight: 400;
      opacity: 0;
      transition: opacity 0.15s ease 0.05s;
    }

    body.sidebar-expanded .sidebar-icon-label {
      opacity: 1;
    }

    /* Alfred special item */
    .sidebar-icon-item.alfred-item { color: var(--alfred); }
    .sidebar-icon-item.alfred-item:hover {
      background: rgba(200, 168, 78, 0.10);
      color: var(--alfred);
    }

    .alfred-badge {
      margin-left: auto;
      font-size: 9px;
      font-weight: 600;
      letter-spacing: 0.06em;
      background: rgba(200, 168, 78, 0.18);
      color: var(--alfred);
      border-radius: 4px;
      padding: 2px 5px;
      opacity: 0;
      transition: opacity 0.15s ease;
    }

    body.sidebar-expanded .alfred-badge { opacity: 1; }

    .sidebar-icon-divider {
      height: 1px;
      background: var(--sidebar-border);
      margin: 4px 4px;
    }

    /* Jurisdiction panel */
    .sidebar-panel {
      position: fixed;
      left: 56px;
      top: 0;
      bottom: 0;
      width: 220px;
      background: linear-gradient(180deg, #0f2035 0%, #162d48 50%, #1a3a56 100%);
      border-right: 1px solid rgba(91, 168, 204, 0.12);
      display: flex;
      flex-direction: column;
      z-index: 9998;
      transform: translateX(-220px);
      transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
      opacity: 1;
    }

    body.panel-closed .sidebar-panel {
      transform: translateX(-220px);
      opacity: 0;
      pointer-events: none;
      transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    }

    body.panel-open .sidebar-panel {
      transform: translateX(0);
      opacity: 1;
      pointer-events: auto;
    }

    /* Panel shifts right when sidebar is expanded */
    body.sidebar-expanded .sidebar-panel {
      left: 220px;
    }

    .sidebar-panel-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 12px;
      height: 48px;
      flex-shrink: 0;
      border-bottom: 1px solid var(--sidebar-border);
    }

    .sidebar-panel-title {
      font-size: 14px;
      font-weight: 500;
      color: var(--sidebar-text);
      letter-spacing: 0.01em;
    }

    .panel-collapse-btn {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background: rgba(240,237,230,0.06);
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--sidebar-muted);
      transition: all 0.15s ease;
    }

    .panel-collapse-btn:hover {
      background: rgba(240,237,230,0.12);
      color: var(--sidebar-icon-hover);
    }

    .panel-collapse-btn [data-lucide] { width: 16px; height: 16px }

    .sidebar-search {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 7px 12px;
      background: rgba(0, 0, 0, 0.25);
      border: 1px solid rgba(91, 168, 204, 0.12);
      border-radius: 20px;
      margin: 10px 10px 4px;
    }

    .sidebar-search [data-lucide] {
      width: 15px; height: 15px;
      color: var(--sidebar-muted);
    }

    .sidebar-search input {
      flex: 1;
      background: transparent;
      border: none;
      outline: none;
      font-family: 'Riviera Nights', 'Outfit', Helvetica, Arial, -apple-system, sans-serif;
      font-size: 16px; /* prevents iOS auto-zoom */
      color: var(--sidebar-text);
    }

    .sidebar-search input::placeholder { color: var(--sidebar-muted); }

    /* Region groups */
    .sidebar-regions {
      padding: 8px 0;
      overflow-y: auto;
      flex: 1;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
    }

    .sidebar-regions::-webkit-scrollbar { width: 3px; }
    .sidebar-regions::-webkit-scrollbar-track { background: transparent; }
    .sidebar-regions::-webkit-scrollbar-thumb { background: var(--sidebar-border); border-radius: 2px; }

    .sidebar-region {
      border-bottom: 1px solid rgba(91, 168, 204, 0.08);
    }

    .sidebar-region:last-child { border-bottom: none; }

    .sidebar-region-header {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 12px;
      cursor: pointer;
      transition: all 0.15s ease;
      color: var(--sidebar-muted);
      user-select: none;
    }

    .sidebar-region-header:hover {
      background: rgba(240,237,230,0.03);
      color: var(--sidebar-icon-hover);
    }

    .sidebar-region-header .chevron {
      width: 14px;
      height: 14px;
      transition: transform 0.2s ease;
      flex-shrink: 0;
    }

    .sidebar-region.open .sidebar-region-header .chevron {
      transform: rotate(90deg);
    }

    .sidebar-region.open .sidebar-region-header {
      color: var(--sidebar-text);
    }

    .sidebar-region-label {
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      flex: 1;
      white-space: nowrap;
    }

    .sidebar-region-count {
      padding: 2px 6px;
      background: rgba(91, 168, 204, 0.15);
      color: #7ec0dc;
      font-size: 10px;
      font-weight: 500;
      border-radius: 4px;
    }

    .sidebar-region-items {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
    }

    .sidebar-region.open .sidebar-region-items {
      max-height: 800px;
    }

    .sidebar-country {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 7px 12px 7px 22px;
      cursor: pointer;
      transition: all 0.15s ease;
      color: var(--sidebar-icon-hover);
    }

    .sidebar-country:hover {
      background: rgba(240,237,230,0.06);
      color: var(--sidebar-text);
    }

    .sidebar-country.active {
      background: rgba(91, 168, 204, 0.15);
      color: var(--sidebar-text);
    }

    .sidebar-country.active .country-name {
      color: #7ec0dc;
      font-weight: 500;
    }

    .sidebar-country .flag {
      font-size: 14px;
      line-height: 1;
      flex-shrink: 0;
    }

    .sidebar-country .country-name {
      font-size: 13px;
      font-weight: 400;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex: 1;
      min-width: 0;
    }

    .sidebar-country .fw-count {
      margin-left: auto;
      padding: 2px 5px;
      background: rgba(255, 255, 255, 0.06);
      color: var(--sidebar-muted);
      font-size: 10px;
      font-weight: 500;
      border-radius: 4px;
      flex-shrink: 0;
    }

    .sidebar-country.active .fw-count {
      background: rgba(91, 168, 204, 0.25);
      color: #7ec0dc;
    }

    /* ==================== SEARCH MODAL ==================== */
    .search-modal {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.5);
      backdrop-filter: blur(4px);
      z-index: 10000;
      display: none;
      align-items: flex-start;
      justify-content: center;
      padding-top: 15vh;
    }

    .search-modal.active { display: flex; }

    .search-box {
      width: 90%;
      max-width: 600px;
      background: var(--bg-secondary);
      border-radius: 16px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
      overflow: hidden;
      animation: slideDown 0.2s ease;
    }

    @keyframes slideDown {
      from { opacity: 0; transform: translateY(-20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .search-input-wrap {
      display: flex;
      align-items: center;
      padding: 16px 20px;
      border-bottom: 1px solid var(--border);
      gap: 12px;
    }

    .search-input-wrap [data-lucide] {
      color: var(--text-muted);
      width: 22px; height: 22px;
    }

    .search-input {
      flex: 1;
      border: none;
      background: transparent;
      font-family: inherit;
      font-size: 16px;
      color: var(--text-primary);
      outline: none;
    }

    .search-input::placeholder { color: var(--text-muted); }

    .search-shortcut {
      font-size: 11px;
      padding: 4px 8px;
      background: var(--bg-tertiary);
      border-radius: 4px;
      color: var(--text-muted);
    }

    .search-results {
      max-height: 400px;
      overflow-y: auto;
    }

    .search-result {
      display: flex;
      align-items: center;
      padding: 12px 20px;
      gap: 12px;
      cursor: pointer;
      transition: background 0.15s;
    }

    .search-result:hover { background: var(--bg-tertiary); }

    .search-result [data-lucide] {
      width: 18px; height: 18px;
      color: var(--text-muted);
    }

    .search-result-content { flex: 1; }

    .search-result-title {
      font-size: 14px;
      font-weight: 500;
      color: var(--text-primary);
    }

    .search-result-desc {
      font-size: 12px;
      color: var(--text-muted);
    }

    .search-result-tag {
      font-size: 10px;
      padding: 3px 8px;
      background: var(--accent-bg);
      color: var(--accent);
      border-radius: 4px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .search-empty {
      padding: 40px 20px;
      text-align: center;
      color: var(--text-muted);
    }

    /* ==================== EXPORT MODAL ==================== */
    .export-modal, .info-modal {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.5);
      backdrop-filter: blur(4px);
      z-index: 10000;
      display: none;
      align-items: center;
      justify-content: center;
    }

    .export-modal.active, .info-modal.active { display: flex; }

    .export-box {
      width: 90%;
      max-width: 400px;
      background: var(--bg-secondary);
      border-radius: 16px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
      padding: 28px;
      animation: slideDown 0.2s ease;
    }

    .export-title {
      font-size: 18px;
      font-weight: 500;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .export-title [data-lucide] { color: var(--accent); }

    .export-options {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .export-option {
      display: flex;
      align-items: center;
      padding: 14px 16px;
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.2s;
      gap: 12px;
    }

    .export-option:hover {
      border-color: var(--accent);
      background: var(--accent-bg);
    }

    .export-option [data-lucide] {
      width: 22px; height: 22px;
      color: var(--accent);
    }

    .export-option-text { flex: 1; }

    .export-option-title {
      font-size: 14px;
      font-weight: 500;
    }

    .export-option-desc {
      font-size: 12px;
      color: var(--text-muted);
    }

    .modal-close {
      margin-top: 16px;
      width: 100%;
      padding: 12px;
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 8px;
      font-family: inherit;
      font-size: 13px;
      color: var(--text-muted);
      cursor: pointer;
      transition: all 0.2s;
    }

    .modal-close:hover {
      background: var(--bg-tertiary);
      color: var(--text-primary);
    }

    /* ==================== INFO MODAL ==================== */
    .info-box {
      width: 90%;
      max-width: 480px;
      background: var(--bg-secondary);
      border-radius: 16px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
      padding: 32px;
      animation: slideDown 0.2s ease;
      text-align: center;
    }

    .info-logo {
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 16px;
    }

    .info-title {
      font-size: 24px;
      font-weight: 400;
      margin-bottom: 12px;
    }

    .info-desc {
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.7;
      margin-bottom: 24px;
    }

    .info-stats {
      display: flex;
      justify-content: center;
      gap: 32px;
      padding: 20px 0;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      margin-bottom: 24px;
    }

    .info-stat-value {
      font-size: 28px;
      font-weight: 400;
      color: var(--accent);
    }

    .info-stat-label {
      font-size: 11px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .info-author {
      font-size: 12px;
      color: var(--text-muted);
    }

    .info-close {
      margin-top: 20px;
      padding: 12px 32px;
      background: var(--accent);
      border: none;
      border-radius: 8px;
      font-family: inherit;
      font-size: 13px;
      color: white;
      cursor: pointer;
      transition: all 0.2s;
    }

    .info-close:hover { background: var(--accent-light); }

    /* ==================== TOAST ==================== */
    .toast {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      padding: 12px 20px;
      background: var(--text-primary);
      color: var(--bg-secondary);
      border-radius: 10px;
      font-size: 13px;
      display: flex;
      align-items: center;
      gap: 10px;
      opacity: 0;
      pointer-events: none;
      transition: all 0.3s;
      z-index: 10001;
    }

    .toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    .toast [data-lucide] { width: 18px; height: 18px }
    .toast.success { background: var(--accent); }
    .toast.warning { background: var(--warning); }
    .toast.error { background: var(--danger); }

    /* ==================== LEAD CAPTURE — SPLIT LAYOUT ==================== */
    .lead-overlay {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: linear-gradient(135deg, #0f3d5c, #1a4a6e, #2a6d9e);
      z-index: 20000;
      display: flex;
      animation: fadeIn 0.4s ease;
      overflow-y: auto;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    .lead-overlay::-webkit-scrollbar { display: none; }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .lead-overlay.hidden { display: none; }
    /* Instant hide if user already passed lead gate (prevents flash) */
    html.lead-passed .lead-overlay { display: none; }

    /* Decorative SVG background */
    .lead-overlay::before {
      content: '';
      position: absolute;
      top: 0; right: 0;
      width: 60%;
      height: 100%;
      background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(255,255,255,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 90% 80%, rgba(255,255,255,0.04) 0%, transparent 50%);
      pointer-events: none;
    }

    .lead-split {
      display: flex;
      width: 100%;
      min-height: 100vh;
    }

    /* LEFT SIDE — Value Props */
    .lead-left {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 60px 48px 60px 64px;
      color: white;
      position: relative;
      z-index: 1;
    }

    .lead-left-logo {
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      opacity: 0.7;
      margin-bottom: 32px;
    }

    .lead-category-label {
      display: inline-block;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.5);
      padding: 4px 0;
      margin-bottom: 20px;
    }

    .lead-left h1 {
      font-size: clamp(28px, 3.5vw, 42px);
      font-weight: 400;
      letter-spacing: -0.03em;
      line-height: 1.2;
      margin-bottom: 24px;
    }

    .lead-left > p {
      font-size: 15px;
      font-weight: 300;
      opacity: 0.85;
      line-height: 1.7;
      max-width: 440px;
      margin-bottom: 36px;
    }

    .lead-features {
      display: flex;
      flex-direction: column;
      gap: 20px;
      margin-bottom: 40px;
    }

    .lead-feature {
      display: flex;
      gap: 14px;
      align-items: flex-start;
    }

    .lead-feature-icon {
      width: 36px;
      height: 36px;
      min-width: 36px;
      border-radius: 10px;
      background: rgba(255,255,255,0.12);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .lead-feature-icon [data-lucide] {
      width: 18px; height: 18px;
      color: rgba(255,255,255,0.9);
    }

    .lead-feature h4 {
      font-size: 14px;
      font-weight: 500;
      margin-bottom: 3px;
    }

    .lead-feature p {
      font-size: 13px;
      font-weight: 300;
      opacity: 0.7;
      line-height: 1.5;
    }

    .lead-steps {
      display: flex;
      gap: 0;
      padding: 20px 0;
      border-top: 1px solid rgba(255,255,255,0.12);
    }

    .lead-step {
      flex: 1;
      padding-left: 16px;
      border-left: 2px solid rgba(255,255,255,0.2);
    }

    .lead-step:first-child {
      border-left-color: rgba(255,255,255,0.8);
    }

    .lead-step-num {
      font-size: 11px;
      font-weight: 600;
      opacity: 0.5;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin-bottom: 2px;
    }

    .lead-step:first-child .lead-step-num { opacity: 0.9; }

    .lead-step-text {
      font-size: 12px;
      font-weight: 300;
      opacity: 0.7;
    }

    .lead-step:first-child .lead-step-text { opacity: 0.9; }

    /* RIGHT SIDE — Form Card */
    .lead-right {
      flex: 0 0 480px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 40px;
      position: relative;
      z-index: 1;
    }

    .lead-box {
      width: 100%;
      max-width: 420px;
      background: white;
      border-radius: 24px;
      box-shadow: 0 24px 80px rgba(0,0,0,0.2);
      padding: 40px 32px;
      animation: slideUp 0.5s ease;
      text-align: center;
    }

    @keyframes slideUp {
      from { opacity: 0; transform: translateY(30px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .lead-box-icon {
      width: 48px;
      height: 48px;
      border-radius: 14px;
      background: var(--accent-gradient);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
    }

    .lead-box-icon [data-lucide] {
      width: 24px; height: 24px;
      color: white;
    }

    .lead-title {
      font-size: 22px;
      font-weight: 500;
      letter-spacing: -0.02em;
      margin-bottom: 6px;
      color: #1a1a2e;
    }

    .lead-subtitle {
      font-size: 13px;
      color: #868e96;
      margin-bottom: 24px;
      font-weight: 300;
    }

    .lead-stats {
      display: none;
    }

    .lead-form {
      display: flex;
      flex-direction: column;
      gap: 12px;
      text-align: left;
    }

    .lead-field {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .lead-field label {
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: #868e96;
    }

    .lead-field input,
    .lead-field select {
      padding: 12px 14px;
      background: #f5f7fa;
      border: 1px solid #e9ecef;
      border-radius: 10px;
      font-family: inherit;
      font-size: 16px; /* >= 16px prevents iOS auto-zoom on focus */
      color: #1a1a2e;
      outline: none;
      transition: border-color 0.2s;
      width: 100%;
    }

    .lead-field input:focus,
    .lead-field select:focus {
      border-color: var(--accent);
      background: white;
    }

    .lead-field input::placeholder {
      color: #adb5bd;
    }

    .lead-submit {
      margin-top: 8px;
      padding: 14px;
      background: var(--accent-gradient);
      border: none;
      border-radius: 12px;
      font-family: inherit;
      font-size: 14px;
      font-weight: 500;
      color: white;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .lead-submit:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(15, 61, 92, 0.4);
    }

    .lead-submit:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .lead-privacy {
      font-size: 11px;
      color: #adb5bd;
      text-align: center;
      margin-top: 4px;
    }

    /* Lead overlay responsive */
    @media (max-width: 960px) {
      .lead-split { flex-direction: column; }
      .lead-left { padding: 40px 32px 24px; }
      .lead-right { flex: none; padding: 0 24px 40px; }
      .lead-features { gap: 16px; }
      .lead-steps { display: none; }
    }

    /* ==================== BOOKING GATE MODAL ==================== */
    .booking-overlay {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.6);
      backdrop-filter: blur(8px);
      z-index: 15000;
      display: none;
      align-items: center;
      justify-content: center;
    }

    .booking-overlay.active { display: flex; }

    .booking-box {
      width: 90%;
      max-width: 480px;
      background: var(--bg-secondary);
      border-radius: 20px;
      box-shadow: 0 24px 80px rgba(0,0,0,0.4);
      padding: 36px;
      animation: slideUp 0.3s ease;
    }

    .booking-header {
      text-align: center;
      margin-bottom: 24px;
    }

    .booking-icon {
      width: 56px;
      height: 56px;
      border-radius: 16px;
      background: var(--accent-bg);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 16px;
    }

    .booking-icon [data-lucide] {
      width: 28px; height: 28px;
      color: var(--accent);
    }

    .booking-title {
      font-size: 20px;
      font-weight: 400;
      margin-bottom: 8px;
    }

    .booking-subtitle {
      font-size: 13px;
      color: var(--text-secondary);
      font-weight: 300;
    }

    .booking-form {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .booking-form .lead-field input,
    .booking-form .lead-field select {
      padding: 12px 14px;
    }

    .booking-submit {
      margin-top: 8px;
      padding: 14px;
      background: var(--accent-gradient);
      border: none;
      border-radius: 10px;
      font-family: inherit;
      font-size: 14px;
      font-weight: 500;
      color: white;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .booking-submit:hover {
      background: var(--accent-gradient);
      transform: translateY(-1px);
      box-shadow: 0 4px 16px rgba(15, 61, 92, 0.35);
    }

    .booking-cancel {
      margin-top: 4px;
      padding: 12px;
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 10px;
      font-family: inherit;
      font-size: 13px;
      color: var(--text-muted);
      cursor: pointer;
      transition: all 0.2s;
    }

    .booking-cancel:hover {
      background: var(--bg-tertiary);
      color: var(--text-primary);
    }

    /* Booking confirmation */
    .booking-confirmation {
      text-align: center;
      padding: 20px 0;
    }

    .booking-confirmation .check-icon {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      background: rgba(16, 185, 129, 0.12);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
    }

    .booking-confirmation .check-icon [data-lucide] {
      width: 32px; height: 32px;
      color: #10b981;
    }

    .booking-confirmation h3 {
      font-size: 20px;
      font-weight: 400;
      margin-bottom: 12px;
    }

    .booking-confirmation p {
      font-size: 14px;
      color: var(--text-secondary);
      font-weight: 300;
      line-height: 1.7;
      margin-bottom: 24px;
    }

    .booking-done {
      padding: 12px 32px;
      background: var(--accent);
      border: none;
      border-radius: 10px;
      font-family: inherit;
      font-size: 13px;
      color: white;
      cursor: pointer;
      transition: all 0.2s;
    }

    .booking-done:hover { background: var(--accent-light); }

    /* ==================== CTA BUTTON (cards + matrix) ==================== */
    .cta-analysis {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 14px;
      background: transparent;
      border: 1px solid var(--accent);
      border-radius: 8px;
      font-family: inherit;
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--accent);
      cursor: pointer;
      transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
      margin-top: 12px;
      opacity: 0;
      transform: translateY(6px);
      pointer-events: none;
    }

    .card:hover .cta-analysis {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
      transition-delay: 120ms;
    }

    /* Matrix CTA always visible */
    .matrix-cta-row .cta-analysis {
      opacity: 1;
      transform: none;
      pointer-events: auto;
    }

    /* Mobile: always show CTA (no hover) */
    @media (hover: none) {
      .cta-analysis {
        opacity: 1;
        transform: none;
        pointer-events: auto;
      }
    }

    .cta-analysis:hover {
      background: var(--accent);
      color: white;
      transform: translateY(-1px);
    }

    .cta-analysis [data-lucide] {
      width: 14px; height: 14px;
    }

    /* Language switcher */
    .lead-top-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 28px;
      gap: 16px;
    }
    .lead-lang-switcher {
      display: flex;
      gap: 2px;
      background: rgba(255,255,255,0.12);
      border-radius: 6px;
      padding: 2px;
      flex-shrink: 0;
    }
    .lead-lang-btn {
      color: rgba(255,255,255,0.6) !important;
      background: transparent !important;
    }
    .lead-lang-btn:hover {
      color: rgba(255,255,255,0.9) !important;
    }
    .lead-lang-btn.active {
      background: rgba(255,255,255,0.2) !important;
      color: #fff !important;
    }

    .lang-switcher {
      display: flex;
      gap: 2px;
      background: var(--bg-tertiary);
      border-radius: 6px;
      padding: 2px;
      border: 1px solid var(--border);
    }

    .lang-btn {
      padding: 4px 8px;
      font-family: inherit;
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.04em;
      background: transparent;
      border: none;
      border-radius: 4px;
      color: var(--text-muted);
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .lang-btn:hover {
      color: var(--text-primary);
    }

    .lang-btn.active {
      background: var(--text-primary);
      color: var(--bg-secondary);
    }

    /* Nav booking button */
    .nav-booking {
      padding: 8px 16px;
      background: var(--accent-gradient);
      border: none;
      border-radius: 8px;
      font-family: inherit;
      font-size: 12px;
      font-weight: 500;
      color: white;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .nav-booking:hover {
      background: var(--accent-gradient);
      transform: translateY(-1px);
    }

    .nav-booking [data-lucide] {
      width: 16px; height: 16px;
    }

    /* Matrix CTA row */
    .matrix-cta-row td {
      padding: 16px 24px !important;
      text-align: center !important;
      background: var(--accent-bg) !important;
      border-bottom: none !important;
    }

    /* ==================== RESPONSIVE ==================== */

    /* --- 1024px: tablet landscape --- */
    @media (max-width: 1024px) {
      nav.top-nav { padding-left: 24px; padding-right: 24px; }
      .hero { padding: 48px 24px 36px; }
      .stats-bar { padding-left: 24px; padding-right: 24px; flex-wrap: wrap; gap: 24px; }
      .controls { padding-left: 24px; padding-right: 24px; flex-direction: column; align-items: flex-start; }
      main { padding: 32px 24px; }
    }

    /* --- 960px: lead modal collapses --- */
    @media (max-width: 960px) {
      .lead-split { flex-direction: column; }
      .lead-left { padding: 36px 28px 20px; }
      .lead-right { flex: none; padding: 0 24px 36px; }
      .lead-features { gap: 16px; }
      .lead-steps { display: none; }
    }

    /* --- 768px: tablet portrait --- */
    @media (max-width: 768px) {
      body { padding-left: 0 !important; }

      /* Sidebar vira bottom dock no mobile */
      .sidebar {
        width: 100% !important;
        height: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        flex-direction: row !important;
        border-right: none;
        border-top: 1px solid var(--sidebar-border);
        z-index: 9999;
        padding: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
      }
      .sidebar-logo { display: none; }
      .sidebar-toggle { display: none; }
      .sidebar-nav {
        flex-direction: row !important;
        justify-content: space-around;
        align-items: center;
        padding: 0 8px;
        gap: 0;
        overflow: visible;
      }
      .sidebar-panel { display: none !important; }
      .sidebar-icon-divider { display: none; }
      .sidebar-icon-item {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        justify-content: center;
        border-radius: 50%;
        padding: 0;
      }
      .sidebar-icon-label { display: none; }
      .alfred-badge { display: none; }

      body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }

      /* Nav */
      nav.top-nav { padding: 12px 16px; }
      .logo { font-size: 10px; letter-spacing: 0.15em; }

      /* Hero */
      .hero { padding: 32px 16px 24px; }
      .hero h1 { font-size: clamp(22px, 6vw, 34px); }
      .hero p { font-size: 13px; }
      .hero-country-fields { flex-direction: column; gap: 0; }
      .hero-country-field { border-right: none; border-bottom: 1px solid var(--border); padding: 12px 0; }
      .hero-country-field:last-child { border-bottom: none; padding-left: 0; }

      /* Stats */
      .stats-bar { padding: 16px; gap: 16px; }
      .stat-value { font-size: 22px; }
      .stat-label { font-size: 10px; }

      /* Controls */
      .controls { padding: 12px 16px; gap: 12px; }
      .filters { gap: 6px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
      .filters::-webkit-scrollbar { display: none; }
      .filter-btn { padding: 10px 14px; font-size: 11px; white-space: nowrap; flex-shrink: 0; }
      .view-btn { padding: 10px 16px; font-size: 12px; }

      /* Main */
      main { padding: 20px 16px; }

      /* Cards grid */
      .cards-grid { grid-template-columns: 1fr; gap: 16px; }

      /* Card touch targets */
      .cta-analysis { padding: 10px 14px; min-height: 44px; }

      /* Nav booking button */
      .nav-booking { padding: 10px 12px; font-size: 11px; }

      /* Legend */
      .legend { flex-wrap: wrap; gap: 12px; }

      /* Stats strip */
      .stats-bar { justify-content: flex-start; }
    }

    /* --- 640px: large phone --- */
    @media (max-width: 640px) {
      .nav-links { display: none; }

      /* Lead modal — stacked on mobile */
      .lead-overlay { align-items: flex-start; }
      .lead-split {
        flex-direction: column;
        min-height: 100dvh;
      }
      .lead-left {
        display: flex;
        flex: none;
        width: 100%;
        padding: 40px 24px 32px;
        min-height: auto;
        justify-content: flex-start;
      }
      .lead-left-logo { margin-bottom: 20px; }
      .lead-left h1 { font-size: clamp(24px, 7vw, 32px); margin-bottom: 16px; }
      .lead-left > p { font-size: 14px; margin-bottom: 24px; }
      .lead-features { gap: 16px; }
      .lead-feature { gap: 12px; }
      .lead-feature-icon { width: 36px; height: 36px; flex-shrink: 0; }
      .lead-steps { padding-top: 24px; gap: 0; }
      .lead-step { padding: 12px 0; }
      .lead-right {
        flex: none;
        width: 100%;
        padding: 0 20px 40px;
        box-sizing: border-box;
      }
      .lead-box { box-shadow: none; border-radius: 16px; }

      /* Booking modal */
      .booking-box {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 28px 20px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
      }
      .booking-overlay { align-items: flex-end; }

      /* Info/Export modals */
      .info-box, .export-box {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
      }
      .info-modal, .export-modal { align-items: flex-end; }

      /* Search modal */
      .search-box { padding-top: 8vh; }

      /* Typography scale down */
      .info-title { font-size: 18px; }
      .lead-title { font-size: 18px; }
      .booking-title { font-size: 17px; }
      .card-title { font-size: 15px; }

      /* Info stats wrap */
      .info-stats { flex-wrap: wrap; gap: 16px; justify-content: flex-start; }

      /* Modal close buttons touch target */
      .modal-close { padding: 14px; min-width: 44px; min-height: 44px; }
      .info-close { padding: 14px 32px; }
      .booking-done { padding: 14px 32px; }
      .booking-cancel { padding: 14px; }
    }

    /* Lang switcher compact on mobile */
    @media (max-width: 768px) {
      .lang-btn { padding: 4px 6px; font-size: 10px; }
    }

    /* --- 480px: small phone --- */
    @media (max-width: 480px) {
      nav.top-nav { padding: 10px 12px; }
      .hero { padding: 24px 12px 20px; }
      .hero h1 { font-size: clamp(20px, 7vw, 28px); }

      .stats-bar { padding: 12px; gap: 12px; flex-wrap: wrap; }
      .stat-value { font-size: 20px; }

      .controls { padding: 10px 12px; }
      main { padding: 16px 12px; }

      /* Cards full bleed */
      .cards-grid { gap: 12px; }
      .card { padding: 16px; }
      .card-title { font-size: 14px; }

      /* Lead form logo image */
      .lead-right img[style*="220px"] { width: 140px !important; }

      /* Matrix: reduce first column min-width */
      .matrix th:first-child { min-width: 180px; }

      /* Booking modal */
      .booking-box { padding: 24px 16px; }
    }
/* ==================== UTILITY CLASSES (CSP: no unsafe-inline) ==================== */
.logo-sub { opacity: 0.5; font-weight: 300; }
.d-none { display: none; }
.legend-dot-covered { background: #53BD6F; }
.legend-dot-partial { background: #FFBE0F; }
.legend-dot-notcovered { background: #F06C6C; }
.footer-wrap { padding: 40px 48px 32px; text-align: center; border-top: 1px solid var(--border); margin-top: 24px; }
.footer-text { font-size: 12px; color: var(--text-muted); font-weight: 300; }
.lead-logo-img { width: 200px; height: auto; opacity: 0.85; }
.lead-selo-img { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 16px; display: block; }
.offscreen { position: absolute; left: -9999px; top: -9999px; }
.turnstile-hidden { position: absolute; left: -9999px; top: -9999px; visibility: hidden; }
