/* ==========================================================================
   HELLO SCHOOL MANAGEMENT SYSTEM (hashtagss.in)
   Cinematic Apple-Keynote Contrast Design System
   Obsidian Midnight (#050811) <-> Crisp Porcelain Ivory (#FAFAF8 / #FFFFFF)
   Harmonized with the Official Electric Cobalt H-Pencil Hello Logo
   ========================================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/jakarta-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/jakarta-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans Malayalam';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/noto-malayalam-malayalam.woff2') format('woff2');
  unicode-range: U+0307, U+0323, U+0951-0952, U+0964-0965, U+0D00-0D7F, U+1CDA, U+1CF2, U+200C-200D, U+20B9, U+25CC, U+A830-A832;
}
@font-face {
  font-family: 'Noto Sans Devanagari';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/noto-devanagari-devanagari.woff2') format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF;
}
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/noto-arabic-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  /* Obsidian Dark Surfaces */
  --obsidian: #050811;
  --obsidian-2: #0a1022;
  --obsidian-card: rgba(255, 255, 255, 0.04);
  --obsidian-card-hi: rgba(255, 255, 255, 0.075);
  --obsidian-line: rgba(255, 255, 255, 0.1);
  --obsidian-line-hi: rgba(255, 255, 255, 0.18);

  /* Porcelain Light Surfaces */
  --porcelain: #ffffff;
  --ivory: #f8f9fc;
  --alabaster: #f1f4f9;
  --ink: #090f1e;
  --ink-2: #24304a;
  --muted: #56637e;
  --mist: #9aa7c2;
  --line: rgba(9, 15, 30, 0.085);
  --line-strong: rgba(9, 15, 30, 0.16);

  /* Official Hello Electric Cobalt -> Azure Palette */
  --azure: #00b8ff;
  --cobalt: #0a74ff;
  --cobalt-deep: #1d4ed8;
  --cobalt-soft: #ecf4ff;
  --cobalt-line: rgba(10, 116, 255, 0.22);
  --brand-grad: linear-gradient(135deg, #00b8ff 0%, #0a74ff 48%, #2554e8 100%);
  --text-grad: linear-gradient(110deg, #ffffff 0%, #c8e6ff 45%, #38bdf8 100%);
  --text-grad-light: linear-gradient(110deg, #0a74ff 0%, #1d4ed8 55%, #00a2ff 100%);

  /* Semantic Accents (Paid / Waiting / Overdue / WhatsApp) */
  --ok: #10b981;
  --ok-bg: #e7f9f2;
  --ok-ink: #066f4b;
  --ok-line: rgba(16, 185, 129, 0.3);
  --warn: #f59e0b;
  --warn-bg: #fff7e6;
  --warn-ink: #92540a;
  --warn-line: rgba(245, 158, 11, 0.32);
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --danger-ink: #991b1b;
  --wa: #16a34a;
  --wa-hover: #15803d;

  --font: 'Plus Jakarta Sans', 'Noto Sans Malayalam', 'Noto Sans Devanagari', 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 34px;

  --sh-light: 0 1px 2px rgba(9, 15, 30, 0.04), 0 12px 32px -10px rgba(9, 15, 30, 0.08);
  --sh-hover: 0 4px 10px rgba(9, 15, 30, 0.06), 0 28px 60px -18px rgba(10, 116, 255, 0.16);
  --sh-dark: 0 40px 110px -24px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
section[id], div[id] { scroll-margin-top: 84px; }

h1, h2, h3, h4, h5 {
  font-family: var(--font);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.032em;
  margin: 0;
}
.obsidian h1, .obsidian h2, .obsidian h3, .obsidian h4, .obsidian h5,
.bento-dark h1, .bento-dark h2, .bento-dark h3, .bento-dark h4 { color: #ffffff; }

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 26px; }
.wrap-n { max-width: 920px; margin: 0 auto; padding: 0 26px; }
@media (max-width: 540px) { .wrap, .wrap-n { padding: 0 18px; } }

.ico-inline {
  width: 15px; height: 15px; stroke: currentColor; fill: none;
  stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round;
  flex: none; vertical-align: -2px;
}

/* ---------- EYEBROW PILLS ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 22px;
  color: var(--cobalt);
  background: var(--cobalt-soft);
  border: 1px solid var(--cobalt-line);
}
.obsidian .eyebrow, .bento-dark .eyebrow {
  color: #93c5fd;
  background: rgba(10, 116, 255, 0.14);
  border-color: rgba(56, 189, 248, 0.3);
  backdrop-filter: blur(10px);
}
.eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--azure);
  box-shadow: 0 0 0 4px rgba(0, 184, 255, 0.25);
}

/* ---------- BUTTONS (APPLE / STRIPE PRECISION) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--brand-grad);
  color: #ffffff;
  box-shadow: 0 12px 30px -8px rgba(10, 116, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover {
  box-shadow: 0 20px 40px -8px rgba(0, 184, 255, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-wa {
  background: var(--wa);
  color: #ffffff;
  box-shadow: 0 12px 26px -8px rgba(22, 163, 74, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-wa:hover { background: var(--wa-hover); }
.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.36); }
.btn-light {
  background: var(--porcelain);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--sh-light);
}
.btn-light:hover { border-color: var(--cobalt); color: var(--cobalt); }
.btn-ink {
  background: var(--ink);
  color: #ffffff;
}
.btn-ink:hover { background: #16223d; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ---------- FROSTED OBSIDIAN NAVIGATION ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(5, 8, 17, 0.8);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 13px 26px;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  color: #ffffff;
  letter-spacing: -0.025em;
}
.brand-lockup .brand-icon {
  width: 36px; height: 36px; border-radius: 10px;
  box-shadow: 0 6px 18px -2px rgba(0, 184, 255, 0.45);
  flex: none;
}
.brand-lockup .brand-sub {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
  line-height: 1.2;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 13.8px;
  font-weight: 600;
  color: var(--mist);
}
.nav-links a { text-decoration: none; transition: color 0.16s; }
.nav-links a:hover, .nav-links a.active { color: #ffffff; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: #e2e8f0;
  text-decoration: none; padding: 8px 12px; border-radius: 999px;
  transition: background 0.16s, color 0.16s;
}
.nav-phone:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.menu-btn {
  display: none;
  width: 40px; height: 40px; border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.menu-btn span { width: 17px; height: 2px; background: #ffffff; border-radius: 2px; display: block; }
.mobile-drawer {
  display: none;
  background: #070c18;
  color: #ffffff;
  padding: 14px 20px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-drawer.open { display: grid; gap: 4px; }
.mobile-drawer a {
  text-decoration: none; padding: 12px 14px; border-radius: 11px;
  font-weight: 600; font-size: 15px; color: #cbd5e1;
}
.mobile-drawer a:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
@media (max-width: 1060px) {
  .nav-links, .nav-cta .hide-mobile { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 540px) {
  .nav-bar { padding: 10px 14px; gap: 8px; }
  .brand-lockup { font-size: 16.5px; gap: 8px; min-width: 0; flex: 1 1 auto; }
  .brand-lockup > span { min-width: 0; }
  .brand-lockup .brand-icon { width: 30px; height: 30px; border-radius: 8px; }
  .brand-lockup .brand-sub { font-size: 7.4px; letter-spacing: 0.02em; white-space: nowrap; }
  .nav-cta { gap: 7px; flex: none; }
  .nav-cta .btn-primary, .nav-bar > .btn { padding: 8px 11px; font-size: 12px; }
  .menu-btn { width: 36px; height: 36px; border-radius: 9px; flex: none; }
}
@media (max-width: 375px) {
  .nav-bar { padding: 9px 12px; gap: 6px; }
  .brand-lockup { font-size: 15.5px; gap: 7px; }
  .brand-lockup .brand-icon { width: 28px; height: 28px; }
  .brand-lockup .brand-sub { font-size: 6.9px; letter-spacing: 0.015em; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn-primary, .nav-bar > .btn { padding: 7px 10px; font-size: 11.5px; }
  .menu-btn { width: 34px; height: 34px; }
}

/* ---------- CINEMATIC OBSIDIAN HERO ---------- */
.hero-obsidian {
  position: relative;
  background-color: var(--obsidian);
  color: #e2e8f0;
  padding: 84px 0 96px;
  overflow: hidden;
}
.hero-art-bg {
  position: absolute;
  inset: -40px 0 auto 0;
  height: 760px;
  background-image: url('../img/art-hero-glow.jpg');
  background-size: cover;
  background-position: center top;
  opacity: 0.72;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 62%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 62%, transparent 100%);
}
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 920px; margin: 0 auto; }
.hero-obsidian h1 {
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  color: #ffffff;
}
.hero-obsidian h1 .shimmer {
  background: var(--text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-obsidian .lede {
  font-size: clamp(17px, 1.9vw, 21px);
  color: #b4c2dc;
  margin: 26px auto 36px;
  max-width: 60ch;
  font-weight: 400;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.hero-checks {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px;
  font-size: 13.5px; color: var(--mist);
}
.hero-checks span { display: inline-flex; align-items: center; gap: 6px; }
.hero-checks span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

/* ---------- TITANIUM DUAL-DEVICE HARDWARE STAGE ---------- */
.hardware-stage {
  position: relative;
  z-index: 2;
  margin-top: 62px;
}
.stage-ambient {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  width: 82%;
  height: 75%;
  background: radial-gradient(ellipse at center, rgba(10, 116, 255, 0.32) 0%, rgba(0, 184, 255, 0.1) 42%, transparent 72%);
  filter: blur(50px);
  pointer-events: none;
}
.stage-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.stage-pill-group {
  display: inline-flex;
  gap: 5px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(14px);
  overflow-x: auto;
  max-width: 100%;
}
.tour-tab {
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.tour-tab:hover { color: #ffffff; background: rgba(255, 255, 255, 0.07); }
.tour-tab.active {
  background: var(--brand-grad);
  color: #ffffff;
  box-shadow: 0 8px 20px -6px rgba(10, 116, 255, 0.75);
}
.theme-toggle {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.13); color: #ffffff; }

.dual-device {
  position: relative;
  display: grid;
  grid-template-columns: 1.48fr 0.72fr;
  gap: 22px;
  align-items: stretch;
}
@media (max-width: 960px) { .dual-device { grid-template-columns: 1fr; } }

/* Left Device: Studio Desktop Display */
.device-desktop {
  background: #ffffff;
  color: var(--ink);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: var(--sh-dark);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}
.hardware-stage.is-dark .device-desktop {
  background: #0d1428;
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.14);
}
.desktop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  background: #f5f7fb;
  border-bottom: 1px solid var(--line);
}
.hardware-stage.is-dark .desktop-bar {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.08);
}
.win-dots { display: flex; gap: 7px; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.url-pill {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  background: rgba(9, 15, 30, 0.05);
  padding: 4px 12px;
  border-radius: 999px;
}
.hardware-stage.is-dark .url-pill { background: rgba(255, 255, 255, 0.07); color: var(--mist); }

.desktop-body { padding: 24px; flex: 1; }
@media (max-width: 540px) { .desktop-body { padding: 16px; } }
.tour-panel { display: none; animation: panelIn 0.26s ease; }
.tour-panel.active { display: block; }
@keyframes panelIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

/* Right Device: Floating Titanium iPhone (Syncs Live with Left!) */
.device-phone {
  background: linear-gradient(165deg, #161f36 0%, #090e1c 100%);
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 36px;
  padding: 16px;
  box-shadow: var(--sh-dark);
  display: flex;
  flex-direction: column;
  position: relative;
}
.phone-island {
  width: 82px; height: 20px; border-radius: 999px;
  background: #020409; margin: 0 auto 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.phone-screen {
  flex: 1;
  background: #f8fafd;
  color: var(--ink);
  border-radius: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.28s ease, color 0.28s ease;
}
.hardware-stage.is-dark .phone-screen {
  background: #0b1122;
  color: #f1f5f9;
}
.phone-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.hardware-stage.is-dark .phone-head { border-color: rgba(255, 255, 255, 0.09); }
.phone-tile {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px 13px;
  font-size: 12.8px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.hardware-stage.is-dark .phone-tile {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.1);
}
.phone-tile.flash {
  border-color: var(--ok);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22);
  transform: scale(1.02);
}

/* Interactive Controls Inside Hardware Stage */
.ui-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.ui-kicker { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--cobalt); letter-spacing: 0.07em; text-transform: uppercase; }
.hardware-stage.is-dark .ui-kicker { color: #60a5fa; }
.ui-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  white-space: nowrap; flex-shrink: 0;
}
#feeCollectResult, #uaeCollectResult { white-space: normal; text-align: left; }
.ui-badge.ok { background: var(--ok-bg); color: var(--ok-ink); border: 1px solid var(--ok-line); }
.ui-badge.warn { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); }
.ui-badge.brand { background: var(--cobalt-soft); color: var(--cobalt); border: 1px solid var(--cobalt-line); }
.hardware-stage.is-dark .ui-badge.brand { background: rgba(10, 116, 255, 0.2); color: #93c5fd; }

.fee-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #f8fafd; border: 1px solid var(--line);
  border-radius: 13px; padding: 11px 14px; margin-bottom: 8px;
  font-size: 13.8px; cursor: pointer; transition: border-color 0.16s, background 0.16s;
}
.fee-row:hover { border-color: var(--cobalt-line); background: #f2f7ff; }
.hardware-stage.is-dark .fee-row { background: rgba(255, 255, 255, 0.045); border-color: rgba(255, 255, 255, 0.1); }
.hardware-stage.is-dark .fee-row:hover { background: rgba(255, 255, 255, 0.08); }
.fee-row input[type="checkbox"] { accent-color: var(--cobalt); width: 16px; height: 16px; }

.pay-modes { display: flex; gap: 7px; flex-wrap: wrap; margin: 13px 0; }
.pay-pill {
  border: 1px solid var(--line-strong); background: #ffffff; color: var(--ink-2);
  font-family: var(--font); font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 9px; cursor: pointer; transition: all 0.16s;
}
.pay-pill.active { background: var(--cobalt-soft); border-color: var(--cobalt); color: var(--cobalt); }
.hardware-stage.is-dark .pay-pill { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: #e2e8f0; }
.hardware-stage.is-dark .pay-pill.active { background: rgba(10, 116, 255, 0.25); border-color: var(--azure); color: #fff; }

.prompt-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0 16px; }
.prompt-chip {
  border: 1px solid var(--cobalt-line); background: #ffffff; color: var(--ink);
  font-family: var(--font); font-size: 12.5px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px; cursor: pointer; transition: all 0.16s;
}
.prompt-chip:hover, .prompt-chip.active { background: var(--cobalt); color: #ffffff; border-color: var(--cobalt); }
.hardware-stage.is-dark .prompt-chip { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: #e2e8f0; }
.hardware-stage.is-dark .prompt-chip.active { background: var(--cobalt); border-color: var(--azure); color: #ffffff; }

.bar-chart { display: grid; gap: 10px; margin-top: 12px; }
.bar-row { display: grid; grid-template-columns: 74px 1fr 62px; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; }
.bar-track { height: 12px; background: rgba(9, 15, 30, 0.07); border-radius: 999px; overflow: hidden; }
.hardware-stage.is-dark .bar-track { background: rgba(255, 255, 255, 0.1); }
.bar-fill { height: 100%; background: var(--brand-grad); border-radius: 999px; transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1); }

/* Wallet Card Holographic Visual */
.wallet-card {
  background: linear-gradient(135deg, #0b1633 0%, #0a42b8 54%, #00a8ff 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 36px -12px rgba(10, 66, 184, 0.65);
}
.wallet-card::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 65%);
  pointer-events: none;
}

/* ---------- AUTHORITY STAT BAND (ARCHITECTURAL HAIRLINES) ---------- */
.authority-band {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  padding: 44px 0;
}
.stat-ribbon {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
}
.stat-cell {
  padding: 8px 10px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat-cell:last-child { border-right: none; }
.stat-cell strong {
  display: block;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.035em;
  background: var(--text-grad-light);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.12;
  white-space: nowrap;
}
.stat-cell span {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.3;
}
@media (max-width: 1120px) {
  .stat-ribbon { grid-template-columns: repeat(4, 1fr); gap: 18px 0; }
  .stat-cell:nth-child(4n) { border-right: none; }
}
@media (max-width: 560px) {
  .stat-ribbon { grid-template-columns: repeat(2, 1fr); }
  .stat-cell { border-right: none; padding: 10px 8px; }
}

/* ---------- CHAPTER SECTIONS ---------- */
.section { padding: 104px 0; }
.section-ivory { background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.obsidian {
  position: relative;
  background: var(--obsidian);
  color: #b4c2dc;
  overflow: hidden;
}
@media (max-width: 768px) { .section { padding: 72px 0; } }

.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; }
.section-head p { font-size: 18px; color: var(--muted); margin-top: 16px; }
.obsidian .section-head p { color: #9eb0cf; }

/* ---------- APPLE KEYNOTE 12-COL BENTO GRID ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.span-12 { grid-column: span 12; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
@media (max-width: 960px) {
  .span-7, .span-6, .span-5, .span-4 { grid-column: span 12; }
}

.bento {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s ease, border-color 0.22s ease;
}
.bento:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-hover);
  border-color: var(--cobalt-line);
}
.bento-white { background: var(--porcelain); box-shadow: var(--sh-light); }
.bento-dark {
  background: linear-gradient(155deg, #091227 0%, #050811 100%);
  color: #b4c2dc;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--sh-dark);
}
.bento-dark:hover { border-color: rgba(56, 189, 248, 0.42); }
.bento-azure {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 55%, #f0f9ff 100%);
  border-color: rgba(10, 116, 255, 0.2);
}
.bento h3 { font-size: clamp(21px, 2.3vw, 27px); margin-bottom: 8px; }
.bento p { font-size: 15px; color: var(--muted); }
.bento-dark p { color: #a8b7d4; }
.bento-kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 10px;
}
.bento-dark .bento-kicker { color: #60a5fa; }

.bento-mini-ui {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  font-size: 13.5px;
}
.bento-dark .bento-mini-ui {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.11);
  color: #e2e8f0;
}

/* ---------- ROLE SWITCHER (APPLE SEGMENTED CONTROL) ---------- */
.role-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  background: var(--alabaster);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 32px;
}
.role-tabs-wrap { text-align: center; }
.role-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.role-btn:hover { color: var(--ink); }
.role-btn.active {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 8px 20px -6px rgba(9, 15, 30, 0.45);
}
.role-panel { display: none; animation: panelIn 0.22s ease; }
.role-panel.active { display: block; }
.role-stage {
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 44px;
  box-shadow: var(--sh-light);
}
@media (max-width: 680px) { .role-stage { padding: 24px 18px; } }

/* ---------- AI PRISM CHAPTER (OBSIDIAN INTELLIGENCE) ---------- */
.ai-stage-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}
@media (max-width: 900px) { .ai-stage-grid { grid-template-columns: 1fr; gap: 28px; } }
.ai-prism-art {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  max-width: 440px;
  margin: 0 auto;
}
.ai-prism-art img {
  display: block;
  width: 100%;
  border-radius: var(--r-xl);
  mix-blend-mode: lighten;
  mask-image: radial-gradient(circle at center, black 48%, transparent 84%);
  -webkit-mask-image: radial-gradient(circle at center, black 48%, transparent 84%);
}

/* ---------- EDITORIAL BANNER (SWITCH WITHOUT STRESS) ---------- */
.editorial-banner {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 290px;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  margin-bottom: 28px;
  background-color: #161d2e;
  background-image: linear-gradient(180deg, rgba(9, 15, 30, 0.14) 0%, rgba(9, 15, 30, 0.84) 100%), url('../img/art-campus-calm.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  box-shadow: var(--sh-light);
}
@media (max-width: 640px) { .editorial-banner { padding: 24px; min-height: 230px; } }

/* ---------- STANDARD GRIDS & CARDS ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 660px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 30px; } }

.card {
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 26px;
  box-shadow: var(--sh-light);
  transition: transform 0.2s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-hover); border-color: var(--cobalt-line); }
.obsidian .card {
  background: var(--obsidian-card);
  border-color: var(--obsidian-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.obsidian .card:hover { background: var(--obsidian-card-hi); border-color: rgba(56, 189, 248, 0.35); }
.card-ico {
  width: 46px; height: 46px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cobalt-soft); color: var(--cobalt);
  border: 1px solid var(--cobalt-line);
  margin-bottom: 16px;
}
.card-ico svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.obsidian .card-ico { background: rgba(10, 116, 255, 0.16); border-color: rgba(56, 189, 248, 0.28); color: #60a5fa; }
.card h3, .card h4 { font-size: 18.5px; margin-bottom: 8px; line-height: 1.24; }
.card p { font-size: 14.8px; color: var(--muted); }
.obsidian .card p { color: #a4b3cf; }
.card-tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 11px;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--cobalt); background: var(--cobalt-soft);
  border: 1px solid var(--cobalt-line);
  padding: 3px 10px; border-radius: 999px;
}
.obsidian .card-tag { background: rgba(10, 116, 255, 0.18); border-color: rgba(56, 189, 248, 0.3); color: #93c5fd; }

.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 11px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; }
.check-list .ck {
  flex: none; width: 22px; height: 22px; border-radius: 7px;
  background: var(--ok-bg); color: var(--ok-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; margin-top: 2px;
}
.obsidian .check-list .ck, .demo-shell .check-list .ck { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }

/* ---------- TABLES (COMPARISON & AI SAVINGS) ---------- */
.table-wrap {
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-light);
  overflow-x: auto;
}
.obsidian .table-wrap {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--obsidian-line);
  box-shadow: none;
}
.cmp-table { width: 100%; border-collapse: collapse; min-width: 580px; }
.cmp-table th, .cmp-table td {
  padding: 17px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14.8px;
  vertical-align: top;
}
.obsidian .cmp-table th, .obsidian .cmp-table td { border-color: var(--obsidian-line); color: #cbd5e1; }
.cmp-table thead th {
  background: var(--ivory);
  font-weight: 800; color: var(--ink);
  font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em;
}
.obsidian .cmp-table thead th { background: rgba(255, 255, 255, 0.05); color: #ffffff; }
.cmp-table thead th.hi { background: var(--cobalt-soft); color: var(--cobalt); }
.obsidian .cmp-table thead th.hi { background: rgba(10, 116, 255, 0.2); color: #7dd3fc; }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table td.hi { background: rgba(10, 116, 255, 0.03); font-weight: 600; color: var(--ink); }
.obsidian .cmp-table td.hi { background: rgba(10, 116, 255, 0.06); color: #ffffff; }

/* ---------- OFFER BOX (UAE) ---------- */
.offer-box {
  background: var(--porcelain);
  border: 2px solid var(--cobalt);
  border-radius: var(--r-xl);
  padding: 36px;
  box-shadow: var(--sh-hover);
}
.offer-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.offer-row:last-of-type { border-bottom: none; }
.offer-row .old { text-decoration: line-through; color: var(--muted); font-size: 14px; margin-right: 10px; }
.offer-row .new { font-weight: 800; color: var(--ok-ink); font-size: 18px; }

/* ---------- MODULE FILTER & SEARCH ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pill-btn {
  border: 1px solid var(--line-strong); background: var(--porcelain); color: var(--ink-2);
  font-family: var(--font); font-size: 13px; font-weight: 700;
  padding: 8px 15px; border-radius: 999px; cursor: pointer; transition: all 0.16s;
}
.pill-btn:hover { border-color: var(--cobalt); color: var(--cobalt); }
.pill-btn.active { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.mod-search {
  border: 1.5px solid var(--line-strong); background: var(--porcelain);
  border-radius: 999px; padding: 10px 18px;
  font-family: var(--font); font-size: 14px; width: 340px; max-width: 100%; outline: none;
}
.mod-search:focus { border-color: var(--cobalt); }

/* ---------- CONVERSION FINALE + SHARED CALENDAR ---------- */
.demo-shell {
  background: linear-gradient(155deg, #0b142c 0%, #050811 100%);
  color: #f8fafc;
  border-radius: var(--r-xl);
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--sh-dark);
  position: relative;
  overflow: hidden;
}
.demo-shell::before {
  content: "";
  position: absolute;
  top: -160px; right: -120px;
  width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 184, 255, 0.22), transparent 68%);
  pointer-events: none;
}
@media (max-width: 680px) { .demo-shell { padding: 26px 18px; } }
.demo-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: start; }
@media (max-width: 920px) { .demo-grid { grid-template-columns: 1fr; gap: 30px; } }
.direct-channels { display: grid; gap: 10px; margin-top: 26px; }
.channel-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 15px; text-decoration: none;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff; transition: all 0.18s;
}
.channel-card:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(56, 189, 248, 0.45); transform: translateY(-1px); }
.channel-card small { display: block; font-size: 12px; color: var(--mist); }

.form-stack { display: grid; gap: 13px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } }
.field label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #93a6c8; margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 11px 13px;
  color: #ffffff;
  font-family: var(--font);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
}
.field select option { background: #0a1022; color: #ffffff; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--azure);
  background: rgba(255, 255, 255, 0.1);
}
.phone-combo { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.slot-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 13px;
}
.slot-days { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 9px; }
.slot-day-btn {
  flex: none; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14); color: #e2e8f0;
  border-radius: 10px; padding: 7px 11px;
  font-size: 12px; font-weight: 700; cursor: pointer; min-width: 72px; text-align: center;
}
.slot-day-btn.active { background: var(--cobalt); border-color: var(--azure); color: #ffffff; }
.slot-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
@media (max-width: 480px) { .slot-times { grid-template-columns: repeat(2, 1fr); } }
.slot-time-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14); color: #e2e8f0;
  border-radius: 9px; padding: 8px 6px;
  font-family: var(--mono); font-size: 11.5px; cursor: pointer;
}
.slot-time-btn:hover:not(:disabled) { border-color: var(--azure); color: #ffffff; }
.slot-time-btn.active { background: var(--ok); border-color: #6ee7b7; color: #ffffff; font-weight: 700; }
.slot-time-btn:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.form-status { font-size: 13.5px; min-height: 20px; }
.form-status.err { color: #fca5a5; }
.form-status.ok { color: #6ee7b7; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 11px; }
.faq-item {
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--sh-light);
}
.faq-item summary {
  font-weight: 700; font-size: 16px; color: var(--ink);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--cobalt); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 12px; font-size: 14.8px; color: var(--muted); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: #03060d;
  color: var(--mist);
  padding: 68px 0 96px;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 36px; margin-bottom: 36px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h5 { color: #ffffff; font-size: 14.5px; margin-bottom: 13px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; color: var(--mist); transition: color 0.16s; }
.site-footer a:hover { color: #ffffff; }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px;
}

/* ---------- STICKY MOBILE BAR ---------- */
.mobile-sticky-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: rgba(5, 8, 17, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 12px; gap: 10px;
}
.mobile-sticky-bar a { flex: 1; padding: 11px 12px; font-size: 14px; }
@media (max-width: 768px) {
  .mobile-sticky-bar { display: flex; }
  body { padding-bottom: 66px; }
}

/* ---------- HELLO AI CHAT WIDGET ---------- */
.hello-chat-launcher {
  position: fixed; right: 20px; bottom: 22px; z-index: 98;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 17px 9px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #091022; color: #ffffff;
  font-family: var(--font); font-weight: 700; font-size: 14px;
  cursor: pointer;
  box-shadow: 0 22px 48px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 184, 255, 0.2);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.hello-chat-launcher:hover { transform: translateY(-3px); box-shadow: 0 26px 52px -10px rgba(10, 116, 255, 0.55); }
.hello-chat-launcher img { width: 32px; height: 32px; border-radius: 9px; }
.hello-chat-launcher .dot-online {
  width: 9px; height: 9px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.28);
}
@media (max-width: 768px) {
  .hello-chat-launcher { bottom: 76px; right: 14px; width: 52px; height: 52px; padding: 0; justify-content: center; }
  .hello-chat-launcher span:not(.dot-online) { display: none; }
  .hello-chat-launcher .dot-online { position: absolute; top: 4px; right: 4px; }
}
.hello-chat-panel {
  position: fixed; right: 20px; bottom: 84px; z-index: 99;
  width: min(396px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 120px));
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  box-shadow: 0 38px 94px -18px rgba(5, 8, 17, 0.65);
  display: none; flex-direction: column; overflow: hidden;
}
.hello-chat-panel.open { display: flex; animation: panelIn 0.2s ease; }
@media (max-width: 768px) {
  .hello-chat-panel { right: 12px; bottom: 74px; height: min(520px, calc(100vh - 104px)); }
}
.hc-head {
  background: #070d1d; color: #ffffff; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.hc-head-id { display: flex; align-items: center; gap: 10px; }
.hc-head-id img { width: 34px; height: 34px; border-radius: 9px; }
.hc-head-id b { display: block; font-size: 14.5px; line-height: 1.2; }
.hc-head-id small { display: block; font-size: 11.5px; color: #7dd3fc; }
.hc-close {
  background: rgba(255, 255, 255, 0.1); border: none; color: #ffffff;
  width: 30px; height: 30px; border-radius: 9px; cursor: pointer; font-size: 17px;
}
.hc-messages {
  flex: 1; overflow-y: auto; padding: 16px; background: #f4f7fc;
  display: flex; flex-direction: column; gap: 10px;
}
.hc-msg {
  max-width: 86%; padding: 10px 13px; border-radius: 15px;
  font-size: 13.8px; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
}
.hc-msg.bot { align-self: flex-start; background: #ffffff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.hc-msg.user { align-self: flex-end; background: var(--cobalt); color: #ffffff; border-bottom-right-radius: 4px; }
.hc-msg.system-ok {
  align-self: stretch; max-width: 100%;
  background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok-ink);
  font-size: 12.8px; font-weight: 600;
}
.hc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 4px; background: #f4f7fc; }
.hc-chip {
  background: #ffffff; border: 1px solid var(--cobalt-line); color: var(--cobalt-deep);
  border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.hc-chip:hover { background: var(--cobalt-soft); }
.hc-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #ffffff; }
.hc-form input {
  flex: 1; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 10px 14px; font-size: 14px; font-family: var(--font); outline: none;
}
.hc-form input:focus { border-color: var(--cobalt); }
.hc-form button {
  border: none; border-radius: 999px; background: var(--brand-grad); color: #ffffff;
  font-weight: 700; font-size: 13.5px; padding: 0 16px; cursor: pointer;
}
.hc-foot {
  padding: 6px 14px 9px; background: #ffffff; font-size: 11px; color: var(--muted);
  display: flex; justify-content: space-between; align-items: center;
}
.hc-foot a { color: var(--wa); font-weight: 700; text-decoration: none; }

/* ==========================================================================
   V3.5 VISUAL POLISH: STUDIO APP SIDEBAR, BENTO VIGNETTES, DUAL-IPHONE & UAE
   ========================================================================== */

/* 1. Studio App Left Sidebar Inside Desktop Display */
.desktop-workspace {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  flex: 1;
}
.app-sidebar {
  background: #f8fafd;
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
@media (max-width: 780px) {
  .desktop-workspace { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
}
.hardware-stage.is-dark .app-sidebar {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.08);
}
.app-school-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
.hardware-stage.is-dark .app-school-chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.app-school-chip img { width: 24px; height: 24px; border-radius: 7px; flex: none; }
.app-school-chip b { display: block; font-size: 11.8px; line-height: 1.2; color: var(--ink); }
.hardware-stage.is-dark .app-school-chip b { color: #ffffff; }
.app-school-chip small { display: block; font-size: 10px; color: var(--muted); font-family: var(--mono); }
.app-nav-list { display: grid; gap: 3px; }
.app-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 12.2px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.16s ease;
}
.app-nav-item svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.app-nav-item:hover { background: rgba(10, 116, 255, 0.07); color: var(--ink); }
.hardware-stage.is-dark .app-nav-item:hover { background: rgba(255, 255, 255, 0.07); color: #ffffff; }
.app-nav-item.active {
  background: var(--cobalt-soft);
  color: var(--cobalt);
  font-weight: 700;
}
.hardware-stage.is-dark .app-nav-item.active {
  background: rgba(10, 116, 255, 0.22);
  color: #93c5fd;
}
.app-pulse-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  font-size: 11px;
  color: var(--muted);
}
.hardware-stage.is-dark .app-pulse-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.09);
  color: #9eb0cf;
}
.app-pulse-card strong { display: block; color: var(--ink); font-size: 12.5px; margin-bottom: 2px; }
.hardware-stage.is-dark .app-pulse-card strong { color: #ffffff; }

.avatar-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.02em;
  background: var(--cobalt-soft); color: var(--cobalt);
  border: 1px solid var(--cobalt-line);
  flex: none;
}
.avatar-chip.alt { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-line); }
.avatar-chip.amber { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }

.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  padding: 0 6px 8px;
}
.phone-tabbar {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}
.hardware-stage.is-dark .phone-tabbar { border-color: rgba(255, 255, 255, 0.09); }
.phone-tabbar span.on { color: var(--cobalt); }
.hardware-stage.is-dark .phone-tabbar span.on { color: #60a5fa; }

.scan-split {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 640px) { .scan-split { grid-template-columns: 1fr; } }
.scan-photo-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--cobalt-line);
  min-height: 185px;
  background: #0a1226;
}
.scan-photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-photo-badge {
  position: absolute;
  left: 10px; bottom: 10px; right: 10px;
  background: rgba(5, 8, 17, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #e0f2fe;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 9px;
}

/* 2. Bento Grid Visual Vignettes */
.bento-photo-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  background: #091227;
}
.bento-photo-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.bento:hover .bento-photo-frame img { transform: scale(1.04); }
.bento-photo-chip {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(5, 8, 17, 0.8);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}

.mini-hpc {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px 16px;
  box-shadow: 0 12px 28px -18px rgba(9, 15, 30, 0.25);
}
.mini-hpc-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 1px dashed var(--line-strong);
}
.mini-grades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-grade-pill {
  background: #f8fafd; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 9px; text-align: center;
}
.mini-grade-pill span { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.mini-grade-pill strong { display: block; font-size: 15px; color: var(--ink); margin-top: 2px; }
.mini-grade-pill strong em { font-style: normal; color: var(--cobalt); font-size: 12px; margin-left: 3px; }

.mini-timetable {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  background: #f8fafd;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px;
}
.tt-cell {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  padding: 7px 4px;
  border-radius: 8px;
}
.tt-c1 { background: rgba(10, 116, 255, 0.13); color: #0552c8; }
.tt-c2 { background: rgba(16, 185, 129, 0.14); color: #047857; }
.tt-c3 { background: rgba(124, 58, 237, 0.12); color: #6d28d9; }
.tt-c4 { background: rgba(245, 158, 11, 0.16); color: #b45309; }
.tt-c5 { background: rgba(14, 165, 233, 0.15); color: #0369a1; }

.mini-sub-stack { display: grid; gap: 7px; }
.mini-sub-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #f8fafd; border: 1px solid var(--line);
  border-radius: 11px; padding: 8px 11px; font-size: 12.2px;
}
.mini-sub-item.top { background: var(--ok-bg); border-color: var(--ok-line); }

.mini-otp-card {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  background: #f8fafd; border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 16px;
}
.otp-digits { display: flex; gap: 5px; }
.otp-digits i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 15px; font-weight: 800;
  width: 28px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: #ffffff;
  border: 1.5px solid var(--cobalt-line);
  color: var(--cobalt);
  box-shadow: 0 4px 10px -4px rgba(10, 116, 255, 0.25);
}

.wallet-card-pro {
  background: linear-gradient(135deg, #071330 0%, #0a49c9 48%, #00b8ff 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 22px 44px -14px rgba(10, 116, 255, 0.65);
}
.wallet-card-pro::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.26), transparent 65%);
  pointer-events: none;
}
.wallet-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; position: relative; z-index: 1; }
.wallet-body { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; position: relative; z-index: 1; }
.wallet-qr {
  width: 56px; height: 56px; border-radius: 11px;
  background: #ffffff; padding: 6px; flex: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}
.wallet-pills { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.wallet-pills span {
  font-size: 10.5px; font-weight: 700;
  background: rgba(5, 8, 17, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 4px 9px; border-radius: 999px;
}

/* 3. Floating Dual-iPhone Showcase in #apps */
.apps-duo-stage {
  background: linear-gradient(155deg, #081126 0%, #050811 100%);
  border-radius: var(--r-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 46px 36px 38px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-dark);
}
@media (max-width: 680px) { .apps-duo-stage { padding: 28px 16px 26px; } }
.apps-duo-stage::before {
  content: "";
  position: absolute;
  inset: -120px 10% auto;
  height: 360px;
  background: radial-gradient(ellipse at center, rgba(10, 116, 255, 0.34), rgba(0, 184, 255, 0.1) 46%, transparent 72%);
  pointer-events: none;
}
.apps-duo-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
  gap: 32px;
  align-items: start;
}
@media (max-width: 820px) {
  .apps-duo-grid { grid-template-columns: minmax(0, 360px); gap: 24px; }
}
.duo-phone {
  background: linear-gradient(165deg, #1b2742 0%, #0a1020 100%);
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 38px;
  padding: 14px;
  box-shadow: 0 34px 70px -18px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.duo-phone-screen {
  background: #f8fafd;
  color: var(--ink);
  border-radius: 26px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 410px;
}
.duo-phone.dark-ui .duo-phone-screen {
  background: #0d152a;
  color: #f1f5f9;
}
.child-switch {
  display: flex; gap: 6px; background: #eaf0f8; padding: 4px; border-radius: 999px;
}
.child-switch button {
  flex: 1; border: none; background: transparent; color: var(--muted);
  font-family: var(--font); font-size: 11.5px; font-weight: 700;
  padding: 6px 8px; border-radius: 999px; cursor: pointer; transition: all 0.16s;
}
.child-switch button.active {
  background: #ffffff; color: var(--cobalt);
  box-shadow: 0 3px 8px rgba(9, 15, 30, 0.12);
}
.att-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.att-chip {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  border-radius: 11px;
  padding: 8px 10px;
  font-family: var(--font);
  font-size: 11.8px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
}
.att-chip .st {
  font-family: var(--mono); font-size: 10.5px; font-weight: 800;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(16, 185, 129, 0.22); color: #6ee7b7;
}
.att-chip.absent { border-color: rgba(248, 113, 113, 0.45); background: rgba(239, 68, 68, 0.14); }
.att-chip.absent .st { background: rgba(239, 68, 68, 0.25); color: #fca5a5; }
.duo-caption {
  position: relative; z-index: 2;
  text-align: center; margin-top: 26px;
  color: #9eb0cf; font-size: 13.5px;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 18px;
}
.duo-caption strong { color: #ffffff; }

/* 4. UAE Editorial Banner & RTL/GCC Interactive Stage */
.editorial-banner-gulf {
  background-image: linear-gradient(180deg, rgba(9, 15, 30, 0.18) 0%, rgba(9, 15, 30, 0.86) 100%), url('../img/art-gulf-campus.jpg');
}
.rtl-stage { direction: rtl; text-align: right; font-family: 'Noto Sans Arabic', var(--font); }
.gcc-cur-bar { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.gcc-cur-btn {
  border: 1px solid var(--line-strong); background: #ffffff; color: var(--ink-2);
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 9px; cursor: pointer; transition: all 0.16s;
}
.gcc-cur-btn.active { background: var(--cobalt); color: #ffffff; border-color: var(--cobalt); }
.hardware-stage.is-dark .gcc-cur-btn { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: #e2e8f0; }
.hardware-stage.is-dark .gcc-cur-btn.active { background: var(--cobalt); border-color: var(--azure); color: #ffffff; }

/* ==========================================================================
   V4 UPGRADES: FULL BRAND SUBTITLE, EXEC AI REPORTS, WHATSAPP PDF, HPC,
   TIMETABLE ENGINE, AWARD-GRADE APPS UI & RICH EDITORIAL MODULES PAGE
   ========================================================================== */

/* Executive AI Multi-Metric Report */
.exec-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}
@media (max-width: 560px) { .exec-kpi-row { grid-template-columns: 1fr; } }
.exec-kpi {
  background: #f8fafd;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.hardware-stage.is-dark .exec-kpi {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.exec-kpi small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.exec-kpi strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  margin-top: 2px;
  color: var(--ink);
}
.hardware-stage.is-dark .exec-kpi strong { color: #ffffff; }
.exec-kpi.ok strong { color: var(--ok-ink); }
.hardware-stage.is-dark .exec-kpi.ok strong { color: #6ee7b7; }
.exec-kpi.warn strong { color: #d97706; }
.hardware-stage.is-dark .exec-kpi.warn strong { color: #fbbf24; }
.exec-kpi.cobalt strong { color: var(--cobalt); }
.hardware-stage.is-dark .exec-kpi.cobalt strong { color: #60a5fa; }

.exec-dual-chart {
  background: #f8fafd;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 9px;
}
.hardware-stage.is-dark .exec-dual-chart {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
.exec-row {
  display: grid;
  grid-template-columns: 62px 1fr 104px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}
.exec-bars { display: grid; gap: 4px; }
.exec-bar-a { height: 7px; border-radius: 999px; background: var(--brand-grad); }
.exec-bar-b { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #10b981, #34d399); }
.exec-bar-warn { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #f59e0b, #ef4444); }

/* WhatsApp PDF Fee Statement Bubble + Opened Graph Sheet */
.wa-bubble {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 15px 15px 15px 4px;
  padding: 11px 12px;
  color: #064e3b;
  font-size: 12px;
}
.hardware-stage.is-dark .wa-bubble {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #d1fae5;
}
.wa-pdf-card {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 11px;
  padding: 8px 10px;
  margin: 7px 0;
  color: var(--ink);
}
.hardware-stage.is-dark .wa-pdf-card {
  background: rgba(9, 15, 30, 0.65);
  color: #f1f5f9;
}
.pdf-icon-pill {
  width: 32px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff; font-family: var(--mono); font-size: 9.5px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.pdf-mini-graph {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 10px;
  margin-top: 7px;
  color: var(--ink);
}
.hardware-stage.is-dark .pdf-mini-graph {
  background: rgba(9, 15, 30, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}
.pdf-seg-bar {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  display: flex;
  margin: 6px 0;
}
.wa-pay-btn {
  width: 100%;
  margin-top: 8px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #16a34a, #059669);
  color: #ffffff;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.wa-pay-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -6px rgba(22, 163, 74, 0.6); }

/* Colourful CBSE Holistic Progress Card (HPC) Visual */
.hpc-colorful {
  background: linear-gradient(150deg, #ffffff 0%, #f8fafd 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 14px 32px -18px rgba(9, 15, 30, 0.25);
}
.hpc-banner {
  background: linear-gradient(120deg, #0a74ff 0%, #7c3aed 52%, #ec4899 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 10px 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.hpc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  align-items: center;
}
@media (max-width: 520px) { .hpc-grid { grid-template-columns: 1fr; } }
.hpc-domain-list { display: grid; gap: 7px; }
.hpc-domain { font-size: 11px; font-weight: 700; }
.hpc-domain-top { display: flex; justify-content: space-between; margin-bottom: 3px; }
.hpc-track { height: 7px; border-radius: 999px; background: #e8eef7; overflow: hidden; }
.hpc-fill { height: 100%; border-radius: 999px; }
.hpc-formula-strip {
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}

/* AI Clash-Free Timetable Engine Spotlight */
.tt-engine-wrap {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 18px;
  padding: 16px;
}
.tt-constraint-row {
  display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px;
}
.tt-constraint-row span {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #6ee7b7;
}
.tt-matrix-pro {
  display: grid;
  grid-template-columns: 44px repeat(6, 1fr);
  gap: 5px;
  align-items: center;
}
.tt-day { font-family: var(--mono); font-size: 10px; font-weight: 700; color: #9eb0cf; }
.tt-blk {
  font-family: var(--mono); font-size: 10px; font-weight: 800;
  text-align: center; padding: 6px 3px; border-radius: 7px; color: #ffffff;
}
.tt-b1 { background: linear-gradient(135deg, #2563eb, #0a74ff); }
.tt-b2 { background: linear-gradient(135deg, #059669, #10b981); }
.tt-b3 { background: linear-gradient(135deg, #7c3aed, #9333ea); }
.tt-b4 { background: linear-gradient(135deg, #d97706, #f59e0b); }
.tt-b5 { background: linear-gradient(135deg, #0284c7, #06b6d4); }
.tt-b6 { background: linear-gradient(135deg, #db2777, #ec4899); }

/* Award-Grade Apps Showcase UI Refinements */
.app-hero-banner {
  background: linear-gradient(135deg, #0a74ff 0%, #0095ff 55%, #00c6ff 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 13px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.app-ring-wrap {
  position: relative; width: 48px; height: 48px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.app-ring-wrap svg { width: 48px; height: 48px; transform: rotate(-90deg); }
.app-ring-wrap span {
  position: absolute; font-family: var(--mono); font-size: 10.5px; font-weight: 800; color: #ffffff;
}
.app-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-stat-tile {
  background: #ffffff; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 11px; font-size: 11.5px;
}
.app-stat-tile b { display: block; font-size: 13px; color: var(--ink); margin-top: 2px; }
.app-dock {
  margin-top: auto;
  padding: 8px 6px 2px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  font-size: 9.5px; font-weight: 700; color: var(--muted);
}
.app-dock span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.app-dock svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-dock span.on { color: var(--cobalt); }
.duo-phone.dark-ui .app-dock { border-color: rgba(255, 255, 255, 0.1); color: #8b9bb8; }
.duo-phone.dark-ui .app-dock span.on { color: #38bdf8; }
.teacher-now-card {
  background: linear-gradient(135deg, rgba(10, 116, 255, 0.28), rgba(0, 184, 255, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  padding: 12px 13px;
}
.teacher-quick-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.teacher-qbtn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  padding: 8px 6px;
  text-align: center;
  color: #e2e8f0;
  font-size: 10.5px; font-weight: 700;
}

/* Rich Editorial 30+ Modules Page */
.mod-overview-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 34px;
}
@media (max-width: 1020px) { .mod-overview-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .mod-overview-grid { grid-template-columns: repeat(2, 1fr); } }
.mod-overview-tile {
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 14px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--sh-light);
  transition: transform 0.18s, border-color 0.18s;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
}
.mod-overview-tile:hover, .mod-overview-tile.active {
  transform: translateY(-3px);
  border-color: var(--cobalt);
  background: var(--cobalt-soft);
}
.mod-overview-tile strong { display: block; font-size: 14px; margin-top: 8px; line-height: 1.25; }
.mod-overview-tile span { display: block; font-family: var(--mono); font-size: 11px; color: var(--cobalt); margin-top: 4px; font-weight: 700; }

.mod-chapter {
  margin-bottom: 58px;
}
.mod-chapter-hero {
  border-radius: var(--r-xl);
  padding: 34px 36px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 880px) { .mod-chapter-hero { grid-template-columns: 1fr; padding: 24px 20px; } }
.mod-chapter-hero.dark {
  background: linear-gradient(150deg, #09132a 0%, #050811 100%);
  color: #b4c2dc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--sh-dark);
}
.mod-chapter-hero.light {
  background: linear-gradient(145deg, #f3f7ff 0%, #ffffff 60%, #f8fafd 100%);
  border: 1px solid var(--cobalt-line);
  box-shadow: var(--sh-light);
}
.mod-chapter-hero h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.mod-chapter-hero.dark h2 { color: #ffffff; }
.mod-bullets {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 6px;
}
.mod-bullets li {
  font-size: 13.6px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}
.mod-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cobalt);
}
.card.mod-card-rich { padding: 28px 26px; display: flex; flex-direction: column; justify-content: flex-start; }

/* ==========================================================================
   V4.5: LESSON PLANS PACING WIDGET, CHECKPOINT e-LEARNING & ABOUT TIMELINE
   ========================================================================== */
.lp-widget {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px 16px;
  display: grid;
  gap: 9px;
}
.lp-head {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  padding-bottom: 9px; border-bottom: 1px dashed var(--line-strong);
}
.lp-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: #f8fafd; border: 1px solid var(--line);
  border-radius: 11px; padding: 8px 11px; font-size: 12.2px;
}
.lp-item.done { background: var(--ok-bg); border-color: var(--ok-line); }
.lp-status-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }

.el-stage {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 18px;
  padding: 15px 16px;
  display: grid;
  gap: 11px;
}
.el-video-bar {
  background: linear-gradient(135deg, #0d1d42 0%, #091227 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  padding: 12px 14px;
}
.el-scrubber {
  height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.14);
  position: relative; margin: 9px 0 8px; overflow: visible;
}
.el-scrubber-fill { height: 100%; width: 58%; border-radius: 999px; background: var(--brand-grad); }
.el-checkpoint-dot {
  position: absolute; left: 58%; top: 50%; transform: translate(-50%, -50%);
  width: 13px; height: 13px; border-radius: 50%;
  background: #38bdf8; border: 2px solid #ffffff;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.35);
}
.el-quiz-pill {
  background: rgba(10, 116, 255, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 11.8px; color: #e0f2fe;
  display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
}
.el-mastery-row {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 11.8px; color: #cbd5e1;
}
.el-dots { display: inline-flex; gap: 4px; align-items: center; }
.el-dots i { width: 10px; height: 10px; border-radius: 3px; display: block; font-style: normal; }

.decade-quote {
  background: linear-gradient(150deg, #09132a 0%, #050811 100%);
  color: #ffffff;
  border-radius: var(--r-xl);
  padding: 46px 42px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: var(--sh-dark);
  text-align: center;
}
@media (max-width: 640px) { .decade-quote { padding: 30px 20px; } }
.decade-quote h2 { font-size: clamp(28px, 4vw, 46px); color: #ffffff; max-width: 24ch; margin: 0 auto; }

/* ==========================================================================
   V5: OFFICIAL BRAND SUITE & TITANIUM IPHONE CINEMA VIDEO PLAYER
   ========================================================================== */
.cinema-split {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
  margin-bottom: 52px;
}
@media (max-width: 920px) {
  .cinema-split { grid-template-columns: 1fr; gap: 32px; }
}
.cinema-phone {
  background: linear-gradient(165deg, #1d2945 0%, #090e1c 100%);
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 42px;
  padding: 13px;
  box-shadow: 0 38px 90px -18px rgba(0, 0, 0, 0.9), 0 0 60px -12px rgba(10, 116, 255, 0.45);
  max-width: 330px;
  margin: 0 auto;
  width: 100%;
}
.cinema-screen {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: #0a0d26;
  aspect-ratio: 9 / 16;
}
.cinema-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cinema-caption {
  text-align: center;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: #93c5fd;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.app-official-badge {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  object-fit: contain;
  display: block;
  margin-bottom: 14px;
  box-shadow: 0 12px 26px -10px rgba(37, 99, 235, 0.45);
}
.duo-brand-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 2px;
}
.duo-brand-row img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: none;
}
.wordmark-pill {
  display: flex;
  width: fit-content;
  align-items: center;
  padding: 10px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.55);
  margin-bottom: 18px;
}
.hero-inner .wordmark-pill { margin-left: auto; margin-right: auto; }
.wordmark-pill img {
  height: 44px;
  width: auto;
  display: block;
}

/* ==========================================================================
   V5.6: MOBILE PRECISION & POCO X7 (360px - 430px) ALIGNMENT HARDENING
   Zero horizontal overflow · Crisp single-line pills · Mobile card tables
   ========================================================================== */

/* Prevent CSS Grid minmax(auto, 1fr) tracks from blowing past viewport width */
.demo-grid > *, .split > *, .grid-2 > *, .grid-3 > *, .grid-4 > *,
.bento-grid > *, .dual-device > *, .desktop-workspace > *, .cinema-split > *,
.ai-stage-grid > *, .mod-chapter-hero > *, .form-row-2 > *, .form-stack > *,
.field, .slot-box, .table-wrap, .device-desktop, .device-phone, .foot-grid > * {
  min-width: 0;
}

.stage-pill-group, .slot-days {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.stage-pill-group::-webkit-scrollbar, .slot-days::-webkit-scrollbar { display: none; }

.fee-row > *, .lp-item > *, .mini-sub-item > *, .channel-card > div { min-width: 0; }
.fee-row > strong, .mini-sub-item > span:last-child, .channel-card > span {
  flex: none;
  white-space: nowrap;
}

.mod-chapter-hero.dark .eyebrow {
  color: #93c5fd;
  background: rgba(10, 116, 255, 0.16);
  border-color: rgba(56, 189, 248, 0.3);
}

.card.card-lg { padding: 36px; }
.client-logos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.client-logo-tile {
  flex: 1 1 130px;
  max-width: 170px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: flex;
    padding: 9px 10px;
    gap: 8px;
  }
  .mobile-sticky-bar a {
    flex: 1;
    min-width: 0;
    padding: 10px 8px;
    font-size: 13px;
    white-space: nowrap;
  }
  .hello-chat-launcher {
    bottom: 68px;
    right: 12px;
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
  }
  .hello-chat-launcher img { width: 28px; height: 28px; border-radius: 8px; }
  .hello-chat-panel {
    left: 10px;
    right: 10px;
    width: auto;
    bottom: 68px;
    height: min(500px, calc(100dvh - 96px));
    border-radius: 20px;
  }
  .hc-form { padding: 9px 10px; gap: 7px; }
  .hc-form input { min-width: 0; padding: 9px 12px; font-size: 14px; }
  .hc-form button { flex: none; padding: 0 14px; font-size: 13px; }
}

@media (max-width: 720px) {
  .stage-tabs-bar { justify-content: center; gap: 10px; }
  .stage-pill-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 20px;
    padding: 6px;
    gap: 5px;
    width: 100%;
    overflow-x: visible;
  }
  .tour-tab { padding: 7px 11px; font-size: 12px; }
  .theme-toggle { font-size: 12px; padding: 7px 14px; }
}

@media (max-width: 640px) {
  /* Sleek 1-line macOS window bar on mobile */
  .desktop-bar { padding: 10px 14px; gap: 8px; }
  .desktop-bar .win-dots { gap: 5px; flex: none; }
  .desktop-bar .win-dots i { width: 8px; height: 8px; }
  .desktop-bar .url-pill {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10.5px;
    padding: 4px 10px;
  }
  .desktop-bar .ui-badge { font-size: 10px; padding: 3px 8px; }
  .ui-badge { font-size: 10.5px; padding: 3px 8px; }

  /* Centered wrapped Role Switcher on mobile */
  .role-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 20px;
    padding: 6px;
    gap: 5px;
    width: 100%;
    margin-bottom: 22px;
  }
  .role-btn { padding: 8px 13px; font-size: 12.8px; }

  /* Mobile Card Transform for Comparison & AI Tables (Zero Horizontal Scroll!) */
  .table-wrap { overflow-x: visible; border-radius: 20px; }
  .cmp-table { min-width: 0; width: 100%; display: block; }
  .cmp-table thead { display: none; }
  .cmp-table tbody { display: grid; gap: 0; }
  .cmp-table tr {
    display: grid;
    gap: 6px;
    padding: 15px 16px;
    border-bottom: 1px solid var(--line);
  }
  .obsidian .cmp-table tr { border-color: var(--obsidian-line); }
  .cmp-table tbody tr:last-child { border-bottom: none; }
  .cmp-table td {
    display: block;
    padding: 0;
    border: none;
    font-size: 13.8px;
    line-height: 1.48;
  }
  .cmp-table td:first-child {
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 1px;
  }
  .obsidian .cmp-table td:first-child { color: #ffffff; }
  .cmp-table td:nth-child(2):not(.hi) {
    color: var(--muted);
    font-size: 13px;
  }
  .cmp-table td:nth-child(2):not(.hi)::before {
    content: "Typical: ";
    font-weight: 700;
    color: var(--muted);
  }
  .cmp-table td.hi {
    background: rgba(10, 116, 255, 0.06);
    border: 1px solid var(--cobalt-line);
    border-radius: 12px;
    padding: 9px 12px;
    margin-top: 2px;
  }
  .cmp-table td:nth-child(3).hi::before {
    content: "Hello: ";
    font-weight: 800;
    color: var(--cobalt);
  }
  .obsidian .cmp-table td.hi {
    background: rgba(10, 116, 255, 0.13);
    border-color: rgba(56, 189, 248, 0.28);
    color: #e2e8f0;
  }
}

@media (max-width: 540px) {
  .wrap, .wrap-n { padding: 0 16px; }
  .hero-obsidian { padding: 48px 0 64px !important; }
  .hero-obsidian h1 { font-size: clamp(32px, 8.8vw, 44px); line-height: 1.07; }
  .hero-obsidian .lede { font-size: 15.5px; margin: 18px auto 26px; line-height: 1.58; }
  .eyebrow {
    font-size: 10.5px;
    letter-spacing: 0.06em;
    padding: 6px 12px;
    margin-bottom: 16px;
    max-width: 100%;
    line-height: 1.35;
    text-align: left;
  }
  .hero-inner .eyebrow, .section-head.center .eyebrow { justify-content: center; text-align: center; }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    gap: 10px;
  }
  .hero-actions .btn { width: 100%; padding: 13px 20px; font-size: 14.5px; }
  .hero-checks { gap: 8px 14px; font-size: 12.5px; margin-top: 18px; }
  .hardware-stage { margin-top: 38px; }

  .section { padding: 58px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: clamp(27px, 7.5vw, 38px); }
  .section-head p { font-size: 15.5px; margin-top: 12px; }

  .bento { padding: 22px 18px; border-radius: 22px; gap: 14px; }
  .bento-mini-ui { padding: 13px; }
  .card, .card.card-lg, .card.mod-card-rich { padding: 22px 18px; }
  .offer-box { padding: 24px 18px; border-radius: 24px; }
  .demo-shell { padding: 24px 16px; border-radius: 24px; }
  .channel-card { padding: 12px 13px; gap: 10px; }
  .channel-card strong { font-size: 14px; }
  .channel-card small { font-size: 11.5px; }

  .client-logos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .client-logo-tile { max-width: none; padding: 14px 12px; }
  .client-logo-tile:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 56%;
    justify-self: center;
    width: 100%;
  }

  .phone-combo { grid-template-columns: 96px minmax(0, 1fr); }
  .exec-row { grid-template-columns: 48px minmax(0, 1fr) 92px; gap: 7px; font-size: 11px; }
  .bar-row { grid-template-columns: 60px minmax(0, 1fr) 52px; gap: 8px; font-size: 12px; }
  .tt-matrix-pro { grid-template-columns: 32px repeat(6, minmax(0, 1fr)); gap: 3px; }
  .tt-blk { font-size: 9px; padding: 5px 1px; }
  .otp-digits { gap: 4px; }
  .otp-digits i { width: 26px; height: 32px; font-size: 14px; }
  .fee-row { padding: 10px 11px; font-size: 13px; gap: 8px; }
  .lp-item { padding: 8px 10px; gap: 8px; }
  .duo-phone { padding: 11px; border-radius: 32px; }
  .duo-phone-screen { padding: 13px; border-radius: 22px; }
  .att-chip { padding: 7px 8px; font-size: 11px; }
  .device-phone { padding: 12px; border-radius: 30px; }
  .phone-screen { padding: 13px; border-radius: 20px; }
  .cinema-phone { max-width: 296px; padding: 11px; border-radius: 36px; }
  .cinema-screen { border-radius: 26px; }
  .faq-item { padding: 16px 18px; }
  .faq-item summary { font-size: 15px; }
  .wordmark-pill img { height: 38px; }
}
