
/* Ensure HTML [hidden] works even when component classes set display */
[hidden]{ display:none !important; }

/* Drawer/backdrop should not intercept clicks unless open */
.drawer, .drawer-backdrop{ pointer-events:none; }
.drawer.is-open, .drawer-backdrop.is-open{ pointer-events:auto; }

:root{
  --sf-font: system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --sf-base-size: 10pt;
  --bs-font-sans-serif: var(--sf-font);
  --bs-body-font-family: var(--sf-font);
  --bs-body-font-size: var(--sf-base-size);
/* Clean + cardy like PSCC */
  --bg:#f4f5f7; /* very light gray page background */
  --surface:#ffffff;
  --surfaceAlt:#fbfbfe;
  --ink:#0b1220;
  --muted:rgba(11,18,32,.62);
  --border:rgba(15,23,42,.12);
  --borderStrong:rgba(15,23,42,.18);
  --shadow:0 14px 34px rgba(2,6,23,.12);
  --shadowSoft:0 2px 14px rgba(2,6,23,.08);

  --accent:#ff2db2;
  --accentHover:#e61fa4;
  --accentSoft:rgba(255,45,178,.10);
}

*{ box-sizing:border-box; }
html{ font-size: var(--sf-base-size); }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--sf-font);
  background: var(--bg);
  color: var(--ink);
  font-size: 10pt; /* per requirement */
  line-height: 1.35;
}

/* Keep Bootstrap containers from forcing white */
.container, .container-fluid{ background: transparent; }

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

.wrap{ max-width: 1200px; margin: 0 auto; padding: 14px 18px; }

hr{ border:0; border-top:1px solid var(--border); margin: 12px 0; }

/* --- Surfaces / cards --- */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadowSoft);
}
.card.soft{
  background: var(--surfaceAlt);
}

/* Alerts */
.alert{
  border: 1px solid rgba(220,53,69,.25);
  background: rgba(220,53,69,.08);
  padding: 10px 12px;
  border-radius: 14px;
  margin: 10px 0;
}
.alert.ok{
  border-color: rgba(25,135,84,.25);
  background: rgba(25,135,84,.08);
}

/* --- Top bar --- */
.topbar{
  position: sticky;
  top:0;
  z-index: 1000;
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,23,42,.12) !important;
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
}

.topbar-inner{
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 14px 14px; /* bring logo/menu closer to edges */
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.brand{
  font-weight: 800;
  letter-spacing:.3px;
}
.topbar-actions{ display:flex; align-items:center; gap: 10px; }

/* Plain email text in the topbar (replaces the pill/chip) */
.topbar-email{
  display:inline-block;
  font-size: 10pt;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.chip{
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 10pt;
  color: var(--muted);
  background: rgba(2,6,23,.02);
}

/* --- Buttons --- */
.btn,
button.btn,
input[type="submit"].btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 12px;
  border: 1px solid var(--borderStrong);
  border-radius: 999px; /* pill like Insurity CTAs */
  background: #fff;
  cursor:pointer;
  font-size: 10pt;
  line-height: 1.2;
  box-shadow: 0 1px 0 rgba(2,6,23,.04);
}
.btn:hover{ background: rgba(2,6,23,.03); text-decoration:none; }

.btn-accent,
.btn.primary{
  background: linear-gradient(180deg, var(--accent), #ff4cc4) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(255,45,178,.18);
}
.btn-accent:hover,
.btn.primary:hover{
  background: linear-gradient(180deg, var(--accentHover), #ff39be) !important;
  border-color: var(--accentHover) !important;
}

/* Charcoal (used for Sign Up button in navbar) */
.btn-charcoal{
  background: #1F2937 !important;
  border-color: #1F2937 !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(2,6,23,.10);
}
.btn-charcoal:hover,
.btn-charcoal:focus{
  background: #111827 !important;
  border-color: #111827 !important;
  color:#fff !important;
  text-decoration:none;
}

/* Small secondary */
.btn-ghost{
  background: transparent;
  border-color: var(--border);
  box-shadow:none;
}
.btn-ghost:hover{ background: rgba(255,45,178,.08); border-color: rgba(255,45,178,.30); }

/* --- Hamburger --- */
.hamburger{
  width: 36px;
  height: 32px;
  border: 1px solid var(--borderStrong);
  border-radius: 12px;
  background: #fff;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 2px 10px rgba(2,6,23,.06);
}
.hamburger:hover{ background: rgba(255,45,178,.08); border-color: rgba(255,45,178,.35); }
.hamburger-bars{ display:inline-flex; flex-direction:column; gap:4px; }
.hamburger-bars > span{
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  opacity: .9;
}

/* --- Drawer --- */
.drawer-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.45);
  opacity: 0;
  transition: opacity 160ms ease;
  /* Must sit ABOVE the sticky navbar and any page overlays */
  z-index: 9998;
}
.drawer-backdrop.is-open{ opacity: 1; }

.drawer{
  /* PSCC-style popover menu (not a full-height side drawer) */
  position: fixed;
  top: 70px; /* default; JS recalculates +12px gap under navbar */
  right: 14px;
  bottom: 20px;
  height: auto;
  max-height: none;
  width: min(420px, 92vw);
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transform: translateY(-6px) scale(.985);
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
  /* Must sit ABOVE the sticky navbar and any page overlays */
  z-index: 9999;
  display:flex;
  flex-direction:column;
  overflow: hidden;
}
.drawer.is-open{ opacity: 1; transform: translateY(0) scale(1); }

.drawer-header{
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
  background: linear-gradient(180deg, rgba(244,245,247,.65), rgba(255,255,255,0));
}
.drawer-user-name{ font-weight: 800; }
.drawer-user-sub{ color: var(--muted); overflow:hidden; text-overflow: ellipsis; max-width: 240px; white-space: nowrap; }
.drawer-close{
  width: 34px;
  height: 34px;
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 12px;
  background: #fff;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 10pt;
  line-height: 1;
  box-shadow: 0 2px 12px rgba(2,6,23,.06);
}
.drawer-close:hover{ background: rgba(255,45,178,.08); border-color: rgba(255,45,178,.30); }

.drawer-footer{ padding: 12px; border-top: 1px solid rgba(15,23,42,.08); background:#fff; }
.drawer-link-logout{ border-color: rgba(15,23,42,.10); background:#fff; }
.drawer-link-logout:hover{ background: rgba(255,45,178,.07); border-color: rgba(255,45,178,.28); }


.drawer-body{padding: 12px 12px 14px; overflow:auto; flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;}
.drawer-nav{display:flex; flex-direction:column; gap: 8px;}
.drawer-link,
.drawer-sublink{
  display:block;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  position: relative;
  box-shadow: 0 1px 0 rgba(2,6,23,.02);
}
.drawer-link:hover,
.drawer-sublink:hover{ background: rgba(255,45,178,.07); border-color: rgba(255,45,178,.28); text-decoration:none; }

.drawer-link::before{
  content:"";
  position:absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 16px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transition: width 120ms ease, opacity 120ms ease;
}
.drawer-link:hover::before{ width: 3px; opacity: .9; }

.drawer-link-primary{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(255,45,178,.16);
}
.drawer-link-primary:hover{
  background: var(--accentHover);
  border-color: var(--accentHover);
}
.drawer-link-primary::before{ display:none; }

/* Logout should look like other white buttons */
.drawer-link-danger{ border-color: rgba(15,23,42,.10); background:#fff; }
.drawer-link-danger:hover{ background: rgba(255,45,178,.07); border-color: rgba(255,45,178,.28); }

.drawer-section{
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  overflow:hidden;
  background:#fff;
}
.drawer-section > summary{
  list-style:none;
  cursor:pointer;
  padding: 10px 12px;
  font-weight: 900;
  user-select:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  background: #fff; /* match Dashboard (white button) */
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
}
.drawer-section > summary::-webkit-details-marker{ display:none; }
.drawer-section > summary::after{
  content:"▾";
  color: var(--muted);
  font-weight: 700;
}
.drawer-section[open] > summary{
  border-bottom: 1px solid var(--border);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.drawer-section[open] > summary::after{ content:"▴"; }

/* Child items should display as stacked buttons under the section */
.drawer-subnav{
  padding: 10px 10px 12px;
  display:flex;
  flex-direction:column;
  gap: 8px;
  background: rgba(244,245,247,.55);
}
.drawer-section .drawer-sublink{
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(2,6,23,.02);
}
.drawer-section .drawer-sublink:hover{ background: rgba(255,45,178,.06); border-color: rgba(255,45,178,.28); }

/* Make summary look like a menu button */
.drawer-toggle{
  box-shadow: 0 1px 0 rgba(2,6,23,.02);
}
.drawer-toggle:hover{ background: rgba(255,45,178,.07); border-color: rgba(255,45,178,.28); }

.drawer-spacer{ flex: 1 1 auto; }

/* --- Forms --- */
label{ display:block; margin: 10px 0 6px; color: var(--muted); }
input, select, textarea{
  width:100%;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 10pt;
}
input:focus, select:focus, textarea:focus{
  outline: none;
  border-color: rgba(255,45,178,.45);
  box-shadow: 0 0 0 3px rgba(255,45,178,.12);
}

/* --- Auth (signup / verify) --- */
.auth-shell{
  display:grid;
  grid-template-columns: 460px 1fr;
  gap: 44px;
  align-items: start;
  padding: 22px 0 10px;
}
@media (max-width: 900px){
  .auth-shell{ grid-template-columns: 1fr; gap: 18px; }
}

.auth-card{ padding: 18px 18px 16px; }
.auth-card h2{ margin: 6px 0 8px; font-size: 18pt; letter-spacing: -.2px; }
.auth-card p{ margin: 6px 0 10px; }
.auth-actions{ display:flex; align-items:center; gap: 10px; margin-top: 12px; }
.auth-actions .btn{ width: 100%; }
.auth-links{ margin-top: 12px; color: var(--muted); }
.auth-links a{ color: rgba(2,132,199,.95); }

.divider{
  display:flex; align-items:center; gap: 10px;
  margin: 12px 0;
  color: var(--muted);
}
.divider:before,
.divider:after{
  content:"";
  height:1px;
  background: var(--border);
  flex: 1 1 auto;
}

.verify-row{
  display:flex;
  gap: 10px;
  margin: 10px 0 8px;
}
.verify-box{
  width: 54px;
  height: 54px;
  text-align:center;
  font-size: 16pt;
  font-weight: 900;
  border-radius: 14px;
  border: 2px solid rgba(15,23,42,.18);
  background: #fff;
}
.verify-box:focus{
  border-color: rgba(255,45,178,.55);
  box-shadow: 0 0 0 4px rgba(255,45,178,.14);
}

.auth-right{
  padding-top: 6px;
}
.quote{
  text-align:center;
  color: rgba(11,18,32,.70);
  font-size: 11pt;
  margin: 0 0 16px;
}
.quote .stars{ letter-spacing: 2px; color: #f5a623; font-weight: 900; }
.auth-preview{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadowSoft);
  padding: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 280px;
}
.auth-preview img{ max-width: 100%; height: auto; border-radius: 12px; }

/* --- Tables --- */
table{ width:100%; border-collapse: collapse; background:#fff; }
th, td{ border-bottom: 1px solid var(--border); padding: 8px 8px; text-align:left; vertical-align: top; }
th{ color: rgba(11,18,32,.78); font-weight: 900; background: var(--surfaceAlt); }
tr:hover td{ background: rgba(2,6,23,.015); }

/* Utility */
.text-muted{ color: var(--muted); }
.badge{
  display:inline-flex;
  align-items:center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(2,6,23,.02);
  font-weight: 800;
}
.badge.pink{
  border-color: rgba(255,45,178,.35);
  background: rgba(255,45,178,.10);
  color: rgba(11,18,32,.92);
}

/* Keep navbar font unaffected by wrapper in some pages */
.au-main{ font-size: 10pt; }

/* Budget module: neutralize bootstrap a bit so it matches site theme */
.navbar{ border-bottom-color: var(--border) !important; }
.btn-primary{ background: var(--accent) !important; border-color: var(--accent) !important; }
.btn-primary:hover{ background: var(--accentHover) !important; border-color: var(--accentHover) !important; }


/* --- Global typography normalization (force 10pt everywhere) --- */
h1,h2,h3,h4,h5,h6,
.page-title,.section-title,.card-title,.title,
small,.small{
  font-size: 10pt !important;
}
strong{ font-weight: 650; }

/* Form controls (including placeholders) */
input, select, textarea, button{
  font-size: 10pt !important;
}
::placeholder{ font-size: 10pt !important; }

/* --- Polished spacing: prevent "touching" controls --- */
.card-body > * + *,
.page > * + *,
main > * + *,
form > * + *{
  margin-top: 10px;
}
.actions, .button-row, .toolbar, .filters{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.actions .btn, .button-row .btn{ margin:0; }

/* --- Drawer submenu buttons (stacked like PSCC) --- */
.drawer-subnav{
  display:grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px 12px 12px 12px;
}
.drawer-sublink{
  display:block;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  text-decoration:none;
}
.drawer-sublink:hover{
  background: rgba(2,6,23,.03);
  text-decoration:none;
}
/* Keep Pay Bills (primary) pink; only non-primary drawer links are white */
.drawer-link:not(.drawer-link-primary){
  background:#fff;
}
.drawer-link:not(.drawer-link-primary):hover{
  background: rgba(2,6,23,.03);
  text-decoration:none;
}

/* Make section toggles look like the white buttons too */
.drawer-toggle{
  background:#fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
}
.drawer-section[open] .drawer-toggle{
  border-color: var(--borderStrong);
}



/* --- Modal footer split: Delete left, Cancel+Save right --- */
.modal-footer-split{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
}
.modal-footer-split .right-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:.5rem;
}

/* Edit-modal Delete button: red text (not white) */
.btn-delete-left{
  background: transparent !important;
  border-color: #dc3545 !important;
  color: #dc3545 !important;
}
.btn-delete-left:hover,
.btn-delete-left:focus{
  background: rgba(220,53,69,.08) !important;
  border-color: #dc3545 !important;
  color: #dc3545 !important;
}

/* =========================================
   Pay Bills – Card View Layout Refinement
   ========================================= */

/* --- 1. Hide "Paid" label in card view --- */
body.pb-paybills-cards #payBillsTable td:nth-child(6) span,
body.pb-paybills-cards #payBillsTable td:nth-child(6) label {
  display: none !important;
}

/* --- 2. Force Mark Paid row full width --- */
body.pb-paybills-cards #payBillsTable td:nth-child(6) {
  grid-column: 1 / -1 !important;
  padding: 0 !important;
}

/* --- 3. Move Override input to the right --- */
body.pb-paybills-cards #payBillsTable td:nth-child(5) {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* keep input width clean */
/* keep override input width clean (half-size) */
body.pb-paybills-cards #payBillsTable td:nth-child(5) input {
  width: 120px !important;     /* <-- shrink in half-ish */
  max-width: 120px !important;
  min-width: 120px !important; /* prevents weird flex shrink */
  text-align: right;
}

/* --- 4. Full width Mark Paid button --- */
body.pb-paybills-cards #payBillsTable td:nth-child(6) .btn {
  display: block !important;
  width: calc(100% - 32px);
  margin: 14px 16px 8px 16px;
  border-radius: 999px;
}

@media (max-width:575.98px){
  .modal-footer-split{ flex-wrap:wrap; }
  .modal-footer-split .right-actions{ width:100%; justify-content:flex-end; }
}

/* =========================================
   Pay Bills – Top balance input width
   (match width of action buttons row on desktop)
   ========================================= */
@media (min-width: 992px){
  /* Limit the Bills Account Balance input so it doesn't run into the right summary column */
  #payBillsRecalcForm{ max-width: 640px; }
  #payBillsRecalcForm input[name="bills_balance"]{ max-width: 640px; }
}

/* =========================================
   Transfer Impact Simulator polish
   ========================================= */
#transferImpactModal .badge,
#transferImpactModal .sim-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  white-space:nowrap;
}

/*
  Amount pill in the top-right was getting visually "congested" (e.g., Amount$1,234.00).
  Make it a true two-part pill with comfortable spacing, regardless of Bootstrap badge defaults.
*/
#transferImpactModal .sim-amount-badge{
  display:inline-flex !important;
  align-items:center;
  gap:10px;
  padding:6px 10px;
}
#transferImpactModal .sim-amount-badge .sim-amount-label{
  display:inline-flex;
  align-items:center;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.04);
  line-height:1.1;
  margin-right:0 !important; /* gap handles spacing */
}
#transferImpactModal .sim-amount-badge #simTransferLabel{
  padding-left:2px;
}
#transferImpactModal .sim-pill{
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.92);
}
#transferImpactModal .badge.bg-light{
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(0,0,0,.12);
}
#transferImpactModal .sim-amount-label,
#transferImpactModal .badge .muted.small,
#transferImpactModal .sim-pill .muted.small{
  font-size: 9pt !important;
  color: rgba(11,18,32,.62) !important;
  margin-right: 2px;
}
#transferImpactModal #simTransferLabel{
  font-size: 11pt !important;
  letter-spacing: .2px;
}
#transferImpactModal .modal-body .muted.small.mb-1{
  font-size: 9pt !important;
}


/* Typography: force consistent font everywhere */
button, input, select, textarea{ font-family: var(--sf-font) !important; }


/* ===== Navbar: match index.php (white, taller, pronounced buttons) ===== */
header.topbar[data-topbar] .brand img{
  height:34px;
  width:auto;
  display:block;
}

/* Right-side actions */
header.topbar[data-topbar] .topbar-actions{
  display:flex;
  align-items:center;
  gap:12px;
}

/* Logged-out link */
header.topbar[data-topbar] a.nav-link{
  color:#1F2937 !important;
  text-decoration:none !important;
  font-weight:900 !important;
  opacity:.86;
}
header.topbar[data-topbar] a.nav-link:hover{
  opacity:1;
}

/* Primary pink CTA (same as index) */
header.topbar[data-topbar] a.btn.btn-primary{
  background:linear-gradient(135deg, #FE40C5, #ff66d6) !important;
  border:1px solid transparent !important;
  color:#ffffff !important;
  font-weight:1000 !important;
  border-radius:12px !important;
  padding:11px 16px !important;
  box-shadow: 0 14px 34px rgba(254,64,197,.22) !important;
}
header.topbar[data-topbar] a.btn.btn-primary:hover{ filter:brightness(.98); }

/* Logged-in email label */
header.topbar[data-topbar] .topbar-email{
  color:#1F2937 !important;
  font-weight:900 !important;
  opacity:.72;
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hamburger button - match height/weight */
header.topbar[data-topbar] .hamburger{
  height:42px;
  width:44px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.14);
  background:rgba(15,23,42,.03);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
}
header.topbar[data-topbar] .hamburger:hover{
  background:rgba(15,23,42,.06);
}
header.topbar[data-topbar] .hamburger-bars span{
  background:#1F2937 !important;
}

/* Remove any legacy gray button styles in navbar */
header.topbar[data-topbar] a.btn.btn-charcoal{
  background:rgba(15,23,42,.04) !important;
  border:1px solid rgba(15,23,42,.14) !important;
  color:#1F2937 !important;
  font-weight:1000 !important;
  border-radius:12px !important;
  padding:11px 16px !important;
  box-shadow:none !important;
}

@media(max-width:900px){
  .topbar-inner{ padding:14px 16px; }
  header.topbar[data-topbar] .topbar-email{ max-width: 160px; }
}


/* Ensure marketing index header (no data-topbar) matches too */
header.topbar{
  background:rgba(255,255,255,.92) !important;
  border-bottom:1px solid rgba(15,23,42,.12) !important;
  box-shadow: 0 10px 24px rgba(2,6,23,.06) !important;
}
header.topbar .topbar-inner{ padding:14px 22px !important; }

/* Auth page app preview (reuses marketing screenshots) */
.auth-preview-app{ padding:0; background:transparent; }
.auth-shot-stack{
  position:relative;
  width:min(520px, 100%);
  border-radius:18px;
  background:rgba(255,255,255,.78);
  border:1px solid var(--border);
  box-shadow:0 18px 44px rgba(2,6,23,.10);
  overflow:hidden;
  padding:12px;
}
.auth-shot-stack:before{
  content:"";
  position:absolute; inset:-2px;
  background:radial-gradient(760px 300px at 18% 0%, rgba(254,64,197,.18), transparent 60%);
  pointer-events:none;
}
.auth-shot-desktop{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  box-shadow:0 14px 34px rgba(2,6,23,.10);
}
.auth-shot-desktop img{ width:100%; height:auto; display:block; }

.auth-phone{
  position:absolute;
  right:14px;
  bottom:28px; /* lower/raise by changing this */
  width:170px;
  max-width:36%;
  transform:rotate(-6deg);
  transform-origin:bottom right;
  border-radius:42px;
  padding:14px;
  background:linear-gradient(180deg, rgba(18,18,20,.98), rgba(0,0,0,.92));
  box-shadow:0 22px 54px rgba(2,6,23,.28), 0 10px 22px rgba(254,64,197,.10);
  border:1px solid rgba(255,255,255,.14);
}
.auth-phone:before{content:"";position:absolute;inset:6px;border-radius:36px;border:1px solid rgba(255,255,255,.10);pointer-events:none;}
.auth-phone:after{content:"";position:absolute;inset:14px;border-radius:30px;border:1px solid rgba(255,255,255,.08);pointer-events:none;}

.auth-phone-btn{position:absolute;width:4px;background:linear-gradient(180deg, rgba(255,255,255,.30), rgba(255,255,255,.10));border-radius:10px;opacity:.9;}
.auth-phone-btn.left1{left:-3px; top:68px; height:26px;}
.auth-phone-btn.left2{left:-3px; top:104px; height:42px;}
.auth-phone-btn.left3{left:-3px; top:150px; height:42px;}
.auth-phone-btn.right1{right:-3px; top:92px; height:62px;}

.auth-phone-top{position:absolute;top:12px;left:50%;transform:translateX(-50%);width:66%;height:26px;pointer-events:none;display:flex;align-items:center;justify-content:center;gap:10px;}
.auth-speaker{width:52%;height:6px;border-radius:999px;background:rgba(255,255,255,.14);box-shadow:inset 0 0 0 1px rgba(0,0,0,.35);} 
.auth-camera{width:8px;height:8px;border-radius:999px;background:rgba(80,170,255,.22);box-shadow:0 0 0 1px rgba(255,255,255,.10), inset 0 0 0 2px rgba(0,0,0,.30);} 

.auth-phone-screen{position:relative;border-radius:28px;overflow:hidden;background:#111;}
.auth-phone-screen img{width:100%;height:auto;display:block;}

.auth-glass{position:absolute;inset:14px;border-radius:30px;pointer-events:none;background:linear-gradient(120deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.10) 14%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 62%, rgba(255,255,255,.08) 80%, rgba(255,255,255,0) 100%);mix-blend-mode:screen;opacity:.32;}
.auth-home-ind{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);width:42%;height:4px;border-radius:999px;background:rgba(255,255,255,.14);pointer-events:none;}

@media(max-width: 980px){
  .auth-phone{ width:160px; bottom:24px; }
}
@media(max-width: 680px){
  .auth-phone{ display:none; }
}


/* =========================================================
   Drawer Menu: scroll inside nav (prevents cut-off when multiple sections expand)
   ========================================================= */

/* Keep the panel as a flex column and scroll ONLY the nav area */
.drawer{
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
}

/* Body is the ONLY scroll container */
.drawer-body{
  overflow:auto !important;
  min-height:0 !important;
  -webkit-overflow-scrolling: touch;
}

/* Nav is just a vertical stack */
.drawer-nav{
  display:flex !important;
  flex-direction:column !important;
  gap: 8px !important;
}

/* remove spacer / dead area under logout */
.drawer-spacer{ display:none !important; }

/* Ensure no margin rules collapse/override spacing */
.drawer-nav > *{ margin: 0 !important; }

/* Mobile: keep hamburger fully visible by hiding email; bell already conditional */
@media(max-width:480px){
  header.topbar[data-topbar] .topbar-email{ display:none !important; }
  header.topbar[data-topbar] .topbar-actions{ gap: 8px; }
}


/* ==========================================================
 * Safety: ensure HTML [hidden] always wins (prevents invisible click-capture)
 * ========================================================== */
[hidden]{ display:none !important; }
.drawer[hidden], .drawer-backdrop[hidden]{ display:none !important; pointer-events:none !important; }
