/* ========================================================
   teacher.css — Oxford EduVision Teacher Hub (UI Redesign)
   Semua fungsi asal dikekalkan. Fokus: jelas, profesional,
   cepat dicapai dan selesa untuk desktop + telefon.
   ======================================================== */

:root {
  --navy-950: #061936;
  --navy-900: #0a2550;
  --navy-800: #13326e;
  --navy-700: #1d4d99;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --ink: #10213d;
  --ink-soft: #526179;
  --ink-faint: #7d8aa0;
  --surface: #ffffff;
  --surface-soft: #f7f9fd;
  --line: #e5ebf4;
  --line-strong: #d7e0ef;
  --gold-50: #fff9e8;
  --gold-100: #fff0c2;
  --gold-600: #a96500;
  --green-50: #ecfdf3;
  --green-600: #15803d;
  --purple-50: #f6f0ff;
  --purple-600: #7e22ce;
  --pink-50: #fff0f6;
  --pink-600: #be185d;
  --shadow-xs: 0 5px 18px rgba(17, 38, 76, .05);
  --shadow-sm: 0 12px 30px rgba(17, 38, 76, .08);
  --shadow-md: 0 20px 48px rgba(17, 38, 76, .12);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

/* ── Reset & global ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  min-height: 100%;
  max-width: 100%;
  overflow-x: clip;              /* iOS: html ialah scroller sebenar — kena clip di sini juga */
  overscroll-behavior-x: none;   /* matikan rubber-band mendatar */
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: clip;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 0%, rgba(37, 99, 235, .10), transparent 22rem),
    radial-gradient(circle at 13% 29%, rgba(232, 184, 63, .10), transparent 20rem),
    #f4f7fc;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: rgba(16, 33, 61, .24); background-clip: padding-box; }
::selection { color: #fff; background: var(--navy-700); }

/* ── Password gate ── */
.gate {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at 20% 15%, rgba(83, 142, 255, .28), transparent 28rem),
    radial-gradient(circle at 84% 84%, rgba(229, 180, 45, .17), transparent 24rem),
    rgba(3, 18, 42, .90);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: opacity .28s ease, visibility .28s ease;
}
.gate::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .65;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 75%);
}
.gate.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.gate__panel {
  position: relative; z-index: 1;
  width: min(430px, 100%);
  display: flex; flex-direction: column; gap: 21px;
  padding: 31px 30px 28px;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(248, 251, 255, .97));
  box-shadow: 0 32px 90px rgba(0,0,0,.34);
  animation: gateIn .42s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes gateIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.gate__panel.shake { animation: gateShake .35s ease both; }
@keyframes gateShake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
.gate__logo { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.gate__logo img { width: 45px; height: 45px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; object-fit: contain; box-shadow: var(--shadow-xs); }
.gate__logo strong { display: block; font-size: 14px; letter-spacing: -.15px; }
.gate__logo small { display: block; margin-top: 3px; color: var(--ink-faint); font-size: 11.5px; font-weight: 600; }
.gate__title { color: var(--navy-900); font-size: 23px; font-weight: 800; letter-spacing: -.6px; }
.gate__sub { margin-top: 6px; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.gate__field { display: flex; flex-direction: column; gap: 8px; }
.gate__label { color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.gate__input, .form-input, .form-textarea {
  width: 100%; outline: none; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line-strong);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.gate__input { padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.gate__input:focus, .form-input:focus, .form-textarea:focus { border-color: rgba(37,99,235,.65); box-shadow: 0 0 0 4px rgba(37,99,235,.11); background: #fff; }
.gate__err { min-height: 18px; color: #dc2626; font-size: 12.5px; font-weight: 700; }
.gate__actions { display: flex; gap: 10px; }
.gate__actions .gbtn { flex: 1; padding: 11px 13px; cursor: pointer; border: 1.5px solid; border-radius: 12px; font-size: 13.5px; font-weight: 750; text-align: center; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.gate__actions .gbtn:hover { transform: translateY(-1px); }
.gbtn--ghost { border-color: var(--line-strong) !important; color: var(--ink); background: #fff; }
.gbtn--ghost:hover { background: var(--surface-soft); }
.gbtn--primary { border-color: rgba(19,50,110,.12) !important; color: #fff; background: linear-gradient(135deg, var(--navy-700), var(--navy-800)); box-shadow: 0 9px 20px rgba(19,50,110,.22); }
.gbtn--primary:hover { box-shadow: 0 13px 27px rgba(19,50,110,.28); }

/* ── Main layout ── */
.th-layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; }
.th-main { position: relative; min-width: 0; }

/* ── Sidebar ── */
.th-sidebar {
  position: sticky; top: 0; z-index: 60;
  display: flex; flex-direction: column; gap: 3px;
  height: 100vh; overflow-y: auto;
  padding: 22px 14px 18px;
  color: rgba(255,255,255,.72);
  background:
    radial-gradient(circle at 5% 0%, rgba(76, 136, 255, .22), transparent 18rem),
    linear-gradient(180deg, #0b2857 0%, #071b3d 54%, #061630 100%);
  border-right: 1px solid rgba(255,255,255,.08);
}
.th-sidebar::after { content: ""; position: absolute; right: 0; top: 0; width: 1px; height: 100%; background: rgba(255,255,255,.08); pointer-events: none; }
.sb-brand { display: flex; align-items: center; gap: 11px; margin: 0 4px 12px; padding: 5px 5px 20px; border-bottom: 1px solid rgba(255,255,255,.10); }
.sb-brand__logo { width: 42px; height: 42px; padding: 4px; object-fit: contain; border: 1px solid rgba(255,255,255,.20); border-radius: 13px; background: rgba(255,255,255,.96); box-shadow: 0 7px 18px rgba(0,0,0,.18); }
.sb-brand__text strong { display: block; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: -.2px; }
.sb-brand__text small { display: block; margin-top: 3px; color: rgba(255,255,255,.46); font-size: 10.5px; font-weight: 600; }
.sb-label { padding: 10px 11px 6px; color: rgba(255,255,255,.34); font-size: 10px; font-weight: 800; letter-spacing: 1.05px; text-transform: uppercase; }
.sb-item {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 10px 11px; overflow: hidden;
  border: 1px solid transparent; border-radius: 12px;
  color: rgba(255,255,255,.65); font-size: 13px; font-weight: 650;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.sb-item::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; border-radius: 0 999px 999px 0; background: #f8c348; opacity: 0; transform: scaleY(.55); transition: opacity .18s ease, transform .18s ease; }
.sb-item:hover { color: #fff; background: rgba(255,255,255,.075); transform: translateX(2px); }
.sb-item.active { color: #fff; border-color: rgba(138, 179, 255, .28); background: linear-gradient(90deg, rgba(62, 123, 238, .33), rgba(62, 123, 238, .12)); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.sb-item.active::before { opacity: 1; transform: scaleY(1); }
.sb-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 29px; width: 29px; height: 29px; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; font-size: 14px; }
.si-blue { background: rgba(82, 140, 255, .20); }
.si-amber { background: rgba(236, 169, 45, .19); }
.si-purple { background: rgba(163, 98, 255, .18); }
.si-pink { background: rgba(250, 102, 160, .16); }
.si-green { background: rgba(57, 196, 109, .17); }
.sb-bottom { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.10); }
.sb-back { display: flex; align-items: center; padding: 10px 11px; border-radius: 11px; color: rgba(255,255,255,.48); font-size: 12px; font-weight: 650; transition: background .16s ease, color .16s ease; }
.sb-back:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ── Top bar ── */
.th-topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 76px; padding: 12px 34px;
  border-bottom: 1px solid rgba(215,224,239,.82);
  background: rgba(249,251,255,.84);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.topbar-copy { min-width: 0; }
.topbar-kicker { display: block; margin-bottom: 2px; color: var(--navy-700); font-size: 9.5px; font-weight: 850; letter-spacing: 1.05px; text-transform: uppercase; }
.th-topbar h1 { color: var(--navy-900); font-size: 18px; font-weight: 800; letter-spacing: -.45px; }
.th-topbar p { margin-top: 2px; overflow: hidden; color: var(--ink-faint); font-size: 11.5px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-help { padding: 8px 11px; border-radius: 10px; color: var(--navy-700); font-size: 12px; font-weight: 750; transition: background .16s ease, color .16s ease; }
.topbar-help:hover { color: var(--navy-900); background: var(--blue-50); }
.pg-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid rgba(21,128,61,.15); border-radius: 999px; color: var(--green-600); background: var(--green-50); font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.pg-dot { width: 7px; height: 7px; border-radius: 99px; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.15); animation: pgPulse 2s ease infinite; }
@keyframes pgPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.82); opacity: .66; } }

/* ── Content and hero ── */
.th-content { display: flex; flex-direction: column; gap: 18px; max-width: 1580px; padding: 28px 34px 56px; margin: 0 auto; }
.workspace-hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(265px, .75fr); align-items: center;
  min-height: 266px; overflow: hidden;
  padding: 30px 34px;
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 78% 15%, rgba(91, 161, 255, .48), transparent 19rem),
    radial-gradient(circle at 12% 100%, rgba(231, 186, 70, .18), transparent 19rem),
    linear-gradient(120deg, #0a2550 0%, #13326e 58%, #174890 100%);
  box-shadow: 0 24px 54px rgba(10,37,80,.23);
}
.workspace-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .36; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.50) 1px, transparent 1px); background-size: 21px 21px; mask-image: linear-gradient(120deg, rgba(0,0,0,.72), transparent 68%); }
.workspace-hero__content { position: relative; z-index: 2; max-width: 660px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 11px; color: #f6d472; font-size: 10px; font-weight: 850; letter-spacing: 1.3px; text-transform: uppercase; }
.hero-eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .8; }
.workspace-hero h2 { max-width: 620px; font-size: clamp(26px, 2.5vw, 36px); font-weight: 800; line-height: 1.14; letter-spacing: -1.1px; }
.workspace-hero p { max-width: 600px; margin-top: 11px; color: rgba(236,244,255,.82); font-size: 13.5px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 41px; padding: 10px 15px; border: 1px solid transparent; border-radius: 11px; font-size: 12.5px; font-weight: 800; transition: transform .17s ease, box-shadow .17s ease, background .17s ease; }
.hero-btn:hover { transform: translateY(-2px); }
.hero-btn--primary { color: #10213d; background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.hero-btn--primary span { color: var(--navy-700); font-size: 17px; line-height: 0; }
.hero-btn--primary:hover { box-shadow: 0 14px 28px rgba(0,0,0,.22); }
.hero-btn--ghost { color: #f4f8ff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); }
.hero-btn--ghost:hover { background: rgba(255,255,255,.15); }
.hero-notes { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 18px; color: rgba(244,248,255,.76); font-size: 11.5px; font-weight: 600; }
.hero-notes span { display: inline-flex; align-items: center; gap: 6px; }
.hero-notes i { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; color: #124482; background: #e8f2ff; font-style: normal; font-size: 9px; font-weight: 900; }
.workspace-hero__visual { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 200px; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-glow--one { width: 240px; height: 240px; top: -61px; right: 5px; border: 1px solid rgba(255,255,255,.15); background: rgba(130,180,255,.09); }
.hero-glow--two { width: 160px; height: 160px; right: 55px; bottom: -50px; border: 1px solid rgba(255,255,255,.12); background: rgba(246,196,70,.08); }
.hero-visual-card--main { position: relative; width: min(290px, 95%); padding: 17px; border: 1px solid rgba(255,255,255,.32); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.25), rgba(234,244,255,.12)); box-shadow: 0 22px 50px rgba(0,0,0,.20); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); transform: rotate(-3deg); }
.hero-visual-card__top { display: flex; align-items: center; gap: 8px; color: rgba(245,249,255,.85); font-size: 10.5px; font-weight: 750; }
.hero-mini-logo { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; color: var(--navy-700); background: #fff; font-size: 13px; font-weight: 900; }
.hero-visual-card__top b { margin-left: auto; color: #67e8a4; font-size: 9px; }
.hero-visual-card__title { margin-top: 18px; color: #fff; font-size: 19px; font-weight: 800; line-height: 1.22; letter-spacing: -.4px; }
.hero-progress { height: 8px; margin-top: 16px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.20); }
.hero-progress span { display: block; width: 72%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f7c74d, #fff4c5); }
.hero-visual-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.hero-visual-stats span { padding: 8px 9px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; background: rgba(255,255,255,.11); }
.hero-visual-stats b { display: block; color: #fff; font-size: 11px; }
.hero-visual-stats em { display: block; margin-top: 2px; color: rgba(244,248,255,.62); font-size: 9px; font-style: normal; }
.hero-floating { position: absolute; z-index: 3; display: flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.27); border-radius: 10px; color: #fff; background: rgba(10,37,80,.48); box-shadow: 0 12px 26px rgba(0,0,0,.15); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 11px; font-weight: 800; }
.hero-floating--apps { top: 22px; right: 7px; }
.hero-floating--guide { left: 11px; bottom: 23px; }

.content-section-label { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 4px 4px 0; }
.content-section-label span { display: block; color: var(--navy-700); font-size: 10px; font-weight: 850; letter-spacing: 1px; text-transform: uppercase; }
.content-section-label h2 { margin-top: 2px; color: var(--navy-900); font-size: 17px; font-weight: 800; letter-spacing: -.4px; }
.content-section-label p { max-width: 420px; color: var(--ink-faint); font-size: 12px; line-height: 1.55; text-align: right; }

/* ── Announcement slider ── */
.announce-slider { overflow: hidden; border: 1px solid rgba(215,224,239,.95); border-radius: var(--radius-xl); background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); }
.announce-track { display: flex; cursor: grab; user-select: none; touch-action: pan-y; transition: transform .58s cubic-bezier(.4,0,.2,1); -webkit-user-select: none; }
.announce-track:active { cursor: grabbing; }
.announce-slide {
  min-width: 100%;
  overflow: hidden;
  line-height: 0;
  background: #ffffff;
}
/* Banner slider: paparkan keseluruhan gambar pada saiz asalnya.
   Tiada tinggi tetap — jadi banner tidak akan dipotong di bahagian atas atau bawah. */
.announce-slide-img {
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 0;
  max-height: none;
  object-fit: contain !important;
  object-position: center;
}
.announce-nav { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 8px 14px 8px 18px; border-top: 1px solid var(--line); background: linear-gradient(90deg, #fff, #f8fbff); }
.announce-dots { display: flex; align-items: center; gap: 6px; }
.a-dot { width: 7px; height: 7px; cursor: pointer; border-radius: 999px; background: #c2cedf; transition: width .2s ease, background .2s ease; }
.a-dot.active { width: 26px; background: var(--navy-700); }
.announce-arrows { display: flex; gap: 7px; }
.a-arrow { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; cursor: pointer; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--navy-800); background: #fff; font-size: 17px; line-height: 1; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.a-arrow:hover { border-color: rgba(29,77,153,.32); background: var(--blue-50); transform: translateY(-1px); }
.announce-tag, .announce-body { display: none; }

/* ── Quick access ── */
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.quick-card { position: relative; display: flex; align-items: center; gap: 13px; min-height: 86px; padding: 15px 17px; overflow: hidden; border: 1px solid rgba(215,224,239,.96); border-radius: var(--radius-lg); color: var(--ink); background: rgba(255,255,255,.92); box-shadow: var(--shadow-xs); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.quick-card::after { content: ""; position: absolute; right: -20px; bottom: -36px; width: 110px; height: 110px; border-radius: 50%; background: rgba(37,99,235,.055); transition: transform .2s ease; }
.quick-card:hover { border-color: rgba(29,77,153,.26); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.quick-card:hover::after { transform: scale(1.18); }
.qc-icon { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 47px; width: 47px; height: 47px; border: 1px solid rgba(37,99,235,.10); border-radius: 14px; font-size: 20px; box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.qci-blue { background: #e8f0ff; }
.qci-green { background: #eafaf0; }
.qc-body { position: relative; z-index: 1; min-width: 0; }
.qc-body strong { display: block; color: var(--navy-900); font-size: 13px; font-weight: 800; }
.qc-body span { display: block; margin-top: 3px; overflow: hidden; color: var(--ink-faint); font-size: 11.5px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.qc-arrow { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; margin-left: auto; border-radius: 9px; color: var(--navy-700); background: var(--blue-50); font-size: 15px; transition: transform .18s ease, background .18s ease; }
.quick-card:hover .qc-arrow { background: var(--blue-100); transform: translate(2px,-2px); }

/* ── General card / sections ── */
.sec-card { overflow: hidden; border: 1px solid rgba(215,224,239,.96); border-radius: var(--radius-xl); background: rgba(255,255,255,.94); box-shadow: var(--shadow-sm); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 70px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(248,251,255,.95), rgba(255,255,255,.95)); }
.sec-head-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sec-head-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid rgba(37,99,235,.10); border-radius: 11px; font-size: 16px; }
.sec-head h2 { color: var(--navy-900); font-size: 14.5px; font-weight: 800; letter-spacing: -.2px; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 9px; border: 1px solid transparent; border-radius: 999px; font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.badge-blue { color: #1d4d99; border-color: rgba(37,99,235,.15); background: #e9f1ff; }
.badge-amber { color: #986200; border-color: rgba(221,157,13,.17); background: #fff8de; }
.badge-purple { color: var(--purple-600); border-color: rgba(126,34,206,.13); background: var(--purple-50); }
.badge-pink { color: var(--pink-600); border-color: rgba(190,24,93,.13); background: var(--pink-50); }
.badge-green { color: var(--green-600); border-color: rgba(21,128,61,.13); background: var(--green-50); }

/* ── Apps ── */
.apps-grid-full { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 8px; padding: 18px; }
.app-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; min-height: 112px; padding: 11px 5px; overflow: hidden; border: 1px solid transparent; border-radius: 15px; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.app-item::before { content: ""; position: absolute; inset: 0; opacity: 0; background: linear-gradient(180deg, #f5f9ff, #edf4ff); transition: opacity .18s ease; }
.app-item:hover { border-color: rgba(37,99,235,.17); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(29,77,153,.10); }
.app-item:hover::before { opacity: 1; }
.app-item:active { transform: translateY(-1px) scale(.985); }
.app-thumb { position: relative; z-index: 1; width: 60px; height: 60px; border: 1px solid rgba(215,224,239,.86); border-radius: 17px; object-fit: cover; background: #f6f8fc; box-shadow: 0 6px 16px rgba(16,33,61,.10); transition: transform .18s ease, box-shadow .18s ease; }
.app-item:hover .app-thumb { transform: scale(1.045); box-shadow: 0 9px 20px rgba(16,33,61,.16); }
.app-name { position: relative; z-index: 1; max-width: 100%; padding: 0 3px; color: #334763; font-size: 10.5px; font-weight: 750; line-height: 1.3; text-align: center; }
.app-launch { position: absolute; z-index: 2; top: 9px; right: 9px; display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; opacity: 0; border-radius: 7px; color: var(--navy-700); background: rgba(255,255,255,.92); box-shadow: 0 4px 10px rgba(16,33,61,.10); font-size: 12px; transform: translate(-2px,2px); transition: opacity .18s ease, transform .18s ease; }
.app-item:hover .app-launch { opacity: 1; transform: translate(0,0); }
.apps-lock-info { display: flex; align-items: flex-start; gap: 11px; margin: 0 18px 0; padding: 13px 15px; border: 1px solid #f5dfa3; border-radius: 14px; background: linear-gradient(90deg, #fffaf0, #fffdf7); }
.ali-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 31px; width: 31px; height: 31px; border-radius: 9px; background: #fff0c2; font-size: 15px; }
.ali-body { min-width: 0; }
.ali-body strong { display: block; margin-bottom: 3px; color: #9a6200; font-size: 12px; font-weight: 800; }
.ali-body p { color: #687389; font-size: 11.5px; line-height: 1.62; }
.apps-hint { padding: 12px 14px; margin-top: 16px; border-top: 1px solid rgba(37,99,235,.08); color: var(--navy-700); background: linear-gradient(90deg, #eff6ff, #f8fbff); font-size: 11px; font-weight: 800; text-align: center; }

/* ── Resource sections ── */
.two-col { display: grid; grid-template-columns: minmax(0,1.06fr) minmax(0,.94fr); align-items: start; gap: 18px; }
.right-col { display: flex; flex-direction: column; gap: 18px; }
.drive-list, .panduan-list { display: flex; flex-direction: column; }
.drive-item, .panduan-item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 11px 18px; color: var(--ink); border-bottom: 1px solid #edf1f7; transition: background .15s ease, padding .15s ease; }
.drive-item:last-child, .panduan-item:last-child { border-bottom: 0; }
.drive-item::before, .panduan-item::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; opacity: 0; border-radius: 0 999px 999px 0; background: var(--navy-700); transition: opacity .15s ease; }
.drive-item:hover, .panduan-item:hover { padding-left: 22px; background: #f8fbff; }
.drive-item:hover::before, .panduan-item:hover::before { opacity: 1; }
.drive-icon, .panduan-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid rgba(16,33,61,.06); border-radius: 10px; font-size: 15px; }
.di-amber { background: #fff7d8; }
.di-blue { background: #e8f0ff; }
.di-purple { background: #f3eaff; }
.drive-text, .panduan-text { min-width: 0; }
.drive-text strong, .panduan-text strong { display: block; overflow: hidden; color: #263b59; font-size: 12.5px; font-weight: 750; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.drive-text span, .panduan-text span { display: block; margin-top: 2px; color: var(--ink-faint); font-size: 10.5px; font-weight: 500; }
.drive-arrow { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 25px; width: 25px; height: 25px; margin-left: auto; border-radius: 8px; color: #8d9bb1; font-size: 14px; transition: color .15s ease, background .15s ease, transform .15s ease; }
.drive-item:hover .drive-arrow, .panduan-item:hover .drive-arrow { color: var(--navy-700); background: #e9f1ff; transform: translate(2px,-2px); }

/* ── Support card ── */
.support-types { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; padding: 16px 16px 12px; }
.s-type { position: relative; display: flex; flex-direction: column; align-items: center; min-height: 142px; padding: 15px 11px; overflow: hidden; cursor: pointer; border: 1.5px solid var(--line-strong); border-radius: 16px; background: #fff; text-align: center; transition: transform .17s ease, border-color .17s ease, box-shadow .17s ease, background .17s ease; }
.s-type::after { content: ""; position: absolute; right: -26px; bottom: -42px; width: 100px; height: 100px; border-radius: 50%; background: rgba(37,99,235,.05); }
.s-type:hover { border-color: rgba(37,99,235,.34); background: #f9fbff; box-shadow: 0 10px 23px rgba(29,77,153,.09); transform: translateY(-2px); }
.s-type.active { border-color: var(--blue-500); background: linear-gradient(180deg, #f7fbff, #edf5ff); box-shadow: 0 0 0 4px rgba(37,99,235,.10); }
.s-type.active::before { content: "Dipilih"; position: absolute; top: 9px; right: 9px; z-index: 2; padding: 3px 6px; border-radius: 999px; color: #1d4d99; background: #dbeafe; font-size: 8.5px; font-weight: 850; }
.s-type-icon { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; margin-bottom: 9px; border-radius: 14px; font-size: 20px; }
.s-type strong { position: relative; z-index: 1; color: var(--navy-900); font-size: 12.5px; font-weight: 800; line-height: 1.35; }
.s-type p { position: relative; z-index: 1; margin-top: 4px; color: var(--ink-faint); font-size: 10.5px; line-height: 1.5; }
.support-form-wrap { display: none; padding: 0 16px 17px; }
.support-form-wrap.show { display: block; animation: formReveal .25s ease both; }
@keyframes formReveal { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.dest-bar { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; padding: 10px 12px; border: 1px solid rgba(21,128,61,.16); border-radius: 12px; color: var(--green-600); background: var(--green-50); font-size: 11.5px; font-weight: 700; line-height: 1.4; }
.dest-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.14); animation: pulse 2s ease infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(.78); } }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 11px; }
.form-label { color: var(--ink-soft); font-size: 11.5px; font-weight: 750; }
.form-input, .form-textarea { padding: 10px 12px; border-radius: 11px; font-size: 12.5px; }
.form-textarea { min-height: 91px; resize: vertical; line-height: 1.55; }
.btn-wa { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 45px; margin-top: 2px; cursor: pointer; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #2ecb70, #128c50); box-shadow: 0 10px 21px rgba(18,140,80,.22); font-size: 12.5px; font-weight: 850; transition: transform .17s ease, box-shadow .17s ease; }
.btn-wa:hover { box-shadow: 0 14px 28px rgba(18,140,80,.29); transform: translateY(-2px); }
.btn-wa:active { transform: translateY(0); }
.btn-wa svg { width: 19px; height: 19px; fill: currentColor; }

/* ── Mobile nav ── */
.mobile-nav { display: none; }

/* ── Responsive ── */
@media (max-width: 1240px) {
  .th-layout { grid-template-columns: 244px minmax(0,1fr); }
  .th-content { padding-right: 24px; padding-left: 24px; }
  .th-topbar { padding-right: 24px; padding-left: 24px; }
  .apps-grid-full { grid-template-columns: repeat(6, minmax(0,1fr)); }
}
@media (max-width: 1040px) {
  .workspace-hero { grid-template-columns: minmax(0,1.18fr) minmax(230px,.82fr); padding: 28px; }
  .workspace-hero h2 { font-size: 29px; }
  .two-col { grid-template-columns: 1fr; }
  .right-col { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .right-col .sec-card#support { grid-column: span 2; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 80px; }
  .th-layout { display: block; }
  .th-sidebar { display: none; }
  .th-main { padding-bottom: 80px; }
  .th-topbar { min-height: 70px; padding: 10px 16px; }
  .topbar-kicker { font-size: 8.5px; }
  .th-topbar h1 { font-size: 16px; }
  .th-content { gap: 15px; padding: 17px 14px 92px; }
  .workspace-hero { padding: 26px 24px; }
  .mobile-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 70; display: flex; align-items: stretch; padding: 7px 3px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(215,224,239,.9); background: rgba(255,255,255,.94); box-shadow: 0 -10px 30px rgba(17,38,76,.08); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .mn-item { position: relative; display: flex; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 4px 2px; color: #8693a8; transition: color .16s ease; }
  .mn-item::before { content: ""; position: absolute; top: -4px; width: 25px; height: 3px; opacity: 0; border-radius: 0 0 99px 99px; background: var(--navy-700); transition: opacity .16s ease; }
  .mn-item.active { color: var(--navy-700); }
  .mn-item.active::before { opacity: 1; }
  .mn-icon { font-size: 18px; line-height: 1; }
  .mn-label { overflow: hidden; max-width: 100%; font-size: 9px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
}
@media (max-width: 720px) {
  .workspace-hero { grid-template-columns: 1fr; min-height: auto; padding: 25px 22px 20px; }
  .workspace-hero__visual { min-height: 155px; margin-top: 6px; }
  .hero-visual-card--main { width: 260px; }
  .hero-floating--apps { top: 8px; right: 5px; }
  .hero-floating--guide { bottom: 7px; left: 8px; }
  .right-col { display: flex; }
  .right-col .sec-card#support { grid-column: auto; }
  .apps-grid-full { grid-template-columns: repeat(5, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .th-topbar { gap: 10px; padding: 9px 13px; }
  .th-topbar p { max-width: 205px; font-size: 10.5px; }
  .topbar-help { display: none; }
  .pg-badge { padding: 6px 9px; font-size: 10px; }
  .pg-dot { width: 6px; height: 6px; }
  .th-content { padding: 13px 11px 90px; }
  .workspace-hero { border-radius: 21px; }
  .workspace-hero h2 { font-size: 25px; letter-spacing: -.8px; }
  .workspace-hero p { font-size: 12.2px; }
  .hero-actions { gap: 8px; margin-top: 17px; }
  .hero-btn { min-height: 39px; padding: 9px 12px; font-size: 11.5px; }
  .hero-notes { gap: 7px 11px; margin-top: 15px; font-size: 10.5px; }
  .workspace-hero__visual { min-height: 146px; }
  .hero-visual-card--main { width: 235px; padding: 14px; }
  .hero-visual-card__title { margin-top: 14px; font-size: 16px; }
  .hero-floating { padding: 7px 8px; font-size: 9.5px; }
  .content-section-label { align-items: start; flex-direction: column; gap: 4px; padding: 3px 3px 0; }
  .content-section-label h2 { font-size: 16px; }
  .content-section-label p { max-width: none; font-size: 10.8px; text-align: left; }
  .announce-slider, .sec-card { border-radius: 20px; }
  .announce-slide-img { height: auto !important; }
  .announce-nav { min-height: 42px; padding: 6px 11px 6px 14px; }
  .a-arrow { width: 28px; height: 28px; }
  .quick-grid { gap: 9px; }
  .quick-card { min-height: 79px; gap: 9px; padding: 11px 10px; border-radius: 16px; }
  .qc-icon { flex-basis: 39px; width: 39px; height: 39px; border-radius: 12px; font-size: 16px; }
  .qc-body strong { font-size: 11.5px; }
  .qc-body span { font-size: 9.5px; }
  .qc-arrow { display: none; }
  .sec-head { min-height: 61px; padding: 12px 14px; }
  .sec-head-icon { flex-basis: 32px; width: 32px; height: 32px; border-radius: 10px; font-size: 14px; }
  .sec-head h2 { font-size: 13px; }
  .badge { padding: 3px 7px; font-size: 9px; }
  .apps-grid-full { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 4px; padding: 11px 7px; }
  .app-item { min-height: 98px; gap: 6px; padding: 8px 2px; border-radius: 12px; }
  .app-thumb { width: 49px; height: 49px; border-radius: 14px; }
  .app-name { font-size: 9.2px; line-height: 1.25; }
  .app-launch { display: none; }
  .apps-lock-info { gap: 8px; margin: 0 10px; padding: 11px; border-radius: 12px; }
  .ali-icon { flex-basis: 28px; width: 28px; height: 28px; font-size: 13px; }
  .ali-body strong { font-size: 11px; }
  .ali-body p { font-size: 10.2px; line-height: 1.55; }
  .apps-hint { margin-top: 12px; padding: 10px; font-size: 10px; }
  .two-col, .right-col { gap: 15px; }
  .drive-item, .panduan-item { min-height: 56px; gap: 9px; padding: 9px 13px; }
  .drive-item:hover, .panduan-item:hover { padding-left: 17px; }
  .drive-icon, .panduan-icon { flex-basis: 30px; width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
  .drive-text strong, .panduan-text strong { font-size: 11.4px; }
  .drive-text span, .panduan-text span { font-size: 9.6px; }
  .support-types { gap: 9px; padding: 12px 12px 8px; }
  .s-type { min-height: 130px; padding: 13px 8px; border-radius: 14px; }
  .s-type-icon { width: 40px; height: 40px; margin-bottom: 7px; border-radius: 12px; font-size: 18px; }
  .s-type strong { font-size: 11.4px; }
  .s-type p { font-size: 9.5px; }
  .support-form-wrap { padding: 0 12px 13px; }
  .dest-bar { font-size: 10.4px; }
  .form-input, .form-textarea { font-size: 12px; }
  .gate { padding: 14px; }
  .gate__panel { padding: 25px 20px 20px; border-radius: 22px; }
  .gate__title { font-size: 20px; }
}
@media (max-width: 374px) {
  .workspace-hero h2 { font-size: 23px; }
  .hero-btn--ghost { display: none; }
  .quick-grid { grid-template-columns: 1fr; }
  .apps-grid-full { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .support-types { grid-template-columns: 1fr; }
}
/* ── iOS FIX: elak auto-zoom bila tap input ──
   iOS Safari zoom masuk kalau font input < 16px, lepas tu page boleh geser tepi.
   Set 16px pada peranti sentuh sahaja — desktop kekal saiz asal. */
@media (pointer: coarse) {
  input.gate__input,
  input.form-input,
  textarea.form-textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* ── App rating (bintang) ── */
.app-cell { display: flex; flex-direction: column; min-width: 0; }
.app-cell > .app-item { flex: 0 0 auto; min-height: auto; padding-bottom: 2px; }
.app-rating { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 0 3px 8px; }
.rate-stars { display: inline-flex; gap: 2px; }
.rate-stars button { padding: 1px; border: 0; background: none; cursor: pointer; color: #d3dbe8; font-size: 15px; line-height: 1; transition: color .12s ease, transform .12s ease; }
.rate-stars button.on { color: #f5b301; }
.rate-stars button:hover { transform: scale(1.18); }
.rate-stars button:active { transform: scale(.95); }
.rate-meta { margin-top: 2px; color: var(--ink-faint); font-size: 9.5px; font-weight: 700; text-align: center; letter-spacing: .1px; }
.rate-meta b { color: #a9720b; font-weight: 850; }
@media (max-width: 560px){
  .app-cell > .app-item { padding-bottom: 0; }
  .app-rating { gap: 0; padding: 0 2px 6px; }
  .rate-stars button { padding: 0; font-size: 11px; }
  .rate-meta { margin-top: 1px; font-size: 8.3px; }
}

/* ── CTA Affiliate ── */
.affil-cta { position: relative; display: flex; align-items: center; gap: 16px; margin: 16px 18px 0; padding: 18px 20px; overflow: hidden; border: 1px solid rgba(212,155,63,.35); border-radius: 18px; background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 55%, #17408a 100%); box-shadow: 0 14px 34px rgba(10,37,80,.28); transition: transform .18s ease, box-shadow .18s ease; }
.affil-cta:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(10,37,80,.34); }
.affil-cta__glow { position: absolute; top: -60%; right: -6%; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(247,199,77,.30), transparent 68%); pointer-events: none; }
.affil-cta__icon { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; color: #3a2a00; background: linear-gradient(135deg, #f7c74d, #e0a52a); box-shadow: 0 8px 18px rgba(224,165,42,.4); }
.affil-cta__icon svg { width: 27px; height: 27px; }
.affil-cta__body { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; }
.affil-cta__kicker { display: block; color: #f7c74d; font-size: 10px; font-weight: 850; letter-spacing: 1.1px; text-transform: uppercase; }
.affil-cta__title { display: block; margin-top: 4px; color: #fff; font-size: 16px; font-weight: 800; letter-spacing: -.3px; line-height: 1.25; }
.affil-cta__sub { display: block; margin-top: 5px; color: rgba(233,240,252,.78); font-size: 12px; font-weight: 500; line-height: 1.55; }
.affil-cta__btn { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 11px; color: #2a1e00; background: linear-gradient(135deg, #f7c74d, #f0b73a); font-size: 13px; font-weight: 850; white-space: nowrap; box-shadow: 0 10px 22px rgba(224,165,42,.35); transition: transform .16s ease, box-shadow .16s ease; }
.affil-cta:hover .affil-cta__btn { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(224,165,42,.45); }
.affil-cta__btn i { font-style: normal; font-size: 15px; line-height: 0; transition: transform .16s ease; }
.affil-cta:hover .affil-cta__btn i { transform: translateX(3px); }
@media (max-width: 720px){
  .affil-cta { flex-wrap: wrap; gap: 12px 14px; margin: 14px 10px 0; padding: 15px 16px; }
  .affil-cta__body { flex-basis: calc(100% - 68px); }
  .affil-cta__btn { width: 100%; justify-content: center; margin-top: 2px; }
}
@media (max-width: 560px){
  .affil-cta__title { font-size: 14.5px; }
  .affil-cta__sub { font-size: 11.5px; }
  .affil-cta__icon { width: 46px; height: 46px; }
}

/* ── Live presence pill (online + jumlah pelawat) ── */
.th-presence{display:inline-flex;align-items:center;gap:7px;padding:6px 11px;margin-right:4px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink-soft);font-size:11.5px;font-weight:700;white-space:nowrap;box-shadow:var(--shadow-xs);}
.th-presence .dot{width:7px;height:7px;border-radius:50%;background:#16a34a;animation:thPulse 1.8s infinite;}
@keyframes thPulse{0%{box-shadow:0 0 0 0 rgba(22,163,74,.45)}70%{box-shadow:0 0 0 6px rgba(22,163,74,0)}100%{box-shadow:0 0 0 0 rgba(22,163,74,0)}}
.th-presence b{color:var(--navy-900);font-weight:800;}
.th-presence .sep{color:var(--line-strong);}
@media(max-width:560px){.th-presence{padding:5px 9px;font-size:10.5px}.th-presence .sep,.th-presence .th-total-wrap{display:none}}

/* ── FAQ Guru ── */
.faq-section { overflow: hidden; scroll-margin-top: 96px; }
.faq-hero {
  position: relative; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  min-height: 178px; padding: 27px 30px; overflow: hidden;
  border-bottom: 1px solid rgba(215,224,239,.75);
  color: #fff;
  background:
    radial-gradient(circle at 86% 5%, rgba(88, 196, 150, .27), transparent 15rem),
    radial-gradient(circle at 5% 110%, rgba(247, 199, 77, .15), transparent 18rem),
    linear-gradient(120deg, #0a2550 0%, #13326e 63%, #145d72 100%);
}
.faq-hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0; opacity: .3; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.46) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(100deg, rgba(0,0,0,.75), transparent 82%);
}
.faq-hero__copy { max-width: 770px; }
.faq-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #8ff0bd; font-size: 9.5px; font-weight: 850; letter-spacing: 1.25px; text-transform: uppercase; }
.faq-eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.faq-hero h3 { max-width: 700px; margin-top: 10px; font-size: clamp(22px, 2.1vw, 31px); font-weight: 800; line-height: 1.18; letter-spacing: -.8px; }
.faq-hero p { max-width: 720px; margin-top: 9px; color: rgba(239,247,255,.78); font-size: 12.5px; line-height: 1.65; }
.faq-hero__stat {
  flex: 0 0 142px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 112px; padding: 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 20px;
  background: rgba(255,255,255,.11); box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 16px 30px rgba(0,0,0,.14);
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
}
.faq-hero__stat strong { color: #fff; font-size: 38px; font-weight: 850; line-height: 1; letter-spacing: -1.5px; }
.faq-hero__stat span { margin-top: 7px; color: rgba(244,249,255,.72); font-size: 10px; font-weight: 750; text-align: center; text-transform: uppercase; letter-spacing: .65px; }

.faq-tools { padding: 20px 22px 15px; background: linear-gradient(180deg, #fbfdff, #fff); border-bottom: 1px solid var(--line); }
.faq-search {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 0 12px 0 15px;
  border: 1.5px solid var(--line-strong); border-radius: 15px; background: #fff; box-shadow: var(--shadow-xs);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq-search:focus-within { border-color: rgba(37,99,235,.62); box-shadow: 0 0 0 4px rgba(37,99,235,.10), var(--shadow-xs); }
.faq-search__icon { flex: none; color: var(--navy-700); font-size: 24px; font-weight: 500; line-height: 1; transform: rotate(-18deg); }
.faq-search input { flex: 1; min-width: 0; height: 46px; outline: 0; border: 0; color: var(--ink); background: transparent; font-size: 13px; font-weight: 600; }
.faq-search input::placeholder { color: #98a5b8; font-weight: 500; }
.faq-search input::-webkit-search-cancel-button { display: none; }
.faq-search__clear {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px;
  opacity: 0; pointer-events: none; cursor: pointer; border: 0; border-radius: 9px; color: #67758b; background: #eef2f7;
  font-size: 20px; line-height: 1; transition: opacity .15s ease, background .15s ease, color .15s ease;
}
.faq-search__clear.show { opacity: 1; pointer-events: auto; }
.faq-search__clear:hover { color: var(--navy-900); background: #e3eaf4; }
.faq-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.faq-filter {
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 10px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 999px; color: #536278; background: #fff;
  font-size: 10.5px; font-weight: 750; transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}
.faq-filter:hover { color: var(--navy-800); border-color: rgba(37,99,235,.28); background: var(--blue-50); transform: translateY(-1px); }
.faq-filter.active { color: #fff; border-color: var(--navy-700); background: linear-gradient(135deg, var(--navy-700), var(--navy-800)); box-shadow: 0 7px 17px rgba(19,50,110,.18); }
.faq-filter__icon { font-size: 12px; line-height: 1; }
.faq-filter b { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; color: var(--navy-700); background: #edf3ff; font-size: 9px; font-weight: 850; }
.faq-filter.active b { color: var(--navy-900); background: #fff; }

.faq-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.faq-meta p { color: var(--ink-faint); font-size: 10.8px; font-weight: 650; line-height: 1.5; }
.faq-meta__actions { display: flex; gap: 7px; }
.faq-meta button { padding: 6px 9px; cursor: pointer; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--navy-700); background: #fff; font-size: 9.8px; font-weight: 800; transition: background .15s ease, border-color .15s ease; }
.faq-meta button:hover { border-color: rgba(37,99,235,.28); background: var(--blue-50); }

.faq-list { display: flex; flex-direction: column; gap: 18px; padding: 20px 22px 22px; background: #f8fafd; }
.faq-group { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-xs); }
.faq-group__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 17px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fbfdff, #f7faff); }
.faq-group__head span { display: block; color: var(--navy-700); font-size: 8.5px; font-weight: 850; letter-spacing: .9px; text-transform: uppercase; }
.faq-group__head h4 { margin-top: 3px; color: var(--navy-900); font-size: 13.5px; font-weight: 820; letter-spacing: -.2px; }
.faq-group__head > b { flex: none; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-faint); background: #fff; font-size: 9.5px; font-weight: 800; }
.faq-group__items { display: flex; flex-direction: column; }

.faq-item { border-bottom: 1px solid #edf1f6; background: #fff; transition: background .16s ease; }
.faq-item:last-child { border-bottom: 0; }
.faq-item[open] { background: #fbfdff; }
.faq-item summary {
  display: grid; grid-template-columns: 38px minmax(0,1fr) 31px; align-items: center; gap: 12px;
  min-height: 70px; padding: 13px 16px; cursor: pointer; list-style: none; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: #f8fbff; }
.faq-number { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid #dbe5f3; border-radius: 11px; color: var(--navy-700); background: #f1f6ff; font-size: 10.5px; font-weight: 850; }
.faq-question-wrap { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.faq-question-category { color: var(--green-600); font-size: 8.5px; font-weight: 850; letter-spacing: .65px; text-transform: uppercase; }
.faq-question { color: #213653; font-size: 12.5px; font-weight: 760; line-height: 1.5; }
.faq-toggle { position: relative; width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 2px; border-radius: 99px; background: var(--navy-700); transform: translate(-50%,-50%); transition: transform .18s ease, opacity .18s ease; }
.faq-toggle::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-item[open] .faq-toggle { border-color: rgba(37,99,235,.18); background: var(--blue-50); }
.faq-item[open] .faq-toggle::after { opacity: 0; transform: translate(-50%,-50%) rotate(0); }
.faq-answer { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 14px; padding: 0 17px 17px 66px; animation: faqReveal .22s ease both; }
@keyframes faqReveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.faq-answer__label { align-self: start; display: inline-flex; justify-content: center; padding: 5px 7px; border-radius: 8px; color: #0d7440; background: #eafaf1; font-size: 8.5px; font-weight: 850; letter-spacing: .55px; text-transform: uppercase; }
.faq-answer p { color: #536278; font-size: 11.8px; line-height: 1.78; white-space: pre-line; }

.faq-empty { margin: 20px 22px; padding: 34px 20px; border: 1px dashed var(--line-strong); border-radius: 17px; background: #fbfdff; text-align: center; }
.faq-empty__icon { font-size: 27px; }
.faq-empty strong { display: block; margin-top: 8px; color: var(--navy-900); font-size: 13px; }
.faq-empty p { margin-top: 5px; color: var(--ink-faint); font-size: 10.8px; }
.faq-empty button { margin-top: 13px; padding: 8px 12px; cursor: pointer; border: 0; border-radius: 9px; color: #fff; background: var(--navy-700); font-size: 10px; font-weight: 800; }

.faq-source-note { display: flex; align-items: center; gap: 11px; margin: 0 22px 22px; padding: 13px 14px; border: 1px solid #eadfb9; border-radius: 14px; background: var(--gold-50); }
.faq-source-note__icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; background: var(--gold-100); font-size: 15px; }
.faq-source-note > div:nth-child(2) { min-width: 0; }
.faq-source-note strong { display: block; color: #795112; font-size: 10.8px; font-weight: 820; }
.faq-source-note span { display: block; margin-top: 2px; color: #8a6a32; font-size: 9.8px; line-height: 1.5; }
.faq-source-note a { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 8px 10px; border: 1px solid #e3c875; border-radius: 9px; color: #7a520d; background: #fffdf6; font-size: 9.8px; font-weight: 820; transition: background .15s ease, transform .15s ease; }
.faq-source-note a:hover { background: #fff; transform: translateY(-1px); }

@media (max-width: 720px) {
  .faq-hero { align-items: flex-start; min-height: auto; padding: 23px 20px; }
  .faq-hero__stat { flex-basis: 105px; min-height: 96px; border-radius: 17px; }
  .faq-hero__stat strong { font-size: 31px; }
  .faq-tools, .faq-list { padding-right: 14px; padding-left: 14px; }
  .faq-meta { padding-right: 14px; padding-left: 14px; }
  .faq-source-note { margin-right: 14px; margin-left: 14px; }
  .faq-answer { grid-template-columns: 1fr; gap: 8px; padding-left: 66px; }
  .faq-answer__label { justify-self: start; }
}
@media (max-width: 560px) {
  .faq-hero { flex-direction: column; gap: 17px; padding: 21px 17px; }
  .faq-hero h3 { font-size: 21px; }
  .faq-hero p { font-size: 11.5px; }
  .faq-hero__stat { flex: none; flex-direction: row; justify-content: flex-start; gap: 9px; width: 100%; min-height: 58px; padding: 11px 14px; border-radius: 14px; }
  .faq-hero__stat strong { font-size: 26px; letter-spacing: -.8px; }
  .faq-hero__stat span { margin-top: 0; text-align: left; }
  .faq-tools { padding-top: 14px; padding-bottom: 12px; }
  .faq-search { min-height: 46px; border-radius: 13px; }
  .faq-search input { height: 42px; font-size: 11.5px; }
  .faq-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
  .faq-filters::-webkit-scrollbar { display: none; }
  .faq-filter { flex: 0 0 auto; min-height: 32px; padding: 6px 9px; font-size: 9.6px; }
  .faq-meta { align-items: flex-start; flex-direction: column; gap: 8px; }
  .faq-meta__actions { width: 100%; }
  .faq-meta button { flex: 1; }
  .faq-list { gap: 13px; padding-top: 14px; padding-bottom: 15px; }
  .faq-group { border-radius: 15px; }
  .faq-group__head { padding: 12px 13px; }
  .faq-group__head h4 { font-size: 12.5px; }
  .faq-item summary { grid-template-columns: 32px minmax(0,1fr) 27px; gap: 9px; min-height: 65px; padding: 11px 12px; }
  .faq-number { width: 30px; height: 30px; border-radius: 9px; font-size: 9.5px; }
  .faq-question { font-size: 11.2px; line-height: 1.48; }
  .faq-toggle { width: 27px; height: 27px; border-radius: 9px; }
  .faq-answer { gap: 7px; padding: 0 12px 14px 53px; }
  .faq-answer p { font-size: 10.8px; line-height: 1.72; }
  .faq-source-note { align-items: flex-start; flex-wrap: wrap; margin-bottom: 15px; padding: 12px; }
  .faq-source-note > div:nth-child(2) { flex: 1 1 calc(100% - 48px); }
  .faq-source-note a { width: 100%; justify-content: center; }
}


/* ── Dedicated FAQ page ── */
.faq-page .th-content--faq { max-width: 1320px; padding-top: 28px; }
.faq-page .faq-section { width: 100%; }
.faq-page .faq-section .sec-head { position: relative; }
@media (max-width: 720px) {
  .faq-page .th-content--faq { padding-top: 14px; }
  .faq-page .topbar-help { display: inline-flex; }
}
