/* =================================================================
   رواد الجامعة — Enhanced Stylesheet
   Loaded AFTER styles.css. Refines: navigation, transitions,
   topic cards, and motion choreography.
   ================================================================= */

/* -----------------------------------------------------------------
   1. Smoother global motion
   ----------------------------------------------------------------- */
* {
  /* Prevent jarring instant changes on theme toggle */
  transition-property: background-color, border-color, color, box-shadow;
  transition-duration: 0.25s;
  transition-timing-function: var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}

/* But never on layout-affecting properties (avoids flicker) */
*::before, *::after { transition: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* -----------------------------------------------------------------
   2. Page enter animation
   ----------------------------------------------------------------- */
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
main { animation: pageEnter 0.5s var(--ease) both; }

/* Stagger sections inside main */
main > * { animation: pageEnter 0.6s var(--ease) both; }
main > *:nth-child(1) { animation-delay: 0.05s; }
main > *:nth-child(2) { animation-delay: 0.15s; }
main > *:nth-child(3) { animation-delay: 0.25s; }

/* -----------------------------------------------------------------
   3. Navigation polish
   ----------------------------------------------------------------- */
.site-header {
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
}

.nav-links a {
  position: relative;
  padding: 0.5rem 0;
}

/* Underline that grows from center on hover */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  height: 2px;
  width: 100%;
  background: var(--gold);
  transition: transform 0.3s var(--ease);
  transform-origin: center;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-links a[aria-current="page"] {
  color: var(--gold);
}

/* Brand text on small screens */
.brand-text {
  display: flex;
  flex-direction: column;
}

@media (max-width: 640px) {
  .brand-tag { display: none; }
}

/* Mobile menu — slide in from top */
.mobile-menu {
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  position: relative;
  transition: color 0.2s var(--ease), padding-right 0.2s var(--ease);
}
.mobile-menu a:hover {
  color: var(--gold);
  padding-right: 1.5rem;
}

/* Theme toggle — gentle rotation on click */
.theme-toggle:hover { transform: rotate(15deg); }
.theme-toggle:active { transform: rotate(0); }

/* -----------------------------------------------------------------
   4. Topic cards — refined behavior
   The problem with the old design: clicking a card expanded it
   inline but the visual path (where to look next) was unclear.
   Solution: the card animates with a clear "lifting" feel,
   neighbors gracefully shrink in attention (subtle dim), and
   content appears with sequential reveal.
   ----------------------------------------------------------------- */
.topics {
  /* Smoother grid transitions */
  transition: gap 0.35s var(--ease);
}

/* Each card has a subtle lift on hover */
.topic {
  position: relative;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.25s var(--ease),
    opacity 0.3s var(--ease);
  will-change: transform;
}

.topic:hover:not(.expanded) {
  transform: translateY(-3px);
  border-color: var(--gold-faint);
  box-shadow: var(--shadow-md);
}

/* When ANY card is expanded, dim the others slightly */
.topics.has-expanded .topic:not(.expanded) {
  opacity: 0.55;
}
.topics.has-expanded .topic:not(.expanded):hover {
  opacity: 0.85;
}

/* The expanded card */
.topic.expanded {
  transform: scale(1.005);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px var(--gold-faint);
}

/* Card head: cleaner spacing + gold gradient on number when expanded */
.topic-head {
  align-items: center;
  padding: 1.35rem 1.5rem;
  transition: padding 0.3s var(--ease);
}

.topic.expanded .topic-head {
  padding-bottom: 1rem;
}

.topic-num {
  width: 44px;
  height: 44px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.topic.expanded .topic-num {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  border-color: transparent;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--gold) 35%, transparent);
}

.topic-title h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: color 0.3s var(--ease);
}

.topic.expanded .topic-title h3 {
  color: var(--gold);
}

/* Plus icon → cross */
.topic-toggle {
  font-size: 1.1rem;
  font-weight: 300;
  transition: transform 0.4s var(--ease), color 0.3s var(--ease);
}

/* Body reveal: combined grid-rows trick + opacity for smoother feel */
.topic-body {
  transition: grid-template-rows 0.5s var(--ease);
}

.topic-body-inner {
  transition: opacity 0.35s var(--ease) 0.05s;
  opacity: 0;
}

.topic.expanded .topic-body-inner {
  opacity: 1;
}

/* Content paragraphs and elements stagger when card opens */
.topic.expanded .topic-content > * {
  animation: fadeUp 0.5s var(--ease) both;
}
.topic.expanded .topic-content > *:nth-child(1) { animation-delay: 0.1s; }
.topic.expanded .topic-content > *:nth-child(2) { animation-delay: 0.16s; }
.topic.expanded .topic-content > *:nth-child(3) { animation-delay: 0.22s; }
.topic.expanded .topic-content > *:nth-child(4) { animation-delay: 0.28s; }
.topic.expanded .topic-content > *:nth-child(5) { animation-delay: 0.34s; }
.topic.expanded .topic-content > *:nth-child(n+6) { animation-delay: 0.4s; }

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

.topic-content {
  padding: 1.5rem;
  border-top: 1px solid var(--line-soft);
}

/* Refined formula card with hover reveal */
.formula {
  position: relative;
  cursor: default;
  transition: border-right-width 0.25s var(--ease), background 0.25s var(--ease);
}

.formula:hover {
  border-right-width: 5px;
  background: color-mix(in srgb, var(--gold-faint) 25%, var(--bg));
}

/* Refined example card */
.example {
  transition: border-right-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.example:hover {
  border-right-color: var(--gold);
  transform: translateX(-2px);
}

/* -----------------------------------------------------------------
   5. Tabs (الكمي / اللفظي) — smoother indicator
   ----------------------------------------------------------------- */
.topic-tabs {
  position: relative;
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 2.5rem;
}

.tab-btn {
  position: relative;
  z-index: 1;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-muted);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.tab-btn.active {
  color: var(--bg);
}

.tab-btn:not(.active):hover {
  color: var(--ink);
}

/* The sliding pill behind the active tab */
.topic-tabs::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  background: var(--ink);
  border-radius: 999px;
  transition: all 0.4s var(--ease);
  z-index: 0;
  /* JS sets --tab-x and --tab-w at runtime for fluid sliding */
  right: var(--tab-x, 4px);
  width: var(--tab-w, 0);
}

/* -----------------------------------------------------------------
   6. Tab panel transitions
   ----------------------------------------------------------------- */
.topic-panel {
  display: none;
  animation: fadeUp 0.5s var(--ease) both;
}
.topic-panel.active { display: block; }

/* -----------------------------------------------------------------
   7. Buttons — subtle press feedback
   ----------------------------------------------------------------- */
button, .btn {
  transition:
    transform 0.15s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

button:active, .btn:active {
  transform: translateY(1px);
}

/* -----------------------------------------------------------------
   8. Card hover lift across the site
   ----------------------------------------------------------------- */
.card,
.section-card,
.link-card {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.25s var(--ease);
}

.card:hover,
.section-card:hover,
.link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* -----------------------------------------------------------------
   9. Footer — multi-column polish
   ----------------------------------------------------------------- */
.site-footer {
  margin-top: 6rem;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-soft);
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col .brand { margin-bottom: 0.5rem; }

.footer-tagline {
  color: var(--ink-muted);
  font-size: 0.95rem;
  max-width: 32ch;
  margin: 0;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease), padding-right 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--gold);
  padding-right: 0.4rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-quote {
  font-family: var(--font-classic);
  font-style: italic;
  color: var(--gold);
}

/* -----------------------------------------------------------------
   10. Saif — quiz card refinements + new "deep solver" output
   ----------------------------------------------------------------- */
.quiz-card {
  animation: fadeUp 0.4s var(--ease) both;
}

.quiz-option {
  position: relative;
  overflow: hidden;
}

.quiz-option::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold) 12%, transparent), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}

.quiz-option:hover:not(.disabled)::before {
  transform: translateX(100%);
}

/* Deep-solve breakdown — when Saif solves a generated problem */
.solve-block {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin: 0.6rem 0;
  border-right: 3px solid var(--gold);
}

.solve-block .step {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  align-items: flex-start;
}

.solve-block .step-num {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--bg);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.8rem;
  font-family: var(--font-classic);
}

.solve-block .step-text {
  flex: 1;
  line-height: 1.7;
}

.solve-block .step-text code {
  background: var(--bg-card);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-family: var(--font-classic);
  font-size: 1.05em;
  color: var(--gold);
  border: 1px solid var(--line-soft);
}

.solve-final {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  font-weight: 600;
}
.solve-final .answer-pill {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--bg);
  padding: 0.3em 0.9em;
  border-radius: 999px;
  margin-right: 0.4em;
}

/* -----------------------------------------------------------------
   11. File-upload area for Saif's PDF/image learning
   ----------------------------------------------------------------- */
.upload-zone {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.upload-zone:hover, .upload-zone.drag {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold-faint) 25%, var(--bg));
  color: var(--ink);
}
.upload-zone input { display: none; }

/* -----------------------------------------------------------------
   12. Mobile menu when open — replace display: flex with class
   The base CSS uses .mobile-menu.open; we handled that above.
   ----------------------------------------------------------------- */
.mobile-menu {
  display: flex;            /* keep in flow but invisible */
  flex-direction: column;
}
.mobile-menu:not(.open) {
  height: 0;
  overflow: hidden;
  border: none;
  padding: 0;
}

/* -----------------------------------------------------------------
   13. Active state for theme toggle
   ----------------------------------------------------------------- */
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

/* -----------------------------------------------------------------
   14. Page-head consistent spacing across all pages
   ----------------------------------------------------------------- */
.page-head {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--line-soft);
}

.page-head h1 {
  margin-top: 0.75rem;
}

.page-head .lead, .page-head p {
  max-width: 65ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-top: 0.5rem;
  line-height: 1.75;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}
.breadcrumb a {
  color: var(--ink-muted);
  transition: color 0.2s var(--ease);
}
.breadcrumb a:hover { color: var(--gold); }

/* -----------------------------------------------------------------
   15. Visible focus states for keyboard users
   ----------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* -----------------------------------------------------------------
   16. Selection color
   ----------------------------------------------------------------- */
::selection {
  background: var(--gold);
  color: var(--bg);
}

/* =================================================================
   17. NEW LAYOUT CLASSES — used by v2 HTML pages
   ================================================================= */

/* Hero — text + visual side by side */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.2fr 1fr; }
}

.hero-text { max-width: 56ch; }
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual svg { max-width: 100%; height: auto; }

.hero-highlight {
  color: var(--gold);
  font-style: italic;
  position: relative;
  display: inline-block;
}
.hero-highlight::after {
  content: '';
  position: absolute;
  inset: auto 0 -4px 0;
  height: 6px;
  background: linear-gradient(90deg, transparent, var(--gold-faint), transparent);
  z-index: -1;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Card variants */
.card-cta {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--gold);
  transition: transform 0.25s var(--ease);
}
.card:hover .card-cta { transform: translateX(-4px); }

.card-saif {
  background: linear-gradient(135deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 85%, var(--gold)) 100%);
  color: var(--bg);
  border-color: transparent;
}
.card-saif h3, .card-saif .card-num { color: var(--gold); }
.card-saif p { color: color-mix(in srgb, var(--bg) 80%, transparent); }
.card-saif .card-cta { color: var(--gold-soft); }
.card-saif:hover { transform: translateY(-6px); }

/* Sections */
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0.5rem 0 2.5rem;
  line-height: 1.7;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

/* Pomodoro extras */
.pomo-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0 3rem;
}
.pomo-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
.pomo-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.pomo-stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.pomo-stat-label {
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-align: center;
}
.focus-tip {
  text-align: right;
  padding: 1.25rem 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-right: 3px solid var(--gold);
}
.focus-tip p { margin: 0.5rem 0 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.7; }

/* Pomodoro ring SVG (ensure rendering) */
.ring-svg {
  width: 280px;
  height: 280px;
  transform: rotate(-90deg);
}
.ring-bg {
  fill: none;
  stroke: var(--line);
  stroke-width: 8;
}
.ring-progress {
  fill: none;
  stroke: var(--gold);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 578;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.timer-display {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
}
.time-text {
  font-family: var(--font-classic);
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: 0.02em;
}
.time-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}

/* Schedule extras */
.schedule-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--bg-card);
}
.schedule-note {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* Links extras */
.link-num {
  font-family: var(--font-classic);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}
.link-domain {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  transition: color 0.2s var(--ease);
}
.link-card:hover .link-domain { color: var(--gold); }

/* Chat meta (in chat-head) */
.chat-meta {
  flex: 1;
  min-width: 0;
}
.chat-meta h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.chat-meta span {
  display: block;
  color: var(--ink-muted);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

/* Helper */
.mt-2 { margin-top: 0.5rem; }

/* Primary quick-btn — used for the main "Topics" button */
.quick-btn-primary {
  background: linear-gradient(135deg, var(--ink), color-mix(in srgb, var(--ink) 80%, var(--gold)));
  color: var(--gold);
  border-color: var(--ink);
  font-weight: 600;
}
.quick-btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--bg);
  border-color: var(--gold);
}

/* Smart-mode badge — shows when SAIF_API_URL is configured */
.saif-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-right: 0.5em;
  padding: 0.2em 0.7em;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
  vertical-align: middle;
}
.saif-mode-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--bg);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* =================================================================
   18. Interactive topic menu (المواضيع → الكمي / اللفظي / خطة / ...)
   ================================================================= */
.topic-menu {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin: 0.75rem 0;
}
@media (min-width: 600px) {
  .topic-menu[data-menu="sections"] {
    grid-template-columns: repeat(2, 1fr);
  }
}

.menu-option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: right;
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    opacity 0.2s var(--ease);
  font-family: inherit;
  color: var(--ink);
  width: 100%;
}

.menu-option:hover:not(.disabled) {
  border-color: var(--gold);
  transform: translateX(-3px);
  background: color-mix(in srgb, var(--gold-faint) 20%, var(--bg-card));
  box-shadow: var(--shadow-sm);
}

.menu-option.disabled {
  cursor: default;
  opacity: 0.5;
}

.menu-option.selected {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold-faint) 35%, var(--bg-card));
  opacity: 1;
}

.menu-icon {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--gold);
  border-radius: var(--radius-sm, 8px);
  font-family: var(--font-classic);
  font-size: 1.15rem;
  font-weight: 700;
}

.menu-option.selected .menu-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--bg);
}

.menu-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.menu-text strong {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
}

.menu-text em {
  font-style: normal;
  font-size: 0.83rem;
  color: var(--ink-muted);
  line-height: 1.4;
}
