:root {
  --brand: #0069b3;
  --brand-bright: #41a0ff;
  --brand-deep: #0057ad;
  --brand-ink: #0b1f33;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e5e7eb;
  --line-soft: #f1f5f9;
  --bg: #f5f7fa;
  --white: #ffffff;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --info-bg: #eff6ff;
  --info: #1d4ed8;
  --success: #059669;
  --avatar: #0069b3;
  --gradient: linear-gradient(115deg, #0057ad 0%, #0069b3 42%, #41a0ff 100%);
  --gradient-hero: linear-gradient(115deg, #0b3d6e 0%, #0069b3 45%, #41a0ff 100%);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow: 0 12px 40px rgba(11, 31, 51, 0.12);
  --font: 'Sora', system-ui, sans-serif;
  --font-display: 'Sora', system-ui, sans-serif;
  --nav-w: 280px;
  --content-max: 920px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
button { cursor: pointer; }

/* ========== Top bar (landing + auth chrome) ========== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
  background: var(--white);
  position: relative;
  z-index: 10;
}
.logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--brand-ink);
}
.logo span { color: var(--brand); font-weight: 600; }
.topbar-actions { display: flex; gap: 0.65rem; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 10px;
  padding: 0.65rem 1.15rem;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-outline {
  background: var(--white);
  border-color: var(--brand-ink);
  color: var(--brand-ink);
}
.btn-solid {
  background: var(--brand-ink);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--brand-ink);
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.5rem;
  font-weight: 700;
}
.btn-full { width: 100%; }
.btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}
.btn-ghost {
  background: var(--white);
  border: 1.5px solid var(--line);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.btn-ghost:hover { border-color: var(--ink-soft); }

/* ========== Landing ========== */
.landing-body { background: var(--white); min-height: 100vh; }
.landing-main {
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 3rem;
  max-width: 1450px;
  margin: 0 auto;
}
.hero-stage {
  display: grid;
  grid-template-columns: 1fr 0.30fr;
  gap: 1rem;
  align-items: stretch;
  min-height: min(62vh, 520px);
}
.hero-side {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--line-soft);
  position: relative;
}
.hero-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}
.hero-ph-label {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  background: rgba(11, 31, 51, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
}
.hero-card {
  border-radius: var(--radius-lg);
  background: var(--gradient-hero);
  color: var(--white);
  padding: clamp(2rem, 5vw, 3.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  right: -60px; bottom: -80px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.hero-card h1 {
  font-size: clamp(3rem, 3.5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  font-weight: 700;
  max-width: 18ch;
  position: relative;
}
.hero-checks {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  position: relative;
}
.hero-checks li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
  font-weight: 500;
}
.hero-checks .ti { flex-shrink: 0; font-size: 1.25rem; line-height: 1; }
.hero-cta-label {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  position: relative;
}
.hero-card .btn-white { align-self: flex-start; position: relative; }

@media (max-width: 860px) {
  .hero-stage { grid-template-columns: 1fr; min-height: auto; }
  .hero-side { display: none; }
}

/* ========== Login / Register (VRT-inspired) ========== */
.auth-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #002f5c 0%, #0057ad 38%, #2f8fe0 72%, #7ec8ff 100%);
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}
.auth-layout {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(4rem, 10vw, 9rem);
  align-items: center;
  flex: 1;
  min-height: 100vh;
  padding: clamp(1.75rem, 4.5vh, 3rem) 0 clamp(1.75rem, 4.5vh, 3rem) clamp(7vw, 10vw, 11vw);
  box-sizing: border-box;
}
.auth-card {
  background: var(--white);
  border-radius: 32px;
  padding: clamp(1.75rem, 2.8vw, 2.35rem) clamp(1.6rem, 2.4vw, 2.15rem) 2.15rem;
  box-shadow: 0 18px 48px rgba(0, 24, 48, 0.14);
  width: min(420px, calc(100vw - 3rem));
  justify-self: start;
  border: 0;
}
.auth-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.65rem;
}
.auth-close {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}
.auth-close .ti { font-size: 1rem; line-height: 1; }
.auth-close:hover { color: var(--ink); }
.auth-title {
  font-family: var(--font);
  font-size: clamp(1.55rem, 2.5vw, 1.95rem);
  line-height: 1.2;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
  color: var(--brand-ink);
  font-weight: 700;
}
.auth-note {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0 0 1.45rem;
}
.field { margin-bottom: 1.1rem; }
.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.field-label-row label { margin-bottom: 0; }
.field input, .field select {
  width: 100%;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus {
  border-color: var(--brand-bright);
  box-shadow: 0 0 0 3px rgba(65,160,255,.2);
}
.password-wrap { position: relative; }
.password-wrap input { padding-right: 2.8rem; }
.password-toggle {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.password-toggle .ti { font-size: 1.25rem; line-height: 1; }
.link-soft {
  color: var(--brand-deep);
  font-size: 0.85rem;
  font-family: var(--font);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-submit {
  margin-top: 0.45rem;
  width: 100%;
  background: var(--brand-ink);
  color: var(--white);
  border: 0;
  border-radius: 10px;
  padding: 0.95rem 1.1rem;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
}
.auth-submit:hover { background: #081825; }
.auth-switch {
  margin: 1.2rem 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.auth-switch a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-visual {
  --auth-tall-w: clamp(190px, 15.5vw, 250px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: stretch;
  height: 100%;
  min-height: 560px;
  margin: 0;
  /* Pull stack so the tall card always hangs ~20% past the viewport */
  padding: 0;
  padding-right: calc(var(--auth-tall-w) * 0.2);
  margin-right: calc(var(--auth-tall-w) * -0.2);
  gap: 0;
  overflow: visible;
}
.auth-visual-card {
  margin: 0;
  position: relative;
  flex-shrink: 0;
  border-radius: 28px;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: 0 16px 40px rgba(0, 20, 40, 0.22);
}
/* Left→right: short → mid → tall; tall always overlaps mid + bleeds off the right */
.auth-visual-card--short {
  width: clamp(300px, 30vw, 350px);
  height: clamp(310px, 12vw, 250px);
  z-index: 1;
  margin-right: clamp(-1rem, -3.5vw, -1.75rem);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.auth-visual-card--mid {
  width: clamp(200px, 17vw, 265px);
  height: clamp(320px, 55vh, 440px);
  z-index: 2;
  margin-right: clamp(-1.25rem, -4vw, -1.75rem);
}
.auth-visual-card--tall {
  width: var(--auth-tall-w);
  height: clamp(420px, 70vh, 560px);
  z-index: 3;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: -1.5px;
}
.auth-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.alert {
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert-error { background: var(--danger-bg); color: #991b1b; }
.alert-success { background: #ecfdf5; color: #065f46; }
.alert-info {
  background: var(--info-bg);
  color: var(--info);
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
}
.alert-info .ti { font-size: 1.125rem; line-height: 1; margin-top: 0.1rem; flex-shrink: 0; }

@media (max-width: 960px) {
  .auth-layout {
    grid-template-columns: 1fr;
    padding: 1.25rem;
    column-gap: 0;
  }
  .auth-card {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }
  .auth-visual { display: none; }
}

/* ========== Profile dashboard ========== */
.dash-body {
  background: var(--bg);
  color: var(--brand-ink);
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem clamp(1.25rem, 3vw, 2rem);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  z-index: 20;
}
.dash-logout {
  display: inline-flex;
  align-items: center;
  padding-left: .30rem;
  padding-right: .50rem;
  padding-top: .25rem;
  padding-bottom: .25rem;
  border-radius: 8px;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand-ink);
}
.dash-logout:hover {
  background: rgba(0, 0, 0, 0.082);
}
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--avatar);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.dash-shell {
  display: grid;
  grid-template-columns: var(--nav-w) 1fr;
  margin: 0 auto;
  gap: 1.5rem;
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 1.5rem;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}
.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.25rem;
  scrollbar-gutter: stable;
}
.nav-item {
  display: grid;
  grid-template-columns: 24px 1fr 16px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem .75rem;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--brand-ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-item:hover { background: rgba(0,105,179,.06); }
.nav-item.is-active {
  background: #e8eef5;
  font-weight: 600;
  border-color: var(--brand);
}
.nav-item .ti { color: var(--ink-soft); font-size: 1.25rem; line-height: 1; }
.nav-item .ti-chevron-right { font-size: 1.35rem; justify-self: end; }
.nav-item.is-active .ti { color: var(--brand-deep); }
.nav-platforms {
  margin-top: auto;
  padding-top: 1.25rem;
  padding-bottom: 0.5rem;
}
.nav-platforms h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 0.85rem;
  font-weight: 700;
}
.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.platform-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.dash-main {
  min-width: 0;
  max-width: var(--content-max);
  margin-left: 75px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.25rem;
  padding-bottom: 1.5rem;
  scrollbar-gutter: stable;
}
.welcome-banner {
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 0;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  height: 225px;
  min-height: 225px;
  max-height: 225px;
  box-shadow: 0 14px 36px rgba(0, 87, 173, 0.22);
  isolation: isolate;
}
.welcome-banner-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.welcome-banner-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.welcome-banner-copy {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.1rem 1.35rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.welcome-banner h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-family: var(--font);
  text-shadow: 0 2px 18px rgba(11, 31, 51, 0.35);
}
@media (max-width: 720px) {
  .welcome-banner-copy { padding: 1rem 1.15rem; }
}
.page-title {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}
.page-sub {
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}
.card-danger {
  background: var(--danger-bg);
  border-color: #fecaca;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.card-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 2rem;
}
.data-item .label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.data-item .value {
  font-weight: 700;
  color: var(--brand-ink);
  font-size: 0.98rem;
}
.verified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--success);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
.verified .ti { font-size: 1rem; line-height: 1; }
.card-text {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
}
.session-list { display: grid; gap: 0.75rem; }
.session-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--line-soft);
  border-radius: 12px;
  align-items: center;
}
.session-row strong { display: block; font-size: 0.95rem; }
.session-meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}
.badge-current {
  display: inline-block;
  background: #dbeafe;
  color: var(--brand-deep);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
}
.perm-list, .news-list { display: grid; gap: 0.75rem; }
.perm-card, .news-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}
.perm-brand {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
  margin-bottom: 0.2rem;
}
.perm-card h3, .news-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.perm-card p, .news-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.news-card {
  grid-template-columns: 72px 1fr auto;
  align-items: center;
}
.news-thumb {
  width: 72px; height: 56px;
  border-radius: 10px;
  background: var(--gradient);
}
.toggle {
  position: relative;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
  border: 0;
  padding: 0;
  background: #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, opacity .15s ease, box-shadow .15s ease;
  appearance: none;
  -webkit-appearance: none;
}
.toggle.is-on { background: var(--brand); }
.toggle:focus-visible {
  outline: 3px solid rgba(65,160,255,.45);
  outline-offset: 2px;
}
.toggle.is-busy { opacity: 0.65; pointer-events: none; }
.toggle.is-error { box-shadow: 0 0 0 3px rgba(220,38,38,.35); }
.toggle-knob {
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  pointer-events: none;
}
.toggle.is-on .toggle-knob { transform: translateX(22px); }
.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.filter-row select {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  background: var(--white);
}
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(11,31,51,.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}
.modal-backdrop.is-open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: min(480px, 100%);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.modal h3 { margin: 0 0 0.75rem; font-size: 1.2rem; }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.mobile-nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.35rem;
  color: var(--brand-ink);
  align-items: center;
  justify-content: center;
}
.mobile-nav-toggle .ti { font-size: 1.375rem; line-height: 1; }
@media (max-width: 900px) {
  .dash-body {
    height: auto;
    max-height: none;
    overflow: auto;
  }
  .dash-shell {
    grid-template-columns: 1fr;
    overflow: visible;
    flex: none;
    min-height: auto;
  }
  .dash-nav {
    display: none;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    overflow: visible;
  }
  .dash-nav.is-open { display: flex; }
  .dash-main {
    margin-left: 0;
    overflow: visible;
    max-width: none;
  }
  .mobile-nav-toggle { display: inline-flex; }
  .data-grid { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 1fr auto; }
  .news-thumb { display: none; }
}
