/* ==========================================================================
   RuangSNBT v31 — OFFICIAL BRAND COLOR DESIGN SYSTEM (ALL PAGES & DEVICES)
   Single Color Source of Truth (Landing Page Brand Identity):
     Deep Black        : #111113
     Charcoal          : #18181C  (Emphasis & Hero Dark Surfaces)
     Pure White        : #FFFFFF  (Primary Cards & Reading Surfaces)
     Neutral Off-White : #F6F6F7  (Main Learning & Dashboard Background)
     Soft Gray Surface : #F1F2F5  (Inner Containers, Table Headers, Subtle Pills)
     Soft Gray Text    : #666B75  (WCAG AA 5.3:1 Secondary Text)
     Border Hairline   : #E6E8EC
     Vibrant Orange    : #F58A1F  (Primary Brand CTA, Active Nav, Progress, Highlights)
     Orange Hover      : #E0750E
     Orange Soft Tint  : #FFF4E8  (Subtle Highlight Tint)
   Fresh Cache-Proof Path: assets/css/brand-v31.css
   ========================================================================== */

:root {
  --brand-black: #111113;
  --brand-charcoal: #18181C;
  --brand-charcoal-soft: #23242A;
  --brand-white: #FFFFFF;
  --brand-offwhite: #F6F6F7;
  --brand-gray-bg: #F1F2F5;
  --brand-gray-muted: #666B75;
  --brand-border: #E6E8EC;
  --brand-orange: #F58A1F;
  --brand-orange-hover: #E0750E;
  --brand-orange-deep: #C25E05;
  --brand-orange-soft: #FFF4E8;
  --brand-orange-border: #FAD9B4;

  /* Map Master & Legacy Variables Directly to Official Brand Identity */
  --gd-bg: #F6F6F7;
  --gd-surface: #FFFFFF;
  --gd-primary: #F58A1F;
  --gd-primary-dark: #E0750E;
  --gd-primary-soft: #FFF4E8;
  --gd-secondary: #FFF4E8;
  --gd-text: #111113;
  --gd-muted: #666B75;
  --gd-border: #E6E8EC;

  --bg-page: #F6F6F7;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F2F5;
  --blue-950: #111113;
  --blue-900: #18181C;
  --blue-700: #D96B08;
  --blue-600: #F58A1F;
  --blue-500: #FF9838;
  --blue-400: #FFB062;
  --blue-100: #FFF4E8;
  --blue-50: #FFF9F2;
  --grad-primary: linear-gradient(135deg, #FF9838 0%, #F58A1F 100%);
  --grad-primary-hover: linear-gradient(135deg, #F58A1F 0%, #DB710B 100%);
  --grad-banner: radial-gradient(circle at 88% 18%, rgba(245, 138, 31, 0.24) 0%, transparent 58%), linear-gradient(145deg, #18181C 0%, #111113 100%);
  --text-main: #111113;
  --text-muted: #666B75;

  --gd-r-sm: 20px;
  --gd-r-md: 24px;
  --gd-r-lg: 28px;
  --gd-shadow: 0 10px 30px -14px rgba(17, 17, 19, 0.07), 0 2px 6px rgba(17, 17, 19, 0.03);
  --gd-shadow-hover: 0 20px 42px -16px rgba(17, 17, 19, 0.13), 0 4px 12px rgba(245, 138, 31, 0.1);
}

/* ==========================================================================
   1. GLOBAL WORKSPACE SHELL, TYPOGRAPHY & NAVIGATION
   ========================================================================== */
body.app-body,
body:not(.lp-body):not(.exam-dark) {
  background: var(--brand-offwhite) !important;
  background-image: none !important;
  color: var(--brand-black);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: clip;
}

body:not(.lp-body) h1,
body:not(.lp-body) h2,
body:not(.lp-body) h3,
body:not(.lp-body) h4 {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--brand-black);
  letter-spacing: -0.025em;
}

/* Public Subpages Navbar */
body:not(.lp-body) .sn-pub-nav .sn-pub-inner {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid var(--brand-border) !important;
  box-shadow: var(--gd-shadow) !important;
}
.sn-brand-mark {
  background: var(--brand-black) !important;
  color: var(--brand-white) !important;
  border-radius: 12px !important;
  font-weight: 900 !important;
}
.sn-brand strong {
  color: var(--brand-orange-deep) !important;
}
body.lp-body .sn-pub-nav:not(.is-scrolled) .sn-brand strong {
  color: var(--brand-orange) !important;
}
body:not(.lp-body) .sn-pub-link.is-active {
  background: var(--brand-orange) !important;
  color: var(--brand-black) !important;
  font-weight: 800 !important;
}
.sn-nav-btn-primary {
  background: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
  color: var(--brand-black) !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
}
.sn-nav-btn-primary:hover {
  background: var(--brand-orange-hover) !important;
  color: var(--brand-black) !important;
}

/* Student & Admin Sidebar — Pure White Card + Vibrant Orange Active Indicator */
body.app-body .sidebar.sb-modern {
  background: var(--brand-white) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--brand-border) !important;
  border-radius: var(--gd-r-lg) !important;
  box-shadow: var(--gd-shadow) !important;
}

body.app-body .sidebar .sb-link {
  color: #52565F !important;
  border-radius: 16px !important;
  min-height: 44px;
  font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
body.app-body .sidebar .sb-link:hover {
  background: var(--brand-gray-bg) !important;
  color: var(--brand-black) !important;
}
body.app-body .sidebar .sb-link.is-active {
  background: var(--brand-orange) !important;
  color: var(--brand-black) !important;
  border-color: transparent !important;
  box-shadow: 0 10px 22px -6px rgba(245, 138, 31, 0.48) !important;
  font-weight: 800 !important;
}
body.app-body .sidebar .sb-sublink {
  border-radius: 12px;
  color: var(--brand-gray-muted);
  font-weight: 600;
}
body.app-body .sidebar .sb-sublink:hover,
body.app-body .sidebar .sb-sublink.is-active {
  background: var(--brand-orange-soft) !important;
  color: var(--brand-orange-deep) !important;
  font-weight: 700;
}
body.app-body .sidebar .sb-search-trigger {
  background: var(--brand-gray-bg) !important;
  border: 1px solid var(--brand-border) !important;
  box-shadow: none !important;
  border-radius: 14px !important;
  min-height: 42px;
  color: var(--brand-gray-muted) !important;
}
body.app-body .sidebar .sb-avatar,
.gd-top-avatar {
  background: var(--brand-black) !important;
  color: var(--brand-white) !important;
}
.gd-top-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Desktop Icon-Rail Collapsed Mode */
@media (min-width: 1024px) {
  body.app-body .app-shell.sidebar-collapsed .sidebar.sb-modern {
    width: 82px !important;
    padding: 18px 12px !important;
    align-items: center;
  }
  body.app-body .app-shell.sidebar-collapsed .sidebar .sb-link {
    width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 50% !important;
    margin: 2px auto;
    justify-content: center !important;
    padding: 0 !important;
  }
  body.app-body .app-shell.sidebar-collapsed .sidebar .sb-search-trigger,
  body.app-body .app-shell.sidebar-collapsed .sidebar .sb-account-trigger {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 auto 8px;
  }
}

/* Tablet Adaptive Icon Rail (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  body.app-body .app-shell {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 16px;
    padding: 12px;
  }
  body.app-body .mobile-topbar {
    border-radius: var(--gd-r-sm);
    border: 1px solid var(--brand-border) !important;
    margin-bottom: 14px;
  }
  body.app-body .mobile-topbar #btnOpenMobileSidebar { display: none; }
  body.app-body .sidebar.sb-modern {
    position: sticky !important;
    top: 12px !important;
    margin: 0 !important;
    height: calc(100dvh - 24px) !important;
    transform: none !important;
    width: 78px !important;
    padding: 16px 10px !important;
    align-items: center;
  }
  body.app-body .sidebar.sb-modern .sb-brand-title,
  body.app-body .sidebar.sb-modern .sb-link-text,
  body.app-body .sidebar.sb-modern .sb-chevron,
  body.app-body .sidebar.sb-modern .sb-group-label,
  body.app-body .sidebar.sb-modern .sb-sublist,
  body.app-body .sidebar.sb-modern .sb-profile-meta,
  body.app-body .sidebar.sb-modern .sb-kbd,
  body.app-body .sidebar.sb-modern .mobile-tablet-only {
    display: none !important;
  }
  body.app-body .sidebar.sb-modern .sb-link,
  body.app-body .sidebar.sb-modern .sb-search-trigger,
  body.app-body .sidebar.sb-modern .sb-account-trigger {
    justify-content: center !important;
    padding: 0 !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
  }
}

/* Consistent Global Desktop Header on Subpages */
.ms-global-topbar { display: none; }
@media (min-width: 1024px) {
  .ms-global-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 auto 20px;
    max-width: 1440px;
    padding: 4px 0;
  }
}
.ms-global-bc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-gray-muted);
}
.ms-global-bc a { color: var(--brand-orange-deep) !important; text-decoration: none; }
.ms-global-bc strong { color: var(--brand-black); font-weight: 800; }
.ms-search-pill-btn {
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--brand-border);
  background: var(--brand-white);
  color: var(--brand-gray-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--gd-shadow);
}
.ms-search-pill-btn:hover {
  border-color: var(--brand-orange);
  color: var(--brand-black);
}

/* Mobile Topbar & Safe-Area Bottom Navigation (<768px) */
body.app-body .mobile-topbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--brand-border) !important;
  padding: 8px 14px;
  min-height: 60px;
}
body.app-body .mobile-topbar .icon-btn {
  min-width: 44px;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--brand-border);
  background: var(--brand-white);
  color: var(--brand-black);
}
body.app-body .bottom-nav {
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid var(--brand-border) !important;
  box-shadow: 0 12px 32px rgba(17, 17, 19, 0.12) !important;
}
body.app-body .bottom-nav-item {
  min-height: 48px;
  border-radius: 14px;
  color: var(--brand-gray-muted) !important;
  font-weight: 600;
}
body.app-body .bottom-nav-item.is-active {
  color: var(--brand-black) !important;
  background: var(--brand-orange) !important;
  font-weight: 800 !important;
}
body.app-body .bottom-nav-item.is-active .bottom-nav-ico {
  background: transparent !important;
  color: var(--brand-black) !important;
  box-shadow: none !important;
}
@media (min-width: 768px) {
  body.app-body .bottom-nav { display: none !important; }
}

/* ==========================================================================
   2. GLOBAL STANDARDIZED COMPONENTS (ALL PAGES, CARDS, BUTTONS, TABLES)
   ========================================================================== */
.ms-page-container,
.cp-wrap,
.mh-wrap,
.ph-wrap,
.to-wrap {
  max-width: 1320px !important;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ms-page-header,
.cp-header,
.mh-header,
.ph-header,
.to-header {
  background: var(--brand-white);
  border: 1px solid var(--brand-border) !important;
  border-radius: var(--gd-r-lg);
  padding: clamp(18px, 2.2vw, 26px) !important;
  box-shadow: var(--gd-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 820px) {
  .ms-page-header, .cp-header, .mh-header, .ph-header, .to-header {
    flex-direction: row;
    align-items: center !important;
    justify-content: space-between;
  }
}

.ms-page-title, .cp-title, .mh-title, .ph-title, .to-title {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: clamp(21px, 2.2vw, 27px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em;
  color: var(--brand-black) !important;
  margin: 0;
}
.ms-page-desc, .cp-sub, .mh-sub, .ph-sub, .to-sub {
  font-size: 13.5px !important;
  color: var(--brand-gray-muted) !important;
  margin: 4px 0 0;
  line-height: 1.55;
}

/* Sub-Navigation Pill Switchers (Orange Active Pill!) */
.mh-subnav, .ph-subnav {
  background: var(--brand-white) !important;
  border: 1px solid var(--brand-border) !important;
  border-radius: 999px !important;
  padding: 5px !important;
  gap: 4px !important;
  box-shadow: var(--gd-shadow);
  max-width: 100%;
  overflow-x: auto;
}
.mh-subnav-link, .ph-subnav-link {
  border-radius: 999px !important;
  padding: 8px 15px !important;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--brand-gray-muted) !important;
  text-decoration: none;
  white-space: nowrap;
}
.mh-subnav-link:hover, .ph-subnav-link:hover {
  background: var(--brand-gray-bg) !important;
  color: var(--brand-black) !important;
}
.mh-subnav-link.is-active, .ph-subnav-link.is-active {
  background: var(--brand-orange) !important;
  color: var(--brand-black) !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 16px -4px rgba(245, 138, 31, 0.42) !important;
}

/* Pure White Content Cards */
.ms-card, .cp-panel, .cp-card, .mh-panel, .mh-card,
.ph-panel, .ph-card, .ph-q-card, .ph-toolbar,
.cp-toolbar, .mh-toolbar, .to-toolbar, .to-card, .card {
  background: var(--brand-white) !important;
  border: 1px solid var(--brand-border) !important;
  border-radius: var(--gd-r-md) !important;
  box-shadow: var(--gd-shadow) !important;
}
.ms-entity-card:hover, .to-card:hover, .mh-card:hover, .cp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--gd-shadow-hover) !important;
  border-color: #D5D8E0 !important;
}

/* Subpage KPI Metric Cards — Charcoal Emphasis + Pure White + Soft Orange Tint! */
.cp-metric, .mh-stat, .ph-stat {
  border-radius: var(--gd-r-md) !important;
  border: 1px solid var(--brand-border) !important;
  padding: 18px 20px !important;
  box-shadow: var(--gd-shadow) !important;
  background: var(--brand-white) !important;
}
.cp-metrics > .cp-metric:first-child {
  background: radial-gradient(circle at 88% 18%, rgba(245, 138, 31, 0.22) 0%, transparent 62%), var(--brand-charcoal) !important;
  border-color: var(--brand-charcoal) !important;
}
.cp-metrics > .cp-metric:first-child .cp-metric-val,
.cp-metrics > .cp-metric:first-child strong {
  color: var(--brand-white) !important;
}
.cp-metrics > .cp-metric:first-child .cp-metric-label,
.cp-metrics > .cp-metric:first-child span {
  color: rgba(255, 255, 255, 0.76) !important;
}
.cp-metrics > .cp-metric:nth-child(3) {
  background: var(--brand-orange-soft) !important;
  border-color: var(--brand-orange-border) !important;
}
.cp-metric-val {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: clamp(24px, 2.4vw, 32px) !important;
  font-weight: 800 !important;
  color: var(--brand-black) !important;
}
.cp-metric-label {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: var(--brand-gray-muted) !important;
}

/* Primary Buttons = Vibrant Brand Orange + Deep Black High-Contrast Text (8.7:1 AAA!) */
.ms-btn, .btn, .cp-btn, .mh-btn, .ph-btn, .to-btn, .to-btn-primary, .to-btn-ghost {
  border-radius: 14px !important;
  min-height: 42px;
  font-weight: 800 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
@media (max-width: 767px) {
  .ms-btn, .btn, .cp-btn, .mh-btn, .ph-btn, .to-btn, .to-btn-primary, .to-btn-ghost {
    min-height: 44px;
  }
}

.ms-btn-primary, .btn-primary, .cp-btn-primary, .mh-btn-primary, .ph-btn-primary, .to-btn-primary {
  background: var(--brand-orange) !important;
  border: 1px solid var(--brand-orange) !important;
  color: var(--brand-black) !important;
  box-shadow: 0 10px 22px -6px rgba(245, 138, 31, 0.42) !important;
}
.ms-btn-primary:hover, .btn-primary:hover, .cp-btn-primary:hover, .mh-btn-primary:hover, .ph-btn-primary:hover, .to-btn-primary:hover {
  background: var(--brand-orange-hover) !important;
  border-color: var(--brand-orange-hover) !important;
  color: var(--brand-black) !important;
  transform: translateY(-1px);
}

.ms-btn-secondary, .btn-secondary {
  background: var(--brand-charcoal) !important;
  border: 1px solid var(--brand-charcoal) !important;
  color: var(--brand-white) !important;
}
.ms-btn-secondary:hover, .btn-secondary:hover {
  background: var(--brand-black) !important;
  color: var(--brand-white) !important;
}

.btn-outline, .cp-btn:not(.cp-btn-primary), .mh-btn:not(.mh-btn-primary), .ph-btn:not(.ph-btn-primary), .to-btn-ghost {
  background: var(--brand-white) !important;
  border: 1px solid var(--brand-border) !important;
  color: var(--brand-black) !important;
}
.btn-outline:hover, .cp-btn:not(.cp-btn-primary):hover, .to-btn-ghost:hover {
  background: var(--brand-gray-bg) !important;
  border-color: var(--brand-orange) !important;
}

/* Filter Pills & Controlled Category Badges */
.cp-pill, .mh-pill, .ph-pill, .to-pill {
  border-radius: 999px !important;
  border: 1px solid var(--brand-border) !important;
  background: var(--brand-white) !important;
  color: var(--brand-gray-muted) !important;
  font-weight: 700 !important;
  padding: 7px 14px !important;
  min-height: 38px;
}
.cp-pill.is-active, .mh-pill.is-active, .ph-pill.is-active, .to-pill.is-active {
  background: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
  color: var(--brand-black) !important;
  font-weight: 800 !important;
}

.ms-pill, .badge, .gd-mat-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px !important;
  font-size: 11.5px;
  font-weight: 800;
}
/* Brand-First Badges + Restrained Category Differentiation */
.badge-blue, .tone-blue { background: var(--brand-orange-soft) !important; color: var(--brand-orange-deep) !important; }
.badge-teal, .tone-teal { background: var(--brand-gray-bg) !important; color: var(--brand-black) !important; }
.badge-amber, .badge-yellow, .tone-yellow { background: #FEF3C7 !important; color: #92400E !important; }
.badge-green, .badge-emerald, .badge-success, .tone-green { background: #ECFDF5 !important; color: #065F46 !important; }
.badge-pink, .badge-purple, .tone-pink { background: #F5F3FF !important; color: #5B21B6 !important; }

/* Inputs, Selects & Textareas */
.form-input, .form-select, .form-textarea,
input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="number"], select, textarea {
  border-radius: 14px !important;
  border: 1px solid var(--brand-border) !important;
  background: var(--brand-offwhite);
  color: var(--brand-black);
  min-height: 44px;
  padding: 9px 14px;
  font-size: 14px;
}
.form-input:focus, .form-select:focus, .form-textarea:focus,
input:focus, select:focus, textarea:focus {
  outline: none;
  background: var(--brand-white);
  border-color: var(--brand-orange) !important;
  box-shadow: 0 0 0 3px rgba(245, 138, 31, 0.18) !important;
}

/* Data Tables */
.cp-table-wrap, .table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 20px !important;
  border: 1px solid var(--brand-border) !important;
  background: var(--brand-white);
}
.cp-table th, .table th {
  background: var(--brand-gray-bg) !important;
  color: #454952 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 13px 16px !important;
  border-bottom: 1px solid var(--brand-border) !important;
}
.cp-table td, .table td {
  padding: 13px 16px !important;
  border-bottom: 1px solid var(--brand-border) !important;
  font-size: 13.5px;
  color: var(--brand-black);
}
.cp-table tr:hover td { background: #FAFAFB; }

/* Practice Options, Progress Bars & Explanation Boxes */
.option-btn {
  border-radius: 16px !important;
  border: 1.5px solid var(--brand-border) !important;
  background: var(--brand-white) !important;
  min-height: 48px !important;
  padding: 11px 15px !important;
}
.option-btn:hover {
  border-color: var(--brand-orange) !important;
  background: #FFF9F2 !important;
}
.option-btn.is-selected {
  border-color: var(--brand-orange) !important;
  background: var(--brand-orange-soft) !important;
  font-weight: 700;
}
.option-btn.is-correct {
  border-color: #15803D !important;
  background: #DCFCE7 !important;
}
.option-btn.is-wrong {
  border-color: #B42318 !important;
  background: #FEE4E2 !important;
}
.option-letter {
  border-radius: 10px !important;
  background: var(--brand-gray-bg) !important;
  color: var(--brand-black) !important;
  font-weight: 800 !important;
}
.option-btn.is-selected .option-letter {
  background: var(--brand-orange) !important;
  color: var(--brand-black) !important;
}
.explanation-box, .mh-formula {
  background: #FFF9F2 !important;
  border: 1px solid var(--brand-orange-border) !important;
  border-left: 4px solid var(--brand-orange) !important;
  border-radius: 18px !important;
  padding: 16px !important;
}
.gd-prog-track { height: 8px; border-radius: 999px; background: var(--brand-gray-bg); overflow: hidden; }
.gd-prog-fill { height: 100%; border-radius: 999px; background: var(--brand-orange) !important; transition: width 0.35s ease; }

/* Sculpted Charcoal Emphasis Banner for Tryout Resume */
.to-resume {
  background: radial-gradient(circle at 88% 20%, rgba(245, 138, 31, 0.26) 0%, transparent 58%), var(--brand-charcoal) !important;
  border-radius: var(--gd-r-md) !important;
  color: var(--brand-white) !important;
  border: 1px solid #2A2B32 !important;
  box-shadow: 0 18px 36px -16px rgba(17, 17, 19, 0.45) !important;
}
.to-resume h2, .to-resume h3, .to-resume strong { color: var(--brand-white) !important; }

/* ==========================================================================
   3. SPECIAL FOCUS CBT EXAM INTERFACE (exam.php — Readability & Zero Clutter)
   ========================================================================== */
body.exam-body:not(.exam-dark) {
  background: var(--brand-offwhite) !important;
  color: var(--brand-black) !important;
}
body.exam-body:not(.exam-dark) .exam-topbar {
  background: rgba(255, 255, 255, 0.97) !important;
  border-bottom: 1px solid var(--brand-border) !important;
}
body.exam-body:not(.exam-dark) .exam-q-card,
body.exam-body:not(.exam-dark) .exam-palette-card {
  background: var(--brand-white) !important;
  border: 1px solid var(--brand-border) !important;
  border-radius: var(--gd-r-md) !important;
  box-shadow: var(--gd-shadow) !important;
}
body.exam-body:not(.exam-dark) .exam-timer {
  background: var(--brand-charcoal) !important;
  color: var(--brand-orange) !important;
  border: 1px solid var(--brand-charcoal) !important;
  border-radius: 999px !important;
  font-family: 'Plus Jakarta Sans', monospace !important;
  font-weight: 800 !important;
}
body.exam-body:not(.exam-dark) .exam-num-btn {
  min-width: 42px;
  min-height: 42px;
  border-radius: 12px !important;
  border: 1px solid var(--brand-border) !important;
  font-weight: 700;
}
body.exam-body:not(.exam-dark) .exam-num-btn.is-answered {
  background: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
  color: var(--brand-black) !important;
  font-weight: 800;
}
body.exam-body:not(.exam-dark) .exam-num-btn.is-doubt {
  background: var(--brand-charcoal) !important;
  border-color: var(--brand-charcoal) !important;
  color: #FDE047 !important;
}
body.exam-body:not(.exam-dark) .exam-num-btn.is-current {
  box-shadow: 0 0 0 3px rgba(245, 138, 31, 0.35) !important;
}

/* Auth Pages Split Aside -> Sculpted Deep Black + Warm Amber Glow */
body.auth-v10-body { background: var(--brand-offwhite) !important; color: var(--brand-black) !important; }
.auth-aside {
  background: radial-gradient(circle at 82% 24%, rgba(245, 138, 31, 0.28) 0%, transparent 56%), linear-gradient(160deg, #18181C 0%, #0E0E11 100%) !important;
}

/* ==========================================================================
   4. MASTER DASHBOARD (.rv-*) — LAYOUT PRESERVED, BRAND COLORS APPLIED
   ========================================================================== */
.rv-wrap { width: 100%; max-width: 1560px; margin: 0 auto; }
.rv-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.rv-title-block h1 { font-size: clamp(24px, 2.4vw, 31px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin: 0; color: var(--brand-black); }
.rv-subtitle { font-size: 13px; color: var(--brand-gray-muted); margin: 3px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-top-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.rv-currency-pill {
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  padding: 7px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--gd-shadow);
}
.rv-curr-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--brand-black);
  font-variant-numeric: tabular-nums;
}
.rv-bell-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  box-shadow: var(--gd-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-black);
  cursor: pointer;
  position: relative;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.rv-bell-btn:hover { transform: translateY(-2px); border-color: var(--brand-orange); }
.rv-bell-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-orange);
  border: 2px solid var(--brand-white);
}

.rv-bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.rv-left-zone { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* Top 3 KPI Cards: Sculpted Charcoal (#18181C) | Pure White (#FFFFFF) | Warm Soft Orange (#FFF4E8) */
.rv-kpi-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 480px) {
  .rv-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.rv-kpi-card {
  border-radius: var(--gd-r-md);
  padding: clamp(16px, 1.8vw, 22px) clamp(16px, 2vw, 24px);
  min-height: 122px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--brand-border);
  box-shadow: var(--gd-shadow);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}
.rv-kpi-card:hover { transform: translateY(-3px); box-shadow: var(--gd-shadow-hover); }

/* Card 1: Sculpted Charcoal Emphasis */
.rv-kpi-sky {
  background: radial-gradient(circle at 88% 18%, rgba(245, 138, 31, 0.25) 0%, transparent 62%), var(--brand-charcoal) !important;
  border-color: #26272E !important;
}
.rv-kpi-sky .rv-kpi-label { color: rgba(255, 255, 255, 0.8) !important; }
.rv-kpi-sky .rv-kpi-icon { color: var(--brand-orange) !important; }
.rv-kpi-sky .rv-kpi-val { color: var(--brand-white) !important; }
.rv-kpi-sky .rv-kpi-val small { color: var(--brand-orange) !important; opacity: 1; }

/* Card 2: Pure White Editorial */
.rv-kpi-blue {
  background: var(--brand-white) !important;
  border-color: var(--brand-border) !important;
}
.rv-kpi-blue .rv-kpi-label { color: var(--brand-gray-muted) !important; }
.rv-kpi-blue .rv-kpi-icon { color: var(--brand-black) !important; }

/* Card 3: Soft Orange Highlight Surface */
.rv-kpi-pink {
  background: var(--brand-orange-soft) !important;
  border-color: var(--brand-orange-border) !important;
}
.rv-kpi-pink .rv-kpi-label { color: #7C3D05 !important; }
.rv-kpi-pink .rv-kpi-icon { color: var(--brand-orange-deep) !important; }

.rv-kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rv-kpi-label { font-size: 13.5px; font-weight: 700; }
.rv-kpi-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rv-kpi-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--brand-black);
  font-variant-numeric: tabular-nums;
}
.rv-kpi-val small { font-size: 0.62em; font-weight: 500; opacity: 0.65; }

.rv-sub-bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 900px) { .rv-sub-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .rv-bento { grid-template-columns: minmax(0, 1.95fr) minmax(320px, 0.95fr); gap: 20px; } }
@media (min-width: 1440px) { .rv-bento { grid-template-columns: minmax(0, 2.05fr) 390px; gap: 22px; } }

.rv-white-panel {
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--gd-r-lg);
  padding: clamp(18px, 2vw, 24px);
  box-shadow: var(--gd-shadow);
  min-width: 0;
}
.rv-sec-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.rv-sec-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--brand-black);
}
.rv-count-pill, .ms-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--brand-orange);
  color: var(--brand-black);
  font-size: 11.5px;
  font-weight: 800;
}
.rv-icon-ghost {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--brand-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.rv-icon-ghost:hover { background: var(--brand-gray-bg); }

/* Category Strip — Neutral Off-White Tiles + Vibrant Orange Active Border */
.rv-cat-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: none; }
.rv-cat-strip::-webkit-scrollbar { display: none; }
.rv-cat-tile {
  flex: 1 0 68px;
  min-height: 92px;
  border-radius: 20px;
  background: var(--brand-offwhite) !important;
  color: var(--brand-black) !important;
  border: 1.5px solid var(--brand-border);
  padding: 12px 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.rv-cat-tile:hover { transform: translateY(-3px); border-color: #D0D4DC; }
.rv-cat-tile.is-active {
  background: var(--brand-orange-soft) !important;
  border-color: var(--brand-orange) !important;
  color: var(--brand-black) !important;
  box-shadow: 0 8px 20px -8px rgba(245, 138, 31, 0.35);
}
.rv-cat-tile span { font-size: 11px; font-weight: 800; line-height: 1.15; text-align: center; }

/* 2 Featured 3D Character Cards: Card 1 = Sculpted Charcoal + Amber Glow | Card 2 = Soft Warm Cream-White */
.rv-featured-stack { display: flex; flex-direction: column; gap: 16px; }
.rv-feat-card {
  position: relative;
  border-radius: 26px;
  padding: 16px 18px 18px;
  min-height: 208px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transform-style: preserve-3d;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}
.rv-feat-card:hover { box-shadow: var(--gd-shadow-hover); }

.rv-feat-yellow {
  background: radial-gradient(circle at 24% 72%, rgba(245, 138, 31, 0.26) 0%, transparent 56%), linear-gradient(145deg, #1D1E23 0%, #111114 100%) !important;
  color: var(--brand-white) !important;
  border: 1px solid #2A2B32;
}
.rv-feat-yellow .rv-reward-pill {
  background: rgba(255, 255, 255, 0.12);
  color: var(--brand-white);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.rv-feat-yellow .rv-flame-circle {
  background: var(--brand-orange);
  color: var(--brand-black);
}
.rv-feat-yellow .rv-feat-kicker { color: #FFA245 !important; }
.rv-feat-yellow .rv-feat-title { color: var(--brand-white) !important; }
.rv-feat-yellow .rv-feat-desc { color: rgba(255, 255, 255, 0.76) !important; }

.rv-feat-sky {
  background: var(--brand-orange-soft) !important;
  color: var(--brand-black) !important;
  border: 1px solid var(--brand-orange-border);
}
.rv-feat-sky .rv-reward-pill {
  background: var(--brand-white);
  color: var(--brand-black);
}
.rv-feat-sky .rv-flame-circle { background: var(--brand-white); }
.rv-feat-sky .rv-feat-kicker { color: var(--brand-orange-deep) !important; }
.rv-feat-sky .rv-feat-title { color: var(--brand-black) !important; }
.rv-feat-sky .rv-feat-desc { color: #4A4E57 !important; }

.rv-feat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; z-index: 3; }
.rv-reward-pill { border-radius: 999px; padding: 5px 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; }
.rv-flame-circle { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }

.rv-feat-body { display: grid; grid-template-columns: 126px minmax(0, 1fr); align-items: end; gap: 10px; margin-top: 8px; position: relative; z-index: 2; }
@media (max-width: 379px) { .rv-feat-body { grid-template-columns: 98px minmax(0, 1fr); } }
.rv-mascot-wrap { position: relative; height: 142px; display: flex; align-items: flex-end; justify-content: center; }
.rv-mascot-img {
  max-width: 138px !important;
  max-height: 152px !important;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: translateY(12px);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.26));
  animation: rvFloat 4.2s ease-in-out infinite;
}
.rv-feat-sky .rv-mascot-img { animation-delay: -2.1s; filter: drop-shadow(0 12px 16px rgba(17, 17, 19, 0.14)); }
@keyframes rvFloat {
  0%, 100% { transform: translateY(12px); }
  50% { transform: translateY(5px); }
}
.rv-feat-kicker { font-size: 11.5px; font-weight: 800; margin-bottom: 4px; }
.rv-feat-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(16px, 1.5vw, 19px); font-weight: 800; line-height: 1.22; margin: 0 0 6px; }
.rv-feat-desc { font-size: 11.5px; line-height: 1.45; margin: 0; }

/* Center Column: Study Success Bars (Charcoal + Vibrant Orange + Soft Gray!) */
.rv-trend-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: var(--brand-orange-deep); }
.rv-big-pct { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--brand-black); }
.rv-study-box {
  background: var(--brand-gray-bg) !important;
  border: 1px solid var(--brand-border);
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 20px;
}
.rv-study-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.rv-pill-outline-btn {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--brand-black);
  background: var(--brand-white);
  color: var(--brand-black);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
.rv-pill-outline-btn:hover { background: var(--brand-orange); border-color: var(--brand-orange); color: var(--brand-black); }

.rv-capsule-bars { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); align-items: end; gap: 4px; height: 82px; padding: 4px 2px 0; }
.rv-bar-col { height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: pointer; }
.rv-bar-stick { width: 100%; max-width: 6px; border-radius: 999px; background: var(--brand-charcoal); transition: height 0.35s ease, transform 0.15s ease, background 0.15s ease; }
.rv-bar-col:nth-child(n+15):nth-child(-n+20) .rv-bar-stick { background: var(--brand-orange); }
.rv-bar-stick.is-projected { background: #CFD3DC !important; }
.rv-bar-col:hover .rv-bar-stick { background: var(--brand-orange-hover) !important; transform: scaleY(1.08); }
.rv-bar-axis { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11px; font-weight: 600; color: var(--brand-gray-muted); }

/* Badges Medallions — Brand Orange, Charcoal, Warm Gold & Subtle Accent */
.rv-medals-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
@media (max-width: 419px) { .rv-medals-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rv-medal-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px; cursor: pointer; transition: transform 0.18s ease; }
.rv-medal-item:hover { transform: translateY(-3px) scale(1.04); }
.rv-medal-item.is-locked { opacity: 0.46; }
.rv-medal-ring { width: 62px; height: 62px; border-radius: 50%; padding: 6px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px -8px rgba(17, 17, 19, 0.16); }
.rv-medal-core { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.medal-1 { background: #FFE8CC; } .medal-1 .rv-medal-core { background: var(--brand-orange); }
.medal-2 { background: #E5E7EC; } .medal-2 .rv-medal-core { background: var(--brand-charcoal); }
.medal-3 { background: #FEF3C7; } .medal-3 .rv-medal-core { background: #D97706; }
.medal-4 { background: #FFEDD5; } .medal-4 .rv-medal-core { background: #111113; }
.rv-medal-lbl { font-size: 11px; font-weight: 700; line-height: 1.22; color: var(--brand-black); }

/* Challenges Rows — Soft Off-White & Warm Orange Tint */
.rv-chall-stack { display: flex; flex-direction: column; gap: 10px; }
.rv-chall-pill {
  width: 100%;
  border-radius: 20px;
  padding: 11px 14px;
  border: 1px solid var(--brand-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.rv-chall-pill:hover { transform: translateY(-2px); box-shadow: var(--gd-shadow-hover); border-color: var(--brand-orange); }
.chall-lav { background: var(--brand-gray-bg) !important; }
.chall-yel { background: var(--brand-orange-soft) !important; border-color: var(--brand-orange-border); }
.rv-chall-emblem { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.emblem-teal { background: var(--brand-charcoal) !important; color: var(--brand-white) !important; }
.emblem-gold { background: var(--brand-orange) !important; color: var(--brand-black) !important; }
.rv-chall-xp { background: var(--brand-white); border: 1px solid var(--brand-border); padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; color: var(--brand-black); white-space: nowrap; }

/* Right Column: Brand Sunburst Podium (#2 Charcoal · #1 Vibrant Orange · #3 Soft Gray!) */
.rv-right-panel { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.rv-lb-card { background: var(--brand-white); border: 1px solid var(--brand-border); border-radius: var(--gd-r-lg); padding: 20px 18px; box-shadow: var(--gd-shadow); overflow: hidden; }
.rv-podium-stage {
  position: relative;
  padding-top: 14px;
  margin-bottom: 16px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 68%, rgba(255, 255, 255, 0.94) 0%, rgba(255, 246, 234, 0.35) 68%),
    repeating-conic-gradient(from 0deg at 50% 72%, rgba(245, 138, 31, 0.14) 0deg 10deg, rgba(255, 255, 255, 0) 10deg 20deg);
}
.rv-podium-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; padding: 8px 6px 0; max-width: 440px; margin: 0 auto; }
.rv-pod-col { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.rv-pod-avatar-ring { width: 58px; height: 58px; border-radius: 50%; padding: 3px; background: var(--brand-white); box-shadow: 0 8px 20px rgba(17, 17, 19, 0.12); margin-bottom: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.rv-pod-col.is-first .rv-pod-avatar-ring { width: 66px; height: 66px; border: 2.5px solid var(--brand-orange); }
.rv-pod-col.is-second .rv-pod-avatar-ring { border: 2.5px solid var(--brand-charcoal); }
.rv-pod-col.is-third .rv-pod-avatar-ring { border: 2.5px solid #9CA3AF; }
.rv-pod-avatar-ring img { width: 100% !important; height: 100% !important; max-width: 66px !important; object-fit: cover; border-radius: 50%; }
.rv-pod-name { font-size: 11.5px; font-weight: 800; color: var(--brand-black); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.rv-pod-score { background: var(--brand-white); border: 1px solid var(--brand-border); border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 800; color: var(--brand-black); display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.rv-pedestal { width: 100%; border-radius: 18px 18px 8px 8px; display: flex; align-items: center; justify-content: center; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 17px; }
.ped-1 { height: 112px; background: linear-gradient(180deg, #FF9B3D 0%, #F58A1F 100%) !important; color: var(--brand-black) !important; }
.ped-2 { height: 84px; background: linear-gradient(180deg, #27282F 0%, #18181C 100%) !important; color: var(--brand-white) !important; }
.ped-3 { height: 64px; background: linear-gradient(180deg, #ECEEF2 0%, #DCDFE6 100%) !important; color: var(--brand-black) !important; }

.rv-lb-rows { display: flex; flex-direction: column; gap: 9px; }
.rv-lb-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 18px; background: var(--brand-offwhite); border: 1px solid var(--brand-border); }
.rv-lb-item.is-me { background: var(--brand-orange-soft) !important; border-color: var(--brand-orange) !important; }
.rv-lb-ava { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-white); border: 2px solid var(--brand-border); overflow: hidden; flex-shrink: 0; }
.rv-lb-ava img { width: 100% !important; height: 100% !important; max-width: 40px !important; object-fit: cover; }
.rv-delta-up { color: #16A34A; font-size: 11px; }
.rv-delta-down { color: #DC2626; font-size: 11px; }

/* Interactive Three.js 3D Companion Stage — Sculpted Warm Neutral / Charcoal Frame */
.rv-3d-stage-card { background: var(--brand-white); border: 1px solid var(--brand-border); border-radius: var(--gd-r-lg); padding: 16px 18px; box-shadow: var(--gd-shadow); }
.rv-3d-viewport {
  position: relative;
  width: 100%;
  height: 176px;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 44%, #2B221A 0%, #141417 100%) !important;
  border: 1px solid #2A2B32;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.rv-3d-hint { position: absolute; left: 10px; bottom: 10px; background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px); padding: 4px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 700; color: #FFFFFF; pointer-events: none; }
.rv-3d-tabs { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: center; gap: 6px; z-index: 4; }
.rv-mini-chip { border: 0; border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 800; background: rgba(255, 255, 255, 0.14); color: #FFFFFF; cursor: pointer; }
.rv-mini-chip.is-active { background: var(--brand-orange); color: var(--brand-black); }

.rv-modal-backdrop { position: fixed; inset: 0; background: rgba(17, 17, 19, 0.52); backdrop-filter: blur(5px); z-index: 130; display: none; align-items: center; justify-content: center; padding: 16px; }
.rv-modal-backdrop.is-open { display: flex; }
.rv-modal-dialog { width: 100%; max-width: 580px; max-height: 88dvh; overflow-y: auto; background: var(--brand-white); border-radius: 26px; padding: 22px; border: 1px solid var(--brand-border); box-shadow: 0 28px 60px rgba(17, 17, 19, 0.28); }
.rs-empty-state { background: var(--brand-offwhite); border: 1px dashed #D0D4DC; border-radius: 20px; padding: 28px 18px; text-align: center; }
