:root {
  /* PALET WARNA UTAMA – biru → ungu lembut */
  --primary: #4f46e5;            /* indigo */
  --primary-dark: #4338ca;
  --primary-soft: rgba(79, 70, 229, 0.08);
  --primary-soft-strong: rgba(79, 70, 229, 0.14);
  --accent: #ec4899;             /* pink aksen kecil */
  --bg: #eef2ff;                 /* ungu sangat muda */
  --bg-card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-subtle: #e5e7eb;
  --danger: #ef5350;
}

/* ========== GLOBAL RESET ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  min-height: 100vh;
  color: var(--text);
  /* Gradient halus ala minimals/mui */
  background:
    radial-gradient(circle at top left, #e0f2fe 0, transparent 55%),
    radial-gradient(circle at top right, #ede9fe 0, transparent 55%),
    radial-gradient(circle at bottom, #fce7f3 0, transparent 55%),
    var(--bg);
}

/* ========== APP BAR ========== */
.app-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

/* kiri & kanan untuk balance, tengah untuk judul */
.app-bar-left {
  flex: 1;
}

.app-bar-center {
  flex: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.app-bar-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 0.9rem;
}

.app-title {
  font-weight: 700;
  font-size: 1.15rem;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: 0.03em;
}

/* subtitle tugas akhir */
.app-subtitle {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.9;
}

/* area info user + badge */
#user-info-label {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  max-width: 260px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;

  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
}

/* badge role (Siswa / Guru / Superadmin) */
.role-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.role-badge-student {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.role-badge-teacher {
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
}

.role-badge-superadmin {
  background: rgba(244, 63, 94, 0.14);
  color: #be123c;
}

/* nama di label user (kalau nanti mau dipisah) */
.user-name {
  font-weight: 500;
}

/* ========== MAIN LAYOUT ========== */
.main-container {
  display: flex;
  justify-content: center;
  padding: 24px 16px 40px;
}

.card {
  width: 100%;
  max-width: 980px;
  background: radial-gradient(circle at top left, #eef2ff 0, #ffffff 55%);
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow:
    0 24px 55px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(148, 163, 184, 0.04);
  padding: 24px 24px 28px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 28px 65px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(129, 140, 248, 0.16);
}

/* ========== TYPOGRAPHY & SECTION HEADER ========== */
.section-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
  color: #111827;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}

/* ========== FORM ========== */
.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form label {
  font-size: 0.9rem;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Input-style ala MUI/Minimals */
input[type="text"],
input[type="password"],
select,
textarea {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 9px 11px;
  outline: none;
  font-size: 0.95rem;
  background-color: #ffffff;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease,
    transform 0.06s ease;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-soft-strong);
  background-color: #f9fafb;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid transparent;
}

/* Textarea */
textarea {
  resize: vertical;
  min-height: 80px;
}

/* ========== BUTTONS ========== */
.btn {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition:
    background 0.16s ease,
    transform 0.1s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: #fff;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.5);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #4f46e5);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.4);
}

.btn-outlined {
  background: #fff;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: #475569;
}

.btn-outlined:hover {
  background: var(--primary-soft);
}

.btn-text {
  background: transparent;
  color: #6b7280;
  padding-inline: 8px;
}

.btn-text:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-card {
  background: radial-gradient(circle at top left, #eef2ff 0, #ffffff 70%);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 12px 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  text-align: left;
  justify-content: flex-start;
  color: #0f172a;
}

.btn-card:hover {
  background: linear-gradient(
    135deg,
    rgba(129, 140, 248, 0.12),
    rgba(244, 244, 245, 0.9)
  );
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.6);
}

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

.full-width {
  width: 100%;
}

/* ========== MENU GRID (SISWA) ========== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

/* ========== PESAN ERROR / INFO ========== */
.message {
  margin-top: 10px;
  font-size: 0.85rem;
  min-height: 1em;
  color: var(--danger);
}

/* ========== ROLE FIELDSET (PILIH SISWA/GURU/SUPERADMIN) ========== */
.role-fieldset {
  border-radius: 12px;
  border: 1px dashed var(--border);
  padding: 8px 10px;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.role-fieldset legend {
  padding: 0 4px;
  font-size: 0.8rem;
  color: var(--muted);
}

.role-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  transition: background 0.16s ease, color 0.16s ease;
}

.role-option input {
  accent-color: var(--primary);
}

.role-option:hover {
  background: var(--primary-soft);
}

/* ========== PASSWORD TOGGLE ========== */
.password-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.password-wrap input {
  flex: 1;
}
.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: transform 0.06s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.btn-icon:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-soft-strong);
}
.btn-icon:active {
  transform: translateY(1px);
}

/* Secondary button (untuk tombol game & opsi) */
.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--border);
  color: #0f172a;
}
.btn-secondary:hover {
  background: var(--primary-soft);
  border-color: var(--primary-soft-strong);
}

/* ========== HINT TEXT ========== */
.hint {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* ========== SALAM ANIMATION ========== */
.salam-scene {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 30px 0 16px;
  height: 80px;
}

.character {
  font-size: 2.6rem;
}

.character.student {
  position: relative;
  animation: walkToTeacher 2.5s forwards;
}

.character.teacher {
  filter: drop-shadow(0 4px 6px rgba(15, 23, 42, 0.2));
}

.salam-text {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
}

@keyframes walkToTeacher {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(130px);
  }
}

/* ========== QUIZ ========== */
.quiz-timer {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.quiz-question-text {
  font-weight: 600;
  margin-bottom: 12px;
  color: #111827;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.quiz-option-item {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  transition:
    background 0.14s ease,
    border-color 0.14s ease,
    box-shadow 0.14s ease,
    transform 0.08s ease;
}

.quiz-option-item:hover {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.8);
  transform: translateY(-1px);
}

.quiz-option-item input[type="radio"] {
  accent-color: var(--primary);
}

.quiz-result {
  margin-top: 16px;
  padding: 12px;
  border-radius: 16px;
  background: var(--primary-soft);
  border: 1px solid rgba(129, 140, 248, 0.22);
}

/* ========== SUMMARY (RINGKASAN) ========== */
.summary-content {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  min-height: 80px;
  line-height: 1.5;
}

/* ========== VIDEO LAYOUT ========== */
.video-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.video-player iframe {
  width: 100%;
  min-height: 220px;
  border-radius: 16px;
  background: #020617;
  border: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.video-item {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  background: #ffffff;
  transition:
    background 0.14s ease,
    transform 0.08s ease,
    box-shadow 0.16s ease;
}

.video-item:hover {
  background: var(--primary-soft);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
  transform: translateY(-1px);
}

/* ========== TABLES (RAPOR & ADMIN) ========== */
.table-wrapper {
  margin-top: 10px;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.table th,
.table td {
  padding: 6px 8px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.table thead {
  background: #f9fafb;
}

.table th {
  color: #4b5563;
  font-weight: 600;
}

/* ========== ADMIN TABS ========== */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}

.admin-tab-btn {
  border-radius: 999px;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  background: transparent;
  font-size: 0.85rem;
  color: #6b7280;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    transform 0.08s ease;
}

.admin-tab-btn:hover {
  background: rgba(148, 163, 184, 0.15);
  color: #111827;
}

.admin-tab-btn.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
  transform: translateY(-1px);
}

.admin-panel {
  margin-top: 8px;
}

/* ========== ROW & UTILITIES ========== */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.hidden {
  display: none !important;
}

/* ========== LOADING OVERLAY ========== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.loading-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid #c7d2fe;
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .card {
    padding: 16px 14px 20px;
    border-radius: 18px;
  }

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

  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-bar {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
  }

  .app-bar-center {
    order: -1;
  }

  .app-bar-right {
    justify-content: space-between;
  }

  #user-info-label {
    max-width: 100%;
  }

  .app-subtitle {
    text-align: center;
  }
}


/* ==== GAME ETIKA (Scene) ==== */
.salam-scene {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 20%, rgba(33, 150, 243, 0.18), transparent 55%),
              radial-gradient(circle at 80% 30%, rgba(255, 193, 7, 0.12), transparent 55%),
              rgba(10, 18, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
  margin-top: 12px;
}

.salam-scene .floor-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 36px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(33,150,243,.35), rgba(255,193,7,.28), rgba(255,255,255,0));
}

.character {
  position: absolute;
  bottom: 36px;
  width: 90px;
  height: 140px;
  transform: translateX(20px);
  transition: transform 120ms linear;
}

.character.teacher {
  right: 30px;
  transform: none;
}

.character .cap {
  position: absolute;
  top: 6px;
  left: 18px;
  width: 54px;
  height: 18px;
  border-radius: 8px 8px 4px 4px;
  background: rgba(0,0,0,0.9);
}

.character .head {
  position: absolute;
  top: 18px;
  left: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 224, 189, 0.95);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.character .body {
  position: absolute;
  top: 62px;
  left: 12px;
  width: 66px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
}

.student-uniform { background: rgba(245, 245, 245, 0.95); }
.teacher-uniform { background: rgba(156, 206, 255, 0.95); }

.character .tie {
  position: absolute;
  top: 70px;
  left: 42px;
  width: 8px;
  height: 40px;
  border-radius: 8px;
  opacity: 0.95;
}
.tie.black { background: rgba(0,0,0,0.85); }
.tie.blue  { background: rgba(10, 55, 160, 0.9); }

.character .legs {
  position: absolute;
  top: 118px;
  left: 18px;
  width: 54px;
  height: 18px;
  border-radius: 10px;
  background: rgba(0,0,0,0.85);
}

.hint-arrow {
  position: absolute;
  bottom: 160px;
  left: 110px;
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
}
.hint-arrow::before {
  content: "➡️";
  font-size: 40px;
  display: block;
  animation: bounceRight 800ms ease-in-out infinite;
}
@keyframes bounceRight {
  0% { transform: translateX(0); opacity: 0.75; }
  50% { transform: translateX(8px); opacity: 1; }
  100% { transform: translateX(0); opacity: 0.75; }
}

.salam-controls {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  justify-content: center;
}

.greeting-panel {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
}

.greeting-title {
  margin: 0 0 10px 0;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.greeting-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.greeting-message {
  margin-top: 10px;
  font-weight: 700;
}
.greeting-message.success { color: rgba(120, 255, 170, 0.95); }
.greeting-message.error { color: rgba(255, 110, 110, 0.95); }

.muted { color: rgba(255,255,255,0.70); font-size: 0.92rem; }
.checkbox-row { display: flex; align-items: center; gap: 10px; }

/* NOTE:
   Dulu ada "Form contrast lock" yang mengubah semua label form jadi putih.
   Itu bikin label di halaman login jadi tidak terbaca (kontras buruk).
   Kontras gelap/terang sekarang kembali normal & konsisten.
*/


/* Greeting actions */
.greeting-actions{margin-top:12px; display:flex; justify-content:flex-end}
#greeting-panel .btn{min-width: 220px}


/* ========== GAME ETIKA V2: PAPAN/LABIRIN (UPIN -> CEKG U) ========== */
.etika-board-wrap { margin-top: 12px; }
.etika-board {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background:
    radial-gradient(circle at 30% 25%, rgba(79, 70, 229, 0.16), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(236, 72, 153, 0.10), transparent 55%),
    rgba(2, 6, 23, 0.90);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.etika-board .cell {
  position: absolute;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.etika-board .cell.blocked {
  background: rgba(0,0,0,0.28);
  border-color: rgba(255,255,255,0.06);
}

.etika-board .cell.path {
  background: rgba(79, 70, 229, 0.10);
  border-color: rgba(99, 102, 241, 0.22);
}

.etika-board .cell.goal {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.18);
}

.etika-token {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 18px 30px rgba(0,0,0,0.35);
  display: grid;
  place-items: center;
  transition: transform 140ms ease;
  user-select: none;
}

.etika-token.upin {
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.25), transparent 55%),
              rgba(255, 255, 255, 0.92);
  color: #0f172a;
}
.etika-token.upin::before { content: "🧒🏻"; font-size: 28px; }
.etika-token.upin::after  { content: "Upin"; position:absolute; top:60px; font-size:12px; color: rgba(255,255,255,0.86); }

.etika-token.cekgu {
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.15), transparent 55%),
              rgba(156, 206, 255, 0.92);
  color: #0f172a;
}
.etika-token.cekgu::before { content: "🧕🏻"; font-size: 28px; }
.etika-token.cekgu::after  { content: "Cekgu"; position:absolute; top:60px; font-size:12px; color: rgba(255,255,255,0.86); }

.etika-legend {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.85rem;
  color: var(--muted);
  align-items: center;
}
.legend-item { display: inline-flex; align-items: center; gap: 8px; }
.legend-dot { width: 12px; height: 12px; border-radius: 4px; display:inline-block; border: 1px solid rgba(148,163,184,.6); background: rgba(255,255,255,0.12); }
.legend-dot.upin { background: rgba(255,255,255,0.85); }
.legend-dot.cekgu { background: rgba(156, 206, 255, 0.9); }
.legend-dot.goal { background: rgba(16,185,129,0.25); border-color: rgba(16,185,129,0.45); }

/* Panel langkah - versi terang (lebih premium & jelas) */
#greeting-panel.greeting-panel {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 16px 36px rgba(15,23,42,0.10);
}
#greeting-panel .greeting-title { color: #0f172a; }
#greeting-panel .muted { color: #64748b; }
#greeting-panel .greeting-message.success { color: #047857; }
#greeting-panel .greeting-message.error { color: #b91c1c; }

@media (max-width: 640px) {
  .etika-board { height: 280px; }
  .etika-token { width: 50px; height: 50px; border-radius: 14px; }
}


/* ========== PREMIUM FLAGSHIP REFRESH ========== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.09);
  --primary-soft-strong: rgba(37, 99, 235, 0.16);
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.14);
  --bg: #f6f8fc;
  --bg-card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-subtle: #eef2f7;
  --danger: #ef4444;
  --success: #16a34a;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.16), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(245, 158, 11, 0.18), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 48%, #f8fafc 100%);
}

.app-bar {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--text);
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--primary), #0f172a);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.22);
}

.brand-copy {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.app-title {
  background: linear-gradient(120deg, #0f172a, var(--primary));
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 900;
}

.app-subtitle {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.btn {
  min-height: 40px;
  border-radius: 12px;
  font-weight: 750;
  letter-spacing: -0.01em;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #1e40af);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #172554);
}

.btn-outlined {
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #0f172a;
}

.btn-login-nav {
  padding-inline: 18px;
}

.btn-large {
  min-height: 48px;
  padding: 0 20px;
  font-size: 0.98rem;
}

.main-container {
  padding: 34px 18px 56px;
}

.card {
  max-width: 1180px;
  padding: 28px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.88)),
    radial-gradient(circle at 0% 0%, rgba(37,99,235,0.10), transparent 40%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 30px 90px rgba(15, 23, 42, 0.12),
    0 1px 0 rgba(255,255,255,0.70) inset;
}

.card:hover {
  transform: none;
}

.landing-page {
  min-height: 640px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: center;
  padding: 10px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid rgba(37, 99, 235, 0.16);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  color: #0b1220;
  margin-bottom: 18px;
}

.hero-subtitle {
  max-width: 700px;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 16px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 700;
}

.trust-row span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(248,250,252,0.92);
  border: 1px solid rgba(226,232,240,0.95);
}

.hero-panel {
  border-radius: 28px;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(96, 165, 250, 0.30), transparent 34%),
    linear-gradient(145deg, #0f172a, #172554);
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.28);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.14);
  overflow: hidden;
}

.hero-panel-top {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.42);
}

.hero-stat-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(14px);
}

.hero-stat-card span {
  display: block;
  color: rgba(226,232,240,0.86);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.hero-stat-card strong {
  display: block;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.main-stat strong {
  font-size: 3rem;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  overflow: hidden;
  margin-top: 12px;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #fbbf24);
}

.mini-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.lesson-preview {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.lesson-preview div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
}

.lesson-preview b {
  font-size: 0.95rem;
}

.lesson-preview span {
  color: rgba(226,232,240,0.82);
  font-size: 0.84rem;
}

.feature-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
  padding: 10px;
}

.feature-card,
.menu-grid .btn-card,
.admin-panel,
.summary-content,
.quiz-result {
  border-radius: 22px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(226,232,240,0.95);
  box-shadow: 0 14px 34px rgba(15,23,42,0.07);
}

.feature-card {
  padding: 22px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 16px;
  background: var(--accent-soft);
  font-size: 1.35rem;
}

.feature-card h3,
.admin-panel h3,
#section-report h3 {
  letter-spacing: -0.025em;
  color: #0f172a;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.65;
  margin-top: 8px;
}

#section-login {
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 4px 6px;
}

#section-login .section-title {
  font-size: 2rem;
  letter-spacing: -0.04em;
  text-align: center;
  margin-bottom: 8px;
}

#section-login .form {
  margin-top: 16px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(226,232,240,0.95);
  box-shadow: 0 18px 42px rgba(15,23,42,0.08);
}

input[type="text"],
input[type="password"],
select,
textarea {
  min-height: 44px;
  border-radius: 14px;
  border-color: rgba(203, 213, 225, 0.92);
  background: rgba(255,255,255,0.96);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(37, 99, 235, 0.65);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
}

.section-title {
  letter-spacing: -0.035em;
}

.section-subtitle {
  line-height: 1.65;
}

.menu-grid {
  gap: 14px;
}

.menu-grid .btn-card {
  min-height: 110px;
  color: #0f172a;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.92));
}

.admin-tabs {
  padding: 8px;
  border: 1px solid rgba(226,232,240,0.95);
  border-radius: 18px;
  background: rgba(248,250,252,0.82);
}

.admin-tab-btn {
  min-height: 38px;
  padding-inline: 14px;
}

.admin-tab-btn.active {
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}

.admin-panel {
  padding: 18px;
}

.table-wrapper {
  border: 1px solid rgba(226,232,240,0.95);
  border-radius: 18px;
  overflow: auto;
  background: #ffffff;
}

.table th,
.table td {
  padding: 12px 14px;
}

.table thead {
  background: #f8fafc;
}

.loading-overlay {
  backdrop-filter: blur(5px);
}

@media (max-width: 920px) {
  .hero-grid,
  .feature-section {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .hero-panel {
    order: -1;
  }
}

@media (max-width: 768px) {
  .app-bar {
    padding: 12px 14px;
  }

  .app-bar-left,
  .app-bar-center,
  .app-bar-right {
    width: 100%;
  }

  .brand-mark {
    justify-content: center;
  }

  .btn-login-nav {
    width: 100%;
  }

  .main-container {
    padding: 20px 10px 34px;
  }

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

  .hero-grid {
    padding: 0;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .mini-card-row {
    grid-template-columns: 1fr;
  }

  .feature-section {
    padding: 0;
  }

  #section-login .form {
    padding: 16px;
  }
}

/* ===== RAVID FINAL PRODUCTION POLISH ===== */
:root {
  --primary: #1d4ed8;
  --primary-dark: #123a9c;
  --primary-soft: rgba(29, 78, 216, 0.09);
  --primary-soft-strong: rgba(29, 78, 216, 0.16);
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.16);
  --bg: #f5f8ff;
  --bg-card: #ffffff;
  --text: #0b1220;
  --muted: #64748b;
  --border: rgba(148, 163, 184, 0.22);
  --surface: rgba(255, 255, 255, 0.88);
  --shadow-premium: 0 30px 90px rgba(15, 23, 42, 0.16);
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(59, 130, 246, 0.22), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(245, 158, 11, 0.22), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(14, 165, 233, 0.16), transparent 42%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.app-bar {
  min-height: 72px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.brand-mark {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #0f2f73, #2563eb 58%, #f59e0b);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.28);
}

.brand-copy,
.app-title {
  font-weight: 950;
  letter-spacing: -0.035em;
}

.app-title {
  font-size: 1.25rem;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #f59e0b 100%);
  -webkit-background-clip: text;
  color: transparent;
}

.app-subtitle {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
}

.main-container {
  padding: 42px 18px 56px;
}

.card {
  max-width: 1180px;
  padding: 30px;
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78)),
    radial-gradient(circle at top left, rgba(219, 234, 254, 0.9), transparent 42%);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-premium);
}

.card:hover { transform: none; }

.landing-page { padding: 10px; }
.hero-grid {
  min-height: 580px;
  align-items: center;
  gap: 54px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  color: #1d4ed8;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.92), rgba(255, 247, 237, 0.92));
  border: 1px solid rgba(37, 99, 235, 0.16);
  font-weight: 850;
  font-size: 0.76rem;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08);
}

.hero-copy h1 {
  max-width: 680px;
  margin-top: 22px;
  font-size: clamp(3.15rem, 5.8vw, 5.55rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  color: #090d18;
}

.hero-subtitle {
  max-width: 650px;
  margin-top: 22px;
  color: #475569;
  font-size: 1.04rem;
  line-height: 1.85;
}

.btn {
  border-radius: 14px;
  min-height: 44px;
  font-weight: 850;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.985); }
.btn-primary {
  background: linear-gradient(135deg, #1746b8, #2563eb 58%, #1d4ed8);
  color: #fff;
  border: 1px solid rgba(37, 99, 235, 0.28);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.24);
}
.btn-primary:hover { box-shadow: 0 18px 36px rgba(37, 99, 235, 0.32); }
.btn-outlined, .btn-secondary {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #0f172a;
}
.btn-text.danger { color: #dc2626; }

.trust-row span {
  border: 1px solid rgba(148, 163, 184, .24);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 22px rgba(15,23,42,.04);
}

.hero-panel {
  border-radius: 30px;
  background:
    linear-gradient(160deg, rgba(15, 23, 42, .97), rgba(30, 64, 175, .9)),
    radial-gradient(circle at top right, rgba(245, 158, 11, .38), transparent 30%);
  box-shadow: 0 34px 80px rgba(15, 23, 42, .32);
  border: 1px solid rgba(255,255,255,.15);
}
.hero-stat-card, .lesson-preview > div {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px);
}
.progress-track span {
  background: linear-gradient(90deg, #60a5fa, #22c55e, #f59e0b);
}

.feature-section {
  margin-top: 28px;
  gap: 18px;
}
.feature-card, .master-card, .admin-panel, #section-login .form {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(148, 163, 184, .2);
  box-shadow: 0 18px 40px rgba(15,23,42,.06);
  backdrop-filter: blur(14px);
}
.feature-card {
  border-radius: 24px;
  padding: 26px;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 54px rgba(15,23,42,.10);
}
.feature-icon {
  background: linear-gradient(135deg, rgba(29, 78, 216, .12), rgba(245, 158, 11, .18));
}

.admin-tabs {
  padding: 8px;
  gap: 8px;
  background: rgba(241,245,249,.8);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, .22);
}
.admin-tab-btn {
  border-radius: 13px;
  padding: 11px 15px;
  font-weight: 850;
}
.admin-tab-btn.active {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}
.admin-panel {
  border-radius: 26px;
  padding: 24px;
  margin-top: 18px;
}

.master-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.master-card {
  border-radius: 24px;
  padding: 20px;
}
.master-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, .18);
}
.compact { margin-bottom: 12px; }
.actions-row { align-items: end; }

input, select, textarea {
  border-radius: 14px !important;
  border: 1px solid rgba(148, 163, 184, .3) !important;
  background: rgba(255,255,255,.9) !important;
  min-height: 44px;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(37, 99, 235, .14);
  border-color: rgba(37, 99, 235, .55) !important;
}

.table-wrapper {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, .18);
  overflow: auto;
}
.table thead {
  background: linear-gradient(180deg, #f8fafc, #eef4ff);
}
.table th { color: #334155; font-weight: 900; }
.table tbody tr:hover { background: rgba(37, 99, 235, .04); }

@media (max-width: 980px) {
  .master-grid { grid-template-columns: 1fr; }
  .app-bar { flex-wrap: wrap; gap: 10px; }
  .app-bar-center { order: 3; flex-basis: 100%; }
}


/* ========== PREMIUM USER FEEDBACK ========== */
.loading-overlay {
  z-index: 80;
  background:
    radial-gradient(circle at 50% 40%, rgba(37, 99, 235, 0.14), transparent 34%),
    rgba(15, 23, 42, 0.22);
}

.loading-card {
  min-width: 240px;
  padding: 22px 24px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.18);
  display: grid;
  place-items: center;
  gap: 12px;
}

.loading-card p {
  margin: 0;
  color: #475569;
  font-weight: 800;
  font-size: 0.92rem;
}

.toast-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  gap: 12px;
  max-width: min(420px, calc(100vw - 32px));
}

.toast {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  align-items: start;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
  animation: toast-in 0.22s ease-out both;
  overflow: hidden;
}

.toast::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #2563eb;
}

.toast-success::before { background: #16a34a; }
.toast-error::before { background: #dc2626; }
.toast-warning::before { background: #d97706; }

.toast-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 950;
  color: #fff;
  background: #2563eb;
}
.toast-success .toast-icon { background: #16a34a; }
.toast-error .toast-icon { background: #dc2626; }
.toast-warning .toast-icon { background: #d97706; }

.toast-body {
  display: grid;
  gap: 3px;
}

.toast-body strong {
  color: #0f172a;
  font-size: 0.94rem;
}

.toast-body span {
  color: #64748b;
  line-height: 1.45;
  font-size: 0.86rem;
}

.toast-close {
  border: 0;
  background: #f8fafc;
  color: #64748b;
  border-radius: 999px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-weight: 900;
}

.toast-out { animation: toast-out 0.18s ease-in both; }

.feedback-line {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 800;
  line-height: 1.45;
  border: 1px solid transparent;
}
.feedback-success { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
.feedback-error { color: #991b1b; background: #fef2f2; border-color: #fecaca; }
.feedback-warning { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.feedback-info { color: #1e40af; background: #eff6ff; border-color: #bfdbfe; }

button:disabled,
.btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none !important;
}

.app-bar {
  padding-inline: clamp(16px, 3vw, 32px);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(8px) scale(0.98); }
}

@media (max-width: 640px) {
  .toast-root {
    right: 16px;
    left: 16px;
    bottom: 16px;
    max-width: none;
  }
}

/* ===== RAVID FINAL PRODUCTION POLISH: motion, light, video upload ===== */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(36px);
  opacity: .42;
  z-index: -1;
  animation: ravidGlowFloat 9s ease-in-out infinite alternate;
}
body::before { left: -120px; top: 110px; background: radial-gradient(circle, rgba(37, 99, 235, .34), transparent 66%); }
body::after { right: -100px; top: 170px; background: radial-gradient(circle, rgba(245, 158, 11, .28), transparent 66%); animation-delay: -3s; }
@keyframes ravidGlowFloat { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(22px, 28px, 0) scale(1.08); } }
.card, .admin-panel, .table-wrapper, .video-player { backdrop-filter: blur(18px); }
.landing-page { position: relative; overflow: hidden; }
.landing-page::before {
  content: ""; position: absolute; inset: -35% auto auto -20%; width: 72%; height: 72%; border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, .16), transparent 60%); animation: ravidPulse 6s ease-in-out infinite;
}
.landing-page::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.16) 44%, rgba(255,255,255,.55) 50%, rgba(255,255,255,.16) 56%, transparent 100%);
  transform: translateX(-110%); animation: ravidShine 7s ease-in-out infinite; pointer-events: none;
}
.hero-grid, .feature-grid, .hero-copy, .hero-panel { position: relative; z-index: 1; }
@keyframes ravidPulse { 0%, 100% { opacity: .55; transform: scale(.98); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes ravidShine { 0%, 48% { transform: translateX(-120%); } 68%, 100% { transform: translateX(120%); } }
.btn, .tab-btn, .video-item, .source-option { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }
.btn:hover, .tab-btn:hover, .video-item:hover, .source-option:hover { transform: translateY(-1px); }
.btn:active, .tab-btn:active, .video-item:active, .source-option:active { transform: translateY(0) scale(.99); }
.video-layout { align-items: stretch; }
.video-player {
  min-height: 360px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(circle at 16% 10%, rgba(96,165,250,.24), transparent 34%), linear-gradient(145deg, #0f172a, #172554 58%, #1e3a8a);
  box-shadow: 0 26px 70px rgba(15, 23, 42, .22); border: 1px solid rgba(255,255,255,.32);
  display: flex; align-items: center; justify-content: center;
}
.video-player iframe, .main-video-el { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; background: #020617; }
.video-empty-state { color: rgba(255,255,255,.86); text-align: center; padding: 32px; font-weight: 800; letter-spacing: -.01em; }
.video-list { display: flex; flex-direction: column; gap: 12px; }
.video-item {
  width: 100%; display: flex; gap: 12px; align-items: center; border: 1px solid rgba(148, 163, 184, .28);
  background: rgba(255,255,255,.84); border-radius: 18px; padding: 14px; text-align: left; cursor: pointer;
  box-shadow: 0 12px 32px rgba(15,23,42,.06);
}
.video-item.active { border-color: rgba(37,99,235,.5); box-shadow: 0 18px 38px rgba(37,99,235,.16); background: linear-gradient(135deg, rgba(239,246,255,.96), rgba(255,255,255,.92)); }
.video-item-index { width: 38px; height: 38px; border-radius: 14px; display: grid; place-items: center; color: #1d4ed8; font-weight: 900; background: linear-gradient(135deg, #dbeafe, #fff7ed); }
.video-item-copy { display: grid; gap: 3px; }
.video-item-copy small { color: #64748b; font-weight: 700; }
.premium-video-form { background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94)); border: 1px solid rgba(203, 213, 225, .72); border-radius: 24px; padding: 22px; box-shadow: 0 22px 55px rgba(15,23,42,.07); }
.video-source-toggle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.source-option { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 18px; border: 1px solid rgba(203,213,225,.86); background: #fff; cursor: pointer; }
.source-option input { margin-top: 4px; }
.source-option strong { display: block; color: #0f172a; font-weight: 900; }
.source-option small { display: block; color: #64748b; line-height: 1.45; margin-top: 2px; }
.source-option.active { border-color: rgba(37,99,235,.62); box-shadow: 0 18px 42px rgba(37,99,235,.12); background: linear-gradient(135deg, #eff6ff, #ffffff 62%, #fff7ed); }
.input-help { color: #64748b; font-size: .86rem; margin-top: 8px; display: block; }
.btn-wide { width: 100%; justify-content: center; }
.source-badge { display: inline-flex; border-radius: 999px; padding: 5px 10px; background: #eff6ff; color: #1d4ed8; font-weight: 900; font-size: .78rem; }
.url-preview { max-width: 280px; margin-top: 6px; word-break: break-all; color: #64748b; font-size: .82rem; }
.empty-soft { padding: 18px; border-radius: 18px; border: 1px dashed rgba(148,163,184,.55); background: rgba(248,250,252,.82); color: #64748b; font-weight: 700; }
@media (max-width: 860px) { .video-source-toggle { grid-template-columns: 1fr; } .video-player, .video-player iframe, .main-video-el { min-height: 240px; } }


/* ===== RAVID PATCH V3: flagship premium readability polish ===== */
:root {
  --ravid-bg-blue: rgba(37, 99, 235, 0.10);
  --ravid-bg-gold: rgba(245, 158, 11, 0.10);
  --ravid-text-main: #0f172a;
  --ravid-text-soft: #516076;
  --ravid-border: rgba(148, 163, 184, 0.18);
}
body {
  background:
    radial-gradient(circle at left top, rgba(59,130,246,.14), transparent 28%),
    radial-gradient(circle at right top, rgba(245,158,11,.12), transparent 24%),
    linear-gradient(180deg, #f6f9ff, #f7f9fc 58%, #f8fbff);
}
.main-container {
  max-width: 1600px;
  padding: 34px 28px 88px;
}
#card-root.card {
  max-width: 1320px;
  margin: 0 auto;
  border-radius: 34px;
  border: 1px solid rgba(226,232,240,.9);
  background: rgba(255,255,255,.7);
  box-shadow: 0 40px 100px rgba(15,23,42,.08);
  backdrop-filter: blur(22px);
}
.app-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226,232,240,.75);
  padding: 14px 18px;
}
.app-title { letter-spacing: -.04em; font-weight: 900; }
.app-subtitle { color: #64748b; font-size: .82rem; }
.brand-mark { gap: 12px; }
.brand-logo { box-shadow: 0 12px 24px rgba(37,99,235,.24); }
.landing-page {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
  isolation: isolate;
  background: linear-gradient(135deg, rgba(255,255,255,.66), rgba(255,255,255,.42));
}
.ambient-bubbles { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bubble { position: absolute; border-radius: 999px; opacity: .58; mix-blend-mode: screen; filter: blur(2px); animation: bubbleDrift 14s ease-in-out infinite alternate, bubbleSpin 18s linear infinite; }
.bubble::after { content: ""; position: absolute; inset: 18%; border-radius: inherit; background: rgba(255,255,255,.18); }
.bubble-blue { width: 220px; height: 220px; left: -40px; top: 42px; background: radial-gradient(circle at 32% 32%, rgba(147,197,253,.95), rgba(37,99,235,.18) 58%, transparent 74%); }
.bubble-gold { width: 300px; height: 300px; right: -90px; top: 36px; animation-delay: -5s; background: radial-gradient(circle at 32% 32%, rgba(253,230,138,.95), rgba(245,158,11,.18) 58%, transparent 76%); }
.bubble-violet { width: 160px; height: 160px; left: 56%; bottom: 20px; animation-delay: -9s; background: radial-gradient(circle at 35% 35%, rgba(196,181,253,.9), rgba(139,92,246,.16) 60%, transparent 76%); }
.bubble-cyan { width: 128px; height: 128px; right: 24%; bottom: 28px; animation-delay: -3s; background: radial-gradient(circle at 35% 35%, rgba(103,232,249,.9), rgba(6,182,212,.16) 60%, transparent 76%); }
@keyframes bubbleDrift { from { transform: translate3d(0,0,0); } to { transform: translate3d(18px,-16px,0); } }
@keyframes bubbleSpin { from { rotate: 0deg; } to { rotate: 360deg; } }
.hero-grid, .feature-section { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  align-items: center;
  gap: clamp(28px, 4vw, 46px);
}
.hero-copy { max-width: 620px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(219,234,254,.92), rgba(255,247,237,.86));
  color: #1d4ed8; font-weight: 800; letter-spacing: -.02em; box-shadow: 0 10px 24px rgba(37,99,235,.08);
}
.hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(3rem, 5.6vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.07em;
  max-width: 11ch;
  color: var(--ravid-text-main);
}
.hero-subtitle {
  margin-top: 22px;
  max-width: 58ch;
  color: var(--ravid-text-soft);
  font-size: 1.06rem;
  line-height: 1.9;
}
.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.hero-mini-stat {
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(226,232,240,.9);
  background: rgba(255,255,255,.74);
  box-shadow: 0 18px 32px rgba(15,23,42,.05);
}
.hero-mini-stat strong { display:block; font-size: 1rem; letter-spacing: -.03em; color:#0f172a; }
.hero-mini-stat span { display:block; margin-top: 6px; color:#64748b; font-size:.88rem; line-height:1.5; }
.hero-actions { margin-top: 26px; gap: 14px; }
.trust-row { margin-top: 16px; gap: 10px; }
.trust-row span { color:#334155; font-weight: 700; }
.hero-footnote { margin-top: 14px; color:#7a889b; font-size:.92rem; line-height:1.75; }
.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 20px;
  background:
    radial-gradient(circle at 22% 0%, rgba(96,165,250,.34), transparent 32%),
    radial-gradient(circle at 88% 16%, rgba(245,158,11,.24), transparent 28%),
    linear-gradient(160deg, #172554, #223b8f 58%, #2b53c2);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 34px 84px rgba(15,23,42,.24);
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
}
.hero-panel::before { content:""; position:absolute; inset:0; background: linear-gradient(120deg, rgba(255,255,255,.02), rgba(255,255,255,.09) 48%, rgba(255,255,255,.02)); pointer-events:none; }
.hero-panel-glow { position:absolute; border-radius:999px; pointer-events:none; filter: blur(24px); opacity:.55; }
.hero-panel-glow-a { width:140px; height:140px; top:-20px; right:-18px; background: radial-gradient(circle, rgba(96,165,250,.72), transparent 68%); animation: panelGlow 6s ease-in-out infinite alternate; }
.hero-panel-glow-b { width:120px; height:120px; left:-20px; bottom:36px; background: radial-gradient(circle, rgba(245,158,11,.52), transparent 70%); animation: panelGlow 7s ease-in-out infinite alternate-reverse; }
@keyframes panelGlow { from { transform: scale(.94) translate3d(0,0,0); } to { transform: scale(1.06) translate3d(6px,12px,0); } }
.hero-panel-top { align-items:center; justify-content:flex-start; }
.hero-panel-status { margin-left:auto; padding: 7px 10px; border-radius:999px; font-size:.74rem; font-weight:800; color:#dbeafe; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); }
.hero-stat-card, .lesson-preview div { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.14); backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 30px rgba(15,23,42,.14); }
.hero-stat-card span, .lesson-preview span { color: rgba(226,232,240,.86); }
.main-stat strong { font-size: 4rem; letter-spacing: -.06em; }
.progress-track { position:relative; height:12px; margin-top: 14px; background: rgba(255,255,255,.14); overflow:hidden; }
.progress-fill {
  position:relative; display:block; height:100%; border-radius:inherit;
  background: linear-gradient(90deg, #60a5fa, #22c55e 50%, #f59e0b);
  box-shadow: 0 0 22px rgba(96,165,250,.4), 0 0 30px rgba(245,158,11,.22);
}
.progress-fill::after {
  content: ""; position:absolute; top:-40%; right:-6px; width:82px; height:180%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), rgba(255,255,255,.95), rgba(255,255,255,.18), transparent);
  transform: skewX(-20deg); animation: progressRush 2.1s ease-in-out infinite;
}
@keyframes progressRush { 0% { transform: translateX(-78px) skewX(-20deg); opacity: .12; } 35% { opacity: .96; } 100% { transform: translateX(58px) skewX(-20deg); opacity: 0; } }
.lesson-preview { margin-top: 14px; gap: 12px; }
.lesson-preview div { padding: 16px; }
.lesson-preview b { font-size: 1rem; }
.feature-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.feature-card {
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.86));
  box-shadow: 0 20px 40px rgba(15,23,42,.06);
}
.feature-card h3 { margin: 16px 0 10px; letter-spacing: -.03em; font-size: 1.25rem; color:#0f172a; }
.feature-card p { color:#64748b; line-height:1.8; font-size:.97rem; }
.section-title { font-size: clamp(2rem, 2.8vw, 2.6rem); line-height:1.08; letter-spacing:-.05em; color:#0f172a; }
.section-subtitle { color:#64748b; line-height:1.75; max-width: 72ch; font-size: 1rem; }
#section-admin-dashboard { padding: 6px 6px 2px; }
.admin-hero {
  display:grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 18px;
  align-items: stretch;
  margin: 6px 0 20px;
}
.admin-hero-copy, .admin-hero-metrics {
  border-radius: 26px;
  border:1px solid rgba(226,232,240,.92);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.82));
  box-shadow: 0 18px 38px rgba(15,23,42,.06);
}
.admin-hero-copy { padding: 24px 26px; }
.admin-hero-copy h3 { margin: 14px 0 10px; font-size: 1.85rem; line-height: 1.12; letter-spacing:-.04em; }
.admin-hero-copy p { color:#64748b; line-height:1.8; max-width:60ch; }
.admin-hero-metrics { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px; padding: 16px; }
.admin-metric-card { padding: 16px; border-radius: 20px; background: rgba(255,255,255,.86); border:1px solid rgba(226,232,240,.9); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.admin-metric-card span { display:block; color:#64748b; font-weight:700; font-size:.85rem; }
.admin-metric-card strong { display:block; margin-top:6px; font-size:1.2rem; letter-spacing:-.03em; color:#0f172a; }
.admin-metric-card small { display:block; margin-top:8px; color:#7a889b; line-height:1.5; }
.admin-tabs {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(248,250,252,.72);
  border:1px solid rgba(226,232,240,.9);
  margin-bottom: 18px;
}
.admin-tab-btn {
  min-height: 48px;
  border-radius: 16px;
  font-weight: 800;
  color:#475569;
  background: transparent;
  border: 1px solid transparent;
}
.admin-tab-btn.active {
  color:#1d4ed8;
  background: linear-gradient(135deg, rgba(239,246,255,.96), rgba(255,255,255,.92));
  border-color: rgba(191,219,254,.9);
  box-shadow: 0 12px 26px rgba(37,99,235,.10);
}
.admin-panel {
  border-radius: 28px;
  padding: 28px;
  border:1px solid rgba(226,232,240,.95);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.86));
  box-shadow: 0 22px 44px rgba(15,23,42,.06);
}
.admin-panel h3 { font-size: 1.6rem; letter-spacing:-.04em; color:#0f172a; }
.table-wrapper { border-radius: 22px; overflow: hidden; border:1px solid rgba(226,232,240,.9); background:#fff; }
.table thead th { background: linear-gradient(180deg, #f8fafc, #eef2ff); color:#334155; }
.table tbody td { color:#334155; padding-top: 16px; padding-bottom: 16px; }
.table tbody tr:hover { background: rgba(239,246,255,.55); }
.form label { color:#334155; font-weight:700; }
.form input, .form textarea, .form select {
  margin-top: 8px;
  min-height: 48px;
  border-radius: 16px;
  border:1px solid rgba(203,213,225,.95);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.9));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.7);
}
.form textarea { min-height: 120px; }
.form input:focus, .form textarea:focus, .form select:focus { outline:none; border-color: rgba(37,99,235,.38); box-shadow: 0 0 0 4px rgba(37,99,235,.10); }
#admin-question-form { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 18px; align-items:start; }
#admin-question-form input[type="hidden"] { display:none; }
#admin-question-form > label:nth-of-type(1), #admin-question-form > label:nth-of-type(6), #admin-question-form > button { grid-column: 1 / -1; }
#admin-question-form > button { min-height: 50px; }
#admin-summary-form, .premium-video-form { display:grid; gap: 16px; }
.video-source-toggle { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px; }
.source-option { border-radius: 18px; padding: 16px; border:1px solid rgba(203,213,225,.95); background: rgba(255,255,255,.9); }
.source-option.active { border-color: rgba(37,99,235,.55); box-shadow: 0 16px 32px rgba(37,99,235,.10); background: linear-gradient(135deg, rgba(239,246,255,.92), rgba(255,255,255,.95)); }
.native-file-input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.label-title { display:block; margin-bottom:8px; color:#334155; font-weight:800; }
.file-picker-card { display:flex; gap: 14px; align-items:flex-start; padding: 16px; border-radius: 18px; border:1px dashed rgba(37,99,235,.38); background: linear-gradient(135deg, rgba(239,246,255,.88), rgba(255,255,255,.96)); }
.file-picker-meta { display:grid; gap: 6px; }
.file-picker-meta strong { color:#0f172a; }
.video-player { min-height: 380px; }
.video-frame-shell { position:relative; width:100%; height:100%; min-height:380px; }
.video-frame-meta { position:absolute; left: 16px; right: 16px; bottom: 16px; display:flex; justify-content:space-between; gap:12px; align-items:center; padding:12px 14px; border-radius:18px; background: linear-gradient(180deg, rgba(15,23,42,.14), rgba(15,23,42,.78)); backdrop-filter: blur(10px); color:#fff; }
.video-frame-badge { display:inline-flex; padding:8px 12px; border-radius:999px; background: rgba(255,255,255,.14); font-weight:800; }
.btn.btn-primary { box-shadow: 0 14px 30px rgba(37,99,235,.24); }
.btn.btn-primary:hover { box-shadow: 0 18px 38px rgba(37,99,235,.32); }
@media (max-width: 1080px) {
  .hero-grid, .admin-hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .hero-copy h1 { max-width: 12ch; }
}
@media (max-width: 860px) {
  .main-container { padding-inline: 14px; }
  #card-root.card { border-radius: 26px; }
  .hero-grid { gap: 24px; }
  .hero-copy h1 { font-size: clamp(2.4rem, 10vw, 4rem); max-width: none; }
  .hero-highlights, .feature-section, .admin-hero-metrics, .video-source-toggle, #admin-question-form { grid-template-columns: 1fr; }
  .hero-panel { transform: none; }
  .file-picker-card, .video-frame-meta { flex-direction: column; align-items:flex-start; }
}


/* ===== RAVID PATCH V4: full final production polish ===== */
:root {
  --surface-glass: rgba(255,255,255,.78);
  --surface-strong: rgba(255,255,255,.94);
  --ink-900: #08111f;
  --ink-700: #26364d;
  --ink-500: #66758b;
  --line-soft: rgba(148,163,184,.18);
  --blue-brand: #2454d6;
  --blue-brand-2: #2563eb;
  --gold-brand: #f59e0b;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink-900);
  background:
    radial-gradient(circle at 14% 10%, rgba(96,165,250,.20), transparent 22%),
    radial-gradient(circle at 82% 8%, rgba(251,191,36,.18), transparent 22%),
    radial-gradient(circle at 50% 92%, rgba(56,189,248,.14), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #f5f8ff 48%, #f8fafc 100%);
  text-rendering: optimizeLegibility;
}

body::before {
  opacity: .34;
}

body::after {
  opacity: .30;
}

.hidden {
  display: none !important;
}

.main-container {
  min-height: calc(100vh - 74px);
}

.app-bar {
  min-height: 72px;
  box-shadow: 0 10px 32px rgba(15,23,42,.04);
}

.brand-logo {
  background: linear-gradient(135deg, #1746b8, #2563eb 58%, #f59e0b);
}

.brand-copy,
.app-title {
  font-weight: 950;
}

#card-root.card {
  position: relative;
  overflow: hidden;
}

#card-root.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255,255,255,.28) 44%, rgba(255,255,255,.70) 50%, rgba(255,255,255,.25) 56%, transparent 100%);
  transform: translateX(-120%);
  animation: ravidShellShine 12s ease-in-out infinite;
}

@keyframes ravidShellShine {
  0%, 72% { transform: translateX(-120%); opacity: .18; }
  82% { opacity: .55; }
  100% { transform: translateX(120%); opacity: 0; }
}

section {
  position: relative;
  z-index: 1;
}

.section-header-row {
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}

.section-header-row .btn-text {
  margin-left: auto;
}

.section-title {
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--ink-500);
}

#section-login {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px);
}

#section-login::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  right: -40px;
  top: -40px;
  background: radial-gradient(circle, rgba(37,99,235,.13), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

#section-login .section-title {
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -.055em;
}

#section-login .form {
  padding: 26px;
  border-radius: 28px;
  border: 1px solid rgba(226,232,240,.92);
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.06), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.88));
  box-shadow: 0 28px 70px rgba(15,23,42,.08);
}

.role-fieldset {
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 22px;
  padding: 16px;
  background: rgba(248,250,252,.72);
}

.role-fieldset legend {
  padding: 0 8px;
  color: var(--ink-700);
  font-weight: 900;
}

.role-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 8px 12px 0 0;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(226,232,240,.95);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 54px;
}

.btn-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(239,246,255,.88);
}

.menu-grid {
  gap: 18px;
}

.menu-grid .btn-card {
  min-height: 158px;
  align-items: flex-start;
  padding: 24px;
  text-align: left;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 10%, rgba(37,99,235,.08), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.86));
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: 0 20px 46px rgba(15,23,42,.06);
}

.menu-grid .btn-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(15,23,42,.10);
}

.quiz-content,
.quiz-result,
.summary-content,
.video-layout,
.etika-board-wrap,
.greeting-panel {
  border-radius: 28px;
  border: 1px solid rgba(226,232,240,.9);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.86));
  box-shadow: 0 22px 52px rgba(15,23,42,.06);
}

.quiz-question-text {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.65;
  color: var(--ink-900);
}

.quiz-options {
  display: grid;
  gap: 12px;
}

.quiz-options label,
.quiz-options button,
.option-card {
  border-radius: 18px;
  border: 1px solid rgba(203,213,225,.9);
  background: rgba(255,255,255,.88);
  padding: 14px 16px;
}

.quiz-timer {
  border-radius: 18px;
  border: 1px solid rgba(37,99,235,.18);
  background: linear-gradient(135deg, rgba(239,246,255,.94), rgba(255,255,255,.88));
  color: #1d4ed8;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(37,99,235,.08);
}

.summary-content {
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--ink-700);
  padding: 28px;
}

.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 18px;
  padding: 18px;
}

.video-list {
  padding: 4px;
}

.video-player {
  border-radius: 30px;
}

.table-wrapper {
  overflow: auto;
}

.table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px;
}

.table th,
.table td {
  border-bottom: 1px solid rgba(226,232,240,.9);
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-panel h4 {
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 1.15rem;
  letter-spacing: -.03em;
}

.form-row {
  align-items: end;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(248,250,252,.68);
  border: 1px solid rgba(226,232,240,.88);
  margin-bottom: 18px;
}

.form-row label {
  min-width: 180px;
}

.btn {
  letter-spacing: -.01em;
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
  border: 1px solid rgba(220,38,38,.24);
  box-shadow: 0 14px 30px rgba(239,68,68,.22);
}

.btn-danger:hover {
  box-shadow: 0 18px 40px rgba(239,68,68,.30);
}

.premium-dialog-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 22px;
}

.premium-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.38);
  backdrop-filter: blur(10px);
}

.premium-dialog-card {
  position: relative;
  width: min(480px, 100%);
  border-radius: 30px;
  padding: 26px;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.10), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94));
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: 0 34px 90px rgba(15,23,42,.22);
  animation: dialogPop .18s ease-out;
}

@keyframes dialogPop {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.premium-dialog-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 950;
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 18px 34px rgba(239,68,68,.22);
  margin-bottom: 16px;
}

.premium-dialog-copy h3 {
  font-size: 1.45rem;
  letter-spacing: -.04em;
  margin: 0 0 8px;
}

.premium-dialog-copy p {
  margin: 0;
  color: var(--ink-500);
  line-height: 1.75;
}

.premium-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.loading-overlay {
  backdrop-filter: blur(10px);
}

.loading-card,
.loading-box {
  border-radius: 28px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: 0 30px 80px rgba(15,23,42,.16);
}

.toast {
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(15,23,42,.14);
}

.toast-icon {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}

#section-salam .section-title,
#section-student-menu .section-title,
#section-quiz .section-title,
#section-summary .section-title,
#section-video .section-title,
#section-report .section-title {
  max-width: 680px;
}

.etika-board {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 18px 46px rgba(15,23,42,.08);
}

@media (max-width: 1100px) {
  .video-layout {
    grid-template-columns: 1fr;
  }
  .table {
    min-width: 640px;
  }
}

@media (max-width: 760px) {
  .app-bar {
    align-items: center;
  }
  .main-container {
    padding: 18px 12px 60px;
  }
  #card-root.card {
    border-radius: 24px;
  }
  .form-row {
    display: grid;
  }
  .form-row label {
    min-width: 0;
  }
  .admin-panel {
    padding: 20px;
    border-radius: 24px;
  }
  .premium-dialog-actions {
    flex-direction: column-reverse;
  }
  .premium-dialog-actions .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ===== RAVID PATCH V5: centered layout, final production wording, user table polish ===== */
.main-container {
  display: block;
  width: 100%;
  padding: 34px 32px 88px;
}

#card-root.card {
  width: min(100%, 1360px);
  margin-inline: auto;
  padding: clamp(28px, 3vw, 40px);
}

#section-landing,
#section-admin-dashboard,
#section-student-menu,
#section-quiz,
#section-summary,
#section-video,
#section-report,
#section-login,
#section-salam {
  max-width: 1220px;
  margin-inline: auto;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(34px, 4vw, 56px);
}

.hero-copy {
  max-width: 660px;
}

.hero-copy h1 {
  max-width: 8.5ch;
  font-size: clamp(3.2rem, 5.4vw, 5.35rem);
  line-height: 1.02;
}

.hero-subtitle {
  max-width: 56ch;
  font-size: 1.04rem;
  line-height: 1.92;
}

.hero-highlights {
  margin-top: 22px;
}

.hero-mini-stat,
.feature-card,
.admin-hero-copy,
.admin-hero-metrics,
.admin-panel,
.form-row,
.table-wrapper {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.90));
}

.feature-card p,
.admin-hero-copy p,
.admin-metric-card small,
.hero-footnote,
.table tbody td {
  color: #5b6b80;
}

.admin-hero-copy h3 {
  max-width: 18ch;
}

.form-row {
  justify-content: flex-start;
}

.empty-table-row td {
  text-align: center;
  color: #64748b;
  padding: 24px 18px !important;
}

.action-stack {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-sm {
  min-height: 38px;
  padding: 9px 14px;
  font-size: .86rem;
}

.btn-table-action {
  min-width: 88px;
  justify-content: center;
}

.role-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.role-tag-student {
  background: rgba(34,197,94,.12);
  color: #15803d;
  border-color: rgba(34,197,94,.18);
}

.role-tag-teacher {
  background: rgba(59,130,246,.12);
  color: #1d4ed8;
  border-color: rgba(59,130,246,.18);
}

.role-tag-admin,
.role-tag-superadmin {
  background: rgba(245,158,11,.14);
  color: #b45309;
  border-color: rgba(245,158,11,.2);
}

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

  .hero-copy h1,
  .admin-hero-copy h3 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .main-container {
    padding: 20px 12px 60px;
  }

  #card-root.card {
    width: 100%;
    padding: 20px 16px 24px;
  }

  .action-stack {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-table-action {
    width: 100%;
  }
}

/* ===== RAVID PATCH V6: superadmin flagship table, search, summary, form polish ===== */
.admin-users-panel-v6 {
  position: relative;
  overflow: hidden;
}

.admin-users-panel-v6::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 180px;
  background:
    radial-gradient(circle at 18% 15%, rgba(37, 99, 235, .10), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(245, 158, 11, .10), transparent 28%);
  pointer-events: none;
}

.admin-users-panel-v6 > * {
  position: relative;
  z-index: 1;
}

.panel-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.panel-heading-row h3 {
  margin: 12px 0 8px;
  font-size: clamp(1.85rem, 2.4vw, 2.35rem);
  line-height: 1.08;
}

.panel-description {
  max-width: 56ch;
  color: #64748b;
  line-height: 1.8;
  margin: 0;
}

.soft-eyebrow {
  background: linear-gradient(135deg, rgba(239,246,255,.95), rgba(255,247,237,.86));
  color: #1d4ed8;
}

.user-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 20px;
}

.user-summary-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(226,232,240,.94);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.9));
  box-shadow: 0 18px 36px rgba(15,23,42,.055), inset 0 1px 0 rgba(255,255,255,.72);
}

.user-summary-card span,
.user-summary-card small {
  display: block;
  color: #64748b;
}

.user-summary-card span {
  font-weight: 800;
  font-size: .88rem;
}

.user-summary-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
  letter-spacing: -.06em;
  color: #0f172a;
}

.user-summary-card small {
  margin-top: 8px;
  line-height: 1.45;
}

.user-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px);
  gap: 14px;
  align-items: end;
  margin: 18px 0;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(226,232,240,.92);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.92));
}

.search-field input[type="search"] {
  padding-left: 46px;
  background-image: radial-gradient(circle at 18px 50%, rgba(37,99,235,.28) 0 5px, transparent 6px);
  background-repeat: no-repeat;
}

.premium-table-wrapper {
  border-radius: 26px;
  box-shadow: 0 24px 54px rgba(15,23,42,.075);
}

.premium-table {
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
}

.premium-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-top: 16px;
  padding-bottom: 16px;
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
  border-bottom: 1px solid rgba(203,213,225,.74);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.premium-table tbody tr {
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.premium-table tbody tr:hover {
  background: rgba(239,246,255,.72);
}

.row-number {
  font-weight: 900;
  color: #94a3b8 !important;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-cell strong,
.user-cell small {
  display: block;
}

.user-cell strong {
  color: #0f172a;
  letter-spacing: -.02em;
}

.user-cell small {
  margin-top: 4px;
  color: #7a889b;
  font-size: .82rem;
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #2563eb, #60a5fa 60%, #f59e0b);
  box-shadow: 0 12px 26px rgba(37,99,235,.22);
}

.class-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(241,245,249,.86);
  color: #334155;
  font-weight: 800;
  border: 1px solid rgba(226,232,240,.95);
}

.table-empty-state {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 18px;
}

.table-empty-state strong {
  color: #0f172a;
  font-size: 1rem;
}

.table-empty-state span {
  color: #64748b;
  line-height: 1.6;
}

.table-empty-state.danger strong {
  color: #b91c1c;
}

.user-form-card {
  margin-top: 24px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(226,232,240,.94);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.90));
  box-shadow: 0 22px 48px rgba(15,23,42,.065), inset 0 1px 0 rgba(255,255,255,.76);
}

.user-form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.user-form-heading h4 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -.04em;
}

.user-form-heading p {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.7;
}

.form-mode-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #1d4ed8;
  background: rgba(219,234,254,.78);
  border: 1px solid rgba(191,219,254,.85);
  font-weight: 900;
  white-space: nowrap;
}

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

.admin-user-form-grid input[type="hidden"] {
  display: none;
}

.form-span-2 {
  grid-column: 1 / -1;
}

.form-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-action-row .btn {
  min-width: 180px;
}

@media (max-width: 900px) {
  .panel-heading-row,
  .user-form-heading,
  .form-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .user-summary-grid,
  .user-toolbar,
  .admin-user-form-grid {
    grid-template-columns: 1fr;
  }

  .form-action-row .btn {
    width: 100%;
  }
}


/* ===== RAVID PATCH V7: Superadmin dashboard full layout balance ===== */
.main-container {
  max-width: none;
  display: flex;
  justify-content: center;
  padding: 34px clamp(18px, 3vw, 48px) 92px;
}

#card-root.card {
  width: min(100%, 1440px);
  max-width: 1440px;
  margin-inline: auto;
  padding: clamp(30px, 3vw, 48px);
}

#section-admin-dashboard {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
}

#section-admin-dashboard > .section-header-row {
  margin-bottom: 26px;
}

#section-admin-dashboard .section-title {
  font-size: clamp(2.35rem, 3vw, 3.25rem);
  letter-spacing: -.065em;
  line-height: 1.04;
}

#admin-greeting {
  max-width: 70ch;
  font-size: 1.02rem;
  line-height: 1.85;
}

.admin-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: 22px;
  margin: 4px 0 24px;
}

.admin-hero-copy,
.admin-hero-metrics {
  min-height: 230px;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
}

.admin-hero-copy::after,
.admin-hero-metrics::after,
.admin-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.08), transparent 34%, rgba(255,255,255,.18) 52%, transparent 70%);
  opacity: .62;
}

.admin-hero-copy > *,
.admin-hero-metrics > *,
.admin-panel > * {
  position: relative;
  z-index: 1;
}

.admin-hero-copy {
  padding: clamp(28px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.admin-hero-copy h3 {
  max-width: 20ch;
  font-size: clamp(2rem, 2.6vw, 2.65rem);
  line-height: 1.03;
  margin: 16px 0 12px;
}

.admin-hero-copy p {
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.85;
}

.admin-hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  padding: 18px;
}

.admin-metric-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 190px;
  padding: 22px;
  border-radius: 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.admin-metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37,99,235,.22);
  box-shadow: 0 22px 42px rgba(37,99,235,.08);
}

.admin-metric-card strong {
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.16;
}

.admin-tabs {
  position: sticky;
  top: 88px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(7, minmax(118px, 1fr));
  gap: 10px;
  padding: 10px;
  margin: 0 0 22px;
  border-radius: 26px;
  background: rgba(248, 250, 252, .78);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(15,23,42,.055), inset 0 1px 0 rgba(255,255,255,.7);
}

.admin-tab-btn {
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 18px;
  letter-spacing: -.02em;
  white-space: normal;
}

.admin-tab-btn.active {
  background: linear-gradient(135deg, #ffffff, #eff6ff 62%, #fff7ed);
  border-color: rgba(147,197,253,.9);
  box-shadow: 0 16px 32px rgba(37,99,235,.12);
}

.admin-panel {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(28px, 3vw, 40px);
  min-height: 360px;
}

.panel-heading-row.panel-heading-compact {
  align-items: flex-start;
  margin-bottom: 22px;
}

.panel-heading-row h3,
.admin-panel > h3 {
  font-size: clamp(1.65rem, 2.1vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -.05em;
}

.panel-description {
  max-width: 72ch;
  line-height: 1.8;
}

.admin-filter-card {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(170px, .45fr) auto;
  align-items: end;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(226,232,240,.95);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.88));
  box-shadow: 0 18px 36px rgba(15,23,42,.045);
  margin-bottom: 20px;
}

.admin-filter-card label {
  width: 100%;
}

.admin-filter-card .btn {
  min-height: 50px;
  min-width: 140px;
}

.admin-question-table-wrapper {
  margin-bottom: 24px;
}

.admin-question-table td:first-child,
.admin-question-table th:first-child {
  width: 86px;
}

.admin-question-table td:last-child,
.admin-question-table th:last-child {
  width: 190px;
}

.row-number-pill {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(37,99,235,.09);
  color: #1d4ed8;
  font-weight: 900;
}

.question-preview-cell {
  display: grid;
  gap: 7px;
}

.question-preview-cell strong {
  color: #0f172a;
  line-height: 1.55;
  font-weight: 800;
}

.question-preview-cell span {
  color: #64748b;
  font-size: .88rem;
}

.question-form-card {
  margin-top: 22px;
  border-radius: 28px;
  border: 1px solid rgba(226,232,240,.95);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.9));
  box-shadow: 0 22px 48px rgba(15,23,42,.055);
  padding: clamp(20px, 2.4vw, 28px);
}

.question-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.question-form-head h4 {
  font-size: 1.45rem;
  letter-spacing: -.04em;
  margin: 0 0 6px;
}

.question-form-head p {
  margin: 0;
  color: #64748b;
  line-height: 1.72;
  max-width: 72ch;
}

#admin-question-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

#admin-question-form > label:nth-of-type(1) {
  grid-column: 1 / -1;
}

#admin-question-form > label:nth-of-type(2),
#admin-question-form > label:nth-of-type(3),
#admin-question-form > label:nth-of-type(4),
#admin-question-form > label:nth-of-type(5) {
  grid-column: span 2;
}

#admin-question-form > label:nth-of-type(6) {
  grid-column: 1 / span 2;
}

#admin-question-form > button {
  grid-column: span 1;
  min-height: 52px;
  align-self: end;
}

#admin-question-text {
  min-height: 140px;
}

.empty-inline-state {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 12px;
}

.empty-inline-state strong {
  color: #0f172a;
  font-size: 1rem;
}

.empty-inline-state span {
  color: #64748b;
  font-size: .92rem;
}

.premium-empty-row td {
  padding: 34px 18px !important;
}

/* polish all admin sub-panels so switching tabs feels consistent */
#admin-videos-panel,
#admin-summaries-panel,
#admin-reports-panel,
#admin-master-panel,
#admin-game-panel,
#admin-users-panel {
  animation: panelFadeIn .22s ease-out;
}

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

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

  .admin-hero-metrics {
    min-height: auto;
  }

  .admin-metric-card {
    min-height: 150px;
  }

  .admin-tabs {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  #card-root.card {
    padding: 22px 16px 28px;
  }

  .admin-filter-card,
  #admin-question-form,
  .admin-tabs,
  .admin-hero-metrics {
    grid-template-columns: 1fr;
  }

  #admin-question-form > label,
  #admin-question-form > button,
  #admin-question-form > label:nth-of-type(2),
  #admin-question-form > label:nth-of-type(3),
  #admin-question-form > label:nth-of-type(4),
  #admin-question-form > label:nth-of-type(5),
  #admin-question-form > label:nth-of-type(6) {
    grid-column: 1 / -1;
  }

  .question-form-head {
    flex-direction: column;
  }
}


/* ===== RAVID PATCH V8: Student Experience & Learning Pages Polish ===== */
.student-dashboard-page,
.learning-page {
  position: relative;
}

.student-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 22px;
  align-items: stretch;
  overflow: hidden;
  border-radius: 34px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(226, 232, 240, .92);
  background:
    radial-gradient(circle at 10% 10%, rgba(37,99,235,.12), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(245,158,11,.13), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.84));
  box-shadow: 0 34px 90px rgba(15, 23, 42, .08);
}

.student-hero-card::after {
  content: "";
  position: absolute;
  inset: -30% auto auto 45%;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(96,165,250,.22), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.student-hero-copy,
.student-hero-visual {
  position: relative;
  z-index: 1;
}

.student-hero-copy .section-title {
  max-width: 13ch;
  margin-top: 16px;
}

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

.student-quick-stats > div,
.report-summary-card {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(226,232,240,.92);
  background: rgba(255,255,255,.86);
  box-shadow: 0 16px 32px rgba(15,23,42,.05);
}

.student-quick-stats span,
.report-summary-card span {
  display: block;
  color: #64748b;
  font-size: .82rem;
  font-weight: 800;
}

.student-quick-stats strong,
.report-summary-card strong {
  display: block;
  margin-top: 6px;
  color: #0f172a;
  font-size: 1.1rem;
  letter-spacing: -.03em;
}

.student-hero-visual {
  min-height: 260px;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 30px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 26% 20%, rgba(96,165,250,.42), transparent 32%),
    radial-gradient(circle at 78% 70%, rgba(245,158,11,.30), transparent 30%),
    linear-gradient(155deg, #172554, #1e3a8a 56%, #2b59d2);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 24px 50px rgba(37,99,235,.18);
}

.student-hero-visual strong {
  position: relative;
  z-index: 2;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -.06em;
}

.student-hero-visual p {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  color: rgba(226,232,240,.90);
  font-weight: 700;
}

.student-progress-orbit {
  position: absolute;
  inset: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  animation: studentOrbit 16s linear infinite;
}

.student-progress-orbit span {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #60a5fa, #f59e0b);
  box-shadow: 0 0 24px rgba(255,255,255,.42);
}

.student-progress-orbit span:nth-child(1) { top: 8%; left: 20%; }
.student-progress-orbit span:nth-child(2) { right: 12%; top: 42%; background: linear-gradient(135deg, #22c55e, #60a5fa); }
.student-progress-orbit span:nth-child(3) { left: 28%; bottom: 10%; background: linear-gradient(135deg, #f59e0b, #a78bfa); }

@keyframes studentOrbit { from { rotate: 0deg; } to { rotate: 360deg; } }

.student-section-intro,
.learning-toolbar {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(226,232,240,.92);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.84));
  box-shadow: 0 20px 46px rgba(15,23,42,.05);
}

.student-section-intro h3 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 1.2rem;
  letter-spacing: -.03em;
}

.student-section-intro p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

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

.student-menu-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  min-height: 210px !important;
}

.student-menu-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  right: -60px;
  top: -60px;
  background: radial-gradient(circle, rgba(37,99,235,.14), transparent 72%);
}

.menu-card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  font-size: 1.35rem;
  background: linear-gradient(135deg, rgba(219,234,254,.95), rgba(255,247,237,.95));
  box-shadow: 0 14px 30px rgba(37,99,235,.10);
}

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

.menu-card-copy strong {
  color: #0f172a;
  font-size: 1.15rem;
  letter-spacing: -.03em;
}

.menu-card-copy small {
  color: #64748b;
  line-height: 1.7;
  font-weight: 700;
}

.learning-header-row {
  align-items: flex-start;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(226,232,240,.92);
  background:
    radial-gradient(circle at 14% 10%, rgba(37,99,235,.09), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.84));
  box-shadow: 0 22px 52px rgba(15,23,42,.06);
}

.learning-header-row .section-title {
  margin-top: 12px;
}

.learning-toolbar {
  flex-wrap: wrap;
}

.learning-toolbar label {
  display: grid;
  gap: 8px;
  flex: 1 1 320px;
  color: #334155;
  font-weight: 800;
}

.learning-toolbar select {
  min-height: 50px;
  border-radius: 17px;
  border: 1px solid rgba(203,213,225,.95);
  background: #fff;
  padding: 0 14px;
  color: #0f172a;
}

.quiz-content {
  margin-top: 18px;
  padding: 24px;
}

.quiz-options label {
  min-height: 58px;
  align-items: center;
}

.quiz-options label:has(input:checked) {
  border-color: rgba(37,99,235,.55);
  background: linear-gradient(135deg, rgba(239,246,255,.96), rgba(255,255,255,.94));
  box-shadow: 0 16px 34px rgba(37,99,235,.10);
}

.quiz-result {
  padding: 24px;
}

.quiz-result-hero {
  display: grid;
  gap: 6px;
  text-align: center;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(219,234,254,.96), rgba(255,247,237,.92));
}

.quiz-result-hero span,
.quiz-result-grid span {
  color: #64748b;
  font-weight: 800;
}

.quiz-result-hero strong {
  font-size: clamp(2.8rem, 5vw, 4rem);
  letter-spacing: -.06em;
  color: #1d4ed8;
}

.quiz-result-hero p {
  margin: 0;
  color: #334155;
  font-weight: 800;
}

.quiz-result-grid,
.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.quiz-result-grid div {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(226,232,240,.92);
  background: rgba(255,255,255,.86);
}

.quiz-result-grid strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 1.2rem;
}

.summary-reading-card {
  margin-top: 18px;
  padding: clamp(24px, 3vw, 36px);
  font-size: 1.06rem;
  line-height: 2;
}

.summary-reading-card p {
  margin: 0 0 1.15em;
}

.summary-reading-card p:last-child {
  margin-bottom: 0;
}

.empty-learning-state {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 160px;
  text-align: center;
  color: #64748b;
}

.empty-learning-state strong {
  color: #0f172a;
  font-size: 1.1rem;
}

.video-layout {
  margin-top: 18px;
  border-radius: 32px;
}

.video-player,
.video-frame-shell {
  border-radius: 26px;
  overflow: hidden;
}

.video-empty-state {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 26px;
  color: #64748b;
  font-weight: 800;
  background:
    radial-gradient(circle at 30% 20%, rgba(37,99,235,.10), transparent 35%),
    linear-gradient(135deg, rgba(248,250,252,.92), rgba(255,255,255,.96));
  border: 1px dashed rgba(148,163,184,.48);
}

.report-summary-grid {
  margin: 22px 0 22px;
}

.class-pill,
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  font-weight: 900;
  font-size: .8rem;
}

.class-pill {
  color: #1d4ed8;
  background: rgba(219,234,254,.86);
  border: 1px solid rgba(191,219,254,.9);
}

.rank-badge {
  margin-right: 8px;
  color: #92400e;
  background: rgba(254,243,199,.92);
  border: 1px solid rgba(253,230,138,.95);
}

@media (max-width: 1120px) {
  .student-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .student-hero-card {
    grid-template-columns: 1fr;
  }
  .student-quick-stats,
  .quiz-result-grid,
  .report-summary-grid {
    grid-template-columns: 1fr;
  }
  .student-hero-copy .section-title {
    max-width: none;
  }
}

@media (max-width: 680px) {
  .student-menu-grid {
    grid-template-columns: 1fr;
  }
  .student-menu-card {
    min-height: 160px !important;
  }
  .learning-header-row,
  .learning-toolbar {
    padding: 18px;
  }
}


/* ===== RAVID V9.6: Premium Game Etika Gate (scoped, aman) ===== */
.premium-etika-page {
  position: relative;
}

.premium-etika-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(circle at 16% 8%, rgba(37,99,235,.16), transparent 34%),
    radial-gradient(circle at 86% 4%, rgba(245,158,11,.18), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.9));
  border: 1px solid rgba(226,232,240,.92);
  box-shadow: 0 32px 90px rgba(15,23,42,.10);
}

.premium-etika-shell::before,
.premium-etika-shell::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  filter: blur(10px);
  opacity: .42;
  pointer-events: none;
  animation: etikaFloat 9s ease-in-out infinite;
}
.premium-etika-shell::before {
  left: -80px;
  bottom: 8%;
  background: radial-gradient(circle, rgba(56,189,248,.28), transparent 68%);
}
.premium-etika-shell::after {
  right: -70px;
  top: 12%;
  background: radial-gradient(circle, rgba(245,158,11,.28), transparent 68%);
  animation-delay: -4s;
}
@keyframes etikaFloat {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(12px,-14px,0) scale(1.06); }
}

.premium-etika-hero,
.premium-etika-layout {
  position: relative;
  z-index: 1;
}

.premium-etika-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 22px;
  align-items: end;
  margin-bottom: 22px;
}

.premium-etika-hero .section-title {
  margin-bottom: 10px;
  max-width: 720px;
}

.premium-etika-status {
  border-radius: 26px;
  padding: 18px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: 0 20px 50px rgba(15,23,42,.08);
}
.premium-etika-status span {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(37,99,235,.09);
  color: #1d4ed8;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 12px;
}
.premium-etika-status strong {
  display: block;
  color: #0f172a;
  font-size: 22px;
  margin-bottom: 12px;
}
.etika-progress-track {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148,163,184,.22);
}
.etika-progress-track span {
  display: block;
  height: 100%;
  width: 12%;
  margin: 0;
  padding: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #22c55e, #f59e0b);
  transition: width 280ms ease;
}

.premium-etika-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 22px;
  align-items: start;
}

.premium-etika-game-card,
.premium-etika-side-card {
  border-radius: 30px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: 0 24px 64px rgba(15,23,42,.08);
}
.premium-etika-game-card { padding: 18px; }
.premium-etika-side-card { padding: 24px; }

.etika-board-topbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.etika-board-topbar strong,
.premium-etika-side-card h3 {
  color: #0f172a;
}
.etika-board-topbar span,
.premium-etika-side-card p {
  color: #64748b;
  line-height: 1.65;
}
.etika-live-badge {
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(245,158,11,.14);
  color: #92400e !important;
  font-weight: 800;
  font-size: 12px;
}

#section-salam .etika-board {
  min-height: 360px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 22% 22%, rgba(59,130,246,.35), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(245,158,11,.22), transparent 34%),
    radial-gradient(circle at 50% 88%, rgba(34,197,94,.12), transparent 34%),
    linear-gradient(140deg, #020617, #172554 58%, #1d4ed8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 28px 70px rgba(15,23,42,.22);
}

#section-salam .etika-board .cell {
  border-radius: 16px;
  backdrop-filter: blur(10px);
}
#section-salam .etika-board .cell.path {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
}
#section-salam .etika-board .cell.goal {
  background: rgba(34,197,94,.24);
  border-color: rgba(134,239,172,.55);
  box-shadow: 0 0 24px rgba(34,197,94,.28), inset 0 0 0 1px rgba(255,255,255,.12);
}
#section-salam .etika-board .cell.blocked {
  background: rgba(15,23,42,.58);
  border-color: rgba(255,255,255,.08);
}

#section-salam .etika-token {
  transition: transform 180ms cubic-bezier(.2,.8,.2,1), filter 180ms ease;
}
#section-salam .etika-token.upin {
  background: linear-gradient(145deg, #ffffff, #dbeafe);
  box-shadow: 0 20px 42px rgba(59,130,246,.32);
}
#section-salam .etika-token.cekgu {
  background: linear-gradient(145deg, #fef3c7, #93c5fd);
  box-shadow: 0 20px 42px rgba(245,158,11,.26);
}

#section-salam .salam-controls {
  margin-top: 18px;
}
#section-salam .salam-controls .btn {
  min-width: 58px;
  min-height: 48px;
  border-radius: 16px;
}

#section-salam #greeting-panel.greeting-panel {
  margin-top: 18px;
  border-radius: 24px;
  background: rgba(248,250,252,.88);
  border: 1px solid rgba(226,232,240,.95);
}
#section-salam .greeting-options .btn {
  justify-content: flex-start;
  min-width: 0;
  width: 100%;
}
#section-salam .greeting-actions {
  justify-content: stretch;
}
#section-salam #greeting-panel .greeting-actions .btn {
  width: 100%;
  min-width: 0;
}

.etika-mission-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.etika-mission-list div {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(248,250,252,.9);
  border: 1px solid rgba(226,232,240,.95);
}
.etika-mission-list strong {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(37,99,235,.1);
  color: #1d4ed8;
}
.etika-mission-list span {
  color: #334155;
  font-weight: 700;
}

@media (max-width: 980px) {
  .premium-etika-hero,
  .premium-etika-layout {
    grid-template-columns: 1fr;
  }
  #section-salam .etika-board {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .premium-etika-shell {
    padding: 18px;
    border-radius: 26px;
  }
  .premium-etika-game-card,
  .premium-etika-side-card {
    padding: 16px;
    border-radius: 24px;
  }
  .etika-board-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  #section-salam .salam-controls {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =====================================================
   RAVID V9.6.1 - Premium Random Adab Game Refinement
   Scope: hanya game etika siswa.
   ===================================================== */
#section-salam .etika-token.upin::before,
#section-salam .etika-token.upin::after,
#section-salam .etika-token.cekgu::before,
#section-salam .etika-token.cekgu::after {
  content: none !important;
}

#section-salam .etika-token {
  width: 64px;
  height: 70px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  grid-template-rows: 1fr auto;
  padding: 6px 5px 5px;
  overflow: visible;
  isolation: isolate;
}

#section-salam .etika-token.upin {
  background: linear-gradient(145deg, rgba(239,246,255,.98), rgba(191,219,254,.96));
  border: 1px solid rgba(147,197,253,.75);
  box-shadow: 0 22px 48px rgba(59,130,246,.30), inset 0 1px 0 rgba(255,255,255,.82);
}

#section-salam .etika-token.cekgu {
  background: linear-gradient(145deg, rgba(255,251,235,.98), rgba(186,230,253,.94));
  border: 1px solid rgba(251,191,36,.45);
  box-shadow: 0 22px 48px rgba(245,158,11,.24), inset 0 1px 0 rgba(255,255,255,.82);
}

#section-salam .avatar-illustration {
  position: relative;
  width: 42px;
  height: 42px;
  display: block;
}

#section-salam .avatar-face {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fde68a, #f5c16c);
  border: 1px solid rgba(120,53,15,.18);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.45);
}

#section-salam .avatar-face::before,
#section-salam .avatar-face::after {
  content: "";
  position: absolute;
  top: 11px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #0f172a;
}
#section-salam .avatar-face::before { left: 8px; }
#section-salam .avatar-face::after { right: 8px; }

#section-salam .student-avatar .avatar-cap {
  position: absolute;
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
  width: 30px;
  height: 16px;
  border-radius: 10px 10px 7px 7px;
  background: linear-gradient(135deg, #020617, #1e293b);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 5px 10px rgba(15,23,42,.18);
  z-index: 2;
}

#section-salam .student-avatar .avatar-cap::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: rgba(59,130,246,.82);
}

#section-salam .teacher-avatar .avatar-hijab {
  position: absolute;
  left: 50%;
  top: 2px;
  transform: translateX(-50%);
  width: 38px;
  height: 42px;
  border-radius: 21px 21px 17px 17px;
  background: linear-gradient(145deg, #93c5fd, #2563eb);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 10px 18px rgba(37,99,235,.18);
}

#section-salam .teacher-avatar .avatar-face {
  top: 12px;
  width: 24px;
  height: 24px;
  z-index: 2;
}

#section-salam .token-label {
  margin-top: 2px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  color: #0f172a;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  box-shadow: 0 4px 10px rgba(15,23,42,.08);
}

#section-salam .etika-board .cell.teacher-cell {
  background: rgba(251,191,36,.20);
  border-color: rgba(251,191,36,.42);
  box-shadow: 0 0 28px rgba(251,191,36,.22), inset 0 0 0 1px rgba(255,255,255,.12);
}

#section-salam .greeting-options .btn.adab-choice {
  position: relative;
  padding-left: 18px;
  text-align: left;
}

#section-salam .greeting-options .btn.adab-choice::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid rgba(37,99,235,.28);
  background: rgba(255,255,255,.82);
  margin-right: 8px;
  flex: 0 0 auto;
}

#section-salam .greeting-options .btn.adab-choice.selected {
  border-color: rgba(37,99,235,.45);
  background: linear-gradient(180deg, rgba(239,246,255,.96), rgba(255,255,255,.96));
  box-shadow: 0 12px 30px rgba(37,99,235,.12);
}

#section-salam .greeting-options .btn.adab-choice.selected::before {
  background: #2563eb;
  border-color: #bfdbfe;
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

#section-salam .greeting-message:not(.success):not(.error) {
  color: #475569;
  background: rgba(248,250,252,.82);
  border-color: rgba(226,232,240,.96);
}

/* =====================================================
   RAVID V9.6.2 - Game Board Comfort + Clear Character
   Scope: hanya papan Game Etika siswa.
   - Tidak ada tembok penghalang.
   - Karakter pelajar/guru dibuat lebih jelas.
   - Kontrol panah berbentuk tanda plus.
   ===================================================== */
#section-salam .etika-board {
  min-height: 366px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(96,165,250,.34), transparent 30%),
    radial-gradient(circle at 83% 20%, rgba(251,191,36,.22), transparent 32%),
    radial-gradient(circle at 72% 84%, rgba(34,197,94,.16), transparent 32%),
    linear-gradient(140deg, #071226 0%, #172554 56%, #1d4ed8 100%);
}

#section-salam .etika-board .cell {
  background: rgba(255,255,255,.10) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

#section-salam .etika-board .cell.blocked {
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12) !important;
}

#section-salam .etika-board .cell.path {
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.16) !important;
}

#section-salam .etika-board .cell.goal {
  background: rgba(52,211,153,.24) !important;
  border-color: rgba(110,231,183,.70) !important;
  box-shadow: 0 0 30px rgba(16,185,129,.34), inset 0 0 0 1px rgba(255,255,255,.16) !important;
}

#section-salam .etika-board .cell.teacher-cell {
  background: rgba(251,191,36,.24) !important;
  border-color: rgba(251,191,36,.78) !important;
  box-shadow: 0 0 34px rgba(251,191,36,.38), inset 0 0 0 1px rgba(255,255,255,.18) !important;
}

#section-salam .etika-token {
  width: 72px !important;
  height: 78px !important;
  border-radius: 24px !important;
  padding: 5px 5px 6px !important;
  overflow: visible !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform-origin: center center;
}

#section-salam .avatar-illustration {
  width: 52px !important;
  height: 52px !important;
  filter: none !important;
}

#section-salam .avatar-face {
  top: 16px !important;
  width: 33px !important;
  height: 33px !important;
  background: #f3c071 !important;
  border: 2px solid rgba(120,53,15,.20) !important;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.46) !important;
}

#section-salam .avatar-face::before,
#section-salam .avatar-face::after {
  top: 13px !important;
  width: 4px !important;
  height: 4px !important;
  background: #020617 !important;
}
#section-salam .avatar-face::before { left: 9px !important; }
#section-salam .avatar-face::after { right: 9px !important; }

#section-salam .avatar-face .avatar-smile,
#section-salam .avatar-illustration::after {
  content: "";
}

#section-salam .student-avatar .avatar-cap {
  top: 3px !important;
  width: 36px !important;
  height: 18px !important;
  border-radius: 10px 10px 7px 7px !important;
  background: #0f172a !important;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.18), 0 5px 12px rgba(15,23,42,.20) !important;
}

#section-salam .student-avatar .avatar-cap::after {
  height: 3px !important;
  bottom: 4px !important;
  background: #60a5fa !important;
}

#section-salam .student-avatar::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 43px;
  transform: translateX(-50%);
  width: 38px;
  height: 22px;
  border-radius: 14px 14px 10px 10px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  z-index: -1;
}

#section-salam .teacher-avatar .avatar-hijab {
  top: 1px !important;
  width: 45px !important;
  height: 50px !important;
  border-radius: 24px 24px 18px 18px !important;
  background: #2563eb !important;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.30), 0 9px 18px rgba(37,99,235,.20) !important;
}

#section-salam .teacher-avatar .avatar-hijab::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 5px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.25);
}

#section-salam .teacher-avatar .avatar-face {
  top: 13px !important;
  width: 28px !important;
  height: 28px !important;
}

#section-salam .teacher-avatar::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 44px;
  transform: translateX(-50%);
  width: 40px;
  height: 22px;
  border-radius: 14px 14px 10px 10px;
  background: linear-gradient(135deg, #f59e0b, #fef3c7);
  z-index: -1;
}

#section-salam .token-label {
  font-size: 11px !important;
  padding: 3px 8px !important;
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(226,232,240,.95);
  transform: translateY(1px);
}

#section-salam .salam-controls.salam-controls-plus {
  width: 184px;
  margin: 20px auto 0 !important;
  display: grid !important;
  grid-template-columns: 58px 58px 58px;
  grid-template-rows: 58px 58px 58px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  position: relative;
}

#section-salam .salam-controls.salam-controls-plus::before {
  content: "";
  grid-column: 2;
  grid-row: 2;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(248,250,252,.72);
  border: 1px dashed rgba(148,163,184,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.70);
}

#section-salam .salam-controls.salam-controls-plus .btn {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;
  padding: 0 !important;
  border-radius: 18px !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  display: grid !important;
  place-items: center !important;
  box-shadow: 0 14px 30px rgba(37,99,235,.13);
}

#section-salam #btn-move-up { grid-column: 2; grid-row: 1; }
#section-salam #btn-move-left { grid-column: 1; grid-row: 2; }
#section-salam #btn-move-right { grid-column: 3; grid-row: 2; }
#section-salam #btn-move-down { grid-column: 2; grid-row: 3; }

@media (max-width: 640px) {
  #section-salam .salam-controls.salam-controls-plus {
    grid-template-columns: 54px 54px 54px !important;
    grid-template-rows: 54px 54px 54px !important;
    width: 172px !important;
  }
  #section-salam .salam-controls.salam-controls-plus .btn,
  #section-salam .salam-controls.salam-controls-plus::before {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
  }
}


/* =====================================================
   RAVID V9.6.3 - Clear Character Layer + Hidden Adab Zone
   Scope: hanya papan Game Etika siswa.
   - Karakter berada pada layer paling atas dan tidak buram.
   - Area adab/salam disembunyikan secara visual.
   - Legenda hanya menampilkan Kamu dan Guru.
   ===================================================== */
#section-salam .etika-board {
  isolation: isolate !important;
  overflow: visible !important;
}

#section-salam .etika-board .cell {
  z-index: 1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Area adab tetap dihitung oleh logic, tetapi tidak diberi petunjuk visual. */
#section-salam .etika-board .cell.goal {
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12) !important;
}

#section-salam .etika-board .cell.teacher-cell {
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12) !important;
}

#section-salam .etika-token {
  position: absolute !important;
  z-index: 20 !important;
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform-style: flat !important;
  will-change: transform !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  padding: 0 !important;
}

#section-salam .etika-token.upin,
#section-salam .etika-token.cekgu {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#section-salam .avatar-illustration {
  width: 64px !important;
  height: 64px !important;
  border-radius: 24px !important;
  display: block !important;
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: translateZ(0) !important;
  background: #ffffff !important;
  border: 2px solid rgba(226,232,240,.98) !important;
  box-shadow: 0 18px 34px rgba(15,23,42,.20), inset 0 1px 0 rgba(255,255,255,.92) !important;
}

#section-salam .student-avatar {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 58%, #dbeafe 100%) !important;
}

#section-salam .teacher-avatar {
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 58%, #dbeafe 100%) !important;
}

#section-salam .avatar-face {
  background: #f2bf74 !important;
  filter: none !important;
  opacity: 1 !important;
  z-index: 4 !important;
}

#section-salam .student-avatar .avatar-cap,
#section-salam .teacher-avatar .avatar-hijab,
#section-salam .student-avatar::before,
#section-salam .teacher-avatar::before,
#section-salam .teacher-avatar .avatar-hijab::after {
  filter: none !important;
  opacity: 1 !important;
}

#section-salam .student-avatar::before {
  z-index: 1 !important;
}

#section-salam .teacher-avatar::before {
  z-index: 1 !important;
}

#section-salam .student-avatar .avatar-cap,
#section-salam .teacher-avatar .avatar-hijab {
  z-index: 5 !important;
}

#section-salam .token-label {
  position: relative !important;
  z-index: 30 !important;
  display: block !important;
  width: max-content !important;
  margin: -8px auto 0 !important;
  color: #0f172a !important;
  background: #ffffff !important;
  border: 1px solid rgba(226,232,240,.98) !important;
  box-shadow: 0 8px 18px rgba(15,23,42,.13) !important;
  opacity: 1 !important;
  filter: none !important;
}

#section-salam .legend-dot.goal,
#section-salam .legend-item:has(.legend-dot.goal) {
  display: none !important;
}


/* ===== RAVID PATCH V9.7A: Student Menu Premium Polish (safe) ===== */
.student-section-intro-premium {
  align-items: center;
}

.student-access-pill {
  flex: 0 0 auto;
  min-width: min(320px, 100%);
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(191, 219, 254, .9);
  background:
    radial-gradient(circle at 10% 0%, rgba(96, 165, 250, .16), transparent 42%),
    linear-gradient(135deg, rgba(239, 246, 255, .96), rgba(255,255,255,.92));
  box-shadow: 0 18px 40px rgba(37, 99, 235, .08);
}

.student-access-pill strong {
  color: #1d4ed8;
  font-size: .9rem;
  font-weight: 950;
  letter-spacing: -.02em;
}

.student-access-pill strong.is-warning {
  color: #b45309;
}

.student-access-pill span {
  color: #64748b;
  font-size: .82rem;
  line-height: 1.5;
  font-weight: 750;
}

.student-menu-card {
  text-align: left;
  isolation: isolate;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.student-menu-card:hover,
.student-menu-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, .34);
  background:
    radial-gradient(circle at 100% 0%, rgba(37,99,235,.12), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.9));
  box-shadow: 0 26px 60px rgba(37, 99, 235, .12);
}

.student-menu-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .22);
  outline-offset: 3px;
}

.student-menu-card .menu-card-icon {
  transition: transform .18s ease, box-shadow .18s ease;
}

.student-menu-card:hover .menu-card-icon,
.student-menu-card:focus-visible .menu-card-icon {
  transform: scale(1.04) rotate(-2deg);
  box-shadow: 0 18px 38px rgba(37,99,235,.15);
}

.student-menu-card .menu-card-copy small {
  max-width: 28ch;
}

@media (max-width: 820px) {
  .student-section-intro-premium {
    align-items: stretch;
  }

  .student-access-pill {
    width: 100%;
  }
}

/* RAVID V9.7B - Quiz siswa feedback polish (scoped only) */
#section-quiz .quiz-question-text {
  display: grid;
  gap: 10px;
}

#section-quiz .quiz-question-text strong {
  display: block;
  color: #0f172a;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.35;
  letter-spacing: -.02em;
}

#section-quiz .quiz-question-text small {
  color: #64748b;
  font-weight: 700;
}

#section-quiz .quiz-progress-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  color: #1d4ed8;
  background: rgba(219, 234, 254, .72);
  border: 1px solid rgba(147, 197, 253, .8);
  font-size: .78rem;
  font-weight: 900;
}

#section-quiz .quiz-result-state {
  min-height: 140px;
  justify-content: center;
  align-content: center;
}

#section-quiz .quiz-result-error {
  background: linear-gradient(135deg, rgba(254, 226, 226, .96), rgba(255, 255, 255, .92));
}

#section-quiz .quiz-result-warning {
  background: linear-gradient(135deg, rgba(254, 243, 199, .96), rgba(255, 255, 255, .92));
}

#section-quiz .quiz-result-info {
  background: linear-gradient(135deg, rgba(219, 234, 254, .96), rgba(255, 255, 255, .92));
}

#section-quiz .quiz-option-item span b {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 10px;
  color: #1d4ed8;
  background: rgba(219, 234, 254, .9);
}


/* RAVID V9.7C - Student Ringkasan & Video final safe polish */
.video-learning-empty {
  width: 100%;
  min-height: 132px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.92));
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  color: #64748b;
}
.video-learning-empty strong {
  color: #0f172a;
  font-size: 16px;
  line-height: 1.25;
}
.video-learning-empty span {
  color: #64748b;
  line-height: 1.65;
}
#btn-load-summary:disabled,
#btn-load-videos:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}
.video-item-copy strong {
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .video-learning-empty {
    min-height: 110px;
    padding: 20px;
  }
}

/* =====================================================
   RAVID V9.7D - Student report readability polish
   Scoped to student report tables only.
   ===================================================== */
.score-badge,
.report-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: .82rem;
  white-space: nowrap;
}

.score-badge.score-good {
  color: #166534;
  background: rgba(220, 252, 231, .92);
  border: 1px solid rgba(187, 247, 208, .95);
}

.score-badge.score-mid {
  color: #92400e;
  background: rgba(254, 243, 199, .92);
  border: 1px solid rgba(253, 230, 138, .95);
}

.score-badge.score-low {
  color: #991b1b;
  background: rgba(254, 226, 226, .92);
  border: 1px solid rgba(254, 202, 202, .95);
}

.report-status-pill.status-complete {
  color: #1d4ed8;
  background: rgba(219, 234, 254, .88);
  border: 1px solid rgba(191, 219, 254, .95);
}

.report-status-pill.status-timeup {
  color: #9a3412;
  background: rgba(255, 237, 213, .92);
  border: 1px solid rgba(254, 215, 170, .95);
}

.muted-score {
  color: #64748b;
  font-size: .86rem;
  font-weight: 700;
}

.ranking-name {
  font-weight: 900;
  color: #0f172a;
}

.student-report-empty-row td strong,
.student-report-empty-row td span {
  display: block;
}

.student-report-empty-row td strong {
  color: #0f172a;
  margin-bottom: 6px;
}


/* ===== RAVID PATCH V9: MUI visual standard, hero logo refresh, colorful admin tabs, summary library ===== */
body {
  background:
    radial-gradient(circle at left top, rgba(59,130,246,.16), transparent 28%),
    radial-gradient(circle at right top, rgba(96,165,250,.16), transparent 24%),
    linear-gradient(180deg, #f4f8ff, #f7faff 58%, #f8fbff);
}
body::after {
  background: radial-gradient(circle, rgba(96, 165, 250, .30), transparent 66%);
}
.landing-page::before {
  background: radial-gradient(circle, rgba(37, 99, 235, .18), transparent 60%);
}
.bubble-gold {
  background: radial-gradient(circle at 32% 32%, rgba(147,197,253,.95), rgba(37,99,235,.16) 58%, transparent 76%);
}
.hero-grid {
  align-items: stretch;
}
.hero-logo-panel {
  background:
    radial-gradient(circle at 18% 0%, rgba(147,197,253,.28), transparent 32%),
    radial-gradient(circle at 88% 16%, rgba(96,165,250,.24), transparent 28%),
    linear-gradient(160deg, #0f3b84, #1d4ed8 55%, #2563eb);
}
.hero-logo-top {
  margin-bottom: 18px;
}
.hero-logo-stage {
  display: grid;
  place-items: center;
  min-height: 430px;
  padding: 18px;
}
.hero-logo-figure {
  width: min(100%, 440px);
  margin: 0;
  border-radius: 32px;
  padding: 18px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 26px 52px rgba(15,23,42,.18);
  backdrop-filter: blur(14px);
}
.hero-logo-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 36px rgba(15,23,42,.18));
}
.hero-logo-caption {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
}
.hero-logo-caption b {
  color: #eff6ff;
  font-size: 1.02rem;
  letter-spacing: -.02em;
}
.hero-logo-caption span {
  color: rgba(226,232,240,.88);
  line-height: 1.7;
}
.hero-mini-stat:nth-child(1) {
  background: linear-gradient(135deg, rgba(239,246,255,.96), rgba(255,255,255,.92));
}
.hero-mini-stat:nth-child(2) {
  background: linear-gradient(135deg, rgba(248,250,252,.96), rgba(239,246,255,.92));
}
.hero-mini-stat:nth-child(3) {
  background: linear-gradient(135deg, rgba(239,246,255,.96), rgba(237,242,255,.92));
}

.admin-tab-btn {
  --tab-accent: #2563eb;
  position: relative;
  border: 1px solid rgba(226,232,240,.95);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.92));
  box-shadow: 0 12px 24px rgba(15,23,42,.045);
  color: #334155;
  font-weight: 800;
}
.admin-tab-btn::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, var(--tab-accent), color-mix(in srgb, var(--tab-accent) 45%, white));
  opacity: .9;
}
.admin-tab-btn:nth-child(1) { --tab-accent: #2563eb; }
.admin-tab-btn:nth-child(2) { --tab-accent: #7c3aed; }
.admin-tab-btn:nth-child(3) { --tab-accent: #0f766e; }
.admin-tab-btn:nth-child(4) { --tab-accent: #ea580c; }
.admin-tab-btn:nth-child(5) { --tab-accent: #db2777; }
.admin-tab-btn:nth-child(6) { --tab-accent: #0891b2; }
.admin-tab-btn:nth-child(7) { --tab-accent: #16a34a; }
.admin-tab-btn:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--tab-accent) 24%, #cbd5e1);
  box-shadow: 0 18px 34px color-mix(in srgb, var(--tab-accent) 18%, transparent);
}
.admin-tab-btn.active {
  color: var(--tab-accent);
  border-color: color-mix(in srgb, var(--tab-accent) 36%, #bfdbfe);
  background: linear-gradient(135deg, color-mix(in srgb, var(--tab-accent) 8%, white), rgba(255,255,255,.98));
  box-shadow: 0 18px 34px color-mix(in srgb, var(--tab-accent) 20%, transparent);
}

.summary-layout-grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.summary-library-card,
.summary-reader-card {
  border-radius: 30px;
  border: 1px solid rgba(226,232,240,.92);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.90));
  box-shadow: 0 24px 58px rgba(15,23,42,.07);
}
.summary-library-card {
  padding: 20px;
  position: sticky;
  top: 118px;
}
.summary-library-header h3 {
  margin: 14px 0 8px;
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -.04em;
  color: #0f172a;
}
.summary-library-header p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}
.student-summary-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.student-summary-list-empty {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(248,250,252,.9);
  border: 1px dashed rgba(148,163,184,.45);
}
.student-summary-list-empty strong {
  color: #0f172a;
  font-size: 1rem;
}
.student-summary-list-empty span {
  color: #64748b;
  line-height: 1.65;
}
.student-summary-item {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  text-align: left;
  border-radius: 22px;
  border: 1px solid rgba(226,232,240,.9);
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 36px rgba(15,23,42,.04);
  cursor: pointer;
}
.student-summary-item:hover {
  transform: translateY(-1px);
  border-color: rgba(37,99,235,.24);
  box-shadow: 0 18px 38px rgba(37,99,235,.08);
}
.student-summary-item.active {
  border-color: rgba(37,99,235,.36);
  background: linear-gradient(135deg, rgba(239,246,255,.98), rgba(255,255,255,.95));
  box-shadow: 0 20px 42px rgba(37,99,235,.12);
}
.student-summary-item-index {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(37,99,235,.22);
}
.student-summary-item-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.student-summary-item-copy strong {
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: -.02em;
}
.student-summary-item-copy small {
  color: #64748b;
  line-height: 1.6;
}
.student-summary-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.student-summary-item-meta span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37,99,235,.07);
  color: #1d4ed8;
  font-size: .78rem;
  font-weight: 800;
}
.summary-reader-card {
  padding: 20px;
}
.summary-toolbar {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(226,232,240,.9);
  background: rgba(255,255,255,.88);
}
.summary-toolbar .btn {
  min-width: 220px;
}
.summary-content {
  min-height: 420px;
}
@media (max-width: 1080px) {
  .summary-layout-grid {
    grid-template-columns: 1fr;
  }
  .summary-library-card {
    position: static;
  }
}
@media (max-width: 860px) {
  .summary-toolbar {
    grid-template-columns: 1fr;
  }
  .summary-toolbar .btn {
    min-width: 100%;
  }
  .hero-logo-stage {
    min-height: 280px;
  }
}


/* ===== RAVID PATCH V10: Admin Summary Premium Workspace ===== */
.admin-summary-panel-premium {
  background:
    radial-gradient(circle at 12% 0%, rgba(37,99,235,.08), transparent 34%),
    radial-gradient(circle at 92% 10%, rgba(20,184,166,.08), transparent 30%),
    rgba(255,255,255,.82);
}
.admin-summary-hero-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.admin-summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 22px;
}
.admin-summary-metric-card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(226,232,240,.92);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.9));
  box-shadow: 0 18px 38px rgba(15,23,42,.055);
}
.admin-summary-metric-card span {
  color: #64748b;
  font-size: .84rem;
  font-weight: 800;
}
.admin-summary-metric-card strong {
  color: #0f172a;
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  line-height: 1;
  letter-spacing: -.05em;
}
.admin-summary-metric-card small {
  color: #64748b;
  line-height: 1.55;
}
.admin-summary-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.admin-summary-list-card,
.admin-summary-editor-card {
  border-radius: 30px;
  border: 1px solid rgba(226,232,240,.92);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.92));
  box-shadow: 0 24px 56px rgba(15,23,42,.065);
}
.admin-summary-list-card {
  padding: 20px;
  position: sticky;
  top: 118px;
}
.admin-summary-list-head strong {
  display: block;
  color: #0f172a;
  font-size: 1.12rem;
  letter-spacing: -.03em;
}
.admin-summary-list-head span {
  display: block;
  margin-top: 5px;
  color: #64748b;
  line-height: 1.6;
}
.admin-summary-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.admin-summary-list-empty {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  border: 1px dashed rgba(148,163,184,.5);
  background: rgba(248,250,252,.86);
}
.admin-summary-list-empty strong { color: #0f172a; }
.admin-summary-list-empty span { color: #64748b; line-height: 1.65; }
.admin-summary-item {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 13px;
  padding: 15px;
  text-align: left;
  border-radius: 22px;
  border: 1px solid rgba(226,232,240,.9);
  background: rgba(255,255,255,.94);
  box-shadow: 0 15px 32px rgba(15,23,42,.045);
  cursor: pointer;
}
.admin-summary-item:hover {
  transform: translateY(-1px);
  border-color: rgba(37,99,235,.25);
  box-shadow: 0 20px 38px rgba(37,99,235,.08);
}
.admin-summary-item.active {
  border-color: rgba(37,99,235,.42);
  background: linear-gradient(135deg, rgba(239,246,255,.98), rgba(255,255,255,.96));
  box-shadow: 0 22px 42px rgba(37,99,235,.13);
}
.admin-summary-item-index {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(37,99,235,.22);
}
.admin-summary-item-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.admin-summary-item-copy strong {
  color: #0f172a;
  line-height: 1.32;
  letter-spacing: -.02em;
}
.admin-summary-item-copy small {
  color: #64748b;
  line-height: 1.55;
}
.admin-summary-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-summary-item-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37,99,235,.07);
  color: #1d4ed8;
  font-size: .78rem;
  font-weight: 800;
}
.admin-summary-editor-card {
  padding: 22px;
}
.admin-summary-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(226,232,240,.9);
  background: rgba(255,255,255,.86);
}
.admin-summary-form-premium {
  gap: 14px;
}
.admin-summary-form-premium textarea {
  min-height: 300px;
  line-height: 1.8;
  resize: vertical;
}
.admin-summary-writing-tips {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 15px;
  border-radius: 18px;
  background: rgba(37,99,235,.06);
  border: 1px solid rgba(37,99,235,.12);
  color: #475569;
  font-weight: 700;
  line-height: 1.6;
}
#admin-summary-live-count {
  color: #1d4ed8;
  font-weight: 900;
}
.admin-summary-hint {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(248,250,252,.84);
  border: 1px solid rgba(226,232,240,.9);
}
@media (max-width: 1120px) {
  .admin-summary-workspace,
  .admin-summary-metrics {
    grid-template-columns: 1fr;
  }
  .admin-summary-list-card {
    position: static;
  }
}
@media (max-width: 760px) {
  .admin-summary-hero-row,
  .admin-summary-writing-tips {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-summary-toolbar {
    grid-template-columns: 1fr;
  }
}


/* ===== RAVID PATCH V11: full premium upgrade across pages ===== */
body.ravid-premium-theme {
  background:
    radial-gradient(circle at 0% 8%, rgba(59,130,246,.22), transparent 26%),
    radial-gradient(circle at 100% 6%, rgba(14,165,233,.18), transparent 23%),
    radial-gradient(circle at 84% 72%, rgba(37,99,235,.14), transparent 24%),
    linear-gradient(180deg, #eaf3ff 0%, #eef5ff 24%, #f5f9ff 54%, #f4f8ff 100%);
  color: #0f172a;
}

body.ravid-premium-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,.14), transparent 25%, transparent 75%, rgba(255,255,255,.12)),
    radial-gradient(circle at 18% 16%, rgba(255,255,255,.42), transparent 18%),
    radial-gradient(circle at 82% 10%, rgba(255,255,255,.35), transparent 18%);
  opacity: .9;
  z-index: 0;
}

body.ravid-premium-theme .app-bar {
  position: sticky;
  top: 12px;
  z-index: 30;
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.72));
  border: 1px solid rgba(148,163,184,.22);
  box-shadow: 0 26px 60px rgba(15,23,42,.10);
  backdrop-filter: blur(24px);
}

body.ravid-premium-theme .main-container,
body.ravid-premium-theme #card-root.card {
  position: relative;
  z-index: 1;
}

body.ravid-premium-theme #card-root.card {
  overflow: hidden;
  border-radius: 40px;
  border: 1px solid rgba(191,219,254,.56);
  background:
    radial-gradient(circle at 0% 0%, rgba(255,255,255,.65), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(191,219,254,.28), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.70));
  box-shadow:
    0 35px 90px rgba(15,23,42,.12),
    inset 0 1px 0 rgba(255,255,255,.72);
}

body.ravid-premium-theme .landing-page,
body.ravid-premium-theme #section-login,
body.ravid-premium-theme .learning-page,
body.ravid-premium-theme #section-admin-dashboard,
body.ravid-premium-theme #section-student-menu,
body.ravid-premium-theme .premium-etika-shell {
  border-radius: 34px;
}

body.ravid-premium-theme .hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  align-items: stretch;
  gap: 32px;
}

body.ravid-premium-theme .hero-copy h1 {
  font-size: clamp(3.3rem, 7vw, 6rem);
  line-height: .96;
  letter-spacing: -.06em;
}

body.ravid-premium-theme .hero-subtitle,
body.ravid-premium-theme .hero-footnote {
  max-width: 58ch;
  color: #52637b;
}

body.ravid-premium-theme .hero-highlights {
  gap: 14px;
}

body.ravid-premium-theme .hero-mini-stat {
  border-radius: 24px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(191,219,254,.52);
  box-shadow: 0 18px 40px rgba(15,23,42,.07);
}

body.ravid-premium-theme .hero-mini-stat:nth-child(1) {
  background: linear-gradient(145deg, rgba(239,246,255,.96), rgba(219,234,254,.86));
}
body.ravid-premium-theme .hero-mini-stat:nth-child(2) {
  background: linear-gradient(145deg, rgba(238,242,255,.96), rgba(224,231,255,.88));
}
body.ravid-premium-theme .hero-mini-stat:nth-child(3) {
  background: linear-gradient(145deg, rgba(236,253,245,.96), rgba(209,250,229,.86));
}

body.ravid-premium-theme .feature-section {
  gap: 18px;
}

body.ravid-premium-theme .feature-card,
body.ravid-premium-theme .user-summary-card,
body.ravid-premium-theme .admin-summary-metric-card,
body.ravid-premium-theme .master-card,
body.ravid-premium-theme .video-form-card,
body.ravid-premium-theme .summary-library-card,
body.ravid-premium-theme .summary-reader-card,
body.ravid-premium-theme .admin-summary-list-card,
body.ravid-premium-theme .admin-summary-editor-card,
body.ravid-premium-theme .student-hero-card,
body.ravid-premium-theme .premium-etika-game-card,
body.ravid-premium-theme .premium-etika-guide-card,
body.ravid-premium-theme .report-summary-card,
body.ravid-premium-theme .learning-toolbar,
body.ravid-premium-theme .table-wrapper,
body.ravid-premium-theme .video-player,
body.ravid-premium-theme .video-list,
body.ravid-premium-theme .premium-panel-head,
body.ravid-premium-theme .user-form-card,
body.ravid-premium-theme .admin-panel,
body.ravid-premium-theme #section-login .form {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.90));
  border: 1px solid rgba(226,232,240,.92);
  box-shadow: 0 24px 60px rgba(15,23,42,.08);
}

body.ravid-premium-theme .feature-card:nth-child(1),
body.ravid-premium-theme .user-summary-card:nth-child(1),
body.ravid-premium-theme .report-summary-card:nth-child(1) {
  background: linear-gradient(145deg, rgba(239,246,255,.98), rgba(219,234,254,.88));
}
body.ravid-premium-theme .feature-card:nth-child(2),
body.ravid-premium-theme .user-summary-card:nth-child(2),
body.ravid-premium-theme .report-summary-card:nth-child(2) {
  background: linear-gradient(145deg, rgba(238,242,255,.98), rgba(224,231,255,.90));
}
body.ravid-premium-theme .feature-card:nth-child(3),
body.ravid-premium-theme .user-summary-card:nth-child(3),
body.ravid-premium-theme .report-summary-card:nth-child(3) {
  background: linear-gradient(145deg, rgba(236,253,245,.98), rgba(209,250,229,.90));
}

body.ravid-premium-theme .student-hero-card {
  background:
    radial-gradient(circle at 0% 0%, rgba(96,165,250,.18), transparent 22%),
    radial-gradient(circle at 100% 0%, rgba(34,197,94,.12), transparent 22%),
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(243,247,255,.92));
}

body.ravid-premium-theme .student-hero-visual {
  background: linear-gradient(145deg, #1d4ed8, #2563eb 48%, #0ea5e9);
  box-shadow: 0 28px 56px rgba(37,99,235,.28);
}

body.ravid-premium-theme .student-access-pill {
  background: linear-gradient(145deg, rgba(239,246,255,.96), rgba(224,242,254,.90));
  border: 1px solid rgba(125,211,252,.56);
  box-shadow: 0 18px 35px rgba(14,165,233,.10);
}

body.ravid-premium-theme .student-menu-grid {
  gap: 18px;
}

body.ravid-premium-theme .student-menu-card {
  min-height: 160px;
  border-radius: 28px;
  padding: 24px 22px;
  border: 1px solid rgba(226,232,240,.92);
  box-shadow: 0 24px 50px rgba(15,23,42,.08);
}
body.ravid-premium-theme .student-menu-card:nth-child(1) {
  background: linear-gradient(145deg, rgba(239,246,255,.98), rgba(219,234,254,.90));
}
body.ravid-premium-theme .student-menu-card:nth-child(2) {
  background: linear-gradient(145deg, rgba(255,247,237,.98), rgba(254,215,170,.84));
}
body.ravid-premium-theme .student-menu-card:nth-child(3) {
  background: linear-gradient(145deg, rgba(238,242,255,.98), rgba(224,231,255,.90));
}
body.ravid-premium-theme .student-menu-card:nth-child(4) {
  background: linear-gradient(145deg, rgba(236,253,245,.98), rgba(209,250,229,.88));
}
body.ravid-premium-theme .student-menu-card:hover,
body.ravid-premium-theme .student-menu-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 28px 58px rgba(15,23,42,.12);
}

body.ravid-premium-theme .learning-toolbar,
body.ravid-premium-theme .summary-toolbar,
body.ravid-premium-theme .admin-summary-toolbar,
body.ravid-premium-theme .user-toolbar {
  border-radius: 24px;
  padding: 18px;
}

body.ravid-premium-theme .summary-reading-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  border: 1px solid rgba(226,232,240,.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}

body.ravid-premium-theme .summary-content,
body.ravid-premium-theme .video-empty-state {
  border-radius: 26px;
}

body.ravid-premium-theme .video-player {
  background: linear-gradient(145deg, #dbeafe, #eff6ff);
}

body.ravid-premium-theme .video-empty-state {
  color: #1e3a8a;
  background: linear-gradient(145deg, rgba(239,246,255,.98), rgba(219,234,254,.90));
  border: 1px dashed rgba(147,197,253,.72);
}

body.ravid-premium-theme .video-item,
body.ravid-premium-theme .student-summary-item,
body.ravid-premium-theme .admin-summary-item {
  border-radius: 22px;
}

body.ravid-premium-theme .table {
  font-size: .9rem;
}

body.ravid-premium-theme .table thead {
  background: linear-gradient(180deg, rgba(248,250,252,.98), rgba(241,245,249,.96));
}

body.ravid-premium-theme .table thead th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  font-weight: 900;
}

body.ravid-premium-theme .table tbody tr {
  transition: background .18s ease, transform .14s ease, box-shadow .18s ease;
}

body.ravid-premium-theme .table tbody tr:hover {
  background: rgba(239,246,255,.74);
}

body.ravid-premium-theme .admin-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  padding: 14px;
  margin-bottom: 22px;
  border: 1px solid rgba(226,232,240,.86);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(248,250,252,.74));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 16px 40px rgba(15,23,42,.05);
}

body.ravid-premium-theme .admin-tab-btn {
  --tab-surface: rgba(239,246,255,.98);
  --tab-surface-2: rgba(219,234,254,.88);
  --tab-border: rgba(147,197,253,.92);
  --tab-text: #1d4ed8;
  --tab-active: #2563eb;
  min-height: 72px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--tab-border);
  background: linear-gradient(145deg, var(--tab-surface), var(--tab-surface-2));
  color: var(--tab-text);
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(15,23,42,.05);
}

body.ravid-premium-theme .admin-tab-btn::before {
  content: "";
  position: absolute;
  inset: 10px 12px auto auto;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.54), transparent 68%);
  opacity: .9;
}

body.ravid-premium-theme .admin-tab-btn:nth-child(1) {
  --tab-surface: rgba(239,246,255,.98);
  --tab-surface-2: rgba(219,234,254,.88);
  --tab-border: rgba(147,197,253,.92);
  --tab-text: #1d4ed8;
  --tab-active: #2563eb;
}
body.ravid-premium-theme .admin-tab-btn:nth-child(2) {
  --tab-surface: rgba(245,243,255,.98);
  --tab-surface-2: rgba(233,213,255,.88);
  --tab-border: rgba(196,181,253,.92);
  --tab-text: #6d28d9;
  --tab-active: #7c3aed;
}
body.ravid-premium-theme .admin-tab-btn:nth-child(3) {
  --tab-surface: rgba(240,253,250,.98);
  --tab-surface-2: rgba(204,251,241,.88);
  --tab-border: rgba(153,246,228,.92);
  --tab-text: #0f766e;
  --tab-active: #0f766e;
}
body.ravid-premium-theme .admin-tab-btn:nth-child(4) {
  --tab-surface: rgba(255,247,237,.98);
  --tab-surface-2: rgba(254,215,170,.86);
  --tab-border: rgba(253,186,116,.90);
  --tab-text: #c2410c;
  --tab-active: #ea580c;
}
body.ravid-premium-theme .admin-tab-btn:nth-child(5) {
  --tab-surface: rgba(253,242,248,.98);
  --tab-surface-2: rgba(251,207,232,.86);
  --tab-border: rgba(249,168,212,.92);
  --tab-text: #be185d;
  --tab-active: #db2777;
}
body.ravid-premium-theme .admin-tab-btn:nth-child(6) {
  --tab-surface: rgba(240,249,255,.98);
  --tab-surface-2: rgba(186,230,253,.88);
  --tab-border: rgba(125,211,252,.92);
  --tab-text: #0369a1;
  --tab-active: #0891b2;
}
body.ravid-premium-theme .admin-tab-btn:nth-child(7) {
  --tab-surface: rgba(240,253,244,.98);
  --tab-surface-2: rgba(187,247,208,.88);
  --tab-border: rgba(134,239,172,.92);
  --tab-text: #15803d;
  --tab-active: #16a34a;
}

body.ravid-premium-theme .admin-tab-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(15,23,42,.09);
}

body.ravid-premium-theme .admin-tab-btn.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(145deg, var(--tab-active), color-mix(in srgb, var(--tab-active) 62%, white));
  box-shadow: 0 20px 38px color-mix(in srgb, var(--tab-active) 28%, transparent);
}

body.ravid-premium-theme .admin-tab-btn.active::before {
  background: radial-gradient(circle, rgba(255,255,255,.26), transparent 68%);
}

body.ravid-premium-theme .panel-heading-row,
body.ravid-premium-theme .premium-panel-head,
body.ravid-premium-theme .admin-panel-head,
body.ravid-premium-theme .user-form-heading,
body.ravid-premium-theme .section-header-row.learning-header-row {
  padding-bottom: 0;
}

body.ravid-premium-theme .panel-description,
body.ravid-premium-theme .muted,
body.ravid-premium-theme .hint,
body.ravid-premium-theme .admin-summary-hint {
  color: #5b6c84;
}

body.ravid-premium-theme input[type="text"],
body.ravid-premium-theme input[type="password"],
body.ravid-premium-theme input[type="search"],
body.ravid-premium-theme input[type="number"],
body.ravid-premium-theme select,
body.ravid-premium-theme textarea {
  min-height: 46px;
  border-radius: 16px;
  border-color: rgba(203,213,225,.92);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88);
}

body.ravid-premium-theme textarea {
  min-height: 140px;
}

body.ravid-premium-theme input:focus,
body.ravid-premium-theme select:focus,
body.ravid-premium-theme textarea:focus {
  border-color: rgba(59,130,246,.82);
  box-shadow: 0 0 0 4px rgba(59,130,246,.12);
  background: #ffffff;
}

body.ravid-premium-theme .btn {
  font-weight: 800;
  letter-spacing: -.01em;
}

body.ravid-premium-theme .btn-primary {
  background: linear-gradient(135deg, #1d4ed8, #2563eb 48%, #0ea5e9);
  box-shadow: 0 16px 28px rgba(37,99,235,.28);
}

body.ravid-premium-theme .btn-outlined {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.94));
}

body.ravid-premium-theme .hero-logo-panel {
  position: relative;
  min-height: 100%;
  padding: 24px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 16% 14%, rgba(96,165,250,.30), transparent 24%),
    radial-gradient(circle at 80% 4%, rgba(253,224,71,.18), transparent 18%),
    linear-gradient(165deg, #1747a5 0%, #1d4ed8 42%, #2563eb 70%, #0ea5e9 100%);
  box-shadow: 0 34px 70px rgba(29,78,216,.28);
}

body.ravid-premium-theme .hero-logo-top {
  margin-bottom: 20px;
}

body.ravid-premium-theme .hero-logo-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(360px, 42vw, 520px);
  padding: 18px 18px 12px;
}

body.ravid-premium-theme .hero-logo-stage::before {
  content: "";
  position: absolute;
  inset: 10% 10% 12%;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255,255,255,.20), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}

body.ravid-premium-theme .hero-logo-figure {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  border-radius: 30px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 30px 60px rgba(5, 18, 53, .24),
    0 12px 22px rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  transform: perspective(1200px) rotateX(3deg);
}

body.ravid-premium-theme .hero-logo-image {
  display: block;
  width: 100%;
  filter:
    drop-shadow(0 1px 0 rgba(255,255,255,.28))
    drop-shadow(0 14px 18px rgba(17,24,39,.12))
    drop-shadow(0 34px 50px rgba(2,6,23,.22));
  transform: translateY(-4px) scale(1.015);
}

body.ravid-premium-theme .hero-logo-caption {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.10));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

body.ravid-premium-theme .hero-logo-caption b {
  font-size: 1.08rem;
}

body.ravid-premium-theme .master-grid,
body.ravid-premium-theme .summary-layout-grid,
body.ravid-premium-theme .admin-summary-workspace {
  gap: 22px;
}

body.ravid-premium-theme .premium-table tbody tr:hover {
  background: rgba(239,246,255,.78);
}

@media (max-width: 1180px) {
  body.ravid-premium-theme .hero-grid {
    grid-template-columns: 1fr;
  }

  body.ravid-premium-theme .hero-copy h1 {
    font-size: clamp(2.85rem, 11vw, 4.8rem);
  }
}

@media (max-width: 820px) {
  body.ravid-premium-theme .admin-tabs {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  body.ravid-premium-theme .admin-tabs,
  body.ravid-premium-theme .hero-highlights,
  body.ravid-premium-theme .feature-section,
  body.ravid-premium-theme .student-menu-grid,
  body.ravid-premium-theme .report-summary-grid {
    grid-template-columns: 1fr;
  }

  body.ravid-premium-theme .admin-tab-btn {
    min-height: 66px;
  }
}


/* ===== RAVID PATCH V12: css.gg icons, proportional hero, blue theme blocks ===== */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body.ravid-premium-theme {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(29,78,216,.12) 0 18%, rgba(255,255,255,.72) 18% 82%, rgba(14,165,233,.12) 82% 100%),
    radial-gradient(circle at 8% 10%, rgba(96,165,250,.30), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(56,189,248,.24), transparent 28%),
    linear-gradient(180deg, #e9f3ff 0%, #f4f9ff 48%, #eef7ff 100%);
}

body.ravid-premium-theme .main-container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding: clamp(18px, 2.4vw, 32px) clamp(14px, 2.8vw, 32px) 80px;
}

body.ravid-premium-theme #card-root.card {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(18px, 2.6vw, 30px);
}

body.ravid-premium-theme #section-landing,
body.ravid-premium-theme #section-login,
body.ravid-premium-theme #section-student-menu,
body.ravid-premium-theme .learning-page,
body.ravid-premium-theme #section-admin-dashboard,
body.ravid-premium-theme .premium-etika-page {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(147,197,253,.42);
  background:
    radial-gradient(circle at 0% 0%, rgba(96,165,250,.20), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(14,165,233,.15), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.90), rgba(239,246,255,.78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.74), 0 24px 60px rgba(15,23,42,.08);
}

body.ravid-premium-theme #section-login::before,
body.ravid-premium-theme #section-admin-dashboard::before,
body.ravid-premium-theme #section-student-menu::before,
body.ravid-premium-theme .learning-page::before,
body.ravid-premium-theme .premium-etika-page::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(32%, 340px);
  background: linear-gradient(180deg, rgba(37,99,235,.18), rgba(14,165,233,.10));
  pointer-events: none;
  z-index: 0;
}

body.ravid-premium-theme #section-login > *,
body.ravid-premium-theme #section-admin-dashboard > *,
body.ravid-premium-theme #section-student-menu > *,
body.ravid-premium-theme .learning-page > *,
body.ravid-premium-theme .premium-etika-page > * {
  position: relative;
  z-index: 1;
}

body.ravid-premium-theme .hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  align-items: center;
  gap: clamp(24px, 3vw, 38px);
}

body.ravid-premium-theme .hero-copy {
  max-width: 610px;
}

body.ravid-premium-theme .hero-copy h1 {
  font-size: clamp(3rem, 5.2vw, 4.9rem);
  max-width: 12ch;
}

body.ravid-premium-theme .hero-logo-panel {
  max-width: 420px;
  width: 100%;
  margin-left: auto;
  padding: 18px;
  border-radius: 32px;
  transform: none;
  min-height: auto;
}

body.ravid-premium-theme .hero-logo-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

body.ravid-premium-theme .hero-panel-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

body.ravid-premium-theme .hero-panel-status .gg-shape-hexagon {
  --ggs: .62;
}

body.ravid-premium-theme .hero-logo-stage {
  min-height: clamp(235px, 28vw, 330px);
  padding: 8px;
}

body.ravid-premium-theme .hero-logo-stage::before {
  inset: 8% 4% 6%;
  border-radius: 28px;
}

body.ravid-premium-theme .hero-logo-figure {
  width: min(100%, 315px);
  padding: 16px;
  border-radius: 28px;
}

body.ravid-premium-theme .hero-logo-image {
  filter:
    drop-shadow(0 2px 0 rgba(255,255,255,.40))
    drop-shadow(0 18px 18px rgba(15,23,42,.16))
    drop-shadow(0 36px 42px rgba(2,6,23,.24));
  transform: translateY(-3px) scale(1.04);
}

body.ravid-premium-theme .hero-logo-caption {
  margin-top: 12px;
  padding: 15px 16px;
  border-radius: 22px;
}

body.ravid-premium-theme .hero-logo-caption b {
  font-size: .98rem;
}

body.ravid-premium-theme .hero-logo-caption span {
  font-size: .9rem;
  line-height: 1.55;
}

body.ravid-premium-theme .feature-icon,
body.ravid-premium-theme .menu-card-icon,
body.ravid-premium-theme .admin-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

body.ravid-premium-theme .feature-icon i,
body.ravid-premium-theme .menu-card-icon i,
body.ravid-premium-theme .admin-tab-icon i {
  color: currentColor;
}

body.ravid-premium-theme .feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #1d4ed8;
  background: linear-gradient(145deg, rgba(219,234,254,.95), rgba(255,255,255,.78));
  box-shadow: 0 16px 32px rgba(37,99,235,.16);
}

body.ravid-premium-theme .feature-icon i {
  --ggs: 1.05;
}

body.ravid-premium-theme .student-menu-card {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  text-align: left;
}

body.ravid-premium-theme .menu-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  color: #1d4ed8;
  background: rgba(255,255,255,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.60), 0 14px 26px rgba(15,23,42,.08);
}

body.ravid-premium-theme .menu-card-icon i {
  --ggs: 1.05;
}

body.ravid-premium-theme .admin-tab-btn {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  gap: 12px;
  text-align: left;
}

body.ravid-premium-theme .admin-tab-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: var(--tab-text);
  background: rgba(255,255,255,.64);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.74), 0 12px 22px rgba(15,23,42,.07);
}

body.ravid-premium-theme .admin-tab-icon i {
  --ggs: .88;
}

body.ravid-premium-theme .admin-tab-btn.active .admin-tab-icon {
  color: var(--tab-active);
  background: rgba(255,255,255,.92);
}

/* Local css.gg fallback for a few class names that may not exist in older CDN builds */
body.ravid-premium-theme .gg-games,
body.ravid-premium-theme .gg-list-tree,
body.ravid-premium-theme .gg-trophy,
body.ravid-premium-theme .gg-shield {
  box-sizing: border-box;
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
}
body.ravid-premium-theme .gg-games::before,
body.ravid-premium-theme .gg-list-tree::before,
body.ravid-premium-theme .gg-trophy::before,
body.ravid-premium-theme .gg-shield::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 5px;
}
body.ravid-premium-theme .gg-games::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 2px;
  left: 5px;
  top: 9px;
  background: currentColor;
  box-shadow: 0 -4px 0 -1px currentColor, 0 4px 0 -1px currentColor;
}
body.ravid-premium-theme .gg-list-tree::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 2px;
  height: 14px;
  background: currentColor;
  box-shadow: 5px 3px 0 currentColor, 5px 10px 0 currentColor;
}
body.ravid-premium-theme .gg-trophy::before { border-radius: 4px 4px 8px 8px; }
body.ravid-premium-theme .gg-trophy::after {
  content: "";
  position: absolute;
  left: 7px;
  bottom: 1px;
  width: 6px;
  height: 7px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
body.ravid-premium-theme .gg-shield::before {
  inset: 2px 4px;
  border-radius: 10px 10px 12px 12px;
  transform: perspective(20px) rotateX(-10deg);
}

@media (max-width: 1080px) {
  body.ravid-premium-theme .hero-grid {
    grid-template-columns: 1fr;
  }
  body.ravid-premium-theme .hero-logo-panel {
    max-width: 520px;
    margin-inline: auto;
  }
  body.ravid-premium-theme .hero-copy {
    max-width: 760px;
  }
  body.ravid-premium-theme .hero-copy h1 {
    max-width: 13ch;
  }
}

@media (max-width: 720px) {
  body.ravid-premium-theme {
    background:
      linear-gradient(180deg, rgba(219,234,254,.95), rgba(255,255,255,.92) 38%, rgba(224,242,254,.80));
  }
  body.ravid-premium-theme #section-login::before,
  body.ravid-premium-theme #section-admin-dashboard::before,
  body.ravid-premium-theme #section-student-menu::before,
  body.ravid-premium-theme .learning-page::before,
  body.ravid-premium-theme .premium-etika-page::before {
    width: 100%;
    height: 190px;
    inset: 0 0 auto 0;
  }
  body.ravid-premium-theme .hero-logo-stage {
    min-height: 250px;
  }
  body.ravid-premium-theme .hero-logo-figure {
    width: min(100%, 280px);
  }
  body.ravid-premium-theme .student-menu-card,
  body.ravid-premium-theme .admin-tab-btn {
    grid-template-columns: 46px minmax(0, 1fr);
  }
  body.ravid-premium-theme .admin-tab-icon {
    width: 38px;
    height: 38px;
  }
}

/* ===== RAVID PATCH V13: Dashboard Layout Proportion Fix ===== */
body.ravid-premium-theme {
  background:
    linear-gradient(90deg, rgba(29,78,216,.18) 0 14%, rgba(241,247,255,.96) 14% 86%, rgba(14,165,233,.20) 86% 100%),
    radial-gradient(circle at 9% 13%, rgba(59,130,246,.34), transparent 24%),
    radial-gradient(circle at 91% 18%, rgba(56,189,248,.28), transparent 24%),
    linear-gradient(180deg, #e8f3ff 0%, #f7fbff 48%, #edf7ff 100%);
}

body.ravid-premium-theme .app-bar {
  top: 0;
  border-radius: 0;
  border-inline: 0;
}

body.ravid-premium-theme .main-container {
  width: min(100%, 1640px);
  max-width: 1640px;
  padding: clamp(16px, 1.8vw, 26px) clamp(18px, 2vw, 34px) 78px;
}

body.ravid-premium-theme #card-root.card {
  width: min(100%, 1520px);
  max-width: 1520px;
  padding: clamp(18px, 2vw, 28px);
  border-radius: 34px;
}

body.ravid-premium-theme #section-admin-dashboard {
  padding: clamp(24px, 2.4vw, 34px);
  border-radius: 32px;
}

body.ravid-premium-theme #section-admin-dashboard::before {
  width: min(24%, 310px);
  opacity: .72;
}

body.ravid-premium-theme #section-admin-dashboard > .section-header-row {
  margin-bottom: 18px;
}

body.ravid-premium-theme #section-admin-dashboard .section-title {
  font-size: clamp(2.1rem, 3.6vw, 3.65rem);
  line-height: 1;
  letter-spacing: -.065em;
  max-width: none;
}

body.ravid-premium-theme #section-admin-dashboard .section-subtitle {
  max-width: 72ch;
  margin-top: 10px;
  font-size: .98rem;
  line-height: 1.75;
}

body.ravid-premium-theme .admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, .82fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

body.ravid-premium-theme .admin-hero-copy,
body.ravid-premium-theme .admin-hero-metrics {
  min-height: 220px;
  border-radius: 28px;
}

body.ravid-premium-theme .admin-hero-copy {
  padding: clamp(26px, 3vw, 42px);
  display: grid;
  align-content: center;
}

body.ravid-premium-theme .admin-hero-copy h3 {
  max-width: 18ch;
  font-size: clamp(2rem, 2.8vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -.06em;
  margin: 16px 0 12px;
}

body.ravid-premium-theme .admin-hero-copy p {
  max-width: 62ch;
  font-size: .98rem;
  line-height: 1.78;
}

body.ravid-premium-theme .admin-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

body.ravid-premium-theme .admin-metric-card {
  min-height: 0;
  padding: 18px;
  border-radius: 24px;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.92));
  border: 1px solid rgba(226,232,240,.92);
}

body.ravid-premium-theme .admin-metric-card strong {
  font-size: clamp(1.05rem, 1.25vw, 1.35rem);
  line-height: 1.15;
  letter-spacing: -.045em;
}

body.ravid-premium-theme .admin-metric-card small {
  font-size: .83rem;
  line-height: 1.55;
}

body.ravid-premium-theme .admin-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  margin: 0 0 18px;
  border-radius: 30px;
  position: sticky;
  top: 86px;
  z-index: 12;
}

body.ravid-premium-theme .admin-tab-btn {
  min-height: 74px;
  padding: 15px 16px;
  border-radius: 22px;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
}

body.ravid-premium-theme .admin-tab-btn:nth-child(n+5) {
  transform: translateX(calc(50% + 7px));
}

body.ravid-premium-theme .admin-tab-btn:nth-child(n+5):hover {
  transform: translateX(calc(50% + 7px)) translateY(-3px);
}

body.ravid-premium-theme .admin-tab-btn:nth-child(n+5).active {
  transform: translateX(calc(50% + 7px));
}

body.ravid-premium-theme .admin-tab-btn span:last-child {
  overflow-wrap: anywhere;
  line-height: 1.24;
}

body.ravid-premium-theme .admin-tab-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
}

body.ravid-premium-theme .admin-panel {
  border-radius: 30px;
  padding: clamp(24px, 2.3vw, 34px);
}

body.ravid-premium-theme #admin-questions-panel {
  margin-top: 0;
}

body.ravid-premium-theme .panel-heading-row.panel-heading-compact {
  margin-bottom: 18px;
}

body.ravid-premium-theme .admin-filter-card {
  grid-template-columns: minmax(260px, 1fr) minmax(180px, .42fr) auto;
  padding: 16px;
  margin-bottom: 16px;
}

body.ravid-premium-theme .table-wrapper,
body.ravid-premium-theme .premium-table-wrapper {
  border-radius: 24px;
  margin-top: 14px;
}

body.ravid-premium-theme .table th,
body.ravid-premium-theme .table td {
  padding: 12px 14px;
}

body.ravid-premium-theme .hero-logo-panel {
  max-width: 390px;
}

body.ravid-premium-theme .hero-logo-stage {
  min-height: clamp(220px, 24vw, 300px);
}

body.ravid-premium-theme .hero-logo-figure {
  width: min(100%, 285px);
}

@media (min-width: 1600px) {
  body.ravid-premium-theme .main-container {
    max-width: 1700px;
  }

  body.ravid-premium-theme #card-root.card {
    max-width: 1580px;
  }
}

@media (max-width: 1280px) {
  body.ravid-premium-theme .admin-hero {
    grid-template-columns: 1fr;
  }

  body.ravid-premium-theme .admin-hero-copy,
  body.ravid-premium-theme .admin-hero-metrics {
    min-height: auto;
  }

  body.ravid-premium-theme .admin-tabs {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.ravid-premium-theme .admin-tab-btn:nth-child(n+5),
  body.ravid-premium-theme .admin-tab-btn:nth-child(n+5):hover,
  body.ravid-premium-theme .admin-tab-btn:nth-child(n+5).active {
    transform: none;
  }
}

@media (max-width: 860px) {
  body.ravid-premium-theme .main-container {
    padding-inline: 12px;
  }

  body.ravid-premium-theme #card-root.card {
    padding: 14px;
    border-radius: 26px;
  }

  body.ravid-premium-theme #section-admin-dashboard {
    padding: 18px;
  }

  body.ravid-premium-theme .admin-hero-metrics,
  body.ravid-premium-theme .admin-tabs,
  body.ravid-premium-theme .admin-filter-card {
    grid-template-columns: 1fr;
  }

  body.ravid-premium-theme .admin-tab-btn {
    min-height: 68px;
  }
}

/* ==========================================================
   RAVID FLAGSHIP OVERRIDES vNext
   Focus: full-width utilization, non-overlapping admin menu,
   premium auth shell, cleaner landing hierarchy, global polish.
   ========================================================== */
body.ravid-premium-theme {
  background:
    radial-gradient(circle at 14% 16%, rgba(59,130,246,.18), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(14,165,233,.18), transparent 24%),
    radial-gradient(circle at 82% 88%, rgba(99,102,241,.12), transparent 24%),
    linear-gradient(180deg, #eef5ff 0%, #f6f9ff 42%, #f4f9ff 100%);
}

body.ravid-premium-theme .app-bar {
  padding: 12px 18px;
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(191,219,254,.7);
}

body.ravid-premium-theme .main-container {
  width: 100%;
  max-width: none;
  padding: 22px 20px 72px;
}

body.ravid-premium-theme #card-root.card {
  width: min(1760px, calc(100vw - 40px));
  max-width: none;
  min-height: calc(100vh - 108px);
  padding: clamp(22px, 2vw, 34px);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.76)),
    radial-gradient(circle at left center, rgba(191,219,254,.26), transparent 28%),
    radial-gradient(circle at right center, rgba(125,211,252,.2), transparent 24%);
  box-shadow: 0 34px 90px rgba(15,23,42,.08);
}

/* ---------- Landing page ---------- */
body.ravid-premium-theme .landing-page {
  padding: clamp(28px, 3vw, 40px);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.74), rgba(255,255,255,.58)),
    radial-gradient(circle at left center, rgba(147,197,253,.24), transparent 28%),
    radial-gradient(circle at right center, rgba(34,211,238,.16), transparent 26%);
}

body.ravid-premium-theme .hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(430px, .88fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: stretch;
}

body.ravid-premium-theme .hero-copy {
  max-width: none;
  padding-right: 8px;
}

body.ravid-premium-theme .hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(3.35rem, 5vw, 5.55rem);
  line-height: .94;
  letter-spacing: -.08em;
}

body.ravid-premium-theme .hero-subtitle {
  max-width: 66ch;
  font-size: 1.02rem;
  line-height: 1.9;
}

body.ravid-premium-theme .hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

body.ravid-premium-theme .hero-mini-stat {
  min-height: 134px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(244,247,255,.88));
  border: 1px solid rgba(191,219,254,.55);
  box-shadow: 0 18px 34px rgba(37,99,235,.06);
}

body.ravid-premium-theme .hero-mini-stat strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.15rem;
  letter-spacing: -.03em;
}

body.ravid-premium-theme .hero-mini-stat span {
  color: #64748b;
  line-height: 1.7;
}

body.ravid-premium-theme .hero-actions {
  margin-top: 22px;
}

body.ravid-premium-theme .hero-logo-panel {
  max-width: none;
  min-height: 100%;
  padding: 22px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(46,92,232,.96), rgba(39,119,242,.96) 62%, rgba(23,161,232,.98)),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.14), transparent 28%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 26px 48px rgba(29,78,216,.24);
}

body.ravid-premium-theme .hero-logo-stage {
  min-height: clamp(300px, 30vw, 420px);
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.09));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}

body.ravid-premium-theme .hero-logo-figure {
  width: min(100%, 360px);
  filter: drop-shadow(0 24px 30px rgba(4,16,56,.34));
}

body.ravid-premium-theme .hero-logo-image {
  transform: translateY(-2px) scale(1.02);
}

body.ravid-premium-theme .hero-logo-caption {
  margin-top: 18px;
  padding: 18px 18px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.12));
  border: 1px solid rgba(255,255,255,.14);
}

body.ravid-premium-theme .hero-logo-caption b,
body.ravid-premium-theme .hero-logo-caption span,
body.ravid-premium-theme .hero-panel-status,
body.ravid-premium-theme .hero-logo-top .dot {
  color: rgba(255,255,255,.98);
}

body.ravid-premium-theme .feature-section {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

body.ravid-premium-theme .feature-card {
  min-height: 210px;
  padding: 28px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(246,250,255,.8));
  border: 1px solid rgba(226,232,240,.9);
  box-shadow: 0 20px 44px rgba(15,23,42,.06);
}

/* ---------- Login / auth ---------- */
body.ravid-premium-theme #section-login {
  padding: 6px;
}

body.ravid-premium-theme #section-login::before {
  display: none;
}

body.ravid-premium-theme .auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(0, 1.08fr);
  gap: 22px;
  align-items: stretch;
}

body.ravid-premium-theme .auth-info-panel,
body.ravid-premium-theme .auth-form-panel {
  border-radius: 30px;
  padding: clamp(24px, 2.4vw, 34px);
  border: 1px solid rgba(226,232,240,.92);
  box-shadow: 0 22px 48px rgba(15,23,42,.08);
}

body.ravid-premium-theme .auth-info-panel {
  background:
    linear-gradient(160deg, rgba(33,99,235,.98), rgba(37,142,235,.92));
  color: #fff;
}

body.ravid-premium-theme .auth-info-panel .section-title,
body.ravid-premium-theme .auth-info-panel .section-subtitle,
body.ravid-premium-theme .auth-info-panel .eyebrow {
  color: #fff;
}

body.ravid-premium-theme .auth-info-panel .section-title {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
  letter-spacing: -.06em;
}

body.ravid-premium-theme .auth-info-panel .section-subtitle {
  opacity: .92;
  line-height: 1.8;
  max-width: 46ch;
}

body.ravid-premium-theme .auth-feature-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

body.ravid-premium-theme .auth-feature-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
}

body.ravid-premium-theme .auth-credentials-card {
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
}

body.ravid-premium-theme .auth-credentials-card strong,
body.ravid-premium-theme .auth-credentials-card code {
  display: block;
  color: #fff;
}

body.ravid-premium-theme .auth-credentials-card code {
  margin-top: 8px;
  padding: 0;
  background: transparent;
  font-size: .95rem;
  line-height: 1.7;
}

body.ravid-premium-theme .auth-form-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.9));
}

body.ravid-premium-theme .auth-form-head h3 {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: -.04em;
  color: #0f172a;
}

body.ravid-premium-theme .auth-form-head p {
  margin: 10px 0 0;
  color: #64748b;
  line-height: 1.7;
}

body.ravid-premium-theme #section-login .form {
  margin-top: 20px;
  padding: 0;
  box-shadow: none;
  border: 0;
  background: transparent;
}

body.ravid-premium-theme .auth-inline-hint {
  margin: 4px 0 0;
}

/* ---------- Dashboards / cards ---------- */
body.ravid-premium-theme #section-admin-dashboard,
body.ravid-premium-theme .student-dashboard-page,
body.ravid-premium-theme .learning-page,
body.ravid-premium-theme .premium-etika-page,
body.ravid-premium-theme #section-report,
body.ravid-premium-theme #section-ranking {
  padding: 6px;
}

body.ravid-premium-theme .student-hero-card,
body.ravid-premium-theme .premium-etika-shell,
body.ravid-premium-theme .learning-page,
body.ravid-premium-theme #section-report,
body.ravid-premium-theme #section-ranking {
  border-radius: 30px;
}

body.ravid-premium-theme .admin-hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  gap: 20px;
  margin: 10px 0 24px;
}

body.ravid-premium-theme .admin-hero-copy,
body.ravid-premium-theme .admin-hero-metrics {
  min-height: 100%;
}

body.ravid-premium-theme .admin-tabs {
  position: relative;
  top: auto;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0 0 24px;
  background: transparent;
  border: 0;
  overflow: visible;
}

body.ravid-premium-theme .admin-tab-btn,
body.ravid-premium-theme .admin-tab-btn:nth-child(n+5),
body.ravid-premium-theme .admin-tab-btn:nth-child(n+5):hover,
body.ravid-premium-theme .admin-tab-btn:nth-child(n+5).active {
  transform: none;
}

body.ravid-premium-theme .admin-tab-btn {
  min-height: 94px;
  padding: 18px 18px;
  align-items: center;
  border-radius: 24px;
  border: 1px solid rgba(191,219,254,.58);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(246,250,255,.86));
  box-shadow: 0 18px 36px rgba(15,23,42,.06);
  text-align: left;
}

body.ravid-premium-theme .admin-tab-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px rgba(15,23,42,.1);
}

body.ravid-premium-theme .admin-tab-btn.active {
  border-color: rgba(96,165,250,.9);
  box-shadow: 0 22px 42px rgba(37,99,235,.14);
}

body.ravid-premium-theme .admin-tab-btn:nth-child(1) { background: linear-gradient(135deg, rgba(59,130,246,.96), rgba(96,165,250,.84)); }
body.ravid-premium-theme .admin-tab-btn:nth-child(2) { background: linear-gradient(135deg, rgba(237,233,254,.96), rgba(221,214,254,.88)); }
body.ravid-premium-theme .admin-tab-btn:nth-child(3) { background: linear-gradient(135deg, rgba(220,252,247,.96), rgba(204,251,241,.88)); }
body.ravid-premium-theme .admin-tab-btn:nth-child(4) { background: linear-gradient(135deg, rgba(255,237,213,.98), rgba(254,215,170,.88)); }
body.ravid-premium-theme .admin-tab-btn:nth-child(5) { background: linear-gradient(135deg, rgba(252,231,243,.96), rgba(251,207,232,.88)); }
body.ravid-premium-theme .admin-tab-btn:nth-child(6) { background: linear-gradient(135deg, rgba(224,242,254,.96), rgba(186,230,253,.88)); }
body.ravid-premium-theme .admin-tab-btn:nth-child(7) { background: linear-gradient(135deg, rgba(220,252,231,.96), rgba(187,247,208,.88)); }

body.ravid-premium-theme .admin-tab-btn:nth-child(1),
body.ravid-premium-theme .admin-tab-btn:nth-child(1) .admin-tab-icon,
body.ravid-premium-theme .admin-tab-btn:nth-child(1) span:last-child { color: #fff; }

body.ravid-premium-theme .admin-tab-btn:nth-child(1) .admin-tab-icon {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.22);
}

body.ravid-premium-theme .admin-tab-btn .admin-tab-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.44);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}

body.ravid-premium-theme .admin-tab-btn span:last-child {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
  overflow-wrap: normal;
}

body.ravid-premium-theme .admin-panel {
  margin-top: 0;
  border-radius: 30px;
  padding: clamp(22px, 2vw, 32px);
}

body.ravid-premium-theme .admin-filter-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, .4fr) auto;
  align-items: end;
  gap: 16px;
  padding: 18px;
}

body.ravid-premium-theme .admin-filter-card .btn {
  min-width: 160px;
}

/* Student menu and generic menu cards */
body.ravid-premium-theme .menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body.ravid-premium-theme .menu-grid .btn-card,
body.ravid-premium-theme .student-menu-card {
  min-height: 132px;
  padding: 20px;
  border-radius: 24px;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid rgba(191,219,254,.58);
  box-shadow: 0 18px 36px rgba(15,23,42,.06);
}

body.ravid-premium-theme .student-menu-grid .student-menu-card:nth-child(1) { background: linear-gradient(135deg, rgba(219,234,254,.98), rgba(191,219,254,.84)); }
body.ravid-premium-theme .student-menu-grid .student-menu-card:nth-child(2) { background: linear-gradient(135deg, rgba(237,233,254,.98), rgba(221,214,254,.86)); }
body.ravid-premium-theme .student-menu-grid .student-menu-card:nth-child(3) { background: linear-gradient(135deg, rgba(220,252,231,.98), rgba(187,247,208,.84)); }
body.ravid-premium-theme .student-menu-grid .student-menu-card:nth-child(4) { background: linear-gradient(135deg, rgba(255,237,213,.98), rgba(254,215,170,.84)); }

body.ravid-premium-theme .menu-card-copy strong {
  font-size: 1.08rem;
}

body.ravid-premium-theme .menu-card-copy small {
  margin-top: 6px;
  line-height: 1.6;
}

/* Buttons and controls */
body.ravid-premium-theme .btn {
  min-height: 46px;
  padding: 10px 18px;
  font-weight: 800;
  letter-spacing: -.01em;
}

body.ravid-premium-theme .btn-primary {
  background: linear-gradient(135deg, #2454e8, #1ea4eb);
  box-shadow: 0 14px 26px rgba(37,99,235,.22);
}

body.ravid-premium-theme .btn-outlined,
body.ravid-premium-theme .btn-text {
  border: 1px solid rgba(191,219,254,.72);
  background: rgba(255,255,255,.8);
}

body.ravid-premium-theme input[type="text"],
body.ravid-premium-theme input[type="password"],
body.ravid-premium-theme select,
body.ravid-premium-theme textarea {
  min-height: 48px;
  border-radius: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1380px) {
  body.ravid-premium-theme .hero-grid,
  body.ravid-premium-theme .admin-hero {
    grid-template-columns: 1fr;
  }

  body.ravid-premium-theme .hero-logo-panel {
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (max-width: 1180px) {
  body.ravid-premium-theme .hero-highlights,
  body.ravid-premium-theme .feature-section,
  body.ravid-premium-theme .menu-grid,
  body.ravid-premium-theme .admin-tabs,
  body.ravid-premium-theme .admin-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.ravid-premium-theme .auth-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  body.ravid-premium-theme .main-container {
    padding: 14px 10px 44px;
  }

  body.ravid-premium-theme #card-root.card {
    width: min(100%, calc(100vw - 20px));
    padding: 14px;
    border-radius: 24px;
  }

  body.ravid-premium-theme .hero-copy h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  body.ravid-premium-theme .hero-highlights,
  body.ravid-premium-theme .feature-section,
  body.ravid-premium-theme .menu-grid,
  body.ravid-premium-theme .admin-tabs,
  body.ravid-premium-theme .admin-hero-metrics,
  body.ravid-premium-theme .admin-filter-card {
    grid-template-columns: 1fr;
  }

  body.ravid-premium-theme .admin-tab-btn {
    min-height: 82px;
  }
}

/* ==========================================================
   RAVID SUPER FLAGSHIP FINAL UI PASS v14
   Scope: frontend-only visual polish. No backend/logic change.
   Focus: full-width flagship spacing, readable admin/student grids,
   premium card hierarchy, safer responsive behavior.
   ========================================================== */

body.ravid-premium-theme {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 11% 12%, rgba(59, 130, 246, .20), transparent 27%),
    radial-gradient(circle at 89% 10%, rgba(14, 165, 233, .20), transparent 25%),
    radial-gradient(circle at 74% 92%, rgba(99, 102, 241, .13), transparent 28%),
    linear-gradient(180deg, #eef6ff 0%, #f7fbff 42%, #f4f9ff 100%);
}

body.ravid-premium-theme .app-bar {
  min-height: 72px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(191, 219, 254, .72);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .06);
}

body.ravid-premium-theme .main-container {
  width: 100%;
  max-width: none;
  padding: 22px clamp(16px, 2vw, 32px) 76px;
}

body.ravid-premium-theme #card-root.card {
  width: min(1780px, calc(100vw - 40px));
  max-width: none;
  min-height: calc(100vh - 112px);
  padding: clamp(22px, 2.1vw, 36px);
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .76)),
    radial-gradient(circle at left center, rgba(191, 219, 254, .26), transparent 30%),
    radial-gradient(circle at right center, rgba(125, 211, 252, .22), transparent 28%);
  border: 1px solid rgba(191, 219, 254, .58);
  box-shadow: 0 36px 96px rgba(15, 23, 42, .09);
}

body.ravid-premium-theme .landing-page {
  padding: clamp(30px, 3vw, 44px);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .62)),
    radial-gradient(circle at 12% 50%, rgba(147, 197, 253, .25), transparent 32%),
    radial-gradient(circle at 88% 45%, rgba(34, 211, 238, .18), transparent 30%);
}

body.ravid-premium-theme .hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr);
  gap: clamp(34px, 4.2vw, 60px);
  align-items: stretch;
}

body.ravid-premium-theme .hero-copy,
body.ravid-premium-theme .admin-hero-copy {
  max-width: none;
}

body.ravid-premium-theme .hero-copy h1 {
  max-width: 13ch;
  font-size: clamp(3.3rem, 5.1vw, 5.7rem);
  line-height: .94;
  letter-spacing: -.08em;
}

body.ravid-premium-theme .hero-subtitle {
  max-width: 68ch;
  font-size: 1.02rem;
  line-height: 1.9;
}

body.ravid-premium-theme .hero-highlights,
body.ravid-premium-theme .feature-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body.ravid-premium-theme .hero-mini-stat,
body.ravid-premium-theme .feature-card {
  border-radius: 26px;
  border: 1px solid rgba(191, 219, 254, .58);
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(246, 250, 255, .88));
  box-shadow: 0 20px 44px rgba(15, 23, 42, .06);
}

body.ravid-premium-theme .hero-mini-stat {
  min-height: 126px;
  padding: 18px;
}

body.ravid-premium-theme .feature-card {
  min-height: 210px;
  padding: 28px 24px;
}

body.ravid-premium-theme .hero-logo-panel {
  max-width: none;
  min-height: 100%;
  padding: 22px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .16), transparent 30%),
    linear-gradient(180deg, rgba(46, 92, 232, .98), rgba(37, 112, 238, .98) 62%, rgba(23, 161, 232, .98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 28px 54px rgba(29, 78, 216, .25);
}

body.ravid-premium-theme .hero-logo-stage {
  min-height: clamp(300px, 29vw, 420px);
  padding: 24px;
  border-radius: 28px;
}

body.ravid-premium-theme .hero-logo-figure {
  width: min(100%, 360px);
  filter: drop-shadow(0 24px 30px rgba(4, 16, 56, .34));
}

body.ravid-premium-theme #section-login,
body.ravid-premium-theme #section-admin-dashboard,
body.ravid-premium-theme .student-dashboard-page,
body.ravid-premium-theme .learning-page,
body.ravid-premium-theme .premium-etika-page,
body.ravid-premium-theme #section-report,
body.ravid-premium-theme #section-ranking {
  padding: 6px;
}

body.ravid-premium-theme .admin-hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  gap: 20px;
  margin: 10px 0 26px;
}

body.ravid-premium-theme .admin-tabs {
  position: relative !important;
  top: auto !important;
  z-index: 1 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  padding: 0 !important;
  margin: 0 0 30px !important;
  background: transparent !important;
  border: 0 !important;
  overflow: visible !important;
}

body.ravid-premium-theme .admin-tab-btn,
body.ravid-premium-theme .admin-tab-btn:nth-child(n+5),
body.ravid-premium-theme .admin-tab-btn:nth-child(n+5):hover,
body.ravid-premium-theme .admin-tab-btn:nth-child(n+5).active {
  transform: none !important;
}

body.ravid-premium-theme .admin-tab-btn {
  min-height: 94px;
  padding: 18px;
  align-items: center;
  border-radius: 24px;
  border: 1px solid rgba(191, 219, 254, .58);
  box-shadow: 0 18px 36px rgba(15, 23, 42, .06);
  text-align: left;
}

body.ravid-premium-theme .admin-tab-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 24px 42px rgba(15, 23, 42, .11);
}

body.ravid-premium-theme .admin-tab-btn.active {
  border-color: rgba(96, 165, 250, .9);
  box-shadow: 0 24px 44px rgba(37, 99, 235, .15);
}

body.ravid-premium-theme .admin-tab-btn .admin-tab-icon,
body.ravid-premium-theme .menu-card-icon,
body.ravid-premium-theme .feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 17px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(255, 255, 255, .48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42);
}

body.ravid-premium-theme .admin-tab-icon i,
body.ravid-premium-theme .menu-card-icon i,
body.ravid-premium-theme .feature-icon i {
  --ggs: .86;
}

body.ravid-premium-theme .admin-panel,
body.ravid-premium-theme .learning-page,
body.ravid-premium-theme .student-hero-card,
body.ravid-premium-theme .premium-etika-shell,
body.ravid-premium-theme .summary-library-card,
body.ravid-premium-theme .summary-reader-card,
body.ravid-premium-theme .admin-summary-list-card,
body.ravid-premium-theme .admin-summary-editor-card,
body.ravid-premium-theme .master-card,
body.ravid-premium-theme .video-form-card,
body.ravid-premium-theme .table-wrapper,
body.ravid-premium-theme .question-form-card,
body.ravid-premium-theme .admin-filter-card {
  border-radius: 30px;
  border: 1px solid rgba(226, 232, 240, .88);
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(248, 250, 252, .86));
  box-shadow: 0 24px 60px rgba(15, 23, 42, .08);
}

body.ravid-premium-theme .admin-panel {
  overflow: visible;
  margin-top: 0;
  padding: clamp(22px, 2vw, 32px);
}

body.ravid-premium-theme .table-wrapper {
  overflow: auto;
}

body.ravid-premium-theme .table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

body.ravid-premium-theme .table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, #f8fafc, #eef6ff);
  color: #334155;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 900;
}

body.ravid-premium-theme .table th,
body.ravid-premium-theme .table td {
  padding: 14px 16px;
}

body.ravid-premium-theme .table tbody tr:hover {
  background: rgba(239, 246, 255, .78);
}

body.ravid-premium-theme .menu-grid,
body.ravid-premium-theme .student-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body.ravid-premium-theme .menu-grid .btn-card,
body.ravid-premium-theme .student-menu-card {
  min-height: 132px;
  padding: 20px;
  border-radius: 24px;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid rgba(191, 219, 254, .58);
  box-shadow: 0 18px 36px rgba(15, 23, 42, .06);
}

body.ravid-premium-theme .btn {
  min-height: 46px;
  padding: 10px 18px;
  font-weight: 800;
  letter-spacing: -.01em;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

body.ravid-premium-theme .btn:hover {
  transform: translateY(-1px);
}

body.ravid-premium-theme .btn-primary {
  background: linear-gradient(135deg, #2454e8, #1ea4eb);
  box-shadow: 0 14px 26px rgba(37, 99, 235, .22);
}

body.ravid-premium-theme .btn-outlined,
body.ravid-premium-theme .btn-text {
  border: 1px solid rgba(191, 219, 254, .72);
  background: rgba(255, 255, 255, .82);
}

body.ravid-premium-theme input[type="text"],
body.ravid-premium-theme input[type="password"],
body.ravid-premium-theme input[type="search"],
body.ravid-premium-theme input[type="number"],
body.ravid-premium-theme select,
body.ravid-premium-theme textarea {
  min-height: 48px;
  border-radius: 16px;
  border-color: rgba(203, 213, 225, .92);
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .95));
}

body.ravid-premium-theme .btn:focus-visible,
body.ravid-premium-theme button:focus-visible,
body.ravid-premium-theme input:focus-visible,
body.ravid-premium-theme select:focus-visible,
body.ravid-premium-theme textarea:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .22);
  outline-offset: 3px;
}

@media (max-width: 1380px) {
  body.ravid-premium-theme .hero-grid,
  body.ravid-premium-theme .admin-hero {
    grid-template-columns: 1fr;
  }

  body.ravid-premium-theme .hero-logo-panel {
    max-width: 560px;
    margin-inline: auto;
  }
}

@media (max-width: 1180px) {
  body.ravid-premium-theme .hero-highlights,
  body.ravid-premium-theme .feature-section,
  body.ravid-premium-theme .menu-grid,
  body.ravid-premium-theme .student-menu-grid,
  body.ravid-premium-theme .admin-tabs,
  body.ravid-premium-theme .admin-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 860px) {
  body.ravid-premium-theme .main-container {
    padding: 14px 10px 44px;
  }

  body.ravid-premium-theme #card-root.card {
    width: min(100%, calc(100vw - 20px));
    padding: 14px;
    border-radius: 24px;
  }

  body.ravid-premium-theme .hero-copy h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  body.ravid-premium-theme .hero-highlights,
  body.ravid-premium-theme .feature-section,
  body.ravid-premium-theme .menu-grid,
  body.ravid-premium-theme .student-menu-grid,
  body.ravid-premium-theme .admin-tabs,
  body.ravid-premium-theme .admin-hero-metrics,
  body.ravid-premium-theme .admin-filter-card {
    grid-template-columns: 1fr !important;
  }

  body.ravid-premium-theme .admin-tab-btn {
    min-height: 82px;
  }
}


/* ==========================================================
   RAVID SUPER PREMIUM v2 UI PASS
   Landing + Dashboard refinement. Frontend-only safe override.
   ========================================================== */
:root {
  --ravid-blue-50: #eff6ff;
  --ravid-blue-100: #dbeafe;
  --ravid-blue-500: #2563eb;
  --ravid-blue-600: #1d4ed8;
  --ravid-cyan-500: #06b6d4;
  --ravid-ink: #0f172a;
  --ravid-muted: #64748b;
  --ravid-card: rgba(255,255,255,.88);
  --ravid-border: rgba(191,219,254,.68);
  --ravid-shadow-soft: 0 24px 70px rgba(15,23,42,.08);
  --ravid-shadow-strong: 0 38px 90px rgba(37,99,235,.16);
}

body.ravid-premium-theme {
  background:
    radial-gradient(circle at 9% 14%, rgba(37,99,235,.20), transparent 27%),
    radial-gradient(circle at 91% 10%, rgba(6,182,212,.20), transparent 26%),
    radial-gradient(circle at 50% 112%, rgba(59,130,246,.12), transparent 42%),
    linear-gradient(180deg, #edf6ff 0%, #f8fbff 44%, #f4f9ff 100%) !important;
}

body.ravid-premium-theme::before {
  opacity: .62 !important;
  background:
    linear-gradient(90deg, rgba(30,64,175,.06), transparent 16%, transparent 84%, rgba(14,165,233,.08)),
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.54), transparent 17%),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.42), transparent 18%) !important;
}

body.ravid-premium-theme .app-bar {
  min-height: 76px !important;
  border-bottom: 1px solid rgba(191,219,254,.74) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.76)) !important;
  box-shadow: 0 16px 44px rgba(15,23,42,.07) !important;
}

body.ravid-premium-theme .main-container {
  padding: 20px clamp(18px, 2.4vw, 44px) 76px !important;
}

body.ravid-premium-theme #card-root.card {
  width: min(1820px, calc(100vw - 48px)) !important;
  border-radius: 42px !important;
  padding: clamp(22px, 2.4vw, 42px) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78)),
    radial-gradient(circle at 0% 50%, rgba(147,197,253,.22), transparent 28%),
    radial-gradient(circle at 100% 52%, rgba(103,232,249,.22), transparent 30%) !important;
  box-shadow: 0 36px 110px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.72) !important;
}

/* Landing hero: more flagship, less empty blue panel */
body.ravid-premium-theme .landing-page {
  position: relative !important;
  padding: clamp(32px, 3.2vw, 54px) !important;
  border-radius: 38px !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 12% 18%, rgba(191,219,254,.70), transparent 24%),
    radial-gradient(circle at 84% 24%, rgba(186,230,253,.55), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(248,250,252,.72)) !important;
  border: 1px solid rgba(191,219,254,.62) !important;
  box-shadow: var(--ravid-shadow-soft) !important;
}

body.ravid-premium-theme .landing-page::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.58);
  pointer-events: none;
}

body.ravid-premium-theme .hero-grid {
  position: relative !important;
  z-index: 1 !important;
  grid-template-columns: minmax(540px, 1.03fr) minmax(430px, .82fr) !important;
  gap: clamp(40px, 5vw, 84px) !important;
  max-width: 1400px !important;
  margin-inline: auto !important;
  align-items: center !important;
}

body.ravid-premium-theme .hero-copy h1 {
  font-size: clamp(3.6rem, 5.15vw, 6.15rem) !important;
  line-height: .91 !important;
  letter-spacing: -.09em !important;
  max-width: 12.2ch !important;
  margin-bottom: 22px !important;
}

body.ravid-premium-theme .hero-subtitle {
  max-width: 70ch !important;
  font-size: 1.04rem !important;
  line-height: 1.95 !important;
  color: #51627a !important;
}

body.ravid-premium-theme .hero-highlights {
  margin-top: 24px !important;
  gap: 16px !important;
}

body.ravid-premium-theme .hero-mini-stat {
  position: relative !important;
  min-height: 136px !important;
  border-radius: 26px !important;
  padding: 20px !important;
  overflow: hidden !important;
  transform: translateZ(0) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

body.ravid-premium-theme .hero-mini-stat::before,
body.ravid-premium-theme .feature-card::before,
body.ravid-premium-theme .admin-tab-btn::after,
body.ravid-premium-theme .student-menu-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 82% 18%, rgba(255,255,255,.65), transparent 24%);
  pointer-events: none;
}

body.ravid-premium-theme .hero-mini-stat:hover,
body.ravid-premium-theme .feature-card:hover,
body.ravid-premium-theme .student-menu-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 26px 62px rgba(37,99,235,.12) !important;
}

body.ravid-premium-theme .hero-logo-panel {
  width: min(100%, 430px) !important;
  min-height: auto !important;
  justify-self: center !important;
  padding: 18px !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 26% 16%, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(180deg, #225de8 0%, #2676ef 54%, #18a8df 100%) !important;
  box-shadow: 0 34px 80px rgba(37,99,235,.28), inset 0 1px 0 rgba(255,255,255,.24) !important;
}

body.ravid-premium-theme .hero-logo-stage {
  min-height: 292px !important;
  padding: 20px !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.20), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.17), rgba(255,255,255,.08)) !important;
}

body.ravid-premium-theme .hero-logo-stage::before {
  inset: 12px !important;
  border-radius: 26px !important;
  opacity: .62 !important;
}

body.ravid-premium-theme .hero-logo-figure {
  width: min(100%, 285px) !important;
  padding: 12px !important;
  border-radius: 28px !important;
  background: rgba(255,255,255,.08) !important;
  filter: drop-shadow(0 22px 30px rgba(3,7,18,.34)) !important;
}

body.ravid-premium-theme .hero-logo-image {
  transform: translateY(-3px) scale(1.03) !important;
  filter:
    drop-shadow(0 1px 0 rgba(255,255,255,.42))
    drop-shadow(0 12px 14px rgba(2,6,23,.18))
    drop-shadow(0 28px 34px rgba(2,6,23,.24)) !important;
}

body.ravid-premium-theme .hero-logo-caption {
  margin-top: 16px !important;
  padding: 15px 17px !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.10)) !important;
}

body.ravid-premium-theme .hero-logo-caption b {
  font-size: .98rem !important;
}

body.ravid-premium-theme .hero-logo-caption span {
  font-size: .88rem !important;
  line-height: 1.7 !important;
}

/* Feature cards become more production-grade */
body.ravid-premium-theme .feature-section {
  max-width: 1400px !important;
  margin: clamp(34px, 4vw, 58px) auto 0 !important;
  gap: 22px !important;
}

body.ravid-premium-theme .feature-card {
  position: relative !important;
  min-height: 220px !important;
  padding: 30px 26px !important;
  border-radius: 30px !important;
  overflow: hidden !important;
  border: 1px solid rgba(191,219,254,.66) !important;
}

body.ravid-premium-theme .feature-card h3,
body.ravid-premium-theme .hero-mini-stat strong,
body.ravid-premium-theme .student-menu-card strong,
body.ravid-premium-theme .admin-tab-btn span:last-child {
  letter-spacing: -.035em !important;
}

/* Dashboard / all pages: softer enterprise feel */
body.ravid-premium-theme .admin-panel,
body.ravid-premium-theme .learning-page,
body.ravid-premium-theme .student-hero-card,
body.ravid-premium-theme .premium-etika-shell,
body.ravid-premium-theme .summary-library-card,
body.ravid-premium-theme .summary-reader-card,
body.ravid-premium-theme .admin-summary-list-card,
body.ravid-premium-theme .admin-summary-editor-card,
body.ravid-premium-theme .master-card,
body.ravid-premium-theme .video-form-card,
body.ravid-premium-theme .table-wrapper,
body.ravid-premium-theme .question-form-card,
body.ravid-premium-theme .admin-filter-card,
body.ravid-premium-theme .auth-info-panel,
body.ravid-premium-theme .auth-form-panel {
  border-radius: 32px !important;
  border: 1px solid rgba(191,219,254,.60) !important;
  box-shadow: 0 26px 76px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.62) !important;
}

body.ravid-premium-theme .admin-tabs,
body.ravid-premium-theme .student-menu-grid,
body.ravid-premium-theme .menu-grid {
  gap: 18px !important;
}

body.ravid-premium-theme .admin-tab-btn,
body.ravid-premium-theme .student-menu-card,
body.ravid-premium-theme .menu-grid .btn-card {
  position: relative !important;
  overflow: hidden !important;
  min-height: 112px !important;
  border-radius: 28px !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}

body.ravid-premium-theme .admin-tab-btn:hover,
body.ravid-premium-theme .menu-grid .btn-card:hover {
  transform: translateY(-4px) !important;
  filter: saturate(1.04) !important;
}

body.ravid-premium-theme .admin-tab-btn.active {
  box-shadow: 0 28px 62px rgba(37,99,235,.19) !important;
}

body.ravid-premium-theme .btn-primary {
  background: linear-gradient(135deg, #1d4ed8, #2563eb 48%, #0ea5e9) !important;
  box-shadow: 0 16px 32px rgba(37,99,235,.25) !important;
}

body.ravid-premium-theme .btn-primary:hover {
  box-shadow: 0 22px 42px rgba(37,99,235,.32) !important;
}

body.ravid-premium-theme input[type="text"],
body.ravid-premium-theme input[type="password"],
body.ravid-premium-theme input[type="search"],
body.ravid-premium-theme input[type="number"],
body.ravid-premium-theme select,
body.ravid-premium-theme textarea {
  border-radius: 18px !important;
  border-color: rgba(191,219,254,.75) !important;
  background: rgba(255,255,255,.88) !important;
}

body.ravid-premium-theme input:focus,
body.ravid-premium-theme select:focus,
body.ravid-premium-theme textarea:focus {
  border-color: rgba(37,99,235,.75) !important;
  box-shadow: 0 0 0 5px rgba(37,99,235,.12) !important;
}

body.ravid-premium-theme .table thead th {
  background: linear-gradient(180deg, #f8fbff, #edf6ff) !important;
}

body.ravid-premium-theme .message:not(:empty),
body.ravid-premium-theme .empty-learning-state,
body.ravid-premium-theme .video-empty-state,
body.ravid-premium-theme .student-summary-list-empty {
  border-radius: 26px !important;
  border: 1px solid rgba(191,219,254,.65) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(239,246,255,.82)) !important;
  box-shadow: 0 18px 44px rgba(15,23,42,.06) !important;
}

@media (max-width: 1380px) {
  body.ravid-premium-theme .hero-grid {
    grid-template-columns: 1fr !important;
    max-width: 980px !important;
  }
  body.ravid-premium-theme .hero-copy h1 {
    max-width: 13ch !important;
  }
  body.ravid-premium-theme .hero-logo-panel {
    margin-top: 14px !important;
  }
}

@media (max-width: 900px) {
  body.ravid-premium-theme #card-root.card {
    width: min(100%, calc(100vw - 20px)) !important;
    border-radius: 26px !important;
    padding: 14px !important;
  }
  body.ravid-premium-theme .landing-page {
    padding: 22px !important;
  }
  body.ravid-premium-theme .hero-highlights,
  body.ravid-premium-theme .feature-section {
    grid-template-columns: 1fr !important;
  }
  body.ravid-premium-theme .hero-copy h1 {
    font-size: clamp(2.55rem, 12vw, 4rem) !important;
  }
  body.ravid-premium-theme .hero-logo-panel {
    width: min(100%, 390px) !important;
  }
  body.ravid-premium-theme .hero-logo-stage {
    min-height: 255px !important;
  }
}


/* ==========================================================
   RAVID SUPER PREMIUM V3 - PRODUCTION DASHBOARD POLISH
   Frontend-only UI polish: dashboard density, cards, tables,
   forms, role pages, motion, states, and desktop responsiveness.
   ========================================================== */

:root {
  --ravid-primary: #2563eb;
  --ravid-primary-2: #0ea5e9;
  --ravid-ink: #0f172a;
  --ravid-muted: #64748b;
  --ravid-line: rgba(191, 219, 254, .62);
  --ravid-paper: rgba(255,255,255,.92);
  --ravid-soft: rgba(239,246,255,.78);
  --ravid-shadow-sm: 0 12px 28px rgba(15,23,42,.06);
  --ravid-shadow-md: 0 24px 58px rgba(15,23,42,.09);
  --ravid-shadow-lg: 0 40px 110px rgba(15,23,42,.12);
}

body.ravid-premium-theme {
  background:
    radial-gradient(circle at 9% 12%, rgba(37,99,235,.18), transparent 25%),
    radial-gradient(circle at 92% 13%, rgba(14,165,233,.22), transparent 26%),
    linear-gradient(180deg, #eef7ff 0%, #f8fbff 48%, #f3f8ff 100%);
}

body.ravid-premium-theme .app-bar {
  margin: 10px auto 0;
  width: min(1780px, calc(100vw - 32px));
  border-radius: 24px;
  border: 1px solid rgba(191,219,254,.66);
  box-shadow: var(--ravid-shadow-sm);
}

body.ravid-premium-theme .brand-mark {
  box-shadow: 0 14px 30px rgba(37,99,235,.22), inset 0 1px 0 rgba(255,255,255,.35);
}

body.ravid-premium-theme .main-container {
  padding-top: 18px;
}

body.ravid-premium-theme #card-root.card {
  width: min(1780px, calc(100vw - 32px));
  padding: clamp(20px, 1.8vw, 32px);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.78)),
    radial-gradient(circle at 0% 25%, rgba(191,219,254,.22), transparent 30%),
    radial-gradient(circle at 100% 25%, rgba(125,211,252,.18), transparent 30%);
  box-shadow: var(--ravid-shadow-lg);
}

body.ravid-premium-theme .landing-page {
  min-height: auto;
  padding: clamp(26px, 2.6vw, 40px);
}

body.ravid-premium-theme .hero-grid {
  grid-template-columns: minmax(520px, 1.08fr) minmax(390px, .82fr);
  gap: clamp(28px, 3.4vw, 52px);
}

body.ravid-premium-theme .hero-copy h1 {
  font-size: clamp(3.35rem, 4.8vw, 5.45rem);
  line-height: .95;
}

body.ravid-premium-theme .hero-actions .btn {
  min-width: 158px;
  justify-content: center;
}

body.ravid-premium-theme .hero-logo-panel {
  align-self: stretch;
  min-height: 590px;
  max-height: 650px;
  overflow: hidden;
}

body.ravid-premium-theme .hero-logo-stage {
  min-height: 330px;
  max-height: 370px;
}

body.ravid-premium-theme .hero-logo-stage::after {
  content: "";
  position: absolute;
  inset: auto 12% -12% 12%;
  height: 100px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.20), transparent 70%);
  pointer-events: none;
}

body.ravid-premium-theme .hero-logo-figure {
  width: min(100%, 330px);
}

body.ravid-premium-theme .hero-logo-caption {
  margin-top: 16px;
}

body.ravid-premium-theme .hero-logo-caption span {
  max-width: 42ch;
}

body.ravid-premium-theme .hero-mini-stat,
body.ravid-premium-theme .feature-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.ravid-premium-theme .hero-mini-stat:hover,
body.ravid-premium-theme .feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96,165,250,.72);
  box-shadow: var(--ravid-shadow-md);
}

body.ravid-premium-theme .admin-hero {
  margin-top: 4px;
  margin-bottom: 22px;
}

body.ravid-premium-theme .admin-hero-copy {
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(239,246,255,.82)),
    radial-gradient(circle at 95% 10%, rgba(14,165,233,.16), transparent 30%);
}

body.ravid-premium-theme .admin-hero-copy h1,
body.ravid-premium-theme .section-title,
body.ravid-premium-theme .panel-title,
body.ravid-premium-theme .premium-panel-head h3,
body.ravid-premium-theme .student-hero-card h2 {
  letter-spacing: -.055em;
}

body.ravid-premium-theme .admin-hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.ravid-premium-theme .admin-hero-metric {
  min-height: 156px;
  padding: 22px 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.86));
  border: 1px solid rgba(226,232,240,.86);
  box-shadow: var(--ravid-shadow-sm);
}

body.ravid-premium-theme .admin-tabs {
  gap: 14px !important;
  margin-bottom: 26px !important;
}

body.ravid-premium-theme .admin-tab-btn {
  min-height: 84px;
  padding: 16px 17px;
  border-radius: 22px;
}

body.ravid-premium-theme .admin-tab-btn span:last-child {
  font-size: .98rem;
}

body.ravid-premium-theme .admin-tab-btn .admin-tab-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
}

body.ravid-premium-theme .admin-panel,
body.ravid-premium-theme .learning-page,
body.ravid-premium-theme .student-hero-card,
body.ravid-premium-theme .premium-etika-shell,
body.ravid-premium-theme .summary-library-card,
body.ravid-premium-theme .summary-reader-card,
body.ravid-premium-theme .master-card,
body.ravid-premium-theme .video-form-card,
body.ravid-premium-theme .admin-summary-list-card,
body.ravid-premium-theme .admin-summary-editor-card {
  border-radius: 28px;
  box-shadow: 0 22px 56px rgba(15,23,42,.075);
}

body.ravid-premium-theme .admin-panel {
  padding: clamp(22px, 1.8vw, 30px);
}

body.ravid-premium-theme .panel-heading-row,
body.ravid-premium-theme .premium-panel-head,
body.ravid-premium-theme .section-header-row {
  gap: 16px;
  align-items: flex-start;
}

body.ravid-premium-theme .form,
body.ravid-premium-theme .question-form-grid,
body.ravid-premium-theme .user-form-grid,
body.ravid-premium-theme .summary-admin-editor-body {
  gap: 16px;
}

body.ravid-premium-theme label {
  color: #334155;
  font-weight: 800;
}

body.ravid-premium-theme input[type="text"],
body.ravid-premium-theme input[type="password"],
body.ravid-premium-theme input[type="search"],
body.ravid-premium-theme input[type="number"],
body.ravid-premium-theme input[type="url"],
body.ravid-premium-theme select,
body.ravid-premium-theme textarea {
  border: 1px solid rgba(203,213,225,.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

body.ravid-premium-theme textarea {
  line-height: 1.7;
}

body.ravid-premium-theme .table-wrapper {
  border-radius: 24px;
  border: 1px solid rgba(226,232,240,.88);
}

body.ravid-premium-theme .table {
  min-width: 720px;
}

body.ravid-premium-theme .table thead th:first-child {
  border-top-left-radius: 20px;
}

body.ravid-premium-theme .table thead th:last-child {
  border-top-right-radius: 20px;
}

body.ravid-premium-theme .table td {
  color: #334155;
  vertical-align: middle;
}

body.ravid-premium-theme .student-hero-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(239,246,255,.86)),
    radial-gradient(circle at 100% 0%, rgba(14,165,233,.12), transparent 32%);
}

body.ravid-premium-theme .student-menu-grid,
body.ravid-premium-theme .menu-grid {
  gap: 16px;
}

body.ravid-premium-theme .student-menu-card,
body.ravid-premium-theme .menu-grid .btn-card {
  min-height: 126px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.ravid-premium-theme .student-menu-card:hover,
body.ravid-premium-theme .menu-grid .btn-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ravid-shadow-md);
  border-color: rgba(96,165,250,.72);
}

body.ravid-premium-theme .learning-toolbar,
body.ravid-premium-theme .summary-toolbar,
body.ravid-premium-theme .admin-summary-toolbar,
body.ravid-premium-theme .user-toolbar,
body.ravid-premium-theme .admin-filter-card {
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.86));
  border: 1px solid rgba(226,232,240,.86);
}

body.ravid-premium-theme .summary-layout-grid,
body.ravid-premium-theme .admin-summary-workspace,
body.ravid-premium-theme .video-layout-grid {
  gap: 20px;
}

body.ravid-premium-theme .student-summary-item,
body.ravid-premium-theme .admin-summary-item,
body.ravid-premium-theme .video-item {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

body.ravid-premium-theme .student-summary-item:hover,
body.ravid-premium-theme .admin-summary-item:hover,
body.ravid-premium-theme .video-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--ravid-shadow-sm);
}

body.ravid-premium-theme .auth-shell {
  max-width: 1320px;
  margin-inline: auto;
}

body.ravid-premium-theme .auth-info-panel {
  position: relative;
  overflow: hidden;
}

body.ravid-premium-theme .auth-info-panel::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  bottom: -130px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
  pointer-events: none;
}

body.ravid-premium-theme .auth-form-panel {
  box-shadow: var(--ravid-shadow-md);
}

body.ravid-premium-theme .btn {
  border-radius: 16px;
}

body.ravid-premium-theme .btn-primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #0ea5e9 100%);
  box-shadow: 0 16px 28px rgba(37,99,235,.24);
}

body.ravid-premium-theme .btn-primary:hover {
  box-shadow: 0 20px 34px rgba(37,99,235,.30);
}

body.ravid-premium-theme .message,
body.ravid-premium-theme .empty-learning-state,
body.ravid-premium-theme .video-empty-state {
  border-radius: 22px;
  border: 1px solid rgba(226,232,240,.88);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.86));
}

body.ravid-premium-theme *::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.ravid-premium-theme *::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(37,99,235,.35), rgba(14,165,233,.35));
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.8);
}

body.ravid-premium-theme *::-webkit-scrollbar-track {
  background: rgba(226,232,240,.28);
}

@media (max-width: 1500px) {
  body.ravid-premium-theme .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .86fr);
  }

  body.ravid-premium-theme .hero-logo-panel {
    min-height: 560px;
  }
}

@media (max-width: 1280px) {
  body.ravid-premium-theme .hero-grid,
  body.ravid-premium-theme .admin-hero {
    grid-template-columns: 1fr;
  }

  body.ravid-premium-theme .hero-logo-panel {
    width: min(100%, 520px);
    min-height: auto;
    margin-inline: auto;
  }

  body.ravid-premium-theme .hero-logo-stage {
    min-height: 300px;
  }
}

@media (max-width: 980px) {
  body.ravid-premium-theme .admin-tabs,
  body.ravid-premium-theme .admin-hero-metrics,
  body.ravid-premium-theme .hero-highlights,
  body.ravid-premium-theme .feature-section,
  body.ravid-premium-theme .student-menu-grid,
  body.ravid-premium-theme .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  body.ravid-premium-theme .app-bar,
  body.ravid-premium-theme #card-root.card {
    width: min(100%, calc(100vw - 18px));
  }

  body.ravid-premium-theme .main-container {
    padding-inline: 8px;
  }

  body.ravid-premium-theme .admin-tabs,
  body.ravid-premium-theme .admin-hero-metrics,
  body.ravid-premium-theme .hero-highlights,
  body.ravid-premium-theme .feature-section,
  body.ravid-premium-theme .student-menu-grid,
  body.ravid-premium-theme .menu-grid {
    grid-template-columns: 1fr !important;
  }

  body.ravid-premium-theme .hero-copy h1 {
    font-size: clamp(2.45rem, 13vw, 3.8rem);
  }

  body.ravid-premium-theme .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.ravid-premium-theme .hero-actions .btn {
    width: 100%;
  }
}


/* ==========================================================
   RAVID SUPER PREMIUM V4 - MICROINTERACTION & UX REFINEMENT
   Frontend-only finishing layer for production feel.
   ========================================================== */

:root {
  --ravid-ease: cubic-bezier(.2,.8,.2,1);
  --ravid-ring: 0 0 0 4px rgba(37, 99, 235, .16);
  --ravid-card-border: rgba(191, 219, 254, .68);
}

body.ravid-premium-theme {
  text-rendering: geometricPrecision;
}

body.ravid-premium-theme #card-root.card {
  position: relative;
  isolation: isolate;
}

body.ravid-premium-theme #card-root.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.42), transparent 24%, transparent 72%, rgba(255,255,255,.22)),
    radial-gradient(circle at 18% 0%, rgba(37,99,235,.08), transparent 24%),
    radial-gradient(circle at 100% 8%, rgba(14,165,233,.08), transparent 22%);
  z-index: -1;
}

body.ravid-premium-theme .app-bar {
  transition: box-shadow .2s var(--ravid-ease), border-color .2s var(--ravid-ease);
}

body.ravid-premium-theme .brand {
  gap: 12px;
}

body.ravid-premium-theme .brand-text,
body.ravid-premium-theme .top-title {
  letter-spacing: -.035em;
}

body.ravid-premium-theme .top-title {
  background: linear-gradient(90deg, #1d4ed8, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Landing: make hero feel intentional and less default-card-like */
body.ravid-premium-theme .landing-page {
  position: relative;
  overflow: hidden;
}

body.ravid-premium-theme .landing-page::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -210px;
  top: -180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(14,165,233,.16), transparent 65%);
  pointer-events: none;
}

body.ravid-premium-theme .hero-copy,
body.ravid-premium-theme .hero-visual {
  position: relative;
  z-index: 1;
}

body.ravid-premium-theme .eyebrow,
body.ravid-premium-theme .soft-eyebrow,
body.ravid-premium-theme .panel-kicker,
body.ravid-premium-theme .status-pill {
  letter-spacing: -.01em;
  font-weight: 900;
}

body.ravid-premium-theme .hero-copy h1 {
  text-wrap: balance;
}

body.ravid-premium-theme .hero-subtitle,
body.ravid-premium-theme .section-subtitle,
body.ravid-premium-theme .panel-description {
  text-wrap: pretty;
}

body.ravid-premium-theme .hero-mini-stat strong,
body.ravid-premium-theme .feature-card h3,
body.ravid-premium-theme .student-menu-card strong,
body.ravid-premium-theme .menu-card-copy strong {
  letter-spacing: -.04em;
}

body.ravid-premium-theme .hero-logo-panel {
  transform: perspective(1100px) rotateY(-1deg);
  transition: transform .24s var(--ravid-ease), box-shadow .24s var(--ravid-ease);
}

body.ravid-premium-theme .hero-logo-panel:hover {
  transform: perspective(1100px) rotateY(0deg) translateY(-2px);
  box-shadow: 0 34px 72px rgba(29,78,216,.29);
}

body.ravid-premium-theme .hero-logo-stage {
  position: relative;
  overflow: hidden;
}

body.ravid-premium-theme .hero-logo-stage::before {
  content: "";
  position: absolute;
  inset: -45% auto auto -40%;
  width: 72%;
  height: 140%;
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  pointer-events: none;
}

body.ravid-premium-theme .hero-logo-image {
  transition: transform .24s var(--ravid-ease), filter .24s var(--ravid-ease);
}

body.ravid-premium-theme .hero-logo-panel:hover .hero-logo-image {
  transform: translateY(-5px) scale(1.035);
}

/* Production navigation/menu feel */
body.ravid-premium-theme .admin-tabs {
  align-items: stretch;
}

body.ravid-premium-theme .admin-tab-btn,
body.ravid-premium-theme .student-menu-card,
body.ravid-premium-theme .menu-grid .btn-card,
body.ravid-premium-theme .hero-mini-stat,
body.ravid-premium-theme .feature-card,
body.ravid-premium-theme .student-summary-item,
body.ravid-premium-theme .admin-summary-item,
body.ravid-premium-theme .video-item {
  will-change: transform;
}

body.ravid-premium-theme .admin-tab-btn {
  position: relative;
  overflow: hidden;
}

body.ravid-premium-theme .admin-tab-btn::after,
body.ravid-premium-theme .student-menu-card::after,
body.ravid-premium-theme .menu-grid .btn-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.30) 46%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .5s var(--ravid-ease);
  pointer-events: none;
}

body.ravid-premium-theme .admin-tab-btn:hover::after,
body.ravid-premium-theme .student-menu-card:hover::after,
body.ravid-premium-theme .menu-grid .btn-card:hover::after {
  transform: translateX(120%);
}

body.ravid-premium-theme .admin-tab-btn.active {
  outline: 1px solid rgba(255,255,255,.54);
  outline-offset: -5px;
}

/* Make panels read as app surfaces */
body.ravid-premium-theme .admin-panel,
body.ravid-premium-theme .learning-page,
body.ravid-premium-theme .student-hero-card,
body.ravid-premium-theme .premium-etika-shell,
body.ravid-premium-theme .summary-library-card,
body.ravid-premium-theme .summary-reader-card,
body.ravid-premium-theme .admin-summary-list-card,
body.ravid-premium-theme .admin-summary-editor-card,
body.ravid-premium-theme .master-card,
body.ravid-premium-theme .video-form-card,
body.ravid-premium-theme .auth-form-panel,
body.ravid-premium-theme .auth-info-panel {
  position: relative;
  overflow: hidden;
}

body.ravid-premium-theme .admin-panel::before,
body.ravid-premium-theme .learning-page::before,
body.ravid-premium-theme .student-hero-card::before,
body.ravid-premium-theme .summary-reader-card::before,
body.ravid-premium-theme .master-card::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(37,99,235,.0), rgba(37,99,235,.55), rgba(14,165,233,.0));
  pointer-events: none;
}

body.ravid-premium-theme .panel-heading-row,
body.ravid-premium-theme .premium-panel-head,
body.ravid-premium-theme .section-header-row {
  margin-bottom: 18px;
}

/* Form ergonomics */
body.ravid-premium-theme label:has(input),
body.ravid-premium-theme label:has(select),
body.ravid-premium-theme label:has(textarea) {
  gap: 8px;
}

body.ravid-premium-theme input[type="text"],
body.ravid-premium-theme input[type="password"],
body.ravid-premium-theme input[type="search"],
body.ravid-premium-theme input[type="number"],
body.ravid-premium-theme input[type="url"],
body.ravid-premium-theme select,
body.ravid-premium-theme textarea {
  transition: border-color .18s var(--ravid-ease), box-shadow .18s var(--ravid-ease), background .18s var(--ravid-ease);
}

body.ravid-premium-theme input:hover,
body.ravid-premium-theme select:hover,
body.ravid-premium-theme textarea:hover {
  border-color: rgba(96,165,250,.82);
}

body.ravid-premium-theme input:focus,
body.ravid-premium-theme select:focus,
body.ravid-premium-theme textarea:focus {
  border-color: rgba(37,99,235,.9);
  box-shadow: var(--ravid-ring);
}

/* Buttons: premium tactile feedback */
body.ravid-premium-theme .btn {
  position: relative;
  overflow: hidden;
}

body.ravid-premium-theme .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.26) 45%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .45s var(--ravid-ease);
  pointer-events: none;
}

body.ravid-premium-theme .btn:hover::after {
  transform: translateX(120%);
}

body.ravid-premium-theme .btn:active {
  transform: translateY(0) scale(.99);
}

/* Tables: production readability */
body.ravid-premium-theme .table tbody tr:nth-child(even) {
  background: rgba(248,250,252,.38);
}

body.ravid-premium-theme .table tbody tr:hover {
  box-shadow: inset 4px 0 0 rgba(37,99,235,.42);
}

body.ravid-premium-theme .table td,
body.ravid-premium-theme .table th {
  border-bottom-color: rgba(226,232,240,.74);
}

/* Student content cards */
body.ravid-premium-theme .student-menu-card .menu-card-copy small,
body.ravid-premium-theme .menu-grid .btn-card small,
body.ravid-premium-theme .student-summary-item-copy small,
body.ravid-premium-theme .video-item p {
  color: #64748b;
}

/* Quiz/game visual clarity */
body.ravid-premium-theme .premium-etika-game-card,
body.ravid-premium-theme .quiz-card,
body.ravid-premium-theme .question-card {
  border: 1px solid var(--ravid-card-border);
  box-shadow: var(--ravid-shadow-md);
}

/* Loading/empty/message states */
body.ravid-premium-theme .message:not(:empty) {
  padding: 14px 16px;
  font-weight: 800;
}

body.ravid-premium-theme .empty-learning-state,
body.ravid-premium-theme .video-empty-state {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

/* Dialog-ish cards and overlays if present */
body.ravid-premium-theme .modal,
body.ravid-premium-theme .dialog,
body.ravid-premium-theme .toast,
body.ravid-premium-theme .notification {
  border-radius: 22px;
  border: 1px solid rgba(226,232,240,.84);
  box-shadow: 0 26px 70px rgba(15,23,42,.16);
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.ravid-premium-theme *,
  body.ravid-premium-theme *::before,
  body.ravid-premium-theme *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1280px) {
  body.ravid-premium-theme .hero-logo-panel {
    transform: none;
  }

  body.ravid-premium-theme .hero-logo-panel:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 680px) {
  body.ravid-premium-theme .app-bar {
    border-radius: 18px;
  }

  body.ravid-premium-theme .landing-page,
  body.ravid-premium-theme #card-root.card {
    border-radius: 24px;
  }

  body.ravid-premium-theme .hero-logo-panel {
    border-radius: 26px;
  }

  body.ravid-premium-theme .admin-panel,
  body.ravid-premium-theme .learning-page,
  body.ravid-premium-theme .student-hero-card,
  body.ravid-premium-theme .premium-etika-shell {
    border-radius: 24px;
  }
}


/* ==========================================================
   RAVID SUPER PREMIUM V5 - LAYOUT & COMPONENT REFINEMENT
   Deep polish based on latest visual review (landing, login,
   superadmin, spacing, menu grid, panel density).
   ========================================================== */

:root {
  --ravid-v5-shell-max: 1510px;
  --ravid-v5-card-max: 1436px;
}

body.ravid-premium-theme {
  background:
    radial-gradient(circle at left 12%, rgba(59,130,246,.20), transparent 26%),
    radial-gradient(circle at right 10%, rgba(14,165,233,.16), transparent 24%),
    linear-gradient(180deg, #f4f8ff 0%, #f7fbff 52%, #f8fbff 100%);
}

body.ravid-premium-theme .main-container {
  max-width: var(--ravid-v5-shell-max);
  padding: 16px 18px 72px;
}

body.ravid-premium-theme #card-root.card {
  max-width: min(var(--ravid-v5-card-max), calc(100vw - 36px));
  border-radius: 36px;
  box-shadow:
    0 34px 100px rgba(15,23,42,.09),
    0 1px 0 rgba(255,255,255,.75) inset,
    0 0 0 1px rgba(191,219,254,.28);
}

body.ravid-premium-theme .app-bar {
  padding: 12px 16px;
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(15,23,42,.05);
}

body.ravid-premium-theme .brand-logo {
  box-shadow: 0 14px 28px rgba(37,99,235,.22);
}

/* ---------- Landing page refinement ---------- */
body.ravid-premium-theme .landing-page {
  padding: clamp(24px, 2.4vw, 38px);
}

body.ravid-premium-theme .hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, .92fr);
  gap: clamp(26px, 2.5vw, 40px);
  align-items: stretch;
}

body.ravid-premium-theme .hero-copy {
  padding: 4px 4px 0 6px;
}

body.ravid-premium-theme .hero-copy h1 {
  max-width: 8.2ch;
  font-size: clamp(3rem, 5.25vw, 5.25rem);
  line-height: .97;
  letter-spacing: -.072em;
  margin-bottom: 20px;
}

body.ravid-premium-theme .hero-subtitle {
  max-width: 60ch;
  font-size: 1.04rem;
  line-height: 1.82;
}

body.ravid-premium-theme .hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 18px;
}

body.ravid-premium-theme .hero-mini-stat {
  min-height: 128px;
  padding: 18px 16px;
  border-radius: 22px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(219,234,254,.95);
  box-shadow: 0 18px 32px rgba(15,23,42,.05), inset 0 1px 0 rgba(255,255,255,.72);
}

body.ravid-premium-theme .hero-mini-stat strong {
  font-size: 1.1rem;
  line-height: 1.1;
}

body.ravid-premium-theme .hero-mini-stat span {
  font-size: .94rem;
  line-height: 1.68;
}

body.ravid-premium-theme .hero-actions {
  margin: 8px 0 14px;
}

body.ravid-premium-theme .trust-row {
  gap: 12px;
  margin-top: 6px;
}

body.ravid-premium-theme .trust-row span {
  padding: 8px 12px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(226,232,240,.88);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(15,23,42,.04);
}

body.ravid-premium-theme .hero-footnote {
  margin-top: 14px;
}

body.ravid-premium-theme .hero-logo-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 18px 18px 18px;
  min-height: 100%;
  border-radius: 34px;
}

body.ravid-premium-theme .hero-panel-status {
  padding: 10px 14px;
  border-radius: 999px;
}

body.ravid-premium-theme .hero-logo-stage {
  min-height: 360px;
  padding: 12px;
}

body.ravid-premium-theme .hero-logo-figure {
  width: min(100%, 400px);
  padding: 22px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.10));
  border: 1px solid rgba(255,255,255,.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 28px 54px rgba(15,23,42,.20);
}

body.ravid-premium-theme .hero-logo-image {
  filter: drop-shadow(0 20px 28px rgba(15,23,42,.22));
}

body.ravid-premium-theme .hero-logo-caption {
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.16);
}

body.ravid-premium-theme .feature-section {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body.ravid-premium-theme .feature-card {
  min-height: 220px;
  padding: 24px 22px;
  border-radius: 26px;
}

body.ravid-premium-theme .feature-card p {
  line-height: 1.78;
}

/* ---------- Login refinement ---------- */
body.ravid-premium-theme #section-login {
  padding: 10px 8px 4px;
}

body.ravid-premium-theme .auth-shell {
  grid-template-columns: minmax(340px, .98fr) minmax(0, 1.06fr);
  gap: 18px;
}

body.ravid-premium-theme .auth-info-panel,
body.ravid-premium-theme .auth-form-panel {
  border-radius: 32px;
  min-height: 530px;
}

body.ravid-premium-theme .auth-info-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

body.ravid-premium-theme .auth-info-panel .section-title {
  max-width: 10ch;
}

body.ravid-premium-theme .auth-feature-list {
  display: grid;
  gap: 12px;
}

body.ravid-premium-theme .auth-feature-list > div,
body.ravid-premium-theme .auth-credentials-card {
  border-radius: 20px;
}

body.ravid-premium-theme .auth-form-head h3 {
  font-size: clamp(1.8rem, 2vw, 2.25rem);
  letter-spacing: -.05em;
  margin-bottom: 8px;
}

body.ravid-premium-theme .role-fieldset {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  border-style: solid;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.84));
}

body.ravid-premium-theme .role-fieldset legend {
  font-weight: 800;
  color: #334155;
}

body.ravid-premium-theme .role-option {
  position: relative;
  min-height: 92px;
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  padding: 16px 12px;
  border-radius: 22px;
  border: 1px solid rgba(226,232,240,.98);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88);
  font-weight: 800;
}

body.ravid-premium-theme .role-option input {
  margin: 0;
}

body.ravid-premium-theme .role-option:has(input:checked) {
  border-color: rgba(59,130,246,.62);
  background: linear-gradient(180deg, rgba(219,234,254,.92), rgba(239,246,255,.96));
  box-shadow: 0 16px 30px rgba(37,99,235,.10), inset 0 1px 0 rgba(255,255,255,.72);
  color: #1d4ed8;
}

body.ravid-premium-theme .auth-inline-hint {
  margin-top: 14px;
}

/* ---------- Superadmin/dashboard refinement ---------- */
body.ravid-premium-theme #section-admin-dashboard {
  padding: 8px 8px 4px;
}

body.ravid-premium-theme #section-admin-dashboard > .section-header-row {
  margin-bottom: 14px;
}

body.ravid-premium-theme #section-admin-dashboard .section-title {
  font-size: clamp(2.2rem, 3.2vw, 3.4rem);
  line-height: .98;
  margin-bottom: 8px;
}

body.ravid-premium-theme #section-admin-dashboard .section-subtitle {
  max-width: 68ch;
  font-size: 1rem;
}

body.ravid-premium-theme .admin-hero {
  grid-template-columns: minmax(0, 1.06fr) minmax(390px, .94fr);
  gap: 16px;
  margin: 10px 0 18px;
}

body.ravid-premium-theme .admin-hero-copy,
body.ravid-premium-theme .admin-hero-metrics {
  border-radius: 30px;
}

body.ravid-premium-theme .admin-hero-copy {
  padding: 28px 28px;
}

body.ravid-premium-theme .admin-hero-copy h3 {
  font-size: clamp(2.15rem, 3.1vw, 3.1rem);
  line-height: 1.01;
  letter-spacing: -.065em;
  max-width: 13ch;
}

body.ravid-premium-theme .admin-hero-copy p {
  max-width: 52ch;
}

body.ravid-premium-theme .admin-hero-metrics {
  align-items: stretch;
  padding: 14px;
}

body.ravid-premium-theme .admin-metric-card {
  min-height: 178px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px 16px;
  border-radius: 22px;
}

body.ravid-premium-theme .admin-metric-card strong {
  font-size: 1.16rem;
  line-height: 1.18;
  letter-spacing: -.035em;
}

body.ravid-premium-theme .admin-tabs {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
  padding: 0;
  border: none;
}

body.ravid-premium-theme .admin-tabs .admin-tab-btn {
  position: relative;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  border-radius: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(191,219,254,.86);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.88));
  box-shadow: 0 16px 30px rgba(15,23,42,.05), inset 0 1px 0 rgba(255,255,255,.82);
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -.02em;
}

body.ravid-premium-theme .admin-tabs .admin-tab-btn:nth-child(-n+4) { grid-column: span 3; }
body.ravid-premium-theme .admin-tabs .admin-tab-btn:nth-child(n+5) { grid-column: span 4; }

body.ravid-premium-theme .admin-tabs .admin-tab-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 20px rgba(15,23,42,.06);
}

body.ravid-premium-theme .admin-tabs .admin-tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.9);
}

body.ravid-premium-theme .admin-tabs .admin-tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(59,130,246,.98), rgba(96,165,250,.96));
  border-color: rgba(96,165,250,.78);
  box-shadow: 0 24px 44px rgba(37,99,235,.18), inset 0 1px 0 rgba(255,255,255,.24);
}

body.ravid-premium-theme .admin-tabs .admin-tab-btn.active .admin-tab-icon {
  background: rgba(255,255,255,.18);
  color: #fff;
}

body.ravid-premium-theme .admin-panel,
body.ravid-premium-theme .master-card,
body.ravid-premium-theme .admin-summary-panel-premium {
  border-radius: 30px;
}

body.ravid-premium-theme .master-card,
body.ravid-premium-theme .video-form-card,
body.ravid-premium-theme .admin-summary-list-card,
body.ravid-premium-theme .admin-summary-editor-card,
body.ravid-premium-theme .summary-library-card,
body.ravid-premium-theme .summary-reader-card,
body.ravid-premium-theme .premium-etika-shell,
body.ravid-premium-theme .student-hero-card,
body.ravid-premium-theme .learning-page {
  padding: clamp(22px, 2vw, 30px);
}

body.ravid-premium-theme .table-wrapper {
  margin-top: 16px;
  border-radius: 20px;
  border: 1px solid rgba(226,232,240,.88);
  background: rgba(255,255,255,.94);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}

body.ravid-premium-theme .table thead {
  background: linear-gradient(180deg, rgba(248,250,252,.96), rgba(241,245,249,.92));
}

body.ravid-premium-theme .table th,
body.ravid-premium-theme .table td {
  padding: 14px 14px;
}

/* ---------- Global component polish ---------- */
body.ravid-premium-theme .btn {
  border-radius: 16px;
  min-height: 48px;
  padding: 0 18px;
  font-weight: 900;
  letter-spacing: -.015em;
}

body.ravid-premium-theme .btn-primary {
  box-shadow: 0 14px 28px rgba(37,99,235,.18);
}

body.ravid-premium-theme .btn-outlined {
  background: rgba(255,255,255,.92);
}

body.ravid-premium-theme input[type="text"],
body.ravid-premium-theme input[type="password"],
body.ravid-premium-theme input[type="search"],
body.ravid-premium-theme input[type="number"],
body.ravid-premium-theme input[type="url"],
body.ravid-premium-theme select,
body.ravid-premium-theme textarea {
  min-height: 48px;
  border-radius: 16px;
}

body.ravid-premium-theme .section-header-row,
body.ravid-premium-theme .auth-form-head,
body.ravid-premium-theme .learning-header-row,
body.ravid-premium-theme .panel-heading-row {
  align-items: flex-start;
}

body.ravid-premium-theme .message:not(:empty) {
  border-radius: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1260px) {
  body.ravid-premium-theme .hero-grid,
  body.ravid-premium-theme .admin-hero {
    grid-template-columns: 1fr;
  }

  body.ravid-premium-theme .hero-logo-stage {
    min-height: 320px;
  }

  body.ravid-premium-theme .admin-hero-copy h3,
  body.ravid-premium-theme .hero-copy h1 {
    max-width: none;
  }
}

@media (max-width: 1080px) {
  body.ravid-premium-theme .feature-section,
  body.ravid-premium-theme .hero-highlights {
    grid-template-columns: 1fr;
  }

  body.ravid-premium-theme .auth-shell {
    grid-template-columns: 1fr;
  }

  body.ravid-premium-theme .admin-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.ravid-premium-theme .admin-tabs .admin-tab-btn,
  body.ravid-premium-theme .admin-tabs .admin-tab-btn:nth-child(-n+4),
  body.ravid-premium-theme .admin-tabs .admin-tab-btn:nth-child(n+5) {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  body.ravid-premium-theme .main-container {
    padding: 10px 10px 36px;
  }

  body.ravid-premium-theme #card-root.card {
    max-width: calc(100vw - 16px);
    border-radius: 26px;
  }

  body.ravid-premium-theme .role-fieldset {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  body.ravid-premium-theme .admin-hero-metrics {
    grid-template-columns: 1fr;
  }

  body.ravid-premium-theme .admin-tabs {
    grid-template-columns: 1fr;
  }

  body.ravid-premium-theme .hero-copy h1,
  body.ravid-premium-theme #section-admin-dashboard .section-title {
    font-size: clamp(2.25rem, 12vw, 3.4rem);
  }
}


/* ==========================================================
   RAVID SUPER PREMIUM V6 - FINAL LAYOUT DISCIPLINE
   Fixes desktop/zoom menu collapse and tightens flagship layout.
   Frontend-only, no app.js/backend change.
   ========================================================== */

/* Global shell: keep the app wide enough but not visually drifting */
body.ravid-premium-theme .main-container {
  max-width: 1560px !important;
  width: 100% !important;
  margin-inline: auto !important;
  padding-inline: clamp(16px, 2vw, 28px) !important;
}

body.ravid-premium-theme #card-root.card {
  width: min(100%, 1480px) !important;
  max-width: 1480px !important;
  margin-inline: auto !important;
}

/* Landing: slightly more balanced and less tall */
body.ravid-premium-theme .landing-page {
  padding: clamp(24px, 2.2vw, 34px) !important;
}

body.ravid-premium-theme .hero-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, .96fr) !important;
  gap: clamp(24px, 2.8vw, 42px) !important;
}

body.ravid-premium-theme .hero-copy h1 {
  max-width: 8.8ch !important;
  font-size: clamp(3rem, 5vw, 5rem) !important;
}

body.ravid-premium-theme .hero-logo-panel {
  min-height: 560px !important;
  max-height: 620px !important;
}

body.ravid-premium-theme .hero-logo-stage {
  min-height: 320px !important;
}

body.ravid-premium-theme .hero-logo-figure {
  width: min(100%, 360px) !important;
}

/* Critical fix: Admin menu must never become accidental full-width vertical list on desktop/zoom */
body.ravid-premium-theme #section-admin-dashboard .admin-tabs {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
  gap: 14px !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: visible !important;
  align-items: stretch !important;
}

/* reset old 12-grid spans safely */
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn,
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:nth-child(-n+4),
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:nth-child(n+5) {
  grid-column: auto !important;
  width: 100% !important;
  transform: none;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn {
  min-height: 76px !important;
  max-height: 96px !important;
  padding: 16px 18px !important;
  border-radius: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  overflow: hidden !important;
  text-align: left !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-icon {
  width: 46px !important;
  height: 46px !important;
  flex: 0 0 46px !important;
  border-radius: 16px !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn span:last-child {
  min-width: 0 !important;
  font-size: .98rem !important;
  line-height: 1.25 !important;
  white-space: normal !important;
}

/* Better compact hero on dashboard so menu + working panel appears earlier */
body.ravid-premium-theme #section-admin-dashboard > .section-header-row {
  margin-bottom: 12px !important;
}

body.ravid-premium-theme #section-admin-dashboard .section-title {
  font-size: clamp(2.15rem, 2.8vw, 3.05rem) !important;
  line-height: 1 !important;
}

body.ravid-premium-theme .admin-hero {
  grid-template-columns: minmax(0, 1fr) minmax(380px, .88fr) !important;
  gap: 16px !important;
  margin: 8px 0 18px !important;
}

body.ravid-premium-theme .admin-hero-copy {
  padding: 24px 26px !important;
}

body.ravid-premium-theme .admin-hero-copy h3 {
  max-width: 15ch !important;
  font-size: clamp(1.95rem, 2.65vw, 2.65rem) !important;
  line-height: 1.03 !important;
}

body.ravid-premium-theme .admin-hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  padding: 14px !important;
}

body.ravid-premium-theme .admin-metric-card {
  min-height: 150px !important;
  padding: 16px 14px !important;
}

/* Working panels: slightly tighter but still premium */
body.ravid-premium-theme .admin-panel {
  padding: clamp(20px, 1.7vw, 28px) !important;
}

body.ravid-premium-theme .admin-filter-card {
  grid-template-columns: minmax(210px, 1fr) minmax(150px, .35fr) auto !important;
  gap: 14px !important;
}

/* Auth role cards: prevent overly tall login on common desktop */
body.ravid-premium-theme .auth-info-panel,
body.ravid-premium-theme .auth-form-panel {
  min-height: 500px !important;
}

body.ravid-premium-theme .role-fieldset {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body.ravid-premium-theme .role-option {
  min-height: 78px !important;
  border-radius: 20px !important;
}

/* Cards/tables: more refined density */
body.ravid-premium-theme .table th,
body.ravid-premium-theme .table td {
  padding: 12px 14px !important;
}

body.ravid-premium-theme .feature-card,
body.ravid-premium-theme .hero-mini-stat,
body.ravid-premium-theme .student-menu-card,
body.ravid-premium-theme .menu-grid .btn-card {
  box-shadow: 0 18px 36px rgba(15,23,42,.055), inset 0 1px 0 rgba(255,255,255,.72) !important;
}

/* Desktop medium: keep admin tabs in 3/2 columns rather than vertical */
@media (max-width: 1280px) {
  body.ravid-premium-theme .hero-grid,
  body.ravid-premium-theme .admin-hero {
    grid-template-columns: 1fr !important;
  }

  body.ravid-premium-theme .hero-logo-panel {
    width: min(100%, 520px) !important;
    min-height: auto !important;
    max-height: none !important;
    margin-inline: auto !important;
  }

  body.ravid-premium-theme #section-admin-dashboard .admin-tabs {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  }
}

@media (max-width: 860px) {
  body.ravid-premium-theme #section-admin-dashboard .admin-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.ravid-premium-theme .admin-hero-metrics,
  body.ravid-premium-theme .admin-filter-card,
  body.ravid-premium-theme .role-fieldset {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  body.ravid-premium-theme #section-admin-dashboard .admin-tabs {
    grid-template-columns: 1fr !important;
  }

  body.ravid-premium-theme .hero-copy h1,
  body.ravid-premium-theme #section-admin-dashboard .section-title {
    max-width: none !important;
  }
}


/* ==========================================================
   RAVID EMERGENCY RECOVERY V8 - STABLE ADMIN MENU
   Purpose: undo V7 visual regression and lock a safe 4+3 menu.
   Frontend-only. Preserve all healthy logic.
   ========================================================== */

/* Keep shell healthy and avoid experimental compressed menu */
body.ravid-premium-theme #section-admin-dashboard {
  max-width: 1260px;
  margin-inline: auto;
}

/* Stable, readable admin menu: 4 cards first row, 3 cards second row */
body.ravid-premium-theme #section-admin-dashboard .admin-tabs {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  padding: 14px !important;
  margin: 0 0 22px !important;
  border: 1px solid rgba(191,219,254,.58) !important;
  border-radius: 28px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(248,250,252,.62)),
    radial-gradient(circle at 16% 0%, rgba(37,99,235,.10), transparent 30%),
    radial-gradient(circle at 86% 0%, rgba(14,165,233,.08), transparent 28%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.78),
    0 18px 42px rgba(15,23,42,.05) !important;
  overflow: visible !important;
  align-items: stretch !important;
}

/* Reset all previous risky grid spans */
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn,
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:nth-child(-n+4),
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:nth-child(n+5),
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:nth-child(6),
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:nth-child(7) {
  grid-column: auto !important;
  width: 100% !important;
  min-width: 0 !important;
}

/* Center last 3 cards on desktop without squeezing text */
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:nth-child(5) {
  grid-column: 1 / span 1 !important;
}
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:nth-child(6) {
  grid-column: 2 / span 1 !important;
}
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:nth-child(7) {
  grid-column: 3 / span 1 !important;
}

/* Card sizing: readable, not too tall, not too narrow */
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn {
  min-height: 78px !important;
  max-height: none !important;
  padding: 16px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  border-radius: 22px !important;
  text-align: left !important;
  white-space: normal !important;
  overflow: hidden !important;
  color: #0f172a !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(248,250,252,.88)) !important;
  border: 1px solid rgba(191,219,254,.74) !important;
  box-shadow:
    0 14px 28px rgba(15,23,42,.055),
    inset 0 1px 0 rgba(255,255,255,.85) !important;
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-icon {
  flex: 0 0 46px !important;
  width: 46px !important;
  height: 46px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 16px !important;
  color: currentColor !important;
  background: rgba(255,255,255,.86) !important;
  border: 1px solid rgba(255,255,255,.5) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62) !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn span:last-child {
  display: block !important;
  min-width: 0 !important;
  overflow: visible !important;
  text-overflow: initial !important;
  white-space: normal !important;
  color: inherit !important;
  font-size: .98rem !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
  letter-spacing: -.02em !important;
}

/* Active state must stay readable */
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn.active {
  color: #ffffff !important;
  background:
    radial-gradient(circle at 82% 20%, rgba(255,255,255,.22), transparent 26%),
    linear-gradient(135deg, #2563eb 0%, #3b82f6 58%, #0ea5e9 100%) !important;
  border-color: rgba(147,197,253,.95) !important;
  box-shadow:
    0 22px 44px rgba(37,99,235,.22),
    inset 0 1px 0 rgba(255,255,255,.25) !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn.active .admin-tab-icon {
  color: #ffffff !important;
  background: rgba(255,255,255,.18) !important;
  border-color: rgba(255,255,255,.22) !important;
}

/* Restore calm hover only */
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:not(.active):hover {
  transform: translateY(-2px) !important;
  border-color: rgba(96,165,250,.82) !important;
  box-shadow:
    0 20px 36px rgba(15,23,42,.08),
    inset 0 1px 0 rgba(255,255,255,.9) !important;
}

/* Dashboard compact but not cramped */
body.ravid-premium-theme .admin-hero {
  margin-bottom: 18px !important;
}

body.ravid-premium-theme .admin-panel {
  margin-top: 0 !important;
}

/* Responsive: 2 columns tablet, 1 column mobile */
@media (max-width: 1100px) {
  body.ravid-premium-theme #section-admin-dashboard .admin-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:nth-child(5),
  body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:nth-child(6),
  body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:nth-child(7) {
    grid-column: auto !important;
  }
}

@media (max-width: 640px) {
  body.ravid-premium-theme #section-admin-dashboard .admin-tabs {
    grid-template-columns: 1fr !important;
  }
}


/* ==========================================================
   RAVID SAFE PREMIUM V9 - DASHBOARD WORKSPACE POLISH
   Based on V8 stable layout. No risky grid experiments.
   Frontend-only: no app.js/backend change.
   ========================================================== */

/* Keep V8 healthy, add calm premium color language */
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:nth-child(1) {
  background: linear-gradient(145deg, rgba(239,246,255,.98), rgba(219,234,254,.90)) !important;
  color: #1d4ed8 !important;
}
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:nth-child(2) {
  background: linear-gradient(145deg, rgba(245,243,255,.98), rgba(237,233,254,.90)) !important;
  color: #6d28d9 !important;
}
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:nth-child(3) {
  background: linear-gradient(145deg, rgba(240,253,250,.98), rgba(204,251,241,.88)) !important;
  color: #0f766e !important;
}
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:nth-child(4) {
  background: linear-gradient(145deg, rgba(255,247,237,.98), rgba(254,215,170,.88)) !important;
  color: #c2410c !important;
}
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:nth-child(5) {
  background: linear-gradient(145deg, rgba(253,242,248,.98), rgba(251,207,232,.88)) !important;
  color: #be185d !important;
}
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:nth-child(6) {
  background: linear-gradient(145deg, rgba(240,249,255,.98), rgba(186,230,253,.88)) !important;
  color: #0369a1 !important;
}
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:nth-child(7) {
  background: linear-gradient(145deg, rgba(240,253,244,.98), rgba(187,247,208,.88)) !important;
  color: #15803d !important;
}

/* Active state must override all menu-specific colors */
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn.active {
  color: #ffffff !important;
  background:
    radial-gradient(circle at 82% 20%, rgba(255,255,255,.20), transparent 26%),
    linear-gradient(135deg, #2563eb 0%, #3b82f6 56%, #0ea5e9 100%) !important;
}

/* Improve menu card legibility and flagship feel without changing layout */
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn {
  min-height: 82px !important;
  box-shadow:
    0 16px 30px rgba(15,23,42,.055),
    inset 0 1px 0 rgba(255,255,255,.82) !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-icon {
  background: rgba(255,255,255,.72) !important;
  color: currentColor !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn.active .admin-tab-icon {
  background: rgba(255,255,255,.18) !important;
  color: #ffffff !important;
}

/* Hero cards: cleaner hierarchy */
body.ravid-premium-theme .admin-hero-copy {
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(239,246,255,.82)),
    radial-gradient(circle at 0% 0%, rgba(59,130,246,.10), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(14,165,233,.10), transparent 30%) !important;
}

body.ravid-premium-theme .admin-hero-copy .eyebrow,
body.ravid-premium-theme .admin-panel .eyebrow {
  background: rgba(239,246,255,.92) !important;
  border-color: rgba(147,197,253,.66) !important;
  color: #1d4ed8 !important;
}

body.ravid-premium-theme .admin-metric-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.88)) !important;
  border-color: rgba(226,232,240,.88) !important;
}

body.ravid-premium-theme .admin-metric-card span {
  color: #64748b !important;
  font-weight: 900 !important;
}

body.ravid-premium-theme .admin-metric-card strong {
  color: #0f172a !important;
}

/* Workspace panel: better production surface */
body.ravid-premium-theme #section-admin-dashboard .admin-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.90)),
    radial-gradient(circle at 0% 0%, rgba(59,130,246,.07), transparent 28%) !important;
  border-color: rgba(191,219,254,.66) !important;
  box-shadow:
    0 26px 70px rgba(15,23,42,.08),
    inset 0 1px 0 rgba(255,255,255,.78) !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-panel h2,
body.ravid-premium-theme #section-admin-dashboard .admin-panel h3 {
  color: #0f172a !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-panel p,
body.ravid-premium-theme #section-admin-dashboard .admin-panel .panel-description {
  color: #64748b !important;
}

/* Tables: smoother, more premium, still readable */
body.ravid-premium-theme .table-wrapper {
  border-radius: 24px !important;
  background: rgba(255,255,255,.96) !important;
  border: 1px solid rgba(219,234,254,.86) !important;
  box-shadow:
    0 18px 40px rgba(15,23,42,.05),
    inset 0 1px 0 rgba(255,255,255,.85) !important;
}

body.ravid-premium-theme .table thead {
  background:
    linear-gradient(180deg, rgba(239,246,255,.96), rgba(248,250,252,.94)) !important;
}

body.ravid-premium-theme .table thead th {
  color: #334155 !important;
  font-weight: 900 !important;
  letter-spacing: .055em !important;
}

body.ravid-premium-theme .table tbody tr:hover {
  background: rgba(239,246,255,.72) !important;
}

/* Form row/filter: align action better */
body.ravid-premium-theme .admin-filter-card {
  border-radius: 24px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.90)) !important;
  border-color: rgba(219,234,254,.86) !important;
}

body.ravid-premium-theme .admin-filter-card .btn-primary {
  min-width: 150px !important;
}

/* Buttons feel more deliberate */
body.ravid-premium-theme .btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 42%, #0ea5e9 100%) !important;
  box-shadow: 0 16px 28px rgba(37,99,235,.22) !important;
}

body.ravid-premium-theme .btn-outlined {
  background: rgba(255,255,255,.94) !important;
  border-color: rgba(191,219,254,.78) !important;
}

/* Landing: tiny safe polish only */
body.ravid-premium-theme .landing-page {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.80) !important;
}

body.ravid-premium-theme .hero-logo-panel {
  box-shadow:
    0 32px 72px rgba(37,99,235,.24),
    inset 0 1px 0 rgba(255,255,255,.25) !important;
}

/* Safe responsive: preserve V8 behavior */
@media (max-width: 1100px) {
  body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:nth-child(5),
  body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:nth-child(6),
  body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:nth-child(7) {
    grid-column: auto !important;
  }
}


/* ==========================================================
   RAVID SAFE PREMIUM V10 - LANDING & DASHBOARD BALANCE
   Continue from healthy V9. No grid experiment. No app.js/backend.
   Focus: reduce empty feel, improve landing fold, preserve stable menu.
   ========================================================== */

/* Shell breathing: still premium, a little more full and centered */
body.ravid-premium-theme .app-bar {
  width: min(1520px, calc(100vw - 36px)) !important;
}

body.ravid-premium-theme .main-container {
  max-width: 1520px !important;
  padding-top: 14px !important;
}

body.ravid-premium-theme #card-root.card {
  width: min(100%, 1440px) !important;
  max-width: 1440px !important;
}

/* Landing: make first fold feel more flagship and less vertically empty */
body.ravid-premium-theme .landing-page {
  padding: clamp(22px, 2vw, 30px) !important;
}

body.ravid-premium-theme .landing-page .hero-grid {
  min-height: clamp(520px, 64vh, 650px) !important;
  grid-template-columns: minmax(0, 1.06fr) minmax(380px, .94fr) !important;
  gap: clamp(24px, 2.6vw, 38px) !important;
  align-items: center !important;
}

body.ravid-premium-theme .hero-copy {
  padding-left: clamp(6px, 1.4vw, 22px) !important;
}

body.ravid-premium-theme .hero-copy h1 {
  max-width: 9.4ch !important;
  font-size: clamp(3.05rem, 4.85vw, 5.05rem) !important;
  line-height: .95 !important;
  margin-bottom: 16px !important;
}

body.ravid-premium-theme .hero-subtitle {
  max-width: 62ch !important;
  margin-bottom: 0 !important;
  line-height: 1.78 !important;
}

body.ravid-premium-theme .hero-highlights {
  margin-top: 22px !important;
  margin-bottom: 16px !important;
  gap: 14px !important;
  max-width: 640px !important;
}

body.ravid-premium-theme .hero-mini-stat {
  min-height: 112px !important;
  padding: 16px 15px !important;
  border-radius: 22px !important;
}

body.ravid-premium-theme .hero-mini-stat strong {
  font-size: 1.05rem !important;
}

body.ravid-premium-theme .hero-mini-stat span {
  font-size: .92rem !important;
}

body.ravid-premium-theme .hero-actions {
  margin-top: 8px !important;
  margin-bottom: 10px !important;
}

body.ravid-premium-theme .trust-row {
  margin-top: 8px !important;
  gap: 9px !important;
}

body.ravid-premium-theme .trust-row span {
  padding: 7px 11px !important;
  font-size: .86rem !important;
}

/* Logo card: visually premium, not too tall */
body.ravid-premium-theme .hero-logo-panel {
  width: min(100%, 450px) !important;
  min-height: 500px !important;
  max-height: 560px !important;
  justify-self: center !important;
  border-radius: 32px !important;
}

body.ravid-premium-theme .hero-logo-stage {
  min-height: 285px !important;
  padding: 14px !important;
}

body.ravid-premium-theme .hero-logo-figure {
  width: min(100%, 315px) !important;
}

body.ravid-premium-theme .hero-logo-caption {
  padding: 15px 17px !important;
  border-radius: 21px !important;
}

body.ravid-premium-theme .hero-logo-caption b {
  font-size: .98rem !important;
}

body.ravid-premium-theme .hero-logo-caption span {
  font-size: .9rem !important;
  line-height: 1.65 !important;
}

/* Feature cards below landing: visible sooner and feel like product modules */
body.ravid-premium-theme .feature-section {
  margin-top: 22px !important;
  gap: 16px !important;
}

body.ravid-premium-theme .feature-card {
  min-height: 184px !important;
  padding: 22px 20px !important;
  border-radius: 25px !important;
}

/* Dashboard: preserve healthy V9 menu, only improve balance */
body.ravid-premium-theme #section-admin-dashboard {
  max-width: 1240px !important;
}

body.ravid-premium-theme #section-admin-dashboard .section-title {
  font-size: clamp(2.25rem, 2.7vw, 3.05rem) !important;
}

body.ravid-premium-theme .admin-hero {
  margin-bottom: 16px !important;
}

body.ravid-premium-theme .admin-hero-copy {
  min-height: 236px !important;
  padding: 24px 28px !important;
}

body.ravid-premium-theme .admin-hero-copy h3 {
  font-size: clamp(1.95rem, 2.55vw, 2.65rem) !important;
}

body.ravid-premium-theme .admin-hero-metrics {
  min-height: 236px !important;
}

body.ravid-premium-theme .admin-metric-card {
  padding: 16px 14px !important;
}

/* Menu: maintain 4+3; only density and contrast refinement */
body.ravid-premium-theme #section-admin-dashboard .admin-tabs {
  gap: 13px !important;
  padding: 13px !important;
  margin-bottom: 20px !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn {
  min-height: 76px !important;
  padding: 15px 17px !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-icon {
  flex-basis: 44px !important;
  width: 44px !important;
  height: 44px !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn span:last-child {
  font-size: .95rem !important;
}

/* Workspace panel and forms: slightly tighter for productivity */
body.ravid-premium-theme #section-admin-dashboard .admin-panel {
  padding: clamp(20px, 1.65vw, 28px) !important;
}

body.ravid-premium-theme .admin-filter-card {
  padding: 15px 18px !important;
}

body.ravid-premium-theme .table th,
body.ravid-premium-theme .table td {
  padding: 11px 14px !important;
}

/* Product-grade focus states */
body.ravid-premium-theme .btn:focus-visible,
body.ravid-premium-theme button:focus-visible,
body.ravid-premium-theme input:focus-visible,
body.ravid-premium-theme select:focus-visible,
body.ravid-premium-theme textarea:focus-visible {
  outline: 3px solid rgba(37,99,235,.18) !important;
  outline-offset: 3px !important;
}

/* Responsive safe guards */
@media (max-width: 1260px) {
  body.ravid-premium-theme .landing-page .hero-grid {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  body.ravid-premium-theme .hero-logo-panel {
    width: min(100%, 500px) !important;
    min-height: auto !important;
    max-height: none !important;
  }
}

@media (max-width: 760px) {
  body.ravid-premium-theme .hero-copy h1 {
    max-width: none !important;
  }

  body.ravid-premium-theme .hero-highlights,
  body.ravid-premium-theme .feature-section {
    grid-template-columns: 1fr !important;
  }
}


/* ==========================================================
   RAVID SAFE PREMIUM V11 - BRAND DEPTH & SECTION RHYTHM
   Continue from healthy V10. No grid experiment. No app.js/backend.
   Focus: premium depth, better landing rhythm, stronger dashboard surface.
   ========================================================== */

/* Global canvas: cleaner flagship aura */
body.ravid-premium-theme {
  background:
    radial-gradient(circle at 9% 11%, rgba(37,99,235,.18), transparent 24%),
    radial-gradient(circle at 91% 13%, rgba(14,165,233,.18), transparent 25%),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.68), transparent 18%),
    linear-gradient(180deg, #f2f8ff 0%, #f8fbff 46%, #f5faff 100%) !important;
}

/* App shell should feel like a product frame, not a browser card */
body.ravid-premium-theme .app-bar {
  border: 1px solid rgba(191,219,254,.66) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78)) !important;
  box-shadow:
    0 16px 42px rgba(15,23,42,.065),
    inset 0 1px 0 rgba(255,255,255,.82) !important;
}

body.ravid-premium-theme .brand {
  border-radius: 18px !important;
  padding: 7px 10px 7px 8px !important;
  background: rgba(255,255,255,.62) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.76) !important;
}

body.ravid-premium-theme #card-root.card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.91), rgba(255,255,255,.80)),
    radial-gradient(circle at 2% 18%, rgba(59,130,246,.16), transparent 30%),
    radial-gradient(circle at 98% 16%, rgba(14,165,233,.14), transparent 30%),
    linear-gradient(120deg, rgba(219,234,254,.16), rgba(240,249,255,.12)) !important;
  box-shadow:
    0 38px 100px rgba(15,23,42,.09),
    inset 0 1px 0 rgba(255,255,255,.82),
    0 0 0 1px rgba(191,219,254,.32) !important;
}

/* Landing: make below-the-fold cards visible sooner and improve composition */
body.ravid-premium-theme .landing-page {
  position: relative !important;
  overflow: hidden !important;
  padding-top: clamp(20px, 1.8vw, 28px) !important;
  padding-bottom: clamp(20px, 1.8vw, 28px) !important;
}

body.ravid-premium-theme .landing-page::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 30px;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(37,99,235,.045), transparent 24%, transparent 72%, rgba(14,165,233,.045)),
    radial-gradient(circle at 20% 18%, rgba(191,219,254,.30), transparent 30%);
  border: 1px solid rgba(191,219,254,.28);
}

body.ravid-premium-theme .landing-page .hero-grid {
  position: relative !important;
  z-index: 1 !important;
  min-height: clamp(500px, 60vh, 620px) !important;
}

body.ravid-premium-theme .hero-copy h1 {
  text-shadow: 0 1px 0 rgba(255,255,255,.28) !important;
}

body.ravid-premium-theme .hero-subtitle {
  color: #52637b !important;
}

body.ravid-premium-theme .hero-mini-stat {
  position: relative !important;
  overflow: hidden !important;
}

body.ravid-premium-theme .hero-mini-stat::after {
  content: "";
  position: absolute;
  width: 88px;
  height: 88px;
  right: -34px;
  top: -28px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.56), transparent 70%);
  pointer-events: none;
}

body.ravid-premium-theme .hero-actions .btn-primary {
  box-shadow:
    0 16px 34px rgba(37,99,235,.25),
    inset 0 1px 0 rgba(255,255,255,.26) !important;
}

body.ravid-premium-theme .trust-row span {
  color: #334155 !important;
  background: rgba(255,255,255,.92) !important;
  border-color: rgba(226,232,240,.92) !important;
}

/* Hero logo: more dimensional but controlled */
body.ravid-premium-theme .hero-logo-panel {
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.18), transparent 28%),
    radial-gradient(circle at 92% 76%, rgba(14,165,233,.22), transparent 28%),
    linear-gradient(180deg, #2563eb 0%, #2f7df1 56%, #11a8e9 100%) !important;
  box-shadow:
    0 34px 76px rgba(37,99,235,.26),
    inset 0 1px 0 rgba(255,255,255,.30) !important;
}

body.ravid-premium-theme .hero-logo-stage {
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.09)),
    radial-gradient(circle at center, rgba(255,255,255,.14), transparent 62%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(15,23,42,.06) !important;
}

body.ravid-premium-theme .hero-logo-figure {
  box-shadow:
    0 30px 60px rgba(15,23,42,.20),
    inset 0 1px 0 rgba(255,255,255,.16) !important;
}

body.ravid-premium-theme .hero-logo-caption {
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.10)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16) !important;
}

/* Feature cards: more premium module cards and less distant */
body.ravid-premium-theme .feature-section {
  position: relative !important;
  z-index: 1 !important;
  margin-top: 18px !important;
}

body.ravid-premium-theme .feature-card {
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(191,219,254,.62) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(239,246,255,.84)) !important;
  box-shadow:
    0 22px 46px rgba(15,23,42,.065),
    inset 0 1px 0 rgba(255,255,255,.78) !important;
}

body.ravid-premium-theme .feature-card:nth-child(2) {
  background: linear-gradient(145deg, rgba(248,250,255,.96), rgba(238,242,255,.86)) !important;
}

body.ravid-premium-theme .feature-card:nth-child(3) {
  background: linear-gradient(145deg, rgba(240,253,244,.96), rgba(220,252,231,.82)) !important;
}

body.ravid-premium-theme .feature-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -46px;
  top: -46px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.58), transparent 72%);
  pointer-events: none;
}

/* Dashboard: preserve stable menu, increase enterprise depth */
body.ravid-premium-theme #section-admin-dashboard {
  max-width: 1260px !important;
}

body.ravid-premium-theme #section-admin-dashboard .section-title {
  text-shadow: 0 1px 0 rgba(255,255,255,.32) !important;
}

body.ravid-premium-theme .admin-hero-copy,
body.ravid-premium-theme .admin-hero-metrics {
  box-shadow:
    0 22px 56px rgba(15,23,42,.065),
    inset 0 1px 0 rgba(255,255,255,.80) !important;
}

body.ravid-premium-theme .admin-metric-card {
  position: relative !important;
  overflow: hidden !important;
}

body.ravid-premium-theme .admin-metric-card::after {
  content: "";
  position: absolute;
  inset: auto -34px -40px auto;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59,130,246,.08), transparent 70%);
  pointer-events: none;
}

/* Menu stable 4+3, but more 'product navigation' feel */
body.ravid-premium-theme #section-admin-dashboard .admin-tabs {
  background:
    linear-gradient(180deg, rgba(255,255,255,.80), rgba(248,250,252,.64)),
    radial-gradient(circle at 15% 0%, rgba(37,99,235,.09), transparent 30%),
    radial-gradient(circle at 85% 0%, rgba(14,165,233,.08), transparent 30%) !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn {
  position: relative !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.26), transparent 34%, rgba(255,255,255,.10));
  opacity: .86;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn > * {
  position: relative;
  z-index: 1;
}

/* Workspace: make current section feel like production page */
body.ravid-premium-theme #section-admin-dashboard .admin-panel {
  border-radius: 32px !important;
  box-shadow:
    0 30px 74px rgba(15,23,42,.085),
    inset 0 1px 0 rgba(255,255,255,.82) !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-panel .eyebrow,
body.ravid-premium-theme #section-admin-dashboard .admin-panel .soft-eyebrow {
  font-weight: 900 !important;
  letter-spacing: -.01em !important;
}

body.ravid-premium-theme .admin-filter-card {
  box-shadow:
    0 16px 34px rgba(15,23,42,.05),
    inset 0 1px 0 rgba(255,255,255,.78) !important;
}

/* Table readability */
body.ravid-premium-theme .table-wrapper {
  overflow: hidden !important;
}

body.ravid-premium-theme .table tbody tr {
  transition: background .16s ease, box-shadow .16s ease !important;
}

body.ravid-premium-theme .table tbody tr:hover {
  box-shadow: inset 4px 0 0 rgba(37,99,235,.38) !important;
}

/* Login: minimal safe polish */
body.ravid-premium-theme .auth-info-panel,
body.ravid-premium-theme .auth-form-panel {
  box-shadow:
    0 28px 74px rgba(15,23,42,.09),
    inset 0 1px 0 rgba(255,255,255,.75) !important;
}

body.ravid-premium-theme .role-option {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82) !important;
}

/* Small viewport safety */
@media (max-width: 1260px) {
  body.ravid-premium-theme .landing-page .hero-grid {
    min-height: auto !important;
  }
}

@media (max-width: 760px) {
  body.ravid-premium-theme .landing-page::before {
    inset: 10px !important;
    border-radius: 22px !important;
  }
}


/* ==========================================================
   RAVID SAFE PREMIUM V12 - ICON GUARANTEE & FLAGSHIP BUTTON DEPTH
   Continue from V11 healthy baseline.
   Goals:
   1) fix admin menu icons that appear empty
   2) keep stable 4+3 menu layout
   3) raise premium level with better surface, glow, and micro-depth
   Frontend-only, CSS-only.
   ========================================================== */

/* --- Menu container: keep healthy layout, add calmer flagship depth --- */
body.ravid-premium-theme #section-admin-dashboard .admin-tabs {
  border-color: rgba(191,219,254,.72) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.84),
    0 22px 54px rgba(15,23,42,.065) !important;
}

/* --- Admin menu cards: premium depth without changing layout logic --- */
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn {
  position: relative !important;
  isolation: isolate !important;
  box-shadow:
    0 18px 36px rgba(15,23,42,.075),
    inset 0 1px 0 rgba(255,255,255,.88) !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.56), transparent 72%);
  pointer-events: none;
  opacity: .95;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:hover:not(.active) {
  transform: translateY(-2px) !important;
  box-shadow:
    0 24px 42px rgba(15,23,42,.09),
    inset 0 1px 0 rgba(255,255,255,.9) !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn.active {
  box-shadow:
    0 24px 48px rgba(37,99,235,.25),
    inset 0 1px 0 rgba(255,255,255,.28) !important;
}

/* --- Icon chip: make icon area always visible and more premium --- */
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-icon {
  position: relative !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.96), rgba(255,255,255,.72) 55%, rgba(255,255,255,.54) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 8px 16px rgba(15,23,42,.06) !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-icon::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.34), transparent 55%);
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn.active .admin-tab-icon {
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.24), rgba(255,255,255,.14) 58%, rgba(255,255,255,.08) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.26),
    0 12px 22px rgba(15,23,42,.14) !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-icon i {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  color: currentColor !important;
}

/* --- Icon guarantee: custom CSS fallback for icons that appeared empty --- */
body.ravid-premium-theme .gg-play-button-o,
body.ravid-premium-theme .gg-play-button-o::before,
body.ravid-premium-theme .gg-user-list,
body.ravid-premium-theme .gg-user-list::before,
body.ravid-premium-theme .gg-user-list::after {
  box-sizing: border-box;
}

/* Video icon fallback */
body.ravid-premium-theme .gg-play-button-o {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

body.ravid-premium-theme .gg-play-button-o::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

/* User list icon fallback */
body.ravid-premium-theme .gg-user-list {
  position: relative;
  display: block;
  width: 20px;
  height: 18px;
  background:
    linear-gradient(currentColor, currentColor) right 0 top 2px / 8px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right 0 top 8px / 8px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right 0 top 14px / 8px 2px no-repeat;
}

body.ravid-premium-theme .gg-user-list::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 6px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

body.ravid-premium-theme .gg-user-list::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 8px;
  height: 5px;
  border: 2px solid currentColor;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom: none;
}

/* --- Dashboard work area: subtle polish, no layout changes --- */
body.ravid-premium-theme #section-admin-dashboard .admin-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.88)),
    radial-gradient(circle at 0% 0%, rgba(59,130,246,.05), transparent 24%) !important;
  border-color: rgba(191,219,254,.68) !important;
}

body.ravid-premium-theme .table-wrapper {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82) !important;
}

/* --- Landing: elevate premium feel without changing the healthy composition --- */
body.ravid-premium-theme .hero-copy h1 {
  letter-spacing: -.045em !important;
}

body.ravid-premium-theme .hero-logo-panel {
  box-shadow:
    0 40px 84px rgba(37,99,235,.28),
    inset 0 1px 0 rgba(255,255,255,.30) !important;
}

body.ravid-premium-theme .feature-card {
  box-shadow:
    0 24px 48px rgba(15,23,42,.075),
    inset 0 1px 0 rgba(255,255,255,.82) !important;
}

body.ravid-premium-theme .feature-card:hover {
  transform: translateY(-3px) !important;
  box-shadow:
    0 28px 54px rgba(15,23,42,.09),
    inset 0 1px 0 rgba(255,255,255,.86) !important;
}


/* ==========================================================
   RAVID SAFE FLAGSHIP V13 - WORKSPACE & SURFACE SYSTEM
   Continue from healthy V12. CSS-only safe refinement.
   No backend change. No frontend/app.js change.
   ========================================================== */

:root {
  --ravid-surface-0: rgba(255,255,255,.72);
  --ravid-surface-1: rgba(255,255,255,.88);
  --ravid-surface-2: rgba(255,255,255,.96);
  --ravid-border-soft: rgba(191,219,254,.62);
  --ravid-border-strong: rgba(147,197,253,.72);
  --ravid-shadow-1: 0 14px 30px rgba(15,23,42,.055);
  --ravid-shadow-2: 0 24px 56px rgba(15,23,42,.075);
  --ravid-shadow-3: 0 34px 82px rgba(15,23,42,.10);
}

/* App canvas: add subtle premium structure without shifting layout */
body.ravid-premium-theme #card-root.card {
  border-color: rgba(191,219,254,.46) !important;
}

body.ravid-premium-theme #card-root.card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 28px;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(37,99,235,.025), transparent 24%, transparent 76%, rgba(14,165,233,.025)),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.45), transparent 18%);
  border: 1px solid rgba(255,255,255,.34);
  z-index: -1;
}

/* Header hierarchy */
body.ravid-premium-theme .section-title,
body.ravid-premium-theme .panel-title,
body.ravid-premium-theme #section-admin-dashboard .admin-panel h2,
body.ravid-premium-theme #section-admin-dashboard .admin-panel h3 {
  letter-spacing: -.055em !important;
}

body.ravid-premium-theme .section-subtitle,
body.ravid-premium-theme .panel-description,
body.ravid-premium-theme #section-admin-dashboard .admin-panel p {
  line-height: 1.78 !important;
}

/* Landing continuation: make below hero feel more product-like without HTML changes */
body.ravid-premium-theme .feature-section {
  padding-top: 4px !important;
}

body.ravid-premium-theme .feature-card {
  min-height: 196px !important;
  border-radius: 28px !important;
  border-color: rgba(191,219,254,.70) !important;
}

body.ravid-premium-theme .feature-icon {
  width: 54px !important;
  height: 54px !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.96), rgba(255,255,255,.68)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.88),
    0 12px 22px rgba(15,23,42,.06) !important;
}

body.ravid-premium-theme .feature-card h3 {
  margin-top: 16px !important;
  margin-bottom: 8px !important;
  font-size: 1.18rem !important;
}

body.ravid-premium-theme .feature-card p {
  color: #5b6c84 !important;
  line-height: 1.76 !important;
}

/* Dashboard hero: clearer split between intro and metrics */
body.ravid-premium-theme .admin-hero-copy,
body.ravid-premium-theme .admin-hero-metrics {
  border-color: rgba(191,219,254,.66) !important;
}

body.ravid-premium-theme .admin-hero-copy {
  background:
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(239,246,255,.82)),
    radial-gradient(circle at 0% 0%, rgba(59,130,246,.10), transparent 28%) !important;
}

body.ravid-premium-theme .admin-metric-card {
  border-radius: 23px !important;
  border-color: rgba(226,232,240,.90) !important;
}

body.ravid-premium-theme .admin-metric-card span {
  display: inline-flex !important;
  width: fit-content !important;
  margin-bottom: 4px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  background: rgba(239,246,255,.86) !important;
  border: 1px solid rgba(191,219,254,.72) !important;
  color: #2563eb !important;
  font-size: .78rem !important;
  line-height: 1 !important;
}

/* Menu: keep 4+3 stable, refine premium text/icon alignment only */
body.ravid-premium-theme #section-admin-dashboard .admin-tabs {
  padding: 14px !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn {
  min-height: 84px !important;
  padding: 16px 18px !important;
  border-radius: 23px !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn span:last-child {
  letter-spacing: -.018em !important;
}

/* Workspace page title block */
body.ravid-premium-theme #section-admin-dashboard .admin-panel {
  position: relative !important;
  overflow: hidden !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(14,165,233,.08), transparent 70%);
  pointer-events: none;
}

body.ravid-premium-theme #section-admin-dashboard .admin-panel > * {
  position: relative;
  z-index: 1;
}

body.ravid-premium-theme #section-admin-dashboard .admin-panel .eyebrow,
body.ravid-premium-theme #section-admin-dashboard .admin-panel .soft-eyebrow,
body.ravid-premium-theme #section-admin-dashboard .admin-panel .status-pill {
  min-height: 34px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  background: rgba(239,246,255,.94) !important;
  border: 1px solid rgba(147,197,253,.68) !important;
  color: #1d4ed8 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.76) !important;
}

/* Filter/action bar: production workspace feel */
body.ravid-premium-theme .admin-filter-card,
body.ravid-premium-theme .learning-toolbar,
body.ravid-premium-theme .summary-toolbar,
body.ravid-premium-theme .admin-summary-toolbar,
body.ravid-premium-theme .user-toolbar {
  border-radius: 26px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.88)),
    radial-gradient(circle at 0% 0%, rgba(59,130,246,.045), transparent 26%) !important;
  border: 1px solid rgba(191,219,254,.66) !important;
  box-shadow:
    var(--ravid-shadow-1),
    inset 0 1px 0 rgba(255,255,255,.86) !important;
}

body.ravid-premium-theme .admin-filter-card label {
  color: #334155 !important;
  font-size: .93rem !important;
}

body.ravid-premium-theme .admin-filter-card select,
body.ravid-premium-theme .admin-filter-card input {
  min-height: 46px !important;
}

/* Form cards and input fields */
body.ravid-premium-theme .form,
body.ravid-premium-theme .question-form-card,
body.ravid-premium-theme .video-form-card,
body.ravid-premium-theme .user-form-card,
body.ravid-premium-theme .master-card,
body.ravid-premium-theme .admin-summary-editor-card,
body.ravid-premium-theme .summary-reader-card {
  border-color: rgba(191,219,254,.62) !important;
}

body.ravid-premium-theme input[type="text"],
body.ravid-premium-theme input[type="password"],
body.ravid-premium-theme input[type="search"],
body.ravid-premium-theme input[type="number"],
body.ravid-premium-theme input[type="url"],
body.ravid-premium-theme select,
body.ravid-premium-theme textarea {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94)) !important;
  border: 1px solid rgba(191,219,254,.72) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.86),
    0 8px 18px rgba(15,23,42,.025) !important;
}

body.ravid-premium-theme input:hover,
body.ravid-premium-theme select:hover,
body.ravid-premium-theme textarea:hover {
  border-color: rgba(96,165,250,.82) !important;
}

body.ravid-premium-theme input:focus,
body.ravid-premium-theme select:focus,
body.ravid-premium-theme textarea:focus {
  border-color: rgba(37,99,235,.88) !important;
  box-shadow:
    0 0 0 4px rgba(37,99,235,.14),
    inset 0 1px 0 rgba(255,255,255,.90) !important;
}

/* Buttons: more flagship, less flat */
body.ravid-premium-theme .btn {
  border-radius: 16px !important;
}

body.ravid-premium-theme .btn-primary {
  background:
    radial-gradient(circle at 80% 18%, rgba(255,255,255,.24), transparent 28%),
    linear-gradient(135deg, #1d4ed8 0%, #2563eb 48%, #0ea5e9 100%) !important;
  border: 1px solid rgba(147,197,253,.40) !important;
}

body.ravid-premium-theme .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    0 22px 40px rgba(37,99,235,.28),
    inset 0 1px 0 rgba(255,255,255,.28) !important;
}

body.ravid-premium-theme .btn-outlined,
body.ravid-premium-theme .btn-text {
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.88)) !important;
  border: 1px solid rgba(191,219,254,.76) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.84) !important;
}

/* Tables: clearer data surface */
body.ravid-premium-theme .table-wrapper {
  border-radius: 24px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.92)) !important;
  border-color: rgba(191,219,254,.72) !important;
  box-shadow:
    0 20px 46px rgba(15,23,42,.055),
    inset 0 1px 0 rgba(255,255,255,.88) !important;
}

body.ravid-premium-theme .table thead th {
  color: #334155 !important;
  background:
    linear-gradient(180deg, rgba(239,246,255,.92), rgba(248,250,252,.94)) !important;
}

body.ravid-premium-theme .table tbody td {
  color: #334155 !important;
}

body.ravid-premium-theme .table tbody tr:nth-child(even) {
  background: rgba(248,250,252,.46) !important;
}

body.ravid-premium-theme .table tbody tr:hover {
  background: rgba(239,246,255,.78) !important;
}

/* Empty/message state */
body.ravid-premium-theme .message:not(:empty),
body.ravid-premium-theme .empty-learning-state,
body.ravid-premium-theme .video-empty-state {
  border-radius: 22px !important;
  border: 1px solid rgba(191,219,254,.70) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.90)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82) !important;
}

/* Login premium refinement, still safe */
body.ravid-premium-theme .auth-info-panel,
body.ravid-premium-theme .auth-form-panel {
  border-color: rgba(191,219,254,.66) !important;
}

body.ravid-premium-theme .role-option {
  border-color: rgba(191,219,254,.62) !important;
}

body.ravid-premium-theme .role-option:has(input:checked) {
  box-shadow:
    0 18px 34px rgba(37,99,235,.12),
    inset 0 1px 0 rgba(255,255,255,.82) !important;
}

/* Mobile safe */
@media (max-width: 760px) {
  body.ravid-premium-theme #card-root.card::after {
    inset: 8px;
    border-radius: 20px;
  }

  body.ravid-premium-theme .feature-card {
    min-height: auto !important;
  }
}


/* ==========================================================
   RAVID SAFE FLAGSHIP V14 - LANDING ECOSYSTEM & CTA PASS
   Continue from healthy V13. Adds landing ecosystem/CTA styling.
   Dashboard/menu/login remain preserved.
   ========================================================== */

/* Make landing scroll feel like a complete product page */
body.ravid-premium-theme .ravid-ecosystem-section,
body.ravid-premium-theme .ravid-cta-section {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  border: 1px solid rgba(191,219,254,.66);
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.84)),
    radial-gradient(circle at 0% 0%, rgba(37,99,235,.07), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(14,165,233,.06), transparent 28%);
  box-shadow:
    0 26px 68px rgba(15,23,42,.075),
    inset 0 1px 0 rgba(255,255,255,.82);
}

body.ravid-premium-theme .ravid-ecosystem-section {
  border-radius: 32px;
  padding: clamp(24px, 2.2vw, 34px);
}

body.ravid-premium-theme .ecosystem-heading {
  max-width: 820px;
  margin-bottom: 20px;
}

body.ravid-premium-theme .ecosystem-heading h2,
body.ravid-premium-theme .ravid-cta-section h2 {
  margin: 12px 0 10px;
  color: #0f172a;
  font-size: clamp(2rem, 2.8vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.065em;
}

body.ravid-premium-theme .ecosystem-heading p,
body.ravid-premium-theme .ravid-cta-section p {
  color: #64748b;
  line-height: 1.78;
  font-size: 1rem;
}

body.ravid-premium-theme .ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.ravid-premium-theme .ecosystem-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(191,219,254,.64);
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(239,246,255,.84));
  box-shadow:
    0 18px 38px rgba(15,23,42,.055),
    inset 0 1px 0 rgba(255,255,255,.82);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.ravid-premium-theme .ecosystem-card:nth-child(2) {
  background: linear-gradient(145deg, rgba(248,250,255,.96), rgba(238,242,255,.86));
}

body.ravid-premium-theme .ecosystem-card:nth-child(3) {
  background: linear-gradient(145deg, rgba(240,253,244,.96), rgba(220,252,231,.84));
}

body.ravid-premium-theme .ecosystem-card:hover {
  transform: translateY(-3px);
  border-color: rgba(96,165,250,.78);
  box-shadow:
    0 26px 54px rgba(15,23,42,.085),
    inset 0 1px 0 rgba(255,255,255,.86);
}

body.ravid-premium-theme .ecosystem-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -54px;
  top: -54px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.64), transparent 72%);
  pointer-events: none;
}

body.ravid-premium-theme .ecosystem-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #1d4ed8;
  font-weight: 900;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(191,219,254,.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.88),
    0 12px 24px rgba(15,23,42,.055);
}

body.ravid-premium-theme .ecosystem-card h3 {
  margin: 18px 0 8px;
  color: #0f172a;
  font-size: 1.2rem;
  line-height: 1.16;
  letter-spacing: -.04em;
}

body.ravid-premium-theme .ecosystem-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.72;
}

/* CTA band */
body.ravid-premium-theme .ravid-cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  border-radius: 32px;
  padding: clamp(24px, 2.4vw, 36px);
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.20), transparent 28%),
    linear-gradient(135deg, rgba(29,78,216,.96), rgba(37,99,235,.92) 54%, rgba(14,165,233,.92));
  color: #ffffff;
  border-color: rgba(147,197,253,.48);
  box-shadow:
    0 30px 74px rgba(37,99,235,.22),
    inset 0 1px 0 rgba(255,255,255,.24);
}

body.ravid-premium-theme .ravid-cta-section .eyebrow,
body.ravid-premium-theme .ravid-cta-section h2,
body.ravid-premium-theme .ravid-cta-section p {
  color: #ffffff;
}

body.ravid-premium-theme .ravid-cta-section p {
  max-width: 760px;
  opacity: .9;
}

body.ravid-premium-theme .ravid-cta-section .btn-primary {
  min-width: 190px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(239,246,255,.92)) !important;
  color: #1d4ed8 !important;
  border-color: rgba(255,255,255,.48) !important;
  box-shadow:
    0 18px 40px rgba(15,23,42,.18),
    inset 0 1px 0 rgba(255,255,255,.8) !important;
}

/* Dashboard/menu safety: keep V13 unchanged, only make active chip cleaner */
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn.active {
  outline: 1px solid rgba(255,255,255,.42) !important;
  outline-offset: -5px !important;
}

/* Landing first fold: slightly stronger lower transition */
body.ravid-premium-theme .feature-section {
  margin-bottom: 0 !important;
}

/* Mobile */
@media (max-width: 920px) {
  body.ravid-premium-theme .ecosystem-grid,
  body.ravid-premium-theme .ravid-cta-section {
    grid-template-columns: 1fr;
  }

  body.ravid-premium-theme .ravid-cta-section .btn-primary {
    width: 100%;
  }
}

@media (max-width: 640px) {
  body.ravid-premium-theme .ravid-ecosystem-section,
  body.ravid-premium-theme .ravid-cta-section {
    border-radius: 24px;
    padding: 20px;
  }
}



/* ==========================================================
   RAVID SAFE FLAGSHIP V15 - SIDE BLUE BLOCK PASS
   - fills left/right empty space with intentional blue theme blocks
   - preserves healthy hero/login/dashboard/menu
   ========================================================== */

body.ravid-side-blue-pass,
body.ravid-premium-theme.ravid-side-blue-pass {
  background:
    linear-gradient(90deg,
      rgba(191,219,254,.96) 0%,
      rgba(219,234,254,.93) 12%,
      rgba(241,245,249,.98) 24%,
      rgba(248,250,252,.99) 50%,
      rgba(241,245,249,.98) 76%,
      rgba(224,242,254,.94) 88%,
      rgba(186,230,253,.98) 100%) !important;
  min-height: 100vh;
}

body.ravid-side-blue-pass::before,
body.ravid-side-blue-pass::after {
  content: "";
  position: fixed;
  top: 92px;
  bottom: 16px;
  width: clamp(84px, 10vw, 170px);
  z-index: 0;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 0 0 0 1px rgba(191,219,254,.54);
  opacity: .95;
}

body.ravid-side-blue-pass::before {
  left: 0;
  background:
    linear-gradient(180deg, rgba(219,234,254,.95), rgba(191,219,254,.89) 50%, rgba(219,234,254,.95)),
    radial-gradient(circle at 20% 16%, rgba(255,255,255,.34), transparent 34%),
    radial-gradient(circle at 75% 72%, rgba(147,197,253,.20), transparent 28%);
}

body.ravid-side-blue-pass::after {
  right: 0;
  background:
    linear-gradient(180deg, rgba(224,242,254,.95), rgba(186,230,253,.90) 50%, rgba(224,242,254,.95)),
    radial-gradient(circle at 78% 20%, rgba(255,255,255,.30), transparent 36%),
    radial-gradient(circle at 20% 78%, rgba(56,189,248,.15), transparent 28%);
}

body.ravid-side-blue-pass > * {
  position: relative;
  z-index: 1;
}

/* stronger containment for main white panel sections */
body.ravid-side-blue-pass .feature-section,
body.ravid-side-blue-pass .ravid-ecosystem-section,
body.ravid-side-blue-pass .ravid-cta-section,
body.ravid-side-blue-pass #section-login,
body.ravid-side-blue-pass #section-admin-dashboard,
body.ravid-side-blue-pass #section-teacher-dashboard,
body.ravid-side-blue-pass #section-student-dashboard {
  position: relative;
  z-index: 1;
}

/* subtle inner tint so center panel doesn't feel detached from side blocks */
body.ravid-side-blue-pass .feature-section::before,
body.ravid-side-blue-pass #section-login::before,
body.ravid-side-blue-pass #section-admin-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(219,234,254,.20) 0%,
      rgba(255,255,255,0) 16%,
      rgba(255,255,255,0) 84%,
      rgba(224,242,254,.18) 100%);
  z-index: 0;
}

body.ravid-side-blue-pass .feature-section > *,
body.ravid-side-blue-pass #section-login > *,
body.ravid-side-blue-pass #section-admin-dashboard > * {
  position: relative;
  z-index: 1;
}

/* keep premium frame visible */
body.ravid-side-blue-pass .feature-section {
  box-shadow:
    0 28px 70px rgba(15,23,42,.055),
    inset 0 1px 0 rgba(255,255,255,.82),
    0 0 0 1px rgba(191,219,254,.34);
}

body.ravid-side-blue-pass header,
body.ravid-side-blue-pass .topbar,
body.ravid-side-blue-pass .navbar,
body.ravid-side-blue-pass .site-header {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* nicer section framing where quick menu/dashboard cards live */
body.ravid-side-blue-pass #section-admin-dashboard .admin-tabs,
body.ravid-side-blue-pass #section-admin-dashboard .dashboard-menu-panel,
body.ravid-side-blue-pass #section-admin-dashboard .quick-menu-panel {
  box-shadow:
    0 14px 34px rgba(15,23,42,.045),
    inset 0 1px 0 rgba(255,255,255,.82);
}

@media (max-width: 1200px) {
  body.ravid-side-blue-pass::before,
  body.ravid-side-blue-pass::after {
    width: clamp(56px, 7vw, 112px);
  }
}

@media (max-width: 900px) {
  body.ravid-side-blue-pass::before,
  body.ravid-side-blue-pass::after {
    display: none;
  }

  body.ravid-side-blue-pass,
  body.ravid-premium-theme.ravid-side-blue-pass {
    background:
      linear-gradient(180deg,
        rgba(239,246,255,.98) 0%,
        rgba(248,250,252,.99) 30%,
        rgba(239,246,255,.98) 100%) !important;
  }
}


/* ==========================================================
   RAVID SAFE FLAGSHIP V16 - PREMIUM DENSITY & FINISHING PASS
   Continue from V15. No backend/app.js changes.
   Goals:
   - premium density and contrast
   - stronger landing rhythm
   - dashboard workspace refinement
   - final public-page footer strip
   ========================================================== */

/* Stronger but still calm blue side blocks */
body.ravid-side-blue-pass::before {
  background:
    linear-gradient(180deg, rgba(219,234,254,.98), rgba(191,219,254,.93) 48%, rgba(219,234,254,.96)),
    radial-gradient(circle at 18% 14%, rgba(255,255,255,.40), transparent 34%),
    radial-gradient(circle at 86% 72%, rgba(96,165,250,.22), transparent 30%) !important;
}

body.ravid-side-blue-pass::after {
  background:
    linear-gradient(180deg, rgba(224,242,254,.98), rgba(186,230,253,.94) 48%, rgba(224,242,254,.98)),
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.36), transparent 36%),
    radial-gradient(circle at 18% 78%, rgba(14,165,233,.18), transparent 30%) !important;
}

/* Make central content feel more anchored */
body.ravid-premium-theme #card-root.card {
  box-shadow:
    0 42px 110px rgba(15,23,42,.10),
    inset 0 1px 0 rgba(255,255,255,.86),
    0 0 0 1px rgba(191,219,254,.38) !important;
}

/* Landing: premium density, not too airy */
body.ravid-premium-theme .landing-page {
  padding-top: clamp(18px, 1.7vw, 26px) !important;
  padding-bottom: clamp(18px, 1.7vw, 26px) !important;
}

body.ravid-premium-theme .landing-page .hero-grid {
  min-height: clamp(480px, 58vh, 610px) !important;
  gap: clamp(24px, 2.4vw, 36px) !important;
}

body.ravid-premium-theme .hero-copy h1 {
  font-size: clamp(3.05rem, 4.7vw, 5rem) !important;
  line-height: .94 !important;
  letter-spacing: -.055em !important;
  margin-bottom: 15px !important;
}

body.ravid-premium-theme .hero-subtitle {
  max-width: 61ch !important;
  color: #52637b !important;
  line-height: 1.72 !important;
}

body.ravid-premium-theme .hero-highlights {
  margin-top: 19px !important;
  margin-bottom: 12px !important;
}

body.ravid-premium-theme .hero-mini-stat {
  min-height: 106px !important;
  padding: 15px !important;
  border-color: rgba(191,219,254,.72) !important;
}

body.ravid-premium-theme .hero-mini-stat strong {
  color: #0f172a !important;
}

body.ravid-premium-theme .hero-mini-stat span {
  color: #64748b !important;
}

body.ravid-premium-theme .hero-logo-panel {
  width: min(100%, 430px) !important;
  min-height: 470px !important;
  max-height: 535px !important;
  border-radius: 32px !important;
}

body.ravid-premium-theme .hero-logo-stage {
  min-height: 270px !important;
}

body.ravid-premium-theme .hero-logo-figure {
  width: min(100%, 300px) !important;
}

body.ravid-premium-theme .hero-logo-caption {
  margin-top: 12px !important;
}

/* Feature, ecosystem, CTA: better rhythm */
body.ravid-premium-theme .feature-section {
  margin-top: 18px !important;
  gap: 15px !important;
}

body.ravid-premium-theme .feature-card,
body.ravid-premium-theme .ecosystem-card {
  transform: translateZ(0);
}

body.ravid-premium-theme .feature-card:hover,
body.ravid-premium-theme .ecosystem-card:hover {
  transform: translateY(-4px) !important;
}

body.ravid-premium-theme .ravid-ecosystem-section {
  margin-top: 18px !important;
}

body.ravid-premium-theme .ecosystem-heading h2,
body.ravid-premium-theme .ravid-cta-section h2 {
  letter-spacing: -.06em !important;
}

body.ravid-premium-theme .ecosystem-card {
  min-height: 188px !important;
  padding: 21px !important;
}

body.ravid-premium-theme .ravid-cta-section {
  margin-top: 18px !important;
  padding: clamp(22px, 2vw, 32px) !important;
}

/* New footer/closing strip */
body.ravid-premium-theme .ravid-footer-section {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 28px;
  border: 1px solid rgba(191,219,254,.62);
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.86)),
    radial-gradient(circle at 0% 0%, rgba(37,99,235,.06), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(14,165,233,.05), transparent 26%);
  box-shadow:
    0 18px 44px rgba(15,23,42,.055),
    inset 0 1px 0 rgba(255,255,255,.82);
}

body.ravid-premium-theme .ravid-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.ravid-premium-theme .brand-mark.mini {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 12px 24px rgba(37,99,235,.20);
}

body.ravid-premium-theme .ravid-footer-brand strong {
  display: block;
  color: #0f172a;
  letter-spacing: -.035em;
}

body.ravid-premium-theme .ravid-footer-brand p {
  margin: 2px 0 0;
  color: #64748b;
  font-size: .92rem;
}

body.ravid-premium-theme .ravid-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

body.ravid-premium-theme .ravid-footer-links span {
  padding: 8px 11px;
  border-radius: 999px;
  color: #334155;
  font-size: .86rem;
  font-weight: 800;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(226,232,240,.88);
}

/* Dashboard: enterprise surface polish, preserve menu grid */
body.ravid-premium-theme #section-admin-dashboard .section-title {
  letter-spacing: -.06em !important;
}

body.ravid-premium-theme .admin-hero-copy,
body.ravid-premium-theme .admin-hero-metrics,
body.ravid-premium-theme #section-admin-dashboard .admin-panel {
  border-color: rgba(191,219,254,.72) !important;
}

body.ravid-premium-theme .admin-hero-copy {
  box-shadow:
    0 24px 56px rgba(15,23,42,.065),
    inset 0 1px 0 rgba(255,255,255,.86) !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs {
  border-color: rgba(147,197,253,.54) !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:not(.active):hover {
  filter: saturate(1.06) contrast(1.01);
}

body.ravid-premium-theme #section-admin-dashboard .admin-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.91)),
    radial-gradient(circle at 0% 0%, rgba(59,130,246,.06), transparent 25%),
    radial-gradient(circle at 100% 0%, rgba(14,165,233,.045), transparent 25%) !important;
}

/* Workspace table/form polish */
body.ravid-premium-theme .admin-filter-card {
  border-radius: 24px !important;
}

body.ravid-premium-theme .table-wrapper {
  border-radius: 23px !important;
}

body.ravid-premium-theme .table thead th {
  font-size: .77rem !important;
  color: #334155 !important;
}

body.ravid-premium-theme .table tbody td {
  font-size: .93rem !important;
}

body.ravid-premium-theme .btn-primary {
  letter-spacing: -.01em !important;
}

/* Responsive */
@media (max-width: 920px) {
  body.ravid-premium-theme .ravid-footer-section {
    align-items: flex-start;
    flex-direction: column;
  }

  body.ravid-premium-theme .ravid-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  body.ravid-premium-theme .hero-logo-panel {
    width: 100% !important;
  }
}


/* ==========================================================
   RAVID RECOVERY V19 - NORMALIZE HEALTHY HERO LOGO
   Based on safe V16 baseline.
   Purpose:
   - restore right hero/logo panel to healthy proportional look
   - remove V17/V18 visual regression behavior
   - preserve side blue theme, landing, dashboard, menu, login flow
   ========================================================== */

/* Hero layout: keep balanced, not overly experimental */
body.ravid-premium-theme .landing-page .hero-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(380px, .94fr) !important;
  align-items: center !important;
  gap: clamp(24px, 2.6vw, 38px) !important;
}

/* Right-side visual wrapper */
body.ravid-premium-theme .hero-visual {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
}

/* Restore healthy blue card proportion */
body.ravid-premium-theme .hero-logo-panel {
  display: grid !important;
  grid-template-rows: auto auto auto !important;
  gap: 14px !important;
  width: min(100%, 430px) !important;
  min-height: 470px !important;
  max-height: 535px !important;
  padding: 18px !important;
  border-radius: 32px !important;
  overflow: hidden !important;
  transform: none !important;
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.18), transparent 28%),
    radial-gradient(circle at 92% 76%, rgba(14,165,233,.22), transparent 28%),
    linear-gradient(180deg, #2563eb 0%, #2f7df1 56%, #11a8e9 100%) !important;
  box-shadow:
    0 34px 76px rgba(37,99,235,.26),
    inset 0 1px 0 rgba(255,255,255,.30) !important;
}

/* Stop problematic shimmer/extra pseudo overlay from later versions */
body.ravid-premium-theme .hero-logo-panel::after {
  display: none !important;
  content: none !important;
}

/* Keep dots and status at top like healthy version */
body.ravid-premium-theme .hero-logo-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.ravid-premium-theme .hero-window-dots {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
}

body.ravid-premium-theme .hero-panel-status {
  margin: 0 !important;
  padding: 8px 13px !important;
  border-radius: 999px !important;
}

/* Healthy logo stage: centered, fully visible, not sunk downward */
body.ravid-premium-theme .hero-logo-stage {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  min-height: 270px !important;
  height: 270px !important;
  max-height: 270px !important;
  margin: 0 !important;
  padding: 14px !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.09)),
    radial-gradient(circle at center, rgba(255,255,255,.14), transparent 62%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(15,23,42,.06) !important;
  transform: none !important;
}

/* Logo image healthy size: full and proportional */
body.ravid-premium-theme .hero-logo-figure {
  width: min(100%, 300px) !important;
  max-width: 300px !important;
  height: auto !important;
  max-height: 235px !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 auto !important;
  padding: 16px !important;
  border-radius: 30px !important;
  transform: none !important;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.10)) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  box-shadow:
    0 30px 60px rgba(15,23,42,.20),
    inset 0 1px 0 rgba(255,255,255,.16) !important;
}

body.ravid-premium-theme .hero-logo-image {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 205px !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  filter:
    drop-shadow(0 20px 28px rgba(15,23,42,.22))
    drop-shadow(0 2px 0 rgba(255,255,255,.10)) !important;
}

/* Caption healthy placement */
body.ravid-premium-theme .hero-logo-caption {
  margin: 0 !important;
  padding: 15px 17px !important;
  border-radius: 21px !important;
  transform: none !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.10)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16) !important;
}

body.ravid-premium-theme .hero-logo-caption b {
  display: block !important;
  margin-bottom: 6px !important;
  line-height: 1.25 !important;
}

body.ravid-premium-theme .hero-logo-caption span {
  display: block !important;
  line-height: 1.55 !important;
}

/* Keep dashboard and menu safe from hero rollback */
body.ravid-premium-theme #section-admin-dashboard .admin-tabs {
  display: grid !important;
}

/* Responsive safety */
@media (max-width: 1260px) {
  body.ravid-premium-theme .landing-page .hero-grid {
    grid-template-columns: 1fr !important;
  }

  body.ravid-premium-theme .hero-logo-panel {
    width: min(100%, 460px) !important;
    min-height: auto !important;
    max-height: none !important;
    margin-inline: auto !important;
  }
}

@media (max-width: 640px) {
  body.ravid-premium-theme .hero-logo-panel {
    padding: 14px !important;
    border-radius: 26px !important;
  }

  body.ravid-premium-theme .hero-logo-stage {
    height: 235px !important;
    min-height: 235px !important;
    max-height: 235px !important;
  }

  body.ravid-premium-theme .hero-logo-figure {
    max-width: 255px !important;
    max-height: 200px !important;
  }

  body.ravid-premium-theme .hero-logo-image {
    max-height: 180px !important;
  }
}


/* ==========================================================
   RAVID SAFE FLAGSHIP V20 - WORKSPACE & CONTENT POLISH
   Continue from V19 normalized hero.
   LOCKED: hero logo area is not touched in this pass.
   Focus: dashboard workspace, tables, forms, auth, footer, states.
   ========================================================== */

/* Dashboard workspace: clearer production hierarchy */
body.ravid-premium-theme #section-admin-dashboard .admin-panel {
  border-radius: 32px !important;
  border-color: rgba(147,197,253,.58) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.965), rgba(248,250,252,.92)),
    radial-gradient(circle at 0% 0%, rgba(37,99,235,.055), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(14,165,233,.04), transparent 25%) !important;
  box-shadow:
    0 32px 78px rgba(15,23,42,.085),
    inset 0 1px 0 rgba(255,255,255,.86) !important;
}

/* Section headers inside panels */
body.ravid-premium-theme #section-admin-dashboard .admin-panel h2,
body.ravid-premium-theme #section-admin-dashboard .admin-panel h3,
body.ravid-premium-theme .panel-title,
body.ravid-premium-theme .section-title {
  letter-spacing: -.058em !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-panel p,
body.ravid-premium-theme .panel-description,
body.ravid-premium-theme .section-subtitle {
  color: #5f7088 !important;
  line-height: 1.76 !important;
}

/* Premium badge/pill rhythm */
body.ravid-premium-theme .eyebrow,
body.ravid-premium-theme .soft-eyebrow,
body.ravid-premium-theme .status-pill,
body.ravid-premium-theme .badge {
  border-radius: 999px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.80),
    0 8px 16px rgba(37,99,235,.055) !important;
}

/* Toolbar/filter cards */
body.ravid-premium-theme .admin-filter-card,
body.ravid-premium-theme .learning-toolbar,
body.ravid-premium-theme .summary-toolbar,
body.ravid-premium-theme .admin-summary-toolbar,
body.ravid-premium-theme .user-toolbar {
  padding: 16px 18px !important;
  border-radius: 26px !important;
  border: 1px solid rgba(191,219,254,.68) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.97), rgba(248,250,252,.90)),
    radial-gradient(circle at 0% 0%, rgba(59,130,246,.045), transparent 26%) !important;
  box-shadow:
    0 18px 42px rgba(15,23,42,.055),
    inset 0 1px 0 rgba(255,255,255,.88) !important;
}

body.ravid-premium-theme .admin-filter-card label,
body.ravid-premium-theme .learning-toolbar label,
body.ravid-premium-theme .summary-toolbar label,
body.ravid-premium-theme .user-toolbar label {
  color: #334155 !important;
  font-weight: 900 !important;
  letter-spacing: -.015em !important;
}

/* Forms: consistent control height and spacing */
body.ravid-premium-theme input[type="text"],
body.ravid-premium-theme input[type="password"],
body.ravid-premium-theme input[type="search"],
body.ravid-premium-theme input[type="number"],
body.ravid-premium-theme input[type="url"],
body.ravid-premium-theme select,
body.ravid-premium-theme textarea {
  min-height: 48px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(191,219,254,.74) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.94)) !important;
  color: #0f172a !important;
}

body.ravid-premium-theme textarea {
  line-height: 1.7 !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

body.ravid-premium-theme input::placeholder,
body.ravid-premium-theme textarea::placeholder {
  color: #94a3b8 !important;
}

/* Buttons: stable premium state */
body.ravid-premium-theme .btn {
  min-height: 46px !important;
  border-radius: 16px !important;
  font-weight: 900 !important;
  letter-spacing: -.01em !important;
}

body.ravid-premium-theme .btn-primary {
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.24), transparent 28%),
    linear-gradient(135deg, #1d4ed8 0%, #2563eb 48%, #0ea5e9 100%) !important;
  box-shadow:
    0 16px 32px rgba(37,99,235,.24),
    inset 0 1px 0 rgba(255,255,255,.26) !important;
}

body.ravid-premium-theme .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    0 22px 42px rgba(37,99,235,.30),
    inset 0 1px 0 rgba(255,255,255,.30) !important;
}

body.ravid-premium-theme .btn-outlined,
body.ravid-premium-theme .btn-text {
  border-color: rgba(191,219,254,.78) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.97), rgba(248,250,252,.90)) !important;
}

/* Tables: production data-surface */
body.ravid-premium-theme .table-wrapper {
  border-radius: 24px !important;
  border: 1px solid rgba(191,219,254,.72) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.94)) !important;
  box-shadow:
    0 20px 48px rgba(15,23,42,.055),
    inset 0 1px 0 rgba(255,255,255,.90) !important;
}

body.ravid-premium-theme .table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

body.ravid-premium-theme .table thead th {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  color: #334155 !important;
  font-size: .77rem !important;
  font-weight: 900 !important;
  letter-spacing: .055em !important;
  background:
    linear-gradient(180deg, rgba(239,246,255,.94), rgba(248,250,252,.96)) !important;
  border-bottom: 1px solid rgba(191,219,254,.72) !important;
}

body.ravid-premium-theme .table tbody td {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  color: #334155 !important;
  border-bottom-color: rgba(226,232,240,.72) !important;
}

body.ravid-premium-theme .table tbody tr:nth-child(even) {
  background: rgba(248,250,252,.44) !important;
}

body.ravid-premium-theme .table tbody tr:hover {
  background: rgba(239,246,255,.78) !important;
  box-shadow: inset 4px 0 0 rgba(37,99,235,.42) !important;
}

/* Form/content cards in all dashboard pages */
body.ravid-premium-theme .master-card,
body.ravid-premium-theme .video-form-card,
body.ravid-premium-theme .admin-summary-list-card,
body.ravid-premium-theme .admin-summary-editor-card,
body.ravid-premium-theme .summary-library-card,
body.ravid-premium-theme .summary-reader-card,
body.ravid-premium-theme .learning-page,
body.ravid-premium-theme .student-hero-card,
body.ravid-premium-theme .premium-etika-shell {
  border-color: rgba(191,219,254,.66) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.965), rgba(248,250,252,.90)) !important;
  box-shadow:
    0 24px 58px rgba(15,23,42,.07),
    inset 0 1px 0 rgba(255,255,255,.86) !important;
}

/* Empty/message states */
body.ravid-premium-theme .message:not(:empty),
body.ravid-premium-theme .empty-learning-state,
body.ravid-premium-theme .video-empty-state {
  color: #334155 !important;
  border-radius: 22px !important;
  border: 1px solid rgba(191,219,254,.72) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.965), rgba(248,250,252,.90)) !important;
  box-shadow:
    0 16px 36px rgba(15,23,42,.045),
    inset 0 1px 0 rgba(255,255,255,.86) !important;
}

/* Login page: premium but stable */
body.ravid-premium-theme .auth-info-panel,
body.ravid-premium-theme .auth-form-panel {
  border-color: rgba(191,219,254,.70) !important;
  box-shadow:
    0 30px 76px rgba(15,23,42,.09),
    inset 0 1px 0 rgba(255,255,255,.82) !important;
}

body.ravid-premium-theme .role-fieldset {
  border-color: rgba(191,219,254,.70) !important;
}

body.ravid-premium-theme .role-option {
  border-color: rgba(191,219,254,.64) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.92)) !important;
}

body.ravid-premium-theme .role-option:has(input:checked) {
  color: #1d4ed8 !important;
  background:
    linear-gradient(180deg, rgba(219,234,254,.94), rgba(239,246,255,.98)) !important;
  border-color: rgba(59,130,246,.62) !important;
}

/* Landing lower sections only; hero logo locked and intentionally untouched */
body.ravid-premium-theme .feature-card,
body.ravid-premium-theme .ecosystem-card,
body.ravid-premium-theme .ravid-footer-section {
  border-color: rgba(191,219,254,.68) !important;
}

body.ravid-premium-theme .ravid-footer-section {
  box-shadow:
    0 20px 48px rgba(15,23,42,.06),
    inset 0 1px 0 rgba(255,255,255,.86) !important;
}

/* Focus visibility */
body.ravid-premium-theme button:focus-visible,
body.ravid-premium-theme .btn:focus-visible,
body.ravid-premium-theme input:focus-visible,
body.ravid-premium-theme select:focus-visible,
body.ravid-premium-theme textarea:focus-visible {
  outline: 3px solid rgba(37,99,235,.18) !important;
  outline-offset: 3px !important;
}

/* Responsive safety */
@media (max-width: 760px) {
  body.ravid-premium-theme .admin-filter-card,
  body.ravid-premium-theme .learning-toolbar,
  body.ravid-premium-theme .summary-toolbar,
  body.ravid-premium-theme .admin-summary-toolbar,
  body.ravid-premium-theme .user-toolbar {
    padding: 14px !important;
  }
}


/* ==========================================================
   RAVID SAFE FLAGSHIP V21 - ROLE PAGES & CONTENT EXPERIENCE
   Continue from V20.
   LOCKED: hero logo area is not touched.
   No backend change. No frontend/app.js change.
   Focus: siswa/guru/admin content surfaces, cards, lists, quiz/video/summary/report polish.
   ========================================================== */

/* Universal content shell refinement for internal app pages */
body.ravid-premium-theme .learning-page,
body.ravid-premium-theme .student-hero-card,
body.ravid-premium-theme .premium-etika-shell,
body.ravid-premium-theme .summary-library-card,
body.ravid-premium-theme .summary-reader-card,
body.ravid-premium-theme .admin-summary-list-card,
body.ravid-premium-theme .admin-summary-editor-card,
body.ravid-premium-theme .master-card,
body.ravid-premium-theme .video-form-card {
  border-radius: 32px !important;
  border: 1px solid rgba(191,219,254,.68) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.965), rgba(248,250,252,.91)),
    radial-gradient(circle at 0% 0%, rgba(37,99,235,.045), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(14,165,233,.035), transparent 26%) !important;
  box-shadow:
    0 28px 70px rgba(15,23,42,.075),
    inset 0 1px 0 rgba(255,255,255,.88) !important;
}

/* Student/guru menu cards */
body.ravid-premium-theme .student-menu-card,
body.ravid-premium-theme .menu-grid .btn-card,
body.ravid-premium-theme .menu-card,
body.ravid-premium-theme .dashboard-card {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 26px !important;
  border: 1px solid rgba(191,219,254,.68) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(239,246,255,.86)) !important;
  box-shadow:
    0 18px 42px rgba(15,23,42,.06),
    inset 0 1px 0 rgba(255,255,255,.86) !important;
}

body.ravid-premium-theme .student-menu-card::after,
body.ravid-premium-theme .menu-grid .btn-card::after,
body.ravid-premium-theme .menu-card::after,
body.ravid-premium-theme .dashboard-card::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -46px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.58), transparent 72%);
  pointer-events: none;
}

body.ravid-premium-theme .student-menu-card:hover,
body.ravid-premium-theme .menu-grid .btn-card:hover,
body.ravid-premium-theme .menu-card:hover,
body.ravid-premium-theme .dashboard-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(96,165,250,.82) !important;
  box-shadow:
    0 28px 58px rgba(15,23,42,.09),
    inset 0 1px 0 rgba(255,255,255,.90) !important;
}

/* Video, summary, and list items */
body.ravid-premium-theme .video-item,
body.ravid-premium-theme .student-summary-item,
body.ravid-premium-theme .admin-summary-item,
body.ravid-premium-theme .report-card,
body.ravid-premium-theme .quiz-card,
body.ravid-premium-theme .question-card {
  border-radius: 24px !important;
  border: 1px solid rgba(191,219,254,.64) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.97), rgba(248,250,252,.92)) !important;
  box-shadow:
    0 16px 36px rgba(15,23,42,.05),
    inset 0 1px 0 rgba(255,255,255,.86) !important;
}

body.ravid-premium-theme .video-item:hover,
body.ravid-premium-theme .student-summary-item:hover,
body.ravid-premium-theme .admin-summary-item:hover,
body.ravid-premium-theme .report-card:hover,
body.ravid-premium-theme .quiz-card:hover,
body.ravid-premium-theme .question-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(96,165,250,.76) !important;
  box-shadow:
    0 22px 46px rgba(15,23,42,.075),
    inset 0 1px 0 rgba(255,255,255,.90) !important;
}

/* Reader/content typography */
body.ravid-premium-theme .summary-reader-card,
body.ravid-premium-theme .summary-content,
body.ravid-premium-theme .reading-content,
body.ravid-premium-theme .material-content {
  color: #334155 !important;
  line-height: 1.82 !important;
}

body.ravid-premium-theme .summary-reader-card h1,
body.ravid-premium-theme .summary-reader-card h2,
body.ravid-premium-theme .summary-reader-card h3,
body.ravid-premium-theme .reading-content h1,
body.ravid-premium-theme .reading-content h2,
body.ravid-premium-theme .reading-content h3,
body.ravid-premium-theme .material-content h1,
body.ravid-premium-theme .material-content h2,
body.ravid-premium-theme .material-content h3 {
  color: #0f172a !important;
  letter-spacing: -.045em !important;
  line-height: 1.16 !important;
}

/* Quiz/game area refinement */
body.ravid-premium-theme .premium-etika-shell {
  overflow: hidden !important;
}

body.ravid-premium-theme .premium-etika-shell::before {
  background: linear-gradient(90deg, rgba(37,99,235,0), rgba(37,99,235,.34), rgba(14,165,233,.26), rgba(37,99,235,0)) !important;
}

body.ravid-premium-theme .premium-etika-game-card,
body.ravid-premium-theme .game-board,
body.ravid-premium-theme .quiz-options,
body.ravid-premium-theme .answer-options {
  border-color: rgba(191,219,254,.68) !important;
}

body.ravid-premium-theme .quiz-options button,
body.ravid-premium-theme .answer-options button,
body.ravid-premium-theme .option-btn {
  border-radius: 18px !important;
  border: 1px solid rgba(191,219,254,.72) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.92)) !important;
  box-shadow:
    0 12px 24px rgba(15,23,42,.04),
    inset 0 1px 0 rgba(255,255,255,.84) !important;
  color: #0f172a !important;
  font-weight: 800 !important;
}

body.ravid-premium-theme .quiz-options button:hover,
body.ravid-premium-theme .answer-options button:hover,
body.ravid-premium-theme .option-btn:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(96,165,250,.82) !important;
  box-shadow:
    0 18px 34px rgba(15,23,42,.065),
    inset 0 1px 0 rgba(255,255,255,.9) !important;
}

/* Report/score/ranking surfaces */
body.ravid-premium-theme .score-card,
body.ravid-premium-theme .rank-card,
body.ravid-premium-theme .report-summary-card,
body.ravid-premium-theme .metric-card {
  border-radius: 24px !important;
  border: 1px solid rgba(191,219,254,.66) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.965), rgba(239,246,255,.86)) !important;
  box-shadow:
    0 18px 40px rgba(15,23,42,.055),
    inset 0 1px 0 rgba(255,255,255,.86) !important;
}

/* Status chips */
body.ravid-premium-theme .status-chip,
body.ravid-premium-theme .role-badge,
body.ravid-premium-theme .pill,
body.ravid-premium-theme .tag {
  border-radius: 999px !important;
  border: 1px solid rgba(191,219,254,.72) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(239,246,255,.90)) !important;
  color: #1d4ed8 !important;
  font-weight: 900 !important;
}

/* Lists and item rows */
body.ravid-premium-theme .list-item,
body.ravid-premium-theme .content-row,
body.ravid-premium-theme .data-row {
  border-radius: 18px !important;
  border-color: rgba(226,232,240,.78) !important;
}

body.ravid-premium-theme .list-item:hover,
body.ravid-premium-theme .content-row:hover,
body.ravid-premium-theme .data-row:hover {
  background: rgba(239,246,255,.68) !important;
}

/* Modal/dialog fallback if any dialog exists */
body.ravid-premium-theme .modal,
body.ravid-premium-theme .dialog,
body.ravid-premium-theme .popup,
body.ravid-premium-theme .toast,
body.ravid-premium-theme .notification {
  border-radius: 24px !important;
  border: 1px solid rgba(191,219,254,.72) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94)) !important;
  box-shadow:
    0 34px 90px rgba(15,23,42,.16),
    inset 0 1px 0 rgba(255,255,255,.9) !important;
}

/* Smoother scroll area for app panels */
body.ravid-premium-theme .admin-panel,
body.ravid-premium-theme .learning-page,
body.ravid-premium-theme .summary-reader-card,
body.ravid-premium-theme .table-wrapper {
  scrollbar-gutter: stable;
}

/* Mobile density */
@media (max-width: 760px) {
  body.ravid-premium-theme .learning-page,
  body.ravid-premium-theme .student-hero-card,
  body.ravid-premium-theme .premium-etika-shell,
  body.ravid-premium-theme .summary-library-card,
  body.ravid-premium-theme .summary-reader-card,
  body.ravid-premium-theme .master-card,
  body.ravid-premium-theme .video-form-card {
    border-radius: 24px !important;
    padding: 18px !important;
  }

  body.ravid-premium-theme .student-menu-card,
  body.ravid-premium-theme .menu-grid .btn-card,
  body.ravid-premium-theme .dashboard-card {
    border-radius: 22px !important;
  }
}


/* ==========================================================
   RAVID SAFE FLAGSHIP V22 - PREMIUM SYSTEM CONSISTENCY PASS
   Continue from V21.
   LOCKED: hero logo area is not touched.
   No backend change. No frontend/app.js change.
   Focus: design token consistency, premium surfaces, states, density.
   ========================================================== */

:root {
  --ravid-v22-blue-900: #1e3a8a;
  --ravid-v22-blue-700: #1d4ed8;
  --ravid-v22-blue-600: #2563eb;
  --ravid-v22-cyan-500: #06b6d4;
  --ravid-v22-text-main: #0f172a;
  --ravid-v22-text-muted: #64748b;
  --ravid-v22-border: rgba(191,219,254,.72);
  --ravid-v22-border-soft: rgba(226,232,240,.82);
  --ravid-v22-surface: rgba(255,255,255,.96);
  --ravid-v22-surface-soft: rgba(248,250,252,.90);
  --ravid-v22-radius-lg: 28px;
  --ravid-v22-radius-md: 20px;
  --ravid-v22-shadow-soft: 0 18px 42px rgba(15,23,42,.055);
  --ravid-v22-shadow-card: 0 26px 62px rgba(15,23,42,.075);
  --ravid-v22-shadow-hero: 0 38px 90px rgba(15,23,42,.10);
}

/* Overall text rendering and system consistency */
body.ravid-premium-theme {
  color: var(--ravid-v22-text-main) !important;
  text-rendering: geometricPrecision;
}

body.ravid-premium-theme small,
body.ravid-premium-theme p,
body.ravid-premium-theme .muted,
body.ravid-premium-theme .hint,
body.ravid-premium-theme .helper-text {
  color: var(--ravid-v22-text-muted) !important;
}

/* Main app surface: stronger flagship canvas, no layout shift */
body.ravid-premium-theme #card-root.card {
  box-shadow:
    var(--ravid-v22-shadow-hero),
    inset 0 1px 0 rgba(255,255,255,.88),
    0 0 0 1px rgba(191,219,254,.38) !important;
}

/* Side blue blocks: slightly more dimensional but still calm */
body.ravid-side-blue-pass::before,
body.ravid-side-blue-pass::after {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body.ravid-side-blue-pass::before {
  background:
    linear-gradient(180deg, rgba(219,234,254,.98), rgba(191,219,254,.92) 48%, rgba(224,242,254,.96)),
    radial-gradient(circle at 22% 12%, rgba(255,255,255,.44), transparent 34%),
    radial-gradient(circle at 84% 78%, rgba(37,99,235,.16), transparent 28%) !important;
}

body.ravid-side-blue-pass::after {
  background:
    linear-gradient(180deg, rgba(224,242,254,.98), rgba(186,230,253,.93) 48%, rgba(219,234,254,.96)),
    radial-gradient(circle at 78% 14%, rgba(255,255,255,.40), transparent 36%),
    radial-gradient(circle at 18% 82%, rgba(14,165,233,.18), transparent 28%) !important;
}

/* Top app bar consistency */
body.ravid-premium-theme .app-bar {
  border-radius: 26px !important;
  border-color: rgba(191,219,254,.70) !important;
  box-shadow:
    0 18px 44px rgba(15,23,42,.07),
    inset 0 1px 0 rgba(255,255,255,.88) !important;
}

body.ravid-premium-theme .top-title,
body.ravid-premium-theme .brand-text,
body.ravid-premium-theme .brand strong {
  letter-spacing: -.035em !important;
}

/* Global heading discipline */
body.ravid-premium-theme h1,
body.ravid-premium-theme h2,
body.ravid-premium-theme h3,
body.ravid-premium-theme .section-title,
body.ravid-premium-theme .panel-title {
  color: var(--ravid-v22-text-main) !important;
  letter-spacing: -.058em !important;
}

/* Global premium cards - excluding hero logo classes */
body.ravid-premium-theme .admin-panel,
body.ravid-premium-theme .learning-page,
body.ravid-premium-theme .student-hero-card,
body.ravid-premium-theme .premium-etika-shell,
body.ravid-premium-theme .summary-library-card,
body.ravid-premium-theme .summary-reader-card,
body.ravid-premium-theme .admin-summary-list-card,
body.ravid-premium-theme .admin-summary-editor-card,
body.ravid-premium-theme .master-card,
body.ravid-premium-theme .video-form-card,
body.ravid-premium-theme .auth-info-panel,
body.ravid-premium-theme .auth-form-panel {
  border-radius: var(--ravid-v22-radius-lg) !important;
  border: 1px solid var(--ravid-v22-border) !important;
  background:
    linear-gradient(180deg, var(--ravid-v22-surface), var(--ravid-v22-surface-soft)),
    radial-gradient(circle at 0% 0%, rgba(37,99,235,.045), transparent 26%) !important;
  box-shadow:
    var(--ravid-v22-shadow-card),
    inset 0 1px 0 rgba(255,255,255,.88) !important;
}

/* Dashboard menu remains same layout; only enrich typography & state */
body.ravid-premium-theme #section-admin-dashboard .admin-tabs {
  border-color: rgba(147,197,253,.60) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(248,250,252,.68)),
    radial-gradient(circle at 12% 0%, rgba(37,99,235,.09), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(14,165,233,.08), transparent 30%) !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn {
  font-weight: 900 !important;
  letter-spacing: -.018em !important;
  border-color: rgba(191,219,254,.76) !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn.active {
  box-shadow:
    0 28px 58px rgba(37,99,235,.26),
    inset 0 1px 0 rgba(255,255,255,.30) !important;
}

/* Internal dashboard hero metrics */
body.ravid-premium-theme .admin-metric-card,
body.ravid-premium-theme .metric-card,
body.ravid-premium-theme .score-card,
body.ravid-premium-theme .rank-card,
body.ravid-premium-theme .report-summary-card {
  border-radius: 24px !important;
  border-color: rgba(191,219,254,.68) !important;
  box-shadow:
    0 18px 42px rgba(15,23,42,.055),
    inset 0 1px 0 rgba(255,255,255,.86) !important;
}

/* Role and content cards */
body.ravid-premium-theme .student-menu-card,
body.ravid-premium-theme .menu-grid .btn-card,
body.ravid-premium-theme .menu-card,
body.ravid-premium-theme .dashboard-card,
body.ravid-premium-theme .video-item,
body.ravid-premium-theme .student-summary-item,
body.ravid-premium-theme .admin-summary-item,
body.ravid-premium-theme .report-card,
body.ravid-premium-theme .quiz-card,
body.ravid-premium-theme .question-card,
body.ravid-premium-theme .ecosystem-card,
body.ravid-premium-theme .feature-card {
  border-radius: 24px !important;
  border-color: rgba(191,219,254,.70) !important;
  box-shadow:
    var(--ravid-v22-shadow-soft),
    inset 0 1px 0 rgba(255,255,255,.86) !important;
}

/* Feature/ecosystem cards: more premium content hierarchy */
body.ravid-premium-theme .feature-card h3,
body.ravid-premium-theme .ecosystem-card h3,
body.ravid-premium-theme .student-menu-card strong,
body.ravid-premium-theme .menu-card strong {
  color: var(--ravid-v22-text-main) !important;
  letter-spacing: -.04em !important;
}

body.ravid-premium-theme .feature-card p,
body.ravid-premium-theme .ecosystem-card p {
  color: var(--ravid-v22-text-muted) !important;
  line-height: 1.75 !important;
}

/* Controls and forms */
body.ravid-premium-theme input[type="text"],
body.ravid-premium-theme input[type="password"],
body.ravid-premium-theme input[type="search"],
body.ravid-premium-theme input[type="number"],
body.ravid-premium-theme input[type="url"],
body.ravid-premium-theme select,
body.ravid-premium-theme textarea {
  border-radius: 16px !important;
  border-color: rgba(191,219,254,.76) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.94)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.88),
    0 8px 18px rgba(15,23,42,.025) !important;
}

body.ravid-premium-theme input:focus,
body.ravid-premium-theme select:focus,
body.ravid-premium-theme textarea:focus {
  border-color: rgba(37,99,235,.88) !important;
  box-shadow:
    0 0 0 4px rgba(37,99,235,.14),
    inset 0 1px 0 rgba(255,255,255,.9) !important;
}

/* Button system */
body.ravid-premium-theme .btn {
  border-radius: 16px !important;
  font-weight: 900 !important;
}

body.ravid-premium-theme .btn-primary {
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.24), transparent 28%),
    linear-gradient(135deg, #1d4ed8 0%, #2563eb 48%, #0ea5e9 100%) !important;
  border-color: rgba(147,197,253,.48) !important;
}

body.ravid-premium-theme .btn-danger {
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(135deg, #dc2626, #ef4444) !important;
  color: #fff !important;
}

body.ravid-premium-theme .btn-success {
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(135deg, #16a34a, #22c55e) !important;
  color: #fff !important;
}

/* Tables */
body.ravid-premium-theme .table-wrapper {
  border-radius: 24px !important;
  border-color: rgba(191,219,254,.74) !important;
}

body.ravid-premium-theme .table thead th {
  background:
    linear-gradient(180deg, rgba(239,246,255,.96), rgba(248,250,252,.96)) !important;
}

body.ravid-premium-theme .table tbody tr:hover {
  background: rgba(239,246,255,.80) !important;
}

/* Status and tags */
body.ravid-premium-theme .status-chip,
body.ravid-premium-theme .role-badge,
body.ravid-premium-theme .pill,
body.ravid-premium-theme .tag,
body.ravid-premium-theme .badge {
  border-color: rgba(191,219,254,.72) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(239,246,255,.90)) !important;
  color: var(--ravid-v22-blue-700) !important;
}

/* Auth role cards */
body.ravid-premium-theme .role-option {
  border-radius: 22px !important;
}

body.ravid-premium-theme .role-option:hover {
  border-color: rgba(96,165,250,.82) !important;
}

/* Footer final polish */
body.ravid-premium-theme .ravid-footer-section {
  border-color: rgba(191,219,254,.70) !important;
  box-shadow:
    0 22px 52px rgba(15,23,42,.065),
    inset 0 1px 0 rgba(255,255,255,.86) !important;
}

/* Landing CTA band refinements */
body.ravid-premium-theme .ravid-cta-section {
  box-shadow:
    0 34px 84px rgba(37,99,235,.24),
    inset 0 1px 0 rgba(255,255,255,.26) !important;
}

body.ravid-premium-theme .ravid-cta-section .btn-primary:hover {
  box-shadow:
    0 22px 46px rgba(15,23,42,.20),
    inset 0 1px 0 rgba(255,255,255,.86) !important;
}

/* Reduced motion safety */
@media (prefers-reduced-motion: reduce) {
  body.ravid-premium-theme *,
  body.ravid-premium-theme *::before,
  body.ravid-premium-theme *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Mobile refinement */
@media (max-width: 760px) {
  body.ravid-premium-theme #card-root.card {
    border-radius: 26px !important;
  }

  body.ravid-premium-theme .admin-panel,
  body.ravid-premium-theme .learning-page,
  body.ravid-premium-theme .student-hero-card,
  body.ravid-premium-theme .premium-etika-shell,
  body.ravid-premium-theme .summary-library-card,
  body.ravid-premium-theme .summary-reader-card,
  body.ravid-premium-theme .master-card,
  body.ravid-premium-theme .video-form-card {
    border-radius: 24px !important;
  }
}


/* ==========================================================
   RAVID SAFE FLAGSHIP V23 - OPERATIONAL POLISH PASS
   Continue from V22.
   LOCKED: hero logo area is not touched.
   No backend change. No frontend/app.js change.
   Focus: day-to-day usability, dashboard clarity, table/form states,
   role pages, empty/loading/message polish, responsive density.
   ========================================================== */

/* Operational app frame */
body.ravid-premium-theme .main-container {
  scroll-behavior: smooth;
}

body.ravid-premium-theme #card-root.card {
  border-color: rgba(147,197,253,.36) !important;
}

/* Dashboard current workspace: stronger top hierarchy */
body.ravid-premium-theme #section-admin-dashboard .admin-panel {
  position: relative !important;
  overflow: hidden !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg,
    rgba(37,99,235,0),
    rgba(37,99,235,.44),
    rgba(14,165,233,.34),
    rgba(37,99,235,0));
  pointer-events: none;
}

body.ravid-premium-theme #section-admin-dashboard .admin-panel > * {
  position: relative;
  z-index: 1;
}

/* More useful panel heading spacing */
body.ravid-premium-theme .panel-heading-row,
body.ravid-premium-theme .premium-panel-head,
body.ravid-premium-theme .section-header-row {
  gap: 16px !important;
}

body.ravid-premium-theme .panel-heading-row .btn,
body.ravid-premium-theme .premium-panel-head .btn,
body.ravid-premium-theme .section-header-row .btn {
  flex: 0 0 auto;
}

/* Filter and toolbar operational alignment */
body.ravid-premium-theme .admin-filter-card,
body.ravid-premium-theme .learning-toolbar,
body.ravid-premium-theme .summary-toolbar,
body.ravid-premium-theme .admin-summary-toolbar,
body.ravid-premium-theme .user-toolbar {
  align-items: end !important;
}

body.ravid-premium-theme .admin-filter-card .btn,
body.ravid-premium-theme .learning-toolbar .btn,
body.ravid-premium-theme .summary-toolbar .btn,
body.ravid-premium-theme .admin-summary-toolbar .btn,
body.ravid-premium-theme .user-toolbar .btn {
  min-width: 132px !important;
  justify-content: center !important;
}

/* Form readability */
body.ravid-premium-theme label {
  line-height: 1.35 !important;
}

body.ravid-premium-theme label > span,
body.ravid-premium-theme .field-label {
  color: #334155 !important;
  font-weight: 900 !important;
}

body.ravid-premium-theme input[type="text"],
body.ravid-premium-theme input[type="password"],
body.ravid-premium-theme input[type="search"],
body.ravid-premium-theme input[type="number"],
body.ravid-premium-theme input[type="url"],
body.ravid-premium-theme select {
  padding-left: 14px !important;
  padding-right: 14px !important;
}

body.ravid-premium-theme textarea {
  padding-left: 14px !important;
  padding-right: 14px !important;
  min-height: 132px !important;
}

/* Button variants: stable operational system */
body.ravid-premium-theme .btn-small,
body.ravid-premium-theme .btn-sm {
  min-height: 38px !important;
  padding-inline: 13px !important;
  border-radius: 13px !important;
  font-size: .88rem !important;
}

body.ravid-premium-theme .btn-icon {
  min-width: 42px !important;
  min-height: 42px !important;
  border-radius: 14px !important;
}

/* Table operational usability */
body.ravid-premium-theme .table-wrapper {
  overflow: auto !important;
}

body.ravid-premium-theme .table {
  min-width: 760px !important;
}

body.ravid-premium-theme .table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

body.ravid-premium-theme .table tbody tr:last-child td {
  border-bottom: 0 !important;
}

body.ravid-premium-theme .table td .btn,
body.ravid-premium-theme .table td button {
  margin: 2px !important;
}

/* Empty and message states should look intentional */
body.ravid-premium-theme .message:not(:empty),
body.ravid-premium-theme .empty-learning-state,
body.ravid-premium-theme .video-empty-state,
body.ravid-premium-theme .empty-state,
body.ravid-premium-theme .loading-state,
body.ravid-premium-theme .error-state {
  position: relative !important;
  overflow: hidden !important;
  padding: 18px 20px !important;
}

body.ravid-premium-theme .message:not(:empty)::after,
body.ravid-premium-theme .empty-learning-state::after,
body.ravid-premium-theme .video-empty-state::after,
body.ravid-premium-theme .empty-state::after,
body.ravid-premium-theme .loading-state::after,
body.ravid-premium-theme .error-state::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -46px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(191,219,254,.32), transparent 72%);
  pointer-events: none;
}

/* Loading skeleton fallback */
body.ravid-premium-theme .skeleton,
body.ravid-premium-theme .loading-card {
  border-radius: 18px !important;
  background:
    linear-gradient(90deg,
      rgba(226,232,240,.72),
      rgba(248,250,252,.96),
      rgba(226,232,240,.72)) !important;
  background-size: 200% 100% !important;
  animation: ravidSkeleton 1.4s ease-in-out infinite;
}

@keyframes ravidSkeleton {
  0% { background-position: 0% 0; }
  100% { background-position: -200% 0; }
}

/* Role pages operational surfaces */
body.ravid-premium-theme .student-menu-card,
body.ravid-premium-theme .menu-grid .btn-card,
body.ravid-premium-theme .video-item,
body.ravid-premium-theme .student-summary-item,
body.ravid-premium-theme .admin-summary-item {
  cursor: pointer;
}

body.ravid-premium-theme .student-menu-card:active,
body.ravid-premium-theme .menu-grid .btn-card:active,
body.ravid-premium-theme .video-item:active,
body.ravid-premium-theme .student-summary-item:active,
body.ravid-premium-theme .admin-summary-item:active {
  transform: translateY(0) scale(.995) !important;
}

/* Video/reader content comfortable scan */
body.ravid-premium-theme .video-player,
body.ravid-premium-theme .summary-content,
body.ravid-premium-theme .reading-content,
body.ravid-premium-theme .material-content {
  border-radius: 24px !important;
  border: 1px solid rgba(191,219,254,.62) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.92)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.86),
    0 16px 36px rgba(15,23,42,.04) !important;
}

/* Quiz/game operational states */
body.ravid-premium-theme .option-btn,
body.ravid-premium-theme .quiz-options button,
body.ravid-premium-theme .answer-options button {
  min-height: 48px !important;
  text-align: left !important;
}

body.ravid-premium-theme .option-btn:focus-visible,
body.ravid-premium-theme .quiz-options button:focus-visible,
body.ravid-premium-theme .answer-options button:focus-visible {
  outline: 3px solid rgba(37,99,235,.18) !important;
  outline-offset: 3px !important;
}

/* Status semantic colors */
body.ravid-premium-theme .status-success,
body.ravid-premium-theme .badge-success,
body.ravid-premium-theme .tag-success {
  color: #15803d !important;
  border-color: rgba(134,239,172,.76) !important;
  background: linear-gradient(180deg, rgba(240,253,244,.96), rgba(220,252,231,.88)) !important;
}

body.ravid-premium-theme .status-warning,
body.ravid-premium-theme .badge-warning,
body.ravid-premium-theme .tag-warning {
  color: #b45309 !important;
  border-color: rgba(253,186,116,.76) !important;
  background: linear-gradient(180deg, rgba(255,251,235,.96), rgba(254,243,199,.88)) !important;
}

body.ravid-premium-theme .status-danger,
body.ravid-premium-theme .badge-danger,
body.ravid-premium-theme .tag-danger {
  color: #b91c1c !important;
  border-color: rgba(252,165,165,.76) !important;
  background: linear-gradient(180deg, rgba(254,242,242,.96), rgba(254,226,226,.88)) !important;
}

/* Modal/dialog action spacing */
body.ravid-premium-theme .modal-actions,
body.ravid-premium-theme .dialog-actions,
body.ravid-premium-theme .form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Footer/CTA operational polish */
body.ravid-premium-theme .ravid-footer-links span {
  transition: transform .16s ease, border-color .16s ease, color .16s ease, background .16s ease;
}

body.ravid-premium-theme .ravid-footer-links span:hover {
  background: rgba(239,246,255,.94) !important;
}

/* Responsive operational density */
@media (max-width: 920px) {
  body.ravid-premium-theme .panel-heading-row,
  body.ravid-premium-theme .premium-panel-head,
  body.ravid-premium-theme .section-header-row {
    align-items: flex-start !important;
  }

  body.ravid-premium-theme .admin-filter-card,
  body.ravid-premium-theme .learning-toolbar,
  body.ravid-premium-theme .summary-toolbar,
  body.ravid-premium-theme .admin-summary-toolbar,
  body.ravid-premium-theme .user-toolbar {
    align-items: stretch !important;
  }

  body.ravid-premium-theme .admin-filter-card .btn,
  body.ravid-premium-theme .learning-toolbar .btn,
  body.ravid-premium-theme .summary-toolbar .btn,
  body.ravid-premium-theme .admin-summary-toolbar .btn,
  body.ravid-premium-theme .user-toolbar .btn {
    width: 100% !important;
  }
}

@media (max-width: 640px) {
  body.ravid-premium-theme .table {
    min-width: 680px !important;
  }

  body.ravid-premium-theme .message:not(:empty),
  body.ravid-premium-theme .empty-learning-state,
  body.ravid-premium-theme .video-empty-state,
  body.ravid-premium-theme .empty-state,
  body.ravid-premium-theme .loading-state,
  body.ravid-premium-theme .error-state {
    padding: 15px 16px !important;
  }
}

/* Reduced motion safety */
@media (prefers-reduced-motion: reduce) {
  body.ravid-premium-theme .skeleton,
  body.ravid-premium-theme .loading-card {
    animation: none !important;
  }
}


/* ==========================================================
   RAVID SAFE FLAGSHIP V24 - PREMIUM CLARITY & RESPONSIVE PASS
   Continue from V23.
   LOCKED: hero logo area is not touched.
   No backend change. No frontend/app.js change. No grid/menu logic changes.
   ========================================================== */

body.ravid-premium-theme {
  --ravid-v24-text: #0f172a;
  --ravid-v24-muted: #52637b;
  --ravid-v24-border: rgba(147,197,253,.68);
  --ravid-v24-soft-border: rgba(191,219,254,.74);
  --ravid-v24-surface: rgba(255,255,255,.97);
  --ravid-v24-surface-soft: rgba(248,250,252,.92);
  --ravid-v24-shadow: 0 26px 64px rgba(15,23,42,.08);
  --ravid-v24-shadow-soft: 0 16px 40px rgba(15,23,42,.055);
}

/* Main frame clarity */
body.ravid-premium-theme #card-root.card {
  border: 1px solid rgba(147,197,253,.38) !important;
}

body.ravid-side-blue-pass::before,
body.ravid-side-blue-pass::after {
  opacity: .98 !important;
}

/* Top navigation clarity */
body.ravid-premium-theme .app-bar {
  border-color: rgba(147,197,253,.50) !important;
}

body.ravid-premium-theme .brand,
body.ravid-premium-theme .brand-mark {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease !important;
}

body.ravid-premium-theme .brand:hover,
body.ravid-premium-theme .brand-mark:hover {
  transform: translateY(-1px);
}

/* Lower landing only; hero logo untouched */
body.ravid-premium-theme .feature-section,
body.ravid-premium-theme .ravid-ecosystem-section,
body.ravid-premium-theme .ravid-cta-section,
body.ravid-premium-theme .ravid-footer-section {
  border-color: var(--ravid-v24-soft-border) !important;
}

body.ravid-premium-theme .feature-card,
body.ravid-premium-theme .ecosystem-card {
  min-height: 190px !important;
}

body.ravid-premium-theme .feature-card h3,
body.ravid-premium-theme .ecosystem-card h3 {
  color: var(--ravid-v24-text) !important;
}

body.ravid-premium-theme .feature-card p,
body.ravid-premium-theme .ecosystem-card p,
body.ravid-premium-theme .ravid-footer-brand p {
  color: var(--ravid-v24-muted) !important;
}

body.ravid-premium-theme .ravid-cta-section {
  background:
    radial-gradient(circle at 8% 10%, rgba(255,255,255,.24), transparent 26%),
    radial-gradient(circle at 92% 72%, rgba(14,165,233,.26), transparent 30%),
    linear-gradient(135deg, rgba(29,78,216,.98), rgba(37,99,235,.94) 54%, rgba(14,165,233,.94)) !important;
}

/* Dashboard workspace clarity */
body.ravid-premium-theme #section-admin-dashboard .admin-panel,
body.ravid-premium-theme .learning-page,
body.ravid-premium-theme .student-hero-card,
body.ravid-premium-theme .premium-etika-shell,
body.ravid-premium-theme .summary-library-card,
body.ravid-premium-theme .summary-reader-card,
body.ravid-premium-theme .master-card,
body.ravid-premium-theme .video-form-card {
  background:
    linear-gradient(180deg, var(--ravid-v24-surface), var(--ravid-v24-surface-soft)),
    radial-gradient(circle at 0% 0%, rgba(37,99,235,.050), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(14,165,233,.035), transparent 26%) !important;
  border-color: var(--ravid-v24-soft-border) !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn {
  text-shadow: none !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn span:last-child {
  color: inherit !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn:not(.active) {
  filter: saturate(1.02) contrast(1.01);
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn.active {
  filter: saturate(1.06) contrast(1.03);
}

/* Workspace action area */
body.ravid-premium-theme .admin-filter-card,
body.ravid-premium-theme .learning-toolbar,
body.ravid-premium-theme .summary-toolbar,
body.ravid-premium-theme .admin-summary-toolbar,
body.ravid-premium-theme .user-toolbar {
  border-color: var(--ravid-v24-soft-border) !important;
  box-shadow:
    var(--ravid-v24-shadow-soft),
    inset 0 1px 0 rgba(255,255,255,.88) !important;
}

/* Better form grouping */
body.ravid-premium-theme .form-row,
body.ravid-premium-theme .form-grid,
body.ravid-premium-theme .question-form-grid,
body.ravid-premium-theme .user-form-grid {
  gap: 14px !important;
}

/* Control states */
body.ravid-premium-theme input[type="text"],
body.ravid-premium-theme input[type="password"],
body.ravid-premium-theme input[type="search"],
body.ravid-premium-theme input[type="number"],
body.ravid-premium-theme input[type="url"],
body.ravid-premium-theme select,
body.ravid-premium-theme textarea {
  color: var(--ravid-v24-text) !important;
  border-color: rgba(191,219,254,.78) !important;
}

body.ravid-premium-theme input:disabled,
body.ravid-premium-theme select:disabled,
body.ravid-premium-theme textarea:disabled,
body.ravid-premium-theme button:disabled,
body.ravid-premium-theme .btn:disabled {
  cursor: not-allowed !important;
  opacity: .62 !important;
  filter: grayscale(.12) !important;
}

/* Buttons */
body.ravid-premium-theme .btn-primary {
  text-shadow: 0 1px 0 rgba(15,23,42,.12);
}

body.ravid-premium-theme .btn-outlined:hover,
body.ravid-premium-theme .btn-text:hover {
  border-color: rgba(96,165,250,.78) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(239,246,255,.92)) !important;
}

/* Table clarity */
body.ravid-premium-theme .table-wrapper {
  border-color: var(--ravid-v24-soft-border) !important;
}

body.ravid-premium-theme .table thead th {
  color: #1f2937 !important;
}

body.ravid-premium-theme .table tbody td {
  color: #334155 !important;
}

body.ravid-premium-theme .table tbody tr {
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

body.ravid-premium-theme .table tbody tr:hover {
  background: rgba(239,246,255,.86) !important;
}

body.ravid-premium-theme .table td:last-child {
  white-space: nowrap;
}

/* Reader/content readability */
body.ravid-premium-theme .summary-reader-card,
body.ravid-premium-theme .summary-content,
body.ravid-premium-theme .reading-content,
body.ravid-premium-theme .material-content {
  font-size: 1rem !important;
  color: #334155 !important;
}

body.ravid-premium-theme .summary-reader-card p,
body.ravid-premium-theme .summary-content p,
body.ravid-premium-theme .reading-content p,
body.ravid-premium-theme .material-content p {
  margin-bottom: .9em !important;
}

/* Quiz/video cards */
body.ravid-premium-theme .video-item,
body.ravid-premium-theme .student-summary-item,
body.ravid-premium-theme .admin-summary-item,
body.ravid-premium-theme .quiz-card,
body.ravid-premium-theme .question-card,
body.ravid-premium-theme .report-card {
  border-color: rgba(191,219,254,.72) !important;
}

/* Semantic messages */
body.ravid-premium-theme .message.success,
body.ravid-premium-theme .success-message {
  color: #15803d !important;
  border-color: rgba(134,239,172,.76) !important;
  background: linear-gradient(180deg, rgba(240,253,244,.98), rgba(220,252,231,.90)) !important;
}

body.ravid-premium-theme .message.error,
body.ravid-premium-theme .error-message {
  color: #b91c1c !important;
  border-color: rgba(252,165,165,.78) !important;
  background: linear-gradient(180deg, rgba(254,242,242,.98), rgba(254,226,226,.90)) !important;
}

/* Footer chips */
body.ravid-premium-theme .ravid-footer-links span {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.84) !important;
}

/* Responsive clarity */
@media (max-width: 920px) {
  body.ravid-premium-theme .app-bar {
    border-radius: 22px !important;
  }

  body.ravid-premium-theme .section-title,
  body.ravid-premium-theme h1,
  body.ravid-premium-theme h2 {
    letter-spacing: -.048em !important;
  }
}

@media (max-width: 640px) {
  body.ravid-premium-theme .form-actions .btn,
  body.ravid-premium-theme .modal-actions .btn,
  body.ravid-premium-theme .dialog-actions .btn {
    width: 100% !important;
  }

  body.ravid-premium-theme .table td:last-child {
    white-space: normal;
  }
}


/* ==========================================================
   RAVID SAFE FLAGSHIP V25 - STABILITY & FINAL POLISH LAYER
   Continue from V24.
   LOCKED: hero logo area is not touched.
   No backend change. No frontend/app.js change. No grid/menu logic changes.
   Focus: stability, consistent interaction, responsive density, app-state polish.
   ========================================================== */

/* Stability: prevent horizontal layout drift */
body.ravid-premium-theme,
body.ravid-side-blue-pass {
  overflow-x: hidden !important;
}

body.ravid-premium-theme *,
body.ravid-premium-theme *::before,
body.ravid-premium-theme *::after {
  box-sizing: border-box;
}

/* Main visual frame: no layout change, only finishing */
body.ravid-premium-theme #card-root.card {
  outline: 1px solid rgba(255,255,255,.42);
  outline-offset: -7px;
}

/* Header: safer spacing and click comfort */
body.ravid-premium-theme .app-bar {
  gap: 14px !important;
}

body.ravid-premium-theme .btn,
body.ravid-premium-theme button,
body.ravid-premium-theme input,
body.ravid-premium-theme select,
body.ravid-premium-theme textarea {
  -webkit-tap-highlight-color: transparent;
}

/* Interaction system: consistent but not aggressive */
body.ravid-premium-theme .btn,
body.ravid-premium-theme .admin-tab-btn,
body.ravid-premium-theme .student-menu-card,
body.ravid-premium-theme .menu-grid .btn-card,
body.ravid-premium-theme .feature-card,
body.ravid-premium-theme .ecosystem-card,
body.ravid-premium-theme .video-item,
body.ravid-premium-theme .student-summary-item,
body.ravid-premium-theme .admin-summary-item,
body.ravid-premium-theme .quiz-card,
body.ravid-premium-theme .question-card,
body.ravid-premium-theme .report-card {
  will-change: transform;
}

body.ravid-premium-theme .btn:hover,
body.ravid-premium-theme .student-menu-card:hover,
body.ravid-premium-theme .menu-grid .btn-card:hover,
body.ravid-premium-theme .feature-card:hover,
body.ravid-premium-theme .ecosystem-card:hover,
body.ravid-premium-theme .video-item:hover,
body.ravid-premium-theme .student-summary-item:hover,
body.ravid-premium-theme .admin-summary-item:hover {
  transform: translateY(-2px) !important;
}

body.ravid-premium-theme .btn:active,
body.ravid-premium-theme .student-menu-card:active,
body.ravid-premium-theme .menu-grid .btn-card:active,
body.ravid-premium-theme .feature-card:active,
body.ravid-premium-theme .ecosystem-card:active,
body.ravid-premium-theme .video-item:active,
body.ravid-premium-theme .student-summary-item:active,
body.ravid-premium-theme .admin-summary-item:active {
  transform: translateY(0) scale(.995) !important;
}

/* Dashboard tabs: preserve layout; improve active readability only */
body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-btn.active {
  text-shadow: 0 1px 0 rgba(15,23,42,.14) !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-tabs .admin-tab-icon {
  isolation: isolate;
}

/* Panel clarity */
body.ravid-premium-theme #section-admin-dashboard .admin-panel {
  min-height: 280px;
}

body.ravid-premium-theme #section-admin-dashboard .admin-panel .panel-heading-row,
body.ravid-premium-theme #section-admin-dashboard .admin-panel .premium-panel-head {
  border-bottom: 1px solid rgba(226,232,240,.70);
  padding-bottom: 14px;
  margin-bottom: 18px !important;
}

/* Toolbars and filters: better scan line */
body.ravid-premium-theme .admin-filter-card,
body.ravid-premium-theme .learning-toolbar,
body.ravid-premium-theme .summary-toolbar,
body.ravid-premium-theme .admin-summary-toolbar,
body.ravid-premium-theme .user-toolbar {
  gap: 14px !important;
}

/* Form refinement: avoid cramped labels and improve error/help text */
body.ravid-premium-theme label {
  gap: 7px !important;
}

body.ravid-premium-theme .field-help,
body.ravid-premium-theme .help-text,
body.ravid-premium-theme .form-help {
  display: block;
  margin-top: 6px;
  color: #64748b !important;
  font-size: .86rem;
  line-height: 1.55;
}

body.ravid-premium-theme .field-error,
body.ravid-premium-theme .error-text {
  display: block;
  margin-top: 6px;
  color: #b91c1c !important;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.55;
}

/* Table: cleaner operational behavior */
body.ravid-premium-theme .table-wrapper {
  max-width: 100%;
}

body.ravid-premium-theme .table caption {
  padding: 12px 14px;
  color: #64748b;
  font-size: .9rem;
  text-align: left;
}

body.ravid-premium-theme .table th:first-child,
body.ravid-premium-theme .table td:first-child {
  padding-left: 18px !important;
}

body.ravid-premium-theme .table th:last-child,
body.ravid-premium-theme .table td:last-child {
  padding-right: 18px !important;
}

/* Badges/chips: unify visual rhythm */
body.ravid-premium-theme .status-chip,
body.ravid-premium-theme .role-badge,
body.ravid-premium-theme .pill,
body.ravid-premium-theme .tag,
body.ravid-premium-theme .badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px !important;
}

/* Message states */
body.ravid-premium-theme .message:not(:empty) {
  font-weight: 800;
}

body.ravid-premium-theme .message.info,
body.ravid-premium-theme .info-message {
  color: #1d4ed8 !important;
  border-color: rgba(147,197,253,.78) !important;
  background: linear-gradient(180deg, rgba(239,246,255,.98), rgba(219,234,254,.90)) !important;
}

/* Landing lower sections: keep premium, avoid over-spacing */
body.ravid-premium-theme .ravid-ecosystem-section,
body.ravid-premium-theme .ravid-cta-section,
body.ravid-premium-theme .ravid-footer-section {
  scroll-margin-top: 96px;
}

body.ravid-premium-theme .ravid-footer-links span {
  user-select: none;
}

/* Auth/login refinements */
body.ravid-premium-theme .auth-form-panel form,
body.ravid-premium-theme .auth-form-panel .form {
  gap: 15px !important;
}

body.ravid-premium-theme .auth-inline-hint {
  color: #64748b !important;
}

/* Role cards */
body.ravid-premium-theme .role-option {
  user-select: none;
}

body.ravid-premium-theme .role-option input {
  accent-color: #2563eb;
}

/* Content reading comfort */
body.ravid-premium-theme .summary-reader-card,
body.ravid-premium-theme .reading-content,
body.ravid-premium-theme .material-content {
  max-width: 100%;
}

body.ravid-premium-theme .summary-reader-card ul,
body.ravid-premium-theme .reading-content ul,
body.ravid-premium-theme .material-content ul,
body.ravid-premium-theme .summary-reader-card ol,
body.ravid-premium-theme .reading-content ol,
body.ravid-premium-theme .material-content ol {
  padding-left: 1.35rem;
  line-height: 1.82;
}

/* Print-friendly minimal baseline */
@media print {
  body.ravid-premium-theme,
  body.ravid-side-blue-pass {
    background: #ffffff !important;
  }

  body.ravid-side-blue-pass::before,
  body.ravid-side-blue-pass::after {
    display: none !important;
  }

  body.ravid-premium-theme .app-bar,
  body.ravid-premium-theme .btn,
  body.ravid-premium-theme button {
    display: none !important;
  }

  body.ravid-premium-theme #card-root.card {
    box-shadow: none !important;
    border: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }
}

/* Responsive: make controls readable on small screens */
@media (max-width: 920px) {
  body.ravid-premium-theme .admin-filter-card,
  body.ravid-premium-theme .learning-toolbar,
  body.ravid-premium-theme .summary-toolbar,
  body.ravid-premium-theme .admin-summary-toolbar,
  body.ravid-premium-theme .user-toolbar {
    gap: 12px !important;
  }

  body.ravid-premium-theme #section-admin-dashboard .admin-panel .panel-heading-row,
  body.ravid-premium-theme #section-admin-dashboard .admin-panel .premium-panel-head {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 640px) {
  body.ravid-premium-theme input[type="text"],
  body.ravid-premium-theme input[type="password"],
  body.ravid-premium-theme input[type="search"],
  body.ravid-premium-theme input[type="number"],
  body.ravid-premium-theme input[type="url"],
  body.ravid-premium-theme select,
  body.ravid-premium-theme textarea {
    font-size: 16px !important;
  }

  body.ravid-premium-theme .btn,
  body.ravid-premium-theme button {
    min-height: 46px !important;
  }

  body.ravid-premium-theme .table th:first-child,
  body.ravid-premium-theme .table td:first-child {
    padding-left: 14px !important;
  }

  body.ravid-premium-theme .table th:last-child,
  body.ravid-premium-theme .table td:last-child {
    padding-right: 14px !important;
  }
}

/* Reduced motion safety */
@media (prefers-reduced-motion: reduce) {
  body.ravid-premium-theme .btn,
  body.ravid-premium-theme .admin-tab-btn,
  body.ravid-premium-theme .student-menu-card,
  body.ravid-premium-theme .menu-grid .btn-card,
  body.ravid-premium-theme .feature-card,
  body.ravid-premium-theme .ecosystem-card,
  body.ravid-premium-theme .video-item,
  body.ravid-premium-theme .student-summary-item,
  body.ravid-premium-theme .admin-summary-item,
  body.ravid-premium-theme .quiz-card,
  body.ravid-premium-theme .question-card,
  body.ravid-premium-theme .report-card {
    will-change: auto;
  }
}


/* ==========================================================
   RAVID SAFE FLAGSHIP V26 - FINAL QA POLISH PASS
   Continue from V25.
   LOCKED: hero logo area is not touched.
   No backend change. No frontend/app.js change.
   No grid/menu logic changes.
   Focus: QA polish, keyboard focus, disabled/read-only,
   overflow safety, table/card density, screenshot/print readiness.
   ========================================================== */

/* QA: stable viewport and text wrapping */
body.ravid-premium-theme {
  min-width: 0 !important;
}

body.ravid-premium-theme h1,
body.ravid-premium-theme h2,
body.ravid-premium-theme h3,
body.ravid-premium-theme p,
body.ravid-premium-theme span,
body.ravid-premium-theme button,
body.ravid-premium-theme label {
  overflow-wrap: anywhere;
}

/* Keep main layout safe from inner overflow */
body.ravid-premium-theme #card-root.card,
body.ravid-premium-theme .admin-panel,
body.ravid-premium-theme .learning-page,
body.ravid-premium-theme .summary-reader-card,
body.ravid-premium-theme .master-card,
body.ravid-premium-theme .video-form-card {
  min-width: 0 !important;
}

/* Premium keyboard focus */
body.ravid-premium-theme a:focus-visible,
body.ravid-premium-theme button:focus-visible,
body.ravid-premium-theme .btn:focus-visible,
body.ravid-premium-theme input:focus-visible,
body.ravid-premium-theme select:focus-visible,
body.ravid-premium-theme textarea:focus-visible,
body.ravid-premium-theme [tabindex]:focus-visible {
  outline: 3px solid rgba(37,99,235,.22) !important;
  outline-offset: 3px !important;
  box-shadow:
    0 0 0 6px rgba(37,99,235,.08),
    inset 0 1px 0 rgba(255,255,255,.82) !important;
}

/* Readonly/disabled clarity */
body.ravid-premium-theme input[readonly],
body.ravid-premium-theme textarea[readonly] {
  background:
    linear-gradient(180deg, rgba(248,250,252,.98), rgba(241,245,249,.94)) !important;
  color: #64748b !important;
  cursor: default !important;
}

body.ravid-premium-theme input:disabled,
body.ravid-premium-theme textarea:disabled,
body.ravid-premium-theme select:disabled {
  background:
    linear-gradient(180deg, rgba(248,250,252,.96), rgba(241,245,249,.92)) !important;
  border-color: rgba(203,213,225,.78) !important;
}

/* Button groups and action rows */
body.ravid-premium-theme .actions,
body.ravid-premium-theme .button-row,
body.ravid-premium-theme .action-row,
body.ravid-premium-theme .form-actions,
body.ravid-premium-theme .modal-actions,
body.ravid-premium-theme .dialog-actions {
  gap: 10px !important;
  flex-wrap: wrap !important;
}

body.ravid-premium-theme .actions .btn,
body.ravid-premium-theme .button-row .btn,
body.ravid-premium-theme .action-row .btn,
body.ravid-premium-theme .form-actions .btn {
  white-space: nowrap;
}

/* Dashboard panel title density */
body.ravid-premium-theme #section-admin-dashboard .admin-panel h2,
body.ravid-premium-theme #section-admin-dashboard .admin-panel h3 {
  margin-top: 0 !important;
}

body.ravid-premium-theme #section-admin-dashboard .admin-panel .panel-description,
body.ravid-premium-theme #section-admin-dashboard .admin-panel p {
  max-width: 78ch;
}

/* Table QA: avoid broken layout and improve scan */
body.ravid-premium-theme .table-wrapper {
  overscroll-behavior-x: contain;
}

body.ravid-premium-theme .table th,
body.ravid-premium-theme .table td {
  vertical-align: middle !important;
}

body.ravid-premium-theme .table td code,
body.ravid-premium-theme .table td .code,
body.ravid-premium-theme code {
  border-radius: 9px !important;
  padding: 3px 7px !important;
  background: rgba(239,246,255,.92) !important;
  color: #1d4ed8 !important;
  border: 1px solid rgba(191,219,254,.72) !important;
}

/* Cards: avoid visual clipping from shadows in dense pages */
body.ravid-premium-theme .student-menu-card,
body.ravid-premium-theme .menu-grid .btn-card,
body.ravid-premium-theme .feature-card,
body.ravid-premium-theme .ecosystem-card,
body.ravid-premium-theme .video-item,
body.ravid-premium-theme .student-summary-item,
body.ravid-premium-theme .admin-summary-item,
body.ravid-premium-theme .quiz-card,
body.ravid-premium-theme .question-card,
body.ravid-premium-theme .report-card {
  backface-visibility: hidden;
}

/* Message banners: ensure readable line-height */
body.ravid-premium-theme .message:not(:empty),
body.ravid-premium-theme .empty-state,
body.ravid-premium-theme .loading-state,
body.ravid-premium-theme .error-state,
body.ravid-premium-theme .empty-learning-state,
body.ravid-premium-theme .video-empty-state {
  line-height: 1.65 !important;
}

/* Success/warning/error/info utility fallback */
body.ravid-premium-theme .warning-message,
body.ravid-premium-theme .message.warning {
  color: #b45309 !important;
  border-color: rgba(253,186,116,.78) !important;
  background: linear-gradient(180deg, rgba(255,251,235,.98), rgba(254,243,199,.90)) !important;
}

body.ravid-premium-theme .info-message,
body.ravid-premium-theme .message.info {
  color: #1d4ed8 !important;
  border-color: rgba(147,197,253,.78) !important;
  background: linear-gradient(180deg, rgba(239,246,255,.98), rgba(219,234,254,.90)) !important;
}

/* Role/menu text: prevent awkward wrap */
body.ravid-premium-theme .student-menu-card strong,
body.ravid-premium-theme .menu-card strong,
body.ravid-premium-theme .menu-card-copy strong {
  overflow-wrap: normal;
}

body.ravid-premium-theme .student-menu-card small,
body.ravid-premium-theme .menu-card small,
body.ravid-premium-theme .menu-card-copy small {
  overflow-wrap: anywhere;
}

/* Login/auth QA */
body.ravid-premium-theme .auth-form-panel .message:not(:empty) {
  margin-top: 14px !important;
}

body.ravid-premium-theme .password-wrap {
  min-width: 0 !important;
}

body.ravid-premium-theme .password-wrap input {
  min-width: 0 !important;
}

/* Footer/landing chips */
body.ravid-premium-theme .ravid-footer-links span,
body.ravid-premium-theme .trust-row span {
  white-space: nowrap;
}

/* Prevent print from showing decorative blue side blocks */
@media print {
  body.ravid-side-blue-pass::before,
  body.ravid-side-blue-pass::after,
  body.ravid-premium-theme #card-root.card::before,
  body.ravid-premium-theme #card-root.card::after {
    display: none !important;
  }

  body.ravid-premium-theme .table-wrapper {
    overflow: visible !important;
    box-shadow: none !important;
  }

  body.ravid-premium-theme .table {
    min-width: 0 !important;
  }
}

/* Mobile QA */
@media (max-width: 760px) {
  body.ravid-premium-theme .ravid-footer-links span,
  body.ravid-premium-theme .trust-row span {
    white-space: normal;
  }

  body.ravid-premium-theme .actions .btn,
  body.ravid-premium-theme .button-row .btn,
  body.ravid-premium-theme .action-row .btn,
  body.ravid-premium-theme .form-actions .btn {
    white-space: normal;
  }

  body.ravid-premium-theme .admin-panel,
  body.ravid-premium-theme .learning-page,
  body.ravid-premium-theme .summary-reader-card,
  body.ravid-premium-theme .master-card,
  body.ravid-premium-theme .video-form-card {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (max-width: 480px) {
  body.ravid-premium-theme .table {
    min-width: 620px !important;
  }

  body.ravid-premium-theme .btn,
  body.ravid-premium-theme button {
    min-height: 44px !important;
  }
}

/* ===== RAVID RINGKASAN FEEDBACK CENTER V3.5 ===== */
#premium-dialog-root.premium-dialog-root:not(.hidden) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(16px, 3vw, 32px) !important;
  box-sizing: border-box !important;
}

#premium-dialog-root.premium-dialog-root.hidden {
  display: none !important;
}

#premium-dialog-root .premium-dialog-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  background:
    radial-gradient(circle at 50% 35%, rgba(37, 99, 235, 0.18), transparent 38%),
    rgba(15, 23, 42, 0.42) !important;
  backdrop-filter: blur(12px) saturate(1.04) !important;
}

#premium-dialog-root .premium-dialog-card {
  position: relative !important;
  z-index: 1 !important;
  width: min(460px, calc(100vw - 32px)) !important;
  max-height: calc(100vh - 48px) !important;
  overflow: auto !important;
  margin: 0 !important;
  border-radius: 30px !important;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.25) !important;
}

#toast-root.toast-root {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2147482990 !important;
  width: min(430px, calc(100vw - 32px)) !important;
  max-width: min(430px, calc(100vw - 32px)) !important;
  pointer-events: none !important;
}

#toast-root.toast-root .toast {
  pointer-events: auto !important;
  border-radius: 22px !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18) !important;
}

@media (max-width: 640px) {
  #premium-dialog-root.premium-dialog-root:not(.hidden) {
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
  }

  #toast-root.toast-root {
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
  }
}

/* ===== RAVID FLAGSHIP STABILITY & PERFORMANCE V10 =====
   Scope: visual polish ringan tanpa mengubah flow login, upload video, quiz, rapor, atau game. */
:root {
  --ravid-premium-focus: 0 0 0 4px rgba(37, 99, 235, .14);
  --ravid-soft-shadow: 0 18px 48px rgba(15, 23, 42, .075);
  --ravid-card-border: rgba(203, 213, 225, .72);
}

#btn-cta-login {
  min-width: 190px;
  box-shadow: 0 18px 42px rgba(37, 99, 235, .24);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--ravid-premium-focus);
}

.hero-copy h1,
.section-title,
.admin-hero-copy h3 {
  text-wrap: balance;
}

.hero-subtitle,
.section-subtitle,
.feature-card p,
.ecosystem-card p,
.ravid-cta-section p {
  text-wrap: pretty;
}

.feature-card,
.ecosystem-card,
.admin-panel,
.table-wrapper,
.premium-video-form,
.auth-form-panel,
.auth-info-panel {
  box-shadow: var(--ravid-soft-shadow);
  border-color: var(--ravid-card-border);
}

.video-item,
.source-option,
.admin-summary-item,
.student-summary-item {
  contain: layout paint;
}

.main-video-el,
.video-player iframe {
  aspect-ratio: 16 / 9;
}

.video-frame-meta strong {
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 768px) {
  body::before,
  body::after,
  .landing-page::before,
  .landing-page::after,
  .hero-panel-glow,
  .bubble {
    animation: none !important;
    filter: blur(18px);
    opacity: .22;
  }

  .card,
  .admin-panel,
  .table-wrapper,
  .video-player,
  .hero-stat-card,
  .lesson-preview div {
    backdrop-filter: none !important;
  }

  .main-container {
    padding-inline: 14px;
  }

  #card-root.card {
    border-radius: 24px;
    padding: 20px 16px;
  }

  .hero-copy h1 {
    letter-spacing: -.055em;
    line-height: 1.04;
  }

  .hero-subtitle {
    line-height: 1.72;
  }
}


/* ==========================================================
   RAVID PATCH 11 - Game Etika Flagship Premium vNext
   Scope: #section-salam only. Goal: match blue/cyan premium maze reference
   while keeping lightweight DOM grid and existing game logic.
   ========================================================== */
body.ravid-premium-theme #section-salam.premium-etika-page,
#section-salam.premium-etika-page {
  position: relative !important;
  padding: clamp(22px, 3vw, 42px) !important;
  background:
    radial-gradient(circle at 12% 12%, rgba(96,165,250,.22), transparent 28%),
    radial-gradient(circle at 92% 20%, rgba(125,211,252,.18), transparent 26%),
    linear-gradient(135deg, #f8fbff 0%, #eef7ff 48%, #f8fbff 100%) !important;
  overflow: hidden !important;
}

#section-salam.premium-etika-page::before,
#section-salam.premium-etika-page::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(2px);
  opacity: .72;
}
#section-salam.premium-etika-page::before {
  width: 520px;
  height: 520px;
  right: -260px;
  top: 130px;
  background: radial-gradient(circle, rgba(56,189,248,.16), transparent 68%);
}
#section-salam.premium-etika-page::after {
  width: 420px;
  height: 420px;
  left: -220px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(37,99,235,.13), transparent 70%);
}

#section-salam .premium-etika-shell {
  position: relative !important;
  z-index: 1 !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

#section-salam .premium-etika-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 310px) minmax(240px, 300px) !important;
  gap: clamp(18px, 2.6vw, 34px) !important;
  align-items: end !important;
  margin: 18px 0 24px !important;
}

#section-salam .premium-etika-hero .eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  color: #1d4ed8 !important;
  background: linear-gradient(135deg, rgba(219,234,254,.98), rgba(224,242,254,.92)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92) !important;
  font-weight: 900 !important;
}
#section-salam .premium-etika-hero .section-title {
  max-width: 760px !important;
  margin: 18px 0 14px !important;
  color: #0b1020 !important;
  font-size: clamp(2.15rem, 4.2vw, 4.35rem) !important;
  line-height: .98 !important;
  letter-spacing: -.065em !important;
}
#section-salam .premium-etika-hero .section-subtitle {
  max-width: 760px !important;
  color: #5f6f8d !important;
  font-size: clamp(1rem, 1.2vw, 1.35rem) !important;
  line-height: 1.7 !important;
}

#section-salam .premium-etika-status,
#section-salam .game-coach-card,
#section-salam .game-legend-card,
#section-salam .game-tips-card {
  border: 1px solid rgba(191,219,254,.78) !important;
  border-radius: 28px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.86)) !important;
  box-shadow: 0 26px 64px rgba(15,23,42,.085), inset 0 1px 0 rgba(255,255,255,.92) !important;
  backdrop-filter: blur(10px) !important;
}

#section-salam .premium-etika-status {
  min-height: 150px !important;
  padding: 24px !important;
}
#section-salam .premium-etika-status::before {
  content: "🎯";
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  float: left;
  margin: 0 14px 12px 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  box-shadow: 0 14px 24px rgba(37,99,235,.15), inset 0 1px 0 rgba(255,255,255,.88);
}
#section-salam .premium-etika-status span {
  margin: 0 0 6px !important;
  padding: 0 !important;
  color: #1d4ed8 !important;
  background: transparent !important;
  font-size: .95rem !important;
  font-weight: 950 !important;
}
#section-salam .premium-etika-status strong {
  margin: 0 0 18px !important;
  color: #0f172a !important;
  font-size: clamp(1.25rem, 1.7vw, 1.8rem) !important;
}
#section-salam .etika-progress-track {
  height: 12px !important;
  clear: both !important;
  background: rgba(148,163,184,.22) !important;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.08) !important;
}
#section-salam .etika-progress-track span {
  background: linear-gradient(90deg, #12c238, #22c55e) !important;
  box-shadow: 0 0 18px rgba(34,197,94,.26) !important;
}
#section-salam .premium-etika-status small {
  display: block !important;
  margin-top: 18px !important;
  color: #64748b !important;
  font-weight: 800 !important;
}

#section-salam .game-coach-card {
  min-height: 150px !important;
  padding: 24px 24px 22px 92px !important;
  position: relative !important;
}
#section-salam .game-coach-avatar {
  position: absolute !important;
  left: 24px !important;
  top: 24px !important;
  width: 54px !important;
  height: 54px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 20px !important;
  font-size: 34px !important;
  background: linear-gradient(145deg, #dbeafe, #bfdbfe) !important;
  box-shadow: 0 18px 30px rgba(37,99,235,.18), inset 0 1px 0 rgba(255,255,255,.9) !important;
}
#section-salam .game-coach-card strong {
  display: block !important;
  margin: 6px 0 14px !important;
  color: #2563eb !important;
  font-weight: 950 !important;
}
#section-salam .game-coach-card p {
  color: #1e293b !important;
  font-size: 1.05rem !important;
  line-height: 1.55 !important;
  font-weight: 850 !important;
}
#section-salam .game-coach-card::after {
  content: "🔊";
  position: absolute;
  left: 24px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #2563eb;
  box-shadow: 0 10px 24px rgba(37,99,235,.14);
}

#section-salam .premium-etika-layout {
  display: block !important;
}
#section-salam .premium-etika-game-card {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
#section-salam .etika-board-wrap {
  position: relative !important;
  overflow: visible !important;
}

#section-salam .etika-board {
  position: relative !important;
  min-height: clamp(390px, 34vw, 520px) !important;
  height: clamp(390px, 34vw, 520px) !important;
  width: 100% !important;
  border-radius: 34px !important;
  overflow: hidden !important;
  border: 12px solid transparent !important;
  background:
    linear-gradient(#f3fbff, #fafdff) padding-box,
    linear-gradient(135deg, #1d4ed8 0%, #2f7dff 45%, #13b6f2 100%) border-box !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.92),
    inset 0 18px 32px rgba(255,255,255,.72),
    0 26px 58px rgba(37,99,235,.30) !important;
}
#section-salam .etika-board::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background-image:
    linear-gradient(rgba(37,99,235,.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.075) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(14,165,233,.13), transparent 22%),
    radial-gradient(circle at 83% 45%, rgba(34,197,94,.11), transparent 18%) !important;
  background-size: 52px 52px, 52px 52px, auto, auto !important;
}

#section-salam .etika-board .cell {
  position: absolute !important;
  z-index: 1 !important;
  border-radius: 14px !important;
  border: 1px solid rgba(37,99,235,.05) !important;
  background: rgba(255,255,255,.12) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
#section-salam .etika-board .cell.blocked {
  z-index: 2 !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  background:
    linear-gradient(180deg, rgba(96,165,250,.98) 0%, #2873f4 42%, #1d4ed8 100%) !important;
  box-shadow:
    inset 0 5px 0 rgba(255,255,255,.34),
    inset 0 -6px 0 rgba(30,64,175,.34),
    0 8px 16px rgba(37,99,235,.32),
    0 2px 0 rgba(29,78,216,.55) !important;
}
#section-salam .etika-board .cell.path {
  background: rgba(255,255,255,.05) !important;
  border-color: rgba(34,197,94,.10) !important;
}
#section-salam .etika-board .cell.teacher-cell {
  background: radial-gradient(circle, rgba(34,197,94,.24), rgba(34,197,94,.06) 64%, transparent 70%) !important;
  border-color: rgba(34,197,94,.18) !important;
}
#section-salam .etika-board .cell.obstacle-rock::after,
#section-salam .etika-board .cell.safe-plant::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(18px, 2.3vw, 30px);
  filter: drop-shadow(0 8px 8px rgba(15,23,42,.16));
}
#section-salam .etika-board .cell.obstacle-rock::after { content: "🪨"; }
#section-salam .etika-board .cell.safe-plant::after { content: "☘️"; }

#section-salam .etika-token {
  z-index: 7 !important;
  width: clamp(58px, 5.4vw, 76px) !important;
  height: clamp(72px, 6vw, 90px) !important;
  padding: 7px 7px 6px !important;
  border-radius: 28px !important;
  background: transparent !important;
  border: 0 !important;
  display: grid !important;
  place-items: center !important;
  grid-template-rows: 1fr auto !important;
  filter: drop-shadow(0 18px 24px rgba(37,99,235,.22)) !important;
}
#section-salam .etika-token.cekgu {
  filter: drop-shadow(0 20px 30px rgba(34,197,94,.35)) !important;
}
#section-salam .avatar-illustration {
  width: clamp(50px, 4.7vw, 68px) !important;
  height: clamp(50px, 4.7vw, 68px) !important;
  border-radius: 999px !important;
  display: block !important;
  position: relative !important;
  background: linear-gradient(180deg, #fff7ed, #fed7aa) !important;
  border: 5px solid rgba(255,255,255,.9) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 26px rgba(15,23,42,.12) !important;
}
#section-salam .student-avatar::before {
  content: "";
  position: absolute;
  left: 13%; right: 13%; top: 8%; height: 22%;
  border-radius: 10px 10px 6px 6px;
  background: #0f172a;
  box-shadow: 0 10px 0 #111827;
}
#section-salam .student-avatar::after {
  content: "👦";
  position: absolute;
  inset: 14% 0 0;
  display: grid;
  place-items: center;
  font-size: clamp(26px, 3vw, 40px);
}
#section-salam .teacher-avatar {
  background: linear-gradient(180deg, #dbeafe, #93c5fd) !important;
}
#section-salam .teacher-avatar::after {
  content: "👩‍🏫";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(30px, 3.2vw, 44px);
}
#section-salam .avatar-cap,
#section-salam .avatar-face,
#section-salam .avatar-hijab { display: none !important; }
#section-salam .token-label {
  margin-top: -4px !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  color: white !important;
  background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
  font-size: .82rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  box-shadow: 0 10px 20px rgba(37,99,235,.32) !important;
}
#section-salam .etika-token.cekgu .token-label {
  background: linear-gradient(135deg, #16a34a, #22c55e) !important;
  box-shadow: 0 12px 24px rgba(34,197,94,.34) !important;
}

#section-salam #greeting-panel.greeting-panel {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(92vw, 470px) !important;
  max-height: min(84vh, 640px) !important;
  overflow: visible !important;
  z-index: 20 !important;
  margin: 0 !important;
  padding: 74px 34px 30px !important;
  border-radius: 34px !important;
  border: 1px solid rgba(191,219,254,.82) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.985), rgba(248,250,252,.96)) !important;
  box-shadow: 0 36px 86px rgba(15,23,42,.22), inset 0 1px 0 rgba(255,255,255,.95) !important;
  backdrop-filter: blur(14px) !important;
}
#section-salam #greeting-panel.hidden { display: none !important; }
#section-salam .ravid-adab-modal-orb {
  position: absolute;
  left: 50%;
  top: -34px;
  transform: translateX(-50%);
  width: 76px;
  height: 76px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 34px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 22px 38px rgba(37,99,235,.35), inset 0 1px 0 rgba(255,255,255,.35);
}
#section-salam .ravid-adab-close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 42px;
  height: 42px;
  min-height: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(191,219,254,.72) !important;
  background: rgba(255,255,255,.85) !important;
  color: #334155 !important;
  font-size: 28px !important;
  line-height: 1 !important;
  box-shadow: 0 12px 24px rgba(15,23,42,.08) !important;
}
#section-salam .greeting-title {
  margin: 0 0 14px !important;
  color: #0f172a !important;
  font-size: clamp(1.5rem, 2.1vw, 2.05rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -.045em !important;
  text-align: center !important;
  font-weight: 950 !important;
}
#section-salam #greeting-panel .muted {
  max-width: 360px;
  margin: 0 auto 24px !important;
  text-align: center !important;
  color: #64748b !important;
  font-weight: 750 !important;
  line-height: 1.6 !important;
}
#section-salam .greeting-options {
  display: grid !important;
  gap: 16px !important;
}
#section-salam .greeting-options .adab-choice {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 48px 1fr 24px !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
  min-height: 72px !important;
  padding: 12px 20px !important;
  text-align: left !important;
  border-radius: 22px !important;
  border: 1px solid rgba(191,219,254,.86) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(239,246,255,.88)) !important;
  color: #1e3a8a !important;
  font-size: 1.1rem !important;
  font-weight: 950 !important;
  box-shadow: 0 14px 28px rgba(37,99,235,.08), inset 0 1px 0 rgba(255,255,255,.9) !important;
}
#section-salam .greeting-options .adab-choice-green {
  border-color: rgba(187,247,208,.92) !important;
  background: linear-gradient(180deg, rgba(240,253,244,.98), rgba(220,252,231,.88)) !important;
  color: #166534 !important;
}
#section-salam .adab-choice-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: white;
  font-size: 24px;
}
#section-salam .adab-choice-green .adab-choice-icon {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
}
#section-salam .adab-choice-arrow {
  color: currentColor;
  font-size: 34px;
  line-height: 1;
}
#section-salam .adab-choice.selected {
  transform: translateY(-2px) !important;
  border-color: rgba(37,99,235,.72) !important;
  box-shadow: 0 22px 38px rgba(37,99,235,.16), inset 0 1px 0 rgba(255,255,255,.92) !important;
}
#section-salam .greeting-message:not(:empty) {
  margin-top: 16px !important;
  padding: 12px 14px !important;
  border-radius: 18px !important;
  text-align: center !important;
  font-weight: 850 !important;
}
#section-salam #greeting-panel input {
  min-height: 52px !important;
  border-radius: 18px !important;
}

#section-salam .game-bottom-row {
  display: grid !important;
  grid-template-columns: minmax(260px, .85fr) minmax(150px, 220px) minmax(280px, .75fr) !important;
  align-items: start !important;
  gap: clamp(18px, 3vw, 34px) !important;
  margin-top: 26px !important;
}
#section-salam .game-legend-card,
#section-salam .game-tips-card {
  padding: 22px 24px !important;
  min-height: 112px !important;
}
#section-salam .game-legend-card strong,
#section-salam .game-tips-card strong {
  display: block !important;
  color: #2563eb !important;
  font-weight: 950 !important;
  margin-bottom: 18px !important;
}
#section-salam .game-legend-items {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  color: #64748b !important;
  font-weight: 850 !important;
}
#section-salam .game-tips-card {
  position: relative !important;
  padding-right: 105px !important;
}
#section-salam .game-tips-card p {
  color: #64748b !important;
  font-weight: 800 !important;
  line-height: 1.65 !important;
}
#section-salam .game-tips-emoji {
  position: absolute !important;
  right: 24px !important;
  bottom: 18px !important;
  font-size: 52px !important;
  filter: drop-shadow(0 12px 18px rgba(37,99,235,.18)) !important;
}
#section-salam .salam-controls-plus {
  display: grid !important;
  grid-template-columns: repeat(3, 58px) !important;
  grid-template-rows: repeat(3, 58px) !important;
  justify-content: center !important;
  gap: 10px !important;
  margin: -16px auto 0 !important;
}
#section-salam .salam-controls-plus .btn {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;
  padding: 0 !important;
  border-radius: 18px !important;
  font-size: 28px !important;
  font-weight: 950 !important;
  box-shadow: 0 14px 26px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.88) !important;
}
#section-salam #btn-move-up { grid-column: 2; grid-row: 1; }
#section-salam #btn-move-left { grid-column: 1; grid-row: 2; }
#section-salam #btn-move-right { grid-column: 3; grid-row: 2; }
#section-salam #btn-move-down { grid-column: 2; grid-row: 3; }
#section-salam .salam-controls-plus::after {
  content: "";
  grid-column: 2;
  grid-row: 2;
  border-radius: 18px;
  border: 1px dashed rgba(147,197,253,.8);
  background: rgba(255,255,255,.72);
}
#section-salam #btn-move-right {
  background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
  color: white !important;
}

@media (max-width: 1100px) {
  #section-salam .premium-etika-hero,
  #section-salam .game-bottom-row {
    grid-template-columns: 1fr !important;
  }
  #section-salam .salam-controls-plus { margin-top: 0 !important; }
}
@media (max-width: 760px) {
  #section-salam.premium-etika-page { padding: 16px !important; }
  #section-salam .premium-etika-hero .section-title { font-size: clamp(2rem, 10vw, 3.3rem) !important; }
  #section-salam .etika-board {
    min-height: 360px !important;
    height: 360px !important;
    border-width: 8px !important;
    border-radius: 26px !important;
  }
  #section-salam #greeting-panel.greeting-panel {
    width: min(94vw, 430px) !important;
    padding: 68px 20px 22px !important;
    border-radius: 28px !important;
  }
  #section-salam .game-tips-card { padding-right: 24px !important; }
  #section-salam .game-tips-emoji { position: static !important; display: block !important; margin-top: 12px !important; }
}
@media (prefers-reduced-motion: reduce) {
  #section-salam *,
  #section-salam *::before,
  #section-salam *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}


/* ==========================================================
   RAVID PATCH 11.1 - Game Etika Modal Hotfix
   Scope: #section-salam only.
   Fixes: cropped/overlapped adab modal after Patch 11, legacy pseudo-radio
   leaking into option cards, and keeps the modal readable/lightweight.
   ========================================================== */
#section-salam.premium-etika-page .etika-board-wrap {
  position: relative !important;
  overflow: visible !important;
}

#section-salam.premium-etika-page .etika-board-wrap:has(#greeting-panel:not(.hidden))::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 18;
  border-radius: 34px;
  background: rgba(15, 23, 42, .22);
  pointer-events: none;
}

#section-salam.premium-etika-page #greeting-panel.greeting-panel {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(92vw, 520px) !important;
  max-width: calc(100% - 32px) !important;
  min-height: 0 !important;
  max-height: none !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  z-index: 30 !important;
  margin: 0 !important;
  padding: 76px 34px 30px !important;
  border-radius: 34px !important;
  color: #0f172a !important;
  opacity: 1 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  border: 1px solid rgba(191, 219, 254, .92) !important;
  box-shadow:
    0 34px 76px rgba(15, 23, 42, .24),
    inset 0 1px 0 rgba(255, 255, 255, .98) !important;
  backdrop-filter: none !important;
}

#section-salam.premium-etika-page #greeting-panel.hidden {
  display: none !important;
}

#section-salam.premium-etika-page #greeting-panel .etika-step.hidden,
#section-salam.premium-etika-page #greeting-panel .greeting-actions .hidden,
#section-salam.premium-etika-page #greeting-panel .hidden {
  display: none !important;
}

#section-salam.premium-etika-page #greeting-panel .etika-step:not(.hidden) {
  display: block !important;
}

#section-salam.premium-etika-page .ravid-adab-modal-orb {
  top: -36px !important;
  width: 76px !important;
  height: 76px !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

#section-salam.premium-etika-page .ravid-adab-close {
  z-index: 3 !important;
}

#section-salam.premium-etika-page #greeting-panel .greeting-title {
  display: block !important;
  margin: 0 0 12px !important;
  color: #0b1020 !important;
  text-align: center !important;
  font-size: clamp(1.55rem, 2vw, 2rem) !important;
  line-height: 1.15 !important;
  font-weight: 950 !important;
  letter-spacing: -.045em !important;
  opacity: 1 !important;
}

#section-salam.premium-etika-page #greeting-panel .muted {
  display: block !important;
  max-width: 390px !important;
  margin: 0 auto 24px !important;
  color: #64748b !important;
  text-align: center !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
  font-weight: 750 !important;
  opacity: 1 !important;
}

#section-salam.premium-etika-page #greeting-panel .greeting-options {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
  width: 100% !important;
  overflow: visible !important;
}

/* Kill old V9 pseudo-radio. It was causing the Patch 11 option cards to crop/overlap. */
#section-salam.premium-etika-page #greeting-panel .greeting-options .btn.adab-choice::before,
#section-salam.premium-etika-page #greeting-panel .greeting-options .btn.adab-choice::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

#section-salam.premium-etika-page #greeting-panel .greeting-options .btn.adab-choice {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 76px !important;
  box-sizing: border-box !important;
  padding: 13px 22px !important;
  border-radius: 24px !important;
  text-align: left !important;
  overflow: hidden !important;
  color: #1e3a8a !important;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%) !important;
  border: 1px solid rgba(191, 219, 254, .96) !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .10), inset 0 1px 0 rgba(255, 255, 255, .95) !important;
  transform: none !important;
}

#section-salam.premium-etika-page #greeting-panel .greeting-options .btn.adab-choice-green,
#section-salam.premium-etika-page #greeting-panel .greeting-options #btn-adab-uang {
  color: #166534 !important;
  background: linear-gradient(180deg, #f8fff9 0%, #dcfce7 100%) !important;
  border-color: rgba(187, 247, 208, .98) !important;
}

#section-salam.premium-etika-page #greeting-panel .adab-choice > span {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  white-space: normal !important;
  min-width: 0 !important;
  color: inherit !important;
}

#section-salam.premium-etika-page #greeting-panel .adab-choice-icon {
  flex: 0 0 48px !important;
  width: 48px !important;
  height: 48px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 17px !important;
  font-size: 25px !important;
  line-height: 1 !important;
}

#section-salam.premium-etika-page #greeting-panel .adab-choice > span:nth-child(2) {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 1.12rem !important;
  font-weight: 950 !important;
  line-height: 1.25 !important;
}

#section-salam.premium-etika-page #greeting-panel .adab-choice-arrow {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  font-size: 34px !important;
  line-height: 1 !important;
}

#section-salam.premium-etika-page #greeting-panel .greeting-message {
  display: block !important;
  margin: 14px 0 0 !important;
  min-height: 0 !important;
  color: #475569 !important;
  background: transparent !important;
  border: 0 !important;
  text-align: center !important;
}

#section-salam.premium-etika-page #greeting-panel .greeting-message:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#section-salam.premium-etika-page #greeting-panel .greeting-actions {
  margin-top: 16px !important;
  display: flex !important;
  justify-content: center !important;
}

#section-salam.premium-etika-page #greeting-panel input {
  width: 100% !important;
  min-height: 52px !important;
  color: #0f172a !important;
  background: #fff !important;
  border: 1px solid rgba(191, 219, 254, .92) !important;
}

@media (max-width: 760px) {
  #section-salam.premium-etika-page #greeting-panel.greeting-panel {
    width: min(94vw, 450px) !important;
    max-width: calc(100% - 18px) !important;
    padding: 68px 18px 22px !important;
    border-radius: 28px !important;
  }
  #section-salam.premium-etika-page #greeting-panel .greeting-options .btn.adab-choice {
    min-height: 70px !important;
    padding: 11px 16px !important;
    border-radius: 20px !important;
  }
  #section-salam.premium-etika-page #greeting-panel .adab-choice-icon {
    flex-basis: 44px !important;
    width: 44px !important;
    height: 44px !important;
  }
}


/* RAVID Landing Copy + Logo v26 */
.brand-logo-image-wrap {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
}

.brand-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-mark .brand-logo-image-wrap,
.brand-mark.mini.brand-logo-image-wrap {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.12));
}

.brand-mark .brand-logo-image,
.brand-mark.mini .brand-logo-image {
  width: 34px;
  height: 34px;
  padding: 3px;
  border-radius: 12px;
}

.brand-mark.mini.brand-logo-image-wrap {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.14);
}

.brand-mark.mini.brand-logo-image-wrap .brand-logo-image {
  width: 100%;
  height: 100%;
}

.hero-copy h1 {
  max-width: 760px;
  line-height: 1.05;
}

.hero-subtitle {
  max-width: 760px;
}

.hero-focus-clean {
  min-height: 22px;
}

.hero-copy .hero-highlights + .hero-focus-clean {
  margin-top: 18px;
}

.app-subtitle {
  letter-spacing: 0.01em;
}

@media (max-width: 720px) {
  .hero-focus-clean {
    min-height: 8px;
  }

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


/* RAVID Landing Bottom Clean v26.1 */
#section-landing {
  padding-bottom: clamp(24px, 4vw, 56px);
}

#section-landing .hero-grid {
  margin-bottom: 0;
}

#landing-features,
.ravid-ecosystem-section,
.ravid-cta-section,
.ravid-footer-section {
  display: none !important;
}

.landing-page {
  min-height: auto;
}
