/* ============================================================
   RefVaultApp™ — Stylesheet v2
   ============================================================ */
:root {
  --navy:        #1E3A5F;
  --navy-dark:   #132840;
  --navy-mid:    #254d7a;
  --amber:       #E8941A;
  --amber-light: #F5A833;
  --amber-pale:  #FEF3E2;
  --white:       #ffffff;
  --grey-bg:     #F4F6F9;
  --grey-line:   #E2E8F0;
  --grey-text:   #64748B;
  --grey-dark:   #334155;
  --green:       #16A34A;
  --green-pale:  #DCFCE7;
  --red:         #DC2626;
  --red-pale:    #FEE2E2;
  --blue-sig:    #2563EB;
  --amber-sig:   #D97706;
  --plum-sig:    #7C3AED;
  --shadow:      0 2px 16px rgba(30,58,95,.10);
  --shadow-lg:   0 8px 40px rgba(30,58,95,.18);
  --r:           12px;
  --r-sm:        8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--grey-bg); color: var(--grey-dark); line-height: 1.5; min-height: 100vh; }

/* ── SCREENS ── */
#app { min-height: 100vh; }
.screen { display: none; flex-direction: column; min-height: 100vh; }
.screen.active { display: flex; }
.screen-grey   { background: var(--grey-bg); }
.screen-navy   { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); }
.screen-centered { align-items: center; justify-content: center; padding: 32px 16px; }

/* ── LOADING ── */
#screen-loading { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); align-items: center; justify-content: center; }
.loading-inner  { text-align: center; }
.loading-wordmark { font-size: 48px; font-weight: 900; color: white; letter-spacing: 4px; margin-top: 16px; }
.loading-tagline  { font-size: 12px; color: var(--amber); letter-spacing: 3px; text-transform: uppercase; font-weight: 600; margin-top: 4px; }
.loading-spinner  { width: 32px; height: 32px; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--amber); border-radius: 50%; margin: 24px auto 0; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── NAV ── */
.nav { background: var(--navy); padding: 0 20px; height: 58px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; flex-shrink: 0; }
.nav-brand { display: flex; align-items: center; gap: 10px; border-radius: 8px; padding: 4px 6px; margin: -4px -6px; transition: background .18s; }
.nav-brand[data-route]:hover { background: rgba(255,255,255,.1); }
.nav-icon  { width: 32px; height: 32px; flex-shrink: 0; }
.nav-logo-text { font-size: 19px; font-weight: 800; color: white; letter-spacing: 1px; line-height: 1.1; }
.nav-logo-wordmark { font-size: 17px; font-weight: 900; color: white; letter-spacing: 2px; }
.nav-logo-sub  { font-size: 9px; color: var(--amber); letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
.nav-actions   { display: flex; align-items: center; gap: 8px; }
.nav-user      { display: flex; align-items: center; gap: 8px; }
.nav-username  { color: rgba(255,255,255,.85); font-size: 13px; }
.btn-nav-ghost   { color: rgba(255,255,255,.75); font-size: 13px; font-weight: 500; padding: 6px 11px; border-radius: 6px; border: none; background: none; cursor: pointer; font-family: inherit; transition: all .2s; }
.btn-nav-ghost:hover { color: white; background: rgba(255,255,255,.1); }
.btn-nav-primary { background: var(--amber); color: var(--navy-dark); font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 6px; border: none; cursor: pointer; font-family: inherit; transition: background .2s; }
.btn-nav-primary:hover { background: var(--amber-light); }

/* ── HAMBURGER ── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px; height: 18px;
  background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0;
}
.hamburger-btn span {
  display: block; width: 100%; height: 2px;
  background: white; border-radius: 2px; transition: all .28s ease;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── MOBILE NAV DRAWER ── */
.mobile-nav-drawer {
  display: none;
  position: fixed; top: 58px; left: 0; right: 0; z-index: 98;
  background: var(--navy-dark);
  border-bottom: 3px solid var(--amber);
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  animation: drawerSlide .22s ease;
}
.mobile-nav-drawer.open { display: block; }
@keyframes drawerSlide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.mobile-nav-user-row {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 24px 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-nav-user-name { color: white; font-size: 15px; font-weight: 700; }
.mobile-nav-link {
  display: block; width: 100%;
  padding: 14px 24px;
  color: rgba(255,255,255,.85); font-size: 15px; font-weight: 500;
  background: none; border: none; text-align: left; cursor: pointer;
  font-family: inherit; transition: all .15s;
}
.mobile-nav-link:hover, .mobile-nav-link:active { color: white; background: rgba(255,255,255,.08); }
.mobile-nav-link.mn-signout {
  font-size: 13px; color: rgba(255,255,255,.45);
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 4px; padding-top: 16px;
}

/* ── AVATAR ── */
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--amber); color: var(--navy-dark); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; cursor: pointer; border: none; font-family: inherit; transition: all .2s; text-decoration: none; }
.btn-amber:hover  { background: var(--amber-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(232,148,26,.35); }
.btn-amber  { background: var(--amber); color: var(--navy-dark); }
.btn-navy   { background: var(--navy); color: white; }
.btn-navy:hover   { background: var(--navy-mid); transform: translateY(-1px); }
.btn-ghost  { background: transparent; color: var(--grey-text); border: 1.5px solid var(--grey-line); }
.btn-ghost:hover  { border-color: var(--navy); color: var(--navy); }
.btn-text   { background: none; border: none; color: var(--navy); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.btn-full   { width: 100%; }
.btn-lg     { padding: 14px 32px; font-size: 15px; }
.btn-sm     { padding: 7px 14px; font-size: 12px; }

/* ── FORMS ── */
.form-group  { margin-bottom: 16px; }
.form-label  { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.form-input  { width: 100%; padding: 10px 13px; border: 1.5px solid var(--grey-line); border-radius: var(--r-sm); font-size: 14px; font-family: inherit; color: var(--grey-dark); background: white; transition: border-color .2s; outline: none; }
.form-input:focus { border-color: var(--navy); }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.form-row       { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-btns  { display: flex; gap: 10px; margin-top: 8px; }
.form-hint      { font-size: 12px; color: var(--grey-text); margin-top: 4px; }
.form-error     { background: var(--red-pale); color: var(--red); border-radius: var(--r-sm); padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }

/* ── CARDS ── */
.card { background: white; border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; }

/* ── PAGE LAYOUT ── */
.page-body    { flex: 1; max-width: 1000px; width: 100%; margin: 0 auto; padding: 28px 20px; }
.page-narrow  { max-width: 620px; }
.page-header  { margin-bottom: 24px; }
.page-header h2 { font-size: 21px; font-weight: 800; color: var(--navy); margin-bottom: 3px; }
.page-header p  { font-size: 13px; color: var(--grey-text); }
.back-link { display: inline-flex; align-items: center; gap: 5px; color: var(--grey-text); font-size: 13px; cursor: pointer; margin-bottom: 20px; border: none; background: none; font-family: inherit; padding: 0; transition: color .2s; }
.back-link:hover { color: var(--navy); }
.section-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title   { font-size: 15px; font-weight: 700; color: var(--navy); }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-green { background: var(--green-pale); color: var(--green); }
.badge-amber { background: var(--amber-pale); color: #92400E; }
.badge-navy  { background: #EFF6FF; color: var(--navy); }
.badge-red   { background: var(--red-pale); color: var(--red); }
.badge-track { background: #F0FFF4; color: #065F46; }

/* ── COLOUR DOTS ── */
.colour-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.colour-dot-pending { background: #CBD5E1; }
.colour-dot-sm { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.colour-label { font-size: 12px; font-weight: 600; margin-top: 5px; }

/* ── REFERENCE CARDS ── */
.ref-card { background: white; border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 20px; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; transition: all .2s; flex-wrap: wrap; }
.ref-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.ref-card-signal { display: flex; align-items: center; justify-content: center; width: 20px; flex-shrink: 0; }
.ref-info  { flex: 1; min-width: 160px; }
.ref-name  { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.ref-company { font-size: 12px; color: var(--grey-text); margin-bottom: 5px; }
.ref-badges  { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ref-date    { font-size: 11px; color: var(--grey-text); }
.ref-actions-col { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }

/* ── RESEND BUTTON ── */
.ref-resend-row { margin-top: 6px; }
.btn-resend { background: none; border: 1px solid var(--grey-line); border-radius: 6px; padding: 4px 10px; font-size: 11px; font-weight: 600; color: var(--grey-text); cursor: pointer; transition: all .15s; }
.btn-resend:hover { border-color: var(--navy); color: var(--navy); background: var(--grey-bg); }
.btn-resend:disabled { opacity: .6; cursor: default; }

/* ── SOFT DECLINE ── */
.badge-soft-decline { background: #FFF7ED; color: #C2410C; border: 1px solid #FED7AA; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.soft-decline-message { margin-top: 6px; font-size: 12px; color: #92400E; background: #FFFBEB; border-left: 3px solid #F59E0B; padding: 6px 10px; border-radius: 0 4px 4px 0; font-style: italic; line-height: 1.5; }
.soft-decline-panel { background: #F8FAFC; border: 1px solid var(--grey-line); border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.soft-decline-trigger-text { font-size: 13px; color: var(--grey-text); }
.btn-text-link { background: none; border: none; color: var(--navy); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; }
.btn-text-link:hover { color: var(--amber); }
.soft-decline-form { width: 100%; margin-top: 10px; }
.soft-decline-intro { font-size: 13px; color: var(--grey-text); margin-bottom: 8px; }
.soft-decline-btns { display: flex; gap: 8px; margin-top: 10px; }

/* ── THREE-DOT BUTTON ── */
.three-dot-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 32px; height: 32px; border: none; background: none; cursor: pointer; border-radius: 6px; padding: 4px; transition: background .15s; }
.three-dot-btn:hover { background: var(--grey-line); }
.three-dot-btn span { display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--grey-text); }
.three-dot-btn:hover span { background: var(--navy); }

/* ── LANDING ── */
.hero { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-mid) 100%); padding: 72px 24px 80px; text-align: center; }
.hero-tag  { font-size: 12px; color: var(--amber); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 18px; }
.hero h1   { font-size: clamp(28px,5vw,48px); font-weight: 800; color: white; line-height: 1.2; margin-bottom: 16px; }
.text-amber { color: var(--amber); }
.hero-sub  { font-size: 16px; color: rgba(255,255,255,.72); max-width: 520px; margin: 0 auto 32px; line-height: 1.7; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 16px; }
.features-section { padding: 56px 24px; max-width: 960px; margin: 0 auto; }
.section-h2  { text-align: center; font-size: 26px; color: var(--navy); font-weight: 800; margin-bottom: 6px; }
.section-sub { text-align: center; color: var(--grey-text); font-size: 15px; margin-bottom: 40px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 20px; }
.feat-card { padding: 24px 20px; border-radius: var(--r); border: 1.5px solid var(--grey-line); background: white; text-align: center; transition: all .2s; }
.feat-card:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); }
.feat-icon { font-size: 28px; margin-bottom: 12px; }
.feat-card h3 { font-size: 14px; color: var(--navy); font-weight: 700; margin-bottom: 6px; }
.feat-card p  { font-size: 12px; color: var(--grey-text); line-height: 1.6; }
.cta-band { background: var(--navy); padding: 52px 24px; text-align: center; }
.cta-band h2 { color: white; font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.cta-band p  { color: rgba(255,255,255,.6); margin-bottom: 24px; font-size: 14px; }
.footer { background: var(--navy-dark); color: rgba(255,255,255,.35); text-align: center; padding: 18px; font-size: 12px; }
.footer span { color: var(--amber); }

/* ── AUTH ── */
.auth-card { background: white; border-radius: 18px; padding: 36px 32px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo-text { font-size: 24px; font-weight: 900; color: var(--navy); letter-spacing: 2px; }
.auth-logo-sub  { font-size: 10px; color: var(--amber); letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
.auth-tabs { display: flex; background: var(--grey-bg); border-radius: var(--r-sm); padding: 3px; margin-bottom: 24px; }
.auth-tab  { flex: 1; padding: 8px; text-align: center; font-size: 13px; font-weight: 600; cursor: pointer; border-radius: 6px; border: none; background: none; font-family: inherit; color: var(--grey-text); transition: all .2s; }
.auth-tab.active { background: white; color: var(--navy); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.auth-footer-note { text-align: center; font-size: 11px; color: var(--grey-text); margin-top: 14px; line-height: 1.5; }
.auth-text-btn { background: none; border: none; color: var(--navy); font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; text-decoration: underline; padding: 0; }
.auth-text-btn:hover { color: var(--amber); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--grey-text); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--grey-line); }
.form-error { border: 1px solid var(--red-pale); }
.nav-logo-img  { height: 38px; width: auto; display: block; object-fit: contain; }
.auth-logo-img { height: 88px; width: auto; display: block; margin: 0 auto 4px; object-fit: contain; }

/* ── DASHBOARD ── */
.dash-greeting { margin-bottom: 22px; }
.dash-greeting h2 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 3px; }
.dash-greeting p  { font-size: 13px; color: var(--grey-text); }
.credit-banner { background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid)); border-radius: var(--r); padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.cb-label  { font-size: 11px; color: rgba(255,255,255,.55); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.cb-value  { font-size: 30px; font-weight: 800; color: var(--amber); margin-bottom: 3px; }
.cb-note   { font-size: 12px; color: rgba(255,255,255,.65); }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 24px; }
.stat-card  { background: white; border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.stat-card-link {
  cursor: pointer; border: 1.5px solid transparent; text-align: left;
  font-family: inherit; transition: all .18s; display: block; width: 100%;
}
.stat-card-link:hover { border-color: var(--navy); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.stat-card-link:active { transform: translateY(0); }
.stat-label { font-size: 11px; color: var(--grey-text); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.stat-val   { font-size: 28px; font-weight: 800; color: var(--navy); }
.stat-note  { font-size: 11px; color: var(--grey-text); margin-top: 3px; }
.empty-state { background: white; border-radius: var(--r); padding: 48px 24px; text-align: center; box-shadow: var(--shadow); }
.empty-icon  { font-size: 44px; margin-bottom: 14px; }
.empty-state h3 { font-size: 16px; color: var(--navy); font-weight: 700; margin-bottom: 6px; }
.empty-state p  { font-size: 13px; color: var(--grey-text); max-width: 340px; margin: 0 auto 20px; line-height: 1.6; }
.demo-bar { margin-top: 28px; padding: 16px; background: white; border-radius: var(--r); box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-left: 3px solid var(--amber); }
.demo-label { font-size: 12px; font-weight: 700; color: var(--amber); flex: 0 0 auto; }

/* ── REQUEST FLOW ── */
.progress-bar { display: flex; gap: 6px; margin-bottom: 28px; }
.prog-step { flex: 1; height: 4px; border-radius: 2px; background: var(--grey-line); transition: background .3s; }
.prog-step.active { background: var(--navy); }
.prog-step.done   { background: var(--amber); }
.req-step { display: none; }
.req-step.active { display: block; }
.step-label { font-size: 11px; font-weight: 700; color: var(--amber); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
.info-box   { background: var(--grey-bg); border-left: 3px solid var(--navy); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 12px 14px; font-size: 13px; color: var(--grey-text); line-height: 1.6; margin-bottom: 18px; }
.review-section-label { font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.review-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--grey-line); font-size: 13px; }
.review-row:last-of-type { border-bottom: none; }
.rv-label { color: var(--grey-text); }
.rv-val   { color: var(--navy); font-weight: 600; text-align: right; max-width: 60%; }

/* ── TIER SELECTOR ── */
.tier-selector { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-bottom: 10px; }
.tier-btn, .req-tier-btn { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 10px 8px; border: 2px solid var(--grey-line); border-radius: var(--r-sm); background: white; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--grey-text); transition: all .2s; gap: 3px; }
.tier-btn span, .req-tier-btn span { font-size: 11px; font-weight: 400; color: var(--grey-text); }
.tier-btn.active, .req-tier-btn.active { border-color: var(--navy); color: var(--navy); background: #EFF6FF; }
.tier-desc { font-size: 12px; color: var(--grey-text); line-height: 1.5; padding: 8px 0; }

/* ── CONFIRMATION ── */
.confirm-card { background: white; border-radius: 18px; padding: 40px 32px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); text-align: center; }
.confirm-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--green-pale); color: var(--green); font-size: 32px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.confirm-card h2 { font-size: 21px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.confirm-card > p { font-size: 13px; color: var(--grey-text); margin-bottom: 22px; line-height: 1.6; }
.confirm-detail { background: var(--grey-bg); border-radius: 10px; padding: 14px; font-size: 13px; color: var(--grey-text); text-align: left; margin-bottom: 18px; line-height: 1.8; }
.confirm-detail strong { color: var(--navy); display: block; font-size: 11px; margin-bottom: 1px; font-weight: 700; }
.pulse-row { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 12px; color: var(--grey-text); margin-bottom: 16px; }
.dot-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.free-warning { background: var(--amber-pale); border-radius: 8px; padding: 12px 14px; font-size: 12px; color: #92400E; line-height: 1.6; margin-bottom: 20px; }
.confirm-actions { display: flex; flex-direction: column; gap: 8px; }

/* ── VAULT ── */
.vault-tabs { display: flex; gap: 3px; background: white; border-radius: 10px; padding: 3px; width: fit-content; box-shadow: var(--shadow); margin-bottom: 20px; }
.vault-tab  { padding: 7px 16px; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; background: none; font-family: inherit; color: var(--grey-text); transition: all .2s; }
.vault-tab.active { background: var(--navy); color: white; }
.vault-actions { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--grey-line); display: flex; gap: 10px; flex-wrap: wrap; }

/* ── PAYWALL ── */
.paywall-card { background: white; border-radius: 18px; padding: 36px 32px; width: 100%; max-width: 460px; box-shadow: var(--shadow-lg); text-align: center; }
.paywall-icon { font-size: 48px; margin-bottom: 14px; }
.paywall-card h2 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.paywall-card > p { font-size: 13px; color: var(--grey-text); margin-bottom: 26px; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.pricing-opt  { border: 2px solid var(--grey-line); border-radius: 10px; padding: 16px 12px; cursor: pointer; transition: all .2s; text-align: center; position: relative; }
.pricing-opt:hover   { border-color: var(--amber); }
.pricing-opt.selected { border-color: var(--navy); background: #EFF6FF; }
.pricing-annual { margin-bottom: 16px; }
.po-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--amber); color: var(--navy-dark); font-size: 9px; font-weight: 800; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.po-badge-navy { background: var(--navy); color: white; }
.po-name  { font-size: 12px; color: var(--grey-text); font-weight: 600; margin-bottom: 5px; }
.po-price { font-size: 20px; font-weight: 800; color: var(--navy); }
.po-per   { font-size: 13px; font-weight: 400; color: var(--grey-text); }
.po-note  { font-size: 11px; color: var(--grey-text); margin-top: 3px; }
.pricing-or  { text-align: center; font-size: 12px; color: var(--grey-text); margin: 8px 0 12px; }
.paywall-note { font-size: 11px; color: var(--grey-text); margin-top: 12px; line-height: 1.5; }

/* ── COLOUR SIGNAL CHOICES (referee form) ── */
.colour-choices { display: flex; flex-direction: column; gap: 10px; }
.colour-choice  { display: flex; align-items: flex-start; gap: 14px; padding: 14px; border: 2px solid var(--grey-line); border-radius: var(--r-sm); cursor: pointer; transition: all .2s; }
.colour-choice:hover { box-shadow: var(--shadow); }
.colour-choice.selected { border-width: 2px; }
.colour-blue.selected   { border-color: var(--blue-sig);  background: #EFF6FF; }
.colour-amber.selected  { border-color: var(--amber-sig); background: #FFFBEB; }
.colour-plum.selected   { border-color: var(--plum-sig);  background: #F5F3FF; }
.cc-dot  { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; }
.cc-label { font-size: 14px; font-weight: 700; color: var(--navy); }
.cc-sub   { font-size: 12px; color: var(--grey-text); margin-top: 2px; }

/* ── EMPLOYER GATE ── */
.emp-gate-intro { font-size: 13px; color: var(--grey-text); line-height: 1.6; margin-bottom: 20px; padding: 14px; background: var(--grey-bg); border-radius: var(--r-sm); }

/* ── EMPLOYER VIEW ── */
.ev-signal-badge { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--r-sm); font-size: 15px; font-weight: 700; }
.ev-qa-item  { padding: 12px 0; border-bottom: 1px solid var(--grey-line); }
.ev-qa-item:last-child { border-bottom: none; }
.ev-qa-label { font-size: 11px; font-weight: 700; color: var(--grey-text); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px; }
.ev-qa-answer { font-size: 14px; color: var(--grey-dark); line-height: 1.6; }
.ev-conf-note { background: var(--grey-bg); border-left: 3px solid var(--navy); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 12px 14px; font-size: 12px; color: var(--grey-text); line-height: 1.6; margin-bottom: 16px; }

/* ── MODALS ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .28s; }
.modal-overlay.modal-visible { opacity: 1; }
.modal-overlay.modal-visible .modal-sheet { transform: translateY(0); }
.modal-sheet { background: white; border-radius: 20px 20px 0 0; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; padding: 16px 20px 32px; transform: translateY(100%); transition: transform .28s cubic-bezier(.32,.72,0,1); }
.modal-handle { width: 40px; height: 4px; background: var(--grey-line); border-radius: 2px; margin: 0 auto 16px; }
.modal-title  { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.modal-cancel { width: 100%; margin-top: 16px; padding: 13px; border: 1.5px solid var(--grey-line); border-radius: var(--r-sm); background: none; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--grey-text); cursor: pointer; transition: all .2s; }
.modal-cancel:hover { border-color: var(--navy); color: var(--navy); }
.modal-ref-info  { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--grey-line); }
.share-ref-name  { font-size: 14px; font-weight: 700; color: var(--navy); }
.share-ref-sub   { font-size: 12px; color: var(--grey-text); margin-top: 2px; }
.share-colour-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-top: 6px; }
.share-pending-note { font-size: 12px; color: var(--grey-text); margin-top: 6px; }

/* ── SHARE OPTIONS ── */
.share-options { display: flex; flex-direction: column; gap: 2px; }
.share-opt { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border: none; background: none; cursor: pointer; border-radius: var(--r-sm); font-family: inherit; text-align: left; width: 100%; transition: background .15s; }
.share-opt:hover { background: var(--grey-bg); }
.so-icon { font-size: 22px; width: 36px; text-align: center; flex-shrink: 0; }
.so-name { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.so-desc { font-size: 12px; color: var(--grey-text); }

/* ── DURATION BUTTONS ── */
.duration-btn { padding: 8px 20px; border: 2px solid var(--grey-line); border-radius: var(--r-sm); background: white; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--grey-text); cursor: pointer; transition: all .2s; }
.duration-btn.active { border-color: var(--navy); color: var(--navy); background: #EFF6FF; }

/* ── LINK DISPLAY ── */
.link-display { display: flex; align-items: center; gap: 10px; background: var(--grey-bg); border-radius: var(--r-sm); padding: 10px 12px; }
.link-url     { flex: 1; font-size: 12px; color: var(--navy); word-break: break-all; font-family: monospace; }

/* ── QR PLACEHOLDER ── */
.qr-placeholder { text-align: center; }
.qr-mock { width: 200px; height: 200px; border: 3px solid var(--navy); border-radius: 12px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; padding: 16px; position: relative; background: white; }
.qr-corner { width: 48px; height: 48px; border: 4px solid var(--navy); border-radius: 4px; }
.qr-tl { border-right: none; border-bottom: none; }
.qr-tr { border-left: none; border-bottom: none; justify-self: end; }
.qr-bl { border-right: none; border-top: none; align-self: end; }
.qr-br { border-left: none; border-top: none; justify-self: end; align-self: end; }
.qr-inner { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }

/* ── PACKAGE MODAL ── */
.pkg-ref-item { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1.5px solid var(--grey-line); border-radius: var(--r-sm); margin-bottom: 8px; cursor: pointer; transition: border-color .2s; font-family: inherit; font-size: 13px; }
.pkg-ref-item:hover { border-color: var(--navy); }
.pkg-checkbox { width: 16px; height: 16px; accent-color: var(--navy); flex-shrink: 0; }
.empty-note { font-size: 13px; color: var(--grey-text); line-height: 1.6; padding: 16px; background: var(--grey-bg); border-radius: var(--r-sm); }

/* ── TRACKING ── */
.track-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--grey-line); }
.track-row:last-child { border-bottom: none; }
.track-icon { font-size: 20px; width: 32px; text-align: center; flex-shrink: 0; }
.track-info { flex: 1; }
.track-recipient { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.track-meta { font-size: 12px; color: var(--grey-text); }
.track-revoked { opacity: .55; }

/* ── DEV MENU ────────────────────────────────────────────────── */
#dev-menu-fab {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 46px;
  height: 46px;
  background: var(--navy-dark);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  z-index: 9000;
  border: 2px solid var(--amber);
  user-select: none;
  transition: transform .15s;
}
#dev-menu-fab:hover { transform: scale(1.08); }

#dev-menu-panel {
  position: fixed;
  bottom: 80px;
  right: 16px;
  width: 240px;
  background: var(--navy-dark);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  z-index: 9001;
  overflow: hidden;
  display: none;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.12);
}
#dev-menu-panel.open { display: flex; }

.dev-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.dev-menu-header button {
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.dev-menu-section {
  padding: 8px 14px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
}
.dev-menu-item {
  background: none;
  border: none;
  text-align: left;
  padding: 9px 14px;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  cursor: pointer;
  font-family: inherit;
  transition: background .1s;
  border-radius: 0;
}
.dev-menu-item:hover { background: rgba(255,255,255,.08); }
.dev-menu-sim { color: var(--amber-light); }
.dev-menu-footer {
  padding: 8px 14px 10px;
  font-size: 10px;
  color: rgba(255,255,255,.25);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 4px;
}

/* ── REFERENCE TYPE SELECTOR ── */
.ref-type-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 6px;
}
.ref-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 6px;
  background: white;
  border: 2px solid var(--grey-line);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: inherit;
  transition: all .18s;
}
.ref-type-btn:hover { border-color: var(--navy); }
.ref-type-btn.active { border-color: var(--navy); background: var(--navy); }
.ref-type-btn .rt-icon  { font-size: 20px; }
.ref-type-btn .rt-label { font-size: 12px; font-weight: 700; color: var(--navy); }
.ref-type-btn .rt-sub   { font-size: 10px; color: var(--grey-text); }
.ref-type-btn.active .rt-label,
.ref-type-btn.active .rt-sub   { color: white; }

/* ── RADIO GROUPS ── */
.radio-group { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: white;
  border: 1.5px solid var(--grey-line);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color .15s;
}
.radio-option:has(input:checked) { border-color: var(--navy); background: #EEF3F9; }
.radio-option input[type=radio]  { accent-color: var(--navy); width: 16px; height: 16px; cursor: pointer; }
.radio-label { font-size: 14px; color: var(--grey-dark); font-weight: 500; }

/* ── REQUIRED STAR ── */
.req-star { color: var(--amber); font-weight: 700; }

/* ── COMPREHENSIVE TIER BUTTON ── */
.tier-btn[data-tier="comprehensive"] { position: relative; }
.tier-btn[data-tier="comprehensive"]::after {
  content: '✍️';
  position: absolute;
  top: -6px;
  right: -4px;
  font-size: 10px;
}

/* ── LETTER OF RECOMMENDATION ── */
.letter-rec-section { border: 2px solid var(--amber) !important; }
.optional-tag {
  font-size: 11px;
  font-weight: 400;
  color: var(--grey-text);
  background: var(--grey-bg);
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ── EMPLOYER VIEW — LETTER OF REC ── */
.ev-letter-rec {
  margin-top: 16px;
  padding: 16px;
  background: var(--amber-pale);
  border: 1.5px solid var(--amber);
  border-radius: var(--r-sm);
}
.ev-letter-body {
  font-size: 14px;
  line-height: 1.8;
  color: var(--grey-dark);
  font-style: italic;
  margin-top: 4px;
}

/* ── PRICING TIERS ── */
.pricing-header { text-align: center; padding: 24px 0 8px; }
.pricing-header h2 { font-size: 24px; font-weight: 900; color: var(--navy); margin-bottom: 8px; }
.pricing-header p { font-size: 14px; color: var(--grey-text); max-width: 480px; margin: 0 auto 10px; line-height: 1.5; }
.pricing-guarantee { font-size: 11px; color: var(--grey-text); background: var(--green-pale); border-radius: 20px; display: inline-block; padding: 5px 14px; font-weight: 600; }
.current-plan-banner { background: var(--navy); color: white; border-radius: var(--r); padding: 14px 18px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cpb-label { font-size: 10px; opacity: .6; text-transform: uppercase; letter-spacing: 1px; }
.cpb-name  { font-size: 16px; font-weight: 800; color: var(--amber); }
.cpb-expiry { font-size: 11px; opacity: .7; margin-top: 2px; }
.tier-card { background: white; border-radius: var(--r); padding: 20px; margin-bottom: 14px; border: 1.5px solid var(--grey-line); }
.tier-card.tier-lifetime { border-color: var(--amber); background: linear-gradient(135deg, #FFFBF5 0%, white 100%); }
.tier-card.tier-free { border-color: var(--grey-line); background: var(--grey-bg); }
.tier-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.tier-emoji  { font-size: 22px; margin-bottom: 2px; }
.tier-name   { font-size: 16px; font-weight: 800; color: var(--navy); }
.tier-price  { font-size: 22px; font-weight: 900; color: var(--navy); margin-top: 4px; }
.tier-price .tier-period { font-size: 13px; font-weight: 400; color: var(--grey-text); }
.tier-alt-price { font-size: 11px; color: var(--grey-text); margin-top: 2px; }
.tier-badge-wrap { }
.tier-badge  { font-size: 9px; font-weight: 800; letter-spacing: 1px; padding: 4px 8px; border-radius: 4px; text-transform: uppercase; white-space: nowrap; }
.tier-badge-amber { background: var(--amber); color: white; }
.tier-badge-navy  { background: var(--navy); color: white; }
.tier-badge-gold  { background: linear-gradient(135deg, #F59E0B, #D97706); color: white; }
.tier-persona { font-size: 12px; color: var(--grey-text); line-height: 1.5; margin-bottom: 12px; padding: 8px 12px; background: var(--grey-bg); border-radius: var(--r-sm); border-left: 3px solid var(--amber); }
.tier-features { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.tier-features li { font-size: 12.5px; color: var(--grey-dark); line-height: 1.4; }
.tier-feature-muted { color: var(--grey-text) !important; opacity: .7; }
.tier-refs-note { font-size: 11px; font-weight: 700; color: var(--navy); background: var(--grey-bg); padding: 6px 10px; border-radius: var(--r-sm); margin-bottom: 12px; }
.tier-btn-row { display: flex; gap: 8px; }
.tier-btn-row .btn { flex: 1; font-size: 12px; padding: 10px 8px; }
.lifetime-note { font-size: 11px; color: var(--grey-text); margin-top: 10px; line-height: 1.5; text-align: center; font-style: italic; }
.pricing-footer { text-align: center; padding: 16px 0 32px; }
.pricing-footer p { font-size: 11px; color: var(--grey-text); margin-bottom: 4px; line-height: 1.5; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .nav-username { display: none; }
  /* On mobile, hide desktop nav-actions on authenticated screens and show hamburger */
  .nav.auth-nav .nav-actions { display: none; }
  .hamburger-btn { display: flex; }
  .hero { padding: 52px 16px 60px; }
  .page-body { padding: 20px 14px; }
  .auth-card, .confirm-card, .paywall-card { padding: 28px 20px; }
  .stats-grid { grid-template-columns: 1fr; }
  .modal-sheet { border-radius: 16px 16px 0 0; }
  .tier-selector { gap: 6px; }
  .ref-type-selector { grid-template-columns: repeat(2, 1fr); }
}
