/* ═══════════════════════════════════════════════════════════════════
   NVCC MASTER PATCH — All missing aliases, admin/portal fixes,
   invoice/billing/visa-form components, global beauty overhaul.
   Load this AFTER nvcc-v2.css on every page.
═══════════════════════════════════════════════════════════════════ */

/* ── VARIABLE ALIASES (backwards compat) ───────────────────────── */
:root {
  --navy-deep:   var(--navy-2);
  --navy-light:  var(--navy-3);
  --muted:       var(--text-3);
  --gold:        var(--gold-2);
  --gold-bg:     rgba(201,168,76,.07);
  --shadow-md:   var(--s-md);
  --shadow-sm:   var(--s-sm);
  --shadow-lg:   var(--s-lg);
  --shadow-xl:   var(--s-xl);
  --line:        var(--border);
  --s2:          var(--s-sm);
  --s3:          var(--s-md);
  --s4:          var(--s-lg);
  --r:           var(--r-lg);
  --r2:          var(--r-xl);
  --ink:         #06091A;
  --font-main:   var(--font-body);
  --error:       var(--red);
  --display-1:   clamp(48px, 6vw, 88px);
  --display-2:   clamp(36px, 5vw, 64px);
  --display-3:   clamp(28px, 4vw, 48px);
  --orange:      #f25a1b;
  --cream:       var(--ivory);
  --navy:        var(--navy-2);
  --amber:       #d97706;
  --amber-bg:    #fef3c7;
  --blue:        #2563eb;
}

/* ── NAV ALIAS .nav → same as .site-nav ───────────────────────── */
.nav {
  display: flex; align-items: center; gap: 4px; margin-left: auto;
}
.nav a {
  padding: 7px 13px; font-size: 13.5px; font-weight: 600;
  color: var(--text-2); border-radius: var(--r-md);
  transition: all var(--dur-fast); position: relative;
  white-space: nowrap; text-decoration: none;
}
.nav a:hover { color: var(--navy-2); background: rgba(10,26,62,.05); }
.nav a.active { color: var(--navy-2); font-weight: 700; }
.nav a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 13px; right: 13px;
  height: 2px; background: var(--gold-2); border-radius: 2px;
}
@media (max-width: 900px) {
  .nav {
    display: none; position: absolute; top: calc(100% + 8px);
    left: 16px; right: 16px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--r-xl);
    padding: 12px; flex-direction: column; align-items: stretch;
    box-shadow: var(--s-lg); z-index: 200;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; }
}

/* ── SCROLL REVEAL ALIASES ─────────────────────────────────────── */
.reveal-left  { opacity:0; transform:translateX(-28px); transition:opacity .6s cubic-bezier(.16,1,.3,1),transform .6s cubic-bezier(.16,1,.3,1); }
.reveal-right { opacity:0; transform:translateX(28px);  transition:opacity .6s cubic-bezier(.16,1,.3,1),transform .6s cubic-bezier(.16,1,.3,1); }
.reveal-up    { opacity:0; transform:translateY(28px);  transition:opacity .6s cubic-bezier(.16,1,.3,1),transform .6s cubic-bezier(.16,1,.3,1); }
.reveal       { opacity:0; transform:translateY(20px);  transition:opacity .6s cubic-bezier(.16,1,.3,1),transform .6s cubic-bezier(.16,1,.3,1); }
.reveal-left.visible,.reveal-right.visible,.reveal-up.visible,.reveal.visible { opacity:1; transform:none; }
.delay-1 { transition-delay:.12s !important; }
.delay-2 { transition-delay:.24s !important; }
.delay-3 { transition-delay:.36s !important; }
.delay-4 { transition-delay:.48s !important; }

/* ── TYPOGRAPHY ────────────────────────────────────────────────── */
.display-1 { font-family:var(--font-display); font-size:var(--display-1); font-weight:400; line-height:1.04; letter-spacing:-.03em; }
.display-2 { font-family:var(--font-display); font-size:var(--display-2); font-weight:400; line-height:1.06; letter-spacing:-.025em; }
.display-3 { font-family:var(--font-display); font-size:var(--display-3); font-weight:400; line-height:1.08; letter-spacing:-.02em; }
h1,h2,h3,h4,h5,h6 { font-family:var(--font-display); color:var(--navy-2); line-height:1.15; }
h1 { font-size:clamp(26px,4vw,48px); font-weight:500; }
h2 { font-size:clamp(22px,3vw,38px); font-weight:500; }
h3 { font-size:clamp(18px,2.5vw,26px); font-weight:600; }
p  { line-height:1.75; }
em.text-gold { color:var(--gold-2); font-style:italic; }

/* ── ADMIN STAT CARDS ──────────────────────────────────────────── */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px,1fr));
  gap: 14px; margin-bottom: 24px;
}
.stat-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px 22px;
  display: flex; align-items: center; gap: 14px;
  transition: all .2s ease; text-decoration: none;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  opacity: 0; transition: opacity .2s;
}
.stat-card:hover { box-shadow: var(--s-md); transform: translateY(-2px); border-color: transparent; }
.stat-card:hover::before { opacity: 1; }
.stat-card-icon { width: 48px; height: 48px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.stat-card-num   { font-size: 27px; font-weight: 800; color: var(--navy-2); line-height: 1; font-family: var(--font-display); }
.stat-card-label { font-size: 12px; color: var(--text-3); margin-top: 4px; font-weight: 600; }

/* ── UTILITIES ─────────────────────────────────────────────────── */
.flex-between { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.flex-center  { display:flex; align-items:center; justify-content:center; }
.flex-start   { display:flex; align-items:center; gap:12px; }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media(max-width:640px){ .grid-2,.grid-3 { grid-template-columns:1fr; } }
.fw-700 { font-weight:700 !important; }
.fw-800 { font-weight:800 !important; }
.mono   { font-family:var(--font-mono) !important; }
.small  { font-size:12.5px; }
.text-center { text-align:center; }
.text-right  { text-align:right; }
.text-gold   { color:var(--gold-2) !important; }
.text-navy   { color:var(--navy-2) !important; }
.text-muted  { color:var(--text-3) !important; }
.text-white  { color:#fff !important; }
.text-green  { color:var(--green) !important; }
.text-red    { color:var(--red)   !important; }
.eyebrow { font-size:11px; font-weight:800; letter-spacing:.2em; text-transform:uppercase; color:var(--gold-1); }
.divider { border:none; border-top:1px solid var(--border); margin:24px 0; }

/* ── BUTTONS ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 24px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 700; line-height: 1;
  transition: all .2s ease; cursor: pointer; border: none;
  white-space: nowrap; text-decoration: none; font-family: var(--font-body);
}
.btn:active { transform: scale(.97); }
.btn-navy {
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
  color: #fff; box-shadow: 0 2px 8px rgba(10,26,62,.2);
}
.btn-navy:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10,26,62,.3); color: #fff; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: #fff; box-shadow: 0 2px 8px rgba(201,168,76,.3);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,168,76,.4); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--navy-2); color: var(--navy-2); }
.btn-outline:hover { background: var(--navy-2); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: rgba(10,26,62,.06); color: var(--navy-2); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(10,26,62,.1); }
.btn-white { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); }
.btn-white:hover { background: rgba(255,255,255,.22); transform: translateY(-1px); color: #fff; }
.btn-dark  { background: var(--navy-1); color: #fff; }
.btn-dark:hover { background: var(--navy-2); transform: translateY(-1px); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(1.1); transform: translateY(-1px); color: #fff; }
.btn-sm   { padding: 8px 16px; font-size: 13px; }
.btn-lg   { padding: 15px 32px; font-size: 15px; }
.btn-xl   { padding: 18px 40px; font-size: 16px; }
.btn-xs   { padding: 5px 12px; font-size: 12px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--r-md); }

/* ── TABLES ────────────────────────────────────────────────────── */
.table-wrap { overflow-x:auto; border-radius:var(--r-lg); border:1px solid var(--border); }
.table-wrap table { width:100%; border-collapse:collapse; font-size:13.5px; }
.table-wrap thead { background:var(--bone); }
.table-wrap th { padding:11px 16px; text-align:left; font-size:10.5px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--text-3); border-bottom:1px solid var(--border); }
.table-wrap td { padding:13px 16px; border-bottom:1px solid var(--border); color:var(--navy-2); font-size:13.5px; }
.table-wrap tr:last-child td { border-bottom:none; }
.table-wrap tbody tr:hover td { background:rgba(10,26,62,.025); }

/* ── ALERTS ────────────────────────────────────────────────────── */
.alert { padding:13px 16px; border-radius:var(--r-md); font-size:14px; line-height:1.6; display:flex; gap:10px; align-items:flex-start; margin-bottom:16px; }
.alert-ok      { background:#d1fae5; border:1px solid rgba(5,150,105,.2); color:#065f46; }
.alert-err     { background:#fee2e2; border:1px solid rgba(220,38,38,.2); color:#991b1b; }
.alert-warn    { background:#fef3c7; border:1px solid rgba(217,119,6,.2);  color:#92400e; }
.alert-info    { background:#dbeafe; border:1px solid rgba(37,99,235,.2);  color:#1e40af; }
.alert-success { background:#d1fae5; border:1px solid rgba(5,150,105,.2); color:#065f46; padding:13px 16px; border-radius:var(--r-md); font-size:14px; display:flex; gap:10px; align-items:flex-start; margin-bottom:16px; }
.alert-error   { background:#fee2e2; border:1px solid rgba(220,38,38,.2); color:#991b1b; padding:13px 16px; border-radius:var(--r-md); font-size:14px; display:flex; gap:10px; align-items:flex-start; margin-bottom:16px; }

/* ── BADGES ────────────────────────────────────────────────────── */
.badge { display:inline-flex; align-items:center; padding:3px 10px; border-radius:var(--r-full); font-size:11.5px; font-weight:700; gap:4px; }
.badge-green   { background:#d1fae5; color:#065f46; border:1px solid rgba(5,150,105,.2); }
.badge-red     { background:#fee2e2; color:#991b1b; border:1px solid rgba(220,38,38,.2); }
.badge-gold    { background:rgba(201,168,76,.12); color:var(--gold-1); border:1px solid rgba(201,168,76,.3); }
.badge-grey    { background:#F9FAFB; color:#6B7280; border:1px solid #E5E7EB; }
.badge-navy    { background:rgba(10,26,62,.1); color:var(--navy-2); border:1px solid rgba(10,26,62,.15); }
.badge-blue    { background:#dbeafe; color:#1e40af; border:1px solid #bfdbfe; }
.badge-warn    { background:#fef3c7; color:#92400e; border:1px solid #fde68a; }
.badge-ink     { background:var(--navy-1); color:#fff; }
.badge-purple  { background:#ede9fe; color:#6d28d9; border:1px solid #ddd6fe; }
.badge-count   { background:#2563eb; color:#fff; border-radius:var(--r-full); font-size:10px; font-weight:800; padding:1px 7px; margin-left:auto; }
.status-badge, .role-badge { display:inline-flex; align-items:center; gap:4px; padding:3px 10px; border-radius:var(--r-full); font-size:11.5px; font-weight:700; }

/* ── ADMIN SHELL ───────────────────────────────────────────────── */
.dash-shell { display:flex; min-height:100vh; background:var(--bone); }
.dash-sidebar {
  width: 244px; flex-shrink: 0; position: fixed; top: 0; bottom: 0;
  overflow-y: auto; z-index: 100;
  background: linear-gradient(180deg, #04060F 0%, var(--navy-1) 40%, #06091e 100%);
  box-shadow: 4px 0 32px rgba(0,0,0,.4);
  display: flex; flex-direction: column;
}
.dash-main { flex: 1; margin-left: 244px; min-height: 100vh; background: var(--bone); display: flex; flex-direction: column; }
.dash-sidebar-logo {
  padding: 20px 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column;
}
.dash-sidebar-logo img { filter: brightness(0) invert(1); height: 40px; width: 40px; object-fit: contain; }
.dash-sidebar-logo > span {
  font-size: 9px; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.25); margin-top: 8px;
}
.dash-nav { flex: 1; padding: 12px 10px; }
.dash-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.55);
  transition: all .15s; text-decoration: none; margin-bottom: 2px;
  position: relative;
}
.dash-nav a svg { opacity: .7; flex-shrink: 0; transition: opacity .15s; }
.dash-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.dash-nav a:hover svg { opacity: 1; }
.dash-nav a.active {
  background: linear-gradient(135deg, rgba(201,168,76,.16), rgba(201,168,76,.06));
  color: #fff; border-left: 2px solid var(--gold-2); padding-left: 10px;
}
.dash-nav a.active svg { opacity: 1; }
.dash-nav-section {
  font-size: 9px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.2); padding: 16px 10px 5px;
}
.dash-topbar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 18px 28px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; flex-wrap: wrap;
  position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 8px rgba(10,26,62,.06);
}
.dash-topbar h1 { font-size: 21px; margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--navy-2); }
.dash-topbar .sub { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.dash-content { flex: 1; padding: 28px; }
.dash-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.dash-card h3 { font-size: 16px; font-family: var(--font-display); color: var(--navy-2); font-weight: 600; margin-top: 0; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; margin-bottom: 20px; }
@media (max-width: 900px) {
  .dash-sidebar { display: none; }
  .dash-main { margin-left: 0; }
  .dash-content { padding: 16px; }
}

/* ── PORTAL ────────────────────────────────────────────────────── */
.portal-shell { min-height: 100vh; background: var(--bone); }
.portal-header {
  background: linear-gradient(135deg, var(--navy-1), var(--navy-2));
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 4px 24px rgba(4,6,26,.45);
}
.portal-nav {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: 16px;
}
.portal-nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.portal-nav-links a {
  padding: 7px 14px; font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.65); border-radius: var(--r-md);
  transition: all .15s; text-decoration: none; position: relative;
}
.portal-nav-links a:hover, .portal-nav-links a.active { background: rgba(255,255,255,.12); color: #fff; }
.portal-nav-links a.active::after {
  content: ''; position: absolute; bottom: 2px; left: 14px; right: 14px;
  height: 2px; background: var(--gold-2); border-radius: 2px;
}
.portal-content { max-width: 1100px; margin: 0 auto; padding: 28px 24px 60px; }

/* ── AUTH ──────────────────────────────────────────────────────── */
.auth-shell {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--navy-1) 0%, var(--navy-2) 50%, #0a1830 100%);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.auth-box { width: min(460px,100%); background: #fff; border-radius: var(--r-2xl); padding: 48px 44px; box-shadow: var(--s-xl); }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo img { height: 56px; margin: 0 auto 14px; object-fit: contain; }
.auth-logo h2 { font-size: 22px; color: var(--navy-2); margin-bottom: 4px; }
.auth-logo p  { font-size: 13px; color: var(--text-3); }
.auth-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
  color: #fff; border: none; border-radius: var(--r-md);
  font-size: 15px; font-weight: 700; font-family: var(--font-body); cursor: pointer;
  transition: all .2s;
}
.auth-btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(10,26,62,.35); }

/* ── PROGRESS BAR ──────────────────────────────────────────────── */
.progress-bar  { height: 7px; background: rgba(10,26,62,.08); border-radius: 99px; overflow: hidden; }
.progress-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--navy-3), var(--gold-2));
  transition: width .7s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 0 8px rgba(201,168,76,.3);
}

/* ── FORMS ─────────────────────────────────────────────────────── */
.fg { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.fl { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-2); }
.fi, .fs, .ft {
  padding: 11px 14px; border-radius: var(--r-md); border: 1.5px solid var(--border);
  font-size: 14.5px; font-family: var(--font-body); color: var(--navy-2); background: var(--surface);
  transition: border-color .15s, box-shadow .15s; outline: none; width: 100%; box-sizing: border-box;
}
.fi:focus, .fs:focus, .ft:focus { border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(10,26,62,.1); }
.fi:hover, .fs:hover, .ft:hover { border-color: rgba(10,26,62,.3); }
.ft { resize: vertical; min-height: 100px; }
.req { color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ── MODAL ─────────────────────────────────────────────────────── */
.moverlay { display:none; position:fixed; inset:0; z-index:9000; background:rgba(4,6,26,.6); backdrop-filter:blur(6px); align-items:center; justify-content:center; padding:20px; }
.moverlay.open { display:flex; }
.mbox { background:#fff; border-radius:var(--r-2xl); padding:36px; width:min(580px,96vw); max-height:90vh; overflow-y:auto; box-shadow:var(--s-xl); }
.mhead { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:22px; gap:12px; }
.mtitle { font-size:20px; font-weight:700; color:var(--navy-2); font-family:var(--font-display); }
.mclose { background:none; border:none; font-size:22px; color:var(--text-3); cursor:pointer; width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.mclose:hover { color:var(--red); }

/* ── QUICK ACTIONS ─────────────────────────────────────────────── */
.quick-action {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 14px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); cursor: pointer; transition: all .2s ease;
  text-align: center; text-decoration: none; color: var(--navy-2);
}
.quick-action:hover { border-color: var(--gold-2); background: rgba(201,168,76,.04); transform: translateY(-3px); box-shadow: var(--s-md); color: var(--navy-2); }
.quick-action .icon { font-size: 28px; }
.quick-action .label { font-size: 12.5px; font-weight: 700; }

/* ── APP CARDS ─────────────────────────────────────────────────── */
.app-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px 24px; margin-bottom: 14px;
  transition: all .2s ease; position: relative; overflow: hidden;
}
.app-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  opacity: 0; transition: opacity .2s;
}
.app-card:hover { box-shadow: var(--s-md); transform: translateY(-2px); }
.app-card:hover::before { opacity: 1; }
.app-card-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.appt-card {
  background: linear-gradient(135deg, var(--navy-1), var(--navy-2));
  color: #fff; border-radius: var(--r-lg); padding: 18px 20px; margin-bottom: 10px;
  border: 1px solid rgba(201,168,76,.15);
}

/* ── STEP BAR ──────────────────────────────────────────────────── */
.step-bar { display:flex; align-items:center; margin-bottom:32px; }
.step-bar-item { flex:1; text-align:center; position:relative; }
.step-bar-item::after { content:''; position:absolute; top:19px; left:50%; width:100%; height:2px; background:var(--border); z-index:0; }
.step-bar-item:last-child::after { display:none; }
.step-bar-dot { width:38px; height:38px; border-radius:50%; margin:0 auto 8px; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; position:relative; z-index:1; border:2.5px solid var(--border); background:#fff; color:var(--text-3); transition:all .2s; }
.step-bar-item.active .step-bar-dot { background:var(--navy-2); border-color:var(--navy-2); color:#fff; box-shadow:0 0 0 4px rgba(10,26,62,.12); }
.step-bar-item.done .step-bar-dot { background:var(--green); border-color:var(--green); color:#fff; }
.step-bar-item.done::after { background:var(--green); }
.step-bar-label { font-size:11px; font-weight:600; color:var(--text-3); }
.step-bar-item.active .step-bar-label { color:var(--navy-2); font-weight:700; }
.step-bar-item.done .step-bar-label  { color:var(--green); }
.step-pane { display:none; }
.step-pane.active { display:block; }
.nav-steps { display:flex; justify-content:space-between; margin-top:24px; gap:12px; }
.ref-badge { background:#fff; border:2.5px solid var(--gold-2); border-radius:var(--r-xl); padding:24px 36px; display:inline-block; margin:20px 0; box-shadow:0 8px 32px rgba(201,168,76,.2); }
.ref-code  { font-size:34px; font-weight:900; font-family:var(--font-mono); color:var(--navy-2); letter-spacing:.06em; }

/* ── TIMELINE ──────────────────────────────────────────────────── */
.timeline { position:relative; padding-left:24px; }
.timeline::before { content:''; position:absolute; left:6px; top:0; bottom:0; width:2px; background:var(--border); }
.tl-item { position:relative; padding-bottom:22px; }
.tl-dot { position:absolute; left:-22px; top:3px; width:12px; height:12px; border-radius:50%; border:2px solid #fff; box-shadow:0 0 0 2px var(--navy-2); background:var(--navy-2); }
.tl-dot-ok  { background:var(--green) !important; box-shadow:0 0 0 2px var(--green) !important; }
.tl-dot-err { background:var(--red)   !important; box-shadow:0 0 0 2px var(--red) !important; }
.tl-title { font-size:13.5px; font-weight:700; color:var(--navy-2); }
.tl-time  { font-size:11.5px; color:var(--text-3); margin-top:2px; }
.tl-note  { font-size:13px; color:var(--text-2); margin-top:6px; background:var(--bone); padding:8px 12px; border-radius:var(--r-md); border-left:2px solid var(--border); }

/* ── ACTIVITY ITEMS ────────────────────────────────────────────── */
.activity-item { display:flex; gap:12px; align-items:flex-start; padding:10px 0; border-bottom:1px solid var(--border); }
.activity-item:last-child { border-bottom:none; }
.activity-avatar { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }

/* ══════════════════════════════════════════════════════════════════
   INVOICE SHELL — Professional authority look
══════════════════════════════════════════════════════════════════ */
.invoice-shell {
  max-width: 860px; margin: 0 auto;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--s-xl);
}
.invoice-header {
  background: linear-gradient(135deg, #04060F 0%, var(--navy-2) 60%, var(--navy-3) 100%);
  padding: 40px 48px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
}
.invoice-logo { display: flex; align-items: center; gap: 14px; }
.invoice-logo img { height: 52px; filter: brightness(0) invert(1); }
.invoice-logo-text { color: #fff; }
.invoice-logo-name { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.invoice-logo-sub  { font-size: 10px; color: rgba(255,255,255,.45); letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }
.invoice-type-badge {
  background: rgba(201,168,76,.2); border: 1px solid rgba(201,168,76,.4);
  color: #d4a82e; font-size: 10px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 99px; margin-top: 8px; display: inline-block;
}
.invoice-meta { text-align: right; }
.invoice-label { font-size: 9px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 6px; }
.invoice-number { font-size: 26px; font-weight: 800; color: #d4a82e; font-family: var(--font-mono); letter-spacing: .04em; }
.invoice-date-info { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 12px; line-height: 1.8; }
.invoice-date-info strong { color: rgba(255,255,255,.85); }
.invoice-body { padding: 40px 48px; }
.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.inv-party-label { font-size: 9px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.inv-party-label::before { content:''; width:16px; height:1.5px; background:var(--gold-2); flex-shrink:0; }
.inv-party-name   { font-size: 16px; font-weight: 800; color: var(--navy-2); margin-bottom: 5px; }
.inv-party-detail { font-size: 13px; color: var(--text-3); line-height: 1.75; }
.invoice-table { width:100%; border-collapse:collapse; margin-bottom:28px; }
.invoice-table thead tr { background:var(--bone); }
.invoice-table th { padding:12px 16px; font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--text-3); text-align:left; border-bottom:2px solid var(--border); }
.invoice-table th:last-child { text-align:right; }
.invoice-table td { padding:14px 16px; border-bottom:1px solid var(--border); font-size:14px; color:var(--navy-2); vertical-align:top; }
.invoice-table td:last-child { text-align:right; font-weight:700; font-family:var(--font-mono); }
.invoice-table tr:last-child td { border-bottom:none; }
.invoice-table tbody tr:hover td { background:rgba(10,26,62,.02); }
.invoice-totals { display:flex; justify-content:flex-end; margin-bottom:28px; }
.invoice-totals-inner { width:320px; }
.inv-total-row { display:flex; justify-content:space-between; align-items:center; padding:9px 0; font-size:14px; color:var(--text-2); border-bottom:1px solid var(--border); }
.inv-total-row:last-child { border-bottom:none; border-top:2px solid var(--border); padding-top:14px; margin-top:6px; }
.inv-total-row.grand { font-size:18px; font-weight:800; color:var(--navy-2); }
.inv-total-val { font-family:var(--font-mono); font-weight:700; }
.invoice-notes { background:var(--bone); border-radius:var(--r-md); padding:16px 20px; margin-bottom:28px; font-size:13px; color:var(--text-3); line-height:1.7; }
.invoice-notes strong { color:var(--navy-2); }
.invoice-footer {
  background: var(--bone); padding: 24px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; border-top: 2px solid var(--border);
}
.invoice-footer-note { font-size: 12px; color: var(--text-3); line-height: 1.7; max-width: 480px; }
.invoice-footer-note strong { color: var(--navy-2); }
.invoice-stamp {
  width: 80px; height: 80px; flex-shrink: 0; border-radius: 50%;
  border: 3px solid var(--green); display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: var(--green);
  font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  text-align: center; line-height: 1.4; opacity: .85; transform: rotate(-15deg);
}
.invoice-stamp-pending { border-color: #d97706; color: #d97706; }
.invoice-stamp-overdue { border-color: var(--red); color: var(--red); }
@media print {
  *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;color-adjust:exact!important;}
  .invoice-shell { box-shadow: none; border: none; border-radius: 0; max-width: 100%; }
  .no-print { display: none !important; }
  body { background: #fff !important; }
  .invoice-header { padding: 28px 32px; }
  .invoice-body { padding: 28px 32px; }
  .invoice-footer { padding: 16px 32px; }
}
@media (max-width:900px) {
  .invoice-header { padding: 24px; flex-direction: column; }
  .invoice-meta { text-align: left; }
  .invoice-body { padding: 24px; }
  .invoice-footer { padding: 16px 24px; flex-direction: column; }
  .invoice-parties { grid-template-columns: 1fr; gap: 20px; }
  .invoice-totals { justify-content: stretch; }
  .invoice-totals-inner { width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════
   VFS-STYLE VISA APPLICATION FORM — Government document authority
══════════════════════════════════════════════════════════════════ */
.vf-shell {
  max-width: 900px; margin: 0 auto;
  background: #fff; border: 1.5px solid #c8c8c8;
  font-size: 13px; color: #111;
  font-family: Arial, Helvetica, sans-serif;
}
.vf-header {
  background: #fff; border-bottom: 3px solid #0b2545;
  padding: 18px 24px; display: flex; align-items: center; justify-content: space-between;
}
.vf-header-logo { display: flex; align-items: center; gap: 12px; }
.vf-header-title { font-size: 17px; font-weight: 700; color: #0b2545; margin-bottom: 2px; }
.vf-header-sub   { font-size: 11px; color: #666; }
.vf-header-right { text-align: right; }
.vf-ref { font-family: monospace; font-size: 14px; font-weight: 800; color: #0b2545; }
.vf-section { border-top: 2px solid #0b2545; }
.vf-section-title { background: #0b2545; color: #fff; padding: 6px 14px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.vf-row { display: grid; border-bottom: 1px solid #ddd; min-height: 44px; }
.vf-row.cols-1 { grid-template-columns: 1fr; }
.vf-row.cols-2 { grid-template-columns: 1fr 1fr; }
.vf-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.vf-row.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.vf-field { padding: 7px 11px; border-right: 1px solid #ddd; min-height: 44px; }
.vf-field:last-child { border-right: none; }
.vf-field-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #555; margin-bottom: 3px; }
.vf-field-value { font-size: 13px; font-weight: 600; color: #111; min-height: 16px; }
.vf-field-value.mono { font-family: monospace; font-size: 12px; letter-spacing: .06em; }
.vf-field-value.large { font-size: 16px; font-weight: 800; }
.vf-photo-box { width: 110px; height: 135px; border: 2px solid #bbb; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10px; color: #999; text-align: center; background: #fafafa; }
.vf-checkbox { display: inline-flex; align-items: center; gap: 5px; margin-right: 14px; font-size: 12px; cursor: default; }
.vf-checkbox-box { width: 13px; height: 13px; border: 1.5px solid #555; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; flex-shrink: 0; }
.vf-checkbox-box.checked { background: #0b2545; color: #fff; border-color: #0b2545; }
.vf-declaration { background: #f5f8fc; border: 1.5px solid #0b2545; padding: 13px 15px; margin: 10px 12px; font-size: 11px; line-height: 1.75; color: #333; }
.vf-declaration strong { color: #0b2545; }
.vf-declaration ol { padding-left: 18px; margin: 6px 0; }
.vf-declaration li { margin-bottom: 4px; }
.vf-sig-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #ddd; }
.vf-sig-box { padding: 12px 14px; border-right: 1px solid #ddd; }
.vf-sig-box:last-child { border-right: none; }
.vf-sig-label { font-size: 9px; font-weight: 700; text-transform: uppercase; color: #666; margin-bottom: 32px; }
.vf-sig-line  { border-bottom: 1px solid #666; margin-top: 6px; }
.vf-sig-name  { font-size: 10px; color: #999; margin-top: 4px; }
.vf-barcode-area { padding: 12px 16px; display: flex; align-items: center; gap: 14px; border-top: 2px solid #0b2545; background: #f5f8fc; }
.vf-qr-placeholder { width: 70px; height: 70px; background: #e8e8e8; display: flex; align-items: center; justify-content: center; font-size: 9px; color: #999; text-align: center; border: 1px solid #ccc; }
.vf-barcode-placeholder { height: 50px; background: #e8e8e8; flex: 1; display: flex; align-items: center; justify-content: center; font-size: 9px; color: #999; font-family: monospace; }
.vf-footer-strip {
  background: #0b2545; color: rgba(255,255,255,.6);
  padding: 8px 14px; font-size: 9.5px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: Arial, sans-serif;
}
.vf-country-flag { font-size: 28px; margin-right: 6px; vertical-align: middle; }
@media print {
  *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;color-adjust:exact!important;}
  .vf-shell { border: none; max-width: 100%; }
  .no-print { display: none !important; }
  body { background: #fff; margin: 0; }
}

/* ── BILLING STATUS BADGES ─────────────────────────────────────── */
.bill-status-new      { background:#dbeafe; color:#1e40af; }
.bill-status-sent     { background:#fef3c7; color:#92400e; }
.bill-status-paid     { background:#d1fae5; color:#065f46; }
.bill-status-overdue  { background:#fee2e2; color:#991b1b; }
.bill-status-draft    { background:#f3f4f6; color:#6b7280; }
.bill-status-cancelled{ background:#f3f4f6; color:#6b7280; }

/* ── LETTERHEAD ────────────────────────────────────────────────── */
.letterhead { max-width: 800px; margin: 0 auto; font-family: Georgia, serif; color: #111; }
.letterhead-top { display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 3px double #0b2545; padding-bottom: 20px; margin-bottom: 24px; }
.letterhead-logo { display: flex; align-items: center; gap: 14px; }
.letterhead-company-name { font-size: 20px; font-weight: 700; color: #0b2545; }
.letterhead-company-sub  { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #666; margin-top: 2px; }
.letterhead-contact { text-align: right; font-size: 12px; color: #555; line-height: 1.8; }
.letterhead-contact strong { color: #0b2545; }
.letterhead-body   { font-size: 14px; line-height: 1.9; color: #222; }
.letterhead-footer { border-top: 1px solid #ddd; margin-top: 40px; padding-top: 16px; font-size: 11px; color: #999; text-align: center; line-height: 1.7; }

/* ── PRINT BUTTON ──────────────────────────────────────────────── */
.print-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3)); color: #fff;
  border: none; border-radius: var(--r-lg); padding: 14px 24px; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 8px; box-shadow: var(--s-lg);
  cursor: pointer; transition: all .2s; font-family: var(--font-body);
}
.print-btn:hover { transform: translateY(-2px); box-shadow: var(--s-xl); }

/* ── COUNTRY SELECTOR ──────────────────────────────────────────── */
.country-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); gap: 10px; }
.country-pick label { cursor: pointer; }
.country-pick input[type=radio] { display: none; }
.c-card {
  padding: 16px 10px; border: 2px solid var(--border); border-radius: var(--r-lg);
  text-align: center; background: #fff; transition: all .2s ease;
}
.c-card:hover { border-color: var(--gold-2); background: rgba(201,168,76,.04); }
.country-pick input[type=radio]:checked ~ .c-card {
  border-color: var(--navy-2); background: rgba(10,26,62,.04); box-shadow: 0 0 0 3px rgba(10,26,62,.1);
}
.c-flag { font-size: 32px; display: block; margin-bottom: 6px; transition: transform .2s; }
.c-card:hover .c-flag { transform: scale(1.15) rotate(-3deg); }
.c-name { font-size: 12.5px; font-weight: 700; color: var(--navy-2); }
