:root {
      --bg-main: #070a10;
      --bg-surface: #0e131d;
      --bg-card: rgba(18, 24, 38, 0.78);
      --bg-card-hover: rgba(26, 34, 52, 0.9);
      --border-subtle: rgba(255, 255, 255, 0.08);
      --border-bright: rgba(255, 255, 255, 0.18);
      --border-strong: rgba(0, 240, 255, 0.35);
      --accent-cyan: #00f0ff;
      --accent-red: #ff2a4b;
      --accent-orange: #ff9900;
      --accent-green: #00ff88;
      --text-main: #f8fafc;
      --text-muted: #94a3b8;
      --text-dim: #64748b;
      --font-main: 'Inter', 'Noto Sans KR', sans-serif;
      --font-display: 'Chakra Petch', 'Noto Sans KR', sans-serif;
      --font-mono: 'Roboto Mono', 'SF Mono', Consolas, 'Share Tech Mono', monospace;
      --radius-sm: 6px;
      --radius-md: 10px;
      --radius-lg: 16px;
      --radius-full: 9999px;
      --transition-fast: 0.15s ease;
    }

    /* Scrollbars (100% Identical with v1) */
    ::-webkit-scrollbar { width: 6px; height: 6px; }
    ::-webkit-scrollbar-track { background: var(--bg-main); }
    ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 4px; }
    ::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }
    html { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.15) #070a10; }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
    }

    body {
      background-color: var(--bg-main);
      background-image: 
        radial-gradient(ellipse at 50% 0%, rgba(0, 240, 255, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 85% 15%, rgba(255, 42, 75, 0.05) 0%, transparent 45%);
      background-attachment: fixed;
      color: var(--text-main);
      font-family: var(--font-main);
      line-height: 1.7;
      -webkit-font-smoothing: antialiased;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    a {
      color: var(--accent-cyan);
      text-decoration: none;
      transition: all 0.2s ease;
    }
    a:hover {
      text-decoration: underline;
      color: #70f5ff;
    }

    /* =========================================================================
       UNIFIED TOPBAR NAVIGATION (PORTED FROM V1)
       ========================================================================= */
    .topbar {
      position: sticky;
      top: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: max(0.65rem, env(safe-area-inset-top)) 1.25rem 0.65rem;
      background: rgba(7, 10, 16, 0.88);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      border-bottom: 1px solid var(--border-subtle);
      gap: 0.75rem;
      width: 100%;
      line-height: 1.5;
    }

    .topbar a,
    .topbar a:hover,
    .topbar a:focus {
      text-decoration: none !important;
    }

    .brand-cluster {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      text-decoration: none !important;
      cursor: pointer;
      flex-shrink: 0;
    }
    .brand-cluster:hover,
    .brand-cluster:focus,
    .brand-cluster:active,
    .brand-cluster * {
      text-decoration: none !important;
    }

            .brand-logo-img {
      height: 26px;
      width: auto;
      max-width: 110px;
      object-fit: contain;
      filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.35));
    }
    .footer-brand-logo {
      height: 26px;
      width: auto;
      max-width: 90px;
      object-fit: contain;
      vertical-align: middle;
      filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.3));
    }.brand-text {
      display: flex;
      flex-direction: column;
    }

    .brand-title {
      font-family: var(--font-display);
      font-size: 1.15rem;
      font-weight: 900;
      letter-spacing: 0.5px;
      color: #fff;
      display: flex;
      align-items: center;
      gap: 0.35rem;
      line-height: 1.15;
    }
    .brand-badge {
      background: var(--accent-red);
      color: #fff;
      font-size: 0.62rem;
      font-weight: 900;
      padding: 0.1rem 0.38rem;
      border-radius: var(--radius-full);
      font-family: 'Roboto Mono', 'SF Mono', Consolas, 'Share Tech Mono', monospace !important;
      letter-spacing: 0.5px;
      line-height: normal;
    }

    .brand-subtitle {
      font-size: 0.68rem;
      color: var(--text-muted);
      letter-spacing: 0.2px;
      line-height: 1.5;
    }

    /* Desktop Navigation Tabs */
    .nav-tabs-desktop {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      background: rgba(255, 255, 255, 0.04);
      padding: 0.25rem;
      border-radius: var(--radius-md);
      border: 1px solid var(--border-subtle);
    }

    .nav-tab-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
      padding: 0.45rem 0.85rem;
      border-radius: var(--radius-sm);
      font-family: var(--font-display) !important;
      font-size: 0.88rem !important;
      font-weight: 700 !important;
      line-height: normal !important;
      color: var(--text-muted);
      background: transparent;
      border: 1px solid transparent;
      cursor: pointer;
      transition: all var(--transition-fast);
      white-space: nowrap;
      text-decoration: none !important;
      box-sizing: border-box;
      outline: none;
      vertical-align: middle;
      -webkit-appearance: none;
      appearance: none;
    }

    .nav-tab-btn:hover {
      color: #fff !important;
      background: rgba(255, 255, 255, 0.06) !important;
      text-decoration: none !important;
    }

    .nav-tab-btn.active {
      color: #fff !important;
      background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(255, 42, 75, 0.2)) !important;
      border: 1px solid var(--accent-cyan) !important;
      box-shadow: 0 0 16px rgba(0, 240, 255, 0.25) !important;
      text-decoration: none !important;
    }

    .nav-tab-btn i,
    .nav-tab-btn svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }

    .nav-tab-btn span {
      line-height: normal;
    }

    .topbar-actions {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      flex-shrink: 0;
      flex-wrap: nowrap;
      white-space: nowrap;
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--accent-red), #d61f3d);
      color: #fff;
      font-weight: 700;
      box-shadow: 0 4px 14px rgba(255, 42, 75, 0.35);
      border: 1px solid transparent;
      padding: 0.45rem 0.85rem;
      border-radius: 8px;
      font-size: 0.82rem;
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      text-decoration: none;
      transition: all 0.2s ease;
      cursor: pointer;
      white-space: nowrap;
    }
    .btn-primary:hover {
      background: linear-gradient(135deg, #ff4763, #ff2a4b);
      box-shadow: 0 6px 20px rgba(255, 42, 75, 0.5);
      transform: translateY(-1px);
      text-decoration: none;
      color: #fff;
    }

    /* User Profile & Login Pill (Ported from v1) */
    .user-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-full, 9999px);
      padding: 0.22rem 0.65rem 0.22rem 0.25rem;
      cursor: pointer;
      transition: all 0.15s ease;
      min-height: 32px;
      text-decoration: none;
      white-space: nowrap;
      flex-shrink: 0;
      flex-wrap: nowrap;
      line-height: 1;
    }

    .user-pill:hover {
      border-color: var(--accent-cyan);
      background: rgba(0, 240, 255, 0.08);
      text-decoration: none;
    }

    .user-avatar-badge {
      width: 26px;
      height: 26px;
      min-width: 26px;
      border-radius: var(--radius-full, 9999px);
      background: linear-gradient(135deg, var(--accent-cyan), var(--accent-red));
      color: #fff;
      font-family: var(--font-display);
      font-size: 0.72rem;
      font-weight: 900;
      display: flex;
      align-items: center;
      justify-content: center;
      text-transform: uppercase;
      flex-shrink: 0;
      line-height: 1;
      overflow: hidden;
    }

    .user-avatar-badge img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .user-name-text {
      font-size: 0.8rem;
      font-weight: 600;
      color: #fff;
      font-family: var(--font-sans, 'Inter', sans-serif);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 120px;
      display: inline-block;
      line-height: 1.2;
      vertical-align: middle;
    }

    /* Guide Language Switcher Toggle [ EN | KO ] */
    .guide-lang-toggle {
      display: inline-flex;
      align-items: center;
      background: rgba(15, 23, 42, 0.85);
      border: 1px solid var(--border-subtle);
      border-radius: 9999px;
      padding: 3px;
      gap: 2px;
      backdrop-filter: blur(8px);
      box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
      user-select: none;
    }

    .guide-lang-btn {
      background: transparent;
      border: none;
      color: var(--text-muted);
      font-family: var(--font-display);
      font-size: 0.74rem;
      font-weight: 800;
      padding: 0.22rem 0.65rem;
      border-radius: 9999px;
      cursor: pointer;
      transition: all 0.15s ease;
      text-decoration: none;
      line-height: 1.2;
      display: inline-block;
    }

    .guide-lang-btn:hover {
      color: #fff;
      text-decoration: none;
    }

    .guide-lang-btn.active {
      background: var(--accent-cyan);
      color: #070a10;
      box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    }

    /* Section Header from v1 */
    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      flex-wrap: wrap;
      gap: 1rem;
      margin-bottom: 1.5rem;
    }

    .section-title {
      font-family: var(--font-display);
      font-size: 1.45rem;
      font-weight: 800;
      color: #fff;
      display: flex;
      align-items: center;
      gap: 0.55rem;
      margin-bottom: 0.25rem;
    }

    .section-subtitle {
      font-size: 0.85rem;
      color: var(--text-muted);
      word-break: keep-all;
      max-width: 600px;
    }

    .form-input {
      width: 100%;
      background: rgba(15, 23, 42, 0.7);
      border: 1px solid var(--border-subtle);
      border-radius: 8px;
      padding: 0.45rem 0.85rem;
      color: #fff;
      font-size: 0.82rem;
      font-family: var(--font-main);
      outline: none;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .form-input:focus {
      border-color: var(--accent-cyan);
      box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
    }
    .auth-toggle-tabs {
      display: flex;
      gap: 0.35rem;
      background: rgba(255, 255, 255, 0.05);
      padding: 0.25rem;
      border-radius: var(--radius-sm);
      margin-bottom: 0.75rem;
    }
    .auth-tab-btn {
      flex: 1;
      background: transparent;
      color: var(--text-muted);
      border: none;
      font-weight: 700;
      transition: all 0.2s ease;
      cursor: pointer;
      min-height: 34px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: calc(var(--radius-sm) - 2px);
    }
    .auth-tab-btn.active {
      background: var(--accent-cyan) !important;
      color: #000000 !important;
      box-shadow: 0 1px 6px rgba(0, 240, 255, 0.35);
    }

    .btn-app {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.42rem 0.85rem;
      border-radius: 8px;
      font-size: 0.82rem;
      font-weight: 700;
      background: linear-gradient(135deg, #00f0ff 0%, #0099ff 100%);
      color: #030712;
      border: none;
      box-shadow: 0 0 14px rgba(0, 240, 255, 0.3);
      cursor: pointer;
      text-decoration: none;
      transition: all 0.2s ease;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .btn-app:hover {
      transform: translateY(-1px);
      box-shadow: 0 0 22px rgba(0, 240, 255, 0.5);
      text-decoration: none;
      color: #030712;
    }

    /* Container (100% Unified with v1: 1280px Max Width) */
    .container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 1.5rem 1.25rem 4rem;
      flex: 1;
      width: 100%;
      box-sizing: border-box;
    }

    article[lang] {
      max-width: 900px;
      margin: 0 auto;
      width: 100%;
    }

    /* Breadcrumbs */
    .breadcrumbs {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      font-size: 0.82rem;
      color: var(--text-muted);
      margin-bottom: 1.25rem;
      flex-wrap: wrap;
    }
    .breadcrumbs a {
      color: var(--text-muted);
    }
    .breadcrumbs a:hover {
      color: var(--accent-cyan);
    }

    /* Article Reader */
    .article-header {
      margin-bottom: 2rem;
      padding-bottom: 1.5rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .article-meta-badges {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 0.85rem;
    }
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      padding: 0.2rem 0.6rem;
      border-radius: 9999px;
      font-size: 0.74rem;
      font-weight: 700;
      letter-spacing: 0.02em;
    }
    .badge-cyan {
      background: rgba(0, 240, 255, 0.12);
      color: var(--accent-cyan);
      border: 1px solid rgba(0, 240, 255, 0.3);
    }
    .badge-red {
      background: rgba(255, 42, 75, 0.12);
      color: var(--accent-red);
      border: 1px solid rgba(255, 42, 75, 0.3);
    }
    .article-title {
      font-family: var(--font-display);
      font-size: clamp(1.45rem, 3.8vw, 2.15rem);
      font-weight: 800;
      color: #ffffff;
      line-height: 1.35;
      margin-bottom: 1rem;
      letter-spacing: -0.02em;
      word-break: keep-all;
    }
    .article-author-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 0.75rem;
      font-size: 0.82rem;
      color: var(--text-muted);
    }
    .author-info {
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }
    .author-avatar {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: linear-gradient(135deg, #00f0ff, #ff2a4b);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      color: #000;
      font-size: 0.75rem;
      flex-shrink: 0;
    }

    /* Article Cover Hero Banner */
    .article-cover-figure {
      margin: 0 0 2rem 0;
    }
    .article-cover-wrapper {
      margin-bottom: 0.45rem;
      border-radius: 14px;
      overflow: hidden;
      border: 1px solid var(--border-subtle);
      max-height: 440px;
      aspect-ratio: 16 / 9;
      background: #030712;
      box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6);
    }
    .article-cover-img {
      width: 100%;
      height: auto;
      max-height: 440px;
      object-fit: cover;
      display: block;
    }

    /* Image Source Captions (http images) */
    .img-source-caption {
      font-size: 0.78rem;
      color: var(--text-muted, #94a3b8);
      margin-top: 0.45rem;
      text-align: right;
      padding: 0 0.35rem;
      font-family: var(--font-main);
      line-height: 1.4;
      letter-spacing: -0.01em;
    }
    .img-source-caption a {
      color: #cbd5e1;
      text-decoration: underline;
      text-underline-offset: 3px;
      transition: color 0.15s ease;
      word-break: break-all;
    }
    .img-source-caption a:hover {
      color: var(--accent-cyan);
    }
    .img-source-caption .source-label {
      color: var(--text-muted, #94a3b8);
      font-weight: 500;
    }
    .img-source-caption .img-source-divider {
      color: rgba(255, 255, 255, 0.2);
      margin: 0 0.35rem;
    }
    .img-source-caption.img-alt-only {
      color: var(--text-muted, #94a3b8);
      font-style: italic;
    }

    /* In-Article Markdown Images */
    .guide-img-figure {
      margin: 1.8rem 0;
      text-align: center;
    }
    .guide-article-img {
      max-width: 100%;
      height: auto;
      border-radius: 10px;
      box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
      border: 1px solid rgba(255, 255, 255, 0.08);
      display: inline-block;
    }
    .guide-img-figure .img-source-caption {
      text-align: center;
      margin-top: 0.55rem;
    }

    /* Article Content Typography */
    .article-body {
      font-size: 1.02rem;
      color: #e2e8f0;
      line-height: 1.85;
      word-break: keep-all;
    }
    .article-body .guide-p {
      margin-bottom: 1.35rem;
    }
    .article-body .guide-h2 {
      font-family: var(--font-display);
      font-size: clamp(1.25rem, 3vw, 1.5rem);
      font-weight: 800;
      color: #ffffff;
      margin: 2.2rem 0 0.85rem;
      padding-bottom: 0.4rem;
      border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    }
    .article-body .guide-h3 {
      font-family: var(--font-display);
      font-size: clamp(1.08rem, 2.5vw, 1.25rem);
      font-weight: 700;
      color: var(--accent-cyan);
      margin: 1.6rem 0 0.65rem;
    }
    .article-body .guide-divider {
      border: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
      margin: 2.2rem 0;
    }
    .article-body .guide-list, .article-body .guide-list-num {
      margin: 0 0 1.4rem 1.4rem;
    }
    .article-body li {
      margin-bottom: 0.45rem;
    }
    .article-body strong {
      color: #fff;
      font-weight: 700;
    }
    .article-body code {
      font-family: var(--font-mono);
      background: rgba(0, 240, 255, 0.1);
      color: #70f5ff;
      padding: 0.15rem 0.4rem;
      border-radius: 4px;
      font-size: 0.88em;
      border: 1px solid rgba(0, 240, 255, 0.2);
      word-break: break-word;
    }
    .article-body pre {
      background: #090e17;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      padding: 1.1rem;
      overflow-x: auto;
      margin: 1.4rem 0;
      -webkit-overflow-scrolling: touch;
    }
    .article-body pre code {
      background: none;
      border: none;
      padding: 0;
      color: #e2e8f0;
      font-size: 0.92rem;
    }

    /* Callout Boxes */
    .guide-callout {
      margin: 1.4rem 0;
      padding: 0.9rem 1.15rem;
      border-radius: 10px;
      background: rgba(13, 19, 33, 0.9);
      border-left: 4px solid var(--accent-cyan);
      font-size: 0.94rem;
      color: #cbd5e1;
    }
    .guide-callout.callout-warning {
      border-left-color: var(--accent-orange);
      background: rgba(255, 153, 0, 0.08);
    }

    /* Tables with Smooth Mobile Scroll & Sticky First Column Hint */
    .table-responsive {
      overflow-x: auto;
      margin: 1.4rem 0;
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      -webkit-overflow-scrolling: touch;
      position: relative;
    }
    .guide-table {
      width: 100%;
      min-width: 520px;
      border-collapse: collapse;
      font-size: 0.88rem;
      text-align: left;
    }
    .guide-table th {
      background: rgba(15, 23, 42, 0.95);
      color: #fff;
      padding: 0.75rem 0.85rem;
      border-bottom: 1px solid rgba(0, 240, 255, 0.25);
      font-weight: 700;
      white-space: nowrap;
    }
    .guide-table td {
      padding: 0.7rem 0.85rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      color: #cbd5e1;
    }
    .guide-table tr:nth-child(even) {
      background: rgba(255, 255, 255, 0.02);
    }

    /* Article Share & Actions */
    .article-share-card {
      margin: 2.5rem 0;
      padding: 1.25rem 1.4rem;
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 1rem;
    }
    .share-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.5rem 0.9rem;
      border-radius: 8px;
      font-size: 0.82rem;
      font-weight: 600;
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.12);
      cursor: pointer;
      transition: all 0.2s ease;
      touch-action: manipulation;
    }
    .share-btn:hover {
      background: rgba(0, 240, 255, 0.15);
      border-color: var(--accent-cyan);
      color: var(--accent-cyan);
      text-decoration: none;
    }

    /* PWA Banner CTA */
    .app-cta-banner {
      margin: 2.2rem 0;
      padding: 1.8rem 1.4rem;
      background: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, rgba(255, 42, 75, 0.08) 100%);
      border: 1px solid var(--border-strong);
      border-radius: 16px;
      text-align: center;
    }
    .app-cta-banner h3 {
      font-family: var(--font-display);
      font-size: clamp(1.15rem, 3vw, 1.4rem);
      color: #fff;
      margin-bottom: 0.45rem;
    }
    .app-cta-banner p {
      font-size: 0.88rem;
      color: var(--text-muted);
      margin-bottom: 1.15rem;
      word-break: keep-all;
    }

    /* Related Guides Grid */
    .related-section {
      margin-top: 3rem;
      padding-top: 2rem;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .section-title {
      font-family: var(--font-display);
      font-size: 1.2rem;
      font-weight: 800;
      color: #fff;
      margin-bottom: 1.2rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .guides-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 1.25rem;
    }
    .guide-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: 12px;
      padding: 1.15rem;
      display: flex;
      flex-direction: column;
      text-decoration: none;
      color: inherit;
      transition: all 0.2s ease;
      touch-action: manipulation;
    }
    .guide-card:hover {
      transform: translateY(-3px);
      border-color: var(--border-strong);
      background: var(--bg-card-hover);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
      text-decoration: none;
    }
    .card-thumb {
      width: 100%;
      height: 140px;
      aspect-ratio: 16 / 9;
      border-radius: 8px;
      object-fit: cover;
      margin-bottom: 0.75rem;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: #030712;
    }
    .card-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.65rem;
    }
    .card-title {
      font-family: var(--font-display);
      font-size: 1.02rem;
      font-weight: 700;
      color: #fff;
      line-height: 1.42;
      margin-bottom: 0.45rem;
      word-break: keep-all;
    }
    .card-excerpt {
      font-size: 0.8rem;
      color: var(--text-muted);
      line-height: 1.5;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
      margin-bottom: 0.85rem;
    }
    .card-footer {
      margin-top: auto;
      display: flex;
      justify-content: space-between;
      font-size: 0.74rem;
      color: var(--text-muted);
      padding-top: 0.7rem;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Catalog Page Specifics */
    .catalog-hero {
      text-align: center;
      padding: 1.5rem 0 2rem;
    }
    .catalog-hero h1 {
      font-family: var(--font-display);
      font-size: clamp(1.8rem, 4.5vw, 2.5rem);
      font-weight: 900;
      color: #fff;
      margin-bottom: 0.65rem;
      letter-spacing: -0.02em;
    }
    .catalog-hero h1 span {
      background: linear-gradient(135deg, #00f0ff 0%, #ff2a4b 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .catalog-hero p {
      font-size: 0.95rem;
      color: var(--text-muted);
      max-width: 620px;
      margin: 0 auto;
      word-break: keep-all;
    }

    /* Category Chips - Swipeable Horizontal Scroll for Mobile */
    .category-chips-wrapper {
      position: relative;
      margin-bottom: 1.75rem;
    }
    .category-chips {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      padding: 0.25rem 0.25rem 0.5rem;
      scrollbar-width: none;
    }
    .category-chips::-webkit-scrollbar {
      display: none;
    }
    .cat-chip {
      padding: 0.4rem 0.85rem;
      border-radius: 9999px;
      font-size: 0.78rem;
      font-weight: 600;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: var(--text-muted);
      text-decoration: none;
      transition: all 0.2s ease;
      white-space: nowrap;
      flex-shrink: 0;
      touch-action: manipulation;
    }
    .cat-chip:hover, .cat-chip.active {
      background: rgba(0, 240, 255, 0.15);
      border-color: var(--accent-cyan);
      color: var(--accent-cyan);
      text-decoration: none;
    }

    /* Toast Notification */
    #toast {
      position: fixed;
      bottom: 24px;
      right: 24px;
      background: #0f172a;
      border: 1px solid var(--accent-cyan);
      color: #fff;
      padding: 0.7rem 1.15rem;
      border-radius: 8px;
      box-shadow: 0 8px 24px rgba(0, 240, 255, 0.3);
      display: none;
      z-index: 10000050;
      font-size: 0.85rem;
      max-width: 90vw;
    }

    /* =========================================================================
       PLATFORM FOOTER (PORTED FROM V1)
       ========================================================================= */
    footer.site-footer {
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(7, 10, 16, 0.96);
      padding: 3rem 1.25rem 2.5rem;
      margin-top: auto;
      width: 100%;
    }

    .footer-container {
      max-width: 1080px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 1.2rem;
    }

    
    .footer-brand-logo {
      height: 26px;
      width: auto;
      max-width: 90px;
      object-fit: contain;
      vertical-align: middle;
      filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.3));
    }
    .footer-brand {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      text-decoration: none;
      color: #fff;
      font-family: var(--font-display);
      font-size: 1.1rem;
      font-weight: 900;
    }

    .footer-brand-badge {
      background: var(--accent-red);
      color: #fff;
      font-size: 0.65rem;
      padding: 0.1rem 0.4rem;
      border-radius: 4px;
      font-weight: 900;
    }

    .footer-tagline {
      font-size: 0.82rem;
      color: var(--text-muted);
      margin-top: -0.45rem;
    }

    .footer-nav-links {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      gap: 1.25rem;
    }

    .footer-nav-links a {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.82rem;
      font-weight: 500;
      transition: color 0.15s ease;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }

    .footer-nav-links a:hover {
      color: var(--accent-cyan);
    }

    

    .footer-nav-links .footer-link-active {
      color: var(--accent-cyan);
      font-weight: 700;
    }

    .footer-nav-links .footer-link-highlight {
      color: #ff6b81;
      font-weight: 700;
    }

    .footer-nav-links .footer-link-highlight:hover {
      color: #ff4763;
    }

    .footer-copyright {
      font-size: 0.78rem;
      color: rgba(148, 163, 184, 0.6);
      font-family: var(--font-mono);
      margin-top: 0.25rem;
    }

    .footer-bottom-bar {
      width: 100%;
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      margin-top: 0.85rem;
      padding-top: 1.15rem;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    html[data-theme="light"] .footer-bottom-bar {
      border-top: 1px solid rgba(15, 23, 42, 0.1);
    }

    .footer-bottom-spacer {
      /* balances right social links to keep copyright centered */
    }

    .footer-bottom-bar .footer-copyright {
      margin-top: 0;
    }

    .footer-social-links {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      gap: 0.75rem;
    }

    .footer-social-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease, opacity 0.2s ease;
      line-height: 0;
      opacity: 0.92;
      border: none !important;
      background: none !important;
      padding: 0;
    }

    .footer-social-btn:hover {
      transform: translateY(-2px) scale(1.08);
      opacity: 1;
    }

    .footer-social-btn.footer-social-yt:hover {
      filter: drop-shadow(0 4px 12px rgba(255, 0, 0, 0.5));
    }

    .footer-social-btn.footer-social-ig:hover {
      filter: drop-shadow(0 4px 12px rgba(225, 48, 108, 0.55));
    }

    .footer-social-btn svg {
      width: 28px;
      height: 28px;
      display: block;
    }

    @media (max-width: 768px) {
      .footer-bottom-bar {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        gap: 0.85rem;
        padding-top: 1rem;
      }
      .footer-bottom-spacer {
        display: none;
      }
      .footer-social-links {
        justify-content: center;
      }
      .footer-copyright {
        text-align: center;
        font-size: 0.74rem;
      }
    }

    /* =========================================================================
       MOBILE BOTTOM FLOATING NAVIGATION BAR (100% UNIFIED WITH V1)
       ========================================================================= */
    .mobile-bottom-nav {
      display: none;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 100;
      background: rgba(7, 10, 16, 0.94);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border-top: 1px solid var(--border-subtle);
      padding: 0.35rem 0.4rem max(0.45rem, env(safe-area-inset-bottom));
      justify-content: space-around;
      align-items: center;
      box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.85);
      touch-action: pan-y;
      user-select: none;
      -webkit-user-select: none;
      line-height: 1.5;
    }

    .mob-nav-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2px;
      color: #94a3b8;
      background: transparent;
      border: none;
      cursor: pointer;
      font-family: var(--font-display);
      font-size: 0.64rem;
      font-weight: 700;
      line-height: 1.5;
      padding: 0.25rem 0.1rem;
      min-height: 48px;
      border-radius: var(--radius-sm);
      transition: all var(--transition-fast);
      flex: 1;
      position: relative;
      touch-action: manipulation;
      text-decoration: none !important;
      min-width: 0;
      white-space: nowrap;
    }

    .mob-nav-item:active {
      transform: scale(0.92);
    }

    .mob-nav-item:hover, .mob-nav-item.active {
      color: var(--accent-cyan);
      text-decoration: none !important;
    }

    .mob-nav-item.active i {
      filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.6));
    }

    .mob-nav-item.active::after {
      content: '';
      position: absolute;
      top: -3px;
      left: 50%;
      transform: translateX(-50%);
      width: 20px;
      height: 3px;
      background: var(--accent-cyan);
      border-radius: 2px;
      box-shadow: 0 0 10px var(--accent-cyan);
    }

    .mob-nav-item i,
    .mob-nav-item svg {
      width: 22px;
      height: 22px;
      transition: transform var(--transition-fast);
    }

    .mob-nav-center-action {
      background: linear-gradient(135deg, var(--accent-red), #d61f3d);
      color: #fff !important;
      border-radius: var(--radius-full);
      width: 48px;
      height: 48px;
      margin-top: -20px;
      box-shadow: 0 6px 22px rgba(255, 42, 75, 0.65), 0 0 12px rgba(255, 42, 75, 0.4);
      display: flex;
      flex-shrink: 0;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      border: 3px solid #070a10;
      flex: 0 0 52px;
      transition: transform var(--transition-fast), box-shadow var(--transition-fast);
      touch-action: manipulation;
      cursor: pointer;
      text-decoration: none !important;
    }

    .mob-nav-center-action:active {
      transform: scale(0.9);
      box-shadow: 0 2px 10px rgba(255, 42, 75, 0.8);
    }

    .mob-nav-center-action.action-hud {
      background: linear-gradient(135deg, #00f0ff, #0088cc);
      box-shadow: 0 6px 22px rgba(0, 240, 255, 0.65), 0 0 14px rgba(0, 240, 255, 0.45);
    }
    .mob-nav-center-action.action-hud:hover {
      box-shadow: 0 8px 24px rgba(0, 240, 255, 0.85);
    }
    .mob-nav-center-action.action-hud:active {
      box-shadow: 0 2px 10px rgba(0, 240, 255, 0.85);
    }

    .mob-nav-center-action i {
      width: 24px;
      height: 24px;
    }

    /* Mobile Enhancements (<860px) */
    @media (max-width: 860px) {
      .topbar {
        padding: max(0.55rem, env(safe-area-inset-top)) 0.75rem 0.55rem;
        gap: 0.5rem;
      }
      .nav-tabs-desktop { display: none !important; }
      .mobile-bottom-nav { display: flex !important; }

      .brand-title { font-size: 1.05rem; }
      .brand-subtitle { display: none !important; }

      /* Hide redundant topbar Log Session on mobile to prevent navbar crowding */
      .topbar-actions .btn-primary { display: none !important; }

      .user-pill {
        display: inline-flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        padding: 0.2rem 0.55rem 0.2rem 0.25rem;
        min-height: 30px;
      }
      .user-avatar-badge {
        width: 26px;
        height: 26px;
        min-width: 26px;
        font-size: 0.72rem;
        flex-shrink: 0 !important;
      }
      .user-name-text {
        display: inline-block !important;
        max-width: 90px;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 0.78rem;
        line-height: 1.2;
        vertical-align: middle;
      }

      .container {
        padding: 1rem 0.75rem calc(5.5rem + env(safe-area-inset-bottom)) !important;
      }
      .footer-container {
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)) !important;
      }

      .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
      }
      .section-title {
        font-size: 1.25rem;
      }

      .article-header {
        margin-bottom: 1.4rem;
        padding-bottom: 1.1rem;
      }
      .article-title {
        font-size: clamp(1.25rem, 5vw, 1.75rem) !important;
      }
      .article-body {
        font-size: 0.98rem;
        line-height: 1.8;
      }
      .article-share-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
      }
      .article-share-card div:last-child {
        width: 100%;
        display: flex;
      }
      .article-share-card .share-btn {
        flex: 1;
        justify-content: center;
      }
      .guides-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
      }
      .card-thumb {
        height: 155px;
      }
      .app-cta-banner {
        padding: 1.4rem 1rem;
      }
      .app-cta-banner .btn-app {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
      }
    }

    /* =========================================================================
       MORE MENU POPUP (Desktop Header & Mobile Bottom Nav)
       ========================================================================= */
    .nav-more-menu-backdrop {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.55);
      backdrop-filter: blur(3px);
      -webkit-backdrop-filter: blur(3px);
      z-index: 9999997;
    }

    .nav-more-menu-panel {
      position: fixed !important;
      display: flex;
      flex-direction: column;
      width: 260px;
      background: rgba(13, 19, 33, 0.96);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(0, 240, 255, 0.35);
      border-radius: var(--radius-lg);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 240, 255, 0.15);
      z-index: 9999999 !important;
      padding: 0.45rem;
      gap: 0.3rem;
      animation: menuFadeIn 0.15s ease-out;
    }

    @keyframes menuFadeIn {
      from { opacity: 0; transform: translateY(-4px) scale(0.97); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    @keyframes menuFadeInMobile {
      from { opacity: 0; transform: translateY(8px) scale(0.97); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .nav-more-menu-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.3rem 0.5rem 0.35rem 0.5rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      margin-bottom: 0.2rem;
    }

    .nav-more-menu-title {
      font-size: 0.74rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-muted);
    }

    .nav-more-menu-close {
      background: none;
      border: none;
      color: var(--text-muted);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0.2rem;
      border-radius: var(--radius-sm);
      transition: all var(--transition-fast);
    }

    .nav-more-menu-close:hover {
      color: #fff;
      background: rgba(255, 255, 255, 0.1);
    }

    .nav-more-menu-item {
      display: flex;
      align-items: center;
      gap: 0.7rem;
      width: 100%;
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid transparent;
      border-radius: var(--radius-md);
      padding: 0.55rem 0.65rem;
      cursor: pointer;
      text-align: left;
      text-decoration: none;
      transition: all var(--transition-fast);
      color: #f1f5f9;
    }

    .nav-more-menu-item:hover {
      background: rgba(255, 255, 255, 0.07);
      border-color: rgba(0, 240, 255, 0.3);
      transform: translateX(2px);
    }

    .nav-more-menu-item.active {
      background: rgba(0, 240, 255, 0.12);
      border-color: var(--accent-cyan);
    }

    .nav-more-menu-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      border-radius: var(--radius-md);
      background: rgba(255, 255, 255, 0.06);
      flex-shrink: 0;
    }

    .nav-more-menu-icon svg {
      width: 17px;
      height: 17px;
    }

    .nav-more-menu-text {
      display: flex;
      flex-direction: column;
      flex: 1;
      min-width: 0;
    }

    .nav-more-menu-label {
      font-size: 0.85rem;
      font-weight: 700;
      color: #fff;
      line-height: 1.2;
    }

    .nav-more-menu-sub {
      font-size: 0.7rem;
      color: var(--text-muted);
      margin-top: 0.1rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .nav-more-menu-arrow {
      width: 14px;
      height: 14px;
      color: rgba(255, 255, 255, 0.35);
      flex-shrink: 0;
    }
  
    /* =========================================================================
       EXACT UNIFIED V1 MODALS, BUTTONS & FORMS STYLES
       ========================================================================= */
    :root {
      --font-display: 'Chakra Petch', 'Noto Sans KR', sans-serif;
      --font-timer: 'Roboto Mono', 'SF Mono', Consolas, 'Share Tech Mono', monospace;
      --font-mono: 'Roboto Mono', 'SF Mono', Consolas, 'Share Tech Mono', monospace;
      --font-sans: 'Inter', 'Noto Sans KR', sans-serif;

      --radius-sm: 6px;
      --radius-md: 10px;
      --radius-lg: 16px;
      --radius-xl: 22px;
      --radius-full: 9999px;

      --transition-fast: 0.15s ease;
      --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

      --border-subtle: rgba(255, 255, 255, 0.08);
      --border-bright: rgba(255, 255, 255, 0.18);

      --accent-red: #ff2a4b;
      --accent-cyan: #00f0ff;
      --accent-green: #00e676;
      --accent-amber: #ffb300;
      --accent-purple: #b388ff;

      --text-main: #f8fafc;
      --text-muted: #94a3b8;
      --text-dim: #64748b;
    }

    /* Modal Base (Exact v1) */
    .modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 99999;
      background: rgba(0, 0, 0, 0.85);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }

    .modal-overlay.active {
      display: flex;
      animation: modalFadeIn 0.2s ease;
    }

    .auth-error-box {
      display: none;
      align-items: center;
      gap: 0.55rem;
      background: rgba(239, 68, 68, 0.15);
      border: 1px solid rgba(239, 68, 68, 0.45);
      border-radius: var(--radius-sm, 6px);
      color: #fca5a5;
      font-size: 0.8rem;
      font-weight: 600;
      padding: 0.55rem 0.85rem;
      margin-top: 0.75rem;
      margin-bottom: 0.2rem;
      line-height: 1.4;
      animation: modalFadeIn 0.2s ease-out;
    }
    .auth-error-box i,
    .auth-error-box svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
      color: #ef4444;
    }
    html[data-theme="light"] .auth-error-box {
      background: #fef2f2 !important;
      border: 1px solid rgba(239, 68, 68, 0.45) !important;
      color: #b91c1c !important;
    }
    html[data-theme="light"] .auth-error-box i,
    html[data-theme="light"] .auth-error-box svg {
      color: #dc2626 !important;
    }

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

    .modal-card {
      background: #0d121c;
      border: 1px solid var(--border-bright);
      border-radius: var(--radius-lg);
      width: 100%;
      max-width: 660px;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 240, 255, 0.1);
      overflow: hidden;
      transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    }

    @keyframes modalShake {
      0%, 100% { transform: scale(1); }
      25% { transform: scale(1.012) translateY(-2px); }
      50% { transform: scale(0.995) translateY(1px); }
      75% { transform: scale(1.008) translateY(-1px); }
    }
    .modal-card.shake {
      animation: modalShake 0.32s ease-in-out !important;
      border-color: rgba(0, 240, 255, 0.75) !important;
      box-shadow: 0 0 35px rgba(0, 240, 255, 0.35) !important;
    }

    .modal-drag-indicator {
      display: none;
      width: 40px;
      height: 4px;
      background: rgba(255, 255, 255, 0.25);
      border-radius: 2px;
      margin: 8px auto 2px;
    }

    .modal-header {
      padding: 0.95rem 1.25rem;
      border-bottom: 1px solid var(--border-subtle);
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(255, 255, 255, 0.02);
      flex-shrink: 0;
    }

    .modal-title {
      font-family: var(--font-display);
      font-size: 1.15rem;
      font-weight: 800;
      color: #fff;
      display: flex;
      align-items: center;
      gap: 0.45rem;
    }

    .modal-close-btn {
      background: transparent;
      border: none;
      color: var(--text-muted);
      cursor: pointer;
      padding: 0.3rem;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 4px;
      transition: color var(--transition-fast);
      min-width: 32px;
      min-height: 32px;
    }

    .modal-close-btn:hover {
      color: #fff;
    }

    .modal-body {
      padding: 1.25rem;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      flex: 1;
      -webkit-overflow-scrolling: touch;
    }

    /* Buttons (Exact v1) */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      padding: 0.5rem 0.9rem;
      border-radius: var(--radius-sm);
      font-family: var(--font-display);
      font-size: 0.85rem;
      font-weight: 700;
      border: 1px solid transparent;
      cursor: pointer;
      transition: all var(--transition-fast);
      text-decoration: none;
      white-space: nowrap;
      min-height: 38px;
      touch-action: manipulation;
      user-select: none;
      -webkit-user-select: none;
      box-sizing: border-box;
    }

    .btn > * {
      pointer-events: none;
    }

    .btn:active {
      transform: scale(0.96);
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--accent-red), #d61f3d) !important;
      color: #fff !important;
      border: 1px solid rgba(255, 42, 75, 0.5) !important;
      box-shadow: 0 4px 14px rgba(255, 42, 75, 0.35) !important;
      border-radius: var(--radius-sm) !important;
      font-family: var(--font-display) !important;
      font-size: 0.85rem !important;
      font-weight: 700 !important;
    }

    .btn-primary:hover {
      background: linear-gradient(135deg, #ff4763, #ff2a4b) !important;
      box-shadow: 0 6px 20px rgba(255, 42, 75, 0.5) !important;
    }

    .btn-cyan {
      background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(0, 240, 255, 0.08)) !important;
      color: var(--accent-cyan) !important;
      border: 1px solid rgba(0, 240, 255, 0.45) !important;
      border-radius: var(--radius-sm) !important;
      font-family: var(--font-display) !important;
      font-size: 0.78rem !important;
      font-weight: 700 !important;
      cursor: pointer;
    }

    .btn-cyan:hover {
      background: rgba(0, 240, 255, 0.25) !important;
      box-shadow: 0 0 16px rgba(0, 240, 255, 0.3) !important;
    }

    .btn-outline {
      background: rgba(255, 255, 255, 0.05);
      color: #f1f5f9;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
    }

    .btn-outline:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: var(--border-bright);
    }

    .btn-sm {
      padding: 0.35rem 0.65rem;
      font-size: 0.78rem;
      min-height: 32px;
      border-radius: var(--radius-sm);
    }

    /* Social Login Buttons & Divider (Exact v1) */
    .btn-social {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      width: 100%;
      min-height: 44px;
      padding: 0.65rem 1rem;
      border-radius: var(--radius-sm);
      font-size: 0.88rem;
      font-weight: 600;
      cursor: pointer;
      transition: filter 0.15s ease, transform 0.15s ease;
      border: none;
      outline: none;
      user-select: none;
      box-sizing: border-box;
      text-decoration: none;
      font-family: var(--font-sans);
    }

    .btn-social:hover {
      filter: brightness(0.95);
      transform: translateY(-1px);
    }

    .btn-social:active {
      transform: translateY(0);
    }

    .btn-social-kakao {
      background-color: #FEE500;
      color: #191919;
    }

    .btn-social-google {
      background-color: #FFFFFF;
      color: #3c4043;
      border: 1px solid rgba(0, 0, 0, 0.15);
    }

    .auth-divider {
      display: flex;
      align-items: center;
      text-align: center;
      margin: 0.85rem 0;
      color: var(--text-muted);
      font-size: 0.75rem;
    }

    .auth-divider::before,
    .auth-divider::after {
      content: '';
      flex: 1;
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .auth-divider span {
      padding: 0 0.65rem;
    }

    /* Form Inputs in Modals (Exact v1) */
    .form-group {
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }

    .form-label {
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--text-muted);
      font-family: var(--font-display);
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }

    .modal-card .form-input,
    #modal-auth .form-input {
      width: 100%;
      background: rgba(0, 0, 0, 0.4);
      border: 1px solid var(--border-bright);
      color: #fff;
      font-family: var(--font-sans) !important;
      font-size: 0.9rem !important;
      padding: 0.6rem 0.8rem !important;
      border-radius: var(--radius-sm) !important;
      outline: none !important;
      transition: border-color var(--transition-fast) !important;
      min-height: 42px !important;
      box-sizing: border-box !important;
    }

    .modal-card .form-input:focus,
    #modal-auth .form-input:focus {
      border-color: var(--accent-cyan) !important;
      box-shadow: 0 0 10px rgba(0, 240, 255, 0.25) !important;
    }

    /* Mobile Bottom Sheet (Exact v1) */
    @media (max-width: 768px) {
      .modal-overlay {
        padding: 0 !important;
        align-items: flex-end !important;
      }

      .modal-card {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 92dvh !important;
        max-height: 92vh !important;
        height: auto !important;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
        border-bottom: none !important;
        border-left: none !important;
        border-right: none !important;
        animation: sheetSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
      }

      .modal-drag-indicator {
        display: block !important;
      }

      .modal-header {
        position: sticky;
        top: 0;
        z-index: 20;
        background: #0d121c;
        padding: 0.75rem 1rem;
      }

      .modal-body {
        padding: 0.95rem 1rem;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
      }
    }

    @keyframes sheetSlideUp {
      from { transform: translateY(100%); }
      to { transform: translateY(0); }
    }
  
    /* =========================================================================
       LIGHT THEME TOKEN OVERRIDES (Soft Cool-Gray & High Contrast)
       ========================================================================= */
    html[data-theme="light"] {
      --bg-main: #f1f5f9;
      --bg-surface: #ffffff;
      --bg-card: #ffffff;
      --bg-card-hover: #f8fafc;
      --bg-glass: rgba(255, 255, 255, 0.95);

      --border-subtle: rgba(15, 23, 42, 0.09);
      --border-bright: rgba(15, 23, 42, 0.18);
      --border-strong: rgba(2, 132, 199, 0.4);

      --accent-red: #e11d48;
      --accent-cyan: #0284c7;
      --accent-green: #059669;
      --accent-orange: #d97706;
      --accent-amber: #d97706;

      --text-main: #0f172a;
      --text-muted: #334155;
      --text-dim: #475569;

      color-scheme: light;
    }

    /* Base Body & Layout */
    html[data-theme="light"] body {
      background-color: var(--bg-main) !important;
      background-image: 
        radial-gradient(ellipse at 50% 0%, rgba(2, 132, 199, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 85% 15%, rgba(225, 29, 72, 0.03) 0%, transparent 45%) !important;
      color: var(--text-main) !important;
    }

    /* Headings & High-Contrast Typography */
    html[data-theme="light"] h1,
    html[data-theme="light"] h2,
    html[data-theme="light"] h3,
    html[data-theme="light"] h4,
    html[data-theme="light"] h5,
    html[data-theme="light"] h6 {
      color: #0f172a !important;
    }

    /* Main Titles, Badges, Labels & Dynamic Telemetry Readings */
    html[data-theme="light"] .brand-title,
    html[data-theme="light"] .brand-text,
    html[data-theme="light"] .footer-brand-title,
    html[data-theme="light"] .section-title,
    html[data-theme="light"] .card-title,
    html[data-theme="light"] .graph-title,
    html[data-theme="light"] .modal-title,
    html[data-theme="light"] .article-title,
    html[data-theme="light"] .guide-h2,
    html[data-theme="light"] .catalog-hero h1,
    html[data-theme="light"] .session-track-name,
    html[data-theme="light"] .session-track-title,
    html[data-theme="light"] .stat-banner-val,
    html[data-theme="light"] .hud-big-lap-time,
    html[data-theme="light"] .hud-stat-val,
    html[data-theme="light"] .hud-select,
    html[data-theme="light"] .q-val,
    html[data-theme="light"] .big-ms,
    html[data-theme="light"] .sub-status,
    html[data-theme="light"] .lhm-circuit-name,
    html[data-theme="light"] .phm-circuit-name,
    html[data-theme="light"] .lap-history-title,
    html[data-theme="light"] .pit-history-title,
    html[data-theme="light"] .rank-card-title,
    html[data-theme="light"] .tire-psi-val,
    html[data-theme="light"] .calib-input,
    html[data-theme="light"] .pit-target-current-pill,
    html[data-theme="light"] .user-name-text,
    html[data-theme="light"] .policy-title,
    html[data-theme="light"] .ltf-main-title,
    html[data-theme="light"] .ltf-feat-content h4,
    html[data-theme="light"] .ltf-gallery-caption h5,
    html[data-theme="light"] .seo-info-title,
    html[data-theme="light"] .seo-feature-card h3,
    html[data-theme="light"] .seo-faq-section h3,
    html[data-theme="light"] .seo-faq-summary,
    html[data-theme="light"] .seo-faq-answer strong,
    html[data-theme="light"] .app-cta-banner h3,
    html[data-theme="light"] .dropdown-circuit-item,
    html[data-theme="light"] .filter-track-dropdown-btn,
    html[data-theme="light"] .filter-track-dropdown,
    html[data-theme="light"] .nav-more-menu-label,
    html[data-theme="light"] .nav-more-menu-item {
      color: #0f172a !important;
    }

    /* Paragraphs, descriptions, secondary text */
    html[data-theme="light"] .article-body,
    html[data-theme="light"] .article-body p,
    html[data-theme="light"] .article-body li,
    html[data-theme="light"] .markdown-rendered-body,
    html[data-theme="light"] .markdown-rendered-body p,
    html[data-theme="light"] .markdown-rendered-body li,
    html[data-theme="light"] .policy-card p,
    html[data-theme="light"] .section-desc,
    html[data-theme="light"] .guide-callout,
    html[data-theme="light"] .ltf-description,
    html[data-theme="light"] .ltf-feat-content p,
    html[data-theme="light"] .ltf-gallery-caption p,
    html[data-theme="light"] .seo-faq-answer,
    html[data-theme="light"] .seo-faq-formula,
    html[data-theme="light"] .guide-card-desc,
    html[data-theme="light"] .records-table td,
    html[data-theme="light"] .guide-table td {
      color: #1e293b !important;
    }

    html[data-theme="light"] .article-body strong,
    html[data-theme="light"] .markdown-rendered-body strong {
      color: #0f172a !important;
    }

    /* Captions, subtle labels, timestamps */
    html[data-theme="light"] .session-vehicle-inline,
    html[data-theme="light"] .session-title-sep,
    html[data-theme="light"] .section-subtitle,
    html[data-theme="light"] .q-label,
    html[data-theme="light"] .img-source-caption,
    html[data-theme="light"] .source-label,
    html[data-theme="light"] .img-alt-only,
    html[data-theme="light"] .dropdown-group-title,
    html[data-theme="light"] .dropdown-nearby-prompt,
    html[data-theme="light"] .nav-more-menu-sub,
    html[data-theme="light"] .footer-tagline,
    html[data-theme="light"] .site-footer p,
    html[data-theme="light"] .site-footer a,
    html[data-theme="light"] .policy-meta,
    html[data-theme="light"] .policy-meta span {
      color: #475569 !important;
    }

    html[data-theme="light"] .img-source-caption a {
      color: #0284c7 !important;
    }

    /* Badges */
    html[data-theme="light"] .brand-badge {
      color: #0284c7 !important;
      background: rgba(2, 132, 199, 0.12) !important;
      border: 1px solid rgba(2, 132, 199, 0.3) !important;
    }
    html[data-theme="light"] .footer-brand-badge {
      color: #0f172a !important;
      background: rgba(15, 23, 42, 0.08) !important;
      border: 1px solid rgba(15, 23, 42, 0.15) !important;
    }
    html[data-theme="light"] .policy-badge {
      color: #0284c7 !important;
      background: rgba(2, 132, 199, 0.1) !important;
      border-color: rgba(2, 132, 199, 0.25) !important;
    }

            /* Logo Image Swapping in Light Mode - Exactly matching Dark Mode */
    html[data-theme="light"] .brand-logo-img {
      content: url('/v1/logo-light.png?v=7');
      height: 26px !important;
      width: auto !important;
      max-width: 110px !important;
      object-fit: contain !important;
      filter: none !important;
      box-shadow: none !important;
    }
    html[data-theme="light"] .footer-brand-logo {
      content: url('/v1/logo-light.png?v=7');
      height: 26px !important;
      width: auto !important;
      max-width: 90px !important;
      object-fit: contain !important;
      vertical-align: middle !important;
      filter: none !important;
      box-shadow: none !important;
    }

    /* Navigation & Topbar */
    html[data-theme="light"] .topbar,
    html[data-theme="light"] .live-header {
      background: rgba(255, 255, 255, 0.94) !important;
      border-bottom: 1px solid var(--border-subtle);
      box-shadow: 0 1px 12px rgba(15, 23, 42, 0.05);
    }
    html[data-theme="light"] .nav-tabs-desktop {
      background: rgba(15, 23, 42, 0.04) !important;
      border-color: rgba(15, 23, 42, 0.08) !important;
    }
    html[data-theme="light"] .user-pill {
      background: rgba(15, 23, 42, 0.04) !important;
      border-color: rgba(15, 23, 42, 0.12) !important;
    }
    html[data-theme="light"] .user-pill:hover {
      background: rgba(2, 132, 199, 0.08) !important;
      border-color: var(--accent-cyan) !important;
    }
    html[data-theme="light"] .nav-tab-btn {
      color: var(--text-muted) !important;
    }
    html[data-theme="light"] .nav-tab-btn:hover {
      color: #0f172a !important;
      background: rgba(15, 23, 42, 0.06) !important;
    }
    html[data-theme="light"] .nav-tab-btn.active {
      color: #0284c7 !important;
      background: rgba(2, 132, 199, 0.1) !important;
      border-color: #0284c7 !important;
      box-shadow: 0 0 12px rgba(2, 132, 199, 0.15) !important;
    }

    /* Cards, Panels, Modals */
    html[data-theme="light"] .session-card,
    html[data-theme="light"] .card,
    html[data-theme="light"] .graph-card,
    html[data-theme="light"] .records-card,
    html[data-theme="light"] .stat-card,
    html[data-theme="light"] .ble-status-tile,
    html[data-theme="light"] .control-strip,
    html[data-theme="light"] .app-cta-banner,
    html[data-theme="light"] .article-share-card,
    html[data-theme="light"] .policy-card,
    html[data-theme="light"] .guide-card {
      background: #ffffff !important;
      border-color: rgba(15, 23, 42, 0.09) !important;
      box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04) !important;
      color: #0f172a !important;
    }
    html[data-theme="light"] .session-card:hover,
    html[data-theme="light"] .guide-card:hover {
      background: #f8fafc !important;
      border-color: rgba(2, 132, 199, 0.4) !important;
      box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08) !important;
    }
    /* Auth Modal Tabs & Controls in Light Mode */
    html[data-theme="light"] .auth-toggle-tabs {
      background: #f1f5f9 !important;
      border: 1px solid rgba(15, 23, 42, 0.1) !important;
    }
    html[data-theme="light"] .auth-tab-btn {
      color: #64748b !important;
      background: transparent !important;
    }
    html[data-theme="light"] .auth-tab-btn:hover {
      color: #0f172a !important;
    }
    html[data-theme="light"] .auth-tab-btn.active {
      background: #0284c7 !important;
      color: #ffffff !important;
      box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25) !important;
    }
    html[data-theme="light"] #modal-auth .form-input,
    html[data-theme="light"] #modal-auth input {
      background: #ffffff !important;
      border: 1px solid rgba(15, 23, 42, 0.18) !important;
      color: #0f172a !important;
    }
    html[data-theme="light"] #modal-auth .form-input::placeholder,
    html[data-theme="light"] #modal-auth input::placeholder {
      color: #94a3b8 !important;
    }
    html[data-theme="light"] #modal-auth .form-label {
      color: #334155 !important;
      font-weight: 700 !important;
    }
    html[data-theme="light"] #modal-auth .auth-divider span {
      background: #ffffff !important;
      color: #64748b !important;
    }
    html[data-theme="light"] #modal-auth .auth-divider::before {
      border-color: rgba(15, 23, 42, 0.1) !important;
    }

    html[data-theme="light"] .modal-card {
      background: #ffffff !important;
      border-color: rgba(15, 23, 42, 0.14) !important;
      box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18) !important;
      color: #0f172a !important;
    }
    html[data-theme="light"] .modal-header,
    html[data-theme="light"] .modal-footer {
      background: #f8fafc !important;
      border-color: rgba(15, 23, 42, 0.08) !important;
    }

    /* Form Controls & Inputs */
    html[data-theme="light"] .form-input,
    html[data-theme="light"] .form-select,
    html[data-theme="light"] .form-textarea,
    html[data-theme="light"] .search-input,
    html[data-theme="light"] .dropdown-search-input,
    html[data-theme="light"] .hud-track-search-input,
    html[data-theme="light"] .input-stepper-wrap input {
      background: #ffffff !important;
      border-color: rgba(15, 23, 42, 0.18) !important;
      color: #0f172a !important;
    }
    html[data-theme="light"] .form-input::placeholder,
    html[data-theme="light"] .form-textarea::placeholder,
    html[data-theme="light"] .search-input::placeholder,
    html[data-theme="light"] .dropdown-search-input::placeholder,
    html[data-theme="light"] .hud-track-search-input::placeholder {
      color: #64748b !important;
    }
    html[data-theme="light"] .form-input:focus,
    html[data-theme="light"] .form-select:focus,
    html[data-theme="light"] .form-textarea:focus,
    html[data-theme="light"] .search-input:focus {
      background: #ffffff !important;
      border-color: #0284c7 !important;
      box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
    }

    /* Buttons */
    html[data-theme="light"] .btn-outline {
      background: #ffffff !important;
      border-color: rgba(15, 23, 42, 0.22) !important;
      color: #0f172a !important;
    }
    html[data-theme="light"] .btn-outline:hover {
      background: #f1f5f9 !important;
      color: #0284c7 !important;
      border-color: #0284c7 !important;
    }
    html[data-theme="light"] .btn-step {
      background: #e2e8f0 !important;
      color: #0f172a !important;
      border-color: rgba(15, 23, 42, 0.15) !important;
    }
    html[data-theme="light"] .icon-btn {
      background: rgba(15, 23, 42, 0.04) !important;
      border-color: rgba(15, 23, 42, 0.1) !important;
      color: #475569 !important;
    }
    html[data-theme="light"] .icon-btn:hover {
      background: rgba(15, 23, 42, 0.08) !important;
      color: #0f172a !important;
    }
    html[data-theme="light"] .mode-btn {
      background: rgba(15, 23, 42, 0.04) !important;
      color: #475569 !important;
      border-color: rgba(15, 23, 42, 0.08) !important;
    }
    html[data-theme="light"] .mode-btn.active {
      background: #0284c7 !important;
      color: #ffffff !important;
      border-color: #0284c7 !important;
      box-shadow: 0 2px 10px rgba(2, 132, 199, 0.25) !important;
    }
    html[data-theme="light"] .filter-chip {
      background: #ffffff !important;
      border-color: rgba(15, 23, 42, 0.15) !important;
      color: #334155 !important;
    }
    html[data-theme="light"] .filter-chip:hover {
      border-color: #0284c7 !important;
      color: #0f172a !important;
    }
    html[data-theme="light"] .filter-chip.active {
      background: #0284c7 !important;
      color: #ffffff !important;
      border-color: #0284c7 !important;
    }

    /* Menu Popup & Navigation */
    html[data-theme="light"] .nav-more-menu-panel {
      background: rgba(255, 255, 255, 0.98) !important;
      border-color: rgba(15, 23, 42, 0.12) !important;
      box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14) !important;
    }
    html[data-theme="light"] .nav-more-menu-header {
      border-color: rgba(15, 23, 42, 0.08) !important;
    }
    html[data-theme="light"] .nav-more-menu-item {
      background: rgba(15, 23, 42, 0.02) !important;
      border-color: rgba(15, 23, 42, 0.06) !important;
      color: #0f172a !important;
    }
    html[data-theme="light"] .nav-more-menu-item:hover {
      background: rgba(15, 23, 42, 0.05) !important;
      border-color: #0284c7 !important;
      color: #0284c7 !important;
    }
    html[data-theme="light"] .nav-more-menu-arrow {
      color: #64748b !important;
    }
    html[data-theme="light"] .mobile-bottom-nav {
      background: rgba(255, 255, 255, 0.95) !important;
      border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    }
    html[data-theme="light"] .mob-nav-item {
      color: #64748b !important;
    }
    html[data-theme="light"] .mob-nav-item.active {
      color: #0284c7 !important;
    }
    html[data-theme="light"] footer.site-footer,
    html[data-theme="light"] .app-footer {
      background: #e2e8f0 !important;
      border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
      color: #475569 !important;
    }
    html[data-theme="light"] .footer-brand,
    html[data-theme="light"] .footer-brand span {
      color: #0f172a !important;
    }
    html[data-theme="light"] .footer-nav-links a:hover {
      color: #0284c7 !important;
    }
    html[data-theme="light"] .footer-nav-links .footer-link-active {
      color: #0284c7 !important;
      font-weight: 700;
    }
    html[data-theme="light"] .footer-nav-links .footer-link-highlight {
      color: #e11d48 !important;
    }
    html[data-theme="light"] .footer-nav-links .footer-link-highlight:hover {
      color: #be123c !important;
    }

    /* Training Page Specifics */
    html[data-theme="light"] .q-stat {
      background: rgba(15, 23, 42, 0.03) !important;
      border-color: rgba(15, 23, 42, 0.07) !important;
    }
    html[data-theme="light"] .start-pill-btn {
      color: #ffffff !important;
    }

    /* Desktop Theme Toggle Button */
    .btn-theme-toggle-desktop {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: var(--radius-sm, 8px);
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
      color: var(--text-muted, #94a3b8);
      cursor: pointer;
      transition: all var(--transition-fast, 0.15s ease);
      flex-shrink: 0;
    }
    .btn-theme-toggle-desktop:hover {
      background: rgba(255, 255, 255, 0.1);
      color: var(--text-main, #fff);
      border-color: var(--border-bright, rgba(255, 255, 255, 0.2));
    }
    html[data-theme="light"] .btn-theme-toggle-desktop {
      background: rgba(15, 23, 42, 0.04);
      border-color: rgba(15, 23, 42, 0.12);
      color: #475569;
    }
    html[data-theme="light"] .btn-theme-toggle-desktop:hover {
      background: rgba(15, 23, 42, 0.08);
      color: #0f172a;
    }
    @media (max-width: 768px) {
      .btn-theme-toggle-desktop {
        display: none !important;
      }
    }

    /* Universal Toggle in header for pages without full popup menu */
    .btn-theme-toggle-universal {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      border-radius: var(--radius-sm, 8px);
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
      color: var(--text-muted, #94a3b8);
      cursor: pointer;
      transition: all var(--transition-fast, 0.15s ease);
      flex-shrink: 0;
    }
    .btn-theme-toggle-universal:hover {
      background: rgba(255, 255, 255, 0.12);
      color: var(--text-main, #fff);
    }
    html[data-theme="light"] .btn-theme-toggle-universal {
      background: rgba(15, 23, 42, 0.04);
      border-color: rgba(15, 23, 42, 0.12);
      color: #475569;
    }
    html[data-theme="light"] .btn-theme-toggle-universal:hover {
      background: rgba(15, 23, 42, 0.08);
      color: #0f172a;
    }

    /* Theme Switch Inside Menu Panel (Mobile & Desktop) */
    .nav-more-menu-theme-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      padding: 0.55rem 0.65rem;
      border-radius: var(--radius-sm, 8px);
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
      cursor: pointer;
      transition: all var(--transition-fast, 0.15s ease);
      margin-top: 0.2rem;
      user-select: none;
    }
    .nav-more-menu-theme-info {
      display: flex;
      align-items: center;
      gap: 0.7rem;
      flex: 1;
      min-width: 0;
    }
    .nav-more-menu-theme-row:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: var(--accent-cyan, #00f0ff);
    }
    html[data-theme="light"] .nav-more-menu-theme-row {
      background: rgba(15, 23, 42, 0.03);
      border-color: rgba(15, 23, 42, 0.08);
    }
    html[data-theme="light"] .nav-more-menu-theme-row:hover {
      background: rgba(15, 23, 42, 0.06);
      border-color: #0284c7;
    }
    .theme-switch-capsule {
      display: inline-flex;
      align-items: center;
      position: relative;
      width: 50px;
      height: 26px;
      border-radius: 9999px;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid var(--border-bright, rgba(255, 255, 255, 0.2));
      padding: 2px;
      transition: background 0.25s ease, border-color 0.25s ease;
    }
    html[data-theme="light"] .theme-switch-capsule {
      background: #e2e8f0;
      border-color: rgba(15, 23, 42, 0.15);
    }
    .theme-switch-thumb,
    .theme-switch-knob {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: var(--accent-cyan, #00f0ff);
      color: #06090e;
      transform: translateX(0);
      transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease, color 0.25s ease;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    }
    html[data-theme="light"] .theme-switch-thumb,
    html[data-theme="light"] .theme-switch-knob {
      transform: translateX(24px);
      background: #d97706;
      color: #ffffff;
    }
    .theme-icon-indicator {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.72rem;
    }
    .icon-sun { display: none; }
    .icon-moon { display: inline-block; }
    html[data-theme="light"] .icon-sun { display: inline-block; }
    html[data-theme="light"] .icon-moon { display: none; }
  
    /* =========================================================================
       GUIDE ARTICLE LIGHT MODE POLISH (Editorial Seamlessness & High Contrast)
       ========================================================================= */
    html[data-theme="light"] .article-header {
      background: transparent !important;
      border: none !important;
      border-bottom: 1px solid rgba(15, 23, 42, 0.09) !important;
      box-shadow: none !important;
      border-radius: 0 !important;
      padding: 0 0 1.5rem 0 !important;
      margin-bottom: 2rem !important;
    }
    html[data-theme="light"] .article-title {
      color: #0f172a !important;
    }
    html[data-theme="light"] .article-author-row {
      color: #64748b !important;
    }
    html[data-theme="light"] .article-author-row strong {
      color: #0f172a !important;
    }
    html[data-theme="light"] .author-avatar {
      background: #0284c7 !important;
      color: #ffffff !important;
      box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25) !important;
    }
    html[data-theme="light"] .breadcrumbs,
    html[data-theme="light"] .breadcrumbs a,
    html[data-theme="light"] .breadcrumbs span {
      color: #64748b !important;
    }
    html[data-theme="light"] .breadcrumbs a:hover {
      color: #0284c7 !important;
    }

    /* Cyan Badges & Inline Code Readability */
    html[data-theme="light"] .badge-cyan {
      background: #e0f2fe !important;
      color: #0369a1 !important;
      border: 1px solid rgba(2, 132, 199, 0.28) !important;
      font-weight: 700 !important;
    }
    html[data-theme="light"] .article-body code,
    html[data-theme="light"] code {
      background: #e0f2fe !important;
      color: #0369a1 !important;
      border: 1px solid rgba(2, 132, 199, 0.28) !important;
      font-weight: 700 !important;
      padding: 0.15rem 0.45rem !important;
      border-radius: 4px !important;
    }
    html[data-theme="light"] .article-body a {
      color: #0284c7 !important;
      font-weight: 600 !important;
    }
    html[data-theme="light"] .article-body a:hover {
      color: #0369a1 !important;
    }
    html[data-theme="light"] .article-body .guide-h3 {
      color: #0369a1 !important;
      font-weight: 800 !important;
    }

    /* Callout & Quote Boxes (No black on black) */
    html[data-theme="light"] .guide-callout {
      background: #f8fafc !important;
      border: 1px solid rgba(15, 23, 42, 0.1) !important;
      border-left: 4px solid #0284c7 !important;
      color: #1e293b !important;
      box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
    }
    html[data-theme="light"] .guide-callout p,
    html[data-theme="light"] .guide-callout span,
    html[data-theme="light"] .guide-callout strong,
    html[data-theme="light"] .guide-callout em,
    html[data-theme="light"] .guide-callout blockquote {
      color: inherit !important;
    }
    html[data-theme="light"] .guide-callout.callout-warning {
      background: #fffbeb !important;
      border: 1px solid rgba(217, 119, 6, 0.25) !important;
      border-left: 4px solid #d97706 !important;
      color: #92400e !important;
    }
    html[data-theme="light"] .guide-callout.callout-warning p,
    html[data-theme="light"] .guide-callout.callout-warning span,
    html[data-theme="light"] .guide-callout.callout-warning strong {
      color: #92400e !important;
    }
    html[data-theme="light"] .guide-callout.callout-tip {
      background: #f0fdf4 !important;
      border: 1px solid rgba(5, 150, 105, 0.25) !important;
      border-left: 4px solid #059669 !important;
      color: #166534 !important;
    }
    html[data-theme="light"] .guide-callout.callout-tip p,
    html[data-theme="light"] .guide-callout.callout-tip span,
    html[data-theme="light"] .guide-callout.callout-tip strong {
      color: #166534 !important;
    }

    /* Pre & Code Blocks */
    html[data-theme="light"] .article-body pre {
      background: #f8fafc !important;
      border: 1px solid rgba(15, 23, 42, 0.12) !important;
      color: #0f172a !important;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
    }
    html[data-theme="light"] .article-body pre code {
      color: #0f172a !important;
      background: transparent !important;
      border: none !important;
    }

    /* Tables */
    html[data-theme="light"] .guide-table th {
      background: #f1f5f9 !important;
      color: #0f172a !important;
      border-bottom: 2px solid rgba(15, 23, 42, 0.12) !important;
    }
    html[data-theme="light"] .guide-table td {
      border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
      color: #1e293b !important;
    }
    html[data-theme="light"] .guide-table tr:nth-child(even) {
      background: rgba(15, 23, 42, 0.02) !important;
    }

    /* Driver Profile Modal (#modal-user-profile) Light Mode Visibility & High Contrast */
    html[data-theme="light"] #modal-user-profile .modal-card {
      background: #ffffff !important;
      border: 1px solid rgba(15, 23, 42, 0.14) !important;
      box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18) !important;
      color: #0f172a !important;
    }
    html[data-theme="light"] #modal-user-profile .modal-header {
      background: #f8fafc !important;
      border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    }
    html[data-theme="light"] #modal-user-profile .modal-title {
      color: #0f172a !important;
    }
    html[data-theme="light"] #modal-user-profile .modal-close-btn {
      color: #64748b !important;
    }
    html[data-theme="light"] #modal-user-profile .modal-close-btn:hover {
      color: #0f172a !important;
    }
    html[data-theme="light"] #modal-user-profile #prof-name {
      color: #0f172a !important;
    }
    html[data-theme="light"] #modal-user-profile #prof-email {
      color: #64748b !important;
    }
    html[data-theme="light"] #modal-user-profile #prof-class-badge {
      background: #ffe4e6 !important;
      border-color: #fda4af !important;
      color: #e11d48 !important;
    }
    html[data-theme="light"] #modal-user-profile #prof-license-badge {
      background: #e0f2fe !important;
      border-color: #bae6fd !important;
      color: #0284c7 !important;
    }
    html[data-theme="light"] #modal-user-profile .driver-nick-card,
    html[data-theme="light"] #modal-user-profile div[style*="rgba(15, 23, 42"],
    html[data-theme="light"] #modal-user-profile div[style*="rgba(15,23,42"] {
      background: #f0f9ff !important;
      border: 1px solid rgba(2, 132, 199, 0.28) !important;
      box-shadow: 0 2px 10px rgba(2, 132, 199, 0.06) !important;
    }
    html[data-theme="light"] #modal-user-profile label,
    html[data-theme="light"] #modal-user-profile label[style*="color:var(--accent-cyan)"] {
      color: #0284c7 !important;
    }
    html[data-theme="light"] #modal-user-profile span[style*="color:var(--text-dim)"] {
      color: #64748b !important;
    }
    html[data-theme="light"] #modal-user-profile #prof-nickname-input {
      background: #ffffff !important;
      border: 1.5px solid rgba(15, 23, 42, 0.2) !important;
      color: #0f172a !important;
      box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    }
    html[data-theme="light"] #modal-user-profile #prof-nickname-input:focus {
      border-color: #0284c7 !important;
      box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
    }
    html[data-theme="light"] #modal-user-profile #prof-nickname-input::placeholder {
      color: #94a3b8 !important;
    }
    html[data-theme="light"] #modal-user-profile .btn-cyan,
    html[data-theme="light"] #modal-user-profile #btn-save-driver-nickname {
      background: #0284c7 !important;
      color: #ffffff !important;
      border: 1px solid #0284c7 !important;
      box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25) !important;
    }
    html[data-theme="light"] #modal-user-profile .btn-cyan:hover,
    html[data-theme="light"] #modal-user-profile #btn-save-driver-nickname:hover {
      background: #0369a1 !important;
      border-color: #0369a1 !important;
      box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35) !important;
      color: #ffffff !important;
    }
    html[data-theme="light"] #modal-user-profile button[onclick*="resetDriverNicknameToDefault"] {
      color: #0284c7 !important;
      font-weight: 600 !important;
    }
    html[data-theme="light"] #modal-user-profile button[onclick*="resetDriverNicknameToDefault"]:hover {
      color: #0369a1 !important;
    }
    html[data-theme="light"] #modal-user-profile .driver-stats-grid,
    html[data-theme="light"] #modal-user-profile div[style*="background:rgba(0,0,0"],
    html[data-theme="light"] #modal-user-profile div[style*="background: rgba(0, 0, 0"] {
      background: #f8fafc !important;
      border: 1px solid rgba(15, 23, 42, 0.12) !important;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
    }
    html[data-theme="light"] #modal-user-profile #prof-session-count {
      color: #0284c7 !important;
      font-weight: 800 !important;
    }
    html[data-theme="light"] #modal-user-profile #prof-best-lap {
      color: #059669 !important;
      font-weight: 800 !important;
    }
    html[data-theme="light"] #modal-user-profile #prof-auth-type,
    html[data-theme="light"] #modal-user-profile #prof-joined-date {
      color: #0f172a !important;
      font-weight: 700 !important;
    }
    html[data-theme="light"] #modal-user-profile .modal-body span[style*="color:var(--text-muted)"],
    html[data-theme="light"] #modal-user-profile .modal-body span[style*="color: var(--text-muted)"] {
      color: #64748b !important;
      font-weight: 600 !important;
    }
    html[data-theme="light"] #modal-user-profile div[style*="border-bottom:1px solid var(--border-subtle)"],
    html[data-theme="light"] #modal-user-profile div[style*="border-top:1px solid var(--border-subtle)"] {
      border-color: rgba(15, 23, 42, 0.08) !important;
    }
    html[data-theme="light"] #modal-user-profile div[style*="border-top:1px solid rgba(255,255,255,0.06)"],
    html[data-theme="light"] #modal-user-profile div[style*="border-top: 1px solid rgba(255, 255, 255, 0.06)"] {
      border-top-color: rgba(15, 23, 42, 0.08) !important;
    }
    html[data-theme="light"] #modal-user-profile a[href*="privacy.html"] {
      color: #475569 !important;
    }
    html[data-theme="light"] #modal-user-profile a[href*="privacy.html"]:hover {
      color: #0284c7 !important;
    }
    html[data-theme="light"] #modal-user-profile a[href*="delete-account.html"] {
      color: #e11d48 !important;
    }
    html[data-theme="light"] #modal-user-profile a[href*="#profile"],
    html[data-theme="light"] #modal-user-profile .btn-outline {
      background: #ffffff !important;
      border: 1px solid rgba(15, 23, 42, 0.2) !important;
      color: #0f172a !important;
    }
    html[data-theme="light"] #modal-user-profile a[href*="#profile"]:hover,
    html[data-theme="light"] #modal-user-profile .btn-outline:hover {
      background: #f1f5f9 !important;
      color: #0284c7 !important;
      border-color: #0284c7 !important;
    }
