﻿
/* ═══════════════════════════════════════════
   TOP STATS BAR
═══════════════════════════════════════════ */
:root {
  --topbar-h: 0px;
}
/* ═══════════════════════════════════════════
   GLOBAL SHELL & LIGHT/DARK VARIABLES
═══════════════════════════════════════════ */
:root {
  /* DARK MODE (Default) */
  --plat-bg:      #0a0b10;
  --plat-nav-bg:  rgba(10,11,16,0.85);
  --plat-surface: #111319;
  --plat-surf2:   #181c28;
  --plat-surf3:   #1f2436;
  --plat-border:  rgba(255,255,255,0.07);
  --plat-text:    #eaecf4;
  --plat-muted:   #6b7492;
  --plat-accent:  #6c8ff5;
  --plat-accent2: #a57af5;
  --plat-green:   #3ecf8e;
  --shadow-card:  0 4px 24px rgba(0,0,0,0.35), 0 1px 4px rgba(0,0,0,0.2);
  --shadow-hover: 0 12px 48px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.3);
  --overlay-op:   0.5;

  --plat-nav-h:   64px;
  --plat-r:       18px;
  --plat-r-sm:    12px;
}

html[data-theme="light"] {
  /* LIGHT MODE */
  --plat-bg:      #f4f6f9;
  --plat-nav-bg:  rgba(255,255,255,0.85);
  --plat-surface: #ffffff;
  --plat-surf2:   #e9ecef;
  --plat-surf3:   #dee2e6;
  --plat-border:  rgba(0,0,0,0.08);
  --plat-text:    #111319;
  --plat-muted:   #5a657c;
  --plat-accent:  #4f75f0;
  --plat-accent2: #8a58f0;
  --plat-green:   #15803d;
  --shadow-card:  0 4px 20px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.03);
  --shadow-hover: 0 12px 30px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --overlay-op:   0.15;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--plat-bg);
  color: var(--plat-text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img, video, iframe, svg {
  max-width: 100%;
  height: auto;
}

button, .card-btn, .nav-btn, .theme-btn, .sd-next-btn, .sd-restart-btn {
  min-height: 42px;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: var(--overlay-op);
  transition: opacity 0.3s;
}

/* ═══════ PLATFORM NAV ═══════ */
#plat-nav {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 9000;
  height: var(--plat-nav-h);
  background: var(--plat-nav-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--plat-border);
  display: flex; align-items: center;
  padding: 0 28px; gap: 20px;
  transition: all .3s;
}

.plat-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Clash Display', sans-serif;
  font-size: 16px; font-weight: 800;
  color: var(--plat-text);
  white-space: nowrap; cursor: pointer; text-decoration: none;
  letter-spacing: -0.3px;
}
.brand-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--plat-accent), var(--plat-accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(108,143,245,0.35);
  color: #fff;
}
.brand-name span { color: var(--plat-accent); }

.plat-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--plat-muted); flex: 1;
  overflow: hidden;
}
.plat-breadcrumb .sep { opacity: 0.4; }
.plat-breadcrumb .crumb-subject { color: var(--plat-text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.plat-nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.mobile-menu-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--plat-text);
  background: var(--plat-surface);
  border: 1px solid var(--plat-border);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.nav-btn {
  display: flex; align-items: center; gap: 7px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 10px; cursor: pointer; border: none;
  transition: all .2s;
}
.nav-btn-home { background: var(--plat-surf2); color: var(--plat-muted); border: 1px solid var(--plat-border); }
.nav-btn-home:hover { color: var(--plat-text); background: var(--plat-surf3); border-color: var(--plat-accent); }
.nav-btn-theme { background: var(--plat-surface); color: var(--plat-text); border: 1px solid var(--plat-border); font-size: 14px; padding: 7px 10px; }
.nav-btn-theme:hover { border-color: var(--plat-accent); transform: scale(1.05); }

/* ═══════ VIEWS ═══════ */
#view-home {
  position: relative; z-index: 1;
  min-height: 100vh;
  padding-top: calc(var(--topbar-h) + var(--plat-nav-h) + 40px);
  padding-bottom: 60px;
}
#view-subject {
  position: relative; z-index: 1;
  min-height: 100vh;
  padding-top: calc(var(--topbar-h) + var(--plat-nav-h));
  display: none;
}

/* ═══════ HOME — HERO ═══════ */
.home-hero {
  text-align: center;
  position: relative;
  margin-bottom: 50px;
  padding: 0 20px;
}
.home-hero::before {
  content: '';
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 90vw; max-width: 900px; height: 400px;
  background: radial-gradient(ellipse, rgba(108,143,245,0.12) 0%, transparent 65%);
  pointer-events: none; z-index: -1;
}

.home-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--plat-accent);
  background: rgba(108,143,245,0.1); border: 1px solid rgba(108,143,245,0.25);
  padding: 5px 15px; border-radius: 99px; margin-bottom: 24px;
}
.home-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--plat-green); animation: pulseGreen 2s infinite; }
@keyframes pulseGreen { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }

.home-title {
  font-family: 'Clash Display', sans-serif; font-size: clamp(32px, 6vw, 64px);
  font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 18px;
}
.home-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--plat-accent) 0%, var(--plat-accent2) 60%, #e87cf5 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.home-sub { font-size: 16px; color: var(--plat-muted); max-width: 500px; margin: 0 auto 40px; line-height: 1.75; }

.owner-signature {
  display: inline-block;
  margin: 0 auto 28px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--plat-accent);
  background: rgba(108,143,245,0.1);
  border: 1px solid rgba(108,143,245,0.3);
}

.home-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.home-stat { text-align: center; }
.home-stat-n {
  font-family: 'Clash Display', sans-serif; font-size: 30px; font-weight: 800;
  background: linear-gradient(135deg, var(--plat-accent), var(--plat-accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.home-stat-l { font-size: 12px; color: var(--plat-muted); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ═══════ SUBJECT GRID ═══════ */
.subjects-section { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.subjects-label {
  font-family: 'Clash Display', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--plat-muted); margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.subjects-label::after { content:''; flex:1; height:1px; background: var(--plat-border); }
.subjects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }

/* ═══════ SUBJECT CARD ═══════ */
.subj-card {
  background: var(--plat-surface); border: 1px solid var(--plat-border);
  border-radius: var(--plat-r); padding: 28px; cursor: default;
  box-shadow: var(--shadow-card);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden; animation: cardIn .5s ease both;
}
.subj-card::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 30% 0%, rgba(108,143,245,0.08) 0%, transparent 60%);
}
.subj-card > * { position: relative; z-index: 1; }
.subj-card:not(.coming-soon):hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-hover); border-color: rgba(108,143,245,0.3); }

@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }

.card-icon-wrap {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 18px; border: 1px solid rgba(255,255,255,0.1);
}
.card-tag { display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 2px 8px; border-radius: 5px; margin-bottom: 10px; }
.card-title { font-family: 'Clash Display', sans-serif; font-size: 17px; font-weight: 800; letter-spacing: -0.4px; color: var(--plat-text); margin-bottom: 8px; }
.card-desc { font-size: 13px; color: var(--plat-muted); line-height: 1.65; margin-bottom: 20px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.card-chip { font-size: 10.5px; font-weight: 500; color: var(--plat-muted); background: var(--plat-surf2); border: 1px solid var(--plat-border); padding: 3px 9px; border-radius: 6px; }

.card-footer { display: flex; align-items: center; justify-content: space-between; }
.card-progress { font-size: 11px; color: var(--plat-muted); display: flex; align-items: center; gap: 6px; }
.progress-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--plat-surf3); }
.progress-dot.done { background: var(--plat-green); }

.card-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.card-btn {
  display: inline-flex; align-items: center; gap: 6px; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600;
  padding: 8px 12px; border-radius: 10px; cursor: pointer; border: 1.5px solid transparent; transition: all .25s; white-space: nowrap;
}
.card-btn-review { background: var(--plat-surf2); color: var(--plat-muted); border-color: var(--plat-border); }
.card-btn-review:hover { background: var(--plat-surf3); color: var(--plat-text); border-color: rgba(108,143,245,0.45); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(108,143,245,0.18); }
.card-btn-questions { background: rgba(108,143,245,0.1); color: var(--plat-accent); border-color: rgba(108,143,245,0.3); }
.card-btn-questions:hover { background: var(--plat-accent); color: #fff; border-color: var(--plat-accent); transform: translateY(-2px); box-shadow: 0 4px 18px rgba(108,143,245,0.35); }
.card-btn-code-review { background: rgba(45, 212, 191, 0.12); color: #2dd4bf; border-color: rgba(45, 212, 191, 0.35); }
.card-btn-code-review:hover { background: #2dd4bf; color: #07201c; border-color: #2dd4bf; transform: translateY(-2px); box-shadow: 0 4px 18px rgba(45,212,191,0.3); }

.subj-card.coming-soon { opacity: 0.55; cursor: default; pointer-events: none; }
.coming-badge { position: absolute; top: 18px; right: 18px; font-size: 9.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; background: var(--plat-surf3); color: var(--plat-muted); border: 1px solid var(--plat-border); z-index: 2; }

/* ═══════ BACK BAR ═══════ */
.back-bar { background: var(--plat-surface); border-bottom: 1px solid var(--plat-border); padding: 10px 28px; display: flex; align-items: center; gap: 14px; }
.back-bar-btn { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--plat-muted); cursor: pointer; border: none; background: none; transition: color .2s; padding: 4px 0; }
.back-bar-btn:hover { color: var(--plat-text); }
.back-bar-btn svg { transition: transform .2s; }
.back-bar-btn:hover svg { transform: translateX(-3px); }
.back-bar-subj { font-family: 'Clash Display', sans-serif; font-size: 14px; font-weight: 700; color: var(--plat-text); }
.back-bar-sep { color: var(--plat-border); }

.page-enter { animation: pageIn .45s cubic-bezier(.22,1,.36,1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--plat-bg); }
::-webkit-scrollbar-thumb { background: var(--plat-surf3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--plat-muted); }

@media(max-width:600px) {
  #plat-nav { padding: 0 16px; }
  .subjects-section { padding: 0 16px 60px; }
  .back-bar { padding: 10px 16px; }
  .card-actions { flex-direction: column; gap: 6px; }
  .card-btn { width: 100%; justify-content: center; }
}

@media (max-width: 768px) {
  #view-home {
    padding-top: calc(var(--topbar-h) + var(--plat-nav-h) + 28px);
  }

  .home-sub {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 28px;
  }

  .owner-signature {
    font-size: 11.5px;
    margin-bottom: 22px;
  }

  .home-stats {
    gap: 18px;
  }

  .subjects-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
  }

  .subj-card {
    padding: 20px;
    border-radius: 16px;
  }

  .card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .card-progress {
    font-size: 12px;
  }

  .card-actions {
    width: 100%;
  }

  .card-btn {
    flex: 1;
    justify-content: center;
    font-size: 13px;
  }

  .back-bar {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .back-bar-subj {
    width: 100%;
    font-size: 13px;
  }

  #quiz-guide .hero,
  #premium-guide .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  #quiz-guide main,
  #premium-guide .page {
    padding-left: 14px;
    padding-right: 14px;
  }

  #quiz-guide .sd-quiz-shell,
  #quiz-guide .mcq-item,
  #quiz-guide .card,
  #premium-guide .card,
  #premium-guide .pattern-card,
  #premium-guide details {
    padding: 16px;
  }

  #quiz-guide .sd-question-row {
    gap: 8px;
  }

  #quiz-guide .sd-qtext {
    font-size: 18px;
    line-height: 1.45;
  }

  #quiz-guide .sd-option {
    padding: 12px 13px;
    font-size: 13px;
  }

  #quiz-guide .score-bar {
    flex-wrap: wrap;
    padding: 14px;
  }

  #premium-guide .compare-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  #premium-guide .compare-table th,
  #premium-guide .compare-table td {
    padding: 8px 9px;
    font-size: 12.5px;
  }

  #premium-guide .flow {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  #premium-guide .flow-step {
    flex: 0 0 auto;
  }
}

@media (max-width: 520px) {
  #plat-nav {
    gap: 10px;
    padding: 0 12px;
  }

  .brand-name {
    display: none;
  }

  .plat-breadcrumb {
    display: none !important;
  }

  .nav-btn-home {
    padding: 7px 10px;
    font-size: 12px;
  }

  .nav-btn-theme {
    min-width: 42px;
    justify-content: center;
    padding: 7px;
  }

  .subjects-grid {
    grid-template-columns: 1fr;
  }

  .home-eyebrow {
    font-size: 10px;
    letter-spacing: 0.8px;
  }

  .home-title {
    font-size: clamp(28px, 9vw, 40px);
    letter-spacing: -1px;
  }

  #quiz-guide .hero h1,
  #premium-guide .hero h1 {
    font-size: clamp(24px, 9vw, 34px);
    letter-spacing: -0.8px;
  }

  #quiz-guide nav.subj-nav {
    padding: 0 12px;
  }

  #quiz-guide nav.subj-nav a {
    padding: 8px 10px;
    font-size: 12px;
  }

  #quiz-guide .sd-quiz-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  #quiz-guide .sd-progress-row {
    gap: 8px;
  }

  #quiz-guide .sd-progress-num {
    min-width: 50px;
    font-size: 11px;
  }

  #premium-guide .sec-header {
    gap: 10px;
    margin: 44px 0 18px;
  }

  #premium-guide .sec-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  #premium-guide .sec-meta h2 {
    font-size: 17px;
  }
}

/* ══════════════════════════════════════════
   QUIZ CSS (Scoped to #quiz-guide)
══════════════════════════════════════════ */
#quiz-guide {
  --bg: #0d0f14;
  --surface: #141720;
  --surface2: #1c2030;
  --surface3: #222840;
  --border: rgba(255,255,255,0.07);
  --text: #e8ecf4;
  --text-muted: #7a849e;
  --accent: #5b8dee;
  --accent2: #7c6ef5;
  --green: #3ecf8e;
  --green-bg: rgba(62,207,142,0.1);
  --red: #f06b6b;
  --red-bg: rgba(240,107,107,0.1);
  --yellow: #f5c842;
  --yellow-bg: rgba(245,200,66,0.1);
  --arabic: #e8a045;
  --arabic-bg: rgba(232,160,69,0.08);
  --radius: 16px;
  --radius-sm: 10px;

  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: calc(100vh - var(--plat-nav-h));
  transition: all 0.3s;
}

html[data-theme="light"] #quiz-guide {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface2: #eef0f4;
  --surface3: #e1e4e8;
  --border: rgba(0,0,0,0.08);
  --text: #1a1d24;
  --text-muted: #5a657c;
  --arabic: #c27612;
  --arabic-bg: rgba(194,118,18,0.08);
}

#quiz-guide nav.subj-nav {
  position: sticky; top: calc(var(--topbar-h) + var(--plat-nav-h)); z-index: 100;
  background: var(--bg); opacity: 0.95; backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); padding: 0 24px;
  display: flex; align-items: center; height: 52px; overflow-x: auto; scrollbar-width: none; gap: 0;
}
#quiz-guide nav.subj-nav::-webkit-scrollbar { display: none; }
#quiz-guide .nav-brand { font-family: 'Clash Display', sans-serif; font-weight: 800; font-size: 14px; color: var(--text); white-space: nowrap; margin-right: 24px; letter-spacing: -0.3px; }
#quiz-guide .nav-brand span { color: var(--accent); }
#quiz-guide nav.subj-nav a { color: var(--text-muted); text-decoration: none; font-size: 12.5px; font-weight: 500; padding: 5px 12px; border-radius: 8px; white-space: nowrap; transition: all 0.2s; }
#quiz-guide nav.subj-nav a:hover { color: var(--text); background: var(--surface2); }
#quiz-guide .hero { position: relative; padding: 60px 24px 44px; text-align: center; overflow: hidden; }
#quiz-guide .hero::before { content: ''; position: absolute; top: -60px; left: 50%; transform: translateX(-50%); width: 700px; height: 400px; background: radial-gradient(ellipse, rgba(91,141,238,0.12) 0%, transparent 70%); pointer-events: none; z-index: 0; }
#quiz-guide .hero > * { position: relative; z-index: 1; }
#quiz-guide .hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--surface2); border: 1px solid var(--border); border-radius: 100px; padding: 6px 16px; font-size: 12px; color: var(--text-muted); margin-bottom: 20px; letter-spacing: 0.5px; text-transform: uppercase; }
#quiz-guide .hero-badge .dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
#quiz-guide .hero h1 { font-family: 'Clash Display', sans-serif; font-size: clamp(28px, 5vw, 56px); font-weight: 800; line-height: 1.05; letter-spacing: -1.5px; margin-bottom: 14px; }
#quiz-guide .hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
#quiz-guide .hero p { color: var(--text-muted); font-size: 15px; max-width: 460px; margin: 0 auto; line-height: 1.7; }
#quiz-guide .owner-signature-quiz { color: var(--accent); font-size: 12px; font-weight: 600; margin-top: 12px; }
#quiz-guide main { max-width: 900px; margin: 0 auto; padding: 0 20px 80px; }
#quiz-guide .section-header { display: flex; align-items: center; gap: 14px; margin: 48px 0 20px; }
#quiz-guide .section-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
#quiz-guide .section-header h2 { font-family: 'Clash Display', sans-serif; font-size: 21px; font-weight: 700; letter-spacing: -0.5px; }
#quiz-guide .section-header p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
#quiz-guide .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 12px; transition: border-color .2s; }
#quiz-guide .tf-grid { display: grid; gap: 10px; }
#quiz-guide .tf-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; transition: all .25s; cursor: pointer; }
#quiz-guide .tf-main-row { display: flex; align-items: flex-start; gap: 10px; }
#quiz-guide .tf-num { font-family: 'Clash Display', sans-serif; font-size: 12px; font-weight: 700; color: var(--text-muted); min-width: 28px; padding-top: 2px; letter-spacing: .5px; flex-shrink: 0; }
#quiz-guide .tf-q { flex: 1; font-size: 14px; line-height: 1.7; color: var(--text); }
#quiz-guide .tf-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: 6px; }
#quiz-guide .tf-badge { font-family: 'Clash Display', sans-serif; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 6px; letter-spacing: .8px; opacity: 0; transform: scale(.8); transition: all .3s; }
#quiz-guide .tf-badge.show { opacity: 1; transform: scale(1); }
#quiz-guide .true-badge { background: var(--green-bg); color: var(--green); }
#quiz-guide .false-badge { background: var(--red-bg); color: var(--red); }
#quiz-guide .tf-item.revealed.is-true { border-color: rgba(62,207,142,.3); background: rgba(62,207,142,.04); }
#quiz-guide .tf-item.revealed.is-false { border-color: rgba(240,107,107,.3); background: rgba(240,107,107,.04); }
#quiz-guide .btn-tr { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 7px; font-size: 11px; font-weight: 600; cursor: pointer; border: 1px solid rgba(232,160,69,.3); background: var(--arabic-bg); color: var(--arabic); font-family: 'DM Sans', sans-serif; transition: all .2s; white-space: nowrap; user-select: none; }
#quiz-guide .ar-box { display: none; margin-top: 10px; background: var(--arabic-bg); border: 1px solid rgba(232,160,69,.18); border-radius: 8px; padding: 10px 14px; font-family: 'Cairo', sans-serif; font-size: 14px; line-height: 1.85; color: var(--arabic); direction: rtl; text-align: right; }
#quiz-guide .ar-box.show { display: block; animation: fadeUp .25s ease; }
#quiz-guide .btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 10px; font-family: 'DM Sans',sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; border: none; transition: all .2s; }
#quiz-guide .btn-primary { background: var(--accent); color: #fff; }
#quiz-guide .btn-outline { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
#quiz-guide .btn-green { background: var(--green-bg); color: var(--green); border: 1px solid rgba(62,207,142,.2); }
#quiz-guide .btn-ar-all { background: var(--arabic-bg); color: var(--arabic); border: 1px solid rgba(232,160,69,.25); }
#quiz-guide .action-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
#quiz-guide .score-bar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 24px; display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
#quiz-guide .score-num { font-family: 'Clash Display', sans-serif; font-size: 24px; font-weight: 800; color: var(--accent); }
#quiz-guide .score-label { font-size: 13px; color: var(--text-muted); }
#quiz-guide .progress-wrap { flex: 1; height: 6px; background: var(--surface3); border-radius: 99px; overflow: hidden; }
#quiz-guide .progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 99px; transition: width .5s ease; }
#quiz-guide .mcq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px; animation: fadeUp .4s ease both; }
#quiz-guide .mcq-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
#quiz-guide .mcq-q { flex: 1; font-size: 14px; font-weight: 500; line-height: 1.65; color: var(--text); }
#quiz-guide .mcq-options { display: grid; gap: 8px; margin-top: 14px; }
#quiz-guide .mcq-opt { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 11px 16px; font-size: 13.5px; cursor: pointer; text-align: left; color: var(--text); font-family: 'DM Sans',sans-serif; transition: all .2s; display: flex; align-items: center; gap: 10px; width: 100%; }
#quiz-guide .opt-letter { width: 24px; height: 24px; border-radius: 6px; background: var(--surface3); font-family: 'Clash Display', sans-serif; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text-muted); transition: all .2s; }
#quiz-guide .mcq-opt.correct { background: var(--green-bg); border-color: rgba(62,207,142,.4); color: var(--green); }
#quiz-guide .mcq-opt.correct .opt-letter { background: rgba(62,207,142,.2); color: var(--green); }
#quiz-guide .mcq-opt.wrong { background: var(--red-bg); border-color: rgba(240,107,107,.3); color: var(--red); opacity: .7; }
#quiz-guide .mcq-opt.wrong .opt-letter { background: rgba(240,107,107,.15); color: var(--red); }
#quiz-guide .match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
#quiz-guide .match-q-item, #quiz-guide .match-a-item { border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13px; line-height: 1.5; border: 1px solid var(--border); }
#quiz-guide .match-q-item { background: var(--surface2); display: flex; gap: 10px; align-items: flex-start; }
#quiz-guide .match-a-item { background: var(--surface3); display: flex; gap: 10px; align-items: flex-start; }
#quiz-guide .match-answer-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
#quiz-guide .match-ans-chip { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 14px; font-size: 13px; color: var(--text-muted); transition: all .3s; opacity: 0; transform: translateY(6px); }
#quiz-guide .match-ans-chip.revealed { opacity: 1; transform: none; background: var(--green-bg); border-color: rgba(62,207,142,.3); color: var(--green); }

/* Custom React-style Quiz Shell */
#quiz-guide .sd-quiz-shell { width: 100%; max-width: 980px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-card); }
#quiz-guide .sd-quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
#quiz-guide .sd-quiz-title { font-family: 'Clash Display', sans-serif; font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
#quiz-guide .sd-quiz-meta { color: var(--text-muted); font-size: 12px; }
#quiz-guide .sd-score-row { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
#quiz-guide .sd-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 5px 12px; font-size: 12px; font-weight: 700; border: 1px solid var(--border); }
#quiz-guide .sd-pill.ok { color: var(--green); background: var(--green-bg); border-color: rgba(62,207,142,.25); }
#quiz-guide .sd-pill.bad { color: var(--red); background: var(--red-bg); border-color: rgba(240,107,107,.25); }
#quiz-guide .sd-progress-row { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
#quiz-guide .sd-progress-num { font-size: 12px; font-weight: 700; color: var(--text-muted); min-width: 60px; }
#quiz-guide .sd-progress-track { flex: 1; height: 7px; border-radius: 99px; background: var(--surface3); overflow: hidden; }
#quiz-guide .sd-progress-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .25s ease; }
#quiz-guide .sd-question-row { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
#quiz-guide .sd-qn { font-family: 'Clash Display', sans-serif; font-size: 22px; font-weight: 800; color: var(--text-muted); line-height: 1.2; }
#quiz-guide .sd-qtext { font-size: 21px; font-weight: 600; line-height: 1.45; color: var(--text); }
#quiz-guide .sd-options { display: grid; gap: 9px; }
#quiz-guide .sd-option { width: 100%; border-radius: 14px; border: 1px solid var(--border); padding: 14px 16px; background: var(--surface2); color: var(--text); text-align: left; display: flex; align-items: flex-start; gap: 10px; font-family: 'DM Sans', sans-serif; font-size: 14px; cursor: pointer; transition: all .2s; }
#quiz-guide .sd-option .ol { width: 24px; height: 24px; flex-shrink: 0; border-radius: 7px; background: var(--surface3); color: var(--text-muted); font-family: 'Clash Display', sans-serif; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
#quiz-guide .sd-option:hover { transform: translateY(-1px); border-color: rgba(91,141,238,.45); }
#quiz-guide .sd-option.correct { background: var(--green-bg); border-color: rgba(62,207,142,.45); color: var(--green); }
#quiz-guide .sd-option.correct .ol { background: rgba(62,207,142,.2); color: var(--green); }
#quiz-guide .sd-option.wrong { background: var(--red-bg); border-color: rgba(240,107,107,.45); color: var(--red); }
#quiz-guide .sd-option.wrong .ol { background: rgba(240,107,107,.2); color: var(--red); }
#quiz-guide .sd-option.faded { opacity: .45; }
#quiz-guide .sd-option.selected { border-color: rgba(91,141,238,.7); background: rgba(91,141,238,0.12); color: var(--accent); }
#quiz-guide .sd-option.selected .ol { background: rgba(91,141,238,.2); color: var(--accent); }
#quiz-guide .sd-next-wrap { display: flex; justify-content: flex-end; margin-top: 18px; }
#quiz-guide .sd-next-btn { border: none; border-radius: 99px; padding: 10px 22px; font-size: 14px; font-weight: 700; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: all .2s; background: var(--accent); color: #fff; }
#quiz-guide .sd-next-btn:disabled { background: var(--surface3); color: var(--text-muted); cursor: not-allowed; }
#quiz-guide .sd-result { max-width: 620px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 24px; text-align: center; box-shadow: var(--shadow-card); }
#quiz-guide .sd-result h2 { font-family: 'Clash Display', sans-serif; font-size: 30px; margin-bottom: 10px; }
#quiz-guide .sd-result p { color: var(--text-muted); margin-bottom: 16px; }
#quiz-guide .sd-result-counters { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
#quiz-guide .sd-circle { width: 74px; height: 74px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: 'Clash Display', sans-serif; font-size: 24px; font-weight: 800; }
#quiz-guide .sd-circle.ok { color: var(--green); background: var(--green-bg); border: 1px solid rgba(62,207,142,.3); }
#quiz-guide .sd-circle.bad { color: var(--red); background: var(--red-bg); border: 1px solid rgba(240,107,107,.3); }
#quiz-guide .sd-restart-btn { border: none; border-radius: 99px; padding: 11px 22px; font-size: 14px; font-weight: 700; font-family: 'DM Sans', sans-serif; cursor: pointer; color: #fff; background: var(--accent); transition: all .2s; }
#quiz-guide .sd-restart-btn:hover, #quiz-guide .sd-next-btn:not(:disabled):hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ══════════════════════════════════════════
   PREMIUM GUIDE CSS (Scoped to #premium-guide)
══════════════════════════════════════════ */
#premium-guide {
  --bg:       #0c0c0e;
  --surface:  #141416;
  --surface2: #1c1c1f;
  --border:   #27272a;
  --border2:  #3f3f46;
  --text:     #fafafa;
  --text2:    #a1a1aa;
  --text3:    #52525b;
  --blue:        #60a5fa;
  --blue-soft:   #1e2d47;
  --blue-mid:    #2d4a7a;
  --green:       #4ade80;
  --green-soft:  #14301d;
  --green-mid:   #166534;
  --red:         #f87171;
  --red-soft:    #2d1515;
  --red-mid:     #7f1d1d;
  --amber:       #fbbf24;
  --amber-soft:  #2d1f08;
  --amber-mid:   #78350f;
  --violet:      #a78bfa;
  --violet-soft: #1f1535;
  --violet-mid:  #4c1d95;
  --teal:        #2dd4bf;
  --teal-soft:   #0c2422;
  --teal-mid:    #134e4a;
  --accent:      var(--blue);
  --accent2:     var(--violet);
  --r-sm:        var(--plat-r-sm);
  --shadow: 0 2px 12px rgba(0,0,0,.4), 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 8px 28px rgba(0,0,0,.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.6);
  --nav-blur: rgba(12,12,14,.88);

  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background .25s, color .25s;
  min-height: calc(100vh - var(--plat-nav-h));
}

html[data-theme="light"] #premium-guide {
  --bg:       #f7f6f2;
  --surface:  #ffffff;
  --surface2: #f0efe9;
  --border:   #e4e2da;
  --border2:  #d4d2c8;
  --text:     #18181b;
  --text2:    #52525b;
  --text3:    #a1a1aa;
  --blue:        #1d4ed8;
  --blue-soft:   #dbeafe;
  --blue-mid:    #93c5fd;
  --green:       #15803d;
  --green-soft:  #dcfce7;
  --green-mid:   #86efac;
  --red:         #b91c1c;
  --red-soft:    #fee2e2;
  --red-mid:     #fca5a5;
  --amber:       #b45309;
  --amber-soft:  #fef3c7;
  --amber-mid:   #fcd34d;
  --violet:      #6d28d9;
  --violet-soft: #ede9fe;
  --violet-mid:  #c4b5fd;
  --teal:        #0f766e;
  --teal-soft:   #ccfbf1;
  --teal-mid:    #5eead4;
  --shadow: 0 2px 12px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  --shadow-md: 0 8px 28px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.12);
  --nav-blur: rgba(247,246,242,.88);
}

#premium-guide img { display: block; max-width: 100%; }
#premium-guide a { color: inherit; text-decoration: none; }

#premium-guide .prem-nav { position: sticky; top: calc(var(--topbar-h) + var(--plat-nav-h)); z-index: 200; height: var(--plat-nav-h); background: var(--nav-blur); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 20px; gap: 16px; transition: background .25s, border-color .25s; }
#premium-guide .nav-brand { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; }
#premium-guide .nav-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0; box-shadow: 0 0 0 3px var(--blue-soft); }
#premium-guide .nav-links { display: flex; align-items: center; gap: 2px; list-style: none; flex: 1; overflow-x: auto; scrollbar-width: none; margin: 0; padding: 0; }
#premium-guide .nav-links::-webkit-scrollbar { display: none; }
#premium-guide .nav-links a { font-size: 12px; font-weight: 500; color: var(--text2); padding: 5px 10px; border-radius: 7px; white-space: nowrap; transition: background .15s, color .15s; }
#premium-guide .nav-links a:hover { background: var(--surface2); color: var(--text); }
#premium-guide .nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
#premium-guide .theme-btn { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text2); background: var(--surface); border: 1px solid var(--border); padding: 6px 12px; border-radius: 99px; cursor: pointer; transition: all .15s; white-space: nowrap; }
#premium-guide .theme-btn:hover { border-color: var(--blue); color: var(--blue); }

#premium-guide .mobile-sections-menu {
  display: none;
}

#premium-guide .hero { padding-top: 60px; padding-bottom: 56px; padding-left: 20px; padding-right: 20px; text-align: center; position: relative; }
#premium-guide .hero::before { content: ''; position: absolute; top: -60px; left: 50%; transform: translateX(-50%); width: 800px; height: 400px; pointer-events: none; background: radial-gradient(ellipse at center, rgba(96,165,250,.12) 0%, transparent 70%); z-index: 0; }
html[data-theme="light"] #premium-guide .hero::before { background: radial-gradient(ellipse at center, rgba(29,78,216,.1) 0%, transparent 70%); }
#premium-guide .hero > * { position: relative; z-index: 1; }
#premium-guide .hero-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); border: 1px solid var(--blue-mid); padding: 4px 13px; border-radius: 99px; margin-bottom: 22px; }
#premium-guide .hero h1 { font-size: clamp(30px, 5.5vw, 56px); font-weight: 900; line-height: 1.08; letter-spacing: -1.5px; color: var(--text); margin-bottom: 14px; }
#premium-guide .hero h1 .accent { color: var(--blue); }
#premium-guide .hero-sub { font-size: 15px; color: var(--text2); max-width: 480px; margin: 0 auto 36px; line-height: 1.7; }
#premium-guide .owner-signature-prem {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  background: var(--surface);
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
}
#premium-guide .hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
#premium-guide .hero-chip { font-size: 12px; font-weight: 500; color: var(--text2); background: var(--surface); border: 1px solid var(--border); padding: 6px 14px; border-radius: 99px; transition: all .15s; cursor: default; }
#premium-guide .hero-chip:hover { border-color: var(--blue); color: var(--text); transform: translateY(-1px); }

#premium-guide .page { max-width: 900px; margin: 0 auto; padding: 0 20px 100px; box-sizing: border-box; }
#premium-guide .sec-header { display: flex; align-items: flex-start; gap: 16px; margin: 48px 0 20px; width: 100%; box-sizing: border-box; }
#premium-guide .sec-icon { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; margin-top: 2px; box-shadow: var(--shadow); }
#premium-guide .sec-meta { flex: 1; }
#premium-guide .sec-meta h2 { font-size: 20px; font-weight: 800; letter-spacing: -.4px; color: var(--text); }
#premium-guide .sec-meta p { font-size: 13px; color: var(--text3); margin-top: 2px; }
#premium-guide .lec-badge { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: .8px; text-transform: uppercase; color: var(--text3); background: var(--surface2); border: 1px solid var(--border); padding: 3px 9px; border-radius: 5px; margin-top: 8px; display: inline-block; }

#premium-guide .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--plat-r); padding: 16px 18px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; margin-bottom: 12px; width: 100%; box-sizing: border-box; }
#premium-guide .card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
#premium-guide .card-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
#premium-guide .card p { margin: 0 0 10px 0; padding: 0; box-sizing: border-box; width: 100%; font-size: 13.5px; line-height: 1.65; }
#premium-guide .card > p:first-of-type { font-size: 13.5px; color: var(--text2); }

#premium-guide .g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; box-sizing: border-box; }
#premium-guide .g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; box-sizing: border-box; }
#premium-guide .g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: 100%; box-sizing: border-box; }

#premium-guide .callout { border-radius: var(--plat-r-sm); padding: 14px 18px; margin: 0; border-left: 3px solid; font-size: 13.5px; line-height: 1.65; width: 100%; box-sizing: border-box; }
#premium-guide .card .callout { margin-top: 10px; }
#premium-guide .callout.blue  { background: var(--blue-soft);   border-color: var(--blue);   color: var(--blue);   }
#premium-guide .callout.green { background: var(--green-soft);  border-color: var(--green);  color: var(--green);  }
#premium-guide .callout.red   { background: var(--red-soft);    border-color: var(--red);    color: var(--red);    }
#premium-guide .callout.amber { background: var(--amber-soft);  border-color: var(--amber);  color: var(--amber);  }
#premium-guide .callout.violet{ background: var(--violet-soft); border-color: var(--violet); color: var(--violet); }
#premium-guide .callout.teal  { background: var(--teal-soft);   border-color: var(--teal);   color: var(--teal);   }

#premium-guide .tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; }
#premium-guide .tag.blue   { background: var(--blue-soft);   color: var(--blue);   border: 1px solid var(--blue-mid);   }
#premium-guide .tag.green  { background: var(--green-soft);  color: var(--green);  border: 1px solid var(--green-mid);  }
#premium-guide .tag.red    { background: var(--red-soft);    color: var(--red);    border: 1px solid var(--red-mid);    }
#premium-guide .tag.amber  { background: var(--amber-soft);  color: var(--amber);  border: 1px solid var(--amber-mid);  }
#premium-guide .tag.violet { background: var(--violet-soft); color: var(--violet); border: 1px solid var(--violet-mid); }
#premium-guide .tag.teal   { background: var(--teal-soft);   color: var(--teal);   border: 1px solid var(--teal-mid);   }

#premium-guide .flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--plat-r); box-shadow: var(--shadow); margin-bottom: 12px; width: 100%; box-sizing: border-box; }
#premium-guide .flow-step { display: flex; align-items: center; gap: 8px; background: var(--blue-soft); border: 1px solid var(--blue-mid); border-radius: 99px; padding: 7px 16px; font-size: 13px; font-weight: 600; color: var(--blue); white-space: nowrap; flex-shrink: 0; }
#premium-guide .flow-n { width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
#premium-guide .flow-arr { color: var(--text3); font-size: 16px; }

#premium-guide .cs-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; width: 100%; box-sizing: border-box; }
#premium-guide .c-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--plat-r-sm); padding: 18px 18px 14px; transition: transform .2s, box-shadow .2s, border-color .2s; cursor: default; }
#premium-guide .c-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
#premium-guide .c-letter { font-size: 40px; font-weight: 900; line-height: 1; margin-bottom: 6px; }
#premium-guide .c-card h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
#premium-guide .c-card p { font-size: 12px; color: var(--text2); line-height: 1.6; }

#premium-guide .rule { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--plat-r-sm); background: var(--surface); margin-bottom: 10px; transition: border-color .2s, transform .2s; }
#premium-guide .rule:hover { border-color: var(--red); transform: translateX(5px); }
#premium-guide .rule-sym { font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 500; color: var(--red); background: var(--red-soft); border: 1px solid var(--red-mid); border-radius: 7px; padding: 6px 11px; white-space: nowrap; flex-shrink: 0; margin-top: 1px; }
#premium-guide .rule-body h4 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
#premium-guide .rule-body p  { font-size: 12.5px; color: var(--text2); }
#premium-guide .ex { font-family: 'DM Mono', monospace; display: inline-block; font-size: 11.5px; color: var(--green); background: var(--green-soft); border: 1px solid var(--green-mid); border-radius: 4px; padding: 1px 7px; margin-top: 5px; }

#premium-guide .steps4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 14px; }
#premium-guide .step-c { background: var(--surface); border: 1px solid var(--border); border-radius: var(--plat-r-sm); padding: 18px 14px; text-align: center; transition: transform .2s, box-shadow .2s; }
#premium-guide .step-c:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
#premium-guide .step-c .ico { font-size: 26px; margin-bottom: 8px; }
#premium-guide .step-c h4 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
#premium-guide .step-c p  { font-size: 11.5px; color: var(--text2); line-height: 1.5; }

/* Custom Code Block Styling for Software Development */
#premium-guide .code-block { background: #1e1e1e; color: #d4d4d4; font-family: 'DM Mono', monospace; font-size: 13px; padding: 16px; border-radius: 8px; overflow-x: auto; margin: 12px 0; border: 1px solid #333; direction: ltr; text-align: left; }
#premium-guide .code-block .keyword { color: #569cd6; font-weight: bold; }
#premium-guide .code-block .string { color: #ce9178; }
#premium-guide .code-block .comment { color: #6a9955; font-style: italic; }
#premium-guide .code-block .function { color: #dcdcaa; }
#premium-guide .code-block .variable { color: #9cdcfe; }

#premium-guide .cheat { background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%); border-radius: var(--plat-r); padding: 28px 30px; position: relative; overflow: hidden; margin-bottom: 14px; }
html[data-theme="light"] #premium-guide .cheat { background: linear-gradient(135deg, #0f172a 0%, #14532d 50%, #0f172a 100%); }
#premium-guide .cheat::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='20' cy='20' r='1'/%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
#premium-guide .cheat h3 { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 18px; position: relative; z-index: 1; }
#premium-guide .cheat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; z-index: 1; }
#premium-guide .cheat-item { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 12px 14px; }
#premium-guide .cheat-item h5 { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: rgba(255,255,255,.4); margin-bottom: 4px; }
#premium-guide .cheat-item p  { font-size: 12.5px; color: #fff; font-weight: 500; line-height: 1.55; }

#premium-guide .divider { height: 1px; background: var(--border); margin: 52px 0; }
#premium-guide .pill-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
#premium-guide .pill { font-size: 12px; font-weight: 600; padding: 5px 13px; border-radius: 99px; display: inline-flex; align-items: center; gap: 5px; }

#premium-guide .fancy-list { list-style: none; padding: 0; margin: 0 0 10px 0; width: 100%; box-sizing: border-box; }
#premium-guide .fancy-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--text2); padding: 7px 0; border-bottom: 1px dashed var(--border); line-height: 1.55; box-sizing: border-box; }
#premium-guide .fancy-list li:last-child { border-bottom: none; }
#premium-guide .fancy-list li::before { content: '→'; color: var(--blue); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

#premium-guide footer { text-align: center; padding: 36px 20px; font-size: 12px; color: var(--text3); border-top: 1px solid var(--border); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to   { opacity: 1; transform: translateY(0); } }
#premium-guide .anim, #quiz-guide .anim { opacity: 0; }
#premium-guide .anim.visible, #quiz-guide .anim.visible { animation: fadeUp .55s ease both; }

@media (max-width: 680px) {
  #premium-guide .g2, #premium-guide .g3, #premium-guide .g4, #premium-guide .steps4, #premium-guide .cheat-grid, #premium-guide .cs-wrap { grid-template-columns: 1fr !important; }
  #premium-guide .nav-links { display: none; }
  #premium-guide .lec-badge { display: none; }
  #premium-guide .hero h1  { letter-spacing: -.8px; }
  #premium-guide .flow { justify-content: center; }
  #premium-guide .pron-ex { display: none; }

  #premium-guide .prem-nav {
    height: auto;
    min-height: 56px;
    padding: 8px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }

  #premium-guide .mobile-menu-toggle {
    display: inline-flex;
  }

  #premium-guide .nav-right {
    margin-left: auto;
  }

  #premium-guide .theme-btn {
    min-height: 40px;
    padding: 7px 10px;
  }

  #premium-guide .mobile-sections-menu {
    display: grid;
    gap: 6px;
    margin: 8px 12px 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  #premium-guide .mobile-sections-menu[hidden] {
    display: none;
  }

  #premium-guide .mobile-sections-menu a {
    font-size: 12.5px;
    color: var(--text2);
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface2);
  }
}
