/* ═══════════════════════════════════════════════════════════════
   Lotoks — Design System & Main Stylesheet
   Converted from Tailwind CSS index.css @theme tokens
   ════════════════════════════════════════════════════════════════ */

/* ── Google Fonts import (exact fonts from source) ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lexend:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ── CSS Custom Properties (from index.css @theme) ── */
:root {
  /* Brand Colors — exact hex from index.css */
  --color-navy:              #0B1D3A;
  --color-gold:              #C9A44B;
  --color-teal:              #1D7A7A;
  --color-red:               #D14B4B;

  /* Primary palette */
  --color-primary:           #2349e1;
  --color-primary-dim:       #1a36a8;
  --color-primary-light:     #7087ff;

  /* Secondary palette */
  --color-secondary:         #006382;
  --color-secondary-dim:     #004d67;
  --color-secondary-light:   #93dbff;

  /* Tertiary */
  --color-tertiary:          #ab1c6b;
  --color-tertiary-dim:      #851653;
  --color-tertiary-light:    #ff8cbe;

  /* Error */
  --color-error:             #b3261e;
  --color-error-container:   #f9dedc;
  --color-on-error:          #ffffff;

  /* Surface colors */
  --color-surface:                    #f7f5ff;
  --color-on-surface:                 #2c2e3b;
  --color-on-surface-variant:         #595a69;
  --color-outline:                    #757685;
  --color-outline-variant:            #acacbd;
  --color-surface-container-lowest:   #ffffff;
  --color-surface-container-low:      #f0efff;
  --color-surface-container:          #e6e6fc;
  --color-surface-container-high:     #e0e1f7;
  --color-surface-container-highest:  #dadbf3;

  /* Typography */
  --font-heading:    'Lexend', sans-serif;
  --font-body:       'Inter', sans-serif;
  --font-playfair:   'Playfair Display', serif;

  /* Border radius */
  --radius-sm:   0.25rem;   /* 4px */
  --radius-md:   1rem;      /* 16px */
  --radius-lg:   1.5rem;    /* 24px */
  --radius-xl:   2rem;      /* 32px */
  --radius-2xl:  3rem;      /* 48px */
  --radius-card: 1.5rem;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;

  /* Shadows */
  --shadow-gold:  0 10px 30px rgba(201,164,75,0.25);
  --shadow-navy:  0 10px 30px rgba(11,29,58,0.25);
  --shadow-card:  0 4px 24px rgba(11,29,58,0.08);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL MOBILE BASELINE — added per mobile fix prompt
   ═══════════════════════════════════════════════════════════════ */

/* 1. Prevent any element from causing horizontal scroll */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* 2. Contain all sections with absolute-positioned decorators */
.hero-section,
.section-wrapper,
.cta-section,
.page-hero,
[style*="overflow:hidden"],
section[style*="position:relative"] {
  overflow: hidden;
  position: relative;
}

/* 3. Minimum touch target size for all interactive elements */
a,
button,
[role="button"],
input[type="button"],
input[type="submit"] {
  min-height: 44px;
  min-width: 44px;
}

/* Exception: purely decorative or icon-only elements that are
   visually sized differently but still need accessible tap area */
.icon-only-btn {
  position: relative;
}
.icon-only-btn::after {
  content: '';
  position: absolute;
  inset: -8px;
}

/* 4. Prevent long content (emails, URLs) from overflowing cards */
.glass-card,
.stat-card,
.partner-card,
.testimonial-card,
.dash-stat-card,
.dash-account-grid,
.dash-account-field-value {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* 5. Images should never exceed their container */
img {
  max-width: 100%;
  height: auto;
}

/* 6. Clamp decorative blob sizes on mobile to prevent overflow */
@media (max-width: 767px) {
  /* Target any inline-styled blob/orb that might be too wide */
  .hero-blob-gold,
  .cta-blob,
  [class*="orb-"],
  [class*="-blob"] {
    max-width: min(20rem, 65vw) !important;
    max-height: min(20rem, 65vw) !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-surface);
  color: var(--color-on-surface);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.page-loaded {
  opacity: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

/* ── Utility classes ── */
.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px)  { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

.text-navy    { color: var(--color-navy); }
.text-gold    { color: var(--color-gold); }
.text-teal    { color: var(--color-teal); }
.text-white   { color: #ffffff; }
.text-primary { color: var(--color-primary); }

.bg-navy     { background-color: var(--color-navy); }
.bg-gold     { background-color: var(--color-gold); }
.bg-surface  { background-color: var(--color-surface); }
.bg-white    { background-color: #ffffff; }
.bg-primary  { background-color: var(--color-primary); }

.font-heading  { font-family: var(--font-heading); }
.font-playfair { font-family: var(--font-playfair); }

/* ── Glassmorphism ── */
.glass {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
  background: rgba(11, 29, 58, 0.70);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 164, 75, 0.2);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  color: #fff;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.glass-card:hover {
  border-color: rgba(201,164,75,0.4);
  box-shadow: 0 20px 40px rgba(201,164,75,0.1);
  transform: translateY(-4px);
}

.elevated-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.elevated-card:hover {
  border-color: rgba(201,164,75,0.3);
  box-shadow: 0 20px 40px rgba(201,164,75,0.2);
  transform: translateY(-4px);
}

.image-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background: var(--color-navy);
}

/* ── Stat Card ── */
.stat-card {
  background: rgba(11,29,58,0.05);
  border: 1px solid rgba(11,29,58,0.1);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  border-color: rgba(201,164,75,0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
}

.stat-label {
  color: rgba(11,29,58,0.7);
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled, .btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary — gold background */
.btn-primary {
  background: var(--color-gold);
  color: var(--color-navy);
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(201,164,75,0.3);
}

.btn-primary:hover {
  background: #b8933c;
  box-shadow: 0 8px 25px rgba(201,164,75,0.4);
  transform: scale(1.02);
}

.btn-primary:active { transform: scale(0.97); }

/* Secondary — gold border */
.btn-secondary {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-secondary:hover {
  background: rgba(201,164,75,0.1);
}

/* Ghost — transparent */
.btn-ghost {
  background: transparent;
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
}

.btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* Sizes */
.btn-sm  { padding: 0.5rem 1rem;   font-size: 0.875rem; border-radius: 0.375rem; }
.btn-lg  { padding: 1rem 2rem;     font-size: 1.125rem; border-radius: 0.5rem; }
.btn-xl  { padding: 1.25rem 2.5rem; font-size: 1.25rem; border-radius: 0.5rem; }
.btn-full { width: 100%; }

/* Rounded pill variant */
.btn-pill        { border-radius: 9999px; }
.btn-pill.btn-sm { border-radius: 9999px; }
.btn-pill.btn-lg { border-radius: 9999px; }

/* ── Form Elements ── */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}

.form-label-dark {
  color: var(--color-on-surface-variant);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.5rem;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}

/* ── All select/dropdown inputs: navy background, gold text ── */
select.form-input,
select.form-select,
select {
  background-color: var(--color-navy, #0B1D3A) !important;
  color: var(--color-gold, #C9A44B) !important;
}
select.form-input option,
select.form-select option,
select option {
  background-color: var(--color-navy, #0B1D3A);
  color: var(--color-gold, #C9A44B);
}

.form-input::placeholder { color: rgba(255,255,255,0.4); }

.form-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201,164,75,0.15);
}

.form-input.error { border-color: var(--color-red); }

.form-input-light {
  background: #fff;
  border-color: var(--color-outline-variant);
  color: var(--color-on-surface);
}

.form-input-light::placeholder { color: var(--color-outline); }

.form-input-light:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(35,73,225,0.15);
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23C9A44B' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-error {
  font-size: 0.8rem;
  color: var(--color-red);
  margin-top: 0.25rem;
  display: block;
}

.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper .form-input {
  padding-left: 2.75rem;
}

.input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.4);
  pointer-events: none;
}

/* ── Alert/Error boxes ── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: rgba(209,75,75,0.1);
  border: 1px solid rgba(209,75,75,0.3);
  color: #fca5a5;
}

.alert-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #86efac;
}

.alert-warning {
  background: rgba(201,164,75,0.1);
  border: 1px solid rgba(201,164,75,0.3);
  color: var(--color-gold);
}

/* ── Badge / Status ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-submitted   { background: rgba(59,130,246,0.15); color: #93c5fd; }
.badge-under_review{ background: rgba(234,179,8,0.15);  color: #fde047; }
.badge-approved    { background: rgba(34,197,94,0.15);  color: #86efac; }
.badge-rejected    { background: rgba(239,68,68,0.15);  color: #fca5a5; }
.badge-more_info   { background: rgba(168,85,247,0.15); color: #d8b4fe; }
.badge-pending     { background: rgba(234,179,8,0.15);  color: #fde047; }
.badge-success     { background: rgba(34,197,94,0.15);  color: #86efac; }
.badge-failed      { background: rgba(239,68,68,0.15);  color: #fca5a5; }
.badge-active      { background: rgba(34,197,94,0.15);  color: #86efac; }
.badge-inactive    { background: rgba(156,163,175,0.15);color: #9ca3af; }

/* ── WhatsApp Floating Button ── */
.whatsapp-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.4);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  animation: popIn 0.5s cubic-bezier(0.175,0.885,0.32,1.275) 1s both;
}

.whatsapp-btn:hover {
  background: #20ba5a;
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 15px 40px rgba(37,211,102,0.5);
}

.whatsapp-btn svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: currentColor;
}

/* On mobile/tablet, lift WhatsApp button above the tab bar */
@media (max-width: 1024px) {
  .whatsapp-btn {
    bottom: 5.5rem;
  }
}

/* ── Toast Notifications ── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  animation: toastIn 0.3s ease both;
  pointer-events: auto;
  min-width: 260px;
  text-align: center;
}

.toast.toast-success { background: #16a34a; }
.toast.toast-error   { background: #dc2626; }
.toast.toast-info    { background: var(--color-primary); }

.toast.fade-out { animation: toastOut 0.3s ease both; }

/* ── Loading Spinner ── */
.spinner {
  width: 3rem;
  height: 3rem;
  border: 4px solid transparent;
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.spinner-sm {
  width: 1.25rem;
  height: 1.25rem;
  border-width: 2px;
}

.spinner-primary { border-top-color: var(--color-primary); }

/* ── Section Wrapper ── */
.section-wrapper {
  padding-block: 4rem;
}

@media (min-width: 768px) {
  .section-wrapper { padding-block: 6rem; }
}

.section-heading {
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-heading p {
  font-size: 1.1rem;
  max-width: 42rem;
}

.section-heading.center { text-align: center; }
.section-heading.center p { margin-inline: auto; }
.section-heading.light h2 { color: #fff; }
.section-heading.light p  { color: rgba(255,255,255,0.7); }
.section-heading.dark  h2 { color: var(--color-navy); }
.section-heading.dark  p  { color: var(--color-on-surface-variant); }

/* ── Page Hero ── */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-navy);
}

.page-hero .hero-overlay-img {
  position: absolute;
  inset: 0;
}

.page-hero .hero-overlay-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero .hero-overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,29,58,0.8), rgba(11,29,58,0.6), #0B1D3A);
}

.page-hero .hero-blob-1 {
  position: absolute;
  top: 5rem;
  left: 2.5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(201,164,75,0.05);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.page-hero .hero-blob-2 {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 24rem;
  height: 24rem;
  background: rgba(201,164,75,0.1);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.page-hero .hero-content {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  margin-inline: auto;
  padding-inline: 1rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: #fff;
  margin-bottom: 1rem;
  animation: fadeUpIn 0.6s ease 0.2s both;
}

.page-hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.7);
  max-width: 36rem;
  margin-inline: auto;
  animation: fadeUpIn 0.6s ease 0.4s both;
}

/* ── Sidebar (user portal) ── */
.user-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 15rem;
  background: #1a1a2e;
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  z-index: 40;
}

.user-sidebar .sidebar-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 2.5rem;
  padding-left: 1rem;
  display: block;
}

.user-sidebar .sidebar-logo span { color: #3b82f6; }

.sidebar-nav { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
  position: relative;
}

.sidebar-link:hover { background: rgba(255,255,255,0.05); color: #fff; }

.sidebar-link.active {
  background: rgba(59,130,246,0.1);
  color: #fff;
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 1.75rem;
  background: #3b82f6;
  border-radius: 0 2px 2px 0;
}

.sidebar-link svg { width: 1.25rem; height: 1.25rem; }

/* ── Admin Sidebar ── */
.admin-sidebar {
  width: 16rem;
  flex-shrink: 0;
  background: var(--color-navy);
  border-right: 1px solid rgba(255,255,255,0.1);
  min-height: 100vh;
  display: none;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .admin-sidebar { display: flex; }
}

.admin-sidebar .as-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar .as-logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-navy);
}

.admin-sidebar .as-logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; color: #fff; }
.admin-sidebar .as-logo-text span { color: var(--color-gold); }
.admin-sidebar .as-subtitle { color: rgba(255,255,255,0.4); font-size: 0.7rem; margin-top: -2px; }

.admin-sidebar .as-user-info {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar .as-user-name { color: rgba(255,255,255,0.9); font-size: 0.875rem; font-weight: 500; }

.as-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

.as-role-badge.super_admin { background: rgba(201,164,75,0.1); color: var(--color-gold); }
.as-role-badge.admin       { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }

.admin-sidebar .as-nav { flex: 1; padding: 1rem 0.75rem; display: flex; flex-direction: column; gap: 0.25rem; overflow-y: auto; }

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: all 0.15s;
}

.admin-nav-link:hover  { color: #fff; background: rgba(255,255,255,0.08); }
.admin-nav-link.active { background: var(--color-gold); color: var(--color-navy); font-weight: 600; box-shadow: 0 4px 12px rgba(201,164,75,0.2); }

.admin-nav-link svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }

.admin-sidebar .as-logout {
  padding: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.as-logout-btn {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(209,75,75,0.8);
  transition: all 0.15s;
}

.as-logout-btn:hover { background: rgba(209,75,75,0.1); color: var(--color-red); }

/* ── Dashboard layout ── */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: var(--color-navy);
}

.dashboard-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .dashboard-content { margin-left: 15rem; }
}

.admin-content { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11,29,58,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Mobile bottom tab bar ── */
.mobile-tab-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0,0,0,0.05);
  z-index: 50;
  align-items: center;
  justify-content: space-around;
  padding-inline: 1rem;
}

@media (min-width: 768px) { .mobile-tab-bar { display: none; } }

.tab-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--color-outline);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: capitalize;
  transition: color 0.2s;
}

.tab-bar-item.active { color: var(--color-primary); }

.tab-bar-item svg { width: 1.25rem; height: 1.25rem; }

/* ── Mobile menu hamburger (user sidebar) ── */
.mobile-menu-btn {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 50;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
}

@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 50;
  display: none;
}

.mobile-sidebar-panel {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 15rem;
  background: #1a1a2e;
  z-index: 50;
  padding: 1rem;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-sidebar-panel.open { transform: translateX(0); }

/* ── Image Card (services) ── */
.image-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.image-card:hover .image-card-bg { transform: scale(1.05); }

.image-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0B1D3A, rgba(11,29,58,0.6), transparent);
}

.image-card-content {
  position: relative;
  z-index: 10;
  padding: 1.5rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* ── Partner Cards ── */
.partner-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #b7974a;
  border: 1px solid rgba(183,151,74,0.4);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.partner-card:hover {
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 20px 45px rgba(183,151,74,0.35);
}

.partner-card .shine {
  position: absolute;
  inset: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-12deg);
  pointer-events: none;
  left: -150%;
  transition: left 0.85s ease;
}

.partner-card:hover .shine { left: 100%; }

.partner-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-navy);
  background: rgba(11,29,58,0.1);
  border: 1px solid rgba(11,29,58,0.2);
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.partner-logo-box {
  height: 5rem;
  background: rgba(255,255,255,0.95);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  transition: transform 0.3s;
}

.partner-card:hover .partner-logo-box { transform: scale(1.05); }

.partner-logo-box img { max-height: 4rem; max-width: 100%; object-fit: contain; }

/* ── Eligibility Quiz ── */
.eligibility-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(172,172,189,0.3);
  border-radius: 1.5rem;
  padding: 2rem 2.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.progress-bar-track {
  flex: 1;
  height: 0.625rem;
  background: var(--color-surface-container);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--color-primary), rgba(35,73,225,0.7));
  border-radius: 9999px;
  transition: width 0.5s ease-out;
}

.eligibility-option {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  text-align: left;
  border-radius: 0.75rem;
  border: 1px solid rgba(172,172,189,0.3);
  background: var(--color-surface-container-low);
  transition: all 0.3s;
  cursor: pointer;
  width: 100%;
}

.eligibility-option:hover {
  border-color: var(--color-primary);
  background: rgba(35,73,225,0.05);
}

.eligibility-option-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.eligibility-option:hover .eligibility-option-icon { transform: scale(1.1); }

/* ── Apply Wizard ── */
.wizard-step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
  padding-inline: 0.5rem;
}

.wizard-step-indicator::before {
  content: '';
  position: absolute;
  top: 1.25rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: rgba(255,255,255,0.1);
  z-index: 0;
}

.wizard-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.wizard-step-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: all 0.3s;
}

.wizard-step-circle.active {
  background: var(--color-gold);
  color: var(--color-navy);
  box-shadow: 0 4px 15px rgba(201,164,75,0.2);
}

.wizard-step-circle.inactive {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.1);
}

.wizard-step-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: none;
}

@media (min-width: 640px) { .wizard-step-label { display: block; } }
.wizard-step-label.active   { color: var(--color-gold); }
.wizard-step-label.inactive { color: rgba(255,255,255,0.3); }

.wizard-panel {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  min-height: 400px;
}

/* ── Data table ── */
.data-table-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table thead tr {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
}

.data-table thead th {
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
  cursor: pointer;
}

.data-table tbody tr:hover { background: rgba(255,255,255,0.05); }
.data-table tbody tr:last-child { border-bottom: none; }

.data-table tbody td {
  padding: 1rem 1.25rem;
  color: rgba(255,255,255,0.7);
}

/* ── Slide Panel (admin detail) ── */
.slide-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.slide-panel-overlay.open { opacity: 1; pointer-events: all; }

.slide-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 36rem;
  background: #0f1b32;
  border-left: 1px solid rgba(255,255,255,0.1);
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}

.slide-panel.open { transform: translateX(0); }

.slide-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.slide-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── Hero section (home) ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }

.hero-overlay-1 {
  position: absolute;
  inset: 0;
  background: rgba(11,29,58,0.7);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,29,58,0.6), rgba(11,29,58,0.4), #0B1D3A);
}

.hero-blob-gold {
  position: absolute;
  border-radius: 50%;
  background: rgba(201,164,75,0.1);
  filter: blur(60px);
  pointer-events: none;
}

.orb-float {
  position: absolute;
  border-radius: 50%;
  background: rgba(201,164,75,0.6);
  animation: float 3s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin-inline: auto;
  padding: 5rem 1rem 0;
  text-align: center;
}

@media (min-width: 768px) { .hero-content { padding-top: 0; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(201,164,75,0.1);
  border: 1px solid rgba(201,164,75,0.2);
  margin-bottom: 2rem;
  animation: fadeUpIn 0.6s ease both;
}

.hero-badge svg { width: 1rem; height: 1rem; color: var(--color-gold); }
.hero-badge span { font-size: 0.875rem; font-weight: 500; color: var(--color-gold); }

.hero-h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  animation: fadeUpIn 0.6s ease 0.1s both;
}

.hero-h1 .gold { color: var(--color-gold); display: block; }

.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.375rem);
  color: rgba(255,255,255,0.7);
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  animation: fadeUpIn 0.6s ease 0.2s both;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 4rem;
  width: 100%;
  animation: fadeUpIn 0.6s ease 0.3s both;
}

@media (min-width: 640px) { .hero-cta { flex-direction: row; align-items: center; width: auto; gap: 1rem; } }

.hero-stats-card {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  animation: bounceFloat 4s ease-in-out infinite;
}

.flag-avatars {
  display: flex;
}

.flag-avatars .flag-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-navy);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-left: -0.75rem;
}

.flag-avatars .flag-avatar:first-child { margin-left: 0; }
.flag-avatars .flag-avatar img { width: 100%; height: 100%; object-fit: cover; }

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
}

.scroll-mouse {
  width: 1.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.35rem;
}

.scroll-dot {
  width: 0.375rem;
  height: 0.375rem;
  background: var(--color-gold);
  border-radius: 50%;
  animation: pulseOpacity 1.5s ease-in-out infinite;
}

/* ── Testimonial preview card ── */
.testimonial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-card .quote-icon {
  color: rgba(201,164,75,0.3);
  margin-bottom: 1rem;
}

.testimonial-stars { display: flex; gap: 0.25rem; margin-bottom: 1rem; }
.testimonial-stars .star { width: 1rem; height: 1rem; color: var(--color-gold); fill: var(--color-gold); }

.testimonial-card blockquote {
  color: rgba(255,255,255,0.8);
  font-style: italic;
  margin-bottom: 1.5rem;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.testimonial-flag {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-navy);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial-flag img { width: 100%; height: 100%; object-fit: cover; }

/* ── How It Works (process steps) ── */
.process-step-card {
  position: relative;
  background: rgba(11,29,58,0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(201,164,75,0.2);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  height: 100%;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.process-step-card:hover {
  border-color: rgba(201,164,75,0.4);
  box-shadow: 0 20px 40px rgba(201,164,75,0.1);
  transform: translateY(-4px);
}

.step-number {
  position: absolute;
  top: -0.75rem;
  left: -0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(201,164,75,0.3);
}

/* ── Social section ── */
.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  background: rgba(11,29,58,0.05);
  border: 1px solid rgba(11,29,58,0.1);
  transition: all 0.2s;
}

.social-link:hover {
  background: rgba(11,29,58,0.1);
  border-color: rgba(201,164,75,0.3);
  transform: scale(1.05);
}

.social-link svg { width: 1.25rem; height: 1.25rem; color: var(--color-gold); }

/* ── CTA section ── */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-blob {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50rem;
  height: 25rem;
  background: rgba(201,164,75,0.1);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

/* ── Document page ── */
.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s;
}

.doc-item:hover { background: rgba(255,255,255,0.07); }

/* ── Opportunities card ── */
.opp-card {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(172,172,189,0.3);
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
}

.opp-card:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.12); transform: translateY(-2px); }

/* ── Footer ── */
.site-footer {
  background: var(--color-navy);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-social-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}

.footer-social-btn:hover {
  background: var(--color-gold);
  color: var(--color-navy);
  transform: scale(1.1);
}

.footer-social-btn svg { width: 1.25rem; height: 1.25rem; }

/* ── Responsive grid helpers ── */
.grid-cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

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

/* ── Login page ── */
.login-page {
  min-height: 100vh;
  background: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-card {
  width: 100%;
  max-width: 22rem;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
  animation: fadeUpIn 0.5s ease both;
}

/* ── Password show/hide toggle ── */
.pw-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.4);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}

.pw-toggle:hover { color: rgba(255,255,255,0.7); }

/* ── Dev PIN modal ── */
.dev-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,29,58,0.85);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease both;
}

.dev-modal {
  width: 100%;
  max-width: 22rem;
  background: var(--color-navy);
  border: 1px solid rgba(201,164,75,0.3);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  animation: scaleIn 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}

.dev-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(201,164,75,0.15);
}

.pin-input {
  width: 2.75rem;
  height: 3.25rem;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 0.5rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.pin-input:focus { border-color: var(--color-gold); }
.pin-input.filled { border-color: var(--color-gold); }
.pin-input.error  { border-color: var(--color-red); }

.pin-inputs.shake { animation: shake 0.4s ease-in-out; }

/* ── Misc ── */
.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-block: 1.5rem;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.divider span { font-size: 0.75rem; color: rgba(255,255,255,0.3); }

.text-balance { text-wrap: balance; }

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Scrollbar hide */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ════════════════════════════════════════════════════════════
   Sidebar — user portal (dashboard, apply, documents, etc.)
   ════════════════════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 15rem; /* 240px = lg:ml-60 */
  background: #1a1a2e;
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  z-index: 40;
}

.sidebar-logo { margin-bottom: 2.5rem; padding-left: 1rem; }
.sidebar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}
.sidebar-brand span { color: #3b82f6; }

.sidebar .sidebar-nav { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }

.sidebar .sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
  position: relative;
}

.sidebar .sidebar-link:hover { background: rgba(255,255,255,0.05); color: #fff; }

.sidebar .sidebar-link.active {
  background: rgba(59,130,246,0.1);
  color: #fff;
}

.sidebar .sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 1.75rem;
  background: #3b82f6;
  border-radius: 0 2px 2px 0;
}

.sidebar .sidebar-link.logout-link { margin-top: 1rem; }
.sidebar .sidebar-link.logout-link:hover {
  background: rgba(239,68,68,0.1);
  color: #f87171;
}

.sidebar-active-bar { display: none; } /* handled with ::before */

/* Sidebar Mobile/Tablet Drawer */
.sidebar-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  padding: 0.5rem;
  margin-right: 0.75rem;
  border-radius: 0.5rem;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999;
  backdrop-filter: blur(2px);
}
@media (max-width: 1024px) {
  .sidebar-toggle-btn { display: inline-flex; }
  .topbar-brand { display: inline-flex; }
  .portal-sidebar {
    position: fixed; left: -15rem; top: 0; bottom: 0; z-index: 1000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  .portal-sidebar.is-open { left: 0; }
  .sidebar-overlay.is-open { display: block; }
  .portal-main { margin-left: 0 !important; width: 100%; }
  .portal-topbar { padding-inline: 1rem; }
}
/* Mobile Tab Bar */
.mobile-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background: rgba(26,26,46,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 1rem;
}

.mobile-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

.mobile-tab-item.active { color: var(--color-gold); }

.mobile-tab-icon {
  padding: 0.5rem;
  border-radius: 9999px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.mobile-tab-icon.active {
  background: rgba(201,164,75,0.15);
  color: var(--color-gold);
}

/* ════════════════════════════════════════════════════════════
   User Portal Layout — pages with sidebar
   ════════════════════════════════════════════════════════════ */
.portal-wrap {
  min-height: 100vh;
  background: var(--color-navy);
}

.portal-main {
  min-height: 100vh;
}

@media (min-width: 1024px) {
  .portal-main { margin-left: 15rem; }
}

.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11,29,58,0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-topbar h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

/* Topbar brand logo — hidden on desktop (sidebar shows it), visible on mobile */
.topbar-brand {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  margin-right: 1rem;
  flex-shrink: 0;
}
.topbar-brand span { color: #3b82f6; }

.portal-topbar p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.125rem;
}

.portal-topbar-actions { display: flex; align-items: center; gap: 1rem; }

.portal-content {
  padding: 1.5rem;
  max-width: 64rem;
  margin-inline: auto;
}

@media (min-width: 768px) { .portal-content { padding: 2rem; } }

/* ── Dashboard ── */
.dash-welcome {
  padding: 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(201,164,75,0.2) 0%, rgba(11,29,58,0.8) 100%);
  border: 1px solid rgba(201,164,75,0.2);
  margin-bottom: 2rem;
}

.dash-welcome h2 { font-size: 1.5rem; color: #fff; margin-bottom: 0.5rem; }
.dash-welcome p  { font-size: 0.875rem; color: rgba(255,255,255,0.7); max-width: 36rem; }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) { .dash-stats { grid-template-columns: repeat(3, 1fr); } }

.dash-stat-card {
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.dash-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.dash-stat-num { font-size: 1.5rem; font-weight: 700; color: #fff; }
.dash-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 0.25rem; }

.dash-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.dash-actions {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) { .dash-actions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dash-actions { grid-template-columns: repeat(3, 1fr); } }

.dash-action-card {
  display: block;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: border-color 0.2s, background 0.2s;
}

.dash-action-card:hover {
  border-color: rgba(201,164,75,0.3);
  background: rgba(255,255,255,0.1);
}

.dash-action-card .icon { margin-bottom: 0.75rem; }
.dash-action-card .title { font-size: 0.875rem; font-weight: 600; color: #fff; margin-bottom: 0.25rem; }
.dash-action-card .desc  { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

.dash-account {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.dash-account-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) { .dash-account-grid { grid-template-columns: repeat(2, 1fr); } }

.dash-account-field-label {
  font-size: 0.625rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.dash-account-field-value { font-size: 0.9375rem; font-weight: 500; color: #fff; }

.dash-activity {
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-activity .app-title { font-size: 0.9375rem; font-weight: 600; color: #fff; }
.dash-activity .app-date  { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 0.25rem; }

.dash-empty {
  text-align: center;
  padding: 2rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.dash-empty svg { color: rgba(255,255,255,0.2); margin: 0 auto 0.75rem; }
.dash-empty p   { color: rgba(255,255,255,0.4); font-size: 0.875rem; }
.dash-empty small { color: rgba(255,255,255,0.2); font-size: 0.75rem; margin-top: 0.25rem; display: block; }

/* ── Documents page ── */
.docs-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s;
}

.docs-list-item:hover { background: rgba(255,255,255,0.07); }

.docs-list-item .doc-icon {
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: rgba(59,130,246,0.1);
  color: #60a5fa;
  flex-shrink: 0;
}

.docs-list-item .doc-name  { font-size: 0.875rem; font-weight: 500; color: #fff; }
.docs-list-item .doc-meta  { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.25rem; }
.docs-list-item .doc-size  { font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.docs-list-item .doc-date  { font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.docs-list-item .doc-badge { font-size: 0.625rem; color: #4ade80; font-weight: 500; }

.delete-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: rgba(255,255,255,0.3);
  transition: background 0.2s, color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}

.delete-btn:hover { background: rgba(239,68,68,0.1); color: #f87171; }

/* ── Opportunities page ── */
.opportunities-header {
  padding: 3rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.opportunities-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-on-surface);
  margin-bottom: 2rem;
}

.opportunities-header h2 span { color: var(--color-primary); }

.opp-search-bar {
  background: var(--color-surface-container-low);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .opp-search-bar { flex-direction: row; align-items: center; }
}

.opp-search-input-wrap {
  flex: 1;
  position: relative;
}

.opp-search-input-wrap svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-outline-variant);
}

.opp-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border-radius: 0.75rem;
  background: #fff;
  border: none;
  outline: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-on-surface);
}

.opp-filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.opp-filter-tab {
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.opp-filter-tab.active {
  background: var(--color-primary);
  color: #fff;
}

.opp-filter-tab:not(.active) {
  background: #fff;
  color: var(--color-on-surface);
}

.opp-filter-tab:not(.active):hover {
  background: var(--color-surface-container);
}

.opp-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px)  { .opp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .opp-grid { grid-template-columns: repeat(3, 1fr); } }

.opp-card {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.opp-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.opp-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }

.opp-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--color-surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.opp-card-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }

.opp-card h5 { font-size: 1.125rem; font-weight: 700; color: var(--color-on-surface); margin-bottom: 0.25rem; }
.opp-card .employer { font-size: 0.875rem; font-weight: 600; color: var(--color-primary); margin-bottom: 1rem; }

.opp-card-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }

.opp-tag {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--color-surface-container);
  color: var(--color-on-surface-variant);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: capitalize;
}

.opp-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.opp-salary-label { font-size: 0.625rem; font-weight: 700; color: var(--color-outline-variant); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.125rem; }
.opp-salary-value { font-weight: 700; color: var(--color-on-surface); }

.opp-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: rgba(35,73,225,0.05);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.opp-apply-btn:hover { background: var(--color-primary); color: #fff; }

/* ── Apply Wizard ── */
.apply-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
  padding: 0 0.5rem;
}

.apply-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: rgba(255,255,255,0.1);
  transform: translateY(-50%);
  z-index: 0;
}

.apply-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.apply-step-dot {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.apply-step-dot.inactive {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.1);
}

.apply-step-dot.active {
  background: var(--color-gold);
  color: var(--color-navy);
  box-shadow: 0 4px 12px rgba(201,164,75,0.3);
}

.apply-step-label {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: none;
}

@media (min-width: 640px) { .apply-step-label { display: block; } }

.apply-step-label.active   { color: var(--color-gold); }
.apply-step-label.inactive { color: rgba(255,255,255,0.3); }

.apply-panel {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  min-height: 25rem;
}

@media (min-width: 768px) { .apply-panel { padding: 2rem; } }

.apply-panel-title { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; font-family: var(--font-heading); }
.apply-panel-subtitle { font-size: 0.875rem; color: rgba(255,255,255,0.5); margin-bottom: 1.5rem; }

.type-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) { .type-grid { grid-template-columns: repeat(2, 1fr); } }

.type-btn {
  padding: 1.25rem;
  text-align: left;
  border-radius: 0.75rem;
  border: 2px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.type-btn:hover { border-color: rgba(255,255,255,0.3); }

.type-btn.selected { border-color: var(--color-gold); background: rgba(201,164,75,0.1); }

.type-btn .type-icon { margin-bottom: 0.75rem; }
.type-btn .type-icon.selected { color: var(--color-gold); }
.type-btn .type-icon.unselected { color: rgba(255,255,255,0.5); }

.type-btn .type-label { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.25rem; }
.type-btn .type-label.selected { color: var(--color-gold); }
.type-btn .type-label.unselected { color: #fff; }

.type-btn .type-desc { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

.apply-nav {
  display: flex;
  gap: 1rem;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.apply-back-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.apply-back-btn:hover { background: rgba(255,255,255,0.05); }

.apply-next-btn {
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  background: var(--color-gold);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(201,164,75,0.25);
  transition: background 0.2s, opacity 0.2s;
}

.apply-next-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.apply-next-btn:not(:disabled):hover { background: #b8933c; }

.apply-spacer { flex: 1; }

.doc-item {
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.doc-item.core { border-color: rgba(201,164,75,0.2); background: rgba(201,164,75,0.05); }

.doc-req-badge {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.doc-req-badge.required { background: rgba(239,68,68,0.1); color: #f87171; }
.doc-req-badge.optional { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.3); }

.upload-drop-zone {
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 0.75rem;
}

.upload-drop-zone:hover { border-color: var(--color-gold); background: rgba(201,164,75,0.03); }
.upload-drop-zone.uploading { border-color: var(--color-gold); background: rgba(201,164,75,0.05); }
.upload-drop-zone.done { border-color: #4ade80; background: rgba(74,222,128,0.05); }
.upload-drop-zone.error { border-color: #f87171; background: rgba(248,113,113,0.05); }

.upload-progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.upload-progress-bar-fill {
  height: 100%;
  background: var(--color-gold);
  border-radius: 9999px;
  animation: progressIndeterminate 1.2s ease infinite;
}

@keyframes progressIndeterminate {
  0%   { transform: translateX(-100%) scaleX(0.4); }
  50%  { transform: translateX(100%) scaleX(0.8); }
  100% { transform: translateX(300%) scaleX(0.4); }
}

.apply-success {
  text-align: center;
  padding: 3rem;
  max-width: 32rem;
  margin: 0 auto;
}

.apply-success .success-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(34,197,94,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #22c55e;
}

.review-section {
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1rem;
}

.review-section-label {
  font-size: 0.625rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.consent-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
}

.consent-box input[type="checkbox"] { margin-top: 0.2rem; accent-color: var(--color-gold); }
.consent-box .consent-title { font-size: 0.875rem; font-weight: 500; color: #fff; }
.consent-box .consent-sub   { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 0.25rem; }

/* interview step */
.interview-question { margin-bottom: 1.5rem; }
.interview-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.5rem;
}

/* Portal notification bell */
.bell-btn {
  position: relative;
  padding: 0.5rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.05);
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.2s;
}

.bell-btn:hover { background: rgba(255,255,255,0.1); }

.bell-dot {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-gold);
  border-radius: 50%;
  display: none; /* shown by JS only when unread exist */
}

/* Notification badge for sidebar + tab bar */
.notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.3125rem;
  border-radius: 9999px;
  background: var(--color-gold);
  color: var(--color-navy);
  font-size: 0.625rem;
  font-weight: 800;
  line-height: 1;
  margin-left: auto;
  flex-shrink: 0;
}
.tab-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.375rem;
  min-width: 1rem;
  height: 1rem;
  font-size: 0.5625rem;
  padding: 0 0.25rem;
  margin-left: 0;
}

.logout-topbar-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

@media (min-width: 640px) { .logout-topbar-btn { display: flex; } }
.logout-topbar-btn:hover { background: rgba(239,68,68,0.1); color: #f87171; }



/* ── Dashboard Grids ── */
.dash-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 480px) {
  .dash-stats { grid-template-columns: repeat(3, 1fr); }
}

.dash-account-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 576px) {
  .dash-account-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Login PIN Inputs ── */
.pin-input {
  width: calc((min(22rem, 85vw) - 5 * 0.5rem) / 6);
  min-width: 2rem;
  height: 2.75rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 0.5rem;
  border: 1px solid rgba(201,164,75,0.3);
  background: rgba(255,255,255,0.05);
  color: #fff;
  caret-color: var(--color-gold);
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.pin-input:focus {
  border-color: var(--color-gold);
  outline: none;
  background: rgba(255,255,255,0.1);
}
.pin-input.filled {
  border-color: rgba(201,164,75,0.6);
  background: rgba(201,164,75,0.1);
}
.pin-input.error {
  border-color: #ef4444;
}

/* -- Mobile Sidebar & Drawer (User Pages) -- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 50;
  padding: 0.5rem;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  color: #334155;
  border: none;
  cursor: pointer;
}
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 40;
}
.mobile-menu-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 15rem;
  z-index: 50;
  background: var(--color-navy);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.mobile-menu-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}
.mobile-menu-close {
  padding: 0.25rem;
  border-radius: 9999px;
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: none;
  cursor: pointer;
}
.mobile-menu-close:hover {
  background: rgba(255,255,255,0.1);
}
.mobile-tab-bar {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-menu-toggle { display: block; }
  .mobile-menu-overlay:not(.hidden) { display: block; }
  .mobile-menu-drawer { display: block; }
  .mobile-tab-bar { display: flex; }
}
