/* ===================================================
   CounselIt Portal – Main Stylesheet (v2 — light theme + dark green)
   Light page surface, dark green sidebar & hero, mint accent.
   Every class name from v1 is preserved so PHP markup keeps working.
   Font: Plus Jakarta Sans
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ── Design Tokens ── */
:root {
  /* Single green accent — used for ALL green (text, icons, badges, hovers, focus rings) */
  --green:        #1dbf73;
  --green-dark:   #159a5b;
  --green-light:  #d4f7e7;
  --green-accent: #1dbf73;
  --green-pill-bg: #eaf8f2;
  --green-pill-tx: #0e7d4a;

  --navy:         #23314D;
  --navy-light:   #3a4d72;
  --bg:           #F3FCF8;
  --bg2:          #eaf8f2;
  --white:        #FFFFFF;
  --gray:         #6b7280;
  --gray-light:   #f1f5f9;
  --gray-mute:    #94a3b8;
  --border:       #e2e8f0;

  /* Greenish-black surface — pure cool, no warm undertone */
  --dark-green:   #0c1410;
  --dark-green-2: #08100b;

  --danger:       #ef4444;
  --warning:      #f59e0b;
  --info:         #3b82f6;
  --success:      #1dbf73;

  --sidebar-w:    260px;
  --topbar-h:     68px;
  --radius:       14px;
  --radius-sm:    8px;
  --radius-lg:    18px;
  --shadow:       0 4px 24px rgba(12,20,16,.06);
  --shadow-md:    0 10px 36px rgba(12,20,16,.10);
  --shadow-lg:    0 24px 60px rgba(12,20,16,.16);
  --transition:   all .22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--navy);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ============================================
   AUTH PAGES (login / signup / forgot / verify)
   ============================================ */
.auth-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(900px circle at 18% 22%, rgba(29,191,115,.18), transparent 55%),
    radial-gradient(800px circle at 88% 78%, rgba(29,191,115,.10), transparent 60%),
    linear-gradient(135deg, #0e5238 0%, #0c4a30 55%, #093824 100%);
}
/* v2 = Mockup 2 layout: form left (1fr), brand right (1.05fr) */
.auth-wrapper.auth-v2 {
  grid-template-columns: 1fr 1.05fr;
}
.auth-wrapper::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 30% 40%, black 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, black 25%, transparent 80%);
  z-index: 0;
}

/* Left brand panel — Option D: content pulled toward the seam */
.auth-brand-panel {
  position: relative; z-index: 1;
  padding: 0 32px 0 72px;
  display: flex; flex-direction: column; justify-content: center;
  align-items: flex-end;
  color: #ffffff;
  background: transparent;
  overflow: hidden;
  min-height: 100vh;
}
.auth-brand-panel > * {
  width: 100%;
  max-width: 480px;
}
.auth-brand-logo {
  margin-bottom: 40px;
}
.auth-brand-logo img {
  height: 72px; width: auto;
  filter: drop-shadow(0 6px 24px rgba(29,191,115,.35));
}
.auth-brand-center {
  position: relative; z-index: 2;
}
.auth-brand-eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #1dbf73;
  margin-bottom: 16px;
}
.auth-brand-tagline {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: #ffffff;
}
.auth-brand-subhead {
  margin: 26px 0 0 0;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  max-width: 460px;
}

/* Value props removed from this layout — legacy rules hidden harmlessly */
.auth-value-props { display: none; }
.auth-brand-bottom { display: none; }

/* Word rotator (typewriter) — used by dashboard hero and auth tagline */
.word-rotator {
  display: inline-flex;
  align-items: baseline;
  position: relative;
  white-space: nowrap;
}
.word-slot {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
  min-height: 1.1em;
}
.word-slot::before {
  content: "convenience.";
  visibility: hidden;
  display: inline-block;
  white-space: nowrap;
}
.dashboard-hero .word-slot::before {
  content: "";
  width: 0;
}
.dashboard-hero .rotating-word {
  max-width: none;
  overflow: visible;
}
.rotating-word {
  display: inline-block;
  position: absolute;
  top: 0; left: 0;
  white-space: nowrap;
  overflow: hidden;
  width: auto;
  max-width: 100%;
  color: #1dbf73;
}
.word-caret {
  display: inline-block;
  color: #1dbf73;
  font-weight: 400;
  animation: caretFlash 1.05s steps(2) infinite;
  position: absolute;
  /* JS sets left via --caret-left so it hugs the visible word edge */
  left: var(--caret-left, 0);
  transition: left .05s linear;
}
@keyframes caretFlash { 50% { opacity: 0; } }

/* Auth tagline: force rotating word + caret to the brand green (no white override) */
.auth-brand-panel .rotating-word,
.auth-brand-panel .word-caret {
  color: #1dbf73;
}

/* Right form panel */
.auth-form-panel {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: flex-start;
  padding: 48px 72px 48px 32px;
  background: transparent;
}

/* Auth card */
.auth-card-modern,
.auth-box {
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 40px 40px 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.18), 0 0 0 1px rgba(29,191,115,.06);
}

/* Centered (non-split) auth wrapper for forgot/verify pages */
.auth-wrapper.is-centered {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px 64px;
  min-height: 100vh;
}
.auth-wrapper.is-centered .auth-box {
  max-width: 440px;
  padding: 44px 40px 34px;
  margin: auto;
}
.auth-logo { text-align: center; margin-bottom: 26px; }
.auth-logo img { height: 44px; }
.auth-logo p { color: var(--gray); font-size: .82rem; margin-top: 10px; }

/* Tabs */
.auth-tabs {
  display: flex; gap: 4px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 26px;
}
.auth-tab {
  flex: 1; text-align: center;
  padding: 11px 12px;
  border-radius: 9px;
  font-weight: 600; font-size: .85rem;
  color: var(--gray);
  transition: var(--transition);
  cursor: pointer;
  background: transparent; border: none;
}
.auth-tab.active {
  background: var(--dark-green);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13,24,18,.18);
}
.auth-tab:hover:not(.active) { color: var(--navy); }

/* Social login */
.auth-social { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 18px 0; }
.auth-social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 11px;
  font-size: .9rem; font-weight: 600; color: var(--navy);
  cursor: pointer; transition: var(--transition);
}
.auth-social-btn:hover { background: var(--bg2); border-color: #cfe0d4; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(13,24,18,.08); }
.auth-social-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.auth-social-btn.is-apple svg { fill: #000; }
.auth-divider-or {
  display: flex; align-items: center; gap: 14px;
  margin: 14px 0 18px 0;
  color: var(--gray-mute);
  font-size: .78rem; font-weight: 500;
  text-transform: lowercase; letter-spacing: .04em;
}
.auth-divider-or::before, .auth-divider-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.auth-forgot { display: inline-block; font-size: .85rem; color: var(--green-pill-tx); font-weight: 600; margin: -4px 0 16px 0; }
.auth-forgot:hover { text-decoration: underline; }
.auth-can-help { margin-top: 14px; text-align: center; }
.auth-can-help a { font-size: .85rem; font-weight: 600; color: var(--gray); }
.auth-can-help a:hover { color: var(--navy); text-decoration: underline; }
.auth-footnote { margin-top: 22px; text-align: center; font-size: .87rem; color: var(--gray); }
.auth-footnote a { color: var(--green-pill-tx); font-weight: 700; }
.auth-footnote a:hover { text-decoration: underline; }
.auth-terms { margin-top: 18px; font-size: .8rem; color: var(--gray); line-height: 1.6; text-align: left; }
.auth-terms a { color: var(--navy); text-decoration: underline; font-weight: 600; }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: .8rem; color: var(--navy); margin-bottom: 7px; }
.form-control {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: .92rem; color: var(--navy);
  transition: var(--transition);
}
.form-control::placeholder { color: var(--gray-mute); }
.form-control:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(29,191,115,.14); }
.form-control.error { border-color: var(--danger); }
textarea.form-control { resize: vertical; min-height: 88px; }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='%236b7280'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 36px; -webkit-appearance: none; appearance: none; }
.form-hint { font-size: .78rem; color: var(--gray); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px;
  border-radius: 11px;
  font-weight: 600;
  font-size: .9rem;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--dark-green); color: #ffffff; box-shadow: 0 6px 18px rgba(13,24,18,.22); }
.btn-primary:hover { background: #15281d; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(13,24,18,.3); }
.btn-outline { background: transparent; border: 1.5px solid var(--dark-green); color: var(--dark-green); }
.btn-outline:hover { background: var(--dark-green); color: #ffffff; }
.btn-navy { background: var(--dark-green); color: #ffffff; }
.btn-danger { background: var(--danger); color: #ffffff; }
.btn-danger:hover { background: #dc2626; }
.btn-ghost { background: transparent; color: var(--gray); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--bg2); color: var(--navy); border-color: var(--green); }
.btn-sm { padding: 7px 16px; font-size: .8rem; border-radius: 9px; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 10px; }
/* ============================================
   PORTAL LAYOUT
   ============================================ */
.portal-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--dark-green);
  min-height: 100vh;
  position: fixed; top: 0; left: 0;
  display: flex; flex-direction: column;
  z-index: 100;
  transition: transform .3s ease;
  border-right: 1px solid rgba(255,255,255,.04);
}
.sidebar-logo {
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center;
}
.sidebar-logo img { height: 36px; width: auto; max-width: 100%; }
.sidebar-nav { flex: 1; padding: 20px 0; overflow-y: auto; }
.nav-section { margin-bottom: 6px; }
.nav-section-title { font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: 1.2px; padding: 10px 24px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 24px;
  color: rgba(255,255,255,.65);
  font-weight: 500; font-size: .875rem;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}
.nav-item:hover { color: #ffffff; background: rgba(255,255,255,.06); }
.nav-item.active { color: var(--green-accent); background: rgba(29,191,115,.10); }
.nav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; border-radius: 0 4px 4px 0;
  background: var(--green-accent);
}
.nav-item svg, .nav-item .nav-icon { width: 18px; height: 18px; flex-shrink: 0; }
.nav-badge { margin-left: auto; background: var(--green-accent); color: var(--dark-green); border-radius: 50px; padding: 2px 8px; font-size: .7rem; font-weight: 700; }
.sidebar-footer { padding: 18px 24px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user { display: flex; align-items: center; gap: 11px; }
.sidebar-user .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--green-accent); color: var(--dark-green); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; flex-shrink: 0; overflow: hidden; }
.sidebar-user .avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 120px; height: 120px; min-width: 120px; min-height: 120px; max-width: 120px; max-height: 120px; border-radius: 50%; background: var(--green-pill-bg); color: var(--green-pill-tx); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 2.4rem; flex-shrink: 0; overflow: hidden; border: 3px solid var(--white); box-shadow: 0 4px 12px rgba(13,24,18,.08); }
.avatar-lg img { width: 120px !important; height: 120px !important; object-fit: cover; display: block; border-radius: 50%; }

/* Circular crop preview (used by Cropper.js preview option) */
.avatar-crop-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg2);
  border: 3px solid var(--white);
  box-shadow: 0 4px 12px rgba(13,24,18,.10);
}
.avatar-crop-preview img {
  display: block;
  max-width: 100% !important;
  max-height: 100% !important;
}

/* Cropper.js canvas height inside the modal */
#crop-source { max-height: 420px; }
.cropper-container { max-height: 420px; }
.sidebar-user .user-info { flex: 1; min-width: 0; }
.sidebar-user .user-name { font-weight: 600; color: #ffffff; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .user-role { font-size: .75rem; color: rgba(255,255,255,.45); }

.main-content { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; background: var(--bg); }

.topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 28px;
  position: sticky; top: 0; z-index: 50;
  gap: 14px;
}
.topbar-title { font-size: 1.1rem; font-weight: 700; color: var(--navy); flex: 1; }
.topbar-search { position: relative; flex: 1; max-width: 320px; }
.topbar-search input { width: 100%; padding: 9px 16px 9px 40px; border: 1.5px solid var(--border); border-radius: 50px; font-size: .875rem; outline: none; background: var(--bg); transition: var(--transition); }
.topbar-search input:focus { border-color: var(--green); }
.topbar-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray); width: 16px; height: 16px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-btn {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--bg); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray); transition: var(--transition); position: relative;
}
.topbar-btn:hover { border-color: var(--green); color: var(--dark-green); }
.topbar-btn .badge { position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--danger); color: #ffffff; font-size: .65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--white); }
.menu-toggle { display: none; }

.page-content { padding: 28px; flex: 1; }
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 1.6rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.page-header p { color: var(--gray); font-size: .9rem; margin-top: 4px; }
.page-header .header-actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; }

/* ============================================
   DASHBOARD HERO
   ============================================ */
.dashboard-hero {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 48px 44px 52px;
  margin-bottom: 28px;
  color: #ffffff;
  background:
    radial-gradient(800px circle at 100% 0%, rgba(29,191,115,.20), transparent 55%),
    radial-gradient(600px circle at 0% 100%, rgba(29,191,115,.12), transparent 60%),
    linear-gradient(135deg, var(--dark-green) 0%, var(--dark-green-2) 100%);
  border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.dashboard-hero .hero-eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-accent);
  margin-bottom: 14px;
}
.dashboard-hero .hero-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 18px 0;
}
.dashboard-hero .hero-lead {
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  max-width: 540px;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   CARDS
   ============================================ */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: var(--transition); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.card-title { font-size: 1rem; font-weight: 700; color: var(--navy); }
.card-subtitle { font-size: .8rem; color: var(--gray); margin-top: 2px; }

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow); transition: var(--transition); }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(29,191,115,.3); }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.stat-icon.green { background: rgba(29,191,115,.12); color: var(--green-pill-tx); }
.stat-icon.navy { background: rgba(13,24,18,.08); color: var(--dark-green); }
.stat-icon.warning { background: rgba(245,158,11,.12); color: #b45309; }
.stat-icon.info { background: rgba(59,130,246,.12); color: #1d4ed8; }
.stat-icon.danger { background: rgba(239,68,68,.10); color: #b91c1c; }
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--gray); margin-top: 4px; font-weight: 500; }
.stat-change { font-size: .75rem; margin-top: 6px; font-weight: 600; }
.stat-change.up { color: var(--green-pill-tx); }
.stat-change.down { color: var(--danger); }

/* ============================================
   TABLES
   ============================================ */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: .88rem; }
th { background: var(--bg2); font-weight: 700; color: var(--navy); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }

/* ============================================
   BADGES
   ============================================ */
.badge { display: inline-block; padding: 4px 10px; border-radius: 50px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.badge-success { background: rgba(29,191,115,.14); color: var(--green-pill-tx); }
.badge-warning { background: rgba(245,158,11,.14); color: #b45309; }
.badge-danger  { background: rgba(239,68,68,.10); color: #b91c1c; }
.badge-info    { background: rgba(59,130,246,.12); color: #1d4ed8; }
.badge-navy    { background: rgba(13,24,18,.08); color: var(--dark-green); }
.badge-gray    { background: var(--gray-light); color: var(--gray); }

/* ============================================
   PROGRESS / STEPS
   ============================================ */
.progress-wrap { margin: 6px 0; }
.progress-label { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 600; margin-bottom: 5px; color: var(--navy); }
.progress-bar { height: 8px; background: var(--gray-light); border-radius: 50px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--green-dark)); border-radius: 50px; transition: width .6s ease; }

.steps-track { display: flex; gap: 0; margin: 20px 0; }
.step-item { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.step-item::after { content: ''; position: absolute; top: 14px; left: 50%; right: -50%; height: 2px; background: var(--border); z-index: 0; }
.step-item:last-child::after { display: none; }
.step-item.done::after, .step-item.active::after { background: var(--green); }
.step-circle { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: var(--white); border: 2px solid var(--border); color: var(--gray); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.step-item.done .step-circle { background: var(--green); border-color: var(--green); color: #ffffff; }
.step-item.active .step-circle { border-color: var(--green); color: var(--green-pill-tx); }
.step-label { font-size: .72rem; font-weight: 600; color: var(--gray); margin-top: 8px; text-align: center; }
.step-item.done .step-label, .step-item.active .step-label { color: var(--navy); }

/* ============================================
   NOTIFICATIONS / MESSAGES
   ============================================ */
.notif-list { display: flex; flex-direction: column; gap: 2px; }
.notif-item { display: flex; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm); transition: var(--transition); cursor: pointer; }
.notif-item:hover { background: var(--bg2); }
.notif-item.unread { background: rgba(29,191,115,.06); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; margin-top: 7px; }
.notif-dot.read { background: var(--border); }
.notif-text { font-size: .9rem; color: var(--navy); line-height: 1.5; flex: 1; }
.notif-time { font-size: .72rem; color: var(--gray); margin-top: 4px; }

.chat-wrap { display: grid; grid-template-rows: 1fr auto; height: calc(100vh - var(--topbar-h) - 56px); background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.chat-messages { padding: 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { display: flex; gap: 10px; max-width: 70%; }
.chat-msg.me { margin-left: auto; flex-direction: row-reverse; }
.chat-bubble { padding: 11px 15px; border-radius: 14px; font-size: .92rem; line-height: 1.5; }
.chat-msg:not(.me) .chat-bubble { background: var(--bg2); color: var(--navy); border-bottom-left-radius: 4px; }
.chat-msg.me .chat-bubble { background: var(--dark-green); color: #ffffff; border-bottom-right-radius: 4px; }
.chat-time { font-size: .68rem; color: var(--gray); margin-top: 4px; }
.chat-input-row { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--border); background: var(--bg); }
.chat-input { flex: 1; }

/* ============================================
   SERVICES PAGE
   ============================================ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 26px; transition: var(--transition); cursor: pointer; position: relative; overflow: hidden; }
.service-card:hover { transform: translateY(-4px); border-color: rgba(29,191,115,.4); box-shadow: 0 18px 44px rgba(13,24,18,.10), 0 0 0 1px rgba(29,191,115,.2); }
.service-card::before { content: ''; position: absolute; top: 0; right: 0; width: 120px; height: 120px; background: radial-gradient(circle at top right, rgba(29,191,115,.08), transparent 70%); pointer-events: none; }
.service-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--bg2); color: var(--green-pill-tx); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 18px; position: relative; }
.service-icon svg { width: 28px; height: 28px; display: block; }
.service-name { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; letter-spacing: -.01em; }
.service-desc { font-size: .85rem; color: var(--gray); line-height: 1.55; margin-bottom: 16px; }

.pricing-grid-portal { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 14px 0; }
.pricing-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 24px; transition: var(--transition); position: relative; }
.pricing-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); }
.plan-for-badge { display: inline-block; font-size: .68rem; font-weight: 700; color: var(--green-pill-tx); background: var(--green-pill-bg); padding: 3px 10px; border-radius: 50px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .06em; }
.plan-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.plan-price { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.plan-price small { font-size: .82rem; color: var(--gray); font-weight: 500; }
.plan-features { list-style: none; padding: 0; margin: 0 0 16px 0; }
.plan-features li { padding: 6px 0; font-size: .85rem; color: var(--navy); display: flex; gap: 8px; align-items: flex-start; }
.plan-features li::before { content: '\2713'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ============================================
   REQUESTS
   ============================================ */
.request-row { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; transition: var(--transition); }
.request-row:hover { border-color: var(--green); transform: translateX(4px); box-shadow: var(--shadow); }

/* ============================================
   CONSULTATIONS
   ============================================ */
.consult-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.consult-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; transition: var(--transition); }
.consult-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(29,191,115,.3); }
.consult-type { display: inline-block; font-size: .7rem; font-weight: 700; color: var(--green-pill-tx); background: var(--green-pill-bg); padding: 3px 10px; border-radius: 50px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .06em; }
.consult-name { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.consult-detail { font-size: .82rem; color: var(--gray); margin-bottom: 12px; }
.consult-price { font-size: 1.2rem; font-weight: 800; color: var(--navy); }

.timeslot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.timeslot { text-align: center; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px; font-size: .85rem; font-weight: 600; background: var(--white); cursor: pointer; transition: var(--transition); }
.timeslot:hover { border-color: var(--green); color: var(--green-pill-tx); }
.timeslot.selected { background: var(--dark-green); border-color: var(--dark-green); color: #ffffff; }
.timeslot.disabled { background: var(--gray-light); color: var(--gray-mute); cursor: not-allowed; }

/* ============================================
   PAYMENTS
   ============================================ */
.payment-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.payment-row:last-child { border-bottom: none; }
.payment-summary { background: var(--bg2); border-radius: var(--radius); padding: 18px; }
.payment-total { font-size: 1.5rem; font-weight: 800; color: var(--navy); }

/* ============================================
   FILES / DOCS
   ============================================ */
.upload-zone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 36px 20px; text-align: center; background: var(--bg); transition: var(--transition); cursor: pointer; }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--green); background: rgba(29,191,115,.06); }
.file-list { display: flex; flex-direction: column; gap: 8px; }
.file-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.file-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--bg2); display: flex; align-items: center; justify-content: center; color: var(--dark-green); flex-shrink: 0; }
.file-name { font-size: .88rem; font-weight: 600; color: var(--navy); flex: 1; }
.file-size { font-size: .75rem; color: var(--gray); }
.file-status { font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 50px; }
.doc-review-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; }
.doc-actions { display: flex; gap: 8px; margin-top: 10px; }
.client-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg2); color: var(--dark-green); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }

/* ============================================
   ALERTS
   ============================================ */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .88rem; font-weight: 500; border: 1px solid transparent; }
.alert-success { background: rgba(29,191,115,.10); color: var(--green-pill-tx); border-color: rgba(29,191,115,.25); }
.alert-warning { background: rgba(245,158,11,.10); color: #b45309; border-color: rgba(245,158,11,.25); }
.alert-danger  { background: rgba(239,68,68,.08); color: #b91c1c; border-color: rgba(239,68,68,.20); }
.alert-info    { background: rgba(59,130,246,.08); color: #1d4ed8; border-color: rgba(59,130,246,.20); }

/* ============================================
   MODALS / DROPDOWNS / TABS
   ============================================ */
.modal-overlay { position: fixed; inset: 0; background: rgba(13,24,18,.55); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: var(--radius-lg); max-width: 540px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 28px; box-shadow: var(--shadow-lg); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-title { font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.modal-close { width: 32px; height: 32px; border-radius: 8px; background: var(--bg2); border: none; color: var(--gray); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--border); color: var(--navy); }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }

.dropdown { position: relative; display: inline-block; }
.dropdown-menu { position: absolute; top: 100%; right: 0; margin-top: 6px; min-width: 200px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: var(--transition); z-index: 100; }
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: .85rem; color: var(--navy); cursor: pointer; transition: var(--transition); }
.dropdown-item:hover { background: var(--bg2); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.tab-btn { padding: 10px 16px; font-weight: 600; font-size: .88rem; color: var(--gray); border: none; background: transparent; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: var(--transition); }
.tab-btn:hover { color: var(--navy); }
.tab-btn.active { color: var(--green-pill-tx); border-bottom-color: var(--green); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================
   UTILITIES
   ============================================ */
.hidden { display: none !important; }
.text-center { text-align: center; }
.align-center { display: flex; align-items: center; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-10 { gap: 10px; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.text-gray { color: var(--gray); }
.text-navy { color: var(--navy); }
.text-green { color: var(--green-pill-tx); }
.text-danger { color: var(--danger); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mb-0  { margin-bottom: 0 !important; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }

.spinner { width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,.3); border-top-color: #ffffff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
.spinner.dark { border-color: rgba(13,24,18,.15); border-top-color: var(--dark-green); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .menu-toggle { display: flex; }
  .sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99; display: none; }
  .sidebar-overlay.show { display: block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .dashboard-hero { padding: 36px 28px 40px; }
}
/* ============================================
   AUTH V2 — Mockup 2 (form left, brand right)
   New layout for index.php. Other auth pages use the original layout.
   ============================================ */

/* --- Form panel on the LEFT (white background) --- */
.auth-v2 .auth-form-panel {
  background: transparent;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  padding: 40px 32px 40px 12.5vw;
  position: relative; z-index: 1;
}
.auth-v2 .auth-form-panel .auth-card-modern {
  background: #f6f5fa;
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  border-radius: 14px;
  padding: 56px 44px 40px;
  max-width: 380px;
  width: 100%;
  margin: 0;
}

/* Logo on top of the login/signup card */
.auth-card-logo {
  text-align: center;
  margin-bottom: 24px;
}
.auth-card-logo img {
  height: 38px;
  width: auto;
}

/* --- Brand panel on the RIGHT (dark) — centered, MyCase-style --- */
.auth-v2 .auth-brand-panel {
  align-items: center;
  text-align: center;
  padding: 40px 32px;
  justify-content: center;
  background: transparent;
  gap: 16px;
}
.auth-v2 .auth-brand-panel > * {
  max-width: 100%;
  width: 100%;
}
.auth-v2 .auth-brand-center {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}
.auth-v2 .auth-brand-tagline {
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  margin: 0 0 24px 0;
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
}

/* --- Composite mockup (MyCase-style 3-tile + pill badges + dashed arrows) --- */
/* --- Composite mockup (MyCase-style 3-tile arrangement) --- */
.auth-mockup-composite {
  position: relative;
  width: 100%;
  max-width: 920px;
  height: 495px;
  margin: 0 auto;
}

/* Tile defaults */
.auth-mockup-tile {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0,0,0,.55),
    0 6px 20px rgba(0,0,0,.28),
    0 0 0 1px rgba(255,255,255,.08);
}

/* Tile 1 — Dashboard: back, top-left, larger */
.auth-mockup-tile--dash {
  width: 58%;
  min-height: 355px;
  top: 15px; left: 0;
  z-index: 1;
  transform: none;
}
.auth-mockup-tile--dash img {
  min-height: calc(355px - 26px);
  object-fit: cover;
  object-position: top left;
}
/* Tile 2 — Services: middle z, pulled in from right edge, lowered to overlap dashboard center-right */
.auth-mockup-tile--serv {
  width: 46%;
  min-height: 280px;
  top: 155px; right: 14%;
  z-index: 2;
  transform: none;
}
.auth-mockup-tile--serv img {
  min-height: calc(280px - 26px);
  object-fit: cover;
  object-position: top left;
}
/* Tile 3 — PayHere: front, hangs LEFT-of-center, drops lower below baseline */
.auth-mockup-tile--pay {
  width: 19%;
  max-height: 260px;
  bottom: -10px; left: 49%;
  z-index: 3;
  transform: none;
}
.auth-mockup-tile--pay img {
  max-height: calc(260px - 26px);
  object-fit: cover;
  object-position: top center;
}
/* If only one tile renders, center it */
.auth-mockup-composite .auth-mockup-tile:only-child {
  width: 92%;
  top: 50%; left: 50%;
  right: auto; bottom: auto;
  transform: translate(-50%, -50%) rotate(0);
}

.auth-mockup-chrome {
  background: #f1f5f9;
  padding: 8px 11px;
  display: flex; align-items: center; gap: 5px;
  border-bottom: 1px solid #e2e8f0;
}
.auth-mockup-chrome span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}
.auth-mockup-chrome span:nth-child(1) { background: #ef4444; }
.auth-mockup-chrome span:nth-child(2) { background: #f59e0b; }
.auth-mockup-chrome span:nth-child(3) { background: #10b981; }
.auth-mockup-tile img {
  display: block;
  width: 100%; height: auto;
}

/* --- Dashed connector arrows (decorative, between tiles) --- */
.auth-mockup-arrow {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  opacity: .55;
}
.auth-mockup-arrow--top {
  top: -8px;
  right: 14%;
  width: 32%;
  height: 110px;
}
.auth-mockup-arrow--bottom {
  bottom: 30px;
  left: 14%;
  width: 30%;
  height: 100px;
}

/* --- Value chips (frameless, with topical icons) --- */
.auth-value-chips {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 12px 48px;
  max-width: 660px;
  margin: 0 auto;
}
/* 2x2 grid variant: 4 chips in two columns, two rows */
.auth-value-chips--grid {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: 18px 44px;
  max-width: 560px;
}
.auth-chip {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  font-weight: 500;
  color: #ffffff;
  text-align: left;
  white-space: nowrap;
}
.auth-chip svg {
  width: 20px; height: 20px;
  color: var(--green);
  flex-shrink: 0;
}

/* --- Value props (black-chip + green icon, 2x2 grid) --- */
.auth-value-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 36px;
  max-width: 560px;
  margin: 0 auto;
}
.auth-vcard {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
}
.auth-vcard-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #0a1a12;
  border: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.auth-vcard-icon svg {
  width: 20px; height: 20px;
  color: var(--green);
}
.auth-vcard-text {
  min-width: 0;
}
.auth-vcard-title {
  color: rgba(255,255,255,.94);
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.3;
}

/* --- Trustpilot + testimonial (centered, no card background) --- */
.auth-trustpilot-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(29,191,115,.35);
  border-radius: 14px;
  padding: 18px 22px;
  text-align: center;
  margin: 8px auto 0;
  max-width: 460px;
}
.auth-trustpilot-header {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 12px;
}
.auth-stars {
  display: inline-flex; gap: 2px;
}
.auth-stars svg {
  width: 14px; height: 14px;
  fill: #00b67a;
  flex-shrink: 0;
}
.auth-trust-label {
  font-size: .76rem;
  font-weight: 600;
  color: rgba(255,255,255,.78);
}
.auth-testimonial {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

/* ---- Carousel ---- */
.auth-testimonial-carousel {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 18px;
}
.auth-testimonial-carousel .auth-testimonial-slide {
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
  background: #ffffff;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.08);
}
.auth-testimonial-carousel .auth-testimonial-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .45s ease, transform .45s ease, visibility 0s;
}
.auth-testimonial-dots {
  display: flex; justify-content: center; gap: 7px;
  margin-top: 10px;
}
.auth-testimonial-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .25s ease, width .25s ease;
}
.auth-testimonial-dot.is-active {
  background: var(--green);
  width: 18px;
  border-radius: 4px;
}
.auth-testimonial-dot:hover {
  background: rgba(255,255,255,.5);
}
.auth-testimonial-dot.is-active:hover {
  background: var(--green);
}
.auth-testimonial-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(29,191,115,.18);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
  overflow: hidden;
}
.auth-testimonial-avatar.has-img {
  background: #fff;
  border: 1.5px solid rgba(0,0,0,.06);
}
.auth-testimonial-avatar img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
}
.auth-testimonial-avatar.is-logo img {
  object-fit: contain;
  padding: 4px;
  box-sizing: border-box;
}
.auth-testimonial-body {
  flex: 1; min-width: 0;
  text-align: left;
}
.auth-testimonial-quote {
  font-size: .92rem;
  color: rgba(12,20,16,.85);
  line-height: 1.6;
  font-style: italic;
  letter-spacing: 0.015em;
}
.auth-testimonial-author {
  margin-top: 6px;
  font-size: .78rem;
  color: rgba(12,20,16,.55);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* --- Password show/hide toggle --- */
.auth-pwd-wrap {
  position: relative;
}
.auth-pwd-input {
  padding-right: 42px;
}
.auth-pwd-toggle {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 6px;
  border-radius: 6px;
  color: var(--gray);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.auth-pwd-toggle:hover {
  color: var(--navy);
  background: var(--bg2);
}

/* --- Mobile teaser & feature panel (hidden by default on desktop) --- */
.auth-mobile-teaser,
.auth-mobile-features {
  display: none;
}

/* --- Mobile (≤960px): stack vertically --- */
@media (max-width: 960px) {
  .auth-v2 {
    grid-template-columns: 1fr;
    background:
      radial-gradient(700px circle at 100% 0%, rgba(29,191,115,.18), transparent 55%),
      linear-gradient(180deg, var(--dark-green-2) 0%, var(--dark-green) 220px, var(--white) 220px);
  }
  /* Hide desktop right brand panel on mobile */
  .auth-v2 .auth-brand-panel { display: none; }
  /* Composite mockup is desktop-only */
  .auth-mockup-composite { display: none; }
  /* Order doesn't matter since only form panel shows */
  .auth-v2 .auth-form-panel {
    background: transparent;
    padding: 0;
  }
  .auth-v2 .auth-form-panel .auth-card-modern {
    background: var(--white);
    border-radius: 18px 18px 0 0;
    padding: 28px 22px 24px;
    max-width: 100%;
    margin: -8px 0 0 0;
    position: relative;
    box-shadow: 0 -4px 24px rgba(0,0,0,.06);
  }

  /* Mobile teaser at top */
  .auth-mobile-teaser {
    display: block;
    padding: 22px 22px 28px;
    color: #ffffff;
  }
  .auth-mobile-teaser-inner {
    max-width: 480px;
    margin: 0 auto;
  }
  .auth-mobile-teaser .auth-brand-mark img {
    height: 30px;
    filter: drop-shadow(0 4px 14px rgba(29,191,115,.3));
    margin-bottom: 14px;
  }
  .auth-mobile-headline {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
  }
  .auth-trust-mini {
    display: flex; align-items: center; gap: 8px;
  }
  .auth-trust-mini .auth-stars svg {
    width: 12px; height: 12px;
  }
  .auth-trust-mini .auth-trust-label {
    font-size: .72rem;
  }

  /* Mobile features block below the form */
  .auth-mobile-features {
    display: block;
    max-width: 100%;
    background: var(--bg2);
    border-radius: 14px;
    padding: 18px 16px;
    margin: 18px 0 0 0;
  }
  .auth-mobile-features-title {
    font-size: .72rem;
    font-weight: 700;
    color: var(--green-pill-tx);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .auth-value-chips--mobile .auth-chip {
    color: var(--navy);
    font-size: .82rem;
  }
  .auth-value-chips--mobile .auth-chip svg {
    width: 15px; height: 15px;
  }
  .auth-testimonial--mobile {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }
  .auth-testimonial--mobile .auth-testimonial-avatar {
    background: rgba(29,191,115,.15);
    color: var(--green-pill-tx);
    width: 30px; height: 30px;
    font-size: .76rem;
  }
  .auth-testimonial--mobile .auth-testimonial-quote {
    color: var(--navy);
    font-size: .8rem;
  }
  .auth-testimonial--mobile .auth-testimonial-author {
    color: var(--gray);
  }
}


@media (max-width: 640px) {
  .page-content { padding: 18px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .btn-lg { padding: 12px 24px; font-size: .9rem; }
  .modal { padding: 22px 18px; }
  .dashboard-hero { padding: 28px 22px 32px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .auth-card-modern .form-row, .auth-box .form-row { grid-template-columns: 1fr; }
}
