/* ============================================================
   AJ HOSPITALITY SOLUTION — DESIGN SYSTEM & STYLES
   ============================================================ */

/* ============ TOKENS ============ */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --border-subtle: #edf2f7;
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --navy-950: #051329;
  --navy-900: #071a38;
  --navy-800: #0a254d;
  --navy-700: #0f3366;
  --blue-600: #0066ff;
  --blue-700: #0052d4;
  --blue-800: #003fb0;
  --blue-500: #267dff;
  --blue-400: #539afc;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --green-bg: #ecfdf5;
  --green-text: #059669;
  --amber-bg: #fffbeb;
  --amber-text: #d97706;
  --red-bg: #fef2f2;
  --red-text: #dc2626;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, .12);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="dark"] {
    --bg: #07101f;
    --surface: #0d182d;
    --surface-2: #11203b;
    --border: #1e2f50;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --blue-50: #0d234d;
    --blue-100: #13336c;
    --green-bg: #062b1b;
    --green-text: #34d399;
    --amber-bg: #2d1e05;
    --amber-text: #fbbf24;
    --red-bg: #311010;
    --red-text: #f87171;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, .6);
  }
}

:root[data-theme="dark"] {
  --bg: #07101f;
  --surface: #0d182d;
  --surface-2: #11203b;
  --border: #1e2f50;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --blue-50: #0d234d;
  --blue-100: #13336c;
  --green-bg: #062b1b;
  --green-text: #34d399;
  --amber-bg: #2d1e05;
  --amber-text: #fbbf24;
  --red-bg: #311010;
  --red-text: #f87171;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, .6);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font-family: inherit;
}

.icon {
  flex-shrink: 0;
}

::selection {
  background: var(--blue-100);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width:640px) {
  .wrap {
    padding: 0 16px;
  }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  padding: 13px 22px;
  font-weight: 700;
  font-size: 14.5px;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 102, 255, .28);
}

.btn-primary:hover {
  background: var(--blue-700);
  box-shadow: 0 10px 24px rgba(0, 102, 255, .36);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.btn-soft {
  background: var(--blue-50);
  color: var(--blue-600);
  border: none;
}

.btn-soft:hover {
  background: var(--blue-100);
}

.btn-danger-soft {
  background: var(--red-bg);
  color: var(--red-text);
}

.btn-danger-soft:hover {
  filter: brightness(0.95);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13.5px;
  border-radius: 10px;
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.btn-navy {
  background: var(--navy-900);
  color: #fff;
}

.btn-navy:hover {
  background: var(--navy-800);
}

/* ============ NAV / HEADER (marketing) ============ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, #0066ff, #0047ba);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 6px 18px rgba(0, 102, 255, .38);
  letter-spacing: -0.01em;
}

.brand-name {
  font-weight: 800;
  font-size: 15.5px;
  line-height: 1.2;
  color: var(--text);
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-link {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  transition: color .15s;
}

.header-link:hover {
  color: var(--blue-600);
}

@media (max-width:640px) {
  .header-link {
    display: none;
  }
}

.lang-toggle {
  display: flex;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 12.5px;
  padding: 6px 13px;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}

.lang-btn.active {
  background: var(--surface);
  color: var(--blue-600);
  box-shadow: var(--shadow-sm);
}

/* ============ HERO ============ */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding: 44px 0 64px;
}

@media (max-width:900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 20px 0 40px;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--blue-600);
  margin: 0 0 14px;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.12;
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -.015em;
  color: var(--text);
}

.hero h1 .accent {
  color: var(--blue-600);
}

@media (max-width:640px) {
  .hero h1 {
    font-size: 33px;
  }
}

.hero p.lead {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 52ch;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.tag-row {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}

.tag-row .tag b {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
}

.tag-row .tag span {
  font-size: 13px;
  color: var(--muted);
}

.hero-art {
  position: relative;
  background: linear-gradient(165deg, #092147 0%, #05142b 100%);
  border-radius: 28px;
  padding: 38px;
  min-height: 420px;
  box-shadow: 0 20px 48px rgba(5, 19, 41, .28);
  overflow: hidden;
}

.hero-art::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 255, .3), transparent 70%);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .08);
  color: #cfe0ff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
}

.hero-orbit {
  position: relative;
  height: 330px;
  margin-top: 20px;
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy-900);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
  text-align: center;
}

.orbit-center b {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
}

.orbit-center span {
  font-size: 11.5px;
  color: var(--muted);
}

.orbit-card {
  position: absolute;
  background: #fff;
  color: var(--navy-900);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .26);
  white-space: nowrap;
}

.orbit-c1 {
  top: 6%;
  left: 2%;
}

.orbit-c2 {
  top: 2%;
  right: 0%;
}

.orbit-c3 {
  bottom: 4%;
  left: 4%;
}

.orbit-c4 {
  bottom: 0%;
  right: 2%;
}

@media (max-width:520px) {
  .orbit-card {
    font-size: 11.5px;
    padding: 8px 11px;
  }

  .orbit-center {
    width: 130px;
    height: 130px;
  }
}

/* ============ PORTAL PICKER ============ */
.section {
  padding: 56px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-head h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 8px 0 10px;
  letter-spacing: -.01em;
}

.section-head p {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width:860px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }
}

.portal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.portal-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.portal-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
}

.portal-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 22px;
  flex: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  padding: 5px 10px;
  border-radius: 999px;
}

.badge-green {
  background: var(--green-bg);
  color: var(--green-text);
}

.badge-amber {
  background: var(--amber-bg);
  color: var(--amber-text);
}

.badge-red {
  background: var(--red-bg);
  color: var(--red-text);
}

.badge-abs {
  position: absolute;
  top: 24px;
  right: 24px;
  text-transform: uppercase;
}

.portal-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* ============ WHY CHOOSE SECTION ============ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width:900px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.why-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 15px 18px;
}

.why-check {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(0, 102, 255, .28);
}

.why-item span {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
}

.why-visual {
  background: linear-gradient(165deg, #092147 0%, #05142b 100%);
  border-radius: 28px;
  padding: 40px 34px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.why-visual::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 255, .32), transparent 70%);
}

.why-stats {
  display: flex;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.why-stat b {
  display: block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.why-stat span {
  font-size: 12.5px;
  color: #a7b8d6;
}

.why-visual hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin: 0;
  position: relative;
  z-index: 1;
}

.why-visual p {
  margin: 0;
  color: #cfe0ff;
  font-size: 14px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ============ TESTIMONIALS ============ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width:860px) {
  .testi-grid {
    grid-template-columns: 1fr;
  }
}

.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.testi-card.featured {
  background: var(--blue-600);
  color: #fff;
  border-color: var(--blue-600);
  box-shadow: 0 20px 45px rgba(0, 102, 255, .32);
  transform: translateY(-6px);
}

@media (max-width:860px) {
  .testi-card.featured {
    transform: none;
  }
}

.testi-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 19px;
  background: var(--blue-50);
  color: var(--blue-600);
  box-shadow: 0 0 0 4px var(--surface-2);
}

.testi-card.featured .testi-avatar {
  background: #fff;
  color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .18);
}

.testi-stars {
  color: #f5b400;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.testi-card.featured .testi-stars {
  color: #ffd75e;
}

.testi-card h4 {
  margin: 0 0 2px;
  font-size: 15.5px;
  font-weight: 800;
}

.testi-role {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 12px;
}

.testi-card.featured .testi-role {
  color: rgba(255, 255, 255, .78);
}

.testi-quote-mark {
  font-size: 26px;
  font-weight: 800;
  color: var(--blue-600);
  line-height: 1;
  margin-bottom: 6px;
}

.testi-card.featured .testi-quote-mark {
  color: #fff;
}

.testi-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.testi-card.featured .testi-text {
  color: rgba(255, 255, 255, .92);
}

/* dark footer feature band */
.feature-band {
  background: var(--navy-950);
  color: #fff;
  padding: 44px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

@media (max-width:800px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-item {
  display: flex;
  gap: 13px;
}

.feature-item .ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9db6ff;
}

.feature-item h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.feature-item p {
  margin: 0;
  font-size: 13px;
  color: #a7b3cc;
  line-height: 1.5;
}

.site-footer {
  background: var(--navy-950);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer .brand-sub {
  color: #8b98b3;
}

.footer-note {
  font-size: 12.5px;
  color: #8b98b3;
}

/* ============ AUTH SPLIT LAYOUT ============ */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  background: #fff;
}

@media (max-width:880px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
}

.auth-left {
  background: linear-gradient(170deg, #0a254d 0%, #05152c 100%);
  color: #fff;
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 255, .22), transparent 70%);
  pointer-events: none;
}

@media (max-width:880px) {
  .auth-left {
    min-height: 0;
    padding: 32px 24px;
  }
}

.auth-left .brand-mark {
  box-shadow: 0 0 25px rgba(0, 102, 255, .6), 0 4px 16px rgba(0, 71, 186, .45);
}

.auth-left .brand-name {
  color: #fff;
}

.auth-left .brand-sub {
  color: #8ea5c8;
}

.auth-left .eyebrow {
  color: #539afc;
  letter-spacing: .12em;
  font-size: 11.5px;
  font-weight: 800;
  margin-bottom: 12px;
}

.auth-left h1 {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
  margin: 16px 0 16px;
  letter-spacing: -.015em;
  color: #fff;
}

.auth-left p {
  color: #9cb3d1;
  font-size: 15px;
  line-height: 1.65;
  max-width: 38ch;
}

.auth-taglist {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 24px;
}

.auth-taglist b {
  display: block;
  font-size: 14px;
  color: #fff;
}

.auth-taglist span {
  font-size: 12px;
  color: #8ea5c8;
}

.auth-right {
  padding: 36px 8vw;
  display: flex;
  flex-direction: column;
  background: #fff;
}

@media (max-width:880px) {
  .auth-right {
    padding: 28px 22px;
  }
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 14px;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--muted);
  transition: color .15s;
}

.back-link:hover {
  color: var(--blue-600);
}

.pill-tabs {
  display: inline-flex;
  background: #eef2f6;
  border-radius: 12px;
  padding: 4px;
  gap: 3px;
  border: 1px solid rgba(0, 0, 0, .03);
}

@media (max-width:480px) {
  .pill-tabs {
    flex-wrap: wrap;
  }
}

.pill-tab {
  padding: 9px 20px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all .15s ease;
}

@media (max-width:480px) {
  .pill-tab {
    padding: 7px 14px;
    font-size: 12.5px;
  }
}

.pill-tab:hover {
  color: var(--text);
}

.pill-tab.active {
  background: #fff;
  color: var(--blue-600);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}

.auth-card {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}

.auth-card .eyebrow {
  font-size: 12px;
  color: var(--blue-600);
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.auth-card h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -.01em;
}

.auth-card>p.sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 26px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 7px;
  color: var(--text);
}

.field .req {
  color: #e0505a;
}

.input,
select.input,
textarea.input {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 14.5px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, .12);
}

.input::placeholder {
  color: var(--muted-2);
}

textarea.input {
  resize: vertical;
  min-height: 86px;
}

.field-hint {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 5px;
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--muted);
  margin: 18px 0;
}

.checkline input {
  margin-top: 3px;
}

.info-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 20px;
}

.info-box b {
  display: block;
  font-size: 13.5px;
  margin-bottom: 3px;
  color: var(--text);
}

.info-box span,
.info-box p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.center-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 18px;
}

.center-note a {
  color: var(--blue-600);
  font-weight: 700;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 30px;
}

.step-item {
  display: flex;
  gap: 14px;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13.5px;
  flex-shrink: 0;
}

.step-item h4 {
  margin: 0 0 3px;
  font-size: 14.5px;
  font-weight: 700;
}

.step-item p {
  margin: 0;
  font-size: 12.5px;
  color: #a7b3cc;
}

/* ============ FORM GRID (signup) ============ */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.form-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.form-card-head h3 {
  font-size: 21px;
  font-weight: 800;
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

@media (max-width:620px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-grid .full {
  grid-column: 1/-1;
}

/* success page */
.success-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}

.success-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green-text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.success-card h1 {
  font-size: 23px;
  font-weight: 800;
  margin: 0 0 12px;
}

.success-card p.desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 22px;
}

.next-box {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  margin-bottom: 24px;
}

.next-box b {
  font-size: 13.5px;
}

.next-box p {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.success-actions {
  display: flex;
  gap: 12px;
}

.success-actions .btn {
  flex: 1;
}

/* ============ APP SHELL (dashboards) ============ */
.app-shell {
  display: grid;
  grid-template-columns: 258px 1fr;
  min-height: 100vh;
}

@media (max-width:900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
}

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

@media (max-width:900px) {
  .sidebar {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px 14px;
  }

  .sidebar .nav-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar .nav-item {
    white-space: nowrap;
    padding: 9px 14px;
    font-size: 13px;
    min-width: max-content;
  }

  .sidebar-brand {
    padding: 2px 4px 10px;
  }

  .sidebar-role-badge {
    margin: 0 4px 8px;
    font-size: 11px;
    padding: 4px 10px;
  }

  .sidebar-logout {
    margin-top: 8px;
    padding: 10px;
    font-size: 13px;
  }
}

.sidebar-brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 4px 6px 18px;
}

.sidebar-role-badge {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-600);
  font-weight: 800;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 9px;
  margin: 0 6px 14px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  border: none;
  background: transparent;
  text-align: left;
  width: 100%;
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-item.active {
  background: var(--navy-900);
  color: #fff;
}

.sidebar-logout {
  margin-top: 14px;
  background: var(--red-bg);
  color: var(--red-text);
  font-weight: 800;
  font-size: 14px;
  border: none;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.main {
  padding: 26px 34px 60px;
  min-width: 0;
}

@media (max-width:640px) {
  .main {
    padding: 18px 16px 44px;
  }
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.topbar h1 {
  font-size: 25px;
  font-weight: 800;
  margin: 0;
}

@media (max-width:640px) {
  .topbar {
    flex-direction: column;
    gap: 12px;
  }

  .topbar h1 {
    font-size: 21px;
  }

  .who b {
    font-size: 13px;
  }
}

.who {
  display: flex;
  align-items: center;
  gap: 11px;
}

.avatar-circ {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.who b {
  display: block;
  font-size: 14px;
}

.who span {
  font-size: 12px;
  color: var(--muted);
}

.page-sub {
  color: var(--muted);
  font-size: 14.5px;
  margin: 8px 0 26px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width:900px) {
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:480px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.stat-card .val {
  font-size: 27px;
  font-weight: 800;
}

.stat-card .lbl {
  font-weight: 700;
  font-size: 13.5px;
  margin-top: 2px;
}

.stat-card .sub {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 3px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.panel-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  align-items: start;
}

@media (max-width:960px) {
  .panel-row {
    grid-template-columns: 1fr;
  }
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 10px;
}

.panel-head h3 {
  font-size: 17.5px;
  font-weight: 800;
  margin: 0 0 3px;
}

.panel-head p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.link-btn {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--blue-600);
  white-space: nowrap;
}

/* Table scroll wrapper for mobile */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px;
}

table.dtable {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}

table.dtable th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted-2);
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  font-weight: 800;
  white-space: nowrap;
}

table.dtable td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  vertical-align: middle;
}

table.dtable tr:last-child td {
  border-bottom: none;
}

.cell-name b {
  display: block;
  font-size: 14px;
}

.cell-name span {
  font-size: 12px;
  color: var(--muted);
}

.status-pill {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.wf-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}

.wf-item {
  display: flex;
  gap: 13px;
}

.wf-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.wf-item h4 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
}

.wf-item p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width:900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:620px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width:700px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.tech-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.tech-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 12px;
}

.star-toggle {
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 9px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
}

.star-toggle.active {
  background: #fff7e0;
  border-color: #f4cf62;
  color: #c9971b;
}

.tech-card h4 {
  margin: 0 0 3px;
  font-size: 15.5px;
  font-weight: 800;
}

.tech-card .role {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
}

.tech-meta {
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tech-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.verified-pill {
  background: var(--green-bg);
  color: var(--green-text);
  text-align: center;
  font-weight: 800;
  font-size: 12.5px;
  padding: 8px;
  border-radius: 9px;
  margin-bottom: 10px;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.card-actions .btn {
  flex: 1;
}

.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.toolbar .input {
  max-width: 280px;
}

.toolbar select.input {
  max-width: 220px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.section-title-row h2 {
  font-size: 19px;
  font-weight: 800;
  margin: 0;
}

.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.job-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
}

.job-card .meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.job-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 60ch;
}

.job-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 130px;
}

.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
}

.empty-state .ico {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--muted-2);
}

.empty-state h4 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 16px;
}

.empty-state p {
  margin: 0;
  font-size: 13.5px;
}

.progress-track {
  background: var(--surface-2);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  margin: 10px 0;
}

.progress-fill {
  background: var(--blue-600);
  height: 100%;
  border-radius: 999px;
}

.course-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.course-card .icowrap {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.course-card h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
}

.course-card .cmeta {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.course-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

.exam-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
  gap: 14px;
  flex-wrap: wrap;
}

.exam-row:last-child {
  border-bottom: none;
}

.exam-row h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.exam-row .meta {
  font-size: 12.5px;
  color: var(--muted);
}

.qa-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.qa-item .qhead {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  align-items: flex-start;
}

.qa-item .qhead b {
  font-size: 14px;
}

.qa-item .qtext {
  font-size: 13.5px;
  color: var(--text);
  margin: 0 0 10px;
}

.qa-reply {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text);
}

.qa-reply b {
  color: var(--blue-600);
  display: block;
  margin-bottom: 3px;
  font-size: 12.5px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width:520px) {
  .bar-row {
    flex-wrap: wrap;
    gap: 6px;
  }
}

.bar-row .barlabel {
  width: 170px;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

@media (max-width:520px) {
  .bar-row .barlabel {
    width: 100%;
    font-size: 12.5px;
  }
}

.bar-track {
  flex: 1;
  background: var(--surface-2);
  border-radius: 8px;
  height: 14px;
  overflow: hidden;
  min-width: 60px;
}

.bar-fill {
  background: var(--blue-600);
  height: 100%;
  border-radius: 8px;
}

.bar-val {
  width: 36px;
  text-align: right;
  font-size: 12.5px;
  color: var(--muted);
  flex-shrink: 0;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.toggle-row:last-child {
  border-bottom: none;
}

.toggle-row b {
  font-size: 14px;
  display: block;
}

.toggle-row span {
  font-size: 12.5px;
  color: var(--muted);
}

.switch {
  width: 44px;
  height: 25px;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  border: none;
  flex-shrink: 0;
}

.switch.on {
  background: var(--blue-600);
}

.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  transition: left .15s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

.switch.on::after {
  left: 22px;
}

/* modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 28, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 520px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--surface-2);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.modal-card h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 800;
  padding-right: 30px;
}

/* toast */
#toast-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--navy-900);
  color: #fff;
  padding: 13px 18px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastin .25s ease;
  max-width: 320px;
}

@keyframes toastin {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.quiz-q {
  margin-bottom: 20px;
}

.quiz-q p {
  font-weight: 700;
  font-size: 14.5px;
  margin: 0 0 10px;
}

.quiz-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 13.5px;
  cursor: pointer;
}

.quiz-opt:hover {
  border-color: var(--blue-600);
}

.quiz-opt.picked {
  border-color: var(--blue-600);
  background: var(--blue-50);
}

.mono-tag {
  font-family: ui-monospace, monospace;
  background: var(--surface-2);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 12.5px;
}