
/* ─────────────────────────────────────────
   TOKENS
   Slate lightened from #3d4f42 → #506858
   so the banner feels airy, not oppressive.
   ───────────────────────────────────────── */
:root {
  --banner:     #506858;   /* reverted — medium slate green              */
  --banner-deep:#3d5247;   /* hover / depth shade                        */
  --slate:      #3d4f42;   /* nav text, headings, buttons on light pages */
  --slate-deep: #2e3d33;
  --mint:       #a8e6c0;   /* logo border colour                         */
  --mint-soft:  #c8f0d8;
  --mint-pale:  #e8f7ee;
  --green:      #6b9b7a;   /* mid-green — logo text colour               */
  --cream:      #f3f5f3;
  --white:      #ffffff;
  --text:       #1e2b22;
  --muted:      #4e6155;
  --faint:      #8aa090;
  --border:     rgba(61,79,66,0.15);
  --red:        #b83c2b;
  --red-pale:   #fce8e6;
}

[data-theme="dark"] {
  --banner:     #3a4f40;
  --banner-deep:#2c3e32;
  --slate:      #1e2e24;
  --slate-deep: #161f1a;
  --cream:      #1a2620;
  --white:      #1f2e27;
  --text:       #d4e8da;
  --muted:      #8ab89a;
  --faint:      #5a7a64;
  --border:     rgba(168,230,192,0.10);
  --mint:       #a8e6c0;
  --mint-soft:  #c8f0d8;
  --mint-pale:  #1f3a2a;
  --green:      #7dc492;
  --red:        #e05a47;
  --red-pale:   #2e1a18;
}

[data-theme="dark"] .pillar-header-title,
[data-theme="dark"] .section-title        { color: var(--mint-soft); }
[data-theme="dark"] .btn                  { background: var(--slate); color: var(--mint-soft); border: 1px solid rgba(168,230,192,0.30); }
[data-theme="dark"] .btn:hover            { background: #2a3e30; }
[data-theme="dark"] .period-tabs          { background: rgba(168,230,192,0.08); }
[data-theme="dark"] .period-tab           { color: var(--muted); }
[data-theme="dark"] .period-tab.active    { background: rgba(168,230,192,0.15); color: var(--mint-soft); box-shadow: none; }
[data-theme="dark"] .client-tab           { background: transparent; color: var(--muted); border-color: var(--border); }
[data-theme="dark"] .client-tab.active    { background: rgba(168,230,192,0.15); color: var(--mint-soft); border-color: rgba(168,230,192,0.30); }
[data-theme="dark"] .chart-band-big       { color: var(--muted); }
[data-theme="dark"] .chart-band-big span  { color: var(--green); }
[data-theme="dark"] .chart-band-sub       { color: var(--muted); }
[data-theme="dark"] .pillar-title         { color: var(--mint-soft); }
[data-theme="dark"] .pillar-desc          { color: var(--muted); }
[data-theme="dark"] .pillar-card          { background: #1f2e27; border-color: rgba(168,230,192,0.12); }
[data-theme="dark"] .pillar-step          { color: var(--green); }
[data-theme="dark"] .tx-table td          { color: var(--muted); }
[data-theme="dark"] .amt-dep              { color: var(--green); }
[data-theme="dark"] .amt-wit              { color: var(--red); }
[data-theme="dark"] .badge-dep            { background: rgba(107,155,122,0.20); color: var(--mint-soft); }
[data-theme="dark"] .badge-wit            { background: rgba(224,90,71,0.18); color: #f0907e; }
[data-theme="dark"] #dailyMonthLabel      { color: var(--mint-soft); }
[data-theme="dark"] .chart-card-title     { color: var(--muted); }

/* smooth colour transitions */
*, *::before, *::after { transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease; }

/* theme toggle button */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  background: rgba(168,230,192,0.10);
  border: 1px solid rgba(168,230,192,0.25);
  border-radius: 50%; width: 32px; height: 32px;
  padding: 0; cursor: pointer; flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.theme-toggle:hover { background: rgba(168,230,192,0.22); border-color: rgba(168,230,192,0.55); }
.theme-toggle-icon  { font-size: 15px; line-height: 1; display: block; }
@keyframes spinIn { from { transform: rotate(-180deg) scale(0.4); opacity:0; } to { transform: rotate(0deg) scale(1); opacity:1; } }
.theme-toggle-icon.switching { animation: spinIn 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Roboto Mono', monospace;
  background: var(--cream);
  color: var(--text);
  font-size: 15px;   /* bumped from 13 → 15 */
  line-height: 1.75;
}

/* ─────────────────────────────────────────
   NAV — always solid slate, mint accent line
   ───────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 84px;
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
  gap: 2rem;
  background: var(--slate);
  border-bottom: 2px solid var(--mint);
}
/* .scrolled no longer needed — nav is always solid */
nav.scrolled {
  position: sticky;
  background: var(--slate);
  border-bottom: 2px solid var(--mint);
  backdrop-filter: none;
}
nav.scrolled .brand-name      { color: rgba(255,255,255,0.92); }
nav.scrolled .nav-link        { color: rgba(255,255,255,0.65); }
nav.scrolled .nav-link:hover  { color: rgba(255,255,255,0.95); }
nav.scrolled .nav-link.active { color: var(--mint); border-bottom-color: var(--mint); }
nav.scrolled .live-badge      { background: rgba(168,230,192,0.15); border-color: rgba(168,230,192,0.35); color: var(--mint); }
nav.scrolled .live-dot        { background: var(--mint); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: 0.5rem; }
.brand-logo { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.brand-name {
  font-family: 'Roboto Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  user-select: none;
  white-space: nowrap;
}
.nav-link:hover  { color: rgba(255,255,255,0.95); }
.nav-link.active { color: var(--mint); border-bottom-color: var(--mint); }

.nav-spacer { flex: 1; }

.live-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.07em;
  color: var(--mint);
  background: rgba(168,230,192,0.15);
  border: 1px solid rgba(168,230,192,0.35);
  padding: 4px 12px; border-radius: 20px;
  transition: all 0.2s;
}
.live-dot {
  width: 7px; height: 7px;
  background: var(--mint); border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.25} }

/* ─────────────────────────────────────────
   PAGE SYSTEM
   ───────────────────────────────────────── */
.page { display: none; }
.page.active { display: block; }
.inner { max-width: 980px; margin: 0 auto; padding: 2.5rem 2rem 5rem; }
.light-section .inner { padding-top: 1.25rem; }

/* ─────────────────────────────────────────
   HERO BANNER — lightened background
   ───────────────────────────────────────── */
.hero-banner {
  background: var(--banner);
  /* subtle mint dot grid, evokes the logo's circuit style */
  background-image: radial-gradient(circle, rgba(168,230,192,0.10) 1px, transparent 1px);
  background-size: 30px 30px;
  padding: 0 2.5rem 4.5rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 520px;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: auto;
  z-index: 0;
}

.hero-stats {
  position: relative;
  z-index: 1;

}
.hero-lockup {
  max-width: 980px;
  margin: 0 auto;
  padding-top: 5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Giant SPROUT wordmark — the centrepiece */
.hero-wordmark {
  font-family: 'Roboto Mono', monospace;
  font-size: clamp(80px, 13vw, 130px);
  font-weight: 600;
  color: var(--mint);
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 80px rgba(168,230,192,0.20);
}

.hero-tagline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 3.5vw, 34px);
  color: rgba(255,255,255,0.90);
  line-height: 1.3;
  margin-bottom: 1rem;
  font-style: italic;
}

.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.58);
  line-height: 1.85;
  max-width: 540px;
  margin: 0 auto 2.25rem;
  font-weight: 300;
}

.btn {
  display: inline-block;
  background: var(--slate);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: var(--slate-deep); transform: translateY(-1px); }

/* Stat strip at bottom of banner */
.hero-stats {
  max-width: 980px;
  margin: 3.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);  /* divider colour between cells */
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.hero-stat {
  padding: 1.5rem 1.75rem;
  background: rgba(255,255,255,0.14);  /* frosted-glass white */
}
.hero-stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);        /* bright white label */
  margin-bottom: 8px;
}
.hero-stat-val {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  color: var(--mint);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.80);        /* much more readable white */
}

/* ─────────────────────────────────────────
   CHART BAND
   Sits right below the banner. White card
   with the all-time cumulative return chart.
   ───────────────────────────────────────── */
.chart-band {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.chart-band-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 2.5rem 2rem 2rem;
}
.chart-band-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}
.chart-band-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.chart-band-big {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  color: var(--slate);
  line-height: 1;
}
.chart-band-big span {
  color: var(--green);
}
.chart-band-sub {
  font-size: 12px;
  color: var(--faint);
  margin-top: 4px;
}
.legend-row  { display: flex; gap: 18px; }
.legend-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.legend-line { width: 20px; height: 2px; border-radius: 2px; background: var(--green); }
.legend-line.spy { background: repeating-linear-gradient(90deg,#aaa 0,#aaa 4px,transparent 4px,transparent 8px); }

/* ─────────────────────────────────────────
   LIGHT SECTION (feature cards, how-strip)
   ───────────────────────────────────────── */
.light-section {
  background: var(--cream);
  background-image: radial-gradient(circle, rgba(61,79,66,0.07) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* ── PILLAR SECTION HEADER ── */
.pillar-header {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}
.pillar-header-title {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  color: var(--slate);
}

/* ── BOTTOM CTA ── */
.bottom-cta {
  text-align: center;
  padding: 2.5rem 0 3.5rem;
}

/* ── PILLAR CARDS — 3 columns ── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 2rem 0;
}
.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 1.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.pillar-card:hover {
  border-color: var(--mint);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(61,79,66,0.10);
}
/* thin mint accent line at top of each card */
.pillar-card::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--mint);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}
/* step label + emoji on same row */
.pillar-step-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
}
.pillar-step {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}
.pillar-icon {
  font-size: 26px;
  line-height: 1;
  /* card padding already gives breathing room from the right border */
}
.pillar-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--slate);
  line-height: 1.2;
  margin-bottom: 0.85rem;
}
.pillar-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
  flex: 1;
}

/* ─────────────────────────────────────────
   SHARED: INNER PAGES
   ───────────────────────────────────────── */
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--slate);
  margin: 0 0 1.5rem;
}

/* metric grid */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 1.5rem; }
.metric-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem 1.25rem; }
.metric-label { font-size: 10px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.metric-val   { font-family: 'DM Serif Display', serif; font-size: 28px; color: var(--text); }
.metric-val.g { color: var(--green); }
.metric-val.r { color: var(--red); }
.metric-sub-text { font-size: 11px; color: var(--faint); margin-top: 3px; }

/* chart cards */
.chart-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 1.75rem; margin-bottom: 1.5rem; }
.chart-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.chart-card-title  { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }

.period-tabs { display: flex; gap: 3px; background: var(--cream); border-radius: 7px; padding: 3px; }
.period-tab  { font-size: 11px; font-family: 'Roboto Mono', monospace; font-weight: 500; padding: 5px 13px; border: none; background: transparent; cursor: pointer; color: var(--muted); border-radius: 5px; transition: all 0.15s; letter-spacing: 0.03em; }
.period-tab.active { background: var(--white); color: var(--slate); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

/* account */
.client-tabs { display: flex; gap: 8px; margin-bottom: 1.5rem; flex-wrap: wrap; }
.client-tab  { padding: 8px 20px; font-size: 12px; font-family: 'Roboto Mono', monospace; font-weight: 500; letter-spacing: 0.03em; border: 1px solid var(--border); border-radius: 6px; background: var(--white); color: var(--muted); cursor: pointer; transition: all 0.15s; }
.client-tab.active { background: var(--slate); color: #fff; border-color: var(--slate); }

.tx-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tx-table th { text-align: left; font-size: 10px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--faint); padding: 0 0 12px; border-bottom: 1px solid var(--border); }
.tx-table td { padding: 13px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.tx-table tr:last-child td { border-bottom: none; }
.badge     { font-size: 10px; font-weight: 600; letter-spacing: 0.05em; padding: 4px 11px; border-radius: 4px; text-transform: uppercase; }
.badge-dep { background: var(--mint-pale); color: var(--slate); }
.badge-wit { background: var(--red-pale);  color: var(--red); }
.amt-dep   { color: var(--green); font-weight: 600; }
.amt-wit   { color: var(--red);   font-weight: 600; }

/* footer */
footer { text-align: center; padding: 2rem; font-size: 12px; color: var(--faint); border-top: 1px solid var(--border); letter-spacing: 0.04em; }

/* animations */
@keyframes fadeUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
.fu  { animation: fadeUp 0.4s ease both; }
.fu2 { animation: fadeUp 0.4s ease 0.08s both; }
.fu3 { animation: fadeUp 0.4s ease 0.16s both; }
.fu4 { animation: fadeUp 0.4s ease 0.24s both; }


/* ─────────────────────────────────────────
   BALANCE BANNER — total AUM
   ───────────────────────────────────────── */
.balance-banner {
  background: var(--slate);
  border-radius: 16px;
  padding: 1.6rem 2rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.balance-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(168,230,192,0.65);
  margin-bottom: 6px;
}
.balance-val {
  font-family: 'DM Serif Display', serif;
  font-size: 44px;
  color: var(--mint);
  line-height: 1;
}
.balance-right {
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  text-align: right;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

/* chart drill-down hint */
.chart-hint {
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.03em;
  font-style: italic;
  margin-top: 4px;
}

/* daily card fade in */
#dailyCard { opacity: 0; transition: opacity 0.25s; }

/* ─────────────────────────────────────────
   LOGIN FORM
   ───────────────────────────────────────── */
.login-wrap {
  max-width: 380px;
  margin: 3rem auto 0;
}
.login-input {
  width: 100%;
  display: block;
  padding: 13px 16px;
  margin-bottom: 12px;
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.login-input:focus { border-color: var(--mint); }
.login-input::placeholder { color: var(--faint); }
.login-btn { width: 100%; margin-top: 4px; }

/* ─────────────────────────────────────────
   ACCOUNT VIEW — greeting row
   ───────────────────────────────────────── */
.acct-header {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.sign-out-btn {
  background: none;
  border: none;
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  color: var(--faint);
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.sign-out-btn:hover { color: var(--red); }

/* ── ACCOUNT ACTION BUTTONS ── */
.acct-actions {
  display: flex;
  gap: 8px;
}
/* 4-column grid with buttons floating above the 4th card */
.metric-grid-btns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 10px 14px;
  margin-bottom: 1.5rem;
}
.acct-btn {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.acct-btn-deposit {
  background: var(--green);
  color: #fff;
  border: none;
}
.acct-btn-deposit:hover {
  background: var(--slate);
  transform: translateY(-1px);
}
.acct-btn-withdraw {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
}
.acct-btn-withdraw:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-1px);
}

/* ─────────────────────────────────────────
   LOGIN GATE — full-page login screen
   ───────────────────────────────────────── */
#loginPage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--banner);
  background-image: radial-gradient(circle, rgba(168,230,192,0.10) 1px, transparent 1px);
  background-size: 30px 30px;
  padding: 2rem;
}
#loginPage .login-logo {
  font-family: 'Roboto Mono', monospace;
  font-size: clamp(48px, 10vw, 80px);
  font-weight: 600;
  color: var(--mint);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
#loginPage .login-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.50);
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
}
#loginPage .login-wrap {
  max-width: 380px;
  width: 100%;
  margin: 0;
}
#loginPage .login-input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(168,230,192,0.20);
  color: rgba(255,255,255,0.90);
}
#loginPage .login-input::placeholder { color: rgba(255,255,255,0.35); }
#loginPage .login-input:focus { border-color: var(--mint); }
#loginPage .login-btn {
  background: var(--mint);
  color: var(--slate-deep);
}
#loginPage .login-btn:hover {
  background: var(--mint-soft);
}
.login-error {
  color: var(--red);
  font-size: 12px;
  margin-top: 8px;
  text-align: center;
  min-height: 18px;
}
#loginPage .login-error { color: #f0907e; }

/* Password reset page (same style as login) */
#resetPage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--banner);
  background-image: radial-gradient(circle, rgba(168,230,192,0.10) 1px, transparent 1px);
  background-size: 30px 30px;
  padding: 2rem;
}
#resetPage .login-logo { font-family: 'Roboto Mono', monospace; font-size: 32px; font-weight: 600; color: var(--mint); letter-spacing: 0.1em; margin-bottom: 0.5rem; }
#resetPage .login-sub { font-size: 14px; color: rgba(255,255,255,0.50); margin-bottom: 2rem; letter-spacing: 0.04em; }
#resetPage .login-wrap { max-width: 380px; width: 100%; margin: 0; }
#resetPage .login-input { background: rgba(255,255,255,0.08); border-color: rgba(168,230,192,0.20); color: rgba(255,255,255,0.90); }
#resetPage .login-input::placeholder { color: rgba(255,255,255,0.35); }
#resetPage .login-input:focus { border-color: var(--mint); }
#resetPage .login-btn { background: var(--mint); color: var(--slate-deep); }

/* Main app wrapper — hidden until authenticated */
#mainApp { display: none; }
#mainApp.visible { display: block; }

/* Admin client switcher in nav */
.admin-switcher {
  position: relative;
  display: flex;
  align-items: center;
}
.admin-switcher input {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 5px;
  border: 1px solid rgba(168,230,192,0.25);
  background: rgba(168,230,192,0.08);
  color: rgba(255,255,255,0.85);
  outline: none;
  width: 130px;
  transition: border-color 0.15s;
}
.admin-switcher input::placeholder { color: rgba(255,255,255,0.35); }
.admin-switcher input:focus { border-color: var(--mint); }
.admin-switcher .switcher-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--slate);
  border: 1px solid rgba(168,230,192,0.25);
  border-radius: 5px;
  margin-top: 4px;
  z-index: 200;
  display: none;
}
.admin-switcher .switcher-dropdown.open { display: block; }
.admin-switcher .switcher-option {
  padding: 6px 12px;
  font-size: 11px;
  font-family: 'Roboto Mono', monospace;
  color: rgba(255,255,255,0.70);
  cursor: pointer;
  transition: background 0.1s;
}
.admin-switcher .switcher-option:hover {
  background: rgba(168,230,192,0.12);
  color: var(--mint);
}

/* Loading indicator */
.loading-text {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────
   SETTINGS GEAR ICON (next to greeting)
   ───────────────────────────────────────── */
.settings-gear {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--faint);
  cursor: pointer;
  padding: 0 0 0 8px;
  vertical-align: middle;
  transition: color 0.15s, transform 0.3s;
  line-height: 1;
}
.settings-gear:hover {
  color: var(--green);
  transform: rotate(90deg);
}

/* ─────────────────────────────────────────
   CHANGE PASSWORD MODAL
   ───────────────────────────────────────── */
.cp-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.cp-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2rem 1.75rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.cp-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--slate);
  margin-bottom: 1.25rem;
}
.cp-input {
  width: 100%;
  display: block;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.cp-input:focus { border-color: var(--mint); }
.cp-input::placeholder { color: var(--faint); }
.cp-error {
  color: var(--red);
  font-size: 12px;
  min-height: 16px;
  margin-top: 2px;
}
.cp-success {
  color: var(--green);
  font-size: 12px;
  min-height: 16px;
}
.cp-actions {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
}
.cp-btn {
  flex: 1;
  background: var(--slate);
  color: #fff;
}
.cp-cancel {
  flex: 1;
  background: var(--cream);
  color: var(--muted);
  border: 1px solid var(--border);
}
.cp-cancel:hover {
  background: var(--white);
  border-color: var(--faint);
}

/* Dark mode overrides for change password modal */
[data-theme="dark"] .cp-box     { background: var(--slate); border-color: rgba(168,230,192,0.15); }
[data-theme="dark"] .cp-title   { color: var(--mint-soft); }
[data-theme="dark"] .cp-input   { background: rgba(255,255,255,0.08); border-color: rgba(168,230,192,0.20); color: rgba(255,255,255,0.90); }
[data-theme="dark"] .cp-input::placeholder { color: rgba(255,255,255,0.35); }
[data-theme="dark"] .cp-input:focus { border-color: var(--mint); }
[data-theme="dark"] .cp-btn     { background: var(--mint); color: var(--slate-deep); }
[data-theme="dark"] .cp-cancel  { background: transparent; color: var(--muted); border-color: rgba(168,230,192,0.25); }

