/*
 * annes-portal.css — Anne's Family member portal
 * Warm glass design system. No uppercase, no letter-spacing.
 * Version injected via PHP query string.
 */

@font-face{font-family:'Geomanist';src:url('https://odysseypublication.com/css/fonts/geomanist_4.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Geomanist';src:url('https://odysseypublication.com/css/fonts/geomanist_5.woff2') format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:'Geomanist';src:url('https://odysseypublication.com/css/fonts/geomanist_6.woff2') format('woff2');font-weight:600;font-display:swap}

/* ── DESIGN TOKENS ───────────────────────────────────────────────────────── */

:root {
  --silk:        #F6EFEA;
  --ink:         #14121A;
  --ink-mid:     #332E3A;
  --ink-muted:   #726571;
  --peach:       #E8C8C1;
  --rose:        #C39AA1;
  --lavender:    #A5B2C3;
  --champagne:   #F2EAE1;
  --gold:        #E7C693;

  --glass:            rgba(255,255,255,0.45);
  --glass-strong:     rgba(255,255,255,0.78);
  --glass-edge:       rgba(255,255,255,0.85);
  --line:             rgba(20,16,26,0.10);
  --capsule-bg:       rgba(20,16,26,0.45);
  --capsule-edge:     rgba(255,255,255,0.12);

  --grad-warm:    linear-gradient(120deg,var(--rose),var(--gold));

  --font-head:    'Fraunces',Georgia,serif;
  --font-ui:      'Plus Jakarta Sans',system-ui,sans-serif;
  --font-body:    'Geomanist',system-ui,sans-serif;

  --ease:         cubic-bezier(0.16,1,0.3,1);
  --radius-xl:    34px;
  --radius-lg:    22px;
  --radius:       16px;
}

/* ── RESET ───────────────────────────────────────────────────────────────── */

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased }
body.annes-portal {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--silk);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none }
button { cursor: pointer; background: none; border: 0; padding: 0; font: inherit; color: inherit }
img { display: block; max-width: 100%; height: auto }
::selection { background: rgba(224,186,149,0.28) }
.hidden { display: none !important }

/* ── BACKGROUND ──────────────────────────────────────────────────────────── */

.acct-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--silk);
}
.acct-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 10% 18%, var(--peach) 0px, transparent 48%),
    radial-gradient(at 88%  8%, var(--gold)  0px, transparent 46%),
    radial-gradient(at 50% 82%, var(--lavender) 0px, transparent 50%),
    radial-gradient(at 85% 92%, var(--rose)  0px, transparent 45%),
    radial-gradient(at 18% 92%, var(--champagne) 0px, transparent 50%);
  background-color: rgba(246,239,234,0.30);
}

/* ── GLASS UTILITY ───────────────────────────────────────────────────────── */

.glass {
  background: var(--glass);
  backdrop-filter: blur(30px) saturate(170%);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  border: 1px solid var(--capsule-edge);
  box-shadow: 0 24px 60px rgba(40,30,38,0.12);
}

/* ── NAV ─────────────────────────────────────────────────────────────────── */

.nav-wrapper {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0 24px;
  pointer-events: none;
}
.nav-bar {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  pointer-events: auto;
  white-space: nowrap;
}
.nav-logo span {
  font-style: italic;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 54px;
  padding: 0 12px;
  border-radius: 27px;
  background: var(--capsule-bg);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--capsule-edge);
  box-shadow: 0 18px 45px rgba(20,16,26,0.18);
  pointer-events: auto;
  list-style: none;
}
.nav-menu a,
.nav-menu button {
  padding: 9px 14px;
  border-radius: 18px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(250,249,246,0.82);
  transition: all .2s var(--ease);
}
.nav-menu a:hover,
.nav-menu button:hover { color: #fff; background: rgba(255,255,255,0.10) }
.nav-menu a.active    { color: #fff; background: rgba(255,255,255,0.14) }
.nav-menu .signout    { color: rgba(250,249,246,0.6) }
.nav-menu .signout:hover { color: #f3b0b0; background: rgba(255,80,80,0.12) }
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}
.nav-pill {
  height: 44px;
  padding: 0 20px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg,
    color-mix(in srgb,var(--rose) 62%,transparent),
    color-mix(in srgb,var(--gold) 62%,transparent));
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  color: #1a1620;
  border: 1px solid var(--capsule-edge);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 20px color-mix(in srgb,var(--rose) 26%,transparent);
  transition: all .2s var(--ease);
  text-decoration: none;
}
.nav-pill:hover { transform: translateY(-1.5px) scale(1.02) }
.nav-pill svg { width: 15px; height: 15px }
.nav-toggle,
.nav-burger {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--capsule-edge);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 6px 16px rgba(20,16,26,0.12);
  transition: all .2s var(--ease);
}
.nav-toggle:hover,.nav-burger:hover { transform: scale(1.05) }
.nav-toggle svg,.nav-burger svg { width: 18px; height: 18px }
.nav-burger { display: none }
.nav-mobile {
  display: none;
  position: fixed;
  top: 78px;
  left: 24px;
  right: 24px;
  z-index: 199;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  border-radius: 24px;
  background: var(--capsule-bg);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--capsule-edge);
  box-shadow: 0 24px 50px rgba(20,16,26,0.28);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  pointer-events: none;
}
.nav-mobile.open { opacity: 1; transform: none; pointer-events: auto }
.nav-mobile a,
.nav-mobile button {
  display: block;
  text-align: left;
  padding: 12px 16px;
  border-radius: 14px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  color: rgba(250,249,246,0.9);
  width: 100%;
}
.nav-mobile a:hover,
.nav-mobile button:hover { background: rgba(255,255,255,0.10) }

/* ── SHELL LAYOUT ────────────────────────────────────────────────────────── */

.shell {
  width: min(1240px, 94vw);
  margin: 0 auto;
  display: flex;
  gap: 26px;
  align-items: flex-start;
  padding: 150px 0 60px;
}

/* ── SIDEBAR ─────────────────────────────────────────────────────────────── */

.sidebar {
  width: 262px;
  flex-shrink: 0;
  position: sticky;
  top: 150px;
  border-radius: var(--radius-xl);
  padding: 24px 18px;
}
.side-label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  margin: 6px 8px 10px;
}
.side-group { margin-bottom: 18px }
.snav {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 15px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-mid);
  transition: all .2s var(--ease);
  margin-bottom: 2px;
  text-decoration: none;
}
.snav:hover { background: rgba(255,255,255,0.45); color: var(--ink) }
.snav.active { background: rgba(20,16,26,0.88); color: #fff }
.snav svg { width: 18px; height: 18px; flex-shrink: 0 }

/* ── MAIN ────────────────────────────────────────────────────────────────── */

.main {
  flex: 1;
  min-width: 0;
  border-radius: var(--radius-xl);
  padding: 40px;
}
.page-header { margin-bottom: 26px }
.page-header h1 {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(30px,3.4vw,42px);
  color: var(--ink);
}
.page-header p { color: var(--ink-mid); font-size: 15px; margin-top: 4px }

/* ── CARD ────────────────────────────────────────────────────────────────── */

.card {
  background: var(--glass-strong);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--capsule-edge);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 12px 30px rgba(40,30,38,0.06);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 16px;
}
.card-title { font-family: var(--font-head); font-size: 19px; font-weight: 400; color: var(--ink) }
.card-sub   { font-size: 13.5px; color: var(--ink-mid); margin-top: 2px }

/* ── BADGE ───────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 9999px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}
.badge-active {
  background: rgba(120,160,115,0.22);
  color: #3f6b3a;
  border: 1px solid rgba(120,160,115,0.3);
}

/* ── SUBSCRIPTION HERO ───────────────────────────────────────────────────── */

.sub-hero {
  position: relative;
  overflow: hidden;
  background: rgba(20,16,26,0.52);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  color: #fff;
  box-shadow: 0 24px 60px rgba(20,16,26,0.3);
}
.sub-hero .card-title { color: #fff; font-size: 22px }
.sub-hero .card-sub   { color: rgba(255,255,255,0.62) }
.sub-hero .badge-active {
  background: rgba(140,200,140,0.22);
  color: #bfeabf;
  border: 1px solid rgba(140,200,140,0.3);
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px,1fr));
  gap: 20px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.plan-grid h4 { font-family: var(--font-ui); font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.55); margin-bottom: 5px }
.plan-grid p  { font-family: var(--font-head); font-size: 20px; font-weight: 400 }
.plan-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap }

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: 22px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 700;
  transition: all .2s var(--ease);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg,
    color-mix(in srgb,var(--rose) 72%,transparent),
    color-mix(in srgb,var(--gold) 72%,transparent));
  color: #1a1620;
  border-color: var(--capsule-edge);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px color-mix(in srgb,var(--rose) 28%,transparent);
}
.btn-primary:hover { transform: translateY(-1.5px) }
.btn-glass {
  background: var(--glass-strong);
  color: var(--ink);
  border: 1px solid var(--capsule-edge);
  backdrop-filter: blur(16px);
}
.btn-glass:hover { transform: translateY(-1.5px); background: #fff }
.btn-onhero {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
}
.btn-onhero:hover { background: rgba(255,255,255,0.2) }
.btn-danger {
  background: rgba(239,68,68,0.16);
  color: #f6b3b3;
  border: 1px solid rgba(239,68,68,0.24);
}
.btn-danger:hover { background: rgba(239,68,68,0.26) }
.btn-sm    { padding: 8px 15px; font-size: 13px }
.btn-ghost { background: transparent; color: var(--ink-mid); padding: 7px 12px }
.btn-ghost:hover { background: rgba(255,255,255,0.45); color: var(--ink) }
.btn-link  { background: none; border: none; color: var(--ink-mid); font-size: 13px; padding: 0; font-family: var(--font-ui); font-weight: 600; cursor: pointer }
.btn-link:hover { color: var(--rose) }

/* ── INFO ROWS ───────────────────────────────────────────────────────────── */

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.info-row:last-child  { border-bottom: none; padding-bottom: 0 }
.info-row:first-of-type { padding-top: 0 }
.info-label { font-size: 14px; color: var(--ink-mid) }
.info-value { font-size: 14px; font-weight: 600; color: var(--ink); text-align: right }

/* ── PAYMENT CARD ────────────────────────────────────────────────────────── */

.pay {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--capsule-edge);
  border-radius: 14px;
}
.pay-icon {
  width: 42px;
  height: 28px;
  border-radius: 6px;
  background: #1f1b2a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}
.pay h4 { font-family: var(--font-ui); font-size: 14px; font-weight: 600; color: var(--ink) }
.pay p  { font-size: 13px; color: var(--ink-mid) }

/* ── LIST ITEMS ──────────────────────────────────────────────────────────── */

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 14px;
  transition: background .2s;
}
.list-item:hover { background: rgba(255,255,255,0.4) }
.list-item h4 { font-family: var(--font-ui); font-size: 14px; font-weight: 600; color: var(--ink) }
.list-item p  { font-size: 13px; color: var(--ink-mid) }
.list-amt { text-align: right; flex-shrink: 0 }
.list-amt h4  { font-family: var(--font-head); font-size: 15px }
.list-amt a   { font-size: 12.5px; color: var(--ink-mid) }
.list-amt a:hover { color: var(--rose) }

/* ── PER-PERSON ROWS ─────────────────────────────────────────────────────── */

.person-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.person-row:last-of-type { border-bottom: none }
.person-info   { display: flex; align-items: center; gap: 10px }
.person-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}
.person-name  { font-family: var(--font-ui); font-size: 14px; font-weight: 600; color: var(--ink) }
.person-type  { font-size: 12px; color: var(--ink-muted); margin-top: 1px }
.person-price { font-family: var(--font-head); font-size: 17px; color: var(--ink); text-align: right }
.person-price small { display: block; font-family: var(--font-ui); font-size: 12px; color: var(--ink-muted) }
.person-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 0;
  margin-top: 2px;
}
.person-total strong { font-family: var(--font-ui); font-size: 14px; font-weight: 700; color: var(--ink) }
.total-price { font-family: var(--font-head); font-size: 21px; color: var(--ink) }
.total-cycle { font-family: var(--font-ui); font-size: 13px; color: var(--ink-muted); margin-left: 4px }

/* ── ADDRESSES ───────────────────────────────────────────────────────────── */

.addr-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 16px }
.addr {
  position: relative;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--capsule-edge);
  transition: all .2s var(--ease);
}
.addr.default {
  border: 1.5px solid color-mix(in srgb,var(--rose) 55%,transparent);
  background: rgba(255,255,255,0.55);
}
.addr-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--rose);
}
.addr .name { font-weight: 600; color: var(--ink); margin-bottom: 6px }
.addr p { font-size: 14px; color: var(--ink-mid); line-height: 1.6 }
.addr-actions { display: flex; gap: 8px; margin-top: 14px }
.addr-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 170px;
  border: 1.5px dashed color-mix(in srgb,var(--rose) 50%,transparent);
  color: var(--rose);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border-radius: 16px;
  background: color-mix(in srgb,var(--rose) 4%,transparent);
  transition: all .2s;
  text-decoration: none;
}
.addr-add:hover { background: color-mix(in srgb,var(--rose) 10%,transparent); border-color: var(--rose) }
.addr-add svg  { width: 22px; height: 22px }
.addr-add small { font-size: 12px; font-weight: 500; color: var(--ink-muted) }

/* ── FORM ────────────────────────────────────────────────────────────────── */

.avatar-row { display: flex; align-items: center; gap: 18px; margin-bottom: 24px }
.avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--grad-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 26px;
  color: #fff;
  flex-shrink: 0;
}
.avatar-row h3 { font-family: var(--font-head); font-size: 18px; font-weight: 400 }
.avatar-row p  { font-size: 13px; color: var(--ink-mid) }
.fg { margin-bottom: 18px }
.fg label { display: block; font-family: var(--font-ui); font-size: 13.5px; font-weight: 600; margin-bottom: 7px }
.fg input,
.fg select,
.fg textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid var(--capsule-edge);
  background: rgba(255,255,255,0.5);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  transition: all .2s;
}
.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  outline: none;
  border-color: var(--rose);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb,var(--rose) 18%,transparent);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.form-section-label {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  margin: 20px 0 14px;
}
.form-section-label:first-child { margin-top: 0 }
.error-msg {
  font-family: var(--font-ui);
  font-size: 13px;
  color: #c05050;
  margin-top: 6px;
  display: none;
}
.error-msg.visible { display: block }

/* ── BILLING SUMMARY ─────────────────────────────────────────────────────── */

.bill-summary { border-radius: 16px; overflow: hidden; border: 1px solid var(--capsule-edge); margin-bottom: 20px }
.bill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  background: rgba(255,255,255,0.35);
}
.bill-row:last-child { border-bottom: none }
.bill-row .lbl { color: var(--ink-mid) }
.bill-row .amt { font-weight: 600; color: var(--ink) }
.bill-row.addition .lbl { color: var(--ink) }
.bill-row.addition .amt { color: color-mix(in srgb,var(--rose) 70%,var(--ink-mid)) }
.bill-row.total-row { background: rgba(255,255,255,0.55); padding: 16px 18px }
.bill-row.total-row .lbl { font-family: var(--font-ui); font-weight: 700; color: var(--ink) }
.bill-row.total-row .amt { font-family: var(--font-head); font-size: 20px; color: var(--ink) }

/* ── CARD-ON-FILE TOGGLE ─────────────────────────────────────────────────── */

.card-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--capsule-edge);
  margin-bottom: 16px;
  cursor: pointer;
  transition: background .2s;
}
.card-toggle:hover { background: rgba(255,255,255,0.6) }
.card-toggle input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--rose); cursor: pointer; flex-shrink: 0 }
.card-toggle-info { flex: 1 }
.card-toggle-info h4 { font-family: var(--font-ui); font-size: 14px; font-weight: 600; color: var(--ink) }
.card-toggle-info p  { font-size: 13px; color: var(--ink-muted); margin-top: 2px }
.new-card-fields {
  padding: 20px;
  border-radius: 14px;
  background: rgba(255,255,255,0.35);
  border: 1px solid var(--capsule-edge);
  margin-bottom: 16px;
}

/* ── MOBILE BOTTOM TAB ───────────────────────────────────────────────────── */

.mtab {
  display: none;
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 150;
  justify-content: space-around;
  padding: 8px;
  border-radius: 26px;
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid var(--capsule-edge);
  box-shadow: 0 18px 45px rgba(40,30,38,0.16);
}
.mtab a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 14px;
  border-radius: 18px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  transition: all .2s;
}
.mtab a.active { color: var(--rose); background: rgba(255,255,255,0.45) }
.mtab a svg    { width: 20px; height: 20px }

/* ── ALERT / NOTICE ──────────────────────────────────────────────────────── */

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  margin-bottom: 20px;
}
.notice-success { background: rgba(120,180,110,0.18); border: 1px solid rgba(120,180,110,0.3); color: #2e5e2a }
.notice-error   { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.24); color: #8b2020 }
.notice-info    { background: rgba(165,178,195,0.22); border: 1px solid rgba(165,178,195,0.3); color: var(--ink-mid) }

/* ── AUTH PAGES (sign-in / register) ─────────────────────────────────────── */

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px;
}
.auth-box {
  width: min(420px, 100%);
  background: var(--glass-strong);
  backdrop-filter: blur(30px) saturate(170%);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  border: 1px solid var(--capsule-edge);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 24px 60px rgba(40,30,38,0.12);
}
.auth-logo {
  display: block;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  margin-bottom: 28px;
  text-decoration: none;
}
.auth-logo span {
  font-style: italic;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 6px;
}
.auth-sub  { font-size: 14px; color: var(--ink-mid); margin-bottom: 24px }
.auth-footer { text-align: center; font-size: 13.5px; color: var(--ink-mid); margin-top: 22px }
.auth-footer a { color: var(--rose); font-weight: 600 }

/* ── ANIMATIONS ──────────────────────────────────────────────────────────── */

@keyframes fade {
  from { opacity: 0; transform: translateY(8px) }
  to   { opacity: 1; transform: none }
}
.annes-portal main,
.auth-box { animation: fade .35s var(--ease) }

/* ── DARK MODE ───────────────────────────────────────────────────────────── */

html.dark {
  --silk:       #0C0912;
  --ink:        #F1EDF5;
  --ink-mid:    #A59CA8;
  --ink-muted:  #746A78;
  --peach:      #2A1C24;
  --rose:       #C39AA1;
  --lavender:   #1D273B;
  --champagne:  #17151D;
  --gold:       #E7C693;
  --glass:            rgba(18,14,24,0.5);
  --glass-strong:     rgba(26,21,34,0.7);
  --glass-edge:       rgba(255,255,255,0.08);
  --line:             rgba(255,255,255,0.08);
  --capsule-bg:       rgba(8,6,14,0.55);
  --capsule-edge:     rgba(255,255,255,0.10);
}
html.dark .acct-bg-gradient { background-color: rgba(12,9,18,0.5) }
html.dark .pay,
html.dark .addr,
html.dark .fg input,
html.dark .fg select,
html.dark .mtab a.active,
html.dark .card-toggle,
html.dark .new-card-fields { background: rgba(255,255,255,0.06) }
html.dark .bill-row       { background: rgba(255,255,255,0.04) }
html.dark .bill-row.total-row { background: rgba(255,255,255,0.08) }
html.dark .badge-active   { background: rgba(140,200,140,0.16); color: #a8d8a8; border-color: rgba(140,200,140,0.22) }
html.dark .addr-add       { background: rgba(195,154,161,0.06); border-color: rgba(195,154,161,0.25) }
html.dark .notice-success { background: rgba(120,180,110,0.12); color: #8fbd8a }
html.dark .notice-error   { background: rgba(239,68,68,0.10); color: #d47a7a }
html.dark .btn-glass      { background: rgba(255,255,255,0.08) }
html.dark .btn-glass:hover{ background: rgba(255,255,255,0.14) }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .sidebar      { display: none }
  .shell        { padding: 130px 0 110px }
  .main         { padding: 28px }
  .mtab         { display: flex }
  .nav-menu     { display: none }
  .nav-right .nav-pill { display: none }
  .nav-burger   { display: flex }
  .nav-mobile   { display: flex }
}
@media (max-width: 640px) {
  .main         { padding: 22px 18px }
  .form-row     { grid-template-columns: 1fr }
  .plan-actions { flex-direction: column }
  .plan-actions .btn { width: 100% }
  .page-header h1 { font-size: 28px }
  .auth-box     { padding: 28px 22px }
}
