/* ==========================================================================
   BTEB — Premium theme
   Structure: 1 tokens · 2 base · 3 layout · 4 buttons · 5 header/nav
              6 hero · 7 cards & components · 8 forms · 9 tables
              10 portal · 11 footer · 12 widgets · 13 animation · 14 responsive
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  --navy-950: #050d24;
  --navy-900: #081533;
  --navy-800: #0b1f4b;
  --navy-700: #13306b;
  --primary: #2156e0;
  --primary-600: #1a47c2;
  --primary-700: #143a9e;
  --primary-300: #7fa3ff;
  --primary-50: #eef3ff;
  --gold: #f6b93b;
  --gold-600: #e09a12;
  --gold-700: #b37608;
  --gold-50: #fff7e6;
  --teal: #12b3a6;
  --rose: #e5484d;
  --green: #16a34a;
  --amber: #d97706;

  --bg: #f4f6fb;
  --bg-alt: #eaeef8;
  --surface: #ffffff;
  --surface-2: #f8faff;
  --text: #0e1730;
  --text-2: #2c3654;
  --muted: #5e6886;
  --border: #e1e6f2;
  --ring: rgba(33, 86, 224, .28);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(14, 23, 48, .06), 0 2px 6px rgba(14, 23, 48, .05);
  --shadow: 0 2px 4px rgba(14, 23, 48, .04), 0 12px 32px -12px rgba(14, 23, 48, .16);
  --shadow-lg: 0 4px 8px rgba(14, 23, 48, .05), 0 30px 60px -20px rgba(14, 23, 48, .28);
  --shadow-glow: 0 20px 50px -18px rgba(33, 86, 224, .55);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
  --container: 1220px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #070e22;
  --bg-alt: #0a142e;
  --surface: #0f1b3a;
  --surface-2: #122046;
  --text: #eef2ff;
  --text-2: #cdd6f4;
  --muted: #95a1c4;
  --border: #1f2e58;
  --primary-50: #16275a;
  --gold-50: #2b2412;
  --ring: rgba(127, 163, 255, .35);
  --shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 16px 40px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65;
  color: var(--text); background: var(--bg); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-600); }
[data-theme="dark"] a { color: var(--primary-300); }
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .6em; color: var(--text); letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
code { background: var(--bg-alt); padding: .1em .4em; border-radius: 6px; font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--primary); color: #fff; padding: .5rem 1rem; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--primary); color: #fff; }

/* 3. LAYOUT ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 8vw, 110px) 0; position: relative; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: radial-gradient(1200px 500px at 10% 0%, #1a3a8a 0%, transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy-950)); color: #dfe6ff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: #aab6dc; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; padding: .38rem .9rem; margin-bottom: 1rem;
  font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-50); border: 1px solid rgba(33, 86, 224, .18); border-radius: 999px;
}
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); background: rgba(246, 185, 59, .1); border-color: rgba(246, 185, 59, .3); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split-rev { grid-template-columns: .9fr 1.1fr; }
.grid-main { grid-template-columns: 1.4fr 1fr; }
.stack > * + * { margin-top: 16px; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mt-4 { margin-top: 40px }
.mb-0 { margin-bottom: 0 } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px }

/* 4. BUTTONS (3D) ---------------------------------------------------------- */
.btn {
  --btn-bg: linear-gradient(180deg, #fff, #f1f4fb);
  --btn-fg: var(--text);
  --btn-edge: #cfd6e6;
  --btn-glow: rgba(14, 23, 48, .18);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .82rem 1.4rem; border: 0; border-radius: 14px; cursor: pointer;
  font: 700 .95rem/1.1 var(--font); letter-spacing: .01em; text-align: center; white-space: nowrap;
  color: var(--btn-fg); background: var(--btn-bg);
  box-shadow: 0 5px 0 var(--btn-edge), 0 12px 22px -8px var(--btn-glow), inset 0 1px 0 rgba(255, 255, 255, .45);
  transform: translateY(0); transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .2s;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.btn::after { /* glossy top highlight */
  content: ''; position: absolute; inset: 1px 1px 50% 1px; border-radius: 13px 13px 40% 40% / 13px 13px 12px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0)); pointer-events: none;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 7px 0 var(--btn-edge), 0 18px 30px -10px var(--btn-glow), inset 0 1px 0 rgba(255, 255, 255, .45); filter: saturate(1.08); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--btn-edge), 0 4px 10px -4px var(--btn-glow), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn:disabled, .btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-loading::before { content: ''; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary { --btn-bg: linear-gradient(180deg, #4577f5 0%, #2156e0 55%, #1d4ccc 100%); --btn-fg: #fff; --btn-edge: var(--primary-700); --btn-glow: rgba(33, 86, 224, .55); }
.btn-gold { --btn-bg: linear-gradient(180deg, #ffd776 0%, #f6b93b 55%, #efa720 100%); --btn-fg: #2b1d00; --btn-edge: var(--gold-700); --btn-glow: rgba(246, 185, 59, .55); }
.btn-dark { --btn-bg: linear-gradient(180deg, #1f356d, #0b1f4b); --btn-fg: #fff; --btn-edge: #050d24; --btn-glow: rgba(5, 13, 36, .5); }
.btn-success { --btn-bg: linear-gradient(180deg, #34c472, #16a34a); --btn-fg: #fff; --btn-edge: #0f7a36; --btn-glow: rgba(22, 163, 74, .45); }
.btn-danger { --btn-bg: linear-gradient(180deg, #f26b6f, #e5484d); --btn-fg: #fff; --btn-edge: #b3282d; --btn-glow: rgba(229, 72, 77, .45); }
.btn-ghost { --btn-bg: linear-gradient(180deg, var(--surface), var(--surface-2)); --btn-fg: var(--text); --btn-edge: var(--border); }
[data-theme="dark"] .btn-ghost { --btn-edge: #0a1330; }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--primary); --btn-edge: rgba(33, 86, 224, .35); box-shadow: inset 0 0 0 2px rgba(33, 86, 224, .35), 0 4px 0 rgba(33, 86, 224, .18); }
.btn-outline:hover { --btn-bg: var(--primary-50); box-shadow: inset 0 0 0 2px var(--primary), 0 6px 0 rgba(33, 86, 224, .22); }
[data-theme="dark"] .btn-outline { --btn-fg: var(--primary-300); }
.btn-glass { --btn-bg: rgba(255, 255, 255, .1); --btn-fg: #fff; --btn-edge: rgba(255, 255, 255, .12); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 4px 0 rgba(0, 0, 0, .25); }
.btn-glass:hover { --btn-bg: rgba(255, 255, 255, .18); color: #fff; }
.btn-sm { padding: .6rem 1rem; font-size: .86rem; border-radius: 12px; }
.btn-xs { padding: .4rem .7rem; font-size: .78rem; border-radius: 10px; box-shadow: 0 3px 0 var(--btn-edge), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-xs:hover { box-shadow: 0 4px 0 var(--btn-edge); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-icon { padding: .75rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: 0 3px 0 var(--border);
  transition: transform .15s, box-shadow .15s;
}
.icon-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--border); }
.icon-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--border); }

/* 5. HEADER / NAV ---------------------------------------------------------- */
.announce { background: linear-gradient(90deg, var(--gold-600), var(--gold), #ffd776); color: #2b1d00; font-size: .86rem; font-weight: 600; }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: .45rem 20px; text-align: center; flex-wrap: wrap; }
.announce-dot { width: 8px; height: 8px; border-radius: 50%; background: #2b1d00; animation: pulse 1.8s infinite; }
.announce-link { color: #2b1d00 !important; font-weight: 800; display: inline-flex; align-items: center; gap: .25rem; text-decoration: underline; text-underline-offset: 3px; }
.topbar { background: var(--navy-900); color: #b8c3e6; font-size: .83rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding: .5rem 20px; }
.topbar a, .topbar span { color: #c8d2f0; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--gold); }
.topbar-left, .topbar-right { display: flex; gap: 22px; flex-wrap: wrap; }
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--border); transition: box-shadow .3s, height .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(14, 23, 48, .35); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand-mark {
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; flex: none;
  font: 800 .74rem/1 var(--font-display); letter-spacing: 0; color: #fff; white-space: nowrap;
  background: linear-gradient(145deg, #3a6cf0, #0b1f4b); box-shadow: 0 4px 0 #06122e, 0 10px 20px -6px rgba(33, 86, 224, .6), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.brand-mark b { color: var(--gold); }
.brand-mark.lg { width: 64px; height: 64px; font-size: 1rem; margin: 0 auto 1rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .02em; }
.brand-text small { font-size: .66rem; color: var(--muted); font-weight: 600; max-width: 210px; text-transform: uppercase; letter-spacing: .04em; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: #9fb0dc; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .8rem; border-radius: 10px;
  color: var(--text-2); font-weight: 600; font-size: .93rem; white-space: nowrap; transition: color .2s, background .2s;
}
.nav-link .icon { display: none; }
.nav-link::after { content: ''; position: absolute; left: .8rem; right: .8rem; bottom: 4px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--gold)); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav-link:hover { color: var(--primary); background: var(--primary-50); }
.nav-link.is-active { color: var(--primary); }
.nav-link.is-active::after, .nav-link:hover::after { transform: scaleX(1); }
[data-theme="dark"] .nav-link:hover, [data-theme="dark"] .nav-link.is-active { color: #fff; }
.nav-mobile-actions { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }
.theme-sun { display: none; }
[data-theme="dark"] .theme-sun { display: block; }
[data-theme="dark"] .theme-moon { display: none; }

/* 6. HERO ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden; color: #dfe6ff; isolation: isolate;
  background: linear-gradient(160deg, #0b1f4b 0%, #081533 55%, #050d24 100%);
  padding: clamp(64px, 9vw, 120px) 0 clamp(80px, 10vw, 130px);
}
.hero::before { /* grid pattern */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgba(127, 163, 255, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 163, 255, .12) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; opacity: .55; animation: float 14s ease-in-out infinite; }
.blob-1 { width: 520px; height: 520px; background: #2156e0; top: -160px; right: -120px; }
.blob-2 { width: 380px; height: 380px; background: #12b3a6; bottom: -160px; left: -100px; opacity: .35; animation-delay: -5s; }
.blob-3 { width: 260px; height: 260px; background: #f6b93b; top: 40%; right: 30%; opacity: .18; animation-delay: -9s; }
.hero h1 { color: #fff; }
.hero h1 .grad-text { background: linear-gradient(90deg, #ffd776, #f6b93b 40%, #7fa3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.15rem; color: #b9c5ea; max-width: 580px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 32px; margin: 36px 0 38px; }
.hero-stat strong { display: block; font: 800 2rem/1 var(--font-display); color: #fff; }
.hero-stat span { font-size: .72rem; letter-spacing: .14em; font-weight: 700; color: #8fa0d0; text-transform: uppercase; }
.hero-visual { position: relative; perspective: 1400px; min-height: 440px; }
.cert-3d {
  position: relative; margin: 0 auto; width: min(100%, 440px); aspect-ratio: 1.38; border-radius: 22px; padding: 26px;
  background: linear-gradient(145deg, #fffdf6, #f7eed8); color: #2b2210; transform: rotateY(-16deg) rotateX(8deg) rotateZ(-2deg);
  box-shadow: 30px 40px 80px -20px rgba(0, 0, 0, .65), 0 0 0 10px rgba(255, 255, 255, .06), inset 0 0 0 2px #d8b86a, inset 0 0 0 8px #fffdf6, inset 0 0 0 9px #e3c985;
  transform-style: preserve-3d; animation: floatCard 7s ease-in-out infinite;
}
.cert-3d .cert-top { display: flex; justify-content: space-between; align-items: center; }
.cert-3d .cert-seal { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: radial-gradient(circle at 35% 30%, #ffe39a, #d99a16 70%); box-shadow: 0 6px 16px rgba(179, 118, 8, .5), inset 0 -3px 0 rgba(0, 0, 0, .15); }
.cert-3d h4 { font-family: Georgia, 'Times New Roman', serif; font-size: 1.35rem; margin: 18px 0 4px; color: #1a2340; text-align: center; letter-spacing: .02em; }
.cert-3d .cert-sub { text-align: center; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #8a6a1c; }
.cert-3d .cert-name { text-align: center; font: italic 700 1.4rem Georgia, serif; margin: 16px 0 4px; color: #0b1f4b; }
.cert-3d .cert-line { height: 1px; background: linear-gradient(90deg, transparent, #caa75a, transparent); margin: 8px 30px; }
.cert-3d .cert-foot { display: flex; justify-content: space-between; align-items: end; margin-top: 18px; font-size: .68rem; color: #6f5a2b; }
.cert-qr { width: 46px; height: 46px; border-radius: 6px; background: conic-gradient(#0b1f4b 25%, #fff 0 50%, #0b1f4b 0 75%, #fff 0) 0 0/12px 12px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #d8b86a; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; color: #fff; font-weight: 700; font-size: .9rem;
  background: rgba(8, 21, 51, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5); animation: float 8s ease-in-out infinite; z-index: 2;
}
.float-chip small { display: block; font-weight: 500; color: #aebbe3; font-size: .74rem; }
.float-chip .chip-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: linear-gradient(145deg, #4577f5, #1a47c2); box-shadow: 0 4px 0 #0e2f86; }
.float-chip.c1 { top: -4%; left: -4%; }
.float-chip.c2 { bottom: 10%; right: -3%; animation-delay: -3s; }
.float-chip.c2 .chip-ico { background: linear-gradient(145deg, #ffd776, #e09a12); box-shadow: 0 4px 0 #9a6406; }
.float-chip.c3 { bottom: -2%; left: 6%; animation-delay: -6s; }
.float-chip.c3 .chip-ico { background: linear-gradient(145deg, #3fd3c6, #0f8f85); box-shadow: 0 4px 0 #0a6b63; }

.trust-strip { position: relative; z-index: 2; margin-top: -46px; }
.trust-inner {
  display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.trust-item { display: flex; align-items: center; gap: 12px; padding: 22px 20px; font-weight: 700; font-size: .92rem; color: var(--text-2); }
.trust-item + .trust-item { border-left: 1px solid var(--border); }
.trust-item .em { font-size: 1.5rem; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--primary-50); flex: none; }

.page-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #cfd8f5; text-align: center;
  background: linear-gradient(160deg, #0b1f4b, #050d24); padding: clamp(56px, 7vw, 96px) 0 clamp(56px, 7vw, 88px);
}
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .3; background-image: radial-gradient(rgba(127, 163, 255, .35) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); }
.page-hero p { max-width: 720px; margin: 0 auto 1.2rem; color: #b3c0e6; font-size: 1.08rem; }
.breadcrumb { display: inline-flex; gap: .5rem; align-items: center; font-size: .86rem; color: #93a3d3; background: rgba(255, 255, 255, .06); padding: .4rem 1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); }
.breadcrumb a { color: #dfe6ff; }
.breadcrumb a:hover { color: var(--gold); }

/* 7. CARDS & COMPONENTS ---------------------------------------------------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card-hover:hover, a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(33, 86, 224, .3); }
a.card { color: inherit; }
a.card:not(.cat-mini):not(.cat-card):not(.track-card):not(.kpi):not(.contact-card) { display: block; }
.card-3d { box-shadow: 0 6px 0 var(--border), var(--shadow); }
.card-glass { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: var(--radius-lg); }
.card-title { font-size: 1.12rem; margin-bottom: .35rem; }
.card p { color: var(--muted); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.card-head h3 { margin: 0; font-size: 1.08rem; display: flex; gap: .55rem; align-items: center; }
.tilt { transform-style: preserve-3d; will-change: transform; }

.icon-3d {
  --c1: #4f7df6; --c2: #1d4ed8; --edge: #143a9e;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; font-size: 1.75rem; flex: none;
  background: linear-gradient(145deg, var(--c1), var(--c2));
  box-shadow: 0 5px 0 var(--edge), 0 14px 24px -10px var(--c2), inset 0 2px 0 rgba(255, 255, 255, .35);
  transition: transform .35s var(--ease);
}
.icon-3d .icon { width: 28px; height: 28px; color: #fff; }
.card:hover .icon-3d { transform: translateY(-3px) rotate(-4deg) scale(1.04); }
.tone-1 { --c1: #5b8cff; --c2: #2156e0; --edge: #143a9e; }
.tone-2 { --c1: #ffd776; --c2: #eba318; --edge: #a86d05; }
.tone-3 { --c1: #4fe0d2; --c2: #0f9d91; --edge: #0a6b63; }
.tone-4 { --c1: #ff8a8e; --c2: #e0474c; --edge: #a2262b; }
.tone-5 { --c1: #b69cff; --c2: #7048e8; --edge: #4b2bb0; }
.tone-6 { --c1: #7ee39c; --c2: #1f9d4c; --edge: #146b33; }
.icon-soft { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); flex: none; font-size: 1.4rem; }
.icon-soft .icon { width: 22px; height: 22px; }

.cat-card { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.cat-card h3 { margin: 0; font-size: 1.08rem; }
.cat-card .count { font-size: .85rem; font-weight: 700; color: var(--primary); }
[data-theme="dark"] .cat-card .count { color: var(--primary-300); }
.cat-card .link-arrow { margin-top: auto; }
.cat-mini { display: flex; align-items: center; gap: 16px; padding: 20px; }
.cat-mini .icon-3d { width: 54px; height: 54px; font-size: 1.5rem; }
.cat-mini h3 { font-size: 1rem; margin: 0 0 2px; }
.cat-mini span { color: var(--muted); font-size: .85rem; font-weight: 600; }

.course-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.course-media {
  position: relative; height: 150px; display: grid; place-items: center; font-size: 3.6rem;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .35), transparent 50%), linear-gradient(135deg, var(--c1, #4f7df6), var(--c2, #0b1f4b));
}
.course-media .em { filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .35)); transition: transform .5s var(--ease); }
.course-card:hover .course-media .em { transform: scale(1.12) rotate(-6deg); }
.course-tags { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; }
.course-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.course-cat { font-size: .72rem; letter-spacing: .12em; font-weight: 800; color: var(--primary); text-transform: uppercase; }
[data-theme="dark"] .course-cat { color: var(--primary-300); }
.course-body h3 { font-size: 1.08rem; margin: .4rem 0 .9rem; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .84rem; color: var(--muted); font-weight: 600; }
.course-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.course-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--border); margin-top: 18px; }
.rating { color: #f5a524; font-weight: 800; letter-spacing: .04em; font-size: .9rem; }
.rating small { color: var(--muted); font-weight: 700; margin-left: 4px; }

.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .65rem; font-size: .72rem; font-weight: 800; border-radius: 999px; letter-spacing: .03em; line-height: 1.3; white-space: nowrap; }
.badge-hot { background: linear-gradient(135deg, #ff7a59, #e5484d); color: #fff; box-shadow: 0 3px 0 #a2262b; }
.badge-new { background: linear-gradient(135deg, #3fd3c6, #0f9d91); color: #fff; box-shadow: 0 3px 0 #0a6b63; }
.badge-popular { background: linear-gradient(135deg, #ffd776, #eba318); color: #2b1d00; box-shadow: 0 3px 0 #a86d05; }
.badge-level { background: rgba(255, 255, 255, .92); color: var(--navy-800); }
.badge-soft { background: var(--primary-50); color: var(--primary); }
.badge-gray { background: var(--bg-alt); color: var(--muted); }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
[data-theme="dark"] .badge-success { background: rgba(22, 163, 74, .2); color: #86efac; }
[data-theme="dark"] .badge-warning { background: rgba(217, 119, 6, .2); color: #fcd34d; }
[data-theme="dark"] .badge-danger { background: rgba(229, 72, 77, .2); color: #fca5a5; }
[data-theme="dark"] .badge-info { background: rgba(33, 86, 224, .25); color: #bfdbfe; }

.filter-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.filter-tab {
  padding: .6rem 1.15rem; border-radius: 999px; font: 700 .9rem var(--font); cursor: pointer; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 3px 0 var(--border); transition: all .2s var(--ease);
  display: inline-flex; align-items: center; gap: .45rem;
}
.filter-tab:hover { transform: translateY(-2px); color: var(--primary); }
.filter-tab.is-active { color: #fff; background: linear-gradient(180deg, #4577f5, #2156e0); border-color: transparent; box-shadow: 0 4px 0 var(--primary-700), 0 10px 20px -8px rgba(33, 86, 224, .6); }
.filter-tab .count { font-size: .75rem; opacity: .75; }
.is-hidden { display: none !important; }

.track-card { display: flex; gap: 18px; align-items: flex-start; }
.track-card .dur { position: absolute; top: 18px; right: 18px; }
.track-card h3 { font-size: 1.05rem; margin: 2px 0 6px; }
.track-card .lvl { font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--gold-600); }

.portal-card { padding: 36px; overflow: hidden; }
.portal-card::before { content: ''; position: absolute; width: 280px; height: 280px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(33, 86, 224, .18), transparent 70%); }
.portal-card.teacher::before { background: radial-gradient(circle, rgba(246, 185, 59, .22), transparent 70%); }
.portal-card .portal-emoji { font-size: 3rem; }
.feature-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.feature-pills span { padding: .42rem .8rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; font-size: .86rem; font-weight: 600; }

.testimonial { display: flex; flex-direction: column; height: 100%; }
.testimonial .quote-ico { width: 38px; height: 38px; color: var(--primary); opacity: .25; margin-bottom: 8px; }
.testimonial blockquote { margin: 0 0 22px; font-size: 1.02rem; color: var(--text-2); flex: 1; }
.person { display: flex; align-items: center; gap: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; background: linear-gradient(135deg, #4577f5, #0b1f4b); box-shadow: 0 4px 0 #06122e; }
.avatar.sm { width: 36px; height: 36px; font-size: .8rem; box-shadow: 0 3px 0 #06122e; }
.person strong { display: block; }
.person small { color: var(--muted); }

.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { text-align: center; padding: 30px 20px; }
.stat-card strong { display: block; font: 800 2.4rem/1 var(--font-display); background: linear-gradient(135deg, var(--primary), #7fa3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-dark .stat-card strong { background: linear-gradient(135deg, #ffd776, #f6b93b); -webkit-background-clip: text; background-clip: text; }
.stat-card span { display: block; margin-top: 8px; font-weight: 700; color: var(--muted); font-size: .9rem; }
.section-dark .stat-card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.section-dark .stat-card span { color: #aab6dc; }
.section-dark .card { background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border-color: rgba(255,255,255,.12); color: #dfe6ff; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); backdrop-filter: blur(12px); }
.section-dark .card p { color: #b3c0e6; }
.section-dark .feature-pills span { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: #e3e9ff; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .tick { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(145deg, #34c472, #16a34a); box-shadow: 0 3px 0 #0f7a36; }
.check-list .tick .icon { width: 16px; height: 16px; }

.info-banner { display: flex; gap: 16px; padding: 20px 24px; border-radius: var(--radius); background: var(--primary-50); border: 1px solid rgba(33, 86, 224, .2); color: var(--text-2); }
.info-banner .icon { color: var(--primary); width: 24px; height: 24px; margin-top: 2px; }
.info-banner ul { margin: 0; padding-left: 18px; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; border: 1px solid; }
.alert-success { background: #ecfdf3; border-color: #bbf7d0; color: #14532d; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #78350f; }
[data-theme="dark"] .alert-success { background: rgba(22, 163, 74, .12); color: #bbf7d0; border-color: rgba(22, 163, 74, .3); }
[data-theme="dark"] .alert-error { background: rgba(229, 72, 77, .12); color: #fecaca; border-color: rgba(229, 72, 77, .3); }
[data-theme="dark"] .alert-info { background: rgba(33, 86, 224, .15); color: #bfdbfe; border-color: rgba(33, 86, 224, .3); }
[data-theme="dark"] .alert-warning { background: rgba(217, 119, 6, .12); color: #fde68a; border-color: rgba(217, 119, 6, .3); }

.empty-state { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty-state .em { font-size: 3rem; display: block; margin-bottom: 8px; }
.empty-state h3 { color: var(--text); }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.page-link { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; font-weight: 700; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); box-shadow: 0 3px 0 var(--border); }
.page-link.is-current { background: linear-gradient(180deg, #4577f5, #2156e0); color: #fff; border-color: transparent; box-shadow: 0 3px 0 var(--primary-700); }
.page-gap { align-self: center; color: var(--muted); }

.notice-item { display: flex; gap: 20px; align-items: flex-start; }
.date-block { flex: none; width: 70px; text-align: center; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 4px 0 var(--border); }
.date-block b { display: block; font: 800 1.6rem/1.2 var(--font-display); padding-top: 8px; }
.date-block small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; padding: 3px 0 8px; color: var(--muted); text-transform: uppercase; }
.date-block .mo { background: linear-gradient(180deg, #4577f5, #2156e0); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .12em; padding: 4px 0; text-transform: uppercase; }
.notice-item h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.notice-item h3 a { color: var(--text); }
.notice-item h3 a:hover { color: var(--primary); }
.prose { font-size: 1.04rem; color: var(--text-2); }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

.download-item { display: flex; align-items: center; gap: 18px; }
.download-item .file-ico { width: 56px; height: 64px; border-radius: 10px 18px 10px 10px; display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #fff; flex: none; background: linear-gradient(160deg, #ff8a8e, #e0474c); box-shadow: 0 5px 0 #a2262b; }
.download-item .grow { flex: 1; min-width: 0; }
.download-item h3 { font-size: 1.02rem; margin: 0 0 .2rem; }
.download-item p { margin: 0; font-size: .9rem; }

.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.contact-card h4 { margin: 0 0 4px; }
.contact-card p { margin: 0; font-size: .95rem; }
.map-card { overflow: hidden; padding: 0; min-height: 260px; background: linear-gradient(135deg, #0b1f4b, #13306b); color: #fff; display: grid; place-items: center; text-align: center; }
.map-card .inner { padding: 30px; }
.map-card .pin { font-size: 2.6rem; animation: bounce 2s infinite; }

.verify-shell { max-width: 860px; margin: -70px auto 0; position: relative; z-index: 3; }
.verify-form { display: flex; gap: 12px; }
.verify-form .input { height: 58px; font-size: 1.05rem; padding-left: 50px; }
.verify-form .input-wrap { position: relative; flex: 1; }
.verify-form .input-wrap .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }
.result-card { border-width: 2px; }
.result-card.valid { border-color: #86efac; }
.result-card.revoked, .result-card.missing { border-color: #fca5a5; }
.result-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.result-head .icon-3d { width: 56px; height: 56px; }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.result-grid div { background: var(--surface); padding: 14px 18px; }
.result-grid dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.result-grid dd { margin: 2px 0 0; font-weight: 700; }

.program-hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.program-hero-meta span { display: inline-flex; gap: .45rem; align-items: center; padding: .5rem 1rem; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #e3e9ff; font-weight: 600; font-size: .9rem; }
.sticky-card { position: sticky; top: calc(var(--header-h) + 20px); }
.kv { display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: .95rem; }
.kv div:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { text-align: right; }

.benefit { display: flex; gap: 14px; align-items: flex-start; }
.benefit h4 { margin: 0 0 2px; font-size: 1rem; }
.benefit p { margin: 0; font-size: .9rem; }

/* 8. FORMS ----------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
.form-group { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-group label, .label { font-weight: 700; font-size: .88rem; color: var(--text-2); }
.form-group label .req { color: var(--rose); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: .75rem 1rem; font: 500 .97rem var(--font); color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 13px; outline: none;
  box-shadow: inset 0 2px 4px rgba(14, 23, 48, .04); transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e6886' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.input:hover, .select:hover, .textarea:hover { border-color: #c5cee3; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.is-invalid, .input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--rose) !important; box-shadow: 0 0 0 4px rgba(229, 72, 77, .14) !important; }
.field-error { color: var(--rose); font-size: .82rem; font-weight: 600; }
.hint { color: var(--muted); font-size: .8rem; }
.check { display: flex; gap: .6rem; align-items: center; font-size: .92rem; cursor: pointer; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 44px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px; border-radius: 8px; }
.form-card { padding: clamp(24px, 4vw, 40px); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.file-drop { display: flex; align-items: center; gap: 14px; padding: 18px; border: 2px dashed var(--border); border-radius: 14px; background: var(--surface-2); cursor: pointer; transition: border-color .2s, background .2s; }
.file-drop:hover { border-color: var(--primary); background: var(--primary-50); }
.file-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.char-count { font-size: .76rem; color: var(--muted); text-align: right; }
.role-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 6px; background: var(--bg-alt); border-radius: 16px; }
.role-tabs label { position: relative; }
.role-tabs input { position: absolute; opacity: 0; }
.role-tabs span { display: flex; justify-content: center; gap: .4rem; padding: .7rem .5rem; border-radius: 12px; font-weight: 700; font-size: .9rem; cursor: pointer; color: var(--muted); transition: all .2s; }
.role-tabs input:checked + span { background: var(--surface); color: var(--primary); box-shadow: 0 3px 0 var(--border), var(--shadow-sm); }
.role-tabs input:focus-visible + span { outline: 3px solid var(--ring); }

/* Auth pages */
.auth-body { min-height: 100vh; background: radial-gradient(900px 500px at 0% 0%, rgba(33, 86, 224, .18), transparent 60%), radial-gradient(700px 400px at 100% 100%, rgba(246, 185, 59, .14), transparent 60%), var(--bg); }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; }
.auth-split { display: grid; grid-template-columns: 1fr 1fr; max-width: 1060px; width: 100%; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface); border: 1px solid var(--border); }
.auth-side { position: relative; overflow: hidden; padding: 48px; color: #d7e0ff; background: linear-gradient(160deg, #13306b, #050d24); display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; }
.auth-side h2 { color: #fff; }
.auth-side .blob { opacity: .4; }
.auth-main { padding: clamp(28px, 5vw, 56px); }
.auth-card { width: 100%; max-width: 480px; padding: clamp(26px, 5vw, 44px); background: var(--surface); border-radius: var(--radius-xl); border: 1px solid var(--border); }
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head h1 { font-size: 1.8rem; margin-bottom: .3rem; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 6px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.demo-box { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--border); font-size: .84rem; }
.demo-box button { font: inherit; background: none; border: 0; color: var(--primary); cursor: pointer; font-weight: 700; padding: 0; }

/* 9. TABLES ---------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; background: var(--surface-2); padding: 14px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--surface-2); }
.table.compact td, .table.compact th { padding: 8px 10px; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.table .title-cell { font-weight: 700; color: var(--text); min-width: 220px; }
.table .sub { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; }

/* 10. PORTAL --------------------------------------------------------------- */
.portal-body { background: var(--bg); }
.portal { display: grid; grid-template-columns: 272px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 16px; color: #c3cdef;
  background: radial-gradient(500px 300px at 0 0, rgba(33, 86, 224, .35), transparent 60%), linear-gradient(180deg, #0b1f4b, #050d24);
  display: flex; flex-direction: column; gap: 6px; z-index: 50;
}
.sidebar .brand { padding: 4px 8px 20px; }
.sidebar .brand .brand-text strong { color: #fff; }
.sidebar .brand .brand-text small { color: #8fa0d0; }
.side-label { font-size: .7rem; font-weight: 800; letter-spacing: .14em; color: #6f80b3; text-transform: uppercase; padding: 14px 12px 6px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: .72rem .9rem; border-radius: 12px; color: #c3cdef; font-weight: 600; font-size: .93rem; transition: all .2s; }
.side-link:hover { background: rgba(255, 255, 255, .07); color: #fff; transform: translateX(3px); }
.side-link.is-active { color: #fff; background: linear-gradient(180deg, #4577f5, #2156e0); box-shadow: 0 4px 0 #0e2f86, 0 10px 20px -8px rgba(33, 86, 224, .8); }
.side-link .pill { margin-left: auto; background: var(--gold); color: #2b1d00; font-size: .72rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.portal-main { min-width: 0; display: flex; flex-direction: column; }
.portal-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.portal-top h1 { font-size: 1.3rem; margin: 0; }
.portal-top .spacer { flex: 1; }
.portal-user { display: flex; align-items: center; gap: 10px; }
.portal-user small { display: block; color: var(--muted); font-size: .76rem; text-transform: capitalize; }
.portal-content { padding: 28px; flex: 1; }
.side-toggle { display: none; }
.welcome {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 32px; color: #dfe6ff; isolation: isolate;
  background: linear-gradient(130deg, #2156e0, #0b1f4b 70%); box-shadow: 0 6px 0 #06122e, var(--shadow-lg);
}
.welcome h2 { color: #fff; margin-bottom: .3rem; }
.welcome p { color: #c1ccf2; margin: 0; }
.welcome .blob { opacity: .35; }
.kpi { display: flex; align-items: center; gap: 16px; padding: 22px; }
.kpi strong { display: block; font: 800 1.7rem/1.1 var(--font-display); }
.kpi span { color: var(--muted); font-size: .86rem; font-weight: 600; }
.progress { height: 10px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4577f5, #12b3a6); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); transition: width 1.2s var(--ease); }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 220px; padding: 10px 4px 0; border-bottom: 2px solid var(--border); }
.bar { flex: 1; min-width: 26px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; }
.bar i { display: block; width: 100%; max-width: 52px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #5b8cff, #2156e0); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 4px 0 var(--primary-700); transform-origin: bottom; animation: grow 1s var(--ease) both; }
.bar b { font-size: .82rem; }
.bar-labels { display: flex; gap: 14px; padding: 8px 4px 0; }
.bar-labels span { flex: 1; min-width: 26px; text-align: center; font-size: .74rem; color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .grow strong { display: block; overflow: hidden; text-overflow: ellipsis; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.toolbar form { display: flex; gap: 10px; flex-wrap: wrap; }
.toolbar .input, .toolbar .select { min-height: 44px; width: auto; min-width: 200px; }
.msg-body { white-space: pre-wrap; }
.thread-item { padding: 18px 20px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.thread-item.unread { border-color: rgba(33, 86, 224, .45); background: var(--primary-50); }
.overlay { position: fixed; inset: 0; background: rgba(5, 13, 36, .55); backdrop-filter: blur(3px); z-index: 45; opacity: 0; pointer-events: none; transition: opacity .3s; }
.overlay.is-open { opacity: 1; pointer-events: auto; }

/* 11. FOOTER --------------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; background: linear-gradient(180deg, #081533, #050d24); color: #a9b5dc; padding: 70px 0 28px; margin-top: 0; isolation: isolate; }
.footer-glow { position: absolute; width: 700px; height: 400px; left: 50%; top: -250px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(33, 86, 224, .45), transparent); z-index: -1; }
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px 36px; margin-bottom: 56px; flex-wrap: wrap; }
.footer-cta h3 { color: #fff; font-size: 1.5rem; margin-bottom: .3rem; }
.footer-cta p { margin: 0; color: #aab6dc; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a, .footer-grid .link-btn { color: #a9b5dc; display: inline-flex; gap: .5rem; align-items: center; transition: color .2s, transform .2s; }
.footer-grid a:hover, .footer-grid .link-btn:hover { color: var(--gold); transform: translateX(3px); }
.footer-about p { margin: 18px 0; font-size: .94rem; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-badges span { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; padding: .4rem .7rem; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #d6def7; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .86rem; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a { color: #a9b5dc; }
.footer-bottom a:hover { color: var(--gold); }

/* 12. WIDGETS -------------------------------------------------------------- */
.toast-stack { position: fixed; top: 96px; right: 20px; z-index: 200; display: grid; gap: 10px; width: min(380px, calc(100vw - 40px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 14px 14px 14px 16px; border-radius: 14px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-left: 5px solid var(--primary); box-shadow: var(--shadow-lg); font-weight: 600; font-size: .93rem; animation: toastIn .45s var(--ease) both; }
.toast .icon { width: 22px; height: 22px; margin-top: 1px; }
.toast span { flex: 1; }
.toast-success { border-left-color: var(--green); } .toast-success > .icon { color: var(--green); }
.toast-error { border-left-color: var(--rose); } .toast-error > .icon { color: var(--rose); }
.toast-info > .icon { color: var(--primary); }
.toast-warning { border-left-color: var(--amber); } .toast-warning > .icon { color: var(--amber); }
.toast.is-leaving { animation: toastOut .35s var(--ease) both; }
.toast-close { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px; }
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 20px; border: 0; cursor: pointer; color: #fff; display: grid; place-items: center; background: linear-gradient(145deg, #4577f5, #1a47c2); box-shadow: 0 6px 0 #0e2f86, 0 18px 30px -10px rgba(33, 86, 224, .8); transition: transform .2s; }
.chat-fab::after { content: ''; position: absolute; inset: -6px; border-radius: 24px; border: 2px solid rgba(33, 86, 224, .5); animation: ring 2.4s infinite; }
.chat-fab:hover { transform: translateY(-3px) rotate(-4deg); }
.chat-fab .icon { width: 26px; height: 26px; }
.chat-panel { position: fixed; right: 22px; bottom: 96px; z-index: 95; width: min(370px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 130px)); display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); transform: translateY(20px) scale(.96); opacity: 0; pointer-events: none; transition: all .3s var(--ease); }
.chat-panel.is-open { transform: none; opacity: 1; pointer-events: auto; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px; color: #fff; background: linear-gradient(130deg, #2156e0, #0b1f4b); }
.chat-head small { display: flex; align-items: center; gap: 6px; color: #c1ccf2; font-size: .76rem; }
.chat-head div:nth-child(2) { flex: 1; }
.chat-head .icon-btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .15); color: #fff; box-shadow: none; }
.chat-avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--gold); color: #2b1d00; }
.dot-online { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .3); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); min-height: 140px; }
.chat-bubble { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .9rem; line-height: 1.5; }
.chat-bubble.bot { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-bubble.me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-form { padding: 12px; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.chat-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chat-form input, .chat-form textarea { width: 100%; border: 1.5px solid var(--border); border-radius: 12px; padding: .6rem .75rem; font: 500 .88rem var(--font); background: var(--surface); color: var(--text); resize: none; }
.chat-form input:focus, .chat-form textarea:focus { outline: none; border-color: var(--primary); }
.chat-send { display: flex; gap: 8px; align-items: stretch; }
.to-top { position: fixed; left: 22px; bottom: 22px; z-index: 80; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 0 var(--border), var(--shadow); opacity: 0; transform: translateY(20px); transition: all .3s var(--ease); pointer-events: none; }
.to-top .icon { transform: rotate(-90deg); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(5, 13, 36, .6); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal-card { width: min(440px, 100%); background: var(--surface); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-lg); transform: scale(.95); transition: transform .25s var(--ease); text-align: center; }
.modal.is-open .modal-card { transform: none; }
.modal-card .icon-3d { margin: 0 auto 14px; }

.error-body { background: linear-gradient(160deg, #0b1f4b, #050d24); min-height: 100vh; margin: 0; font-family: var(--font); }
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.error-card { background: #fff; color: #0e1730; border-radius: 28px; padding: 44px; max-width: 580px; width: 100%; text-align: center; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.error-code { font: 800 5rem/1 'Sora', sans-serif; background: linear-gradient(135deg, #2156e0, #f6b93b); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.error-card h1 { font-size: 1.6rem; color: #0e1730; }
.error-card p { color: #5e6886; }
.error-steps { text-align: left; color: #2c3654; font-size: .94rem; line-height: 1.8; }
.error-detail { text-align: left; background: #fef2f2; color: #7f1d1d; padding: 12px; border-radius: 10px; font-size: .8rem; white-space: pre-wrap; word-break: break-word; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* 13. ANIMATION ------------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .06s; } .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .12s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .18s; } .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .24s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .3s; } .reveal-stagger.is-visible > *:nth-child(7) { transition-delay: .36s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: .42s; } .reveal-stagger.is-visible > *:nth-child(n+9) { transition-delay: .48s; }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-18px) } }
@keyframes floatCard { 0%, 100% { transform: rotateY(-16deg) rotateX(8deg) rotateZ(-2deg) translateY(0) } 50% { transform: rotateY(-10deg) rotateX(5deg) rotateZ(-1deg) translateY(-14px) } }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes grow { from { transform: scaleY(0) } to { transform: scaleY(1) } }
@keyframes bounce { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@keyframes ring { 0% { transform: scale(.9); opacity: .8 } 100% { transform: scale(1.25); opacity: 0 } }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(.96) } to { opacity: 1; transform: none } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px) scale(.96) } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
}

/* 14. RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 1480px) { .hide-xl { display: none !important; } }
@media (max-width: 1320px) and (min-width: 1141px) { .site-header .brand-text small { display: none; } .nav-link { padding: .55rem .6rem; } }
@media (max-width: 1140px) {
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); z-index: 100; margin: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 84px 18px 24px; overflow-y: auto;
    background: var(--surface); box-shadow: var(--shadow-lg); transform: translateX(105%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s linear .35s;
  }
  .main-nav.is-open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .nav-link { padding: .85rem 1rem; font-size: 1rem; }
  .nav-link .icon { display: inline-block; }
  .nav-link::after { display: none; }
  .nav-link.is-active { background: var(--primary-50); }
  .nav-mobile-actions { display: grid; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
  .nav-toggle { display: inline-grid; position: relative; z-index: 101; }
  .header-actions { margin-left: auto; }
  .hide-lg { display: none !important; }
  .trust-inner { grid-template-columns: repeat(3, 1fr); }
  .trust-item:nth-child(4) { border-left: 0; }
  .trust-item:nth-child(n+4) { border-top: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .split, .split-rev, .grid-main { grid-template-columns: 1fr !important; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { min-height: 380px; margin-top: 10px; }
  .hero-stats { grid-template-columns: repeat(2, auto); gap: 22px 40px; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .portal { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 280px; transform: translateX(-105%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s linear .35s; }
  .sidebar.is-open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .side-toggle { display: inline-grid; }
  .sticky-card { position: static; }
}
@media (max-width: 720px) {
  .hide-md { display: none !important; }
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4, .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .trust-item { border-left: 0 !important; border-top: 1px solid var(--border); padding: 16px; font-size: .85rem; }
  .trust-item:nth-child(-n+2) { border-top: 0; }
  .trust-item:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-cta { padding: 24px; }
  .topbar-inner { justify-content: center; }
  .topbar-left { display: none; }
  .brand-text small { display: none; }
  .result-grid { grid-template-columns: 1fr; }
  .verify-form { flex-direction: column; }
  .portal-content { padding: 18px 16px; }
  .portal-top { padding: 12px 16px; }
  .portal-user .who { display: none; }
  .float-chip { transform: scale(.85); }
  .float-chip.c1 { left: 0; } .float-chip.c2 { right: 0; }
  .notice-item { flex-direction: column; gap: 12px; }
  .download-item { flex-wrap: wrap; }
  .download-item .btn { width: 100%; }
  .toolbar .input, .toolbar .select { min-width: 0; width: 100%; }
  .toolbar form { width: 100%; }
  .chat-fields { grid-template-columns: 1fr; }
  .table-stack thead { display: none; }
  .table-stack tr { display: block; padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .table-stack td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 12px; border: 0; text-align: right; }
  .table-stack td::before { content: attr(data-label); font-weight: 700; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; text-align: left; }
  .table-stack .actions { justify-content: flex-end; }
}
@media (max-width: 480px) {
  .hide-sm { display: none !important; }
  .hero-stats { gap: 18px 28px; }
  .hero-stat strong { font-size: 1.6rem; }
  .btn-lg { padding: .95rem 1.4rem; font-size: 1rem; }
  .hero .btn-row .btn { width: 100%; }
  .stat-band { gap: 12px; }
  .stat-card strong { font-size: 1.9rem; }
  .role-tabs span { font-size: .8rem; }
}
@media print {
  .site-header, .topbar, .announce, .site-footer, .chat-fab, .chat-panel, .to-top, .toast-stack, .sidebar, .portal-top, .no-print { display: none !important; }
  body { background: #fff; }
  .page-hero { background: none; color: #000; padding: 20px 0; }
  .page-hero h1 { color: #000; }
}

/* 15. HERO IMAGE SLIDER ---------------------------------------------------- */
.hero-slider {
  --slide-dur: 6000ms;
  position: relative; width: 100%; overflow: hidden; isolation: isolate; color: #fff;
  height: clamp(384px, 70vh, 780px); /* 384px = 4in minimum on desktop */
  background: radial-gradient(900px 400px at 20% 30%, #13306b, transparent 70%), #050d24;
  touch-action: pan-y; user-select: none;
}
.slider-track, .slide { position: absolute; inset: 0; }
.slide { margin: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 0s linear 1.2s; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1.2s var(--ease), visibility 0s; }
.slide-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.14) translate3d(0, 0, 0); transform-origin: 60% 50%; will-change: transform;
  transition: transform calc(var(--slide-dur) + 1.6s) cubic-bezier(.25, .1, .25, 1);
}
.slide:nth-child(even) .slide-img { transform-origin: 35% 40%; }
.slide:nth-child(3n) .slide-img { transform-origin: 50% 70%; }
.slide.is-active .slide-img { transform: scale(1.02); }
.slide-img { filter: saturate(1.12) contrast(1.05); }
.slide-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 13, 36, .74) 0%, rgba(5, 13, 36, .38) 38%, rgba(5, 13, 36, 0) 68%),
    linear-gradient(0deg, rgba(5, 13, 36, .7) 0%, rgba(5, 13, 36, 0) 38%);
}
.slide-caption {
  position: absolute; left: 0; right: 0; bottom: clamp(70px, 12vh, 120px); z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; max-width: var(--container);
}
.slide-caption > * { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.slide.is-active .slide-caption > * { opacity: 1; transform: none; }
.slide.is-active .slide-caption > :nth-child(1) { transition-delay: .35s; }
.slide.is-active .slide-caption > :nth-child(2) { transition-delay: .5s; }
.slide.is-active .slide-caption > :nth-child(3) { transition-delay: .65s; }
.slide.is-active .slide-caption > :nth-child(4) { transition-delay: .8s; }
.slide-tag {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; margin-bottom: 16px; border-radius: 999px;
  font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  background: rgba(246, 185, 59, .12); border: 1px solid rgba(246, 185, 59, .35); backdrop-filter: blur(8px);
}
.slide-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(246, 185, 59, .2); }
.slide-title { color: #fff; font-size: clamp(1.7rem, 4.2vw, 3.5rem); max-width: 760px; margin: 0 0 12px; text-shadow: 0 6px 30px rgba(0, 0, 0, .45); }
.slide-text { max-width: 580px; font-size: clamp(.98rem, 1.4vw, 1.18rem); color: #d3dcf7; margin-bottom: 24px; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.slide-credit { position: absolute; right: 18px; bottom: 14px; z-index: 3; font-size: .72rem; color: rgba(255, 255, 255, .65); }
.slide-credit a { color: rgba(255, 255, 255, .85); text-decoration: underline; text-underline-offset: 2px; }
.slider-arrow {
  position: absolute; top: 50%; z-index: 4; width: 58px; height: 58px; margin-top: -29px; border-radius: 18px; cursor: pointer;
  display: grid; place-items: center; color: #fff; border: 1px solid rgba(255, 255, 255, .22);
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .06)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .35), 0 16px 30px -12px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, opacity .3s;
}
.slider-arrow .icon { width: 24px; height: 24px; }
.slider-arrow.prev { left: clamp(12px, 2.5vw, 36px); }
.slider-arrow.next { right: clamp(12px, 2.5vw, 36px); }
.slider-arrow:hover { background: linear-gradient(180deg, #4577f5, #2156e0); transform: translateY(-2px); box-shadow: 0 7px 0 #0e2f86, 0 20px 36px -12px rgba(33, 86, 224, .8); }
.slider-arrow:active { transform: translateY(4px); box-shadow: 0 1px 0 #0e2f86; }
.slider-bottom { position: absolute; left: 50%; bottom: 22px; z-index: 4; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(5, 13, 36, .45); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.slider-dots { display: flex; align-items: center; gap: 7px; }
.slider-dot { position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: rgba(255, 255, 255, .38); overflow: hidden; transition: width .45s var(--ease), background .3s; }
.slider-dot:hover { background: rgba(255, 255, 255, .7); }
.slider-dot.is-active { width: 38px; background: rgba(255, 255, 255, .28); }
.slider-dot i { position: absolute; inset: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold), #ffd776); }
.slider-dot.is-active i { animation: dotfill var(--slide-dur) linear forwards; }
.hero-slider.is-paused .slider-dot.is-active i, .hero-slider.is-paused .slider-progress span { animation-play-state: paused; }
.slider-count { font: 700 .82rem var(--font-display); color: rgba(255, 255, 255, .7); letter-spacing: .06em; white-space: nowrap; }
.slider-count b { color: #fff; }
.slider-pause { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); cursor: pointer; display: grid; place-items: center; }
.slider-pause .ico-pause { width: 10px; height: 11px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.hero-slider.is-user-paused .slider-pause .ico-pause { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.slider-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 4; background: rgba(255, 255, 255, .1); }
.slider-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2156e0, var(--gold)); box-shadow: 0 0 12px rgba(246, 185, 59, .7); }
.hero-slider.is-running .slider-progress span { animation: dotfill var(--slide-dur) linear forwards; }
.hero-slider:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
@keyframes dotfill { from { width: 0 } to { width: 100% } }
@media (max-width: 980px) {
  .hero-slider { height: clamp(380px, 60vh, 560px); }
  .slider-arrow { width: 48px; height: 48px; margin-top: -24px; border-radius: 15px; }
}
@media (max-width: 640px) {
  .hero-slider { height: clamp(360px, 68vh, 520px); }
  .slide-shade { background: linear-gradient(0deg, rgba(5, 13, 36, .95) 0%, rgba(5, 13, 36, .55) 55%, rgba(5, 13, 36, .15) 100%); }
  .slide-caption { bottom: 74px; }
  .slide-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 16px; }
  .slider-arrow { top: auto; bottom: 16px; margin: 0; width: 42px; height: 42px; border-radius: 13px; }
  .slider-arrow.prev { left: 12px; } .slider-arrow.next { right: 12px; }
  .slider-bottom { bottom: 20px; padding: 6px 10px; gap: 8px; }
  .slider-dots { gap: 5px; }
  .slider-dot { width: 7px; height: 7px; } .slider-dot.is-active { width: 22px; }
  .slider-count, .slide-credit { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .slide-img { transform: none !important; transition: none; }
  .slide { transition-duration: .3s; }
}
@media (max-width: 640px) {
  .announce-inner { font-size: .76rem; gap: .4rem; padding: .35rem 12px; flex-wrap: nowrap; }
  .announce-inner > span:not(.announce-dot) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .announce-dot { display: none; }
}

/* 16. BTEB LOGO ------------------------------------------------------------ */
.brand-logo { display: block; height: 64px; width: auto; transition: transform .3s var(--ease); }
.brand:hover .brand-logo { transform: scale(1.03); }
.site-header { height: 88px; }
:root { --header-h: 88px; }
[data-theme="dark"] .site-header .brand { background: #fff; border-radius: 14px; padding: 4px 8px; box-shadow: var(--shadow-sm); }
.logo-plate { display: inline-block; background: #fff; border-radius: 18px; padding: 10px 14px; box-shadow: 0 4px 0 rgba(0,0,0,.18), 0 18px 34px -16px rgba(0,0,0,.6); transition: transform .3s var(--ease); }
.logo-plate:hover { transform: translateY(-2px); }
.logo-plate img { display: block; width: 210px; height: auto; }
.side-logo { margin: 4px 6px 4px; padding: 8px 10px; border-radius: 14px; }
.side-logo img { width: 190px; }
.side-portal-name { margin: 8px 12px 6px; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.cert-3d .cert-crest { width: 64px; height: auto; filter: drop-shadow(0 4px 8px rgba(11,31,75,.25)); }
@media (max-width: 1320px) and (min-width: 1141px) { .brand-logo { height: 56px; } }
@media (max-width: 720px) { .brand-logo { height: 50px; } .site-header { height: 74px; } :root { --header-h: 74px; } .logo-plate img { width: 180px; } }
.auth-side .logo-plate { align-self: flex-start; }

/* 17. CERTIFICATE PORTAL ACCESS (home: Verification + Login) --------------- */
.portal-bar { position: relative; z-index: 70; background: linear-gradient(90deg, #050d24, #0b1f4b 50%, #050d24); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.portal-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px; }
.portal-bar-msg { margin: 0; display: flex; align-items: center; gap: .5rem; color: #b9c5ea; font-size: .88rem; text-align: center; }
.portal-bar-msg b { color: #fff; }
.portal-bar-msg .icon { color: var(--gold); }
.pbtn {
  position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 16px; cursor: pointer;
  border: 0; font: inherit; text-align: left; color: #fff; white-space: nowrap; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .2s;
}
.pbtn:hover { color: #fff; transform: translateY(-2px); filter: saturate(1.1); }
.pbtn:active { transform: translateY(3px); }
.pbtn-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.pbtn-ico .icon { width: 22px; height: 22px; }
.pbtn-text { display: flex; flex-direction: column; line-height: 1.15; }
.pbtn-text b { font: 800 1rem var(--font-display); letter-spacing: .01em; }
.pbtn-text small { font-size: .72rem; font-weight: 600; opacity: .85; }
.pbtn-go .icon { width: 16px; height: 16px; opacity: .8; }
.pbtn-verify {
  background: linear-gradient(180deg, #2fd18a 0%, #16a34a 60%, #12893f 100%);
  box-shadow: 0 5px 0 #0b6630, 0 14px 26px -10px rgba(22, 163, 74, .75), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.pbtn-verify:hover { box-shadow: 0 7px 0 #0b6630, 0 20px 34px -12px rgba(22, 163, 74, .85), inset 0 1px 0 rgba(255, 255, 255, .4); }
.pbtn-verify:active { box-shadow: 0 1px 0 #0b6630; }
.pbtn-verify::before { content: ''; position: absolute; inset: -4px; border-radius: 20px; border: 2px solid rgba(47, 209, 138, .55); animation: ring 2.6s infinite; pointer-events: none; }
.pbtn-login {
  background: linear-gradient(180deg, #4577f5 0%, #2156e0 60%, #1d4ccc 100%);
  box-shadow: 0 5px 0 var(--primary-700), 0 14px 26px -10px rgba(33, 86, 224, .75), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.pbtn-login:hover { box-shadow: 0 7px 0 var(--primary-700), 0 20px 34px -12px rgba(33, 86, 224, .85), inset 0 1px 0 rgba(255, 255, 255, .4); }
.pbtn-login:active { box-shadow: 0 1px 0 var(--primary-700); }
.pbtn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.login-side-tab {
  position: fixed; left: 0; top: 50%; z-index: 85; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 9px 16px 8px; border: 0; cursor: pointer;
  border-radius: 0 16px 16px 0; color: #fff; font: 800 .82rem var(--font-display); letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(180deg, #4577f5, #1a47c2); box-shadow: 4px 0 0 #0e2f86, 0 14px 30px -10px rgba(33, 86, 224, .8);
  transition: padding .2s var(--ease), box-shadow .2s;
}
.login-side-tab span { writing-mode: vertical-rl; transform: rotate(180deg); }
.login-side-tab .icon { width: 20px; height: 20px; }
.login-side-tab:hover { padding-left: 14px; box-shadow: 6px 0 0 #0e2f86, 0 18px 34px -10px rgba(33, 86, 224, .9); }
.login-side-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.role-modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(5, 13, 36, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.role-modal[hidden] { display: none; }
.role-modal.is-open { opacity: 1; }
.role-dialog { position: relative; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: clamp(22px, 4vw, 36px); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); transform: translateY(16px) scale(.97); transition: transform .3s var(--ease); }
.role-modal.is-open .role-dialog { transform: none; }
.role-close { position: absolute; top: 16px; right: 16px; }
.role-head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; padding-right: 44px; }
.role-head h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 8px 0 4px; }
.role-crest { width: 64px; height: auto; flex: none; filter: drop-shadow(0 6px 12px rgba(11, 31, 75, .25)); }
.role-grid { display: grid; gap: 14px; }
.role-card {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; color: var(--text); text-decoration: none;
  background: var(--surface-2); border: 1.5px solid var(--border); box-shadow: 0 4px 0 var(--border);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s, background .2s;
}
.role-card:hover, .role-card:focus-visible { color: var(--text); transform: translateY(-3px); border-color: var(--primary); background: var(--primary-50); box-shadow: 0 6px 0 rgba(33, 86, 224, .35), 0 18px 30px -16px rgba(33, 86, 224, .6); outline: none; }
.role-card .icon-3d { width: 58px; height: 58px; font-size: 1.7rem; }
.role-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.role-body strong { font: 700 1.08rem var(--font-display); }
.role-body small { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.role-go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; color: var(--primary); background: var(--surface); border: 1px solid var(--border); transition: transform .2s, background .2s, color .2s; }
.role-card:hover .role-go { transform: translateX(4px); background: var(--primary); color: #fff; }
.role-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--border); font-size: .88rem; color: var(--muted); }
.role-foot span { display: inline-flex; align-items: center; gap: .4rem; }
@media (min-width: 1500px) { .portal-bar-inner { max-width: 1400px; } }
@media (max-width: 980px) { .portal-bar-msg { display: none; } }
@media (max-width: 560px) {
  .portal-bar-inner { padding: 8px 12px; gap: 10px; }
  .pbtn { padding: 6px 12px 6px 6px; gap: 8px; border-radius: 14px; flex: 1; justify-content: center; }
  .pbtn-ico { width: 32px; height: 32px; border-radius: 10px; }
  .pbtn-text small, .pbtn-go { display: none; }
  .login-side-tab { padding: 10px 6px 12px 5px; font-size: .72rem; }
  .role-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .role-crest { width: 48px; }
  .role-card { padding: 14px; gap: 12px; }
  .role-card .icon-3d { width: 48px; height: 48px; font-size: 1.4rem; }
  .role-go { display: none; }
}
@media print { .portal-bar, .login-side-tab, .role-modal { display: none !important; } }
/* keep slider arrow clear of the fixed Login tab */
@media (min-width: 721px) { .has-login-tab .slider-arrow.prev { left: clamp(56px, 4.5vw, 72px); } }
@media (max-width: 720px) { .login-side-tab { display: none; } }  /* phones use the Login button in the top bar */
