/* public/style.css */

/* =========================================================
   Base + anti-white-flash background (NO inline CSS needed)
   theme-init.js should toggle html.dark early
========================================================= */
html, body { background:#0e0e0e; }
html.dark, html.dark body { background:#0b1220; }
html.dark { color-scheme: dark; }

:root{
  --bg1:#eef2ff;
  --bg2:#f8fafc;
  --text:#0f172a;
  --muted:#64748b;

  --nav:#0b1220;
  --accent:#10b981;
  --info:#3b82f6;
  --danger:#ef4444;

  --card: rgba(255,255,255,.78);
  --card2: rgba(255,255,255,.62);
  --border: rgba(148,163,184,.28);
  --shadow: 0 30px 80px rgba(2,6,23,.12);
  --shadow2: 0 14px 34px rgba(2,6,23,.10);

  --r: 18px;
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

/* iOS: prevent zoom */
input, select, textarea{
  font-size:16px;
  line-height:1.25;
}

/* =========================================================
   Global helpers (CSP-safe utilities)
========================================================= */
.hidden{ display:none !important; }

.mt0{ margin-top:0 !important; }
.mt10{ margin-top:10px !important; }

.fs12{ font-size:12px !important; }
.fs16{ font-size:16px !important; }

.fw950{ font-weight:950 !important; }

.row-wrap-gap10{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.flex1-min180{
  flex:1;
  min-width:180px;
}

.btn-auto-min120{
  width:auto !important;
  min-width:120px;
}

/* =========================================================
   Shared NAV (used on cv-page/cv-saved, and can be reused)
========================================================= */
.navbar{
  position: sticky;
  top:0;
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  background: rgba(11,18,32,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);

  /* helps with mobile positioning of hamburger (no inline) */
  transform: translateZ(0);
}

.nav-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.logo{
  font-size:1.1rem;
  font-weight:950;
  color:#e5e7eb;
  letter-spacing:.2px;
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
  flex:0 0 auto;
}

.logo-badge{
  width:30px;
  height:30px;
  border-radius:12px;
  background: linear-gradient(135deg, rgba(16,185,129,.25), rgba(59,130,246,.20));
  border:1px solid rgba(255,255,255,.12);
  display:grid;
  place-items:center;
  color:#a7f3d0;
  font-weight:950;
  box-shadow: 0 12px 26px rgba(0,0,0,.25);
}

/* scroll tabs default */
.nav-links{
  display:flex;
  gap:10px;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width:none;
  max-width: calc(100vw - 210px);
  padding-bottom:2px;
}
.nav-links::-webkit-scrollbar{ display:none; }

.nav-link{
  color:#e5e7eb;
  text-decoration:none;
  padding:8px 12px;
  border-radius:14px;
  font-weight:850;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  transition: .15s ease;
  white-space:nowrap;
  flex:0 0 auto;
}
.nav-link:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
}
.nav-link.active{
  background: rgba(16,185,129,.22);
  border-color: rgba(16,185,129,.35);
  color:#d1fae5;
}

.account-hamburger{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  width:24px;
  height:18px;
  cursor:pointer;
  flex:0 0 auto;
}
.account-hamburger span{
  display:block;
  height:3px;
  background:#e5e7eb;
  border-radius:3px;
}

.dropdown{
  position:absolute;
  top:100%;
  right:12px;
  width:280px;
  background: rgba(15,23,42,.96);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  overflow:hidden;
  box-shadow: 0 22px 60px rgba(0,0,0,.45);
  opacity:0;
  transform: translateY(-10px);
  pointer-events:none;
  transition: .16s ease;
}
.dropdown.show{
  opacity:1;
  transform: translateY(8px);
  pointer-events:auto;
}
.dropdown button,
.dropdown a{
  width:100%;
  padding:12px 12px;
  background:none;
  border:none;
  color:#fff;
  text-align:left;
  font-weight:850;
  cursor:pointer;
  display:block;
  text-decoration:none;
}
.dropdown button:hover,
.dropdown a:hover{
  background: rgba(255,255,255,.07);
}
.dropdown .sep{
  height:1px;
  background: rgba(255,255,255,.08);
}
.whoami{
  padding:12px 12px;
  font-weight:900;
  color:#e5e7eb;
  opacity:.95;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.whoami small{
  color: rgba(226,232,240,.70);
  font-weight:800;
}

/* =========================================================
   Generic app page (cv-page)
========================================================= */
body.cv-page{
  min-height:100vh;
  background:
    radial-gradient(1200px 700px at 20% 0%, #dbeafe 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 20%, #dcfce7 0%, transparent 60%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
  color: var(--text);
}

.wrap{
  max-width:980px;
  margin:18px auto;
  padding: 0 14px 28px;
}

.panel{
  background: var(--card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 16px;
}

.panel.soft{
  background: var(--card2);
  box-shadow: var(--shadow2);
}

.h1{
  font-size:22px;
  font-weight:950;
  letter-spacing:.2px;
}

.sub{
  margin-top:6px;
  color: var(--muted);
  font-weight:800;
  line-height:1.35;
}

.grid{
  display:grid;
  grid-template-columns: 1fr .55fr;
  gap:14px;
  margin-top: 14px;
  align-items:start;
}

.field{
  width:100%;
  padding:14px;
  border-radius:16px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.75);
  font-weight:850;
  color: var(--text);
  outline:none;
}

.qr-reader{
  width:100%;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.55);
  margin-top: 12px;
}

.card{
  background: rgba(255,255,255,.65);
  border:1px solid var(--border);
  border-radius: var(--r);
  padding: 14px;
  margin-top: 12px;
}

.btn{
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #0f172a;
  color:#fff;
  font-weight:950;
  cursor:pointer;
  transition:.15s ease;
  width:100%;
}
.btn:hover{ transform: translateY(-1px); }
.btn.green{
  background: rgba(16,185,129,.18);
  color:#065f46;
  border-color: rgba(16,185,129,.28);
}

/* =========================================================
   Auth (login/register)
========================================================= */
.cv-auth{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background: linear-gradient(180deg, #0e0e0e, #141414);
  color:#fff;
}

.auth-card{
  width: 360px;
  max-width: 100%;
  padding: 32px;
  border-radius: 16px;
  background: #1b1b1b;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  text-align:center;
  border: 1px solid rgba(255,255,255,.08);
}

.auth-logo{
  width:120px;
  height:auto;
  margin: 0 auto 18px;
  display:block;
}

.auth-title{
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 18px;
}

.auth-form{ width:100%; }
.auth-field{ margin-bottom: 14px; }

.auth-input{
  width:100%;
  padding:14px;
  border-radius:10px;
  border: 1px solid #333;
  background:#101010;
  color:#fff;
  font-weight: 800;
  outline:none;
  font-size:16px; /* prevents iOS zoom */
}

.auth-input:focus{
  border-color: rgba(61,220,132,.7);
  box-shadow: 0 0 0 4px rgba(61,220,132,.15);
}

.auth-btn{
  width:100%;
  padding:14px;
  border-radius:12px;
  border:none;
  background: linear-gradient(135deg, #4CAF50, #3ddc84);
  font-weight: 900;
  cursor:pointer;
  margin-top:10px;
  transition: .2s;
  color:#08130d;
}
.auth-btn:hover:disabled{ transform:none; }
.auth-btn:hover:not(:disabled){
  filter: brightness(1.03);
  transform: translateY(-1px);
}
.auth-btn:disabled{
  opacity:.5;
  cursor:not-allowed;
}

.auth-forgot{
  margin-top:10px;
  font-size:.85rem;
  color:#a7a7a7;
}

.auth-link{
  color:#3ddc84;
  text-decoration:none;
  font-weight:900;
}
.auth-link:hover{ text-decoration:underline; }

.auth-toggle{
  margin-top:16px;
  font-size:.9rem;
  color:#aaa;
  cursor:pointer;
  background:none;
  border:none;
  padding:0;
  font-weight: 800;
}
.auth-toggle:hover{ color:#3ddc84; }

.auth-msg{
  margin-top:12px;
  font-size:.85rem;
  min-height: 18px;
}
.auth-error{ color:#ff6b6b; }
.auth-success{ color:#4CAF50; }

/* =========================================================
   Saved Cards (cv-saved)
========================================================= */
body.cv-saved{
  min-height:100vh;
  background:
    radial-gradient(1200px 700px at 20% 0%, #dbeafe 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 20%, #dcfce7 0%, transparent 60%),
    linear-gradient(135deg,var(--bg1),var(--bg2));
  color:var(--text);
  overflow-x:hidden;
}

body.cv-saved .wrap{ max-width: 1060px; margin: 18px auto; padding: 0 14px 28px; }
body.cv-saved .panel{
  background: var(--card);
  backdrop-filter: blur(14px);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 16px;
  overflow:hidden;
}
body.cv-saved h1{ font-size:22px; font-weight:950; letter-spacing:.2px; }
body.cv-saved .sub{ color:var(--muted); font-weight:800; margin-top:6px; line-height:1.35; }

body.cv-saved .toolbar{
  display:flex; gap:10px; flex-wrap:wrap;
  margin:14px 0 12px;
}
body.cv-saved .toolbar input{
  flex:1; min-width: 220px;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  font-weight:900;
  outline:none;
}
body.cv-saved .toolbar input:focus{
  border-color: rgba(16,185,129,.55);
  box-shadow: 0 0 0 4px rgba(16,185,129,.12);
}

body.cv-saved .btn{
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--border);
  background:#0f172a;
  color:#fff;
  font-weight:950;
  cursor:pointer;
  transition:.15s ease;
  width:auto;
}
body.cv-saved .btn:hover{ transform: translateY(-1px); }
body.cv-saved .btn.ghost{
  background: rgba(255,255,255,.70);
  color: var(--text);
}

body.cv-saved .summary{
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 950;
  color: var(--text);
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 16px;
  overflow-wrap:anywhere;
}

body.cv-saved .notice{
  margin-top: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.78);
  font-weight: 900;
}
body.cv-saved .notice.error{ border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.10); color:#991b1b; }
body.cv-saved .notice.ok{ border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.10); color:#065f46; }

body.cv-saved .table-wrap{ width:100%; overflow:hidden; border-radius:16px; }
body.cv-saved table{ width:100%; border-collapse: collapse; table-layout: fixed; overflow:hidden; border-radius:16px; }
body.cv-saved thead th{
  text-align:left;
  font-size:12px;
  color:var(--muted);
  padding:12px;
  background: rgba(243,244,246,.9);
  white-space:nowrap;
}
body.cv-saved tbody td{
  padding:12px;
  border-top:1px solid rgba(229,231,235,.65);
  vertical-align: middle;
  overflow:hidden;
  text-overflow: ellipsis;
}

body.cv-saved th.saved, body.cv-saved td.saved{ width: 150px; }
body.cv-saved th.money, body.cv-saved td.money{ width: 120px; text-align:right; }
body.cv-saved th.profit, body.cv-saved td.profit{ width: 230px; }
body.cv-saved th.action, body.cv-saved td.action{ width: 110px; text-align:right; }

body.cv-saved .saved-wrap{ display:flex; flex-direction:column; gap:2px; }
body.cv-saved .saved-date{ font-weight:950; }
body.cv-saved .saved-time{ font-size:12px; font-weight:850; color:var(--muted); }

body.cv-saved .pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  font-weight:950; font-size:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.75);
  white-space:nowrap;
}
body.cv-saved .pill.pos{
  border-color: rgba(16,185,129,.35);
  background: rgba(16,185,129,.10);
  color:#065f46;
}
body.cv-saved .pill.neg{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.10);
  color:#991b1b;
}

body.cv-saved .small{
  padding:10px 12px; border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.78);
  font-weight:950;
  cursor:pointer;
  white-space:nowrap;
}
body.cv-saved .small.danger{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.10);
  color:#991b1b;
}

body.cv-saved .card-meta{
  color:var(--muted);
  font-size:12px;
  overflow-wrap:anywhere;
}

/* mobile */
body.cv-saved .mobile-list{ display:none; gap:12px; margin-top: 10px; }
body.cv-saved .mcard{
  background: rgba(255,255,255,.78);
  border:1px solid var(--border);
  border-radius:18px;
  padding:14px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  overflow-wrap:anywhere;
}
body.cv-saved .m-top{ display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
body.cv-saved .m-left{ min-width:0; }
body.cv-saved .m-title{ font-weight:950; font-size:15px; line-height:1.2; }
body.cv-saved .m-sub{ color:var(--muted); font-weight:850; font-size:12px; margin-top:6px; }
body.cv-saved .m-saved{ margin-top:8px; }
body.cv-saved .m-grid{ margin-top:12px; display:grid; grid-template-columns:1fr 1fr; gap:10px; }
body.cv-saved .m-box{
  border:1px solid rgba(229,231,235,.65);
  border-radius:14px;
  padding:10px;
  background: rgba(243,244,246,0.45);
}
body.cv-saved .m-label{ font-size:11px; color:var(--muted); font-weight:950; }
body.cv-saved .m-val{ margin-top:4px; font-weight:950; }
body.cv-saved .m-actions{ margin-top:12px; display:flex; gap:10px; }
body.cv-saved .m-actions button{ width:100%; }

body.cv-saved .center{ text-align:center; padding:30px 14px; color:#374151; font-weight:950; }

/* =========================================================
   Settings add-on (missing utility classes, no redesign)
========================================================= */
.row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.k{
  border:1px solid var(--border);
  background: rgba(255,255,255,.65);
  border-radius: 16px;
  padding: 12px;
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top: 12px;
}

.label{
  color: var(--muted);
  font-weight:900;
  font-size:12px;
}

.value{ font-weight:950; }

.pill.good{
  border-color: rgba(16,185,129,.32);
  background: rgba(16,185,129,.10);
  color:#065f46;
}

.pill.neutral{
  border-color: rgba(148,163,184,.30);
  background: rgba(255,255,255,.55);
  color:#0f172a;
}

/* Buttons used on Settings billing panel */
.btn.ghost{
  background: rgba(255,255,255,.85);
  color:#0f172a;
}

.btn.blue{
  background: rgba(59,130,246,.16);
  color:#1e40af;
  border-color: rgba(59,130,246,.28);
}

.btn.danger{
  background: rgba(239,68,68,.12);
  color:#991b1b;
  border-color: rgba(239,68,68,.22);
}

/* Notice banner on settings */
.notice{
  margin-top: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  font-weight: 900;
  display:none;
}
.notice.show{ display:block; }
.notice.error{
  border-color: rgba(239,68,68,.30);
  background: rgba(239,68,68,.10);
  color:#991b1b;
}
.notice.ok{
  border-color: rgba(16,185,129,.30);
  background: rgba(16,185,129,.10);
  color:#065f46;
}

/* Settings password inputs */
.inp{
  width:100%;
  border:1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(255,255,255,.65);
  font-weight: 900;
  outline:none;
}

.hint{
  font-size: 12px;
  font-weight: 850;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 8px;
}

/* =========================================================
   PAYWALL — scoped to avoid conflicts (keep styling)
========================================================= */
body.cv-paywall{
  --bg0:#070b12;
  --bg1:#0b1220;
  --bg2:#0f172a;

  --text:#e5e7eb;
  --muted: rgba(226,232,240,.72);

  --accent:#10b981;
  --info:#3b82f6;
  --danger:#fb7185;

  --card: rgba(255,255,255,.07);
  --border: rgba(255,255,255,.12);
  --shadow: 0 30px 80px rgba(0,0,0,.50);
  --radius: 22px;

  min-height:100vh;
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(59,130,246,.18) 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(16,185,129,.16) 0%, transparent 60%),
    linear-gradient(135deg,var(--bg1),var(--bg0));
  color:var(--text);
  overflow-x:hidden;
}

body.cv-paywall:before{
  content:"";
  position:fixed; inset:0;
  background:
    radial-gradient(500px 300px at 12% 75%, rgba(99,102,241,.12), transparent 60%),
    radial-gradient(550px 320px at 90% 85%, rgba(16,185,129,.10), transparent 62%);
  pointer-events:none;
  mix-blend-mode: overlay;
}

/* Topbar */
body.cv-paywall .topbar{
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 14px 6px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

body.cv-paywall .brand-mini{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 950;
  letter-spacing:.2px;
  color: rgba(226,232,240,.92);
  white-space:nowrap;
}

body.cv-paywall .logo-badge-mini{
  width:34px; height:34px;
  border-radius: 14px;
  display:grid; place-items:center;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(16,185,129,.18), rgba(59,130,246,.16));
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}

body.cv-paywall .top-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}

body.cv-paywall .back-btn{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: rgba(226,232,240,.92);
  font-weight: 900;
  font-size: 12px;
  transition: .16s ease;
  -webkit-tap-highlight-color: transparent;
}
body.cv-paywall .back-btn:hover{ transform: translateY(-1px); background: rgba(0,0,0,.28); }
body.cv-paywall .back-btn:active{ transform: translateY(0px); }

/* Layout */
body.cv-paywall .container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 14px 28px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items:start;
}

/* Panels */
body.cv-paywall .panel{
  position:relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow:hidden;
}

body.cv-paywall .panel .glow{
  position:absolute; inset:-2px;
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(59,130,246,.20), transparent 60%),
    radial-gradient(700px 420px at 90% 0%, rgba(16,185,129,.18), transparent 60%);
  pointer-events:none;
  opacity:.85;
}

/* Left */
body.cv-paywall .left{ padding: 18px; }

body.cv-paywall .brand{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 10px;
}

body.cv-paywall .logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 950;
  letter-spacing:.2px;
}

body.cv-paywall .logo-badge{
  width:38px; height:38px;
  border-radius: 16px;
  display:grid; place-items:center;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(16,185,129,.18), rgba(59,130,246,.16));
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}

body.cv-paywall .pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: rgba(226,232,240,.86);
  font-weight: 900;
  font-size: 12px;
  white-space:nowrap;
}

body.cv-paywall .pill .dot{
  width:9px; height:9px; border-radius:999px;
  background: rgba(16,185,129,.95);
  box-shadow: 0 0 0 4px rgba(16,185,129,.14);
}

body.cv-paywall h1{
  margin-top: 10px;
  font-size: 34px;
  line-height:1.05;
  letter-spacing: -.4px;
  font-weight: 950;
}

body.cv-paywall .lead{
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
  font-size: 14px;
  max-width: 56ch;
}

body.cv-paywall .features{
  margin-top: 16px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

body.cv-paywall .feat{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  border-radius: 18px;
  padding: 12px 12px;
  display:flex;
  gap: 12px;
  align-items:flex-start;
}

body.cv-paywall .ic{
  width:40px; height:40px;
  border-radius: 16px;
  display:grid; place-items:center;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(16,185,129,.14));
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  flex: 0 0 auto;
}

body.cv-paywall .ft{ font-weight: 950; letter-spacing:.2px; }

body.cv-paywall .fs{
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.5;
}

body.cv-paywall .foot{
  margin-top: 14px;
  color: rgba(226,232,240,.60);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.5;
}

/* Right */
body.cv-paywall .right{
  padding: 18px;
  position:relative;
}

body.cv-paywall .right-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  margin-bottom: 12px;
}

body.cv-paywall .right-head .t{
  font-weight: 950;
  font-size: 16px;
  letter-spacing:.2px;
}

body.cv-paywall .right-head .s{
  margin-top:6px;
  color: rgba(226,232,240,.68);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.35;
  max-width: 44ch;
}

body.cv-paywall .badge2{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(16,185,129,.22);
  background: rgba(16,185,129,.08);
  color: rgba(167,243,208,.95);
  font-weight: 950;
  font-size: 12px;
  white-space:nowrap;
}

/* Premium lock */
body.cv-paywall .premium-lock{
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(135deg, rgba(59,130,246,.16), rgba(16,185,129,.10));
  display:none;
}
body.cv-paywall .premium-lock.show{ display:block; }

body.cv-paywall .pl-top{
  display:flex;
  align-items:flex-start;
  gap: 12px;
}

body.cv-paywall .pl-icon{
  width:42px; height:42px;
  border-radius: 16px;
  display:grid; place-items:center;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  box-shadow: 0 18px 50px rgba(0,0,0,.30);
  font-size: 18px;
  flex: 0 0 auto;
}

body.cv-paywall .pl-title{
  font-weight: 950;
  font-size: 14px;
  letter-spacing: .2px;
}

body.cv-paywall .pl-sub{
  margin-top: 6px;
  color: rgba(226,232,240,.74);
  font-weight: 850;
  font-size: 12px;
  line-height: 1.35;
}

body.cv-paywall .pl-row{
  margin-top: 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

body.cv-paywall .pl-hint{
  color: rgba(226,232,240,.70);
  font-weight: 800;
  font-size: 12px;
  line-height:1.35;
}
body.cv-paywall .pl-row .pl-hint{ flex: 1 1 auto; }

body.cv-paywall .pl-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  font-weight: 950;
  font-size: 12px;
  white-space:nowrap;
}
body.cv-paywall .pl-pill .dot{
  width:8px; height:8px; border-radius:999px;
  background: rgba(251,113,133,.95);
  box-shadow: 0 0 0 4px rgba(251,113,133,.15);
}

/* Plans */
body.cv-paywall .plans{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

body.cv-paywall .plan{
  width:100%;
  text-align:left;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: var(--text);
  cursor:pointer;
  transition: .16s ease;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
  -webkit-tap-highlight-color: transparent;
}

body.cv-paywall .plan:hover{ transform: translateY(-1px); background: rgba(0,0,0,.24); }
body.cv-paywall .plan:active{ transform: translateY(0px); }
body.cv-paywall .plan:disabled{
  opacity:.65;
  cursor:not-allowed;
  transform:none !important;
}

body.cv-paywall .plan.featured{
  border-color: rgba(16,185,129,.22);
  background: linear-gradient(135deg, rgba(16,185,129,.11), rgba(59,130,246,.08));
}

body.cv-paywall .pL{ display:flex; flex-direction:column; gap:8px; }

body.cv-paywall .pTop{
  display:flex; align-items:center; gap:10px;
  font-weight: 950;
}

body.cv-paywall .dot{ width:10px; height:10px; border-radius:999px; }
body.cv-paywall .dot.green{ background: rgba(16,185,129,.95); box-shadow: 0 0 0 4px rgba(16,185,129,.14); }
body.cv-paywall .dot.blue{ background: rgba(59,130,246,.95); box-shadow: 0 0 0 4px rgba(59,130,246,.14); }
body.cv-paywall .dot.pink{ background: rgba(251,113,133,.95); box-shadow: 0 0 0 4px rgba(251,113,133,.14); }

body.cv-paywall .pDesc{
  color: rgba(226,232,240,.72);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.35;
}

body.cv-paywall .price{
  font-weight: 950;
  font-size: 16px;
  white-space:nowrap;
  margin-top: 2px;
}
body.cv-paywall .price small{
  color: rgba(226,232,240,.62);
  font-weight: 850;
  font-size: 12px;
}

body.cv-paywall .msg{
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.16);
  color: rgba(226,232,240,.90);
  font-weight: 850;
  font-size: 12px;
  line-height: 1.35;
  display:none;
}
body.cv-paywall .msg.show{ display:block; }
body.cv-paywall .msg.error{
  color: rgba(251,113,133,.95);
  border-color: rgba(251,113,133,.22);
  background: rgba(251,113,133,.08);
}

/* Optional: equal-height columns */
@media (min-width: 981px){
  body.cv-paywall .container{ align-items: stretch; }
  body.cv-paywall .panel{ height: 100%; }
}

/* Responsive */
@media (max-width: 980px){
  body.cv-paywall .container{ grid-template-columns: 1fr; }
  body.cv-paywall h1{ font-size: 30px; }
}

@media (max-width: 640px){
  body.cv-paywall .topbar{ padding: 14px 12px 6px; }
  body.cv-paywall .container{ padding: 12px 12px 22px; }
  body.cv-paywall .left,
  body.cv-paywall .right{ padding: 14px; }
  body.cv-paywall .plan{ padding: 13px; }
  body.cv-paywall .back-btn{ width:100%; justify-content:center; }
  body.cv-paywall .top-actions{ width:100%; }
}

/* =========================================================
   ADMIN — scoped to avoid conflicts (keep styling)
========================================================= */
body.cv-admin{
  min-height:100vh;
  background:
    radial-gradient(1200px 700px at 20% 0%, #dbeafe 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 20%, #dcfce7 0%, transparent 60%),
    linear-gradient(135deg,var(--bg1),var(--bg2));
  color:var(--text);
}

/* ===== NAV ===== */
body.cv-admin .navbar{
  position:sticky; top:0; z-index:100;
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  background: rgba(11,18,32,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
body.cv-admin .nav-left{ display:flex; align-items:center; gap:12px; min-width:0; }
body.cv-admin .logo{
  font-size:1.1rem; font-weight:950;
  color:#e5e7eb; letter-spacing:.2px;
  display:flex; align-items:center; gap:10px;
  white-space:nowrap;
}
body.cv-admin .logo-badge{
  width:30px; height:30px; border-radius:12px;
  background: linear-gradient(135deg, rgba(16,185,129,.25), rgba(59,130,246,.20));
  border:1px solid rgba(255,255,255,.12);
  display:grid; place-items:center;
  color:#a7f3d0; font-weight:950;
  box-shadow: 0 12px 26px rgba(0,0,0,.25);
}
body.cv-admin .nav-links{ display:flex; gap:10px; flex-wrap:wrap; }
body.cv-admin .nav-link{
  color:#e5e7eb;
  text-decoration:none;
  padding:8px 12px;
  border-radius:14px;
  font-weight:850;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  transition: .15s ease;
}
body.cv-admin .nav-link:hover{ transform: translateY(-1px); background: rgba(255,255,255,.08); }
body.cv-admin .nav-link.active{
  background: rgba(16,185,129,.22);
  border-color: rgba(16,185,129,.35);
  color:#d1fae5;
}

body.cv-admin .account-hamburger{
  display:flex; flex-direction:column; justify-content:space-between;
  width:24px; height:18px; cursor:pointer; flex:0 0 auto;
}
body.cv-admin .account-hamburger span{ display:block; height:3px; background:#e5e7eb; border-radius:3px; }

body.cv-admin .dropdown{
  position:absolute; top:100%; right:12px; width:280px;
  background: rgba(15,23,42,.96);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px; overflow:hidden;
  box-shadow: 0 22px 60px rgba(0,0,0,.45);
  opacity:0; transform: translateY(-10px); pointer-events:none;
  transition: .16s ease;
}
body.cv-admin .dropdown.show{ opacity:1; transform: translateY(8px); pointer-events:auto; }
body.cv-admin .dropdown button,
body.cv-admin .dropdown a{
  width:100%;
  padding:12px 12px;
  background:none; border:none;
  color:#fff; text-align:left;
  font-weight:850;
  cursor:pointer;
  display:block;
  text-decoration:none;
}
body.cv-admin .dropdown button:hover,
body.cv-admin .dropdown a:hover{ background: rgba(255,255,255,.07); }
body.cv-admin .dropdown .sep{ height:1px; background: rgba(255,255,255,.08); }
body.cv-admin .whoami{
  padding:12px 12px;
  font-weight:900;
  color:#e5e7eb;
  opacity:.95;
  display:flex; flex-direction:column; gap:6px;
}
body.cv-admin .whoami small{ color:rgba(226,232,240,.70); font-weight:800; }

/* ===== LAYOUT ===== */
body.cv-admin .wrap{ max-width:1180px; margin: 18px auto; padding: 0 14px 28px; }

body.cv-admin .panel{
  background: var(--card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 16px;
}
body.cv-admin .panel.soft{
  background: var(--card2);
  box-shadow: var(--shadow2);
}

body.cv-admin .h1{ font-size: 22px; font-weight: 950; letter-spacing: .2px; }
body.cv-admin .sub{ margin-top:6px; color: var(--muted); font-weight: 800; line-height:1.35; }

/* Row 1 */
body.cv-admin .top-row1{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap:14px;
  align-items:stretch;
  margin-top: 14px;
}
body.cv-admin .overview-panel{ display:flex; flex-direction:column; justify-content:space-between; }

body.cv-admin .kpis{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
  margin-top:12px;
}
body.cv-admin .kpis-3{ grid-template-columns: repeat(3, 1fr); }

body.cv-admin .kpi{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,.60);
  display:flex;
  flex-direction:column;
  gap:6px;
  min-height: 92px;
}
body.cv-admin .kpi .label{ color:var(--muted); font-weight:900; font-size:12px; letter-spacing:.2px; }
body.cv-admin .kpi .value{ font-weight:950; font-size:20px; }
body.cv-admin .kpi .hint{ color:var(--muted); font-weight:850; font-size:12px; }

body.cv-admin .toolbar{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-top: 12px;
}
body.cv-admin .input{
  flex:1; min-width:240px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.88);
  font-weight:900;
  outline:none;
}

body.cv-admin .btn{
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #0f172a;
  color:#fff;
  font-weight:950;
  cursor:pointer;
  transition:.15s ease;
  -webkit-tap-highlight-color: transparent;
}
body.cv-admin .btn:hover{ transform: translateY(-1px); }
body.cv-admin .btn.ghost{ background: rgba(255,255,255,.78); color:#0f172a; }
body.cv-admin .btn.ok{ background: rgba(16,185,129,.12); color:#065f46; border-color: rgba(16,185,129,.25); }

body.cv-admin .notice{
  margin-top: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  font-weight: 900;
  display:none;
}
body.cv-admin .notice.show{ display:block; }
body.cv-admin .notice.error{ border-color: rgba(239,68,68,.30); background: rgba(239,68,68,.10); color:#991b1b; }
body.cv-admin .notice.ok{ border-color: rgba(16,185,129,.30); background: rgba(16,185,129,.10); color:#065f46; }

/* Pills */
body.cv-admin .pill{
  display:inline-flex; align-items:center; gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 950;
  font-size: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.65);
  white-space:nowrap;
}
body.cv-admin .pill.admin{ border-color: rgba(16,185,129,.32); background: rgba(16,185,129,.10); color:#065f46; }
body.cv-admin .pill.user{ border-color: rgba(59,130,246,.32); background: rgba(59,130,246,.10); color:#1e40af; }
body.cv-admin .pill.good{ border-color: rgba(16,185,129,.32); background: rgba(16,185,129,.10); color:#065f46; }
body.cv-admin .pill.bad{ border-color: rgba(239,68,68,.32); background: rgba(239,68,68,.10); color:#991b1b; }
body.cv-admin .pill.neutral{ border-color: rgba(148,163,184,.30); background: rgba(255,255,255,.55); color:#0f172a; }

/* Invite hero */
body.cv-admin .invite-hero{ margin-top: 14px; }
body.cv-admin .invite-panel .h1{ display:flex; align-items:center; gap:10px; }
body.cv-admin .invite-icon{
  width:34px; height:34px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16,185,129,.18), rgba(59,130,246,.14));
  border: 1px solid rgba(148,163,184,.25);
  display:grid;
  place-items:center;
  box-shadow: 0 10px 22px rgba(2,6,23,.10);
  font-size: 16px;
}
body.cv-admin .invite-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
body.cv-admin .invite-actions-top{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
  margin-top:0;
}
body.cv-admin .invite-hero-grid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  align-items:start;
}
body.cv-admin .invite-controls,
body.cv-admin .invite-db{
  display:flex;
  flex-direction:column;
  gap:12px;
}
body.cv-admin .invite-grid{
  margin-top: 0;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
body.cv-admin .invite-grid .input{ min-width: 0; }

body.cv-admin .invite-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding: 0 2px;
}
body.cv-admin .invite-tip{
  color: var(--muted);
  font-weight: 850;
  font-size: 12px;
  line-height: 1.35;
}

body.cv-admin .invite-output,
body.cv-admin .invite-list{
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.30);
  background: rgba(255,255,255,.70);
  overflow:hidden;
}

body.cv-admin .invite-output-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 10px 12px;
  background: rgba(241,245,249,.88);
  border-bottom: 1px solid rgba(148,163,184,.22);
}
body.cv-admin .invite-meta{
  color: var(--muted);
  font-weight: 850;
  font-size: 12px;
  white-space:nowrap;
}
body.cv-admin .mono{
  width:100%;
  min-height: 120px;
  resize: vertical;
  padding: 12px 12px;
  border:0;
  border-radius:0;
  background: transparent;
  font-weight: 900;
  outline:none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.35;
  color:#0f172a;
}

body.cv-admin .inv-list-body{ max-height: 360px; overflow:auto; }

body.cv-admin .inv-row{
  display:grid;
  grid-template-columns: 1.15fr .9fr .9fr 1fr auto;
  gap:10px;
  padding: 10px 12px;
  border-top: 1px solid rgba(148,163,184,.18);
  align-items:center;
}
body.cv-admin .inv-row:first-child{ border-top:0; }

body.cv-admin .inv-k{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
  color:#0f172a;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.cv-admin .inv-meta2{
  font-size:12px;
  font-weight:850;
  color: var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.cv-admin .inv-del{
  border: 1px solid rgba(239,68,68,.25);
  background: rgba(239,68,68,.10);
  color:#991b1b;
  font-weight:950;
  border-radius: 14px;
  padding: 9px 10px;
  cursor:pointer;
  white-space:nowrap;
  transition:.12s ease;
}
body.cv-admin .inv-del:hover{ transform: translateY(-1px); }

/* Users table */
body.cv-admin .table-wrap{
  margin-top: 14px;
  overflow:hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.68);
}
body.cv-admin table{
  width:100%;
  border-collapse: collapse;
  table-layout: fixed;
}
body.cv-admin thead th{
  text-align:left;
  font-size: 12px;
  color: #475569;
  padding: 12px;
  background: rgba(241,245,249,.92);
  white-space:nowrap;
  font-weight: 950;
  letter-spacing: .2px;
}
body.cv-admin tbody td{
  padding: 12px;
  border-top: 1px solid rgba(148,163,184,.20);
  vertical-align: middle;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.cv-admin th.usercol, body.cv-admin td.usercol { width: 42%; }
body.cv-admin th.rolecol, body.cv-admin td.rolecol { width: 12%; }
body.cv-admin th.plancol, body.cv-admin td.plancol { width: 18%; }
body.cv-admin th.excol, body.cv-admin td.excol { width: 18%; }
body.cv-admin th.actcol, body.cv-admin td.actcol { width: 10%; }

body.cv-admin .row-click{ cursor:pointer; transition: .12s ease; }
body.cv-admin .row-click:hover{ background: rgba(16,185,129,.06); }

body.cv-admin .user-title{ font-weight: 950; }
body.cv-admin .user-sub{ color:var(--muted); font-size:12px; font-weight:850; margin-top:4px; }

body.cv-admin .manage-btn{
  width:100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.30);
  background: rgba(15,23,42,.06);
  color:#0f172a;
  font-weight: 950;
  cursor:pointer;
  transition:.12s ease;
  white-space:nowrap;
}
body.cv-admin .manage-btn:hover{
  transform: translateY(-1px);
  background: rgba(16,185,129,.12);
  border-color: rgba(16,185,129,.25);
}

/* Mobile cards */
body.cv-admin .mobile-list{ display:none; gap:12px; margin-top: 14px; }
body.cv-admin .mcard{
  background: rgba(255,255,255,.75);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow2);
  cursor:pointer;
  transition:.12s ease;
}
body.cv-admin .mcard:hover{ transform: translateY(-1px); }
body.cv-admin .m-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
body.cv-admin .m-name{ font-weight: 950; font-size: 15px; line-height: 1.2; }
body.cv-admin .m-email{ margin-top:6px; color:var(--muted); font-weight:850; font-size:12px; word-break:break-word; }
body.cv-admin .m-meta{ margin-top:10px; display:flex; gap:8px; flex-wrap:wrap; }

/* Drawer */
body.cv-admin .drawer-overlay{
  position:fixed; inset:0;
  background: rgba(2,6,23,.45);
  opacity:0; pointer-events:none;
  transition:.16s ease;
  z-index:200;
}
body.cv-admin .drawer-overlay.show{ opacity:1; pointer-events:auto; }

body.cv-admin .drawer{
  position:fixed; top:0; right:0; height:100vh;
  width: 420px; max-width: 92vw;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-left: 1px solid var(--border);
  box-shadow: -30px 0 80px rgba(2,6,23,.18);
  transform: translateX(102%);
  transition: .18s ease;
  z-index:210;
  display:flex;
  flex-direction:column;
}
body.cv-admin .drawer.show{ transform: translateX(0); }

body.cv-admin .drawer-head{
  padding:14px 14px 10px;
  border-bottom: 1px solid rgba(148,163,184,.22);
  display:flex; align-items:flex-start; justify-content:space-between; gap:10px;
}
body.cv-admin .drawer-title{ font-weight: 950; font-size: 16px; line-height:1.2; }
body.cv-admin .drawer-sub{
  margin-top:6px;
  color: var(--muted);
  font-weight: 850;
  font-size: 12px;
  word-break:break-word;
}
body.cv-admin .drawer-close{
  border:1px solid rgba(148,163,184,.35);
  background: rgba(255,255,255,.7);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 950;
  cursor:pointer;
}

body.cv-admin .drawer-body{
  padding: 14px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:12px;
}

body.cv-admin .drawer-card{
  border:1px solid rgba(148,163,184,.25);
  background: rgba(255,255,255,.75);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow2);
}

body.cv-admin .drawer-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
body.cv-admin .drawer-row + .drawer-row{ margin-top:10px; }

body.cv-admin .drawer-actions{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin-top: 10px;
}
body.cv-admin .drawer-actions .small{ width:100%; text-align:center; }

body.cv-admin .small{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.78);
  font-weight: 950;
  cursor:pointer;
  transition:.12s ease;
  white-space:nowrap;
}
body.cv-admin .small:hover{ transform: translateY(-1px); }
body.cv-admin .small.ok{ border-color: rgba(16,185,129,.25); background: rgba(16,185,129,.10); color:#065f46; }
body.cv-admin .small.danger{ border-color: rgba(239,68,68,.25); background: rgba(239,68,68,.10); color:#991b1b; }
body.cv-admin .small.blue{ border-color: rgba(59,130,246,.25); background: rgba(59,130,246,.10); color:#1e40af; }
body.cv-admin .wide{ grid-column: 1 / -1; }

body.cv-admin .field{
  width:100%;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.30);
  background: rgba(255,255,255,.88);
  font-weight: 900;
  outline:none;
}

/* =========================================================
   FORGOT PASSWORD (CSP-safe, scoped)
========================================================= */
body.cv-forgot{
  min-height:100vh;
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(59,130,246,.18) 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(16,185,129,.16) 0%, transparent 60%),
    linear-gradient(135deg,#0b1220,#070b12);
  color:#e5e7eb;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}

body.cv-forgot .cv-forgot-card{
  width:min(520px, 100%);
  border-radius:20px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,.50);
  overflow:hidden;
  position:relative;
}

body.cv-forgot .cv-forgot-glow{
  position:absolute; inset:-2px;
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(59,130,246,.22), transparent 60%),
    radial-gradient(700px 420px at 90% 0%, rgba(16,185,129,.20), transparent 60%);
  pointer-events:none;
  opacity:.85;
}

body.cv-forgot .cv-forgot-inner{ padding:18px; position:relative; }

body.cv-forgot .cv-forgot-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

body.cv-forgot .cv-forgot-logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:950;
  letter-spacing:.2px;
}

body.cv-forgot .cv-forgot-badge{
  width:38px; height:38px;
  border-radius:16px;
  display:grid; place-items:center;
  border:1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(16,185,129,.18), rgba(59,130,246,.16));
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}

body.cv-forgot .cv-forgot-back{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: rgba(226,232,240,.92);
  font-weight:900;
  font-size:12px;
  transition:.16s ease;
}
body.cv-forgot .cv-forgot-back:hover{ transform: translateY(-1px); background: rgba(0,0,0,.28); }

body.cv-forgot .cv-forgot-h1{
  margin-top:14px;
  font-size:28px;
  line-height:1.05;
  letter-spacing:-.3px;
  font-weight:950;
}

body.cv-forgot .cv-forgot-sub{
  margin-top:10px;
  color: rgba(226,232,240,.72);
  font-weight:800;
  line-height:1.55;
  font-size:13px;
  max-width:60ch;
}

body.cv-forgot .cv-forgot-form{
  margin-top:14px;
  display:grid;
  gap:10px;
}

body.cv-forgot .cv-forgot-input{
  width:100%;
  padding:14px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  color:#e5e7eb;
  font-weight:850;
  outline:none;
}

body.cv-forgot .cv-forgot-btn{
  width:100%;
  padding:14px 14px;
  border-radius:16px;
  border:1px solid rgba(16,185,129,.22);
  background: linear-gradient(135deg, rgba(16,185,129,.18), rgba(59,130,246,.12));
  color: rgba(226,232,240,.95);
  font-weight:950;
  cursor:pointer;
  transition:.16s ease;
}
body.cv-forgot .cv-forgot-btn:hover{ transform: translateY(-1px); }
body.cv-forgot .cv-forgot-btn:disabled{ opacity:.6; cursor:not-allowed; transform:none; }

body.cv-forgot .cv-forgot-msg{
  margin-top:10px;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.16);
  color: rgba(226,232,240,.90);
  font-weight:850;
  font-size:12px;
  line-height:1.35;
  display:none;
}
body.cv-forgot .cv-forgot-msg.show{ display:block; }
body.cv-forgot .cv-forgot-msg.error{
  border-color: rgba(251,113,133,.22);
  background: rgba(251,113,133,.08);
  color: rgba(251,113,133,.95);
}

/* Footer text — same style as sub text */
body.cv-forgot .cv-forgot-foot{
  margin-top: 12px;
  color: rgba(226,232,240,.72);
  font-weight: 800;
  line-height: 1.55;
  font-size: 13px;
  max-width: 60ch;
}

/* =========================================================
   RESET PASSWORD (match forgot UI, scoped)
========================================================= */
body.cv-reset{
  min-height:100vh;
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(59,130,246,.18) 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(16,185,129,.16) 0%, transparent 60%),
    linear-gradient(135deg,#0b1220,#070b12);
  color:#e5e7eb;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}

body.cv-reset .cv-reset-card{
  width:min(520px, 100%);
  border-radius:20px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,.50);
  overflow:hidden;
  position:relative;
}

body.cv-reset .cv-reset-glow{
  position:absolute; inset:-2px;
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(59,130,246,.22), transparent 60%),
    radial-gradient(700px 420px at 90% 0%, rgba(16,185,129,.20), transparent 60%);
  pointer-events:none;
  opacity:.85;
}

body.cv-reset .cv-reset-inner{ padding:18px; position:relative; }

body.cv-reset .cv-reset-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

body.cv-reset .cv-reset-logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:950;
  letter-spacing:.2px;
}

body.cv-reset .cv-reset-badge{
  width:38px; height:38px;
  border-radius:16px;
  display:grid; place-items:center;
  border:1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(16,185,129,.18), rgba(59,130,246,.16));
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}

body.cv-reset .cv-reset-back{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: rgba(226,232,240,.92);
  font-weight:900;
  font-size:12px;
  transition:.16s ease;
}
body.cv-reset .cv-reset-back:hover{ transform: translateY(-1px); background: rgba(0,0,0,.28); }

body.cv-reset .cv-reset-h1{
  margin-top:14px;
  font-size:28px;
  line-height:1.05;
  letter-spacing:-.3px;
  font-weight:950;
}

body.cv-reset .cv-reset-sub{
  margin-top:10px;
  color: rgba(226,232,240,.72);
  font-weight:800;
  line-height:1.55;
  font-size:13px;
  max-width:60ch;
}

body.cv-reset .cv-reset-form{
  margin-top:14px;
  display:grid;
  gap:10px;
}

body.cv-reset .cv-reset-input{
  width:100%;
  padding:14px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  color:#e5e7eb;
  font-weight:850;
  outline:none;
}

body.cv-reset .cv-reset-btn{
  width:100%;
  padding:14px 14px;
  border-radius:16px;
  border:1px solid rgba(16,185,129,.22);
  background: linear-gradient(135deg, rgba(16,185,129,.18), rgba(59,130,246,.12));
  color: rgba(226,232,240,.95);
  font-weight:950;
  cursor:pointer;
  transition:.16s ease;
}
body.cv-reset .cv-reset-btn:hover{ transform: translateY(-1px); }
body.cv-reset .cv-reset-btn:disabled{ opacity:.6; cursor:not-allowed; transform:none; }

body.cv-reset .cv-reset-msg{
  margin-top:10px;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.16);
  color: rgba(226,232,240,.90);
  font-weight:850;
  font-size:12px;
  line-height:1.35;
  display:none;
}
body.cv-reset .cv-reset-msg.show{ display:block; }
body.cv-reset .cv-reset-msg.error{
  border-color: rgba(251,113,133,.22);
  background: rgba(251,113,133,.08);
  color: rgba(251,113,133,.95);
}

body.cv-reset .cv-reset-hint{
  margin-top:12px;
  color: rgba(226,232,240,.62);
  font-weight:800;
  font-size:12px;
  line-height:1.45;
}

/* =========================================================
   Responsive (shared)
========================================================= */
@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr; }
  .wrap{ padding: 0 12px 26px; }
  .dropdown{ right:10px; width: min(320px, calc(100vw - 20px)); }
  .nav-links{ max-width: calc(100vw - 170px); }

  body.cv-saved .wrap{ padding: 0 12px 26px; }
  body.cv-saved .dropdown{ right:10px; width:min(320px, calc(100vw - 20px)); }
  body.cv-saved .nav-links{ max-width: calc(100vw - 170px); }
}

/* Mobile: show 3 nav links without scrolling, hamburger above links */
@media (max-width: 560px){
  .navbar{
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
  }

  .nav-left{
    flex: 1 1 100%;
    min-width: 0;
    flex-wrap: wrap;
    padding-right: 44px; /* reserve space for hamburger */
  }

  .account-hamburger{
    position: absolute;
    top: 12px;
    right: 14px;
  }

  .nav-links{
    flex: 0 0 100%;
    width: 100%;
    max-width: none !important;
    overflow: visible !important;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    padding-bottom: 0;
    margin-top: 6px;
  }

  .nav-link{
    flex: 1 1 0;
    text-align: center;
    padding: 10px 8px;
    font-size: 13px;
  }

  .dropdown{
    right:10px;
    width: min(320px, calc(100vw - 20px));
  }

  /* saved-cards */
  body.cv-saved .toolbar input{ min-width:0; width:100%; }
  body.cv-saved .btn, body.cv-saved .btn.ghost{ width:100%; }
  body.cv-saved .table-wrap{ display:none; }
  body.cv-saved .mobile-list{ display:grid; }

  /* admin */
  body.cv-admin .dropdown{ right: 12px; width: 92vw; max-width: 340px; }
  body.cv-admin .drawer{ width: 92vw; }
}

/* =========================================================
   Dark mode (theme-init adds html.dark)
========================================================= */
html.dark{
  --bg1:#0b1220;
  --bg2:#0b1220;
  --text:#e5e7eb;
  --muted:#9ca3af;

  --card: rgba(15,23,42,.78);
  --card2: rgba(15,23,42,.62);
  --border: rgba(255,255,255,.10);
  --shadow: 0 30px 80px rgba(0,0,0,.45);
  --shadow2: 0 14px 34px rgba(0,0,0,.45);
}

html.dark .field{
  background: rgba(15,23,42,.72);
  color: var(--text);
}
html.dark .qr-reader{ background: rgba(15,23,42,.55); }

html.dark .panel{ border-color: rgba(255,255,255,.10); }

html.dark .inp{
  background: rgba(15,23,42,.62);
  border-color: rgba(255,255,255,.10);
  color: var(--text);
}

html.dark .pill.neutral{
  background: rgba(2,6,23,.25);
  color: var(--text);
}

html.dark .btn.ghost{
  background: rgba(15,23,42,.72);
  color: var(--text);
  border-color: rgba(255,255,255,.12);
}

html.dark .btn.blue{
  background: rgba(59,130,246,.22);
  color:#dbeafe;
  border-color: rgba(59,130,246,.35);
}

html.dark .notice{
  background: rgba(15,23,42,.72);
  border-color: rgba(255,255,255,.10);
}

/* Saved dark tweaks */
html.dark body.cv-saved .toolbar input{
  background: rgba(15,23,42,.72);
  color: var(--text);
  border-color: rgba(255,255,255,.12);
}
html.dark body.cv-saved .summary{
  background: rgba(15,23,42,.75);
  border-color: rgba(255,255,255,.10);
  color: var(--text);
}
html.dark body.cv-saved thead th{ background: rgba(15,23,42,.85); }
html.dark body.cv-saved tbody td{ border-top-color: rgba(255,255,255,.06); }
html.dark body.cv-saved .btn.ghost{
  background: rgba(15,23,42,.72);
  color: var(--text);
  border-color: rgba(255,255,255,.12);
}
html.dark body.cv-saved .mcard{
  background: rgba(15,23,42,.62);
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}
html.dark body.cv-saved .m-box{
  background: rgba(2,6,23,.35);
  border-color: rgba(255,255,255,.08);
}

/* =========================================================
   ADMIN responsive (kept at end to avoid reflow conflicts)
========================================================= */
@media (max-width: 1100px){
  body.cv-admin .top-row1{ grid-template-columns: 1fr; }
  body.cv-admin .kpis-3{ grid-template-columns: 1fr; }
  body.cv-admin .invite-hero-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  body.cv-admin .wrap{ padding: 0 12px 22px; }

  body.cv-admin .table-wrap{ display:none; }
  body.cv-admin .mobile-list{ display:grid; }

  body.cv-admin .input{ min-width: 0; width:100%; }

  body.cv-admin .invite-grid{ grid-template-columns: 1fr; }
  body.cv-admin .invite-actions-top{ width:100%; justify-content:stretch; }
  body.cv-admin .invite-actions-top .btn{ width:100%; }

  body.cv-admin .inv-row{ grid-template-columns: 1fr; gap:6px; }
  body.cv-admin .inv-del{ width:100%; }
}

/* =========================================================
   STRIPE SUCCESS — modern UI (CSP-safe, scoped)
========================================================= */

body.cv-stripe-success{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
  color:#e5e7eb;

  background:
    radial-gradient(900px 520px at 18% 12%, rgba(59,130,246,.20), transparent 60%),
    radial-gradient(760px 460px at 88% 22%, rgba(16,185,129,.18), transparent 60%),
    linear-gradient(135deg,#0b1220,#070b12);
  overflow:hidden;
}

/* soft overlay glow */
body.cv-stripe-success::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(520px 320px at 14% 78%, rgba(99,102,241,.12), transparent 60%),
    radial-gradient(520px 320px at 90% 86%, rgba(16,185,129,.10), transparent 62%);
  mix-blend-mode: overlay;
  opacity:.9;
}

body.cv-stripe-success .cv-ss-card{
  width:min(520px, 100%);
  position:relative;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 90px rgba(0,0,0,.58);
  padding:22px;
  overflow:hidden;
}

/* card glow */
body.cv-stripe-success .cv-ss-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(900px 520px at 22% 10%, rgba(59,130,246,.22), transparent 60%),
    radial-gradient(760px 460px at 88% 0%, rgba(16,185,129,.20), transparent 60%);
  opacity:.85;
  pointer-events:none;
}

/* content sits above glow */
body.cv-stripe-success .cv-ss-card > *{
  position:relative;
}

/* Title */
body.cv-stripe-success .cv-ss-h1{
  font-size:20px;
  line-height:1.15;
  letter-spacing:-.2px;
  font-weight:900;
  margin-bottom:10px;
}

/* Status text */
body.cv-stripe-success .cv-ss-p{
  color: rgba(226,232,240,.78);
  line-height:1.55;
  font-weight:800;
  font-size:13px;
  margin-bottom: 10px;
}

/* Error */
body.cv-stripe-success .cv-ss-err{
  margin-top:8px;
  font-weight:900;
  font-size:12px;
  color: rgba(251,113,133,.95);
}

/* Button */
body.cv-stripe-success .cv-ss-btn{
  margin-top:14px;
  width:100%;
  padding:14px 14px;
  border-radius:16px;
  border:1px solid rgba(16,185,129,.25);
  background: linear-gradient(135deg, rgba(16,185,129,.22), rgba(59,130,246,.14));
  color: rgba(226,232,240,.96);
  font-weight:950;
  cursor:pointer;
  transition: .16s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}

body.cv-stripe-success .cv-ss-btn:hover:not(:disabled){
  transform: translateY(-1px);
  filter: brightness(1.03);
}

body.cv-stripe-success .cv-ss-btn:active:not(:disabled){
  transform: translateY(0px);
}

body.cv-stripe-success .cv-ss-btn:disabled{
  opacity:.6;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

/* Debug panel */
body.cv-stripe-success .cv-ss-debug{
  margin-top:14px;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.16);
  color: rgba(147,197,253,.95);
  font-weight:850;
  font-size:12px;
  line-height:1.35;
  white-space: pre-wrap;
  overflow-wrap:anywhere;
}

/* Optional: subtle "success pill" look if you ever add one */
body.cv-stripe-success .cv-ss-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(16,185,129,.22);
  background: rgba(16,185,129,.10);
  color: rgba(167,243,208,.95);
  font-weight:950;
  font-size:12px;
}

body.cv-stripe-success .cv-ss-btn{
  margin-top:14px;
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:none;
  font-weight:900;
  cursor:pointer;
  background:#10b981;
  color:#072013;
}

body.cv-stripe-success .cv-ss-btn:disabled{
  opacity:.6;
  cursor:not-allowed;
}

body.cv-stripe-success .cv-ss-err{
  margin-top:10px;
  color:#fca5a5;
  font-weight:900;
}

body.cv-stripe-success .cv-ss-debug{
  margin-top:12px;
  font-size:12px;
  color:#93c5fd;
  font-weight:800;
  white-space: pre-wrap;
}

/* =========================================================
   VERIFY EMAIL (CSP-safe, moved from inline CSS)
========================================================= */

body.cv-verify{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background: linear-gradient(180deg,#0e0e0e,#141414);
  color:#fff;
}

body.cv-verify .cv-verify-card{
  width:360px;
  max-width:100%;
  padding:32px;
  border-radius:16px;
  background:#1b1b1b;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  text-align:center;
  position:relative;
}

body.cv-verify .cv-verify-logo{
  width:120px;
  margin-bottom:20px;
}

body.cv-verify .cv-verify-h2{
  margin-bottom:10px;
  font-weight:700;
}

body.cv-verify .cv-verify-p{
  color:#cbd5e1;
  font-size:.92rem;
  line-height:1.35;
  font-weight:600;
}

body.cv-verify .cv-verify-field{
  margin-top:14px;
}

body.cv-verify .cv-verify-input{
  width:100%;
  padding:14px;
  border-radius:10px;
  border:1px solid #333;
  background:#101010;
  color:#fff;
  text-align:center;
  letter-spacing:4px;
  font-weight:700;
  font-size:16px; /* prevents iOS zoom */
}

body.cv-verify .cv-verify-btn{
  width:100%;
  padding:14px;
  border-radius:12px;
  border:none;
  background: linear-gradient(135deg,#4CAF50,#3ddc84);
  font-weight:700;
  cursor:pointer;
  margin-top:10px;
  transition:.2s;
  color:#08130d;
}

body.cv-verify .cv-verify-btn:hover:not(:disabled){
  background: linear-gradient(135deg,#45b847,#34c176);
}

/* =========================================================
   VERIFY EMAIL (CSP-safe, moved from inline CSS)
========================================================= */

body.cv-verify{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background: linear-gradient(180deg,#0e0e0e,#141414);
  color:#fff;
}

body.cv-verify .cv-verify-card{
  width:360px;
  max-width:100%;
  padding:32px;
  border-radius:16px;
  background:#1b1b1b;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  text-align:center;
  position:relative;
  border: 1px solid rgba(255,255,255,.08);
}

body.cv-verify .cv-verify-logo{
  width:120px;
  height:auto;
  margin: 0 auto 20px;
  display:block;
}

body.cv-verify .cv-verify-h2{
  margin-bottom:10px;
  font-weight:900;
  font-size:20px;
}

body.cv-verify .cv-verify-p{
  color:#cbd5e1;
  font-size:.92rem;
  line-height:1.35;
  font-weight:700;
}

body.cv-verify .cv-verify-field{
  margin-top:14px;
}

body.cv-verify .cv-verify-input{
  width:100%;
  padding:14px;
  border-radius:10px;
  border:1px solid #333;
  background:#101010;
  color:#fff;
  text-align:center;
  letter-spacing:4px;
  font-weight:900;
  font-size:16px; /* prevents iOS zoom */
  outline:none;
}

body.cv-verify .cv-verify-input:focus{
  border-color: rgba(61,220,132,.7);
  box-shadow: 0 0 0 4px rgba(61,220,132,.15);
}

body.cv-verify .cv-verify-btn{
  width:100%;
  padding:14px;
  border-radius:12px;
  border:none;
  background: linear-gradient(135deg,#4CAF50,#3ddc84);
  font-weight:900;
  cursor:pointer;
  margin-top:10px;
  transition:.2s;
  color:#08130d;
}

body.cv-verify .cv-verify-btn:hover:not(:disabled){
  filter: brightness(1.03);
  transform: translateY(-1px);
}

body.cv-verify .cv-verify-btn:disabled{
  opacity:.6;
  cursor:not-allowed;
  transform:none;
}

body.cv-verify .cv-verify-msg{
  margin-top:12px;
  font-size:.85rem;
  min-height: 18px;
  font-weight:900;
}

body.cv-verify .cv-verify-msg.error{ color:#ff6b6b; }
body.cv-verify .cv-verify-msg.success{ color:#4CAF50; }


/* =========================================================
   GLOBAL PILLS (fixes Settings uRole/uStatus)
   NOTE: paywall/admin/saved have scoped pill styles already.
========================================================= */

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  font-weight:950;
  font-size:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.65);
  white-space:nowrap;
  line-height:1;
}

.pill.good{
  border-color: rgba(16,185,129,.32);
  background: rgba(16,185,129,.10);
  color:#065f46;
}

.pill.neutral{
  border-color: rgba(148,163,184,.30);
  background: rgba(255,255,255,.55);
  color:#0f172a;
}

.pill.bad{
  border-color: rgba(239,68,68,.32);
  background: rgba(239,68,68,.10);
  color:#991b1b;
}

html.dark .pill.neutral{
  background: rgba(2,6,23,.25);
  color: var(--text);
}

/* =========================================================
   VERIFY EMAIL — match requested UI (CSP-safe, no HTML changes)
========================================================= */
body.cv-verify{
  background: linear-gradient(180deg,#0e0e0e,#141414);
  color: white;
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:18px;
}

body.cv-verify .cv-verify-card{
  width:360px;
  max-width:100%;
  padding:32px;
  border-radius:16px;
  background:#1b1b1b;
  box-shadow:0 20px 60px rgba(0,0,0,.6);
  text-align:center;
  position:relative;
}

body.cv-verify .cv-verify-logo{
  width:120px;
  height:auto;
  margin: 0 auto 20px;
  display:block;
}

body.cv-verify .cv-verify-h2{
  margin-bottom:10px;
  font-weight:700;
  font-size:20px;
}

body.cv-verify .cv-verify-p{
  color:#cbd5e1;
  font-size:.92rem;
  line-height:1.35;
  font-weight:600;
}

body.cv-verify .cv-verify-field{
  margin-top:14px;
}

body.cv-verify .cv-verify-input{
  width:100%;
  padding:14px;
  border-radius:10px;
  border:1px solid #333;
  background:#101010;
  color:white;
  text-align:center;
  letter-spacing:4px;
  font-weight:700;
  outline:none;
  font-size:16px; /* prevents iOS zoom */
}

body.cv-verify .cv-verify-btn{
  width:100%;
  padding:14px;
  border-radius:12px;
  border:none;
  background: linear-gradient(135deg,#4CAF50,#3ddc84);
  font-weight:700;
  cursor:pointer;
  margin-top:10px;
  transition:.2s;
  color:#08130d;
}

body.cv-verify .cv-verify-btn:hover:not(:disabled){
  background: linear-gradient(135deg,#45b847,#34c176);
}

body.cv-verify .cv-verify-btn:disabled{
  opacity:.5;
  cursor:not-allowed;
}

/* Row buttons */
body.cv-verify .cv-verify-row{
  display:flex;
  gap:10px;
  margin-top:10px;
}

body.cv-verify .cv-verify-row .cv-verify-btn{
  margin-top:0;
}

/* Ghost buttons */
body.cv-verify .cv-verify-btn.ghost{
  background:#101010;
  border:1px solid #333;
  color:#e5e7eb;
}

body.cv-verify .cv-verify-btn.ghost:hover:not(:disabled){
  background:#111827;
}

/* Messages (IDs used by verify.js) */
body.cv-verify #error{
  margin-top:12px;
  font-size:.85rem;
  color:#ff6b6b;
}

body.cv-verify #success{
  margin-top:12px;
  font-size:.85rem;
  color:#4CAF50;
}

/* Admin invites empty state */
body.cv-admin .inv-empty{
  padding: 18px 14px;
  text-align: center;
  border-top: 1px solid rgba(148,163,184,.18);
}

body.cv-admin .inv-empty-icon{
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148,163,184,.30);
  background: linear-gradient(135deg, rgba(16,185,129,.12), rgba(59,130,246,.10));
  box-shadow: 0 10px 22px rgba(2,6,23,.08);
  font-size: 18px;
}

body.cv-admin .inv-empty-title{
  font-weight: 950;
  font-size: 14px;
  color: var(--text);
}

body.cv-admin .inv-empty-sub{
  margin-top: 6px;
  color: var(--muted);
  font-weight: 850;
  font-size: 12px;
  line-height: 1.35;
}

.auth-logo {
  width: 180px;
  height: auto;
  margin-bottom: 20px;
}

/* Floating logo animation */
@keyframes cv-float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

.auth-logo {
  width: 150px; /* keep your bigger size */
  height: auto;
  margin-bottom: 20px;

  animation: cv-float 4s ease-in-out infinite;
  will-change: transform;

  /* optional glow polish */
  filter: drop-shadow(0 6px 18px rgba(61, 220, 132, 0.35));
}

/* =========================================================
   ENHANCED DARK MODE (better contrast + depth)
   - appended at end to override earlier rules safely
========================================================= */

html.dark{
  /* slightly brighter text + cleaner surfaces */
  --bg1:#070b12;
  --bg2:#0b1220;
  --text:#e5e7eb;
  --muted: rgba(226,232,240,.72);

  /* darker glass cards with subtle tint */
  --card: rgba(15,23,42,.72);
  --card2: rgba(15,23,42,.56);
  --border: rgba(255,255,255,.10);
  --shadow: 0 28px 80px rgba(0,0,0,.55);
  --shadow2: 0 14px 34px rgba(0,0,0,.48);
}

/* Better page backgrounds in dark mode (remove light gradients bleeding through) */
html.dark body.cv-page,
html.dark body.cv-saved,
html.dark body.cv-admin{
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(59,130,246,.16) 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(16,185,129,.14) 0%, transparent 60%),
    linear-gradient(135deg, #070b12, #0b1220);
  color: var(--text);
}

/* Panels + cards read better */
html.dark .panel{
  background: rgba(15,23,42,.74);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}
html.dark .panel.soft{
  background: rgba(15,23,42,.60);
  box-shadow: 0 14px 36px rgba(0,0,0,.48);
}
html.dark .card{
  background: rgba(2,6,23,.35);
  border-color: rgba(255,255,255,.10);
}

/* Inputs: clearer affordance + consistent dark fill */
html.dark .field,
html.dark .inp,
html.dark body.cv-saved .toolbar input,
html.dark body.cv-admin .input,
html.dark body.cv-admin .field{
  background: rgba(2,6,23,.35);
  border-color: rgba(255,255,255,.12);
  color: var(--text);
}
html.dark .field::placeholder,
html.dark .inp::placeholder,
html.dark body.cv-saved .toolbar input::placeholder,
html.dark body.cv-admin .input::placeholder,
html.dark body.cv-admin .field::placeholder{
  color: rgba(226,232,240,.55);
}
html.dark .field:focus,
html.dark .inp:focus,
html.dark body.cv-saved .toolbar input:focus,
html.dark body.cv-admin .input:focus,
html.dark body.cv-admin .field:focus{
  border-color: rgba(16,185,129,.45);
  box-shadow: 0 0 0 4px rgba(16,185,129,.14);
}

/* Buttons: keep contrast (ghost buttons were getting too flat) */
html.dark .btn{
  border-color: rgba(255,255,255,.12);
}
html.dark .btn.ghost{
  background: rgba(2,6,23,.35);
  border-color: rgba(255,255,255,.12);
  color: var(--text);
}
html.dark .btn.ghost:hover{
  background: rgba(2,6,23,.48);
}

/* Navbar + dropdown: make glass darker + separators visible */
html.dark .navbar{
  background: rgba(7,11,18,.92);
  border-bottom-color: rgba(255,255,255,.10);
}
html.dark .nav-link{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}
html.dark .nav-link.active{
  background: rgba(16,185,129,.20);
  border-color: rgba(16,185,129,.30);
  color:#d1fae5;
}
html.dark .dropdown,
html.dark body.cv-admin .dropdown{
  background: rgba(2,6,23,.92);
  border-color: rgba(255,255,255,.12);
}
html.dark .dropdown .sep,
html.dark body.cv-admin .dropdown .sep{
  background: rgba(255,255,255,.10);
}

/* Tables (Saved/Admin): readable headers + row dividers */
html.dark body.cv-saved thead th,
html.dark body.cv-admin thead th{
  background: rgba(2,6,23,.55);
  color: rgba(226,232,240,.80);
}
html.dark body.cv-saved tbody td,
html.dark body.cv-admin tbody td{
  border-top-color: rgba(255,255,255,.08);
}

/* Mobile cards: prevent washed look */
html.dark body.cv-saved .mcard,
html.dark body.cv-admin .mcard{
  background: rgba(15,23,42,.62);
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 10px 26px rgba(0,0,0,.40);
}

/* Notices: clearer in dark */
html.dark .notice{
  background: rgba(2,6,23,.40);
  border-color: rgba(255,255,255,.12);
  color: rgba(226,232,240,.92);
}

/* Pills: ensure neutral pill isn’t too light in dark */
html.dark .pill.neutral{
  background: rgba(2,6,23,.45);
  border-color: rgba(255,255,255,.10);
  color: rgba(226,232,240,.92);
}




