:root {
  --bg: #f3f7f1;
  --bg-soft: #f8fbf7;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --line: rgba(21, 128, 61, 0.09);
  --text: #18261c;
  --muted: #607166;
  --brand: #22c55e;
  --brand-strong: #15803d;
  --brand-soft: rgba(34, 197, 94, 0.12);
  --accent: #16a34a;
  --accent-soft: rgba(22, 163, 74, 0.1);
  --warning: #8a5a00;
  --warning-bg: rgba(255, 248, 230, 0.98);
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
}

body.theme-dark {
  --bg: #0b130d;
  --bg-soft: #122016;
  --surface: rgba(17, 27, 20, 0.96);
  --surface-strong: #162419;
  --line: rgba(255, 255, 255, 0.14);
  --text: #f2fbf4;
  --muted: #c0cec3;
  --brand-strong: #5ee38b;
  --brand-soft: rgba(34, 197, 94, 0.22);
  --accent-soft: rgba(22, 163, 74, 0.2);
  --warning-bg: rgba(90, 64, 12, 0.5);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
  font-size: 16.5px;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 22%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.95), transparent 18%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.1), transparent 18%),
    linear-gradient(180deg, #fbfef9 0%, var(--bg) 100%);
  overflow-x: hidden;
}

body.theme-dark {
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.14), transparent 22%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.04), transparent 18%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.08), transparent 18%),
    linear-gradient(180deg, #0d1510 0%, var(--bg) 100%);
}

body.theme-dark .topbar,
body.theme-dark .quick-card,
body.theme-dark .onboarding-card,
body.theme-dark .workspace-sidebar,
body.theme-dark .workspace-main,
body.theme-dark .sidebar-brand-card,
body.theme-dark .sidebar-panel,
body.theme-dark .auth-card,
body.theme-dark .auth-preview,
body.theme-dark .auth-mode-copy,
body.theme-dark .profile-sidebar-card,
body.theme-dark .profile-panel,
body.theme-dark .info-hero-card,
body.theme-dark .info-page-card,
body.theme-dark .student-hero-card,
body.theme-dark .student-summary-strip,
body.theme-dark .student-quick-card,
body.theme-dark .student-settings-card,
body.theme-dark .student-section-card,
body.theme-dark .student-progress-card,
body.theme-dark .stage-card,
body.theme-dark .session-card,
body.theme-dark .stat-card,
body.theme-dark .admin-panel,
body.theme-dark .admin-login-card,
body.theme-dark .history-card,
body.theme-dark .achievement-chip,
body.theme-dark .about-feature-item,
body.theme-dark .policy-item,
body.theme-dark .strength-card {
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(20, 31, 24, 0.98), rgba(14, 22, 17, 0.96));
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .top-chip,
body.theme-dark .theme-toggle,
body.theme-dark .tag,
body.theme-dark .stage-chip,
body.theme-dark .auth-tab,
body.theme-dark .profile-nav-link,
body.theme-dark .memory-item,
body.theme-dark .field,
body.theme-dark .history-item,
body.theme-dark .session-action-btn,
body.theme-dark .inline-action-btn,
body.theme-dark .mini-btn,
body.theme-dark .helper-btn,
body.theme-dark .attachment,
body.theme-dark .source-link,
body.theme-dark .student-mini-card,
body.theme-dark .student-achievement-chip {
  background: rgba(19, 31, 23, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

body.theme-dark .chat-shell,
body.theme-dark .chat-top,
body.theme-dark .composer-area,
body.theme-dark .composer {
  background: rgba(16, 25, 19, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .message.assistant,
body.theme-dark .message.user,
body.theme-dark .answer-section,
body.theme-dark .practice-cta,
body.theme-dark .clarify-card,
body.theme-dark .smart-note,
body.theme-dark .chat-lock-note,
body.theme-dark .chat-trust-note {
  background: rgba(20, 31, 24, 0.98);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

body.theme-dark .message.assistant {
  box-shadow: inset 3px 0 0 var(--brand);
}

body.theme-dark .message.user {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(20, 31, 24, 0.98));
}

body.theme-dark .example-chip {
  background: rgba(18, 39, 26, 0.96);
  border-color: rgba(94, 227, 139, 0.24);
  color: #b7f5c9;
}

body.theme-dark .plus-btn {
  background: rgba(34, 197, 94, 0.18);
  color: #b7f5c9;
}

body.theme-dark .prompt-input,
body.theme-dark .prompt-input::placeholder,
body.theme-dark .brand-copy,
body.theme-dark .chat-top p,
body.theme-dark .quick-card span,
body.theme-dark .starter-card span,
body.theme-dark .session-card-preview,
body.theme-dark .session-card-meta,
body.theme-dark .history-item span,
body.theme-dark .memory-item span,
body.theme-dark .policy-item span,
body.theme-dark .about-feature-item span,
body.theme-dark .info-link-card span,
body.theme-dark .student-quick-card span,
body.theme-dark .student-mini-card span,
body.theme-dark .student-hero-copy p,
body.theme-dark .chat-trust-note,
body.theme-dark .logic-note,
body.theme-dark .muted-inline,
body.theme-dark .panel-copy,
body.theme-dark .admin-subtitle,
body.theme-dark .profile-stat-card span,
body.theme-dark .profile-stat-card small {
  color: var(--muted);
}

body.theme-dark .main-nav a,
body.theme-dark .helper-btn-ghost,
body.theme-dark .top-link {
  color: #d8f6df;
}

body.theme-dark .top-chip,
body.theme-dark .field,
body.theme-dark .prompt-input,
body.theme-dark .message-body,
body.theme-dark .answer-section p,
body.theme-dark .answer-section ol,
body.theme-dark .answer-section ul,
body.theme-dark .history-card p,
body.theme-dark .history-card strong,
body.theme-dark .memory-item,
body.theme-dark .session-card-title,
body.theme-dark .student-section-head h3,
body.theme-dark .student-quick-card strong,
body.theme-dark .student-mini-card strong {
  color: var(--text);
}

body.theme-dark .student-project-card,
body.theme-dark .student-api-session-card,
body.theme-dark .student-project-conversation-card,
body.theme-dark .student-guest-note,
body.theme-dark .student-project-empty,
body.theme-dark .auth-security-note,
body.theme-dark .auth-guest-cta,
body.theme-dark .info-link-card,
body.theme-dark .info-flow-card,
body.theme-dark .info-mode-card,
body.theme-dark .info-chip-group {
  background: rgba(19, 31, 23, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

body.theme-dark .student-project-card span,
body.theme-dark .student-project-card small,
body.theme-dark .student-project-conversation-card span,
body.theme-dark .student-project-conversation-card small,
body.theme-dark .student-api-session-card span,
body.theme-dark .student-section-copy,
body.theme-dark .student-guest-note,
body.theme-dark .student-project-empty,
body.theme-dark .student-progress-card p,
body.theme-dark .auth-guest-cta span,
body.theme-dark .auth-security-points span,
body.theme-dark .info-flow-card span,
body.theme-dark .info-mode-card span,
body.theme-dark .info-chip-group span {
  color: var(--muted);
}

body.theme-dark .student-live-chip,
body.theme-dark .student-plan-badge,
body.theme-dark .student-plan-metric,
body.theme-dark .student-plan-benefit,
body.theme-dark .student-package-preview-card {
  background: rgba(19, 31, 23, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .student-package-preview-card.is-featured,
body.theme-dark .student-package-preview-card.is-active,
body.theme-dark .student-plan-card-primary,
body.theme-dark .student-plan-card-preview {
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.14), transparent 30%),
    rgba(19, 31, 23, 0.96);
}

body.theme-dark .send-btn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #07150c;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: min(1432px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(34, 197, 94, 0.16);
  overflow: hidden;
}

.brand-mark-logo svg {
  width: 34px;
  height: 34px;
}

.brand-mark-logo-image {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(255, 255, 255, 0.98));
}

.brand-mark-logo-image img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-size: 1.55rem;
  font-weight: 800;
}

.brand-copy {
  color: var(--muted);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav,
.top-status,
.top-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1px;
}

.main-nav a:hover {
  color: var(--brand-strong);
}

.top-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  max-width: 100%;
}

.top-link {
  color: var(--brand-strong);
  font-weight: 700;
}

.xp-chip {
  color: var(--brand-strong);
  font-weight: 700;
}

.theme-toggle {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

.theme-toggle-track {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.theme-toggle-thumb {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: transparent;
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: none;
  transition: transform 200ms ease;
}

.theme-toggle-icon {
  width: 16px;
  height: 16px;
  position: absolute;
  inset: 0;
  margin: auto;
  transition: opacity 180ms ease;
}

.theme-toggle-sun circle {
  fill: #22c55e;
}

.theme-toggle-sun line {
  stroke: #16a34a;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.theme-toggle-sun {
  opacity: 0;
}

.theme-toggle-moon {
  opacity: 1;
}

.theme-toggle-moon path {
  fill: #0f172a;
}

.top-cta-link {
  width: auto;
  min-width: 118px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-logout-btn {
  min-width: 132px;
  border-color: rgba(220, 38, 38, 0.18);
  color: #b91c1c;
}

.top-logout-btn:hover {
  border-color: rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.08);
  color: #991b1b;
}

body.theme-dark .top-logout-btn {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.22);
  background: rgba(127, 29, 29, 0.14);
}

body.theme-dark .top-logout-btn:hover {
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(127, 29, 29, 0.22);
  color: #fecaca;
}

body.theme-dark .secondary-btn {
  border-color: rgba(94, 227, 139, 0.3);
  color: #d8f6df;
  background: transparent;
}

body.theme-dark .theme-toggle {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

body.theme-dark .theme-toggle-thumb {
  background: transparent;
  transform: none;
}

body.theme-dark .theme-toggle-sun {
  opacity: 1;
}

body.theme-dark .theme-toggle-moon {
  opacity: 0;
}

.page-wrap {
  padding: 24px 0 64px;
}

.student-simple-page {
  padding-bottom: 72px;
}

.student-dashboard {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas:
    "quick quick"
    "projects precision";
  gap: 20px;
}

.student-area-plan {
  grid-area: plan;
}

.student-area-summary {
  grid-area: summary;
}

.student-area-progress {
  grid-area: progress;
}

.student-area-quick {
  grid-area: quick;
}

.student-area-projects {
  grid-area: projects;
}

.student-area-precision {
  grid-area: precision;
}

.student-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
  align-items: center;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.14), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 246, 0.96));
}

.student-hero-side {
  display: grid;
  justify-items: flex-start;
  gap: 12px;
}

.student-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.student-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.student-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.student-section-card {
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.student-projects-panel,
.student-precision-card {
  display: grid;
  gap: 16px;
}

.student-projects-panel .student-project-form {
  display: grid;
  gap: 12px;
}

.student-project-form .primary-btn {
  justify-self: flex-start;
}

.student-project-conversations {
  display: grid;
  gap: 12px;
}

.student-project-conversation-card {
  border-radius: 18px;
}

.student-plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
}

.student-plan-card {
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.student-plan-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.student-progress-card {
  border-radius: 22px;
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.06);
}

.admin-layout-modern {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 18px;
}

.admin-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}

.admin-tab-nav-modern {
  display: grid;
  gap: 10px;
}

@media (max-width: 1100px) {
  .student-dashboard {
    grid-template-columns: 1fr;
    grid-template-areas:
      "quick"
      "projects"
      "precision";
  }

  .student-plan-grid {
    grid-template-columns: 1fr;
  }

  .student-progress-grid,
  .student-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-layout-modern {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-tab-nav-modern {
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, 1fr);
    overflow-x: auto;
    padding-bottom: 6px;
  }
}

@media (max-width: 780px) {
  .student-hero-card {
    grid-template-columns: 1fr;
  }

  .student-summary-strip,
  .student-progress-grid,
  .student-quick-grid {
    grid-template-columns: 1fr;
  }

  .student-plan-metrics {
    grid-template-columns: 1fr;
  }

  .student-hero-side {
    justify-items: stretch;
  }

  .admin-tab-nav-modern {
    grid-auto-flow: row;
  }
}

.hero-stage {
  margin-bottom: 22px;
}

.chat-stage {
  margin-bottom: 28px;
}

.hero-card-showcase {
  width: 100%;
  max-width: none;
}

.landing-strip,
.onboarding-stage,
.feature-grid-stage {
  margin-bottom: 22px;
}

.hero-actions-dual {
  justify-content: center;
}

.gold-btn {
  background: linear-gradient(135deg, #f4d35e, #d4a017);
  color: #2f2200;
}

.quick-strip,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.quick-card {
  text-align: right;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: 180ms ease;
}

.quick-card:hover {
  transform: translateY(-2px);
}

.quick-card strong,
.onboarding-copy h2 {
  display: block;
  margin: 0 0 8px;
  color: var(--brand-strong);
}

.quick-card span {
  color: var(--muted);
  line-height: 1.8;
}

.onboarding-card {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 252, 247, 0.96));
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.onboarding-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.selectors-hero {
  margin-bottom: 0;
}

.onboarding-actions {
  max-width: 440px;
}

.subject-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stage-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stage-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stage-card {
  text-align: right;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--muted);
  border-radius: 18px;
  padding: 10px 12px;
  cursor: pointer;
  transition: 180ms ease;
  display: grid;
  gap: 4px;
}

.stage-card strong {
  color: var(--brand-strong);
  font-size: 0.95rem;
}

.stage-card span,
.stage-card small {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.stage-card.active {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.12), rgba(255, 255, 255, 0.98));
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.12);
}

.stage-chip {
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: 180ms ease;
}

.stage-chip.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-color: transparent;
}

.solve-mode-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.solve-mode-btn {
  text-align: right;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  transition: 180ms ease;
  display: grid;
  gap: 6px;
}

.solve-mode-btn strong {
  color: var(--text);
}

.solve-mode-btn span {
  color: var(--muted);
  line-height: 1.7;
}

.solve-mode-btn.active {
  border-color: rgba(34, 197, 94, 0.24);
  background: var(--brand-soft);
}

body.solve-mode-quick .stage-cards,
body.solve-mode-quick .selectors-hero,
body.solve-mode-quick .student-settings-card {
  display: none;
}

body.solve-mode-quick .subject-pills,
body.solve-mode-quick .onboarding-copy {
  margin-top: 0;
}

body.solve-mode-structured .stage-cards {
  display: grid;
}

body.solve-mode-structured .selectors-hero {
  display: grid;
}

body.solve-mode-structured .student-settings-card {
  display: block;
}

.subject-pill {
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-strong);
  border-radius: 999px;
  padding: 11px 16px;
  cursor: pointer;
  transition: 180ms ease;
}

.subject-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 197, 94, 0.24);
}

.subject-pills-compact {
  margin-top: 12px;
}

.workspace-page {
  padding-top: 20px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.workspace-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 18px;
}

.sidebar-brand-card,
.sidebar-panel,
.workspace-main {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.sidebar-brand-card,
.sidebar-panel {
  padding: 18px;
}

.sidebar-brand-card {
  display: grid;
  gap: 14px;
  text-align: center;
}

.sidebar-brand-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.sidebar-title {
  margin: 0 0 12px;
  color: var(--brand-strong);
  font-size: 1rem;
}

.sidebar-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sidebar-panel-head .sidebar-title {
  margin-bottom: 0;
}

.session-list {
  display: grid;
  gap: 12px;
}

.session-empty {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px dashed rgba(34, 197, 94, 0.24);
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted);
  line-height: 1.8;
}

.session-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  gap: 10px;
  transition: 180ms ease;
}

.session-card.active {
  border-color: rgba(34, 197, 94, 0.24);
  background: var(--brand-soft);
}

.session-card.pinned {
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.18);
}

.session-card-head,
.session-card-actions,
.session-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.session-open-btn {
  width: 100%;
  text-align: right;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
  display: grid;
  gap: 4px;
}

.session-card-title {
  font-weight: 800;
  line-height: 1.6;
}

.session-card-preview {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.session-card-meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.session-action-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.session-action-btn:hover,
.session-open-btn:hover .session-card-title {
  color: var(--brand-strong);
}

.workspace-main {
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  gap: 18px;
}

.workspace-bottom-grid {
  display: grid;
  gap: 18px;
  margin-top: 0;
}

.workspace-onboarding {
  margin-bottom: 0;
}

.auth-preview-rich {
  padding: 28px;
  align-content: center;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), transparent 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 252, 247, 0.96));
}

.auth-preview-points {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.auth-preview-point {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--brand-strong);
}

.layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
  align-items: start;
}

.sidebar,
.chat-shell {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.sidebar {
  border-radius: 34px;
  padding: 22px;
  position: sticky;
  top: 18px;
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  scrollbar-width: thin;
}

.sidebar-rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.hero-utility {
  display: none;
}

.hero-card {
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(34, 197, 94, 0.16);
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 252, 247, 0.94));
  text-align: center;
}

.hero-logo {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.hero-logo-mark {
  width: 104px;
  height: 104px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 248, 236, 0.98));
  border: 1px solid rgba(34, 197, 94, 0.16);
  box-shadow: 0 18px 50px rgba(34, 197, 94, 0.08);
}

.hero-icon-image {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.hero-logo-text {
  font-size: 2.8rem;
  line-height: 1;
  font-weight: 900;
  color: var(--brand-strong);
}

.hero-actions,
.hero-meta,
.example-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions,
.hero-meta {
  justify-content: center;
}

.hero-actions {
  margin-top: 18px;
}

.hero-meta {
  margin-top: 16px;
}

.hero-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.15);
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-strong);
  font-size: 0.92rem;
}

.hero-subgrid {
  display: grid;
  gap: 10px;
}

.mini-feature {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.mini-feature strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-strong);
}

.mini-feature span {
  color: var(--muted);
  line-height: 1.8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.94rem;
}

.sidebar h1 {
  margin: 0;
  font-size: clamp(2.1rem, 2.7vw, 3.1rem);
  line-height: 1.06;
}

.sidebar p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.panel {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.panel-compact {
  display: grid;
  gap: 12px;
}

.panel-section {
  display: grid;
  gap: 8px;
}

.panel-section + .panel-section {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.panel-section-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--brand-strong);
}

.compact-list {
  gap: 8px;
}

.small-copy {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

.selection-summary {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--brand-strong);
  line-height: 1.8;
}

.platform-insights {
  margin-top: 28px;
}

.platform-insights-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
  border-radius: 34px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 252, 247, 0.96));
  box-shadow: var(--shadow);
}

.info-stat-card {
  min-height: 170px;
  padding: 22px 18px;
  border-radius: 24px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  display: grid;
  align-content: start;
  gap: 10px;
  text-align: center;
}

.info-stat-card strong {
  font-size: 2.4rem;
  line-height: 1;
}

.info-stat-card span,
.info-stat-card p,
.info-stat-card h3 {
  margin: 0;
}

.info-stat-card span {
  color: var(--muted);
  line-height: 1.9;
}

.info-stat-card h3 {
  font-size: 1.12rem;
}

.info-stat-card-wide {
  grid-column: span 3;
  min-height: 220px;
  text-align: right;
}

.info-stat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 2px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.1);
  color: var(--brand-strong);
  font-size: 1.8rem;
}

.info-stat-card-wide .info-stat-icon {
  margin: 0 0 6px;
}

.info-inline-summary {
  background: rgba(34, 197, 94, 0.08);
  color: var(--brand-strong);
}

.packages-page .shell {
  width: min(1180px, calc(100% - 28px));
}

.packages-shell {
  display: grid;
  gap: 22px;
}

.packages-hero-card,
.packages-lock-card,
.packages-current-card,
.packages-info-card,
.packages-plan-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.packages-hero-card {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.packages-hero-copy {
  display: grid;
  gap: 12px;
}

.packages-hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.packages-hero-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.packages-hero-stats {
  display: grid;
  gap: 14px;
}

.packages-hero-stat {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: rgba(34, 197, 94, 0.07);
  display: grid;
  gap: 6px;
}

.packages-hero-stat strong {
  font-size: 1.4rem;
  color: var(--brand-strong);
}

.packages-hero-stat span {
  color: var(--muted);
  line-height: 1.8;
}

.packages-auth-state[hidden] {
  display: none !important;
}

.packages-lock-card {
  padding: 28px;
  display: grid;
  gap: 12px;
  text-align: center;
}

.packages-auth-state-footer {
  margin-top: 6px;
}

.packages-lock-card strong {
  font-size: 1.25rem;
}

.packages-lock-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.packages-lock-card-error {
  border-color: rgba(239, 68, 68, 0.18);
  background: rgba(255, 247, 247, 0.97);
}

.packages-lock-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.packages-lock-card-minimal {
  padding: 18px 22px;
  gap: 0;
}

.packages-dashboard[hidden] {
  display: none !important;
}

.packages-dashboard {
  display: grid;
  gap: 22px;
}

.packages-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.packages-current-card,
.packages-info-card {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.packages-current-head {
  display: grid;
  gap: 8px;
}

.packages-current-head strong,
.packages-info-card h2 {
  font-size: 1.7rem;
  margin: 0;
}

.packages-current-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.packages-current-meta div {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: rgba(34, 197, 94, 0.06);
  display: grid;
  gap: 5px;
}

.packages-current-meta span,
.packages-info-card p,
.packages-info-points span,
.packages-plan-card p,
.packages-plan-note {
  color: var(--muted);
  line-height: 1.8;
}

.packages-current-meta strong {
  font-size: 1.12rem;
}

.packages-current-expiry {
  color: var(--brand-strong);
  font-weight: 700;
}

.packages-info-points {
  display: grid;
  gap: 8px;
}

.packages-list-section {
  display: grid;
  gap: 16px;
}

.packages-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
}

.packages-section-head h2,
.packages-section-head p,
.packages-hint {
  margin: 0;
}

.packages-hint {
  color: var(--brand-strong);
  font-weight: 700;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.packages-plan-card {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.packages-plan-card-current {
  border-color: rgba(34, 197, 94, 0.34);
  box-shadow: 0 18px 42px rgba(34, 197, 94, 0.16);
}

.packages-plan-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.packages-plan-head strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.packages-plan-head span {
  color: var(--brand-strong);
  font-weight: 700;
}

.packages-plan-xp {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
}

.packages-plan-duration {
  color: var(--brand-strong);
  font-weight: 700;
}

.packages-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.packages-card-badge {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.packages-card-badge-current {
  background: rgba(34, 197, 94, 0.12);
  color: var(--brand-strong);
}

.packages-card-badge-muted {
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}

.packages-plan-actions {
  display: grid;
  gap: 8px;
}

.packages-plan-benefits {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 18px 0 0;
  color: var(--text);
}

.packages-plan-benefits li {
  line-height: 1.7;
}

.admin-list-wide {
  display: block;
}

.admin-packages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.admin-package-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 14px;
}

.admin-package-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.admin-package-head strong {
  display: block;
  font-size: 1.18rem;
  margin-bottom: 4px;
}

.admin-package-head span {
  color: var(--brand-strong);
  font-weight: 700;
}

.admin-package-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-package-form {
  display: grid;
  gap: 12px;
}

.admin-package-form label {
  display: grid;
  gap: 6px;
}

.admin-package-form label > span {
  font-weight: 700;
  color: var(--text);
}

.admin-package-summary textarea {
  min-height: 98px;
}

@media (max-width: 960px) {
  .packages-hero-card,
  .packages-dashboard-grid,
  .packages-grid,
  .admin-packages-grid {
    grid-template-columns: 1fr;
  }

  .packages-current-meta {
    grid-template-columns: 1fr;
  }

  .packages-section-head,
  .packages-plan-head,
  .admin-package-head {
    align-items: stretch;
  }

  .packages-card-badges,
  .admin-package-badges {
    justify-content: flex-start;
  }
}

.info-selectors .field {
  background: rgba(255, 255, 255, 0.96);
}

.dark-list .memory-item,
.dark-list .admin-item,
.dark-list .suggestion-btn,
.dark-suggestions .suggestion-btn {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(34, 197, 94, 0.1);
  color: var(--text);
}

.dark-list .memory-item span,
.dark-list .memory-item strong,
.dark-suggestions .suggestion-btn {
  color: var(--text);
}

.dark-suggestions {
  display: grid;
  gap: 10px;
}

.library-term {
  border: 1px solid rgba(34, 197, 94, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.library-term + .library-term {
  margin-top: 10px;
}

.library-term-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  color: var(--brand-strong);
  font-weight: 800;
}

.library-term-summary span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.library-term-body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.library-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.library-chip {
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: rgba(240, 253, 244, 0.92);
  color: var(--brand-strong);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  transition: 180ms ease;
}

.library-chip:hover {
  transform: translateY(-1px);
}

.library-chip.active {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-color: transparent;
  color: #fff;
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.primary-btn,
.secondary-btn {
  width: 100%;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 18px;
  padding: 13px 16px;
  transition: 180ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #2ecc71, #22c55e);
  box-shadow: 0 14px 28px rgba(34, 197, 94, 0.26);
}

.secondary-btn {
  color: var(--brand-strong);
  background: transparent;
  border-color: rgba(34, 197, 94, 0.38);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
}

.secondary-btn .btn-icon {
  background: rgba(34, 197, 94, 0.12);
}

.stack {
  display: grid;
  gap: 10px;
}

.field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

select.field {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(18px) calc(50% - 3px),
    calc(10px) calc(50% - 3px);
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
  padding-left: 34px;
}

.password-field {
  position: relative;
}

.password-field .field {
  padding-left: 54px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.password-toggle:hover {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.3);
}

.password-toggle[aria-pressed="true"] {
  background: rgba(34, 197, 94, 0.12);
}

body.theme-dark .password-toggle {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(134, 239, 172, 0.18);
  color: #bbf7d0;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--bg-soft);
}

.learned-list,
.suggestions {
  display: grid;
  gap: 10px;
}

.memory-item,
.suggestion-btn {
  width: 100%;
  text-align: right;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--text);
}

a.memory-item {
  display: block;
  text-decoration: none;
}

.suggestion-btn {
  cursor: pointer;
  transition: 180ms ease;
}

.suggestion-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 197, 94, 0.22);
}

.memory-item strong {
  display: block;
  margin-bottom: 6px;
}

.history-item {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.history-item strong {
  display: block;
  margin-bottom: 6px;
}

.history-item span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.chat-shell {
  border-radius: 34px;
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.chat-top {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(243, 255, 247, 0.96), rgba(255, 255, 255, 0.84));
}

.chat-top h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.chat-top p {
  margin: 0;
  color: var(--muted);
}

.chat-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.response-mode-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.response-mode-label {
  color: var(--brand-strong);
  font-weight: 800;
}

.response-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.response-mode-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: 180ms ease;
}

.response-mode-btn.active {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  color: var(--muted);
}

.smart-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: var(--warning-bg);
  color: var(--warning);
  line-height: 1.9;
  font-size: 0.95rem;
}

.starter-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.starter-card {
  text-align: right;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  transition: 180ms ease;
}

.starter-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-strong);
}

.starter-card span {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

.starter-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.22);
}

.example-list {
  margin-top: 16px;
}

.example-chip {
  border: 1px solid rgba(34, 197, 94, 0.15);
  background: rgba(240, 253, 244, 0.95);
  color: var(--brand-strong);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
}

.messages {
  padding: 24px;
  overflow: auto;
  display: grid;
  gap: 16px;
}

.message {
  max-width: min(100%, 860px);
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  line-height: 1.9;
  min-width: 0;
}

.message.user {
  justify-self: end;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(255, 255, 255, 0.98));
}

.message.assistant {
  justify-self: start;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 3px 0 0 var(--brand);
}

.message-title {
  margin-bottom: 8px;
  font-weight: 800;
  color: var(--brand-strong);
}

.message-body {
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.message.user .message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.welcome-card {
  display: grid;
  gap: 8px;
}

.welcome-card h4,
.welcome-card p {
  margin: 0;
}

.guest-mode .plus-btn.is-locked,
.guest-mode .helper-btn.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

.simple-reply {
  display: grid;
  gap: 10px;
  padding: 2px 0;
}

.simple-reply p,
.simple-reply ul {
  margin: 0;
}

.simple-reply p {
  line-height: 1.9;
}

.simple-reply ul {
  display: grid;
  gap: 8px;
  padding-inline-start: 1.1rem;
}

.simple-reply li {
  line-height: 1.85;
}

.clarify-card {
  display: grid;
  gap: 12px;
}

.clarify-card p {
  margin: 0;
}

.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.inline-action-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  color: var(--brand-strong);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
}

.practice-cta {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: rgba(240, 253, 244, 0.74);
}

.practice-cta p {
  margin: 0;
  color: var(--brand-strong);
  font-weight: 700;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.answer-section {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 244, 0.82));
}

.answer-section-wide {
  grid-column: 1 / -1;
}

.answer-section h4 {
  margin: 0 0 10px;
  font-size: 0.98rem;
}

.answer-section p,
.answer-section ol,
.answer-section ul {
  margin: 0;
  color: var(--text);
}

.answer-section ol,
.answer-section ul {
  padding-right: 18px;
}

.answer-list {
  display: grid;
  gap: 10px;
}

.answer-list li {
  line-height: 1.9;
}

.muted-copy {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.94rem;
}

.pending-copy {
  color: var(--muted);
}

.muted-inline {
  color: var(--muted);
  font-size: 0.92rem;
}

.message-tools {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.message-tools-label {
  width: 100%;
  color: var(--brand-strong);
  font-weight: 800;
  margin-bottom: 2px;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.mini-btn.active {
  color: var(--brand-strong);
  border-color: rgba(15, 118, 110, 0.22);
  background: var(--brand-soft);
}

.mini-btn.disliked.active {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.18);
  background: rgba(254, 242, 242, 0.96);
}

.sources-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.source-link {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(248, 255, 250, 0.96);
  color: var(--accent);
  direction: ltr;
  text-align: left;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.composer-area {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.selectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.attachments {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  color: var(--muted);
  max-width: 100%;
}

.attachment-remove {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: var(--brand-strong);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.attachment-remove:hover {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

.composer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
}

.plus-btn,
.send-btn {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 180ms ease;
}

.plus-btn {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.send-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.plus-btn:hover,
.send-btn:hover {
  transform: translateY(-1px);
}

.prompt-input {
  min-height: 52px;
  max-height: 190px;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  padding: 12px 4px;
  color: var(--text);
}

.composer-note {
  margin-top: 12px;
  color: color-mix(in srgb, var(--muted) 82%, transparent);
  font-size: 0.84rem;
  line-height: 1.8;
}

.chat-lock-note {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(34, 197, 94, 0.16);
  background: linear-gradient(180deg, rgba(247, 252, 248, 0.98), rgba(255, 255, 255, 0.96));
  color: var(--muted);
  line-height: 1.9;
  font-size: 0.93rem;
}

.chat-lock-note a {
  font-weight: 700;
}

.composer.is-locked {
  border-style: dashed;
}

.prompt-input.is-locked,
.premium-core-textarea.is-locked,
.prompt-input:disabled,
.premium-core-textarea:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.send-btn.is-locked,
.plus-btn.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.helper-toolbar {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.helper-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  color: var(--brand-strong);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  max-width: 100%;
}

.helper-btn-ghost {
  color: var(--muted);
}

.chat-trust-note {
  margin: 12px 4px 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(21, 128, 61, 0.12);
  background: linear-gradient(180deg, rgba(247, 252, 248, 0.98), rgba(255, 255, 255, 0.95));
  color: var(--muted);
  line-height: 1.9;
  font-size: 0.93rem;
}

.chat-trust-note-top {
  margin: 14px 0 0;
}

body.user-logged-in .selectors {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.subject-runtime-wrap {
  display: block;
}

.subject-runtime-hidden {
  display: none !important;
}

.subject-runtime-visible {
  display: block !important;
}

.mcq-highlight {
  color: var(--brand-strong);
  font-weight: 800;
}

.logic-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.auth-shell > .auth-card {
  order: -1;
}

.auth-shell > .auth-preview {
  order: 1;
}

.auth-shell-single {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}

.auth-card,
.auth-preview {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.auth-card {
  padding: 28px;
  display: grid;
  gap: 16px;
}

.auth-card-wide {
  width: 100%;
}

.auth-card h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.auth-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.auth-tabs {
  display: flex;
  gap: 10px;
}

.auth-tabs-wide .auth-tab {
  padding-block: 16px;
  font-size: 1.05rem;
}

.auth-tab {
  flex: 1;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  color: var(--muted);
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
}

.auth-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-color: transparent;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-error {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(220, 38, 38, 0.26);
  background: rgba(254, 242, 242, 0.9);
  color: #b91c1c;
  font-weight: 700;
  font-size: 0.92rem;
}

.field.is-error {
  border-color: rgba(220, 38, 38, 0.45);
  background: rgba(254, 242, 242, 0.55);
}

.auth-panels {
  display: grid;
  gap: 16px;
}

.auth-panel[hidden] {
  display: none !important;
}

.auth-mode-copy {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(34, 197, 94, 0.08);
}

.auth-mode-copy strong {
  color: var(--brand-strong);
}

.auth-mode-copy span {
  color: var(--muted);
  line-height: 1.8;
}

.field-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.auth-links,
.auth-footer-links,
.auth-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-links {
  justify-content: flex-end;
}

.auth-link-btn {
  border: 0;
  background: transparent;
  color: var(--brand-strong);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.auth-google-btn {
  background: #fff;
  border: 1px solid rgba(220, 38, 38, 0.28);
  color: #b91c1c;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.auth-google-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(220, 38, 38, 0.44);
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.18);
}

body.theme-dark .auth-google-btn {
  background: rgba(18, 16, 16, 0.92);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.32);
  box-shadow: 0 12px 26px rgba(127, 29, 29, 0.32);
}

.auth-preview {
  padding: 22px;
  display: grid;
  gap: 12px;
}

.auth-preview-logo {
  justify-items: center;
  text-align: center;
}

.auth-preview-copy {
  display: grid;
  gap: 8px;
  padding: 16px 0 8px;
}

.auth-preview-copy strong {
  font-size: 1.45rem;
}

.auth-preview-copy span,
.auth-footer-links a {
  color: var(--muted);
}

.auth-stats-band {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, #0e5138, #0a3f2e);
  box-shadow: var(--shadow);
}

.auth-stat-card {
  min-height: 132px;
  padding: 18px 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-align: center;
  display: grid;
  align-content: center;
  gap: 8px;
}

.auth-stat-card strong {
  font-size: 2rem;
  line-height: 1;
}

.auth-stat-card span {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.scroll-top-btn {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.92), rgba(22, 163, 74, 0.92));
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: 180ms ease;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:active {
  opacity: 0.9;
  transform: scale(0.98);
}

.admin-wrap {
  display: grid;
  gap: 22px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 16px;
}

.admin-sidebar-card,
.admin-hero-panel,
.admin-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.admin-sidebar-card {
  padding: 20px;
  display: grid;
  gap: 10px;
}

.admin-sidebar-card h2,
.admin-hero-copy h2 {
  margin: 0;
}

.admin-sidebar-card p,
.admin-sidebar-card span {
  color: var(--muted);
  line-height: 1.8;
}

.admin-sidebar-nav {
  display: grid;
  gap: 10px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-weight: 700;
  transition: 180ms ease;
}

.admin-nav-link:hover,
.admin-nav-link:focus-visible {
  color: var(--brand-strong);
  border-color: rgba(34, 197, 94, 0.24);
  background: var(--brand-soft);
  outline: none;
}

.admin-sidebar-note strong {
  color: var(--brand-strong);
}

.admin-main {
  display: grid;
  gap: 22px;
}

.admin-main > #admin-overview {
  order: 1;
}

.admin-main > .stats-grid {
  order: 2;
}

.admin-main > #admin-generator {
  order: 3;
}

.admin-main > #admin-coverage {
  order: 4;
}

.admin-main > #admin-users {
  order: 5;
}

.admin-main > #admin-reports {
  order: 6;
}

.admin-main > #admin-questions {
  order: 7;
}

.admin-hero-panel {
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 248, 0.96));
}

.admin-hero-copy {
  display: grid;
  gap: 8px;
}

.admin-hero-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  max-width: 760px;
}

.admin-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-auth-shell {
  display: grid;
  place-items: center;
}

.admin-login-card {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.admin-login-card h2 {
  margin: 0 0 8px;
}

.admin-login-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.8;
}

.admin-login-form {
  display: grid;
  gap: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.stat-card,
.admin-panel {
  padding: 18px;
}

.stat-card strong {
  display: block;
  font-size: 1.9rem;
  margin-top: 10px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-section-title {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.admin-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.admin-section-stack {
  display: grid;
  gap: 16px;
}

.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-section-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.admin-section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
}

.admin-grid-balanced {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-generator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.admin-generator-side {
  display: grid;
  gap: 18px;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-item {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.admin-item strong {
  display: block;
  margin-bottom: 6px;
}

.admin-item span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.admin-status-banner {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: rgba(240, 253, 244, 0.92);
  color: var(--brand-strong);
  line-height: 1.8;
  font-weight: 700;
}

.admin-status-banner[data-state="running"] {
  background: rgba(224, 242, 254, 0.95);
  border-color: rgba(14, 165, 233, 0.2);
  color: #0369a1;
}

.admin-status-banner[data-state="success"] {
  background: rgba(240, 253, 244, 0.95);
  border-color: rgba(34, 197, 94, 0.2);
  color: var(--brand-strong);
}

.admin-status-banner[data-state="warning"] {
  background: rgba(255, 251, 235, 0.98);
  border-color: rgba(202, 138, 4, 0.2);
  color: #8a5a00;
}

.admin-status-banner[data-state="error"] {
  background: rgba(254, 242, 242, 0.98);
  border-color: rgba(220, 38, 38, 0.18);
  color: #b91c1c;
}

.admin-item .permission-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.permission-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.14);
  color: var(--brand-strong);
  font-size: 0.84rem;
  font-weight: 700;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: right;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}

.table th {
  color: var(--muted);
  font-weight: 600;
}

.admin-table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-action-ban {
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(254, 242, 242, 0.96);
}

.admin-action-points {
  color: #8a5a00;
  border-color: rgba(202, 138, 4, 0.18);
  background: rgba(255, 251, 235, 0.98);
}

.admin-action-unban {
  color: var(--brand-strong);
  border-color: rgba(34, 197, 94, 0.2);
  background: rgba(240, 253, 244, 0.96);
}

body.theme-dark .admin-action-ban {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.22);
  background: rgba(127, 29, 29, 0.18);
}

body.theme-dark .admin-action-points {
  color: #fde68a;
  border-color: rgba(250, 204, 21, 0.24);
  background: rgba(120, 53, 15, 0.28);
}

body.theme-dark .admin-action-unban {
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, 0.22);
  background: rgba(20, 83, 45, 0.28);
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-question-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.admin-search-row {
  margin: 14px 0 0;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-multiselect-block {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.admin-multiselect-head {
  display: grid;
  gap: 4px;
}

.admin-multiselect-head strong {
  color: var(--text);
}

.admin-multiselect-head span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.admin-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-stage-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-stage-btn {
  border: 1px solid rgba(34, 197, 94, 0.16);
  background: rgba(255, 255, 255, 0.96);
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: 180ms ease;
}

.admin-stage-btn.active,
.admin-stage-btn[aria-pressed="true"] {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.28);
  color: var(--brand-strong);
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.12);
}

.admin-choice-chip {
  position: relative;
}

.admin-choice-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-choice-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: 180ms ease;
}

.admin-choice-chip input:checked + span {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
  color: var(--brand-strong);
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.12);
}

.admin-hidden-field {
  display: none !important;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

.admin-bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.admin-bank-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.admin-bank-card strong,
.admin-grade-card strong {
  display: block;
  margin-bottom: 6px;
}

.admin-bank-card span,
.admin-grade-card span {
  display: block;
  color: var(--muted);
  line-height: 1.8;
}

.admin-generator-actions {
  margin-top: 4px;
}

.admin-generator-actions .primary-btn:disabled,
.admin-generator-actions .mini-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.admin-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.admin-source-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.16);
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-log-item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  gap: 6px;
}

.admin-log-item strong {
  display: block;
}

.admin-log-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.admin-log-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.14);
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-grade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.admin-grade-card {
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.admin-grade-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.admin-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

.admin-users-table th,
.admin-users-table td {
  vertical-align: top;
  white-space: normal;
  word-break: break-word;
}

.admin-users-table {
  table-layout: fixed;
}

.admin-user-cell,
.admin-user-stack {
  display: grid;
  gap: 4px;
}

.admin-user-cell strong,
.admin-user-stack strong {
  display: block;
  color: var(--text);
}

.admin-user-cell span,
.admin-user-cell small,
.admin-user-stack span {
  color: var(--muted);
  line-height: 1.7;
}

.admin-user-cell small {
  font-size: 0.84rem;
}

.admin-inline-note {
  font-size: 0.84rem;
  color: var(--muted);
}

.admin-tab-panel[hidden] {
  display: none !important;
}

.admin-tab-nav .admin-nav-link {
  appearance: none;
  width: 100%;
  text-align: right;
  cursor: pointer;
  font: inherit;
}

.admin-tab-nav .admin-nav-link.is-active {
  color: var(--brand-strong);
  border-color: rgba(34, 197, 94, 0.24);
  background: var(--brand-soft);
  box-shadow: 0 16px 30px rgba(34, 197, 94, 0.12);
}

.admin-tab-hero {
  margin-bottom: 18px;
}

.admin-grid-single {
  grid-template-columns: 1fr;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(180px, 0.6fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-users-panel {
  display: grid;
}

.admin-user-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.admin-user-manage-card,
.admin-subscriber-card,
.admin-empty-state {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 252, 248, 0.93));
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 14px;
}

.admin-user-manage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-user-primary {
  display: grid;
  gap: 4px;
}

.admin-user-primary strong {
  font-size: 1.02rem;
  color: var(--text);
}

.admin-user-primary span,
.admin-user-primary small,
.admin-empty-state span {
  color: var(--muted);
  line-height: 1.7;
}

.admin-user-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-meta-chip,
.admin-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-status-chip.is-active {
  border-color: rgba(34, 197, 94, 0.18);
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
}

.admin-status-chip.is-suspended {
  border-color: rgba(245, 158, 11, 0.18);
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.admin-status-chip.is-banned {
  border-color: rgba(239, 68, 68, 0.18);
  background: rgba(239, 68, 68, 0.11);
  color: #b91c1c;
}

.admin-user-package-box {
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: rgba(34, 197, 94, 0.08);
  display: grid;
  gap: 6px;
}

.admin-user-package-box strong {
  color: var(--brand-strong);
}

.admin-user-package-box span,
.admin-user-package-box small {
  color: var(--muted);
  line-height: 1.7;
}

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-user-actions > * {
  flex: 1 1 170px;
}

.admin-empty-state strong {
  color: var(--text);
}

.admin-subscriber-groups {
  display: grid;
  gap: 14px;
}

.admin-subscriber-member {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: rgba(255, 255, 255, 0.78);
  display: grid;
  gap: 4px;
}

.admin-subscriber-member strong {
  color: var(--text);
}

.admin-subscriber-member span {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-bank-search-note {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(34, 197, 94, 0.22);
  background: rgba(255, 255, 255, 0.86);
  display: grid;
  gap: 8px;
}

.admin-bank-search-note strong {
  color: var(--text);
}

.admin-bank-search-note span {
  color: var(--muted);
  line-height: 1.8;
}

.admin-bank-search-results {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.admin-search-result-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  gap: 10px;
}

.admin-search-result-card strong {
  color: var(--text);
  line-height: 1.9;
}

.admin-search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-search-result-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.14);
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-domain-manager {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 14px;
}

.admin-domain-head {
  display: grid;
  gap: 4px;
}

.admin-domain-head strong {
  color: var(--text);
}

.admin-domain-head span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.admin-domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.admin-domain-option {
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(240, 253, 244, 0.82);
  display: grid;
  gap: 4px;
  cursor: pointer;
}

.admin-domain-option input {
  accent-color: #16a34a;
  margin: 0;
}

.admin-domain-option span {
  font-weight: 700;
  color: #0f3b22;
}

.admin-domain-option small {
  color: #567060;
}

.admin-domain-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.theme-dark .admin-sidebar-card,
body.theme-dark .admin-hero-panel,
body.theme-dark .admin-nav-link,
body.theme-dark .admin-status-banner,
body.theme-dark .admin-log-item,
body.theme-dark .admin-source-chip,
body.theme-dark .admin-multiselect-block,
body.theme-dark .admin-choice-chip span {
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(20, 31, 24, 0.98), rgba(14, 22, 17, 0.96));
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

body.theme-dark .admin-user-manage-card,
body.theme-dark .admin-subscriber-card,
body.theme-dark .admin-empty-state,
body.theme-dark .admin-user-package-box,
body.theme-dark .admin-subscriber-member,
body.theme-dark .admin-meta-chip,
body.theme-dark .admin-status-chip {
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(20, 31, 24, 0.98), rgba(14, 22, 17, 0.96));
  border-color: rgba(255, 255, 255, 0.1);
  color: #ecfdf5;
}

body.theme-dark .admin-user-primary span,
body.theme-dark .admin-user-primary small,
body.theme-dark .admin-empty-state span,
body.theme-dark .admin-user-package-box span,
body.theme-dark .admin-user-package-box small,
body.theme-dark .admin-subscriber-member span {
  color: rgba(220, 252, 231, 0.78);
}

body.theme-dark .admin-domain-manager {
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .admin-domain-option {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(74, 222, 128, 0.2);
}

body.theme-dark .admin-domain-option span {
  color: rgba(245, 247, 250, 0.92);
}

body.theme-dark .admin-domain-option small,
body.theme-dark .admin-domain-head span {
  color: rgba(245, 247, 250, 0.68);
}

body.theme-dark .admin-choice-chip input:checked + span {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(94, 227, 139, 0.28);
  color: #d9fbe4;
}

body.theme-dark .admin-stage-btn {
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(20, 31, 24, 0.98), rgba(14, 22, 17, 0.96));
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

body.theme-dark .admin-stage-btn.active,
body.theme-dark .admin-stage-btn[aria-pressed="true"] {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(94, 227, 139, 0.28);
  color: #d9fbe4;
}

body.theme-dark .admin-bank-search-note,
body.theme-dark .admin-search-result-card {
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(20, 31, 24, 0.98), rgba(14, 22, 17, 0.96));
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .admin-status-banner[data-state="running"] {
  color: #7dd3fc;
}

body.theme-dark .admin-status-banner[data-state="warning"] {
  color: #fde68a;
}

body.theme-dark .admin-status-banner[data-state="error"] {
  color: #fecaca;
}

@media (max-width: 1120px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-grid,
  .admin-grid-balanced,
  .admin-generator-layout {
    grid-template-columns: 1fr;
  }
}

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

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

  .admin-hero-panel {
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
  }

  .admin-hero-actions {
    justify-content: stretch;
  }

  .admin-hero-actions .primary-btn,
  .admin-hero-actions .helper-btn {
    width: 100%;
  }
}

.profile-nav-panel {
  padding: 20px;
}

.profile-nav-list,
.profile-sidebar-links {
  display: grid;
  gap: 10px;
}

.profile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-weight: 700;
  transition: 180ms ease;
}

.profile-nav-link:hover,
.profile-nav-link.active {
  color: var(--brand-strong);
  border-color: rgba(34, 197, 94, 0.22);
  background: var(--brand-soft);
}

.profile-page,
.info-page {
  padding-top: 24px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.profile-sidebar {
  position: sticky;
  top: 24px;
}

.profile-sidebar-card,
.profile-panel,
.info-hero-card,
.info-page-card {
  border-radius: 28px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 248, 0.96));
  box-shadow: var(--shadow);
}

.profile-sidebar-card {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 197, 94, 0.16);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(255, 255, 255, 0.98));
}

.profile-avatar img {
  width: 42px;
  height: 42px;
}

.profile-main {
  display: grid;
  gap: 20px;
}

.profile-hero {
  padding: 28px;
  border-radius: 32px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 252, 247, 0.98));
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--brand-strong);
  background: var(--brand-soft);
  font-weight: 800;
  margin-bottom: 14px;
}

.streak-highlight {
  min-width: 190px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(34, 197, 94, 0.14);
  text-align: center;
}

.streak-highlight strong {
  display: block;
  font-size: 2.5rem;
  color: var(--brand-strong);
}

.streak-highlight span,
.streak-highlight small {
  display: block;
  color: var(--muted);
}

.profile-grid,
.info-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.profile-stat-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.profile-stat-card span,
.profile-stat-card small,
.panel-head span,
.panel-copy,
.history-card span,
.history-card p,
.about-feature-item span,
.policy-item span {
  color: var(--muted);
}

.profile-stat-card strong {
  font-size: 1.6rem;
}

.profile-dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-panel,
.info-page-card {
  padding: 24px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.motivation-bar {
  height: 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
  margin-bottom: 14px;
}

.motivation-bar-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #86efac);
}

.achievement-list,
.history-stack,
.policy-list,
.about-feature-list,
.strength-grid {
  display: grid;
  gap: 12px;
}

.info-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.info-flow-grid,
.info-mode-grid,
.info-chip-groups {
  display: grid;
  gap: 14px;
}

.info-flow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-mode-grid,
.info-chip-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-link-card {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  gap: 8px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.info-link-card strong {
  color: var(--brand-strong);
}

.info-link-card span {
  color: var(--muted);
  line-height: 1.8;
}

.info-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.24);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.achievement-chip,
.history-card,
.about-feature-item,
.policy-item,
.strength-card,
.info-flow-card,
.info-mode-card,
.info-chip-group {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.achievement-chip.unlocked {
  background: var(--brand-soft);
  border-color: rgba(34, 197, 94, 0.24);
}

.achievement-chip strong,
.history-card strong,
.about-feature-item strong,
.policy-item strong,
.strength-card strong,
.info-flow-card strong,
.info-mode-card strong,
.info-chip-group strong {
  display: block;
  margin-bottom: 6px;
}

.info-flow-card span,
.info-mode-card span,
.info-chip-group span {
  color: var(--muted);
  line-height: 1.8;
}

.info-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 700;
}

.strength-card.warning {
  background: var(--warning-bg);
}

.history-card-head,
.history-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.info-hero-card {
  padding: 30px;
  margin-bottom: 22px;
}

.student-simple-wrap {
  display: grid;
  gap: 18px;
}

.student-hero-card,
.student-summary-strip,
.student-quick-card,
.student-settings-card,
.student-section-card {
  border: 1px solid rgba(34, 197, 94, 0.12);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 248, 0.96));
  box-shadow: var(--shadow);
}

.student-hero-card {
  border-radius: 30px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.student-hero-copy {
  display: grid;
  gap: 8px;
}

.student-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: var(--brand-strong);
  font-weight: 800;
}

.student-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.student-eyebrow {
  color: var(--brand-strong);
  font-weight: 800;
}

.student-hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.student-hero-copy p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.9;
}

.student-hero-side {
  display: grid;
  justify-items: end;
  gap: 12px;
  min-width: 220px;
}

.student-streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  color: var(--brand-strong);
  font-weight: 800;
  max-width: 100%;
}

.student-summary-strip {
  border-radius: 26px;
  padding: 14px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  gap: 12px;
}

.student-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.student-plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.student-plan-card {
  border: 1px solid rgba(34, 197, 94, 0.12);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 248, 0.96));
  box-shadow: var(--shadow);
  border-radius: 28px;
  padding: 22px;
  display: grid;
  gap: 16px;
}

.student-plan-card-primary {
  position: relative;
  overflow: hidden;
}

.student-plan-card-primary::after {
  content: "";
  position: absolute;
  inset: auto auto -28px -28px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.16), transparent 70%);
  pointer-events: none;
}

.student-plan-eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--brand-strong);
  font-weight: 800;
  margin-bottom: 10px;
}

.student-plan-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.student-plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-strong);
  font-weight: 800;
}

.student-plan-badge.is-guest {
  color: #0f766e;
  border-color: rgba(13, 148, 136, 0.18);
}

.student-plan-badge.is-free {
  color: #166534;
}

.student-plan-badge.is-paid {
  color: #14532d;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(255, 255, 255, 0.94));
}

.student-plan-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.student-plan-metric {
  display: grid;
  gap: 6px;
  padding: 15px 16px;
  border-radius: 20px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.student-plan-metric strong {
  color: var(--brand-strong);
  font-size: 1.15rem;
}

.student-plan-metric span,
.student-plan-copy {
  color: var(--muted);
  line-height: 1.85;
}

.student-plan-copy {
  margin: 0;
}

.student-plan-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.student-plan-benefit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: var(--brand-strong);
  font-weight: 700;
}

.student-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.student-package-preview {
  display: grid;
  gap: 12px;
}

.student-package-preview-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: rgba(255, 255, 255, 0.92);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.student-package-preview-card:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 163, 74, 0.24);
  box-shadow: 0 14px 28px rgba(11, 53, 31, 0.08);
}

.student-package-preview-card.is-featured {
  border-color: rgba(22, 163, 74, 0.28);
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.96);
}

.student-package-preview-card.is-active {
  border-color: rgba(22, 163, 74, 0.34);
  box-shadow: 0 16px 30px rgba(14, 68, 40, 0.1);
}

.student-package-preview-top,
.student-package-preview-meta,
.student-package-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.student-package-preview-top strong,
.student-package-preview-price {
  color: var(--brand-strong);
}

.student-package-preview-price {
  font-weight: 900;
}

.student-package-preview-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.student-package-preview-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.student-package-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--brand-strong);
  font-weight: 800;
  font-size: 0.8rem;
}

.student-package-summary,
.student-package-empty {
  color: var(--muted);
  line-height: 1.8;
}

.student-package-benefits {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.student-package-benefits li {
  position: relative;
  padding-inline-start: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.student-package-benefits li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

.student-mini-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(34, 197, 94, 0.1);
  background: rgba(255, 255, 255, 0.92);
}

.student-mini-card strong {
  color: var(--brand-strong);
}

.student-mini-card span {
  color: var(--muted);
  line-height: 1.8;
}

.student-progress-card {
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 252, 248, 0.95));
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.student-progress-card-accent {
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 252, 246, 0.97));
}

.student-progress-label {
  color: var(--brand-strong);
  font-weight: 800;
  font-size: 0.92rem;
}

.student-progress-card strong {
  font-size: 1.8rem;
  color: var(--text);
}

.student-progress-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.student-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.student-progress-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.student-progress-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #86efac);
  transition: width 220ms ease;
}

.student-projects-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 28px;
}

.student-section-copy {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.student-projects-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--brand-strong);
  font-weight: 800;
}

.student-project-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}

.student-project-picker {
  display: grid;
  gap: 8px;
  color: var(--brand-strong);
  font-weight: 700;
}

.student-guest-note {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px dashed rgba(34, 197, 94, 0.22);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  line-height: 1.8;
}

.student-project-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.student-project-description {
  min-height: 108px;
  resize: vertical;
  grid-column: 1 / -1;
}

.student-project-form .primary-btn {
  justify-self: start;
}

.student-project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.student-project-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.student-project-chat-head h4 {
  margin: 0;
  color: var(--brand-strong);
  font-size: 1.08rem;
}

.student-project-conversations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.student-project-card,
.student-api-session-card,
.student-project-conversation-card {
  width: 100%;
  display: grid;
  gap: 6px;
  appearance: none;
  text-align: right;
  font: inherit;
  cursor: pointer;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: rgba(255, 255, 255, 0.92);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.student-project-card:hover,
.student-api-session-card:hover,
.student-project-conversation-card:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 163, 74, 0.26);
  box-shadow: 0 12px 26px rgba(12, 54, 32, 0.08);
}

.student-project-card.is-active,
.student-project-conversation-card.is-active {
  border-color: rgba(22, 163, 74, 0.38);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(255, 255, 255, 0.96));
}

.student-project-card strong,
.student-api-session-card strong,
.student-project-conversation-card strong {
  color: var(--brand-strong);
  font-size: 1rem;
}

.student-project-card span,
.student-project-card small,
.student-api-session-card span,
.student-project-conversation-card span,
.student-project-conversation-card small {
  color: var(--muted);
  line-height: 1.75;
}

.student-project-empty {
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(34, 197, 94, 0.2);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
}

.student-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.student-quick-card {
  text-align: right;
  border-radius: 24px;
  padding: 18px;
  display: grid;
  gap: 8px;
  cursor: pointer;
  transition: 180ms ease;
}

.student-quick-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.22);
}

.student-quick-card strong {
  color: var(--brand-strong);
  font-size: 1rem;
}

.student-quick-card span {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.93rem;
}

.student-settings-card {
  border-radius: 24px;
  padding: 16px 18px;
}

.student-settings-card summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
  color: var(--brand-strong);
}

.student-settings-card summary::-webkit-details-marker {
  display: none;
}

.student-settings-card summary::before {
  content: "⌄";
  font-size: 1.1rem;
  color: var(--muted);
}

.student-settings-card[open] summary::before {
  transform: rotate(180deg);
}

.student-settings-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.student-filters-grid {
  margin-top: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.student-precision-card {
  gap: 16px;
}

.student-precision-head {
  align-items: end;
}

.student-precision-status {
  margin-top: 2px;
}

.student-solve-mode-row .solve-mode-btn {
  border-radius: 18px;
  padding: 14px 16px;
}

.student-precision-selectors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.student-precision-selectors .field {
  min-height: 52px;
}

.student-chat-shell {
  min-height: 620px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.student-chat-top p {
  max-width: 760px;
}

.student-bottom-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.student-bottom-grid-solo {
  grid-template-columns: 1fr;
}

.student-section-card {
  border-radius: 26px;
  padding: 20px;
  display: grid;
  gap: 16px;
}

.student-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.student-section-head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.student-achievements-card {
  grid-column: 1 / -1;
}

.student-achievements-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.student-achievement-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.16);
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-strong);
  font-weight: 700;
}

.student-achievement-chip-muted {
  color: var(--muted);
}

.recent-session-list {
  display: grid;
  gap: 12px;
}

.recent-session-list .session-card:nth-child(n + 4),
.compact-list .memory-item:nth-child(n + 4) {
  display: none;
}

.recent-session-list .session-card {
  padding: 14px;
  border-radius: 20px;
}

.recent-session-list .session-card-actions {
  display: flex;
  justify-content: flex-start;
}

.recent-session-list .session-card-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-session-list .session-action-btn {
  padding: 7px 11px;
  font-size: 0.82rem;
}

.compact-list {
  display: grid;
  gap: 12px;
}

.session-empty {
  line-height: 1.9;
  color: var(--muted);
}

.landing-page .feature-grid-stage,
.landing-page .platform-insights {
  display: none;
}

@media (max-width: 1120px) {
  .student-plan-grid,
  .student-summary-strip,
  .student-bottom-grid,
  .student-quick-grid,
  .student-filters-grid,
  .student-precision-selectors,
  .student-project-form,
  .student-project-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-hero-card {
    flex-direction: column;
    align-items: stretch;
  }

  .student-hero-side {
    justify-items: start;
    min-width: 0;
  }

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

  .quick-strip,
  .feature-grid,
  .workspace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .sidebar-rail {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    position: static;
  }

  .auth-stats-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .platform-insights-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-stat-card-wide {
    grid-column: span 2;
  }

  .profile-layout,
  .profile-dual,
  .profile-grid,
  .info-page-grid {
    grid-template-columns: 1fr;
  }

  .info-link-grid {
    grid-template-columns: 1fr;
  }

  .info-flow-grid,
  .info-mode-grid,
  .info-chip-groups {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(1280px, calc(100% - 18px));
  }

  .page-wrap {
    padding: 14px 0 40px;
  }

  .student-plan-grid,
  .student-plan-metrics,
  .student-summary-strip,
  .student-bottom-grid,
  .student-quick-grid,
  .student-filters-grid,
  .student-precision-selectors,
  .student-project-form,
  .student-project-toolbar,
  .student-project-list,
  .student-project-conversations {
    grid-template-columns: 1fr;
  }

  .student-hero-card,
  .student-plan-card,
  .student-section-card,
  .student-settings-card,
  .student-projects-panel {
    padding: 18px;
  }

  .student-hero-copy h1 {
    font-size: 2rem;
  }

  .student-hero-copy p,
  .student-mini-card span,
  .student-quick-card span,
  .chat-top p,
  .composer-note,
  .chat-trust-note,
  .admin-subtitle {
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .student-hero-side {
    width: 100%;
    justify-items: stretch;
  }

  .student-package-preview-top,
  .student-package-preview-meta,
  .student-package-preview-actions {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .student-streak-pill,
  .student-hero-side .primary-btn,
  .student-plan-actions .primary-btn,
  .student-plan-actions .secondary-btn,
  .student-section-head .top-link,
  .student-project-form .primary-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 10px;
    padding: 14px;
    border-radius: 22px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    flex-shrink: 0;
  }

  .brand-mark-logo-image img,
  .brand-mark-logo svg {
    width: 30px;
    height: 30px;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .brand-copy {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .topbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .main-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .main-nav a,
  .top-cta-link,
  .top-chip,
  .theme-toggle {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .top-status,
  .top-cta {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .top-status .top-chip:first-child:last-child {
    grid-column: 1 / -1;
  }

  .top-chip {
    padding: 10px 12px;
    font-size: 0.84rem;
    border-radius: 16px;
    min-height: 44px;
  }

  .theme-toggle {
    height: 44px;
    border-radius: 16px;
  }

  .top-cta-link,
  .top-logout-btn {
    min-width: 0;
    min-height: 48px;
    padding-inline: 12px;
  }

  .cta-row,
  .selectors,
  .answer-grid,
  .starter-grid,
  .quick-strip,
  .feature-grid,
  .workspace-grid,
  .stats-grid,
  .admin-grid,
  .admin-generator-layout,
  .auth-stats-band,
  .platform-insights-wrap {
    grid-template-columns: 1fr;
  }

  .info-stat-card-wide {
    grid-column: span 1;
  }

  .workspace-sidebar,
  .workspace-main,
  .sidebar-brand-card,
  .sidebar-panel,
  .onboarding-card,
  .chat-shell,
  .hero-card,
  .auth-card,
  .auth-preview,
  .profile-sidebar-card,
  .profile-panel,
  .info-hero-card,
  .info-page-card,
  .student-hero-card,
  .student-summary-strip,
  .student-quick-card,
  .student-settings-card,
  .student-section-card,
  .admin-sidebar-card,
  .admin-hero-panel,
  .admin-panel,
  .admin-login-card {
    border-radius: 20px;
  }

  .onboarding-card,
  .hero-card,
  .auth-card,
  .profile-panel,
  .info-hero-card,
  .info-page-card,
  .admin-sidebar-card,
  .admin-panel,
  .admin-login-card {
    padding: 18px;
  }

  .chat-shell {
    min-height: 72vh;
  }

  .chat-top,
  .messages,
  .composer-area {
    padding-inline: 14px;
  }

  .chat-top {
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .chat-top h2 {
    font-size: 1.05rem;
  }

  .messages {
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 12px;
  }

  .message {
    padding: 14px;
    border-radius: 20px;
    line-height: 1.8;
  }

  .answer-grid {
    gap: 10px;
  }

  .answer-section {
    padding: 12px 14px;
    border-radius: 16px;
  }

  .composer {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
    border-radius: 20px;
  }

  .plus-btn,
  .send-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .prompt-input {
    min-height: 48px;
    max-height: 150px;
    padding-block: 10px;
  }

  .send-btn {
    grid-column: 1 / -1;
    width: 100%;
    height: 48px;
  }

  .hero-actions,
  .hero-meta,
  .example-list,
  .subject-pills,
  .stage-switch,
  .helper-toolbar,
  .inline-actions,
  .message-tools,
  .admin-hero-actions,
  .admin-source-list,
  .admin-domain-actions,
  .admin-table-actions {
    flex-direction: column;
    width: 100%;
  }

  .stage-cards {
    grid-template-columns: 1fr;
  }

  .solve-mode-row {
    grid-template-columns: 1fr;
  }

  .hero-actions > *,
  .hero-meta > *,
  .example-list > *,
  .subject-pills > *,
  .stage-switch > *,
  .helper-toolbar > *,
  .inline-actions > *,
  .message-tools > *,
  .admin-hero-actions > *,
  .admin-source-list > *,
  .admin-domain-actions > *,
  .admin-table-actions > *,
  .admin-stage-btn,
  .admin-choice-chip,
  .admin-choice-chip span {
    width: 100%;
  }

  .stage-card,
  .solve-mode-btn,
  .student-quick-card,
  .student-mini-card,
  .session-card,
  .admin-item,
  .admin-log-item,
  .admin-search-result-card,
  .admin-grade-card,
  .admin-domain-option {
    padding: 14px;
    border-radius: 18px;
  }

  .admin-section-head,
  .sidebar-panel-head,
  .student-section-head,
  .session-card-head,
  .session-card-actions,
  .session-card-meta,
  .admin-search-result-meta,
  .admin-log-meta,
  .chip-row {
    gap: 8px;
  }

  .admin-choice-grid,
  .admin-stage-switch,
  .admin-grade-tags,
  .admin-user-cell,
  .admin-user-stack {
    gap: 8px;
  }

  .admin-domain-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .shell {
    width: min(1280px, calc(100% - 12px));
  }

  .page-wrap {
    padding-bottom: 32px;
  }

  .topbar {
    padding: 12px;
    border-radius: 18px;
  }

  .main-nav,
  .top-status,
  .top-cta {
    grid-template-columns: 1fr;
  }

  .brand-name {
    font-size: 1.18rem;
  }

  .hero-logo-mark {
    width: 88px;
    height: 88px;
    border-radius: 24px;
  }

  .hero-icon-image {
    width: 48px;
    height: 48px;
  }

  .hero-logo-text {
    font-size: 2.25rem;
  }

  .eyebrow,
  .tag,
  .example-chip,
  .subject-pill,
  .mini-btn,
  .helper-btn,
  .inline-action-btn,
  .admin-source-chip,
  .admin-meta-chip,
  .admin-search-result-meta span,
  .student-achievement-chip,
  .hero-pill,
  .top-chip,
  .stage-chip {
    padding-inline: 12px;
    font-size: 0.84rem;
  }

  .auth-tabs {
    flex-direction: column;
  }

  .student-hero-copy h1,
  .auth-card h1,
  .sidebar h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .student-mini-card strong,
  .student-quick-card strong,
  .admin-section-head h3,
  .admin-section-title,
  .chat-top h2,
  .sidebar-title {
    font-size: 0.98rem;
  }

  .admin-users-table {
    min-width: 720px;
  }

.scroll-top-btn {
  bottom: 16px;
  left: 50%;
  width: min(72vw, 320px);
  height: 48px;
  border-radius: 22px;
  font-size: 1rem;
  transform: translate(-50%, 12px);
}

.scroll-top-btn.visible {
  transform: translate(-50%, 0);
}
}

.landing-premium-page {
  display: grid;
  gap: 28px;
}

.landing-premium-page::before,
.auth-premium-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 15%, rgba(34, 197, 94, 0.14), transparent 18%),
    radial-gradient(circle at 85% 12%, rgba(21, 128, 61, 0.12), transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(34, 197, 94, 0.08), transparent 22%);
  z-index: -1;
}

.premium-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.premium-hero-card,
.premium-mockup-card,
.premium-step-card,
.premium-stage-panel,
.premium-subject-card,
.premium-final-card,
.auth-preview-premium,
.auth-card-premium {
  border: 1px solid rgba(21, 128, 61, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 252, 248, 0.92));
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.premium-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 34px;
  display: grid;
  gap: 22px;
}

.premium-hero-card::after,
.premium-mockup-card::after,
.auth-preview-premium::after {
  content: "";
  position: absolute;
  inset: auto auto -120px -80px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.18), transparent 70%);
  pointer-events: none;
}

.premium-hero-copy {
  display: grid;
  gap: 18px;
}

.premium-eyebrow {
  color: var(--brand-strong);
}

.premium-hero-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.premium-hero-copy p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.95;
}

.premium-hero-actions,
.premium-final-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.premium-login-link {
  border-radius: 999px;
}

.premium-hero-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.premium-core-ask {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 250, 245, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.premium-core-label {
  font-weight: 800;
  color: var(--brand-strong);
}

.premium-core-textarea {
  width: 100%;
  min-height: 138px;
  resize: vertical;
  border: 1px solid rgba(21, 128, 61, 0.12);
  border-radius: 24px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  line-height: 1.8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.premium-core-textarea::placeholder {
  color: var(--muted);
}

.premium-core-textarea:focus {
  outline: none;
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.premium-core-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.premium-core-submit {
  min-width: 160px;
}

.premium-core-helper {
  min-width: 132px;
}

.premium-core-examples {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.premium-core-examples > span {
  font-weight: 700;
}

.chat-ai-status {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: linear-gradient(180deg, rgba(247, 252, 248, 0.96), rgba(255, 255, 255, 0.92));
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.05);
}

.chat-ai-status-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--brand-strong);
}

.chat-ai-status-pulse {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.36);
  animation: chat-status-pulse 1.8s infinite;
}

.chat-ai-status-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chat-ai-status-typing span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.58);
  animation: premium-bounce 1.1s infinite ease-in-out;
}

.chat-ai-status-typing span:nth-child(2) {
  animation-delay: 0.12s;
}

.chat-ai-status-typing span:nth-child(3) {
  animation-delay: 0.24s;
}

.chat-ai-status-copy {
  color: var(--muted);
  font-size: 0.94rem;
}

@keyframes chat-status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.34);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.premium-quick-ask {
  display: grid;
  gap: 12px;
}

.premium-quick-box {
  min-height: 68px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.premium-quick-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.premium-hero-visual {
  position: relative;
  min-height: 100%;
  display: grid;
  align-items: stretch;
}

.premium-glow {
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(18px);
  pointer-events: none;
}

.premium-glow-one {
  width: 220px;
  height: 220px;
  top: 24px;
  left: 18px;
  background: rgba(34, 197, 94, 0.16);
}

.premium-glow-two {
  width: 260px;
  height: 260px;
  bottom: 10px;
  right: 12px;
  background: rgba(21, 128, 61, 0.12);
}

.premium-mockup-card {
  position: relative;
  z-index: 1;
  border-radius: 34px;
  padding: 24px;
  display: grid;
  gap: 18px;
  min-height: 100%;
}

.premium-hero-insights {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.premium-insight-card,
.premium-value-card {
  padding: 18px 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(21, 128, 61, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(246, 252, 248, 0.74));
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
  display: grid;
  gap: 8px;
}

.premium-insight-card strong,
.premium-value-card strong {
  font-size: 1rem;
}

.premium-insight-card span,
.premium-value-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.premium-mockup-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.premium-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.36);
}

.premium-mockup-head strong {
  margin-inline-start: auto;
  color: var(--brand-strong);
}

.premium-mockup-chat,
.auth-preview-chat {
  display: grid;
  gap: 12px;
}

.premium-mockup-message,
.auth-preview-bubble {
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(34, 197, 94, 0.1);
  background: rgba(255, 255, 255, 0.84);
  display: grid;
  gap: 6px;
}

.premium-mockup-message span,
.auth-preview-bubble span {
  font-size: 0.82rem;
  color: var(--brand-strong);
  font-weight: 700;
}

.premium-mockup-message p,
.auth-preview-bubble p {
  margin: 0;
  line-height: 1.85;
}

.premium-mockup-message-user,
.auth-preview-bubble-user {
  margin-inline-start: 12%;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(255, 255, 255, 0.92));
}

.premium-mockup-message-ai,
.auth-preview-bubble-ai {
  margin-inline-end: 10%;
  box-shadow: inset 3px 0 0 var(--brand);
}

.premium-mockup-typing,
.auth-preview-typing {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 0 6px;
}

.premium-mockup-typing span,
.auth-preview-typing span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.55);
  animation: premium-bounce 1.1s infinite ease-in-out;
}

.premium-mockup-typing span:nth-child(2),
.auth-preview-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.premium-mockup-typing span:nth-child(3),
.auth-preview-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes premium-bounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  40% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

.premium-mockup-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.premium-mockup-footer div {
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.1);
  display: grid;
  gap: 4px;
}

.premium-mockup-footer strong {
  color: var(--brand-strong);
}

.premium-mockup-footer span {
  color: var(--muted);
  font-size: 0.92rem;
}

.premium-section {
  display: grid;
  gap: 20px;
}

.premium-section-head {
  display: grid;
  gap: 8px;
  text-align: center;
}

.premium-section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.premium-section-head p {
  margin: 0 auto;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.9;
}

.premium-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.premium-value-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(21, 128, 61, 0.08));
  color: var(--brand-strong);
  font-weight: 900;
  font-size: 1.1rem;
}

.premium-section-head-inline {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  text-align: right;
  align-items: end;
}

.premium-steps-grid,
.premium-subject-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.premium-step-card,
.premium-subject-card {
  padding: 24px;
  border-radius: 28px;
  display: grid;
  gap: 12px;
}

.premium-step-number {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(21, 128, 61, 0.08));
  color: var(--brand-strong);
  font-weight: 900;
}

.premium-step-card p,
.premium-subject-card span,
.premium-stage-panel span {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.premium-stage-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.premium-stage-panel {
  padding: 22px;
  border-radius: 28px;
  display: grid;
  gap: 10px;
}

.premium-stage-panel-active {
  border-color: rgba(34, 197, 94, 0.24);
  box-shadow: 0 26px 90px rgba(34, 197, 94, 0.14);
}

.premium-onboarding-card {
  border-radius: 32px;
  padding: 28px;
}

.precision-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.precision-quick-pills span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: rgba(34, 197, 94, 0.07);
  color: var(--brand-strong);
  font-size: 0.95rem;
}

.precision-config-panel {
  margin-top: 18px;
  border: 1px solid rgba(21, 128, 61, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.precision-config-summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 800;
  color: var(--brand-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.precision-config-summary::-webkit-details-marker {
  display: none;
}

.precision-config-summary::after {
  content: "⌄";
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.precision-config-panel[open] .precision-config-summary::after {
  transform: rotate(180deg);
}

.precision-config-body {
  display: grid;
  gap: 18px;
  padding: 0 22px 22px;
}

.premium-selectors {
  margin-top: 6px;
}

.premium-chat-stage .chat-shell {
  border-radius: 34px;
  overflow: hidden;
}

.landing-chat-config {
  display: grid;
  gap: 14px;
  margin: 0 24px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 248, 0.94));
}

.landing-chat-config-head {
  display: grid;
  gap: 6px;
}

.landing-chat-config-head strong {
  color: var(--brand-strong);
  font-size: 1rem;
}

.landing-chat-config-head span {
  color: var(--muted);
  line-height: 1.8;
}

.chat-starter-strip {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.chat-starter-strip-label {
  color: var(--muted);
  font-weight: 700;
}

.chat-starter-strip .subject-pill {
  flex: 0 0 auto;
}

.chat-mini-benefits {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(8px);
  animation: chat-benefits-reveal 0.65s ease forwards;
  animation-delay: 1.8s;
}

.chat-mini-benefit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.09);
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-strong);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.chat-mini-benefit:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(34, 197, 94, 0.18);
  box-shadow: 0 16px 34px rgba(21, 128, 61, 0.1);
  background: rgba(255, 255, 255, 0.98);
}

@keyframes chat-benefits-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-solve-mode-row {
  margin: 0;
}

.landing-precision-selectors {
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-accordion-group {
  display: grid;
  gap: 16px;
  margin-bottom: 8px;
}

.landing-accordion {
  border: 1px solid rgba(21, 128, 61, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 252, 248, 0.9));
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.landing-accordion-summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.landing-accordion-summary::-webkit-details-marker {
  display: none;
}

.landing-accordion-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 1.1rem;
}

.landing-accordion-hint {
  color: var(--brand-strong);
  font-weight: 800;
  white-space: nowrap;
}

.landing-accordion-summary::after {
  content: "⌄";
  color: var(--brand-strong);
  font-size: 1.15rem;
  font-weight: 900;
  transition: transform 0.2s ease;
}

.landing-accordion[open] .landing-accordion-summary::after {
  transform: rotate(180deg);
}

.landing-accordion-body {
  display: grid;
  gap: 18px;
  padding: 0 24px 24px;
}

.premium-chat-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.premium-chat-copy {
  display: grid;
  gap: 8px;
}

.premium-chat-copy h2,
.premium-final-card h2 {
  margin: 0;
}

.premium-chat-copy p,
.premium-final-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.premium-final-card {
  border-radius: 32px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.runtime-support-hidden {
  display: none !important;
  visibility: hidden !important;
}

.auth-shell-premium {
  direction: ltr;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  align-items: stretch;
}

.auth-shell-premium > * {
  direction: rtl;
}

.auth-shell-premium > .auth-preview,
.auth-shell-premium > .auth-card {
  order: 0;
}

.auth-card-premium,
.auth-preview-premium {
  position: relative;
  overflow: hidden;
}

.auth-card-premium {
  padding: 30px;
}

.auth-preview-premium {
  padding: 28px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.auth-preview-premium-head {
  display: grid;
  gap: 12px;
}

.auth-trust-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-trust-strip span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: rgba(34, 197, 94, 0.06);
  color: var(--brand-strong);
  font-size: 0.92rem;
}

.auth-guest-cta {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: rgba(255, 255, 255, 0.84);
  display: grid;
  gap: 10px;
}

.auth-guest-cta span {
  color: var(--muted);
  line-height: 1.8;
}

.auth-security-note {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: rgba(255, 255, 255, 0.88);
  display: grid;
  gap: 12px;
}

.auth-security-note strong {
  color: var(--brand-strong);
}

.auth-security-points {
  display: grid;
  gap: 8px;
}

.auth-security-points span {
  color: var(--muted);
  line-height: 1.8;
}

.auth-preview-points-premium {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-preview-points-premium .auth-preview-point {
  display: grid;
  gap: 6px;
  align-content: start;
}

.auth-preview-points-premium .auth-preview-point strong {
  font-size: 1rem;
}

body.theme-dark .premium-hero-card,
body.theme-dark .premium-mockup-card,
body.theme-dark .premium-step-card,
body.theme-dark .premium-stage-panel,
body.theme-dark .premium-subject-card,
body.theme-dark .premium-final-card,
body.theme-dark .auth-preview-premium,
body.theme-dark .auth-card-premium {
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(14, 22, 17, 0.94), rgba(10, 17, 13, 0.94));
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .premium-quick-box,
body.theme-dark .premium-core-ask,
body.theme-dark .premium-core-textarea,
body.theme-dark .premium-mockup-message,
body.theme-dark .landing-chat-config,
body.theme-dark .chat-ai-status,
body.theme-dark .auth-preview-bubble,
body.theme-dark .premium-mockup-footer div,
body.theme-dark .auth-trust-strip span,
body.theme-dark .premium-insight-card,
body.theme-dark .premium-value-card,
body.theme-dark .chat-mini-benefit,
body.theme-dark .precision-config-panel,
body.theme-dark .landing-accordion {
  background: rgba(18, 28, 22, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

body.theme-dark .landing-accordion-summary,
body.theme-dark .landing-accordion-hint,
body.theme-dark .premium-core-label {
  color: #d8f6df;
}

body.theme-dark .premium-core-textarea::placeholder {
  color: var(--muted);
}

body.theme-dark .precision-quick-pills span {
  background: rgba(18, 39, 26, 0.88);
  border-color: rgba(94, 227, 139, 0.18);
  color: #c6f6d5;
}

body.theme-dark .premium-hero-copy p,
body.theme-dark .premium-step-card p,
body.theme-dark .premium-subject-card span,
body.theme-dark .premium-stage-panel span,
body.theme-dark .premium-chat-copy p,
body.theme-dark .premium-final-card p,
body.theme-dark .premium-insight-card span,
body.theme-dark .premium-value-card p,
body.theme-dark .chat-ai-status-copy,
body.theme-dark .chat-starter-strip-label {
  color: var(--muted);
}

@media (max-width: 1120px) {
  .premium-hero-grid,
  .premium-section-head-inline,
  .premium-steps-grid,
  .premium-value-grid,
  .premium-subject-grid,
  .premium-stage-tabs,
  .auth-preview-points-premium,
  .premium-hero-insights {
    grid-template-columns: 1fr;
  }

  .premium-final-card,
  .premium-chat-top {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-precision-selectors {
    grid-template-columns: 1fr;
  }

  .auth-shell-premium {
    grid-template-columns: 1fr;
  }

  .student-progress-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .premium-hero-card,
  .premium-mockup-card,
  .premium-step-card,
  .premium-stage-panel,
  .premium-subject-card,
  .premium-final-card,
  .auth-card-premium,
  .auth-preview-premium {
    border-radius: 24px;
    padding: 20px;
  }

  .premium-hero-copy h1 {
    font-size: 2.2rem;
  }

  .premium-hero-actions,
  .premium-final-actions,
  .premium-core-actions,
  .premium-core-examples,
  .chat-starter-strip,
  .chat-mini-benefits,
  .premium-quick-chips,
  .auth-trust-strip,
  .precision-quick-pills {
    flex-direction: column;
    align-items: stretch;
  }

  .premium-hero-actions > *,
  .premium-final-actions > *,
  .premium-core-actions > *,
  .premium-quick-chips > *,
  .auth-trust-strip > * {
    width: 100%;
  }

  .premium-mockup-footer {
    grid-template-columns: 1fr;
  }

  .chat-ai-status {
    align-items: flex-start;
  }

  .premium-quick-box {
    min-height: 58px;
    font-size: 0.95rem;
  }

  .precision-config-summary,
  .precision-config-body {
    padding-inline: 16px;
  }

  .landing-chat-config {
    margin: 0 18px;
    padding: 16px;
  }

  .premium-chat-stage .composer-area {
    position: sticky;
    bottom: 8px;
    z-index: 7;
    margin-top: 12px;
    border-radius: 22px 22px 0 0;
    backdrop-filter: blur(14px);
  }

  .prompt-input {
    min-height: 84px;
  }

  .chat-starter-strip,
  .chat-mini-benefits {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .chat-starter-strip::-webkit-scrollbar,
  .chat-mini-benefits::-webkit-scrollbar {
    display: none;
  }

  .landing-accordion-summary {
    padding: 18px;
    align-items: start;
  }

  .landing-accordion-body {
    padding: 0 18px 18px;
  }

  .auth-preview-premium {
    order: 2;
  }

  .auth-card-premium {
    order: 1;
  }

.auth-guest-cta .secondary-btn {
  width: 100%;
}
}

@media (max-width: 960px) {
  .admin-toolbar,
  .admin-user-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin-user-actions {
    flex-direction: column;
  }

  .admin-user-actions > * {
    width: 100%;
  }
}

.auth-login-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(247, 252, 248, 0.98), rgba(236, 249, 240, 0.96)),
    linear-gradient(180deg, #ffffff, #f4fbf6);
}

.auth-login-body::before,
.auth-login-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.auth-login-body::before {
  background:
    linear-gradient(115deg, rgba(34, 197, 94, 0.07), transparent 28%),
    linear-gradient(305deg, rgba(22, 163, 74, 0.08), transparent 30%),
    repeating-linear-gradient(
      135deg,
      rgba(34, 197, 94, 0.035) 0,
      rgba(34, 197, 94, 0.035) 1px,
      transparent 1px,
      transparent 34px
    );
  opacity: 0.9;
}

.auth-login-body::after {
  inset: 8% 10% 12%;
  border-radius: 48px;
  border: 1px solid rgba(34, 197, 94, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  filter: blur(1px);
}

.auth-login-body .shell,
.auth-login-body .page-wrap {
  position: relative;
  z-index: 1;
}

.auth-minimal-topbar {
  min-height: 88px;
  justify-content: flex-start;
  background: transparent;
  border: none;
  box-shadow: none;
  padding-inline: 0;
}

.auth-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(21, 128, 61, 0.16);
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand-strong);
  font-size: 1.02rem;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

.auth-home-link:hover {
  transform: translateY(-1px);
  border-color: rgba(21, 128, 61, 0.26);
}

.auth-login-body .auth-premium-page {
  padding-top: 4px;
}

.auth-login-body .auth-shell-premium {
  grid-template-columns: minmax(0, 1160px);
  justify-content: center;
  min-height: calc(100vh - 138px);
  align-items: center;
}

.auth-login-body .auth-shell-premium > .auth-preview,
.auth-login-body .auth-shell-premium > .auth-card {
  grid-area: 1 / 1;
}

.auth-login-body .auth-preview-premium {
  min-height: 760px;
  padding: 44px 48px;
  border-radius: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 24px;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(242, 251, 245, 0.82)),
    linear-gradient(180deg, rgba(228, 247, 234, 0.58), rgba(255, 255, 255, 0.22));
  border: 1px solid rgba(21, 128, 61, 0.12);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(20px);
}

.auth-login-body .auth-preview-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(34, 197, 94, 0.03), transparent 36%),
    linear-gradient(160deg, transparent 58%, rgba(34, 197, 94, 0.08)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.2) 0,
      rgba(255, 255, 255, 0.2) 1px,
      transparent 1px,
      transparent 54px
    );
  pointer-events: none;
}

.auth-login-body .auth-preview-premium > * {
  position: relative;
  z-index: 1;
}

.auth-login-body .auth-preview-premium-head {
  grid-column: 1 / -1;
  justify-items: center;
  text-align: center;
  gap: 16px;
  padding-top: 8px;
}

.auth-login-body .hero-logo {
  gap: 14px;
}

.auth-login-body .hero-logo-mark {
  width: 84px;
  height: 84px;
  border-radius: 28px;
  border: 1px solid rgba(21, 128, 61, 0.12);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 40px rgba(21, 128, 61, 0.12);
}

.auth-login-body .hero-logo-text {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  color: var(--brand-strong);
}

.auth-login-body .auth-preview-copy,
.auth-login-body .auth-preview-chat,
.auth-login-body .auth-preview-points-premium {
  max-width: 480px;
}

.auth-login-body .auth-preview-copy {
  gap: 12px;
  padding: 10px 0 0;
}

.auth-login-body .auth-preview-copy strong {
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.18;
  color: #11351f;
}

.auth-login-body .auth-preview-copy span {
  font-size: 1.02rem;
  line-height: 1.95;
  color: rgba(23, 41, 30, 0.72);
}

.auth-login-body .auth-preview-chat {
  align-self: start;
  margin-top: 6px;
}

.auth-login-body .auth-preview-bubble {
  border-radius: 24px;
  border-color: rgba(21, 128, 61, 0.08);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
}

.auth-login-body .auth-preview-bubble-user {
  margin-inline-start: 18%;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(255, 255, 255, 0.88));
}

.auth-login-body .auth-preview-bubble-ai {
  margin-inline-end: 16%;
}

.auth-login-body .auth-preview-points-premium {
  grid-template-columns: 1fr;
  gap: 12px;
  align-self: end;
  margin-top: 6px;
}

.auth-login-body .auth-preview-point {
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(21, 128, 61, 0.08);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(12px);
}

.auth-login-body .auth-preview-point strong {
  font-size: 1rem;
}

.auth-login-body .auth-preview-point span {
  color: rgba(23, 41, 30, 0.7);
}

.auth-login-body .auth-card-premium {
  justify-self: end;
  align-self: center;
  width: min(100%, 520px);
  margin: 52px;
  padding: 30px 30px 24px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(21, 128, 61, 0.12);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(20px);
}

.auth-login-body .auth-card-premium .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.08);
  color: var(--brand-strong);
  font-weight: 800;
}

.auth-login-body .auth-card-premium h1,
.auth-login-body .auth-card-premium > p {
  text-align: center;
}

.auth-login-body .auth-card-premium h1 {
  font-size: clamp(2.25rem, 4vw, 3.15rem);
  line-height: 1.08;
  color: #13281b;
}

.auth-login-body .auth-card-premium > p {
  max-width: 430px;
  margin-inline: auto;
  line-height: 1.95;
}

.auth-login-body .auth-trust-strip {
  justify-content: center;
  gap: 8px;
}

.auth-login-body .auth-trust-strip span {
  background: rgba(239, 252, 243, 0.92);
  border-color: rgba(21, 128, 61, 0.1);
  font-size: 0.88rem;
}

.auth-login-body .auth-guest-cta,
.auth-login-body .auth-security-note,
.auth-login-body .selection-summary,
.auth-login-body .auth-mode-copy {
  border-radius: 20px;
  border-color: rgba(21, 128, 61, 0.1);
  background: rgba(247, 253, 249, 0.92);
}

.auth-login-body .auth-tabs {
  padding: 6px;
  border-radius: 22px;
  background: rgba(243, 251, 246, 0.92);
  border: 1px solid rgba(21, 128, 61, 0.08);
}

.auth-login-body .auth-tab {
  border: none;
  background: transparent;
  color: rgba(23, 41, 30, 0.6);
  border-radius: 18px;
  font-weight: 800;
}

.auth-login-body .auth-tab.active {
  background: linear-gradient(135deg, #2ecc71, #16a34a);
  color: #fff;
  box-shadow: 0 14px 28px rgba(22, 163, 74, 0.22);
}

.auth-login-body .auth-form {
  gap: 14px;
}

.auth-login-body .field-label {
  font-size: 0.95rem;
  color: #163321;
}

.auth-login-body .field {
  min-height: 56px;
  border-radius: 18px;
  padding: 14px 16px;
  border-color: rgba(21, 128, 61, 0.14);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.auth-login-body .field:focus {
  outline: none;
  border-color: rgba(22, 163, 74, 0.46);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.auth-login-body .password-field .field {
  padding-left: 56px;
}

.auth-login-body .password-toggle {
  left: 10px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(243, 251, 246, 0.95);
}

.auth-login-body .primary-btn,
.auth-login-body .secondary-btn {
  min-height: 56px;
  border-radius: 20px;
  font-size: 1.04rem;
}

.auth-login-body .primary-btn {
  background: linear-gradient(135deg, #22c55e, #15803d);
  box-shadow: 0 18px 30px rgba(22, 163, 74, 0.24);
}

.auth-login-body .primary-btn:hover {
  box-shadow: 0 22px 34px rgba(22, 163, 74, 0.3);
}

.auth-login-body .secondary-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(21, 128, 61, 0.18);
}

.auth-login-body .auth-links {
  justify-content: space-between;
}

.auth-login-body .auth-link-btn {
  color: var(--brand);
  font-weight: 800;
}

.auth-login-body .auth-footer-links {
  justify-content: center;
  gap: 16px;
}

.auth-login-body .auth-footer-links a {
  font-weight: 700;
}

.auth-login-body .scroll-top-btn {
  z-index: 3;
}

@media (max-width: 1120px) {
  .auth-login-body .auth-shell-premium {
    min-height: auto;
  }

  .auth-login-body .auth-shell-premium > .auth-preview,
  .auth-login-body .auth-shell-premium > .auth-card {
    grid-area: auto;
  }

  .auth-login-body .auth-preview-premium {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 34px 30px 148px;
  }

  .auth-login-body .auth-preview-copy,
  .auth-login-body .auth-preview-chat,
  .auth-login-body .auth-preview-points-premium {
    max-width: 100%;
  }

  .auth-login-body .auth-card-premium {
    justify-self: center;
    width: min(100%, 680px);
    margin: -110px auto 0;
  }
}

@media (max-width: 760px) {
  .auth-login-body::after {
    inset: 4% 4% 10%;
    border-radius: 28px;
  }

  .auth-login-body .shell {
    width: min(100% - 28px, 1180px);
  }

  .auth-login-body .auth-preview-premium {
    padding: 26px 18px 120px;
    border-radius: 28px;
  }

  .auth-login-body .auth-preview-premium-head {
    gap: 12px;
  }

  .auth-login-body .hero-logo-mark {
    width: 70px;
    height: 70px;
    border-radius: 24px;
  }

  .auth-login-body .auth-preview-copy {
    text-align: center;
  }

  .auth-login-body .auth-preview-copy strong {
    font-size: 1.85rem;
  }

  .auth-login-body .auth-preview-chat {
    display: none;
  }

  .auth-login-body .auth-preview-points-premium {
    gap: 10px;
  }

  .auth-login-body .auth-card-premium {
    width: auto;
    margin: -92px 12px 0;
    padding: 24px 18px 20px;
    border-radius: 26px;
  }

  .auth-login-body .auth-card-premium h1 {
    font-size: 2.2rem;
  }

  .auth-login-body .auth-links {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-login-body .auth-link-btn {
    width: 100%;
    text-align: center;
  }

  .auth-login-body .auth-trust-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .auth-login-body .auth-trust-strip::-webkit-scrollbar {
    display: none;
  }

  .auth-login-body .auth-trust-strip span {
    width: auto;
    white-space: nowrap;
  }

  .auth-home-link {
    min-height: 46px;
    padding: 0 18px;
    font-size: 0.98rem;
  }
}

body.theme-dark.auth-login-body {
  background:
    linear-gradient(180deg, rgba(8, 14, 11, 0.98), rgba(10, 18, 13, 0.98)),
    linear-gradient(135deg, rgba(11, 30, 18, 0.9), rgba(8, 14, 11, 0.92));
}

body.theme-dark.auth-login-body::before {
  background:
    linear-gradient(115deg, rgba(34, 197, 94, 0.12), transparent 28%),
    linear-gradient(305deg, rgba(22, 163, 74, 0.12), transparent 30%),
    repeating-linear-gradient(
      135deg,
      rgba(94, 227, 139, 0.05) 0,
      rgba(94, 227, 139, 0.05) 1px,
      transparent 1px,
      transparent 34px
    );
}

body.theme-dark.auth-login-body::after {
  border-color: rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}

body.theme-dark.auth-login-body .auth-home-link {
  background: rgba(12, 20, 15, 0.82);
  border-color: rgba(255, 255, 255, 0.12);
  color: #dbfce7;
}

body.theme-dark.auth-login-body .auth-preview-premium {
  background:
    linear-gradient(135deg, rgba(10, 18, 13, 0.9), rgba(14, 28, 18, 0.86)),
    linear-gradient(180deg, rgba(13, 28, 18, 0.34), rgba(10, 18, 13, 0.22));
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark.auth-login-body .auth-card-premium {
  background: rgba(10, 18, 13, 0.86);
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark.auth-login-body .hero-logo-mark,
body.theme-dark.auth-login-body .auth-preview-bubble,
body.theme-dark.auth-login-body .auth-preview-point,
body.theme-dark.auth-login-body .auth-guest-cta,
body.theme-dark.auth-login-body .auth-security-note,
body.theme-dark.auth-login-body .selection-summary,
body.theme-dark.auth-login-body .auth-mode-copy,
body.theme-dark.auth-login-body .auth-tab,
body.theme-dark.auth-login-body .auth-tabs,
body.theme-dark.auth-login-body .field,
body.theme-dark.auth-login-body .secondary-btn {
  background: rgba(16, 28, 20, 0.84);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

body.theme-dark.auth-login-body .auth-preview-copy strong,
body.theme-dark.auth-login-body .auth-card-premium h1,
body.theme-dark.auth-login-body .field-label {
  color: #f1fff4;
}

body.theme-dark.auth-login-body .auth-preview-copy span,
body.theme-dark.auth-login-body .auth-preview-point span,
body.theme-dark.auth-login-body .auth-card-premium > p,
body.theme-dark.auth-login-body .auth-guest-cta span,
body.theme-dark.auth-login-body .auth-security-points span {
  color: #bfd4c4;
}

body.showcase-home-body {
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 22%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 20%),
    linear-gradient(180deg, #f3faf6 0%, #eef8f3 48%, #f7fbf8 100%);
}

.showcase-home-body .page-wrap {
  padding-top: 18px;
}

.showcase-home-body .shell {
  position: relative;
  z-index: 1;
}

.showcase-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  direction: ltr;
  padding: 14px 18px;
  border-radius: 34px;
  border: 1px solid rgba(21, 128, 61, 0.1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.showcase-header-actions,
.showcase-main-nav,
.showcase-brand,
.showcase-hero-copy,
.showcase-stat-card,
.showcase-feature-card,
.showcase-footer,
.showcase-device-card,
.showcase-cta-card,
.device-screen {
  direction: rtl;
}

.showcase-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
  justify-self: start;
}

.showcase-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f8d58, #1fa667);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(15, 141, 88, 0.2);
}

.showcase-login-btn:hover {
  transform: translateY(-1px);
}

.showcase-icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15, 141, 88, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #114b34;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.showcase-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.showcase-main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  justify-self: center;
}

.showcase-main-nav a {
  position: relative;
  font-size: 0.98rem;
  font-weight: 700;
  color: #183127;
}

.showcase-main-nav a.active,
.showcase-main-nav a:hover {
  color: #0f8d58;
}

.showcase-main-nav a.active::after,
.showcase-main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f8d58, #68d391);
  transform: translateX(-50%);
}

.showcase-brand {
  gap: 12px;
  justify-self: end;
}

.showcase-brand .brand-copy {
  font-size: 0.86rem;
  color: #4e665b;
}

.showcase-page {
  display: grid;
  gap: 24px;
}

.showcase-page::before,
.showcase-page::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.showcase-page::before {
  width: 280px;
  height: 280px;
  top: 90px;
  left: 30px;
  background: rgba(56, 189, 248, 0.12);
}

.showcase-page::after {
  width: 360px;
  height: 360px;
  right: 40px;
  bottom: 120px;
  background: rgba(34, 197, 94, 0.12);
}

.showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  direction: ltr;
}

.showcase-main-column {
  display: grid;
  gap: 18px;
}

.showcase-side-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

.showcase-hero-panel,
.showcase-stats-strip,
.showcase-features-section,
.showcase-device-card,
.showcase-cta-card,
.showcase-footer {
  border: 1px solid rgba(21, 128, 61, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.showcase-hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  grid-template-areas: "scene copy";
  gap: 22px;
  padding: 28px 28px 18px;
  border-radius: 38px;
}

.showcase-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 22%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.06), transparent 20%);
  pointer-events: none;
}

.showcase-hero-copy {
  grid-area: copy;
  position: relative;
  z-index: 1;
  text-align: right;
  display: grid;
  align-content: center;
  gap: 18px;
}

.showcase-hero-kicker {
  font-size: 0.92rem;
  color: #4a6658;
  font-weight: 700;
}

.showcase-hero-copy h1 {
  margin: 0;
  font-size: clamp(3.2rem, 4.9vw, 5.2rem);
  line-height: 1.02;
  color: #13231d;
  letter-spacing: -0.03em;
}

.showcase-hero-copy h1 span {
  display: block;
  margin-top: 8px;
  color: #0f8d58;
}

.showcase-hero-copy p {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.95;
  color: #465f53;
}

.showcase-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.showcase-primary-btn,
.showcase-secondary-btn,
.showcase-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 1.08rem;
  font-weight: 800;
}

.showcase-primary-btn,
.showcase-cta-button {
  background: linear-gradient(135deg, #0f8d58, #1fa667);
  color: #fff;
  box-shadow: 0 18px 30px rgba(15, 141, 88, 0.22);
}

.showcase-secondary-btn {
  gap: 10px;
  background: #fff;
  color: #13231d;
  border: 1px solid rgba(21, 128, 61, 0.14);
}

.showcase-secondary-btn i {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(15, 141, 88, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f8d58;
  font-style: normal;
  font-size: 0.9rem;
}

.showcase-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.showcase-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(248, 252, 249, 0.96);
  border: 1px solid rgba(15, 141, 88, 0.1);
  color: #214435;
  font-weight: 700;
}

.showcase-trust-row i {
  color: #0f8d58;
  font-style: normal;
}

.showcase-hero-scene {
  grid-area: scene;
  position: relative;
  min-height: 470px;
}

.scene-wave {
  position: absolute;
  inset-inline: 0;
  height: 210px;
  border-radius: 50%;
  border: 1px dashed rgba(15, 141, 88, 0.16);
  transform: skewY(-6deg);
  opacity: 0.9;
}

.scene-wave-one {
  top: 34px;
}

.scene-wave-two {
  top: 110px;
  inset-inline: 24px;
  opacity: 0.55;
}

.scene-floating {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 141, 88, 0.16);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

.scene-floating-bot {
  top: 92px;
  left: 36px;
}

.scene-floating-brain {
  top: 16px;
  left: 220px;
}

.scene-floating-cap {
  top: 38px;
  left: 350px;
}

.scene-floating-note {
  top: 132px;
  left: 430px;
}

.scene-floating-chart {
  top: 256px;
  left: 442px;
}

.scene-flag-stack {
  position: absolute;
  left: 0;
  bottom: 90px;
  width: 148px;
  height: 208px;
}

.scene-books {
  position: absolute;
  left: 0;
  bottom: 0;
  display: grid;
  gap: 8px;
  width: 116px;
}

.scene-books span {
  height: 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d6f47, #2fbf78);
  box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.18);
}

.scene-books span:nth-child(2) {
  width: 106px;
}

.scene-books span:nth-child(3) {
  width: 96px;
}

.scene-flag-pole {
  position: absolute;
  left: 32px;
  bottom: 80px;
  width: 8px;
  height: 112px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7c4a17, #d59b45);
}

.scene-flag-banner {
  position: absolute;
  left: 40px;
  bottom: 150px;
  width: 112px;
  padding: 12px 10px;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(135deg, #0c7b4d, #169e63);
  color: #fff;
  transform: skewY(-6deg);
  box-shadow: 0 18px 30px rgba(15, 141, 88, 0.22);
}

.scene-flag-banner strong {
  display: block;
  font-size: 0.92rem;
}

.scene-flag-banner small {
  display: block;
  width: 52px;
  height: 2px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.8);
}

.scene-laptop {
  position: absolute;
  left: 110px;
  bottom: 48px;
  width: 420px;
  transform: rotate(-7deg);
}

.scene-laptop-screen {
  padding: 16px;
  border-radius: 24px 24px 12px 12px;
  background: linear-gradient(180deg, #1b2d2b, #101b1a);
  border: 6px solid #1f2529;
  box-shadow: 0 28px 50px rgba(15, 23, 42, 0.22);
}

.scene-screen-top {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.scene-screen-top span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.scene-screen-content {
  display: grid;
  gap: 14px;
  color: #effcf4;
}

.scene-screen-content strong {
  font-size: 1.35rem;
  line-height: 1.45;
}

.scene-screen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.scene-screen-grid div {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(117, 255, 185, 0.1);
  line-height: 1.6;
  font-weight: 700;
}

.scene-screen-grid small {
  display: block;
  color: rgba(223, 247, 231, 0.72);
  font-weight: 600;
}

.scene-screen-input {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(117, 255, 185, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(239, 252, 244, 0.76);
}

.scene-screen-input b {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f8d58, #1fa667);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.scene-laptop-base {
  width: 480px;
  height: 18px;
  margin-right: -30px;
  margin-top: -4px;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #dfe7ea, #bfc7cc);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.scene-pencil-cup {
  position: absolute;
  right: 72px;
  bottom: 124px;
  width: 62px;
  height: 82px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fafc, #d9e2e7);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
}

.pencil {
  position: absolute;
  bottom: 50px;
  width: 8px;
  height: 70px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1b8c55, #f2b35f);
}

.pencil-one {
  right: 14px;
  transform: rotate(-10deg);
}

.pencil-two {
  right: 28px;
}

.pencil-three {
  right: 42px;
  transform: rotate(10deg);
}

.scene-plant {
  position: absolute;
  right: 8px;
  bottom: 84px;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #e5ece8);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
}

.leaf {
  position: absolute;
  bottom: 28px;
  width: 18px;
  height: 34px;
  border-radius: 20px 20px 0 20px;
  background: linear-gradient(180deg, #18a663, #0f8d58);
}

.leaf-one {
  right: 22px;
  transform: rotate(-12deg);
}

.leaf-two {
  right: 34px;
  transform: rotate(18deg);
}

.leaf-three {
  right: 12px;
  transform: rotate(-34deg);
}

.showcase-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 14px 18px;
  border-radius: 30px;
}

.showcase-stat-card {
  min-height: 84px;
  padding: 10px 18px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  position: relative;
  text-align: center;
}

.showcase-stat-card:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: rgba(15, 141, 88, 0.1);
}

.showcase-stat-icon {
  font-size: 1.15rem;
}

.showcase-stat-card strong {
  font-size: 2rem;
  color: #11774a;
}

.showcase-stat-card small {
  color: #50695d;
  font-weight: 700;
}

.showcase-features-section {
  border-radius: 34px;
  padding: 28px;
}

.showcase-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
}

.showcase-section-title span {
  width: 38px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1fa667, #7ce6af);
}

.showcase-section-title strong {
  font-size: 2rem;
  color: #182b22;
}

.showcase-feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.showcase-feature-card {
  min-height: 180px;
  padding: 24px 18px;
  text-align: center;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 249, 0.98));
  border: 1px solid rgba(15, 141, 88, 0.1);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.showcase-feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  background: linear-gradient(180deg, #f0fff7, #dff8e9);
  color: #0f8d58;
}

.showcase-feature-card h2 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  color: #16271f;
}

.showcase-feature-card p {
  margin: 0;
  color: #5a7266;
  line-height: 1.85;
}

.showcase-device-card,
.showcase-cta-card {
  border-radius: 34px;
  padding: 16px;
}

.showcase-device-card-wide {
  min-height: 408px;
}

.showcase-device-frame,
.showcase-phone-frame {
  border-radius: 28px;
  padding: 10px;
  background: #0d1316;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.device-screen {
  min-height: 356px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 18%),
    linear-gradient(180deg, #ffffff, #f1f8f4);
  padding: 14px;
}

.device-topbar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.device-pill {
  width: 26px;
  height: 8px;
  border-radius: 999px;
  background: #d9e2de;
}

.device-pill.dark {
  background: #13231d;
}

.device-pill.green {
  background: #0f8d58;
}

.device-mini-hero {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.device-mini-copy strong,
.phone-copy strong {
  display: block;
  font-size: 1.15rem;
  color: #16271f;
}

.device-mini-copy span,
.phone-copy span {
  display: block;
  color: #0f8d58;
  font-weight: 800;
}

.device-mini-illustration {
  position: relative;
  height: 120px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f5fbf7, #dff6ea);
}

.mini-laptop {
  position: absolute;
  right: 24px;
  bottom: 22px;
  width: 136px;
  height: 78px;
  border-radius: 14px;
  background: linear-gradient(180deg, #1c302c, #101a18);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.14);
}

.mini-laptop::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: -10px;
  width: 158px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d3dbe0, #bbc5ca);
}

.mini-books {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 72px;
  height: 74px;
}

.mini-books::before,
.mini-books::after,
.mini-books span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f8d58, #1fa667);
}

.mini-books::before {
  bottom: 0;
}

.mini-books::after {
  bottom: 24px;
}

.device-mini-stats,
.phone-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.device-mini-stats div,
.phone-stat-row div {
  padding: 12px 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 141, 88, 0.08);
  text-align: center;
}

.device-mini-stats strong,
.phone-stat-row strong {
  display: block;
  color: #0f8d58;
}

.device-mini-stats small,
.phone-stat-row small {
  color: #668073;
}

.device-mini-grid,
.phone-feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.device-mini-grid span,
.phone-feature-row span {
  min-height: 42px;
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(15, 141, 88, 0.06);
  color: #2a4f3f;
  font-size: 0.85rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  text-align: center;
}

.showcase-cta-card {
  min-height: 318px;
  padding: 28px 22px;
  background: linear-gradient(180deg, #08734a, #0f8d58);
  color: #fff;
  box-shadow: 0 26px 50px rgba(15, 141, 88, 0.24);
}

.showcase-cta-visual {
  position: relative;
  height: 132px;
  margin-bottom: 20px;
}

.cta-bag {
  position: absolute;
  right: 80px;
  bottom: 24px;
  width: 96px;
  height: 82px;
  border-radius: 24px 24px 18px 18px;
  background: linear-gradient(180deg, #116947, #0c5237);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-bag::before {
  content: "";
  position: absolute;
  top: -18px;
  right: 22px;
  width: 52px;
  height: 24px;
  border-radius: 16px 16px 0 0;
  border: 4px solid #0b4e34;
  border-bottom: 0;
}

.cta-books,
.cta-lamp {
  position: absolute;
  bottom: 12px;
}

.cta-books {
  left: 52px;
  width: 82px;
  height: 58px;
}

.cta-books::before,
.cta-books::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.cta-books::before {
  bottom: 0;
}

.cta-books::after {
  bottom: 24px;
}

.cta-lamp {
  right: 34px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(253, 230, 138, 0.96);
  box-shadow: 0 0 0 10px rgba(253, 230, 138, 0.12);
}

.showcase-cta-copy {
  display: grid;
  gap: 12px;
  text-align: right;
}

.showcase-cta-copy strong {
  font-size: 2rem;
  line-height: 1.25;
}

.showcase-cta-copy p {
  margin: 0;
  color: rgba(240, 255, 245, 0.86);
  line-height: 1.9;
}

.showcase-cta-button {
  margin-top: 18px;
  background: #fff;
  color: #0f8d58;
}

.showcase-cta-card small {
  display: block;
  margin-top: 14px;
  text-align: center;
  color: rgba(240, 255, 245, 0.84);
}

.showcase-phone-frame {
  border-radius: 46px;
  padding: 12px;
}

.phone-screen {
  min-height: 402px;
  border-radius: 34px;
}

.phone-copy {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.phone-mini-card {
  height: 130px;
  margin-bottom: 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 70% 34%, rgba(34, 197, 94, 0.24), transparent 12%),
    linear-gradient(135deg, #e7f7ef, #ffffff);
  border: 1px solid rgba(15, 141, 88, 0.1);
  position: relative;
}

.phone-mini-card::before {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 120px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(180deg, #1d312d, #101a18);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
}

.phone-mini-card::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 50px;
  height: 70px;
  border-radius: 14px;
  background: linear-gradient(180deg, #0f8d58, #1fa667);
}

.showcase-footer {
  padding: 26px 26px 18px;
  border-radius: 34px;
  background: linear-gradient(135deg, #096d46, #0d7d51 55%, #118659);
  color: #fff;
  overflow: hidden;
}

.showcase-footer {
  display: grid;
  gap: 20px;
}

.showcase-footer-newsletter {
  display: grid;
  gap: 12px;
  max-width: 360px;
}

.showcase-footer-newsletter h2 {
  margin: 0;
  font-size: 1.7rem;
}

.showcase-footer-newsletter p {
  margin: 0;
  color: rgba(241, 255, 246, 0.82);
}

.showcase-newsletter-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
}

.showcase-newsletter-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #163321;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  font: inherit;
}

.showcase-newsletter-form button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #0f8d58;
  font: inherit;
  font-weight: 800;
}

.showcase-socials {
  display: grid;
  gap: 10px;
}

.showcase-social-links {
  display: flex;
  gap: 10px;
}

.showcase-social-links a {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.showcase-footer-links {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}

.showcase-footer-column,
.showcase-footer-brand {
  display: grid;
  gap: 10px;
}

.showcase-footer-column h3,
.showcase-footer-brand strong {
  margin: 0;
  font-size: 1.2rem;
}

.showcase-footer-column a,
.showcase-footer-brand span,
.showcase-footer-brand p {
  color: rgba(241, 255, 246, 0.82);
}

.showcase-footer-brand-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.showcase-footer-brand-head img {
  width: 48px;
  height: 48px;
}

.showcase-footer-brand p {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
}

.showcase-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.showcase-footer-copy {
  color: rgba(241, 255, 246, 0.84);
}

.showcase-footer-badges {
  display: flex;
  gap: 18px;
}

.showcase-footer-badges span {
  position: relative;
  padding-right: 18px;
  color: #fff;
  font-weight: 700;
}

.showcase-footer-badges span::before {
  content: "◆";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: #d5f7df;
}

body.theme-dark.showcase-home-body {
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.1), transparent 20%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 16%),
    linear-gradient(180deg, #0d1713, #101d17 52%, #0b140f 100%);
}

body.theme-dark .showcase-topbar,
body.theme-dark .showcase-hero-panel,
body.theme-dark .showcase-stats-strip,
body.theme-dark .showcase-features-section,
body.theme-dark .showcase-device-card,
body.theme-dark .showcase-footer,
body.theme-dark .showcase-device-frame,
body.theme-dark .showcase-phone-frame {
  background: rgba(13, 24, 18, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .showcase-cta-card {
  background: linear-gradient(180deg, #0c5f3e, #0a7148);
}

body.theme-dark .showcase-main-nav a,
body.theme-dark .showcase-hero-copy h1,
body.theme-dark .showcase-section-title strong,
body.theme-dark .showcase-feature-card h2,
body.theme-dark .showcase-stat-card small,
body.theme-dark .device-mini-copy strong,
body.theme-dark .phone-copy strong,
body.theme-dark .showcase-secondary-btn,
body.theme-dark .showcase-icon-btn {
  color: #effcf4;
}

body.theme-dark .showcase-brand .brand-copy,
body.theme-dark .showcase-hero-kicker,
body.theme-dark .showcase-hero-copy p,
body.theme-dark .showcase-feature-card p,
body.theme-dark .showcase-stat-card small,
body.theme-dark .device-mini-copy span,
body.theme-dark .phone-copy span,
body.theme-dark .device-mini-stats small,
body.theme-dark .phone-stat-row small {
  color: #b7cec1;
}

body.theme-dark .showcase-secondary-btn,
body.theme-dark .showcase-icon-btn,
body.theme-dark .showcase-feature-card,
body.theme-dark .device-mini-stats div,
body.theme-dark .phone-stat-row div,
body.theme-dark .device-mini-grid span,
body.theme-dark .phone-feature-row span {
  background: rgba(19, 33, 25, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .scene-laptop-screen,
body.theme-dark .mini-laptop,
body.theme-dark .phone-mini-card::before {
  background: linear-gradient(180deg, #172826, #0d1514);
}

@media (max-width: 1280px) {
  .showcase-layout {
    grid-template-columns: 1fr;
  }

  .showcase-side-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .showcase-device-card-wide,
  .showcase-cta-card,
  .showcase-device-card-phone {
    min-height: 100%;
  }
}

@media (max-width: 1100px) {
  .showcase-topbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 16px;
  }

  .showcase-brand,
  .showcase-header-actions,
  .showcase-main-nav {
    justify-content: center;
  }

  .showcase-main-nav {
    flex-wrap: wrap;
    gap: 18px;
  }

  .showcase-hero-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "scene";
  }

  .showcase-side-column,
  .showcase-feature-grid,
  .showcase-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .showcase-topbar {
    padding: 14px;
    border-radius: 26px;
  }

  .showcase-header-actions {
    flex-wrap: wrap;
  }

  .showcase-main-nav {
    display: none;
  }

  .showcase-hero-panel,
  .showcase-features-section,
  .showcase-device-card,
  .showcase-cta-card,
  .showcase-footer {
    border-radius: 26px;
  }

  .showcase-hero-panel {
    padding: 22px 18px 18px;
  }

  .showcase-hero-copy h1 {
    font-size: 2.8rem;
  }

  .showcase-hero-copy p {
    font-size: 1.08rem;
  }

  .showcase-hero-scene {
    min-height: 400px;
  }

  .scene-laptop {
    left: 74px;
    width: 290px;
  }

  .scene-laptop-base {
    width: 338px;
    margin-right: -18px;
  }

  .scene-floating {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .scene-floating-brain {
    left: 144px;
  }

  .scene-floating-cap {
    left: 230px;
  }

  .scene-floating-note {
    left: 300px;
  }

  .scene-floating-chart {
    left: 316px;
  }

  .scene-pencil-cup {
    right: 42px;
  }

  .showcase-stats-strip,
  .showcase-feature-grid,
  .showcase-side-column,
  .showcase-footer-links {
    grid-template-columns: 1fr;
  }

  .showcase-feature-card {
    min-height: auto;
  }

  .showcase-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .showcase-home-body .page-wrap {
    padding-top: 12px;
  }

  .showcase-topbar {
    gap: 12px;
    padding: 12px;
  }

  .showcase-brand .brand-copy {
    display: none;
  }

  .showcase-header-actions {
    justify-content: space-between;
  }

  .showcase-login-btn {
    flex: 1;
  }

  .showcase-hero-copy h1 {
    font-size: 2.35rem;
  }

  .showcase-primary-btn,
  .showcase-secondary-btn,
  .showcase-cta-button {
    width: 100%;
  }

  .showcase-hero-scene {
    min-height: 328px;
  }

  .scene-flag-stack {
    left: -10px;
    bottom: 84px;
    transform: scale(0.86);
    transform-origin: bottom left;
  }

  .scene-laptop {
    left: 48px;
    width: 228px;
    bottom: 56px;
  }

  .scene-laptop-base {
    width: 272px;
  }

  .scene-floating-bot {
    top: 86px;
    left: 6px;
  }

  .scene-floating-brain {
    top: 14px;
    left: 92px;
  }

  .scene-floating-cap {
    top: 28px;
    left: 162px;
  }

  .scene-floating-note {
    top: 108px;
    left: 214px;
  }

  .scene-floating-chart {
    top: 202px;
    left: 234px;
  }

  .scene-pencil-cup,
  .scene-plant {
    display: none;
  }

  .showcase-stats-strip {
    padding: 10px 12px;
  }

  .showcase-stat-card:not(:last-child)::after {
    display: none;
  }

  .showcase-section-title strong {
    font-size: 1.5rem;
    text-align: center;
  }

  .showcase-features-section,
  .showcase-footer {
    padding: 18px;
  }

  .showcase-newsletter-form {
    flex-direction: column;
  }

  .showcase-newsletter-form button,
  .showcase-newsletter-form input {
    width: 100%;
  }
}

/* Landing alignment refresh */
.showcase-home-body .page-wrap {
  padding-top: 20px;
  padding-bottom: 40px;
}

.showcase-home-body > .shell:first-of-type {
  width: 100%;
}

.showcase-topbar {
  position: relative;
  z-index: 5;
  margin-top: 0;
  padding: 14px 26px;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.showcase-hero-shell.showcase-hero-panel {
  direction: ltr;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.9fr);
  grid-template-areas: "scene copy";
  min-height: 560px;
  padding: 34px 38px 30px;
  align-items: center;
  gap: 30px;
}

.showcase-hero-copy {
  direction: rtl;
  justify-self: end;
  max-width: 560px;
  gap: 20px;
}

.showcase-hero-copy h1 {
  font-size: clamp(2.9rem, 4vw, 4.15rem);
  line-height: 1.24;
}

.showcase-hero-copy h1 span {
  margin: 10px 0 8px;
}

.showcase-hero-copy p {
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.9;
}

.showcase-hero-scene {
  direction: rtl;
  justify-self: start;
}

.showcase-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.showcase-hero-kicker::before {
  content: "";
  width: 44px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8fe3b6, #149157);
}

.showcase-trust-row {
  margin-top: 2px;
}

.showcase-stats-shell.showcase-stats-strip {
  margin-top: 2px;
}

.showcase-services-shell.showcase-features-section {
  padding-top: 26px;
  padding-bottom: 28px;
}

.showcase-section-subtitle {
  margin: -8px 0 22px;
  text-align: center;
  color: #667c70;
  font-size: 1.04rem;
}

.showcase-service-card h3 {
  margin: 0 0 10px;
  font-size: 1.26rem;
  color: #16271f;
}

.showcase-service-card p {
  margin: 0;
  color: #5a7266;
  font-size: 0.98rem;
  line-height: 1.85;
}

.showcase-stages-shell {
  display: grid;
  gap: 18px;
}

.showcase-section-head {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.showcase-section-head h2 {
  margin: 0;
  font-size: 2.1rem;
  color: #182b22;
}

.showcase-stage-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.showcase-stage-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(15, 141, 88, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: #2c4d3e;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.showcase-stage-pill.is-active {
  background: linear-gradient(135deg, #0f8d58, #1fa667);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 28px rgba(15, 141, 88, 0.2);
}

.showcase-stage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 0.95rem;
}

.showcase-cta-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 24px 34px;
  border-radius: 30px;
  border: 1px solid rgba(15, 141, 88, 0.1);
  background:
    radial-gradient(circle at 14% 32%, rgba(34, 197, 94, 0.1), transparent 18%),
    linear-gradient(90deg, rgba(226, 246, 235, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.07);
}

.showcase-cta-shell .showcase-cta-visual {
  margin-bottom: 0;
}

.showcase-cta-shell .showcase-cta-copy {
  justify-items: center;
  text-align: center;
  gap: 10px;
}

.showcase-cta-shell .showcase-cta-copy h2 {
  margin: 0;
  font-size: 2.05rem;
  color: #148553;
}

.showcase-cta-shell .showcase-cta-copy p {
  max-width: 720px;
  color: #5f7368;
}

.showcase-cta-shell .showcase-cta-button {
  margin-top: 8px;
  min-height: 48px;
  padding: 0 28px;
  background: linear-gradient(135deg, #0f8d58, #1fa667);
  color: #fff;
}

.showcase-footer-shell {
  padding: 30px 32px 20px;
  border-radius: 30px;
  border: 1px solid rgba(15, 141, 88, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 62px rgba(15, 23, 42, 0.07);
}

.showcase-footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.78fr 0.82fr 0.82fr 1.05fr;
  gap: 24px;
  align-items: start;
  direction: ltr;
}

.showcase-footer-newsletter,
.showcase-footer-column,
.showcase-footer-brand {
  display: grid;
  gap: 10px;
  direction: rtl;
}

.showcase-footer-newsletter h3,
.showcase-footer-column h3,
.showcase-footer-brand strong {
  margin: 0;
  font-size: 1.18rem;
  color: #173127;
}

.showcase-footer-newsletter p,
.showcase-footer-column a,
.showcase-footer-brand span,
.showcase-footer-brand p {
  margin: 0;
  color: #5e7468;
  line-height: 1.8;
}

.showcase-footer-newsletter small {
  color: #148553;
  font-weight: 700;
}

.showcase-footer-brand {
  justify-items: end;
  text-align: right;
}

.showcase-footer-brand p {
  font-size: 1.48rem;
  font-weight: 800;
  color: #14271e;
}

.showcase-footer-brand-head {
  align-items: center;
}

.showcase-footer-socials {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.showcase-footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(15, 141, 88, 0.12);
  background: rgba(244, 251, 247, 0.96);
  color: #148553;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.showcase-footer-column a {
  transition: color 0.2s ease;
}

.showcase-footer-column a:hover {
  color: #148553;
}

.showcase-newsletter-form {
  flex-direction: column;
  align-items: stretch;
  background: rgba(244, 250, 246, 0.98);
  border: 1px solid rgba(15, 141, 88, 0.08);
}

.showcase-newsletter-form input {
  background: #fff;
}

.showcase-newsletter-form button {
  background: linear-gradient(135deg, #0f8d58, #1fa667);
  color: #fff;
  align-self: flex-start;
  min-width: 96px;
}

.showcase-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 141, 88, 0.1);
}

.showcase-footer-policy-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.showcase-footer-policy-links a,
.showcase-footer-copy {
  color: #63796d;
}

body.theme-dark .showcase-stages-shell,
body.theme-dark .showcase-cta-shell,
body.theme-dark .showcase-footer-shell {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

body.theme-dark .showcase-stages-shell,
body.theme-dark .showcase-footer-shell {
  background: rgba(13, 24, 18, 0.9);
}

body.theme-dark .showcase-cta-shell {
  background:
    radial-gradient(circle at 14% 32%, rgba(34, 197, 94, 0.14), transparent 18%),
    linear-gradient(90deg, rgba(15, 31, 23, 0.96), rgba(12, 21, 17, 0.96));
}

body.theme-dark .showcase-section-head h2,
body.theme-dark .showcase-footer-newsletter h3,
body.theme-dark .showcase-footer-column h3,
body.theme-dark .showcase-footer-brand strong,
body.theme-dark .showcase-footer-brand p,
body.theme-dark .showcase-service-card h3 {
  color: #effcf4;
}

body.theme-dark .showcase-section-subtitle,
body.theme-dark .showcase-service-card p,
body.theme-dark .showcase-footer-newsletter p,
body.theme-dark .showcase-footer-column a,
body.theme-dark .showcase-footer-brand span,
body.theme-dark .showcase-footer-policy-links a,
body.theme-dark .showcase-footer-copy,
body.theme-dark .showcase-cta-shell .showcase-cta-copy p {
  color: #b7cec1;
}

body.theme-dark .showcase-stage-pill,
body.theme-dark .showcase-footer-socials a,
body.theme-dark .showcase-newsletter-form,
body.theme-dark .showcase-newsletter-form input {
  background: rgba(19, 33, 25, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  color: #effcf4;
}

@media (max-width: 1100px) {
  .showcase-cta-shell,
  .showcase-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .showcase-cta-shell .showcase-cta-copy {
    justify-items: start;
    text-align: right;
  }

  .showcase-footer-brand {
    justify-items: start;
    text-align: right;
  }

  .showcase-footer-socials {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .showcase-hero-shell.showcase-hero-panel {
    padding: 24px 18px 20px;
  }

  .showcase-section-head h2 {
    font-size: 1.8rem;
  }

  .showcase-stage-pill {
    flex: 1 1 calc(50% - 8px);
  }

  .showcase-cta-shell,
  .showcase-footer-grid {
    grid-template-columns: 1fr;
  }

  .showcase-cta-shell {
    padding: 22px 18px;
  }

  .showcase-cta-shell .showcase-cta-copy {
    justify-items: center;
    text-align: center;
  }

  .showcase-footer-shell {
    padding: 22px 18px 18px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100%, calc(100% - 24px));
  }

  .showcase-home-body > .shell:first-of-type {
    width: 100%;
  }

  .showcase-topbar {
    margin-top: 0;
    padding: 12px 14px;
  }

  .showcase-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .showcase-login-btn {
    flex: 1 1 auto;
  }

  .showcase-stage-pill {
    flex: 1 1 100%;
  }

  .showcase-cta-shell .showcase-cta-copy h2 {
    font-size: 1.55rem;
  }

  .showcase-footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .showcase-footer-policy-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Orlixor platform redesign */
body.orlixor-platform {
  margin: 0;
  direction: ltr;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(122, 91, 255, 0.09), transparent 20%),
    radial-gradient(circle at top right, rgba(135, 161, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #fafaff 100%);
  color: #101932;
}

body.orlixor-platform * {
  box-sizing: border-box;
}

body.orlixor-platform .page-wrap,
body.orlixor-platform .shell,
body.orlixor-platform .topbar,
body.orlixor-platform .showcase-topbar {
  all: unset;
}

body.orlixor-platform .scroll-top-btn {
  display: none !important;
}

.orlixor-layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100vh;
}

.orlixor-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 22px 20px;
  direction: rtl;
  border-right: 1px solid rgba(99, 88, 180, 0.1);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  display: grid;
  gap: 18px;
}

.orlixor-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #141f44;
  font-size: 1.18rem;
  font-weight: 800;
}

.orlixor-brand img {
  width: 214px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: none;
}

.orlixor-primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #7b5cff, #5e4aef);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(110, 88, 255, 0.26);
}

.orlixor-primary-action span {
  font-size: 1.1rem;
  line-height: 1;
}

.orlixor-sidebar-nav {
  display: grid;
  gap: 6px;
}

.orlixor-sidebar-nav a {
  min-height: 50px;
  padding: 0 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #1a2748;
  font-weight: 700;
  font-size: 1.02rem;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.orlixor-sidebar-nav a.is-active {
  background: linear-gradient(135deg, rgba(123, 92, 255, 0.13), rgba(123, 92, 255, 0.06));
  color: #654eff;
}

.orlixor-sidebar-nav a:hover {
  background: rgba(123, 92, 255, 0.05);
  transform: translateX(-2px);
}

.orlixor-sidebar-nav a i {
  font-style: normal;
  font-size: 1.12rem;
  opacity: 0.9;
}

.orlixor-sidebar-spacer {
  min-height: 16px;
}

.orlixor-support-card,
.orlixor-user-card {
  border: 1px solid rgba(123, 92, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 42px rgba(25, 33, 72, 0.06);
}

.orlixor-support-card {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.orlixor-mini-icon {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(123, 92, 255, 0.13), rgba(255, 255, 255, 0.98));
}

.orlixor-support-card strong,
.orlixor-user-card strong {
  display: block;
  color: #1a2748;
}

.orlixor-support-card span,
.orlixor-user-card span {
  color: #65708f;
  font-size: 0.96rem;
}

.orlixor-user-card {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.orlixor-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.9), transparent 16px),
    linear-gradient(180deg, rgba(123, 92, 255, 0.15), rgba(123, 92, 255, 0.05));
  position: relative;
}

.orlixor-user-avatar::after {
  content: "";
  position: absolute;
  left: -3px;
  bottom: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2acb72;
  border: 2px solid #fff;
}

.orlixor-user-card i {
  margin-right: auto;
  color: #1a2748;
  font-style: normal;
}

.orlixor-main {
  direction: rtl;
  padding: 22px 30px 34px;
  display: grid;
  gap: 18px;
}

.orlixor-topbar {
  display: flex;
  justify-content: flex-start;
}

.orlixor-topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.orlixor-circle-btn,
.orlixor-icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(246, 246, 255, 0.94);
  color: #1f2b52;
  font: inherit;
  box-shadow: 0 12px 28px rgba(25, 33, 72, 0.05);
}

.orlixor-search {
  width: min(470px, 44vw);
  min-height: 48px;
  padding: 0 14px 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(123, 92, 255, 0.08);
  background: rgba(255, 255, 255, 0.94);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 14px 28px rgba(25, 33, 72, 0.04);
}

.orlixor-search span {
  color: #434d6b;
  font-size: 0.9rem;
  white-space: nowrap;
}

.orlixor-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: #1a2748;
  text-align: right;
}

.orlixor-search input::placeholder {
  color: #8a91aa;
}

.orlixor-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  direction: ltr;
  align-items: center;
  gap: 34px;
  padding: 10px 6px 4px;
}

.orlixor-hero-copy {
  display: grid;
  direction: rtl;
  justify-items: center;
  text-align: center;
  gap: 16px;
}

.orlixor-hero-copy h1 {
  margin: 0;
  max-width: 660px;
  font-size: clamp(2.55rem, 3.7vw, 3.95rem);
  line-height: 1.44;
  color: #121e3c;
}

.orlixor-hero-copy h1 span {
  color: #674cff;
}

.orlixor-hero-copy p {
  margin: 0;
  max-width: 610px;
  color: #66708b;
  font-size: 1.12rem;
  line-height: 1.9;
}

.orlixor-askbar-wrap {
  width: min(100%, 690px);
  display: grid;
  gap: 12px;
}

.orlixor-askbar {
  min-height: 68px;
  padding: 8px 12px;
  border-radius: 32px;
  border: 1px solid rgba(123, 92, 255, 0.08);
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  box-shadow: 0 18px 34px rgba(25, 33, 72, 0.04);
}

.orlixor-askbar textarea {
  min-height: 44px;
  max-height: 152px;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  font: inherit;
  color: #1a2748;
  text-align: right;
  line-height: 1.7;
  padding: 10px 0;
}

.orlixor-askbar textarea::placeholder {
  color: #8a91aa;
}

.orlixor-ask-submit,
.orlixor-ask-upload {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.orlixor-ask-submit {
  background: linear-gradient(135deg, #7b5cff, #5e4aef);
  color: #fff;
  box-shadow: 0 14px 26px rgba(110, 88, 255, 0.22);
}

.orlixor-ask-upload {
  background: rgba(103, 76, 255, 0.08);
  color: #674cff;
  box-shadow: inset 0 0 0 1px rgba(103, 76, 255, 0.08);
}

.orlixor-ask-submit:hover,
.orlixor-ask-upload:hover,
.orlixor-askbar-actions button:hover {
  transform: translateY(-1px);
}

.orlixor-ask-submit:disabled,
.orlixor-ask-upload:disabled,
.orlixor-askbar-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.orlixor-ask-submit svg,
.orlixor-ask-upload svg {
  width: 20px;
  height: 20px;
}

.orlixor-askbar-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.orlixor-askbar-actions button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(123, 92, 255, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: #5b4cdc;
  font: inherit;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.orlixor-askbar-actions button:hover {
  border-color: rgba(123, 92, 255, 0.24);
  background: rgba(247, 244, 255, 0.96);
}

.orlixor-ask-attachments {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.orlixor-ask-attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(123, 92, 255, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #66708b;
  font-size: 0.9rem;
}

.orlixor-ask-attachment button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(103, 76, 255, 0.08);
  color: #674cff;
}

.orlixor-ask-response {
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(123, 92, 255, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 34px rgba(31, 44, 93, 0.04);
  color: #243159;
  line-height: 1.95;
  text-align: right;
  white-space: pre-wrap;
}

.orlixor-ask-response.is-pending {
  color: #6b7280;
}

.orlixor-ask-response.is-error {
  border-color: rgba(220, 38, 38, 0.14);
  background: rgba(255, 248, 248, 0.96);
  color: #b91c1c;
}

.orlixor-ask-response-files {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.orlixor-ask-response-files span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(103, 76, 255, 0.08);
  color: #5b4cdc;
  font-size: 0.88rem;
}

.orlixor-quick-pills {
  display: flex;
  direction: rtl;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.orlixor-quick-pills button {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 18px;
  border: 1px solid rgba(123, 92, 255, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: #1c2849;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(25, 33, 72, 0.04);
}

.orlixor-hero-visual {
  position: relative;
  min-height: 370px;
  display: grid;
  place-items: center;
}

.orlixor-hero-visual img {
  position: relative;
  z-index: 2;
  width: min(100%, 336px);
  height: auto;
  filter: drop-shadow(0 14px 26px rgba(110, 88, 255, 0.12));
}

.orlixor-stats {
  display: grid;
  direction: ltr;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(123, 92, 255, 0.08);
  border-radius: 26px;
  box-shadow: 0 20px 42px rgba(25, 33, 72, 0.04);
  overflow: hidden;
}

.orlixor-stat {
  min-height: 86px;
  padding: 18px 20px;
  display: grid;
  direction: rtl;
  justify-items: center;
  gap: 6px;
  position: relative;
  text-align: center;
}

.orlixor-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: rgba(123, 92, 255, 0.08);
}

.orlixor-stat strong {
  color: #6149ff;
  font-size: 1.75rem;
}

.orlixor-stat small {
  color: #65708f;
  font-size: 0.95rem;
}

.orlixor-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.22rem;
}

.orlixor-stat-icon.purple { background: rgba(123, 92, 255, 0.14); }
.orlixor-stat-icon.mint { background: rgba(74, 222, 128, 0.14); }
.orlixor-stat-icon.blue { background: rgba(59, 130, 246, 0.14); }
.orlixor-stat-icon.gold { background: rgba(251, 191, 36, 0.16); }

.orlixor-feature-section {
  display: grid;
  gap: 10px;
}

.orlixor-feature-section h2,
.orlixor-stage-section h2 {
  margin: 0;
  text-align: center;
  font-size: 2.05rem;
  color: #18244a;
}

.orlixor-feature-section p {
  margin: 0;
  text-align: center;
  color: #68718d;
}

.orlixor-feature-grid {
  display: grid;
  direction: ltr;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.orlixor-feature-card {
  min-height: 182px;
  padding: 18px 18px 22px;
  direction: rtl;
  border-radius: 24px;
  border: 1px solid rgba(123, 92, 255, 0.09);
  box-shadow: 0 18px 34px rgba(25, 33, 72, 0.035);
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.orlixor-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px rgba(25, 33, 72, 0.06);
}

.orlixor-feature-card.soft-purple { background: linear-gradient(180deg, rgba(245, 241, 255, 0.98), rgba(255, 255, 255, 0.98)); }
.orlixor-feature-card.soft-blue { background: linear-gradient(180deg, rgba(242, 247, 255, 0.98), rgba(255, 255, 255, 0.98)); }
.orlixor-feature-card.soft-mint { background: linear-gradient(180deg, rgba(242, 255, 251, 0.98), rgba(255, 255, 255, 0.98)); }
.orlixor-feature-card.soft-gold { background: linear-gradient(180deg, rgba(255, 250, 239, 0.98), rgba(255, 255, 255, 0.98)); }
.orlixor-feature-card.soft-pink { background: linear-gradient(180deg, rgba(255, 244, 249, 0.98), rgba(255, 255, 255, 0.98)); }

.orlixor-feature-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 8px 22px rgba(122, 91, 255, 0.08),
    inset 0 0 0 1px rgba(123, 92, 255, 0.07);
}

.orlixor-feature-icon img {
  width: 66%;
  height: 66%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.orlixor-feature-card h3 {
  margin: 0 0 10px;
  color: #17234a;
  font-size: 1.32rem;
  line-height: 1.35;
}

.orlixor-feature-card p {
  margin: 0;
  color: #677089;
  font-size: 1.01rem;
  line-height: 1.72;
}

.orlixor-stage-section {
  display: grid;
  gap: 18px;
}

.orlixor-stage-pills {
  display: flex;
  direction: rtl;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.orlixor-stage-pills button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(123, 92, 255, 0.08);
  background: rgba(255, 255, 255, 0.96);
  color: #1a2748;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(25, 33, 72, 0.04);
}

.orlixor-stage-pills button.is-active {
  background: linear-gradient(135deg, #7b5cff, #5e4aef);
  color: #fff;
}

.orlixor-cta-section {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  direction: ltr;
  align-items: center;
  gap: 28px;
  padding: 28px 36px;
  border-radius: 28px;
  border: 1px solid rgba(123, 92, 255, 0.08);
  background:
    radial-gradient(circle at 22% 70%, rgba(123, 92, 255, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(245, 242, 255, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 22px 42px rgba(25, 33, 72, 0.04);
}

.orlixor-cta-visual {
  min-height: 142px;
  display: grid;
  align-items: end;
}

.orlixor-cta-visual img {
  width: min(100%, 332px);
  height: auto;
  display: block;
}

.orlixor-cta-copy {
  display: grid;
  direction: rtl;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.orlixor-cta-copy h2 {
  margin: 0;
  color: #674cff;
  font-size: 2.15rem;
}

.orlixor-cta-copy p {
  margin: 0;
  max-width: 620px;
  color: #677089;
  font-size: 1.06rem;
  line-height: 1.8;
}

.orlixor-cta-copy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, #7b5cff, #5e4aef);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(110, 88, 255, 0.22);
}

@media (max-width: 1200px) {
  .orlixor-layout {
    grid-template-columns: 1fr;
  }

  .orlixor-sidebar {
    position: relative;
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .orlixor-brand,
  .orlixor-primary-action {
    grid-column: span 1;
  }

  .orlixor-sidebar-nav {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .orlixor-sidebar-spacer {
    display: none;
  }

  .orlixor-support-card,
  .orlixor-user-card {
    min-height: 100%;
  }

  .orlixor-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .orlixor-hero,
  .orlixor-cta-section {
    grid-template-columns: 1fr;
  }

  .orlixor-hero-visual {
    order: -1;
    min-height: 300px;
  }

  .orlixor-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orlixor-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orlixor-stat:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 680px) {
  .orlixor-main {
    padding: 18px 14px 28px;
  }

  .orlixor-sidebar {
    grid-template-columns: 1fr;
    padding: 18px 14px;
  }

  .orlixor-sidebar-nav {
    grid-template-columns: 1fr;
  }

  .orlixor-search {
    width: 100%;
  }

  .orlixor-topbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .orlixor-hero-copy h1 {
    font-size: 2.2rem;
  }

  .orlixor-askbar {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    padding: 8px 10px;
    border-radius: 24px;
  }

  .orlixor-ask-submit,
  .orlixor-ask-upload {
    width: 44px;
    height: 44px;
  }

  .orlixor-askbar-actions {
    flex-direction: column;
  }

  .orlixor-askbar-actions button {
    width: 100%;
    justify-content: center;
  }

  .orlixor-brand img {
    width: 188px;
  }

  .orlixor-hero-visual img {
    width: min(100%, 280px);
  }

  .orlixor-cta-visual img {
    width: min(100%, 280px);
  }

  .orlixor-feature-grid,
  .orlixor-stats {
    grid-template-columns: 1fr;
  }

  .orlixor-stat::after {
    display: none;
  }

  .orlixor-stage-pills {
    justify-content: stretch;
  }

  .orlixor-stage-pills button {
    width: 100%;
    justify-content: center;
  }
}
