
    @import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@300;400;500;600&family=Geist:wght@300;400;500;600;700;800&display=swap');

    :root {
      --bg: #fcfcfd; /* Pure clean offset white */
      --fg: #0f172a;
      --primary: #f6821f; /* Cloudflare Orange accent */
      --primary-hover: #ea6c00; /* Richer Kumo Orange */
      --primary-glow: rgba(246, 130, 31, 0.08);
      --accent: #059669; /* Emerald Green */
      --accent-purple: #7c3aed; /* Royal Violet */
      --card-bg: #ffffff;
      --border: #e2e8f0;
      --border-hover: #cbd5e1;
      --text-muted: #64748b;
      --font-mono: 'Geist Mono', monospace;
      --font-sans: 'Geist', sans-serif;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      background-color: var(--bg);
      color: var(--fg);
      font-family: var(--font-sans);
      line-height: 1.5;
      overflow-x: hidden;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem;
      width: 100%;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    /* Header & Navigation */
    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1.5rem 0;
      border-bottom: 1px solid var(--border);
      margin-bottom: 3rem;
      gap: 1.5rem;
      flex-wrap: wrap;
    }

    .logo-container {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      text-decoration: none;
    }

    .logo-image {
      font-size: 1.8rem;
    }

    .logo-text {
      font-weight: 700;
      font-size: 1.25rem;
      color: var(--fg);
      letter-spacing: -0.02em;
    }

    .logo-badge {
      background: rgba(246, 130, 31, 0.08);
      border: 1px solid rgba(246, 130, 31, 0.15);
      color: #c25e0b;
      padding: 0.15rem 0.5rem;
      border-radius: 4px;
      font-size: 0.65rem;
      font-family: var(--font-mono);
      font-weight: bold;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    /* Navigation Menu */
    .nav-menu {
      display: flex;
      align-items: center;
      gap: 1.5rem;
    }

    .nav-link {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 600;
      transition: color 0.2s;
    }

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

    .header-actions {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    /* Login status widget */
    .user-widget {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      background: #ffffff;
      padding: 0.4rem 0.75rem;
      border-radius: 8px;
      border: 1px solid var(--border);
      box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    }

    .user-avatar {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      object-fit: cover;
      border: 1.5px solid var(--primary);
    }

    .user-name {
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--fg);
    }

    .logout-btn {
      color: #ef4444;
      background: none;
      border: none;
      font-size: 0.75rem;
      cursor: pointer;
      font-weight: 600;
      padding-left: 0.5rem;
      border-left: 1px solid var(--border);
    }

    .login-btn {
      background: #1e293b;
      color: #ffffff;
      border: none;
      padding: 0.5rem 1rem;
      border-radius: 6px;
      font-family: var(--font-sans);
      font-weight: 600;
      font-size: 0.8rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      transition: all 0.2s;
    }

    .login-btn:hover {
      background: #0f172a;
      transform: translateY(-1px);
    }

    .login-btn svg {
      width: 14px;
      height: 14px;
      fill: currentColor;
    }

    /* Subscription badge */
    .sub-status-badge {
      font-family: var(--font-sans);
      font-size: 0.8rem;
      font-weight: 600;
      padding: 0.35rem 0.75rem;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s;
      border: 1px solid var(--border);
    }

    .sub-status-badge.free {
      background: #f1f5f9;
      color: var(--text-muted);
    }
    
    .sub-status-badge.premium {
      background: #fef3c7;
      color: #b45309;
      border-color: #fde68a;
      box-shadow: 0 0 10px rgba(251, 191, 36, 0.1);
    }

    /* Hero Section */
    .hero {
      text-align: center;
      margin-bottom: 3.5rem;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: rgba(124, 58, 237, 0.06);
      border: 1px solid rgba(124, 58, 237, 0.15);
      color: #5c18d0;
      padding: 0.35rem 0.85rem;
      border-radius: 9999px;
      font-family: var(--font-mono);
      font-size: 0.75rem;
      font-weight: 550;
      margin-bottom: 1.5rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .hero h1 {
      font-size: 3.25rem;
      font-weight: 800;
      line-height: 1.15;
      margin-bottom: 1.25rem;
      color: var(--fg);
      letter-spacing: -0.04em;
    }

    .hero p {
      font-size: 1.15rem;
      color: var(--text-muted);
      max-width: 700px;
      margin: 0 auto;
    }

    .unified-matrix-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 12px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
      margin-bottom: 3.5rem;
      overflow: hidden;
    }

    .passport-filter-section {
      background: rgba(248, 250, 252, 0.5);
      border-bottom: 1px solid var(--border);
      padding: 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1.5rem;
      flex-wrap: wrap;
    }

    .passport-picker-wrapper {
      position: relative;
      width: 100%;
      max-width: 420px;
    }

    .passport-dropdown-btn {
      width: 100%;
      background: #f8fafc;
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0.75rem 1rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      font-family: var(--font-sans);
      font-size: 0.95rem;
      font-weight: 600;
      transition: all 0.2s;
    }

    .passport-dropdown-btn:hover {
      border-color: var(--border-hover);
      background-color: #fff;
    }

    .passport-dropdown-btn .selected-content {
      display: flex;
      align-items: center;
      gap: 0.65rem;
    }

    .passport-dropdown-list {
      position: absolute;
      top: 105%;
      left: 0;
      right: 0;
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: 8px;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
      z-index: 1000;
      max-height: 250px;
      overflow-y: auto;
      display: none;
      animation: fadeIn 0.15s ease-out;
    }

    .passport-dropdown-search-box {
      padding: 0.5rem;
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      background: #fff;
      z-index: 10;
    }

    .passport-dropdown-search {
      width: 100%;
      padding: 0.5rem 0.75rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      font-family: var(--font-sans);
      font-size: 0.85rem;
      outline: none;
    }

    .passport-dropdown-search:focus {
      border-color: var(--primary);
    }

    .passport-dropdown-item {
      padding: 0.65rem 1rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      font-size: 0.85rem;
      transition: background-color 0.15s;
    }

    .passport-dropdown-item:hover {
      background-color: #f1f5f9;
    }

    .passport-dropdown-item.active {
      background-color: var(--primary-glow);
      color: #c25e0b;
      font-weight: 700;
    }

    .passport-dropdown-item .item-left {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .matrix-section {
      padding: 2rem;
    }

    .matrix-controls {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1.5rem;
      gap: 1.5rem;
      flex-wrap: wrap;
    }

    .search-input-wrapper {
      position: relative;
      flex: 1;
      max-width: 350px;
    }

    .search-input {
      width: 100%;
      padding: 0.6rem 1rem 0.6rem 2.25rem;
      border-radius: 6px;
      border: 1px solid var(--border);
      font-family: var(--font-sans);
      font-size: 0.9rem;
      outline: none;
      transition: all 0.2s;
    }

    .search-input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px var(--primary-glow);
    }

    .search-icon {
      position: absolute;
      left: 0.75rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      pointer-events: none;
      font-size: 0.9rem;
    }

    .filter-pills {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    .filter-pill {
      background: #f1f5f9;
      border: 1px solid transparent;
      color: var(--text-muted);
      padding: 0.4rem 0.85rem;
      border-radius: 9999px;
      font-size: 0.8rem;
      font-weight: 550;
      cursor: pointer;
      font-family: var(--font-sans);
      transition: all 0.15s;
    }

    .filter-pill:hover {
      background: #e2e8f0;
    }

    .filter-pill.active {
      background: var(--fg);
      color: #fff;
    }

    /* Matrix Table */
    .table-container {
      overflow-x: auto;
      margin-top: 1rem;
    }

    .matrix-table {
      width: 100%;
      border-collapse: collapse;
      text-align: left;
      font-size: 0.9rem;
    }

    .matrix-table th {
      border-bottom: 2px solid var(--border);
      padding: 1rem 0.75rem;
      font-weight: 700;
      color: var(--text-muted);
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .matrix-table td {
      padding: 1.15rem 0.75rem;
      border-bottom: 1px solid var(--border);
      vertical-align: middle;
    }

    .matrix-table tr:hover td {
      background-color: #fafbfc;
    }

    .destination-cell {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-weight: 700;
    }

    .kumo-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      padding: 0.2rem 0.5rem;
      border-radius: 4px;
      font-family: var(--font-mono);
      font-size: 0.7rem;
      font-weight: 600;
      text-transform: uppercase;
    }

    .kumo-badge.type-holiday_work { background: rgba(246, 130, 31, 0.06); color: var(--primary); }
    .kumo-badge.type-study { background: rgba(124, 58, 237, 0.06); color: var(--accent-purple); }
    .kumo-badge.type-work { background: rgba(5, 150, 105, 0.06); color: var(--accent); }
    .kumo-badge.type-skills_points { background: rgba(2, 132, 199, 0.06); color: #0284c7; }
    .kumo-badge.type-digital_nomad { background: rgba(16, 185, 129, 0.06); color: #10b981; }

    .ease-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      display: inline-block;
    }
    .ease-dot.easy { background-color: var(--accent); }
    .ease-dot.moderate { background-color: var(--primary); }
    .ease-dot.hard { background-color: #ef4444; }

    .obfuscated-container {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      max-width: max-content;
    }
    .obfuscated-text {
      filter: blur(4px);
      opacity: 0.55;
      user-select: none;
      pointer-events: none;
    }
    .obfuscated-lock {
      position: absolute;
      font-size: 0.6rem;
      background: rgba(255,255,255,0.92);
      border: 1px solid var(--border);
      border-radius: 4px;
      padding: 1px 4px;
      color: #b45309;
      pointer-events: none;
      font-weight: 700;
      box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }

    .action-btn {
      background: var(--fg);
      color: #fff;
      border: none;
      padding: 0.5rem 1rem;
      border-radius: 6px;
      font-family: var(--font-sans);
      font-weight: 600;
      font-size: 0.8rem;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
    }

    .action-btn:hover {
      background: #1e293b;
      transform: translateY(-1px);
    }

    /* Comparison & Visualizer Section */
    .detail-section {
      display: none;
      animation: fadeIn 0.4s ease-out;
      margin-bottom: 3.5rem;
    }

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

    .grid-two-cols {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2.5rem;
      align-items: start;
    }

    @media (max-width: 968px) {
      .grid-two-cols {
        grid-template-columns: 1fr;
        gap: 2.5rem;
      }
    }

    .card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 2rem;
      box-shadow: 0 1px 3px 0 rgba(0,0,0,0.05);
      position: relative;
    }

    .card-title {
      font-size: 1.4rem;
      font-weight: 800;
      color: var(--fg);
      margin-bottom: 1.5rem;
      letter-spacing: -0.03em;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    /* Comparison Metrics Visualizer */
    .compare-metric {
      margin-bottom: 1.5rem;
    }

    .metric-label {
      display: flex;
      justify-content: space-between;
      font-size: 0.85rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
    }

    .metric-bar-group {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
      background: #f8fafc;
      padding: 0.75rem;
      border-radius: 8px;
      border: 1px solid var(--border);
    }

    .bar-row {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-size: 0.8rem;
    }

    .bar-country {
      width: 100px;
      font-weight: bold;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 0.35rem;
    }

    .bar-track {
      flex: 1;
      height: 10px;
      background: #e2e8f0;
      border-radius: 9999px;
      overflow: hidden;
    }

    .bar-fill {
      height: 100%;
      border-radius: 9999px;
      transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .bar-fill.origin { background-color: var(--text-muted); }
    .bar-fill.target { background-color: var(--primary); }

    .bar-value {
      width: 130px;
      text-align: right;
      font-family: var(--font-mono);
      font-weight: 550;
      font-size: 0.75rem;
    }

    /* Table comparison card details */
    .compare-table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 1rem;
    }

    .compare-table tr {
      border-bottom: 1px solid var(--border);
    }

    .compare-table tr:last-child {
      border-bottom: none;
    }

    .compare-table td {
      padding: 0.85rem 0.25rem;
      font-size: 0.85rem;
    }

    .compare-table td.label {
      color: var(--text-muted);
      font-weight: 550;
      width: 40%;.
    }

    .compare-table td.value {
      font-weight: bold;
      text-align: right;
    }

    /* Pathway Graph Component */
    .pathway-selector {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 1.5rem;
      border-bottom: 1px solid var(--border);
      padding-bottom: 0.75rem;
    }

    .pathway-tab {
      background: none;
      border: none;
      font-family: var(--font-sans);
      font-weight: 600;
      font-size: 0.9rem;
      color: var(--text-muted);
      cursor: pointer;
      padding: 0.4rem 0.75rem;
      border-bottom: 2px solid transparent;
      transition: all 0.2s;
    }

    .pathway-tab:hover {
      color: var(--fg);
    }

    .pathway-tab.active {
      color: var(--primary);
      border-bottom-color: var(--primary);
    }

    /* Interactive SVG & CSS Node Graph */
    .graph-outer-container {
      position: relative;
      margin: 2rem 0;
      background: #f8fafc;
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 2rem 1.5rem;
      overflow-x: auto;
    }

    .graph-nodes-flow {
      display: flex;
      justify-content: space-between;
      position: relative;
      min-width: 600px;
    }

    .graph-line-container {
      position: absolute;
      top: 25px;
      left: 65px;
      right: 65px;
      height: 3px;
      background: #cbd5e1;
      z-index: 1;
    }

    .graph-line-progress {
      height: 100%;
      background: var(--primary);
      width: 0%;
      transition: width 0.8s ease-in-out;
    }

    .graph-node {
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
      z-index: 2;
      cursor: pointer;
      width: 80px;
      text-align: center;
    }

    .node-circle {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: #ffffff;
      border: 3px solid #cbd5e1;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-mono);
      font-weight: 700;
      font-size: 1.1rem;
      color: var(--text-muted);
      transition: all 0.25s;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .graph-node:hover .node-circle {
      transform: scale(1.1);
      border-color: var(--primary-hover);
      box-shadow: 0 0 12px var(--primary-glow);
    }

    .graph-node.active .node-circle {
      border-color: var(--primary);
      background-color: var(--primary-glow);
      color: var(--primary);
      box-shadow: 0 0 15px rgba(246, 130, 31, 0.25);
    }

    .node-label {
      margin-top: 0.75rem;
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--text-muted);
      line-height: 1.25;
      transition: color 0.2s;
    }

    .graph-node.active .node-label {
      color: var(--fg);
    }

    /* Paywall overlay style */
    .paywall-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(255, 255, 255, 0.85);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      z-index: 100;
      border-radius: 8px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 2rem;
      text-align: center;
      animation: fadeIn 0.3s ease-out;
    }

    .paywall-card {
      max-width: 420px;
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 2rem;
      box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    }

    .paywall-icon {
      font-size: 2.5rem;
      margin-bottom: 1rem;
    }

    .paywall-title {
      font-size: 1.25rem;
      font-weight: 800;
      color: var(--fg);
      margin-bottom: 0.5rem;
    }

    .paywall-desc {
      font-size: 0.85rem;
      color: var(--text-muted);
      line-height: 1.5;
      margin-bottom: 1.5rem;
    }

    /* Step details panel */
    .step-detail-card {
      background: #fafbfc;
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 1.5rem;
      margin-top: 1.5rem;
      animation: fadeIn 0.3s ease-out;
    }

    /* Comments styling */
    .comments-section {
      margin-top: 2rem;
      border-top: 1px solid var(--border);
      padding-top: 1.5rem;
    }
    
    .comment-card {
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 1rem;
      display: flex;
      gap: 0.75rem;
      transition: all 0.2s;
    }

    .comment-card:hover {
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
      border-color: var(--border-hover);
    }

    .step-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1rem;
      border-bottom: 1px solid var(--border);
      padding-bottom: 0.5rem;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .step-title {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--fg);
    }

    .step-meta {
      display: flex;
      gap: 0.5rem;
    }

    .step-badge {
      background: #f1f5f9;
      color: var(--text-muted);
      font-family: var(--font-mono);
      font-size: 0.7rem;
      padding: 0.15rem 0.55rem;
      border-radius: 4px;
      font-weight: bold;
    }

    .step-desc {
      font-size: 0.85rem;
      color: var(--fg);
      line-height: 1.6;
      margin-bottom: 1.25rem;
    }

    .checklist-title {
      font-size: 0.8rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-muted);
      margin-bottom: 0.6rem;
    }

    .checklist-items {
      list-style: none;
      padding: 0;
      margin-bottom: 1.5rem;
    }

    .checklist-item {
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
      font-size: 0.85rem;
      color: var(--fg);
      margin-bottom: 0.4rem;
    }

    .checklist-icon {
      color: var(--accent);
      font-weight: bold;
      flex-shrink: 0;
      margin-top: 0.1rem;
    }

    .pro-tip-box {
      border: 1px solid rgba(246, 130, 31, 0.15);
      background-color: rgba(246, 130, 31, 0.02);
      border-radius: 6px;
      padding: 1rem;
    }

    .pro-tip-title {
      font-size: 0.8rem;
      font-weight: bold;
      color: #c25e0b;
      margin-bottom: 0.25rem;
      display: flex;
      align-items: center;
      gap: 0.35rem;
    }

    .pro-tip-content {
      font-size: 0.8rem;
      color: var(--text-muted);
      line-height: 1.5;
    }

    /* Suggestion Form Section */
    .suggest-section {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 2rem;
      margin-bottom: 3rem;
      box-shadow: 0 1px 3px 0 rgba(0,0,0,0.05);
    }

    .suggest-form {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
      margin-top: 1.5rem;
    }

    @media (max-width: 768px) {
      .suggest-form {
        grid-template-columns: 1fr;
      }
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }

    .form-group.full-width {
      grid-column: 1 / -1;
    }

    .form-label {
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--fg);
    }

    .form-input, .form-textarea, .form-select {
      padding: 0.65rem 0.85rem;
      border-radius: 6px;
      border: 1px solid var(--border);
      font-family: var(--font-sans);
      font-size: 0.9rem;
      outline: none;
      background-color: #fafbfc;
      transition: all 0.2s;
    }

    .form-input:focus, .form-textarea:focus, .form-select:focus {
      border-color: var(--primary);
      background-color: #fff;
      box-shadow: 0 0 0 3px var(--primary-glow);
    }

    .submit-btn {
      background: var(--primary);
      color: #fff;
      border: none;
      padding: 0.75rem 1.5rem;
      border-radius: 6px;
      font-weight: 700;
      font-size: 0.9rem;
      cursor: pointer;
      transition: all 0.2s;
      align-self: flex-start;
      margin-top: 1rem;
    }

    .submit-btn:hover {
      background: var(--primary-hover);
      transform: translateY(-1px);
    }

    .form-status {
      display: none;
      padding: 0.85rem 1rem;
      border-radius: 6px;
      margin-top: 1rem;
      font-size: 0.85rem;
      font-weight: 550;
    }

    .form-status.success {
      background-color: rgba(5, 150, 105, 0.08);
      border: 1px solid rgba(5, 150, 105, 0.2);
      color: var(--accent);
      display: block;
    }

    /* Stats Page Visual Cards */
    .stats-card-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
      margin-bottom: 3rem;
    }

    @media (max-width: 768px) {
      .stats-card-grid {
        grid-template-columns: 1fr;
      }
    }

    .stats-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 2.25rem;
      text-align: center;
      box-shadow: 0 1px 3px 0 rgba(0,0,0,0.05);
    }

    .stats-card-num {
      font-size: 3.25rem;
      font-weight: 800;
      line-height: 1;
      margin-bottom: 0.5rem;
      letter-spacing: -0.04em;
    }

    .stats-card-label {
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .stats-card-desc {
      font-size: 0.85rem;
      color: var(--text-muted);
      margin-top: 0.5rem;
    }

    /* Footer */
    footer {
      text-align: center;
      padding: 3rem 0;
      border-top: 1px solid var(--border);
      color: var(--text-muted);
      font-size: 0.75rem;
      margin-top: 5rem;
      font-family: var(--font-mono);
    }

    footer a {
      color: var(--primary);
      text-decoration: none;
      font-weight: 600;
    }

    footer a:hover {
      text-decoration: underline;
    }

    /* Auth Modal Styles */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.4);
      backdrop-filter: blur(4px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 10000;
      padding: 1rem;
    }
    .modal-card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 8px;
      width: 100%;
      max-width: 400px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.02);
      padding: 2rem;
      position: relative;
      animation: modalFadeIn 0.2s ease-out;
    }
    @keyframes modalFadeIn {
      from { transform: scale(0.95); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }
    .modal-close-btn {
      position: absolute;
      top: 1rem;
      right: 1.25rem;
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: var(--text-muted);
    }
    .modal-close-btn:hover {
      color: var(--fg);
    }
    .modal-tabs {
      display: flex;
      border-bottom: 1px solid var(--border);
      margin-bottom: 1.5rem;
      gap: 1rem;
    }
    .modal-tab {
      padding: 0.5rem 0;
      font-weight: 600;
      color: var(--text-muted);
      cursor: pointer;
      border-bottom: 2px solid transparent;
      font-size: 0.95rem;
    }
    .modal-tab.active {
      color: var(--primary);
      border-bottom-color: var(--primary);
    }
    .modal-error {
      color: #ef4444;
      background: #fef2f2;
      border: 1px solid #fee2e2;
      border-radius: 6px;
      padding: 0.5rem 0.75rem;
      font-size: 0.8rem;
      margin-bottom: 1rem;
      display: none;
    }
    .modal-divider {
      display: flex;
      align-items: center;
      text-align: center;
      margin: 1.5rem 0;
      color: var(--text-muted);
      font-size: 0.8rem;
      font-weight: 500;
    }
    .modal-divider::before, .modal-divider::after {
      content: '';
      flex: 1;
      border-bottom: 1px solid var(--border);
    }
    .modal-divider:not(:empty)::before { margin-right: .5em; }
    .modal-divider:not(:empty)::after { margin-left: .5em; }
    
    .google-auth-btn {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 0.65rem;
      border: 1px solid var(--border);
      background: white;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 600;
      font-size: 0.9rem;
      transition: all 0.2s;
    }
    .google-auth-btn:hover {
      background: #f8fafc;
      border-color: var(--border-hover);
    }
    .google-auth-btn svg {
      width: 16px;
      height: 16px;
    }

    /* Profile Dropdown Styles */
    .profile-dropdown {
      position: relative;
      display: inline-block;
    }
    .profile-trigger {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      cursor: pointer;
      padding: 0.25rem 0.5rem;
      border-radius: 6px;
      transition: background 0.2s;
      user-select: none;
    }
    .profile-trigger:hover {
      background: rgba(0, 0, 0, 0.05);
    }
    .profile-menu {
      display: none;
      position: absolute;
      right: 0;
      top: 100%;
      margin-top: 0.5rem;
      background: white;
      border: 1px solid var(--border);
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
      z-index: 1000;
      min-width: 150px;
      overflow: hidden;
      animation: modalFadeIn 0.15s ease-out;
    }
    .profile-menu.show {
      display: block;
    }
    .profile-menu-item {
      display: block;
      padding: 0.75rem 1rem;
      font-size: 0.85rem;
      color: var(--fg);
      text-decoration: none;
      transition: background 0.15s;
      text-align: left;
      border: none;
      width: 100%;
      background: none;
      font-family: var(--font-sans);
      cursor: pointer;
    }
    .profile-menu-item:hover {
      background: #f8fafc;
      color: var(--primary);
    }
    .profile-menu-item.logout {
      color: #ef4444;
      border-top: 1px solid var(--border);
    }
    .profile-menu-item.logout:hover {
      background: rgba(239, 68, 68, 0.04);
      color: #ef4444;
    }

    /* Global Search Bar Styles */
    .global-search-container {
      position: relative;
      flex-grow: 1;
      max-width: 320px;
      margin: 0 1.5rem;
    }
    .global-search-input-wrapper {
      position: relative;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      background: #f8fafc;
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0.4rem 0.75rem;
      transition: all 0.2s;
    }
    .global-search-input-wrapper:focus-within {
      background: white;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px var(--primary-glow);
    }
    .global-search-input-wrapper input {
      border: none;
      background: none;
      outline: none;
      flex-grow: 1;
      font-size: 0.85rem;
      font-family: var(--font-sans);
      color: var(--fg);
      padding: 0;
    }
    .global-search-input-wrapper .search-icon {
      font-size: 0.9rem;
      opacity: 0.6;
      display: inline-flex;
      align-items: center;
    }
    #global-search-clear {
      background: none;
      border: none;
      font-size: 1.1rem;
      color: var(--text-muted);
      cursor: pointer;
      padding: 0 0.2rem;
    }
    #global-search-clear:hover {
      color: #ef4444;
    }
    .global-search-dropdown {
      display: none;
      position: absolute;
      left: 0;
      right: 0;
      top: 100%;
      margin-top: 0.5rem;
      background: white;
      border: 1px solid var(--border);
      border-radius: 8px;
      box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
      z-index: 2000;
      max-height: 320px;
      overflow-y: auto;
      padding: 0.4rem;
    }
    .global-search-group {
      padding: 0.25rem 0.5rem;
      font-size: 0.7rem;
      text-transform: uppercase;
      font-weight: 700;
      letter-spacing: 0.05em;
      color: var(--text-muted);
      border-bottom: 1px solid var(--border);
      margin-bottom: 0.25rem;
    }
    .global-search-item {
      display: flex;
      flex-direction: column;
      padding: 0.5rem 0.65rem;
      border-radius: 6px;
      cursor: pointer;
      transition: background 0.15s;
      margin-bottom: 0.25rem;
      text-align: left;
    }
    .global-search-item:hover {
      background: #f8fafc;
    }
    .global-search-item-title {
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--fg);
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }
    .global-search-item-action {
      font-size: 0.75rem;
      color: var(--primary);
      font-weight: 550;
      margin-top: 0.15rem;
      display: flex;
      align-items: center;
      gap: 0.25rem;
    }

    /* Payment Status Modal Styles */
    .payment-spinner {
      border: 3px solid rgba(246, 130, 31, 0.1);
      border-top: 3px solid var(--primary);
      border-radius: 50%;
      width: 50px;
      height: 50px;
      animation: spin 1s linear infinite;
      margin: 0 auto 1.5rem auto;
    }
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    .payment-success-icon {
      width: 70px;
      height: 70px;
      border-radius: 50%;
      background: rgba(5, 150, 105, 0.08);
      border: 2px solid var(--accent);
      color: var(--accent);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2.2rem;
      margin: 0 auto 1.5rem auto;
      animation: pulseSuccess 1.5s ease-in-out infinite alternate;
    }
    @keyframes pulseSuccess {
      0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.2); }
      100% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(5, 150, 105, 0); }
    }
    .payment-status-title {
      font-weight: 800;
      font-size: 1.5rem;
      color: var(--fg);
      margin-bottom: 0.5rem;
      text-align: center;
      letter-spacing: -0.02em;
    }
    .payment-status-desc {
      font-size: 0.95rem;
      color: var(--text-muted);
      text-align: center;
      margin-bottom: 1.5rem;
      line-height: 1.4;
    }
  