/* ============================================================
   OASIS TOURISTIK ACADEMY — REFINED EXECUTIVE DESIGN SYSTEM
   Clean Modern Hierarchy, Compact Ergonomics & Clear Feedback
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Dark Default (Deep Obsidian & Cyber Accents) */
  --bg-page: #060a14;
  --bg-gradient: radial-gradient(circle at 15% 0%, rgba(0, 114, 255, 0.12), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(139, 92, 246, 0.1), transparent 40%),
    #060a14;

  --card-dark: #0d1527;
  --card-dark-border: rgba(255, 255, 255, 0.08);
  --card-dark-hover: #121d36;

  --user-card-bg: rgba(11, 19, 36, 0.95);
  --user-card-border: rgba(0, 212, 255, 0.28);

  --text-white: #ffffff;
  --text-slate: #94a3b8;
  --text-dim: #64748b;

  /* Card Colors */
  --blue-lessons: #0070f3;
  --blue-lessons-gradient: linear-gradient(90deg, #0072ff 0%, #0056d6 100%);

  --green-test: #10b981;
  --green-test-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);

  --purple-octagon: #8b5cf6;
  --purple-octagon-gradient: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);

  --amber-exam-border: rgba(245, 158, 11, 0.75);

  --radius-card: 20px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.45;
}

/* Splash Loader */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: #060a14;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo-img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(0, 198, 255, 0.5);
}

/* Top Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: rgba(6, 10, 20, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-dark-border);
}

[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.92);
}

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

.nav-back-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-dark-border);
  color: var(--text-white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.nav-back-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-2px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 198, 255, 0.35);
  flex-shrink: 0;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  background: linear-gradient(90deg, #ffffff 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-top: 1px;
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--card-dark-border);
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  color: var(--text-slate);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.nav-tab:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab.active {
  background: linear-gradient(135deg, #0072ff 0%, #0052d4 100%);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 114, 255, 0.4);
}

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-lang {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-dark-border);
  border-radius: var(--radius-full);
  padding: 2px;
}

.pill-lang button {
  padding: 4px 9px;
  border: none;
  background: transparent;
  color: var(--text-slate);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.pill-lang button.active {
  background: #00d4ff;
  color: #060b18;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-dark-border);
  color: var(--text-white);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px 3px 3px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-dark-border);
  cursor: pointer;
}

.user-pill-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-pill-name {
  font-size: 0.82rem;
  font-weight: 700;
}

.user-pill-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.tag-guest {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
}

.tag-student {
  background: rgba(0, 212, 255, 0.15);
  color: #00d4ff;
  border: 1px solid rgba(0, 212, 255, 0.4);
}

.tag-vip {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.tag-moderator {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
}

.tag-admin {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.btn-nav-auth {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-dark-border);
  color: var(--text-white);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-nav-auth:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #00d4ff;
}

/* Screen Management */
.screen {
  display: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.screen.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Container */
.main-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 50px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ════════════════════════════════════════════════════════════
   DASHBOARD 1:1 EXACT LAYOUT
   ════════════════════════════════════════════════════════════ */
/* Exact User Card */
.exact-user-card {
  background: linear-gradient(180deg, #0e192c 0%, #08111e 100%);
  border: 1.5px solid #1c2b42;
  border-top: 1.5px solid #284166;
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 5px 0 #050a12, 0 10px 28px rgba(0, 0, 0, 0.45);
  position: relative;
}

.exact-user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  border: 2px solid rgba(0, 212, 255, 0.4);
  transition: var(--transition);
}

.exact-user-avatar:hover {
  transform: scale(1.05);
  border-color: #00d4ff;
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.8);
}

.exact-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-cam-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0284c7;
  border: 2.5px solid #08111e;
  color: #ffffff;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
}

.exact-user-avatar:hover .avatar-cam-badge,
.avatar-cam-badge:hover {
  transform: scale(1.15);
  background: #0099ff;
}

.avatar-cam-badge svg {
  width: 12px;
  height: 12px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2.5;
  display: block;
}

.exact-user-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.exact-user-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text-white);
}

.exact-user-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-id-badge {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.28);
  color: #38bdf8;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pill-progress-info {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--text-slate);
  font-weight: 600;
}

.pill-guest-notice {
  background: rgba(0, 114, 255, 0.12);
  border: 1px solid rgba(0, 114, 255, 0.3);
  color: #38bdf8;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pill-icon-i {
  background: #0284c7;
  color: #ffffff;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  font-size: 0.65rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 3D Icons */
.exact-3d-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s;
}

.exact-exam-card:hover .exact-3d-icon,
.exact-lessons-card:hover .exact-3d-icon,
.exact-test-card:hover .exact-3d-icon,
.exact-octagon-card:hover .exact-3d-icon {
  transform: scale(1.1) translateY(-2px);
  filter: brightness(1.1);
}

.exact-3d-icon-sm {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s;
}

.exact-mini-card:hover .exact-3d-icon-sm {
  transform: scale(1.12);
  filter: brightness(1.1);
}

/* Exam Card (Tactile 3D Bevel) */
.exact-exam-card {
  background: linear-gradient(180deg, #0e192c 0%, #08111e 100%);
  border: 1.5px solid #1c2b42;
  border-top: 1.5px solid #284166;
  border-radius: 20px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 5px 0 #050a12, 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.exact-exam-card::before {
  content: '';
  position: absolute;
  left: -20px;
  top: -20px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.exact-exam-card:hover {
  transform: translateY(-2px);
  border-color: #f59e0b;
  box-shadow: 0 7px 0 #050a12, 0 12px 28px rgba(245, 158, 11, 0.25);
}

.exact-exam-card:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #050a12, 0 4px 10px rgba(0, 0, 0, 0.3);
}

.exact-exam-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.exact-exam-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 2px;
}

.exact-exam-sub {
  font-size: 0.78rem;
  color: var(--text-slate);
}

.exact-lock-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-white);
}

/* Lessons Card (Vibrant 3D Bevel - Darslik style) */
.exact-lessons-card {
  background: linear-gradient(180deg, #00b4ff 0%, #008be3 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-top: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 5px 0 #005bb0, 0 10px 24px rgba(0, 140, 255, 0.4);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.exact-lessons-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
  pointer-events: none;
}

.exact-lessons-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #005bb0, 0 14px 30px rgba(0, 140, 255, 0.55);
}

.exact-lessons-card:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #005bb0, 0 4px 10px rgba(0, 140, 255, 0.3);
}

.exact-lessons-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.exact-lessons-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.exact-lessons-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.exact-white-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #008be3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15), 0 6px 12px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  transition: var(--transition);
}

/* Split Row (2-column layout matching reference) */
.exact-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Test Card (Vibrant 3D Lime Green - Test yechish style) */
.exact-test-card {
  background: linear-gradient(180deg, #6fd300 0%, #4ea800 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-top: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 130px;
  cursor: pointer;
  box-shadow: 0 5px 0 #3b8400, 0 10px 24px rgba(90, 200, 0, 0.35);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.exact-test-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
  pointer-events: none;
}

.exact-test-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #3b8400, 0 14px 30px rgba(90, 200, 0, 0.5);
}

.exact-test-card:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #3b8400, 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Octagon Card (Lavender / Slate - Oktagon style) */
.exact-octagon-card {
  background: linear-gradient(180deg, #9bb0c8 0%, #6e84a1 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-top: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 130px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 0 #4a5c73, 0 10px 24px rgba(110, 132, 161, 0.35);
  transition: var(--transition);
}

.exact-octagon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
  pointer-events: none;
}

.exact-octagon-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #4a5c73, 0 14px 30px rgba(110, 132, 161, 0.5);
}

.exact-octagon-card:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #4a5c73, 0 4px 10px rgba(0, 0, 0, 0.3);
}

.exact-ref-circle-top {
  margin-bottom: 12px;
}

.exact-ref-white-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.exact-test-card:hover .exact-ref-white-circle,
.exact-octagon-card:hover .exact-ref-white-circle {
  transform: scale(1.08);
}

.circle-green {
  color: #52b800;
}

.circle-slate {
  color: #6e84a1;
}

.exact-ref-text-bottom {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.exact-card-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1px;
}

.exact-card-sub {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

/* Bottom Items: 1-column clean list */
.exact-triple-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* Mini Cards */
.exact-mini-card {
  background: rgba(14, 25, 44, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  position: relative;
  overflow: visible;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
  width: 100%;
  box-sizing: border-box;
}

.exact-mini-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.exact-mini-card:active {
  transform: translateY(1px);
}

.exact-mini-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.exact-mini-icon-blob {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.blob-purple {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.blob-amber {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.blob-blue {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.exact-mini-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exact-mini-arrow {
  color: var(--text-dim);
  font-weight: 700;
  font-size: 1.2rem;
}

#card-cheats-link::before {
  content: '';
  position: absolute;
  left: -15px;
  top: -15px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 20px;
}

#card-mistakes-link::before {
  content: '';
  position: absolute;
  left: -15px;
  top: -15px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.22) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 20px;
}

#card-saved-link::before {
  content: '';
  position: absolute;
  left: -15px;
  top: -15px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 20px;
}

#card-admin-link::before {
  content: '';
  position: absolute;
  left: -15px;
  top: -15px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 20px;
}

.exact-mini-card:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
  box-shadow: 0 7px 0 #050a12, 0 12px 28px rgba(0, 180, 255, 0.25);
}

.exact-mini-card:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #050a12, 0 4px 10px rgba(0, 0, 0, 0.3);
}

.exact-mini-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exact-mini-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 2px;
}

.exact-mini-sub {
  font-size: 0.72rem;
  color: var(--text-slate);
}

.exact-badge-counter-red {
  position: absolute;
  top: -8px;
  right: -6px;
  background: linear-gradient(135deg, #ff4b4b 0%, #dc2626 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.72rem;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 3px 8px rgba(239, 68, 68, 0.6), 0 2px 0 #991b1b;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  pointer-events: none;
}

.exact-badge-counter-amber {
  position: absolute;
  top: -8px;
  right: -6px;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.72rem;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.6), 0 2px 0 #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════
   ERGONOMIC QUIZ & TESTING SCREEN
   Clear Question Hero Card, Compact Gap Options & Dot History
   ════════════════════════════════════════════════════════════ */
.quiz-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--card-dark);
  border: 1px solid var(--card-dark-border);
  border-radius: var(--radius-card);
}

.quiz-icon-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-quiz-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-dark-border);
  color: var(--text-white);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-quiz-icon:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-quiz-icon.active-saved {
  background: rgba(245, 158, 11, 0.22) !important;
  border-color: #f59e0b !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.quiz-btn-flag-img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-quiz-icon:hover .quiz-btn-flag-img {
  transform: scale(1.15);
}

.btn-quiz-icon.active-saved .quiz-btn-flag-img {
  filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.7));
}

/* Horizontal Number Ribbon with Clear History State */
.quiz-dots-ribbon {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  white-space: nowrap;
}

.quiz-dots-ribbon::-webkit-scrollbar {
  height: 4px;
}

.quiz-dots-ribbon::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.q-dot-pill {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: #0f182e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-slate);
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition);
}

/* Active current question dot (Cyan border ring) */
.q-dot-pill.active {
  border: 2px solid #00d4ff !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.6) !important;
  transform: scale(1.08);
}

/* 🔵 Correct Question Dot in History: Blue Gradient */
.q-dot-pill.correct {
  background: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%) !important;
  color: #ffffff !important;
  border-color: #00d4ff !important;
  box-shadow: 0 0 10px rgba(0, 114, 255, 0.5) !important;
}

/* 🔴 Wrong Question Dot in History: Red Gradient */
.q-dot-pill.wrong {
  background: linear-gradient(135deg, #ff4b4b 0%, #d90429 100%) !important;
  color: #ffffff !important;
  border-color: #ff4b4b !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5) !important;
}

/* Distinct Question Card Container */
.question-box {
  background: #0c162b;
  border: 1.5px solid rgba(0, 212, 255, 0.25);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
}

.question-prompt {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--text-white);
}

/* Compact, ergonomic options list */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* Compact gap */
}

.opt-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  /* Compact padding */
  background: #0b1426;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.opt-btn:hover:not(:disabled) {
  border-color: #00d4ff;
  background: #111e38;
}

.opt-idx {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #00d4ff;
  font-weight: 900;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 🔵 Correct Chosen Option: Blue Gradient */
.opt-btn.correct {
  background: linear-gradient(135deg, rgba(0, 114, 255, 0.4) 0%, rgba(0, 212, 255, 0.25) 100%) !important;
  border-color: #00d4ff !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(0, 114, 255, 0.4) !important;
}

.opt-btn.correct .opt-idx {
  background: #00d4ff !important;
  color: #050814 !important;
}

/* 🔴 Wrong Chosen Option: Red Gradient */
.opt-btn.wrong {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.4) 0%, rgba(185, 28, 28, 0.25) 100%) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.4) !important;
}

.opt-btn.wrong .opt-idx {
  background: #ef4444 !important;
  color: #ffffff !important;
}

.quiz-explanation-card {
  display: none;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #7dd3fc;
}

.quiz-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

/* ════════════════════════════════════════════════════════════
   LESSONS & MODULES WITH VIDEO COVERS & ILLUMINATED TEST BUTTON
   ════════════════════════════════════════════════════════════ */
.lesson-row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-dark-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.lesson-row-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-1px);
}

.lesson-row-left-content {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.lesson-video-thumb-wrap {
  width: 82px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  background: #0b1424;
}

.lesson-video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.lesson-video-thumb-wrap:hover .lesson-video-thumb-img {
  transform: scale(1.08);
}

.lesson-thumb-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lesson-thumb-play-overlay span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.9);
  color: #040d1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  padding-left: 2px;
  font-weight: 900;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

.lesson-video-thumb-wrap:hover .lesson-thumb-play-overlay {
  background: rgba(0, 0, 0, 0.15);
}

.lesson-text-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.lesson-item-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lesson-item-duration {
  font-size: 0.74rem;
  font-weight: 700;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lesson-watch-btn {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* 🌟 Illuminated Glowing Pass Module Test Button */
.btn-module-pass-test {
  width: 100%;
  padding: 15px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #00d4ff 0%, #0072ff 100%);
  border: 1.5px solid #38bdf8;
  border-top: 2px solid #7dd3fc;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.45), 0 0 14px rgba(0, 114, 255, 0.35);
  transition: var(--transition);
  animation: buttonGlowPulse 3s infinite ease-in-out;
}

.btn-module-pass-test:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #38bdf8 0%, #0056cc 100%);
  box-shadow: 0 6px 28px rgba(0, 212, 255, 0.7), 0 0 22px rgba(0, 114, 255, 0.55);
}

.btn-module-pass-test:active {
  transform: translateY(2px);
  box-shadow: 0 2px 10px rgba(0, 212, 255, 0.4);
}

@keyframes buttonGlowPulse {
  0%, 100% {
    box-shadow: 0 4px 18px rgba(0, 212, 255, 0.45), 0 0 12px rgba(0, 114, 255, 0.3);
  }
  50% {
    box-shadow: 0 6px 26px rgba(0, 212, 255, 0.75), 0 0 24px rgba(0, 114, 255, 0.55);
  }
}

/* ════════════════════════════════════════════════════════════
   OKTAGON PVP ARENA & RADAR
   ════════════════════════════════════════════════════════════ */
.oktagon-hero {
  background: var(--card-dark);
  border: 1px solid var(--card-dark-border);
  border-radius: 24px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.oktagon-emblem {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.3), rgba(124, 58, 237, 0.1));
  border: 2px solid #a855f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.oktagon-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #ffffff 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.oktagon-subtitle {
  font-size: 0.9rem;
  color: var(--text-slate);
  margin-bottom: 6px;
}

.oktagon-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-top: 1.5px solid rgba(16, 185, 129, 0.6);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #34d399;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  margin: 4px 0 14px 0;
  backdrop-filter: blur(8px);
}

.pulse-live-green {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981, 0 0 18px #10b981;
  animation: pulseLiveGreen 1.8s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulseLiveGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 4px #10b981;
    opacity: 0.8;
  }
  50% {
    transform: scale(1.25);
    box-shadow: 0 0 14px #10b981, 0 0 22px rgba(16, 185, 129, 0.7);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 4px #10b981;
    opacity: 0.8;
  }
}

.oct-online-num {
  font-weight: 900;
  color: #ffffff;
  font-size: 0.95rem;
}

.oktagon-stats-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-dark-border);
  border-radius: var(--radius-card);
  padding: 14px;
}

.strip-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.strip-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: #00d4ff;
}

.strip-lbl {
  font-size: 0.72rem;
  color: var(--text-slate);
  text-transform: uppercase;
  font-weight: 700;
}

.oktagon-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 500px;
}

.btn-oktagon-leaderboard {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: var(--radius-card);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-oktagon-duel-start {
  width: 100%;
  max-width: 500px;
  padding: 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 900;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(147, 51, 234, 0.5);
  transition: var(--transition);
}

/* ════════════════════════════════════════════════════════════
   OKTAGON RADAR MATCHMAKING MODAL (1:1 EXACT TO REFERENCE)
   ════════════════════════════════════════════════════════════ */
.oktagon-queue-modal-card {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(180deg, #0e192c 0%, #08111e 100%);
  border: 1.5px solid #1c2b42;
  border-top: 1.5px solid #284166;
  border-radius: 28px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 0 #050a12, 0 20px 60px rgba(0, 0, 0, 0.6);
  margin: 20px auto;
  position: relative;
}

.radar-top-handle {
  width: 48px;
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto 16px;
}

.radar-main-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.2px;
  margin-bottom: 4px;
}

.radar-sub-title {
  font-size: 0.85rem;
  color: var(--text-slate);
  margin-bottom: 24px;
}

/* Radar Display */
.radar-box {
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: radial-gradient(circle, #0a2416 0%, #041009 70%, #020704 100%);
  border: 2px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.15), inset 0 0 25px rgba(34, 197, 94, 0.1);
  position: relative;
  margin: 0 auto 28px;
  overflow: hidden;
}

/* Concentric Rings */
.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, 0.18);
  pointer-events: none;
}

.radar-ring-1 { width: 68px; height: 68px; }
.radar-ring-2 { width: 136px; height: 136px; }
.radar-ring-3 { width: 204px; height: 204px; }
.radar-ring-4 { width: 266px; height: 266px; border-color: rgba(34, 197, 94, 0.25); }

/* Crosshairs */
.radar-crosshair-h {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(34, 197, 94, 0.15);
  transform: translateY(-50%);
  pointer-events: none;
}

.radar-crosshair-v {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(34, 197, 94, 0.15);
  transform: translateX(-50%);
  pointer-events: none;
}

/* Radar Sweep Beam */
.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(34, 197, 94, 0.45) 0deg, rgba(34, 197, 94, 0.15) 30deg, transparent 65deg);
  animation: radar-rotate 2.8s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.radar-sweep-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1.5px;
  height: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #22c55e, 0 0 16px #4ade80;
  transform-origin: bottom center;
}

@keyframes radar-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Center Avatar */
.radar-center-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 5;
}

.radar-center-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0b1e16;
  border: 2.5px solid #22c55e;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #22c55e;
}

.radar-center-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.radar-user-nametag {
  background: rgba(4, 16, 10, 0.85);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

/* Blips (Detected Opponents on Radar) */
.radar-blip {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 3;
  pointer-events: none;
}

.blip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: blipPulse 2.8s infinite ease-in-out;
}

.blip-name {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
}

.blip-1 {
  top: 55px;
  left: 65px;
  animation-delay: 0.4s;
}

.blip-2 {
  top: 60px;
  right: 60px;
  animation-delay: 1.1s;
}

.blip-3 {
  bottom: 50px;
  left: 80px;
  animation-delay: 1.8s;
}

@keyframes blipPulse {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  35%, 65% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 14px #22c55e, 0 0 24px rgba(34, 197, 94, 0.8); }
}

/* Cancel Button */
.btn-radar-cancel {
  width: 100%;
  padding: 15px;
  border-radius: 20px;
  background: linear-gradient(180deg, #65d600 0%, #4eb600 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-top: 2px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 5px 0 #348400, 0 10px 24px rgba(90, 200, 0, 0.4);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-radar-cancel:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #348400, 0 14px 30px rgba(90, 200, 0, 0.55);
}

.btn-radar-cancel:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #348400, 0 4px 10px rgba(90, 200, 0, 0.3);
}

/* ════════════════════════════════════════════════════════════
   OKTAGON 1v1 BATTLE ARENA (1:1 EXACT TO REFERENCE)
   ════════════════════════════════════════════════════════════ */
.oktagon-arena-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Top Duel Header */
.duel-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: linear-gradient(180deg, #0d1726 0%, #08111e 100%);
  border: 1.5px solid #1c2b42;
  border-top: 1.5px solid #284166;
  border-radius: 22px;
  box-shadow: 0 5px 0 #050a12, 0 10px 25px rgba(0, 0, 0, 0.4);
}

.duel-player-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.duel-player-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #0d1e16;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-me {
  border: 2.5px solid #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.5);
  color: #22c55e;
}

.avatar-opp {
  border: 2.5px solid #ef4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.5);
  color: #ef4444;
}

.duel-player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duel-player-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-opp {
  text-align: right;
}

.duel-player-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.duel-player-rank {
  font-size: 0.72rem;
  font-weight: 800;
  color: #34d399;
  letter-spacing: 0.3px;
}

.player-opp .duel-player-rank {
  color: #f87171;
}

/* Center Score */
.duel-score-center {
  display: flex;
  align-items: center;
  gap: 14px;
}

.duel-score-num {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.score-me {
  color: #ffffff;
}

.score-opp {
  color: #60a5fa;
}

.duel-vs-swords {
  font-size: 1.35rem;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* Center-Outward Dual Progress Bar (1:1 with Reference) */
.duel-center-split-bar {
  width: 100%;
  height: 6px;
  background: #111e33;
  border-radius: 6px;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.duel-track-left {
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  background: rgba(16, 185, 129, 0.05);
}

.duel-fill-left {
  height: 100%;
  background: linear-gradient(270deg, #22c55e, #10b981);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.duel-center-divider {
  width: 2px;
  height: 100%;
  background: #1e293b;
  z-index: 2;
}

.duel-track-right {
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: flex-start;
  background: rgba(239, 68, 68, 0.05);
}

.duel-fill-right {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f87171);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.9);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sub Bar (Round & Timer) */
.duel-sub-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.duel-round-pill {
  font-size: 0.8rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

.duel-timer-pill {
  font-size: 0.85rem;
  font-weight: 900;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

/* Octagon Countdown View (3... 2... 1... GO!) */
.oktagon-countdown-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 420px;
  margin: 30px auto;
  padding: 28px 20px;
  background: radial-gradient(ellipse at 50% 0%, #16284f 0%, #0c162b 65%, #070d1a 100%);
  border: 1.5px solid rgba(0, 212, 255, 0.4);
  border-radius: 26px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 180, 255, 0.2);
  box-sizing: border-box;
  position: relative;
}

.oct-cd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  letter-spacing: 0.8px;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.3);
}

.oct-cd-players {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  margin-bottom: 24px;
}

.oct-cd-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.oct-cd-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 2px solid #34d399;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  overflow: hidden;
}

.oct-cd-avatar.opp {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  border-color: #f87171;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.oct-cd-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.oct-cd-rank {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
}

.oct-cd-vs {
  font-size: 1.4rem;
  font-weight: 900;
  color: #f59e0b;
  text-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
  padding: 0 12px;
}

.oct-cd-timer-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2.5px solid #00d4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.4), inset 0 0 16px rgba(0, 212, 255, 0.2);
}

.oct-countdown-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: #00d4ff;
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.8);
}

.oct-countdown-number.fight-anim {
  font-size: 1.5rem;
  color: #ef4444;
  text-shadow: 0 0 16px rgba(239, 68, 68, 0.9);
}

.pulse-anim {
  animation: scalePulse 0.85s ease-in-out infinite;
}

@keyframes scalePulse {
  0% { transform: scale(0.85); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.85); opacity: 0.7; }
}

.oct-cd-hint {
  font-size: 0.82rem;
  font-weight: 700;
  color: #94a3b8;
}

.duel-exit-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #94a3b8;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  margin-right: 6px;
}

.duel-exit-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ffffff;
}

.quiz-nav-back-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  margin-right: 8px;
}

.quiz-nav-back-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #00d4ff;
}

.quiz-top-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  min-width: 0;
  flex: 1;
}

/* Arena Main 2-Column Grid */
.duel-arena-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 820px) {
  .duel-arena-grid {
    grid-template-columns: 1fr;
  }
}

.duel-left-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.duel-question-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.45;
  letter-spacing: -0.2px;
}

.duel-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.duel-opt-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}

.duel-opt-btn:hover:not(:disabled) {
  background: rgba(0, 212, 255, 0.08);
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3), 0 8px 20px rgba(56, 189, 248, 0.2);
}

.duel-opt-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.duel-opt-key {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

.duel-opt-btn.correct {
  background: rgba(34, 197, 94, 0.15) !important;
  border-color: #22c55e !important;
  color: #86efac !important;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4) !important;
}

.duel-opt-btn.wrong {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
}

/* Right Column: Illustration Card */
.duel-right-col {
  width: 100%;
}

.duel-illustration-card {
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  border: 1.5px solid #1c2b42;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: #0b1424;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 380px;
}

.duel-q-img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

/* ════════════════════════════════════════════════════════════
   ARENA WAITING FOR OPPONENT SCREEN (1:1 EXACT)
   ════════════════════════════════════════════════════════════ */
.arena-waiting-wrapper {
  width: 100%;
  max-width: 520px;
  margin: 30px auto 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 10px 16px 20px;
}

.oct-waiting-spinner-ring {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from 0deg, #22c55e, #10b981, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: waitingSpin 1.8s linear infinite;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.4);
}

@keyframes waitingSpin {
  100% { transform: rotate(360deg); }
}

.oct-waiting-spinner-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #091a10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oct-waiting-swords {
  font-size: 1.8rem;
  animation: waitingSwordsPulse 2s ease-in-out infinite;
}

@keyframes waitingSwordsPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 10px #22c55e); }
}

.oct-waiting-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  margin-top: 4px;
}

.oct-waiting-subtitle {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-top: -6px;
  max-width: 380px;
  line-height: 1.4;
}

.oct-waiting-warning-card {
  width: 100%;
  max-width: 440px;
  background: #1c150c;
  border: 1px solid #78350f;
  border-radius: 18px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.oct-waiting-warning-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.oct-waiting-warning-text {
  font-size: 0.86rem;
  font-weight: 700;
  color: #f59e0b;
  text-align: left;
  line-height: 1.4;
}

.oct-waiting-footer {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.oct-waiting-promo-label {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}

.oct-waiting-share-btn {
  max-width: 380px;
  padding: 14px 24px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ════════════════════════════════════════════════════════════
   OKTAGON POST-MATCH RESULTS (1:1 EXACT TO REFERENCE)
   ════════════════════════════════════════════════════════════ */
.oktagon-result-wrapper {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.oct-res-header-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.btn-res-back {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #152238;
  border: 1px solid #284166;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-res-back:hover {
  background: #1e3150;
  transform: translateX(-2px);
}

.oct-res-card {
  width: 100%;
  background: linear-gradient(180deg, #0e192c 0%, #08111e 100%);
  border: 1.5px solid #1c2b42;
  border-top: 1.5px solid #284166;
  border-radius: 28px;
  padding: 32px 28px;
  box-shadow: 0 10px 0 #050a12, 0 25px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.oct-res-status-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  margin-top: 4px;
}

.circle-loss {
  background: rgba(239, 68, 68, 0.15);
  border: 3px solid #ef4444;
  color: #ef4444;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
}

.circle-win {
  background: rgba(34, 197, 94, 0.15);
  border: 3px solid #22c55e;
  color: #22c55e;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.4);
}

.circle-draw {
  background: rgba(245, 158, 11, 0.15);
  border: 3px solid #f59e0b;
  color: #f59e0b;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
}

.oct-res-main-status {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin: -10px 0 4px;
}

.status-loss { color: #ef4444; }
.status-win { color: #22c55e; }
.status-draw { color: #f59e0b; }

/* Player comparison row */
.oct-res-players-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 480px;
  padding: 0 10px;
}

.res-player-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100px;
}

.res-player-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0d1e16;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  overflow: hidden;
}

.res-player-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.res-score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.res-big-score {
  font-size: 2.6rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.res-score-green { color: #22c55e; }
.res-score-colon { color: #94a3b8; font-size: 2.2rem; }
.res-score-red { color: #ef4444; }

.res-points-badge {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

.badge-loss {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.badge-win {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

/* Detailed Answers Matrix */
.oct-res-matrix-section {
  width: 100%;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.res-matrix-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.res-matrix-sub {
  font-size: 0.76rem;
  color: var(--text-slate);
  margin-bottom: 18px;
}

.res-matrix-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: start;
  width: 100%;
  max-width: 480px;
}

.res-matrix-divider {
  width: 1px;
  height: 100%;
  min-height: 90px;
  background: rgba(255, 255, 255, 0.1);
}

.res-pills-col {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pills-left {
  justify-content: flex-end;
}

.pills-right {
  justify-content: flex-start;
}

.res-num-pill {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}

.res-num-pill:hover {
  transform: scale(1.18);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.pill-correct {
  background: #22c55e;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35);
}

.pill-wrong {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

/* Brand watermark */
.oct-res-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 0 6px;
}

.res-brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 900;
  color: #22c55e;
}

.res-brand-tagline {
  font-size: 0.78rem;
  color: var(--text-slate);
}

/* Bottom Action Buttons */
.oct-res-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-res-revenge {
  width: 100%;
  padding: 16px;
  border-radius: 20px;
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-top: 2px solid rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.btn-revenge-loss {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 5px 0 #991b1b, 0 10px 24px rgba(239, 68, 68, 0.4);
}

.btn-revenge-loss:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #991b1b, 0 14px 30px rgba(239, 68, 68, 0.55);
}

.btn-revenge-win {
  background: linear-gradient(180deg, #65d600 0%, #4eb600 100%);
  box-shadow: 0 5px 0 #348400, 0 10px 24px rgba(90, 200, 0, 0.4);
}

.btn-revenge-win:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #348400, 0 14px 30px rgba(90, 200, 0, 0.55);
}

.btn-res-revenge:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.res-bottom-nav-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.btn-res-home {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #152238;
  border: 1.5px solid #284166;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 0 #0b1424;
}

.btn-res-home:hover {
  background: #1e3150;
  transform: translateY(-2px);
}

.btn-res-new-battle {
  flex: 1;
  height: 52px;
  border-radius: 16px;
  background: #111d30;
  border: 1.5px solid #243854;
  color: #94a3b8;
  font-size: 0.92rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 0 #070e1a;
}

.btn-res-new-battle:hover {
  background: #182a44;
  color: #ffffff;
  border-color: #38bdf8;
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════════════
   LEADERBOARD SCREEN (1:1 EXACT TO REFERENCE)
   ════════════════════════════════════════════════════════════ */
.leaderboard-wrapper {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 10px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.lb-top-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Period Filter Tabs */
.lb-period-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0d1726;
  border: 1.5px solid #1c2e47;
  padding: 4px 6px;
  border-radius: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.lb-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-slate);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.lb-tab-btn:hover {
  color: #ffffff;
}

.lb-tab-btn.active {
  background: #19365c;
  color: #38bdf8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 3D Podium Layout */
.lb-podium-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 440px;
  margin: 10px auto 14px;
  padding-bottom: 0;
}

.podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  cursor: pointer;
  transition: var(--transition);
}

.podium-slot:hover {
  transform: translateY(-4px);
}

.podium-crown {
  font-size: 1.6rem;
  margin-bottom: -6px;
  filter: drop-shadow(0 0 10px #f59e0b);
  z-index: 3;
  animation: crownBounce 2.5s infinite ease-in-out;
}

@keyframes crownBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.podium-avatar-wrapper {
  position: relative;
  margin-bottom: 6px;
}

.podium-avatar-img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #0d1e16;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  overflow: hidden;
}

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

.avatar-first .podium-avatar-img {
  width: 74px;
  height: 74px;
  border: 3px solid #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

.avatar-second .podium-avatar-img {
  border: 3px solid #94a3b8;
  box-shadow: 0 0 14px rgba(148, 163, 184, 0.4);
}

.avatar-third .podium-avatar-img {
  border: 3px solid #ea580c;
  box-shadow: 0 0 14px rgba(234, 88, 12, 0.4);
}

.podium-player-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.podium-player-score {
  font-size: 0.85rem;
  font-weight: 900;
  color: #94a3b8;
  margin-bottom: 8px;
}

.podium-player-score.score-gold {
  color: #fbbf24;
}

/* Podium 3D Blocks */
.podium-block {
  width: 100%;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.block-first {
  height: 115px;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  border: 1.5px solid #fbbf24;
  border-bottom: none;
}

.block-second {
  height: 85px;
  background: linear-gradient(180deg, #3b506e 0%, #24354c 100%);
  border: 1.5px solid #4a658a;
  border-bottom: none;
}

.block-third {
  height: 65px;
  background: linear-gradient(180deg, #c2410c 0%, #9a3412 100%);
  border: 1.5px solid #ea580c;
  border-bottom: none;
}

.podium-rank-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

/* Leaderboard Rows List */
.lb-rows-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.lb-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #0e192c 0%, #09121f 100%);
  border: 1.5px solid #1a2a40;
  border-top: 1.5px solid #284166;
  border-radius: 20px;
  padding: 12px 20px;
  box-shadow: 0 4px 0 #050a12, 0 8px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.lb-row-item:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
  box-shadow: 0 6px 0 #050a12, 0 12px 26px rgba(0, 212, 255, 0.15);
}

.lb-row-item.current-user-highlight {
  border: 1.5px solid #22c55e !important;
  box-shadow: 0 4px 0 #050a12, 0 0 14px rgba(34, 197, 94, 0.3) !important;
}

.lb-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lb-row-rank {
  font-size: 1.1rem;
  font-weight: 900;
  color: #94a3b8;
  width: 24px;
  text-align: center;
}

.lb-row-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #152238;
  border: 1.5px solid #243854;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: #ffffff;
  overflow: hidden;
  flex-shrink: 0;
}

.lb-row-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lb-row-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lb-row-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
}

.lb-row-rank-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lb-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.lb-row-score {
  font-size: 1.25rem;
  font-weight: 900;
  color: #22c55e;
  line-height: 1;
}

.lb-row-score-lbl {
  font-size: 0.68rem;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════
   OKTAGON CHALLENGE & RANK LOCKED MODALS (1:1 EXACT)
   ════════════════════════════════════════════════════════════ */
.oct-challenge-modal-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, #111e30 0%, #09121f 100%);
  border: 1.5px solid #223755;
  border-top: 2px solid #33517c;
  border-radius: 28px;
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 212, 255, 0.08);
}

.oct-challenge-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 10px 0 16px 0;
}

.oct-lock-top-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #142338;
  border: 1.5px solid #223755;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 2px 0;
}

.oct-challenge-avatar-wrap {
  margin-bottom: 12px;
}

.oct-challenge-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #152238;
  border: 2px solid #284166;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.oct-challenge-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oct-challenge-user-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  width: 100%;
}

.oct-challenge-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
}

.oct-challenge-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #94a3b8;
}

.oct-challenge-dot {
  color: #475569;
}

.oct-challenge-score {
  color: #22c55e;
  font-weight: 900;
}

.oct-challenge-quota-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 6px;
}

.oct-locked-explanation {
  font-size: 0.86rem;
  font-weight: 600;
  color: #cbd5e1;
  line-height: 1.5;
  margin-top: 8px;
  padding: 0 10px;
}

.oct-challenge-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* 3D Action Buttons */
.btn-oct-3d-green {
  width: 100%;
  padding: 15px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  border: 1.5px solid #4ade80;
  border-top: 2px solid #86efac;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 5px 0 #15803d, 0 10px 24px rgba(34, 197, 94, 0.4);
  transition: var(--transition);
}

.btn-oct-3d-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #15803d, 0 14px 28px rgba(34, 197, 94, 0.6);
}

.btn-oct-3d-green:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #15803d;
}

.btn-oct-3d-slate {
  width: 100%;
  padding: 15px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #3b506e 0%, #293a52 100%);
  border: 1.5px solid #4d668c;
  border-top: 2px solid #6484b3;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 0 #182434, 0 10px 20px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.btn-oct-3d-slate:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #182434, 0 14px 24px rgba(0, 0, 0, 0.6);
}

.btn-oct-3d-slate:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #182434;
}

/* ════════════════════════════════════════════════════════════
   CLEAN EXECUTIVE ADMIN PANEL (STRUCTURED BLOCK-BY-BLOCK LAYOUT)
   ════════════════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════════════════
   CLEAN EXECUTIVE ADMIN PANEL (DASHBOARD-MATCHED 3D STYLING)
   ════════════════════════════════════════════════════════════ */
.admin-layout-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.admin-block {
  background: linear-gradient(180deg, #0e192c 0%, #08111e 100%);
  border: 1.5px solid #1c2b42;
  border-top: 1.5px solid #284166;
  border-radius: 20px;
  padding: 18px 24px;
  box-shadow: 0 5px 0 #050a12, 0 10px 28px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

/* Block 1: Header Block */
.admin-header-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
}

.admin-header-block::before {
  content: '';
  position: absolute;
  left: -20px;
  top: -20px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-header-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  color: #ffffff;
  border: 2px solid rgba(0, 212, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.admin-header-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.admin-header-sub {
  font-size: 0.8rem;
  color: var(--text-slate);
  margin-top: 4px;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* 3D Action Buttons matching Dashboard */
.btn-admin-3d-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #00b4ff 0%, #008be3 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-top: 2px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 #005bb0, 0 8px 18px rgba(0, 140, 255, 0.35);
  transition: var(--transition);
}

.btn-admin-3d-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #005bb0, 0 12px 22px rgba(0, 140, 255, 0.5);
}

.btn-admin-3d-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #005bb0, 0 4px 10px rgba(0, 140, 255, 0.3);
}

.btn-admin-3d-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #1c2b42 0%, #0f1a2c 100%);
  border: 1.5px solid #284166;
  border-top: 1.5px solid #3c5e8f;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 0 #070e17, 0 6px 14px rgba(0, 0, 0, 0.35);
  transition: var(--transition);
}

.btn-admin-3d-secondary:hover {
  transform: translateY(-2px);
  border-color: #00d4ff;
  box-shadow: 0 6px 0 #070e17, 0 10px 20px rgba(0, 212, 255, 0.2);
}

.btn-admin-3d-secondary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #070e17;
}

/* Block 2: Dynamic Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

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

.admin-stat-card {
  background: linear-gradient(180deg, #0e192c 0%, #08111e 100%);
  border: 1.5px solid #1c2b42;
  border-top: 1.5px solid #284166;
  border-radius: 20px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 0 #050a12, 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

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

.stat-cyan {
  border-top-color: #38bdf8;
}

.stat-cyan:hover {
  box-shadow: 0 7px 0 #050a12, 0 12px 26px rgba(0, 212, 255, 0.25);
  border-color: #00d4ff;
}

.stat-gold {
  border-top-color: #fbbf24;
}

.stat-gold:hover {
  box-shadow: 0 7px 0 #050a12, 0 12px 26px rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
}

.stat-emerald {
  border-top-color: #34d399;
}

.stat-emerald:hover {
  box-shadow: 0 7px 0 #050a12, 0 12px 26px rgba(16, 185, 129, 0.25);
  border-color: #10b981;
}

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: #38bdf8;
}

.badge-gold {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.stat-card-icon {
  font-size: 1.25rem;
  opacity: 0.9;
}

.admin-stat-val {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
  color: #00d4ff;
  letter-spacing: -0.5px;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.val-gold {
  color: #fbbf24;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.val-emerald {
  color: #34d399;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.admin-stat-lbl {
  font-size: 0.8rem;
  color: var(--text-slate);
  font-weight: 600;
}

/* Block 3: Navigation Tabs Bar */
.admin-nav-tabs-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: linear-gradient(180deg, #0e192c 0%, #08111e 100%);
  border: 1.5px solid #1c2b42;
  border-top: 1.5px solid #284166;
  border-radius: 18px;
  box-shadow: 0 5px 0 #050a12, 0 8px 20px rgba(0, 0, 0, 0.4);
  flex-wrap: wrap;
}

.admin-nav-tab-btn {
  position: relative;
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--text-slate);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

.admin-nav-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.admin-nav-tab-btn.active {
  background: linear-gradient(180deg, #00c6ff 0%, #0072ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  box-shadow: 0 4px 0 #004fb3, 0 8px 20px rgba(0, 198, 255, 0.45);
}

.admin-tab-counter-badge {
  position: absolute;
  top: -8px;
  right: -6px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.9), 0 3px 6px rgba(0, 0, 0, 0.4);
  animation: pulseBadge 2s infinite ease-in-out;
  pointer-events: none;
  z-index: 5;
}

@keyframes pulseBadge {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 18px rgba(239, 68, 68, 1);
  }
}

/* Block 4: Content Section */
.admin-content-block,
#adm-sec-users,
#adm-sec-requests,
#adm-sec-exams {
  display: block;
  width: 100%;
  padding: 22px 24px;
}

.admin-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.admin-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-toolbar-subrow {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.admin-user-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-filter-btn {
  padding: 8px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #18263a 0%, #0e192a 100%);
  border: 1.5px solid #22354f;
  border-top: 1.5px solid #304a6d;
  color: var(--text-slate);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 3px 0 #070e17;
  transition: var(--transition);
}

.admin-filter-btn:hover {
  transform: translateY(-1px);
  color: #ffffff;
  border-color: #3b577d;
  box-shadow: 0 4px 0 #070e17;
}

.admin-filter-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #070e17;
}

.admin-filter-btn.active {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  border-color: #38bdf8;
  border-top: 1.5px solid #7dd3fc;
  color: #ffffff;
  box-shadow: 0 3px 0 #075985, 0 4px 12px rgba(2, 132, 199, 0.4);
}

.filter-count-chip {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-filter-btn.active .filter-count-chip {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.admin-search-wrapper {
  position: relative;
  width: 280px;
  min-width: 220px;
}

.admin-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--text-dim);
  pointer-events: none;
}

.admin-search-input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border-radius: 12px;
  background: #060d1a;
  border: 1.5px solid #1c2b42;
  border-top: 1.5px solid #142033;
  color: #ffffff;
  font-size: 0.82rem;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.admin-user-actions-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Analytics Detail Grid & Subcards */
.analytics-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .analytics-detail-grid {
    grid-template-columns: 1fr;
  }
}

.analytics-sub-card {
  background: linear-gradient(180deg, #0e192c 0%, #08111e 100%);
  border: 1.5px solid #1c2b42;
  border-top: 1.5px solid #284166;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 5px 0 #050a12, 0 8px 20px rgba(0, 0, 0, 0.4);
}

.analytics-sub-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.analytics-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
  color: var(--text-slate);
}

.analytics-metric-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* User Pill Tags */
.user-pill-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.4px;
  line-height: 1.2;
}

.user-pill-tag.tag-admin {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #c084fc;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.user-pill-tag.tag-moderator {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #60a5fa;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.user-pill-tag.tag-student {
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.45);
  color: #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.user-pill-tag.tag-guest {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}

.user-pill-tag.tag-exam-approved {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.user-pill-tag.tag-exam-denied {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.clickable-role,
.clickable-pill {
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.clickable-role:hover,
.clickable-pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.2);
}

.clickable-role:active,
.clickable-pill:active {
  transform: translateY(1px);
}

/* Modern Tables & Custom Scrollbars */
.admin-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  border: 1.5px solid #1c2b42;
  background: #070d1a;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 212, 255, 0.35) rgba(255, 255, 255, 0.02);
}

.admin-table-container::-webkit-scrollbar {
  height: 6px;
}

.admin-table-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.admin-table-container::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.35);
  border-radius: 4px;
}

.admin-table-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.65);
}

.admin-modern-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.admin-modern-table thead tr {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1.5px solid #1c2b42;
}

.admin-modern-table th {
  padding: 14px 18px;
  color: var(--text-slate);
  font-size: 0.74rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.admin-modern-table td {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.admin-modern-table tbody tr {
  transition: background 0.15s ease;
}

.admin-modern-table tbody tr:hover {
  background: rgba(0, 212, 255, 0.05);
}

.admin-modern-table tbody tr:last-child td {
  border-bottom: none;
}

/* Language-style Toggle Switch: ВКЛ (Green) / ВЫКЛ (Red) */
.admin-pill-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-dark-border);
  border-radius: var(--radius-full);
  padding: 2px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  gap: 2px;
}

.admin-pill-toggle:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-pill-toggle .toggle-opt {
  padding: 4px 10px;
  border: none;
  background: transparent;
  color: var(--text-slate);
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Green when ON */
.admin-pill-toggle .toggle-opt.opt-on.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Red when OFF */
.admin-pill-toggle .toggle-opt.opt-off.active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* Interactive Role Dropdown Select */
.role-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 5px 26px 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2394a3b8' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  border: 1px solid transparent;
}

.role-select:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
}

.role-select.tag-admin {
  background-color: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.4);
}

.role-select.tag-moderator {
  background-color: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.4);
}

.role-select.tag-student {
  background-color: rgba(0, 212, 255, 0.15);
  color: #00d4ff;
  border-color: rgba(0, 212, 255, 0.4);
}

.role-select option {
  background: #0b1526;
  color: #ffffff;
  font-weight: 700;
  padding: 8px;
}

/* Legacy micro buttons for other views */
.btn-tbl-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-tbl-3d.plan-grant {
  background: linear-gradient(180deg, #00b4ff 0%, #008be3 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  box-shadow: 0 3px 0 #005bb0;
}

.btn-tbl-delete {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.btn-tbl-delete:hover {
  background: rgba(239, 68, 68, 0.28);
  border-color: #ef4444;
  color: #ffffff;
  transform: scale(1.12);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.btn-tbl-delete:active {
  transform: scale(0.95);
}

.admin-section-header {
  margin-bottom: 16px;
}

.admin-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.admin-section-sub {
  font-size: 0.8rem;
  color: var(--text-slate);
  margin-top: 3px;
}

/* ════════════════════════════════════════════════════════════
   MODALS
   ════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(4, 7, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-overlay:not(.active) {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Authentication Lock Styles */
body.auth-locked #app {
  filter: blur(12px);
  pointer-events: none !important;
  user-select: none !important;
}

body.auth-locked #modal-auth #btn-close-auth-modal {
  display: none !important;
}

/* Admin Card & Tab Visibility Rules (Strictly Admin Only) */
#card-admin-link.hidden,
#tab-admin-nav.hidden,
#card-admin-link:not(.admin-visible),
#tab-admin-nav:not(.admin-visible) {
  display: none !important;
}

#card-admin-link.admin-visible {
  display: flex !important;
}

#tab-admin-nav.admin-visible {
  display: inline-flex !important;
}

.modal-window {
  background: #0b1426;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 24px;
  padding: 24px 20px;
  width: 100%;
  max-width: 460px;
  max-height: calc(100dvh - 32px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
}

.modal-window::-webkit-scrollbar {
  width: 4px;
}

.modal-window::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.2);
  border-radius: 4px;
}

.modal-overlay.active .modal-window {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-dark-border);
  color: var(--text-slate);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
}

.modal-tabs {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.modal-tab-btn {
  flex: 1;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--text-slate);
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.modal-tab-btn.active {
  background: #0072ff;
  color: #ffffff;
}

/* Feature Showcase Modal (Premium Sapphire & Gold Edition) */
.modal-showcase-window {
  max-width: 380px;
  width: 90%;
  background: radial-gradient(ellipse at 50% 0%, #16284f 0%, #0c162b 65%, #070d1a 100%);
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 26px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 32px rgba(0, 180, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  padding: 24px 20px 20px;
  position: relative;
  box-sizing: border-box;
}

.showcase-header-emblem {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 auto 10px;
  border: 1.5px solid rgba(0, 212, 255, 0.5);
  box-shadow: 0 8px 24px rgba(0, 140, 255, 0.45), inset 0 0 12px rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 102, 255, 0.3));
}

.showcase-header-emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.showcase-vip-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.16) 0%, rgba(245, 158, 11, 0.24) 100%);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.25);
}

.showcase-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 4px;
  text-align: center;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.showcase-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
  text-align: center;
  margin-bottom: 12px;
}

.showcase-features-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.showcase-feat-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.feat-icon-box {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feat-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.feat-text-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feat-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.22;
}

.feat-sub {
  display: none;
}

.showcase-actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  margin-top: 14px;
}

.btn-showcase-proceed {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #0099ff 0%, #0066ff 50%, #0044cc 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 22px rgba(0, 102, 255, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 3px rgba(0, 20, 60, 0.6);
}

.btn-showcase-proceed:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0, 102, 255, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.btn-showcase-back {
  width: 100%;
  padding: 11px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s, border-color 0.2s;
}

.btn-showcase-back:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
  color: #ffffff;
}

/* Forms */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

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

.form-input-styled {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-dark-border);
  color: var(--text-white);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.form-input-styled:focus {
  border-color: #00d4ff;
  background: rgba(255, 255, 255, 0.08);
}

.form-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: var(--text-slate);
  cursor: pointer;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-action.primary {
  background: linear-gradient(135deg, #0072ff 0%, #0056d6 100%);
  color: #ffffff;
}

.btn-action.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 114, 255, 0.4);
}

.btn-action.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-dark-border);
  color: var(--text-white);
}

.btn-action.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-full {
  width: 100%;
}

/* Toast Box */
#toast-box {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-msg {
  background: #0c162b;
  border: 1px solid #00d4ff;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

/* ============================================================ */
/* COMPREHENSIVE RESPONSIVE & MOBILE ADAPTATION SYSTEM (PC ⟷ Mobile) */
/* ============================================================ */

/* Global container constraints */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

#app {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 992px) {
  .main-container {
    max-width: 680px;
    padding: 16px 14px 70px;
  }

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

@media (max-width: 768px) {
  /* 1. Mobile Clean Header: Logo + Title left, RU/UZ right */
  .navbar {
    padding: 8px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: rgba(6, 10, 20, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .nav-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  /* Global Back Button (Visible on all non-dashboard screens) */
  #btn-global-back {
    display: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    margin-right: 4px;
  }

  .nav-brand {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
  }

  .brand-logo-img {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.35) !important;
    display: block !important;
  }

  .brand-text-block {
    display: flex !important;
    flex-direction: column !important;
  }

  .brand-title {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.2px !important;
    background: linear-gradient(90deg, #ffffff 0%, #00d4ff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }

  .brand-subtitle {
    display: none !important;
  }

  /* Completely hide bulky navigation buttons on mobile */
  .nav-tabs {
    display: none !important;
  }

  .nav-right {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  /* Hide account pill name from top bar on mobile */
  .user-pill {
    display: none !important;
  }

  .pill-lang {
    padding: 2px !important;
    border-radius: var(--radius-full) !important;
  }

  .pill-lang button {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
  }

  .btn-nav-auth {
    padding: 5px 10px !important;
    font-size: 0.76rem !important;
    gap: 4px !important;
  }

  /* 2. Mobile Container Layout */
  .screen {
    padding-bottom: 30px !important;
  }

  .main-container {
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    padding: 12px 14px 30px 14px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  /* 3. Dashboard Profile Card */
  .exact-user-card {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 16px !important;
    border-radius: 18px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .exact-user-avatar {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.2rem !important;
    flex-shrink: 0 !important;
  }

  .exact-user-details {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .exact-user-name {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 5px !important;
    word-break: break-word !important;
  }

  .exact-user-meta-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .pill-id-badge,
  .pill-progress-info {
    font-size: 0.72rem !important;
    padding: 3px 9px !important;
    border-radius: var(--radius-full) !important;
  }

  /* Hide paid upgrade notice */
  #dash-status-notice {
    display: none !important;
  }

  /* 4. Top Cards: Итоговый экзамен & Уроки */
  .exact-exam-card {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 16px !important;
    border-radius: 18px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  .exact-exam-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  .exact-exam-title {
    font-size: 1.02rem !important;
    font-weight: 800 !important;
  }

  .exact-exam-sub {
    display: none !important;
  }

  .exact-lock-badge {
    align-self: center !important;
    font-size: 0.72rem !important;
    padding: 5px 10px !important;
    border-radius: var(--radius-full) !important;
    flex-shrink: 0 !important;
  }

  .exact-lessons-card {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 16px !important;
    border-radius: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  .exact-lessons-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  .exact-lessons-title {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
  }

  .exact-lessons-sub {
    font-size: 0.74rem !important;
    color: rgba(255, 255, 255, 0.88) !important;
  }

  .exact-white-play-btn {
    width: 42px !important;
    height: 42px !important;
    font-size: 0.95rem !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* 5. Split Row: Пробный тест + Октагон (В ОДНУ СТРОКУ 2 КОЛОНКИ КАК НА РЕФЕРЕНСЕ) */
  .exact-split-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .exact-test-card,
  .exact-octagon-card {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 16px 12px 14px 12px !important;
    border-radius: 22px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    min-height: 125px !important;
  }

  .exact-ref-circle-top {
    margin-bottom: 8px !important;
  }

  .exact-ref-white-circle {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.05rem !important;
  }

  .exact-card-title {
    font-size: 0.96rem !important;
    font-weight: 800 !important;
    margin-bottom: 1px !important;
    line-height: 1.2 !important;
  }

  .exact-card-sub {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
  }

  /* 6. Bottom Row: 1-колоночный список (Шпаргалки, Ошибки, Сохранённые) */
  .exact-triple-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .exact-mini-card {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 16px !important;
    border-radius: 18px !important;
    display: flex;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  .exact-mini-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 !important;
  }

  .exact-mini-icon-blob {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
  }

  .exact-mini-title {
    font-size: 0.88rem !important;
    font-weight: 800 !important;
  }

  /* 7. Modals & Admin & Quiz */
  .modal-box {
    width: 94% !important;
    max-width: 430px !important;
    padding: 18px 14px !important;
    border-radius: 20px !important;
    max-height: 88vh !important;
  }

  .admin-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .admin-metric-card {
    padding: 10px 12px;
  }

  .admin-metric-val {
    font-size: 1.3rem;
  }

  .admin-filter-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .admin-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .admin-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  /* Quiz Screen Mobile Adaptation (Compact, Elegant, 1:1 with Screenshot 1) */
  #screen-quiz .main-container {
    padding: 6px 12px 24px 12px !important;
    gap: 8px !important;
  }

  .quiz-top-bar {
    padding: 8px 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 4px !important;
  }

  .quiz-nav-back-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    margin-right: 8px !important;
  }

  .quiz-top-title-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    min-width: 0 !important;
    flex: 1 !important;
    color: #ffffff !important;
  }

  .quiz-dots-ribbon {
    gap: 6px !important;
    padding: 4px 0 !important;
    margin-bottom: 6px !important;
  }

  .q-dot-pill {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 9px !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #94a3b8 !important;
  }

  .q-dot-pill.active {
    border: 2px solid #00d4ff !important;
    background: #0d2247 !important;
    color: #ffffff !important;
  }

  .q-dot-pill.correct {
    background: #22c55e !important;
    color: #ffffff !important;
    border-color: #22c55e !important;
  }

  .q-dot-pill.wrong {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
  }

  .question-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 4px 0 8px 0 !important;
    margin-bottom: 6px !important;
  }

  .question-prompt {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 12px !important;
    text-align: left !important;
  }

  .options-list {
    gap: 8px !important;
  }

  .opt-btn {
    padding: 11px 12px !important;
    gap: 10px !important;
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f1f5f9 !important;
  }

  .opt-idx {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
  }

  .quiz-bottom-actions {
    margin-top: 6px !important;
    display: flex !important;
    justify-content: flex-end !important;
  }

  .quiz-bottom-actions .btn-action {
    padding: 8px 16px !important;
    font-size: 0.82rem !important;
    border-radius: var(--radius-full) !important;
  }

  /* Octagon Arena & Countdown Mobile Adaptation */
  .oktagon-countdown-card {
    width: 90% !important;
    max-width: 340px !important;
    padding: 22px 16px !important;
    border-radius: 24px !important;
    margin: 30px auto !important;
  }

  .oct-cd-avatar {
    width: 54px !important;
    height: 54px !important;
    font-size: 1.25rem !important;
  }

  .oct-cd-name {
    font-size: 0.88rem !important;
  }

  .oct-cd-timer-circle {
    width: 68px !important;
    height: 68px !important;
    margin-bottom: 10px !important;
  }

  .oct-countdown-number {
    font-size: 1.9rem !important;
  }

  .duel-top-bar {
    padding: 6px 8px !important;
    gap: 6px !important;
    margin-bottom: 6px !important;
  }

  .duel-exit-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    font-size: 1.15rem !important;
    margin-right: 4px !important;
  }

  .duel-player-avatar {
    width: 38px !important;
    height: 38px !important;
    font-size: 0.95rem !important;
  }

  .duel-player-name {
    font-size: 0.82rem !important;
  }

  .duel-player-rank {
    font-size: 0.65rem !important;
  }

  .duel-score-num {
    font-size: 1.6rem !important;
  }

  .duel-sub-bar {
    padding: 0 !important;
    margin-bottom: 6px !important;
  }

  .duel-arena-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .duel-right-col {
    display: none !important;
  }

  .duel-question-title {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    color: #ffffff !important;
    margin-bottom: 12px !important;
    text-align: left !important;
  }

  .duel-options-list {
    gap: 8px !important;
  }

  .duel-opt-btn {
    padding: 11px 12px !important;
    border-radius: 14px !important;
    gap: 10px !important;
    font-size: 0.9rem !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .duel-opt-key {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    color: #94a3b8 !important;
  }

  /* Modals Mobile Adaptation (Ultra-Compact, Floating Centered Frame) */
  .modal-overlay {
    padding: 16px 12px !important;
  }

  .modal-overlay.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .modal-window {
    padding: 18px 16px 14px 16px !important;
    border-radius: 22px !important;
    max-height: 90dvh !important;
    max-height: 90vh !important;
    box-sizing: border-box !important;
  }

  .modal-close-btn {
    top: 12px !important;
    right: 12px !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #94a3b8 !important;
    font-size: 0.85rem !important;
  }

  /* 1. Feature Showcase / VIP Paywall Modal (Ultra-Premium, Floating Luxury Card) */
  .modal-showcase-window {
    width: 88% !important;
    max-width: 340px !important;
    padding: 24px 20px 20px 20px !important;
    border-radius: 26px !important;
    border: 1.5px solid rgba(0, 212, 255, 0.45) !important;
    background: radial-gradient(ellipse at 50% 0%, #16284f 0%, #0c162b 65%, #070d1a 100%) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 32px rgba(0, 180, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    margin: auto !important;
    text-align: center !important;
  }

  .modal-close-btn {
    top: 14px !important;
    right: 14px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #cbd5e1 !important;
    font-size: 0.88rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
  }

  .showcase-header-emblem {
    width: 56px !important;
    height: 56px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    margin: 0 auto 10px !important;
    box-shadow: 0 8px 24px rgba(0, 140, 255, 0.45), inset 0 0 12px rgba(255, 255, 255, 0.25) !important;
    border: 1.5px solid rgba(0, 212, 255, 0.55) !important;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 102, 255, 0.3)) !important;
    display: flex !important;
  }

  .showcase-vip-tag {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.16) 0%, rgba(245, 158, 11, 0.24) 100%) !important;
    border: 1px solid rgba(251, 191, 36, 0.5) !important;
    color: #fbbf24 !important;
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.6px !important;
    padding: 3px 10px !important;
    margin-bottom: 6px !important;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.25) !important;
  }

  .showcase-title {
    font-size: 1.22rem !important;
    font-weight: 900 !important;
    margin-bottom: 6px !important;
    line-height: 1.25 !important;
    color: #ffffff !important;
    letter-spacing: -0.2px !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
  }

  .showcase-desc {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
    color: #94a3b8 !important;
    margin-bottom: 4px !important;
    display: block !important;
  }

  /* Completely hide bulky features list on mobile to achieve maximum compactness */
  .showcase-features-list {
    display: none !important;
  }

  .showcase-actions-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
    width: 100% !important;
    margin-top: 16px !important;
  }

  .btn-showcase-proceed {
    width: 100% !important;
    padding: 13px 18px !important;
    font-size: 0.94rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.2px !important;
    border-radius: var(--radius-full) !important;
    background: linear-gradient(135deg, #0099ff 0%, #0066ff 50%, #0044cc 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 6px 22px rgba(0, 102, 255, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    text-shadow: 0 1px 3px rgba(0, 20, 60, 0.6) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  .btn-showcase-back {
    width: 100% !important;
    padding: 12px 18px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    border-radius: var(--radius-full) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  /* 2. Quiz Config Modal (Entry to Tests) */
  #modal-quiz-config .modal-window {
    padding: 14px 12px !important;
  }

  #modal-quiz-config img {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(16,185,129,0.3) !important;
  }

  #modal-quiz-config .modal-window > div:first-of-type {
    margin-bottom: 4px !important;
  }

  #modal-quiz-config h2 {
    font-size: 1.05rem !important;
    margin-bottom: 2px !important;
  }

  #modal-quiz-config p {
    font-size: 0.74rem !important;
    margin-bottom: 10px !important;
  }

  #modal-quiz-config .modal-window > div:last-child {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }

  #modal-quiz-config .btn-select-qcount {
    padding: 8px 6px !important;
    font-size: 0.8rem !important;
    border-radius: 10px !important;
  }

  /* 3. Subscription Order Modal */
  #modal-subscribe .modal-window {
    padding: 14px 12px !important;
  }

  #modal-subscribe img {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
  }

  #modal-subscribe .modal-window > div:first-of-type {
    margin-bottom: 8px !important;
  }

  #modal-subscribe h2 {
    font-size: 1.05rem !important;
  }

  #modal-subscribe p {
    display: none !important;
  }

  #modal-subscribe .form-field {
    gap: 2px !important;
    margin-bottom: 6px !important;
  }

  #modal-subscribe .form-field label {
    font-size: 0.68rem !important;
  }

  #modal-subscribe .form-input-styled {
    padding: 7px 10px !important;
    font-size: 0.82rem !important;
    border-radius: 10px !important;
  }

  #modal-subscribe #btn-submit-sub-request {
    margin-top: 6px !important;
    padding: 9px 12px !important;
    font-size: 0.86rem !important;
    border-radius: 12px !important;
  }

  /* 4. Auth (Login & Register) Modal */
  #modal-auth .modal-window {
    padding: 14px 12px !important;
  }

  #modal-auth img {
    width: 36px !important;
    height: 36px !important;
    margin-bottom: 3px !important;
  }

  #modal-auth h3 {
    font-size: 0.95rem !important;
  }

  #modal-auth .modal-window > div:first-of-type {
    margin-bottom: 8px !important;
  }

  #modal-auth .modal-tabs {
    padding: 2px !important;
    margin-bottom: 8px !important;
  }

  #modal-auth .modal-tab-btn {
    padding: 5px 8px !important;
    font-size: 0.75rem !important;
  }

  #modal-auth .form-field {
    gap: 2px !important;
    margin-bottom: 5px !important;
  }

  #modal-auth .form-field label {
    font-size: 0.68rem !important;
  }

  #modal-auth .form-input-styled {
    padding: 7px 10px !important;
    font-size: 0.82rem !important;
    border-radius: 10px !important;
  }

  #modal-auth .form-checkbox-row {
    font-size: 0.72rem !important;
    margin-bottom: 8px !important;
  }

  #modal-auth .btn-action {
    padding: 9px 12px !important;
    font-size: 0.86rem !important;
    border-radius: 12px !important;
  }

  .oct-hub-hero {
    padding: 16px 12px;
  }

  .oct-radar-box {
    width: 200px;
    height: 200px;
  }

  .oct-vs-bar {
    gap: 8px;
  }

  .lb-podium-container {
    gap: 6px;
    padding: 12px 4px;
  }

  .podium-slot {
    padding: 8px 4px;
  }

  .podium-name {
    font-size: 0.78rem;
  }

  .lesson-module-card {
    border-radius: 16px;
    padding: 14px;
  }

  .lesson-item-row {
    padding: 10px 12px;
  }

  #toast-box {
    left: 14px;
    right: 14px;
    bottom: 30px;
  }
}

/* ════════════════════════════════════════════════════════════
   HIDE & BLOCK NETLIFY BADGE (PC & MOBILE)
   ════════════════════════════════════════════════════════════ */
iframe[src*="netlify"],
iframe[title*="Netlify"],
iframe[id*="netlify"],
[id*="netlify-badge"],
[class*="netlify-badge"],
div[data-netlify-badge],
netlify-drawer,
#netlify-identity-widget,
div[style*="z-index"][style*="bottom"] iframe {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  bottom: -9999px !important;
  z-index: -99999 !important;
}

/* ════════════════════════════════════════════════════════════
   EXAM NAVIGATION & STATE DOTS
   ════════════════════════════════════════════════════════════ */
.q-dot-pill.postponed {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5) !important;
}

.q-dot-pill.answered {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.4) !important;
}

.opt-btn.exam-chosen {
  border-color: #00d4ff !important;
  background: rgba(0, 212, 255, 0.12) !important;
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.35) !important;
  color: #ffffff !important;
}

.opt-btn.exam-chosen .opt-letter {
  background: #00d4ff !important;
  color: #0c162b !important;
  border-color: #00d4ff !important;
  font-weight: 900 !important;
}

.btn-finish-accent {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35) !important;
  color: #ffffff !important;
}

.btn-finish-accent:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5) !important;
  transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════════
   EXAM RESULTS MODAL & CELEBRATION
   ════════════════════════════════════════════════════════════ */
#exam-confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.exam-results-modal-card {
  max-width: 580px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  z-index: 20;
  text-align: center;
  padding: 28px 24px;
  background: linear-gradient(180deg, #0f1c38 0%, #0a1124 100%);
  border: 1.5px solid rgba(0, 212, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 212, 255, 0.2);
}

.exam-res-header {
  margin-bottom: 18px;
}

.exam-res-badge-icon {
  font-size: 3.2rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 6px 16px rgba(251, 191, 36, 0.45));
  animation: badgePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgePop {
  0% { transform: scale(0.3) rotate(-15deg); opacity: 0; }
  70% { transform: scale(1.15) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.exam-res-title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0 0 6px 0;
}

.exam-res-title.passed {
  background: linear-gradient(90deg, #34d399, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.exam-res-title.failed {
  background: linear-gradient(90deg, #f87171, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.exam-res-subtitle {
  color: var(--text-slate);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 auto;
  max-width: 440px;
}

/* Score Gauge Wrap */
.exam-score-gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 18px 0;
}

.exam-score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, rgba(10, 17, 36, 0.9) 70%);
  border: 3px solid #00d4ff;
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
  transition: all 0.3s ease;
}

.exam-score-circle.failed {
  border-color: #f59e0b;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(10, 17, 36, 0.9) 70%);
}

.exam-score-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.exam-score-fraction {
  font-size: 0.78rem;
  color: var(--text-slate);
  font-weight: 700;
  margin-top: 4px;
}

.exam-res-status-pill {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 16px;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.exam-res-status-pill.pill-passed {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.exam-res-status-pill.pill-failed {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

/* Metrics Row */
.exam-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.exam-metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.exam-metric-val {
  font-size: 1.25rem;
  font-weight: 900;
}

.exam-metric-val.metric-correct { color: #34d399; }
.exam-metric-val.metric-wrong { color: #f87171; }
.exam-metric-val.metric-skipped { color: #fbbf24; }
.exam-metric-val.metric-time { color: #38bdf8; }

.exam-metric-lbl {
  font-size: 0.72rem;
  color: var(--text-slate);
  font-weight: 600;
}

/* Review Section */
.exam-review-section {
  text-align: left;
  margin: 18px 0 16px 0;
  background: rgba(12, 22, 43, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px;
}

.exam-review-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.exam-review-hint {
  font-size: 0.72rem;
  color: var(--text-slate);
}

.exam-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
  margin-top: 10px;
  padding-right: 4px;
}

.exam-review-pill {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.exam-review-pill:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.exam-review-pill.rev-correct {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #34d399;
}

.exam-review-pill.rev-wrong {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fca5a5;
}

.exam-review-pill.rev-skipped {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fde68a;
}

.exam-res-actions {
  margin-top: 14px;
}

/* ════════════════════════════════════════════════════════════
   EXAM ACCESS GATE MODAL
   ════════════════════════════════════════════════════════════ */
.exam-gate-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(0, 212, 255, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
}

.exam-gate-box-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #38bdf8;
  margin-bottom: 6px;
}

.exam-gate-req-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: #e2e8f0;
  padding: 4px 0;
}

.exam-gate-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0;
  position: relative;
}

.exam-gate-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.exam-gate-divider span {
  position: relative;
  background: #0f182e;
  padding: 0 12px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-slate);
  letter-spacing: 1px;
}