/* ============================================================
   FRT CRM — Business Management · dark + auriu metalic
   ============================================================ */
:root {
  --bg: #0A0A0A;
  --bg2: #0F0F0F;
  --card: #141414;
  --card2: #1B1B1B;
  --line: rgba(255,255,255,.07);
  --line2: rgba(255,255,255,.12);
  --gold: #D4AF37;
  --gold-hi: #F0D98C;
  --gold-dim: #A8872A;
  --gold-soft: rgba(212,175,55,.14);
  --text: #F2F2F2;
  --muted: #9A9A9A;
  --green: #34D399;
  --red: #F87171;
  --blue: #60A5FA;
  --purple: #A78BFA;
  --radius: 16px;
  --font-head: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(212,175,55,.05), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
input, select, textarea {
  font: inherit; color: var(--text);
  background: var(--bg2); border: 1px solid var(--line2);
  border-radius: 10px; padding: 9px 12px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(212,175,55,.12);
}
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
label input, label select, label textarea { margin-top: 4px; color: var(--text); }

.boot { padding: 80px; text-align: center; color: var(--muted); }

/* ---------- layout ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 248px; flex-shrink: 0;
  background: var(--bg2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.logo { padding: 22px 20px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, var(--gold-dim));
  display: grid; place-items: center; color: #0A0A0A;
  box-shadow: 0 4px 16px rgba(212,175,55,.3);
}
.logo-name {
  font-family: var(--font-head); font-weight: 800; font-size: 14px;
  letter-spacing: 1.6px; line-height: 1.25; color: var(--text);
}
.logo-name span { color: var(--gold); }
.logo-sub { font-size: 9px; letter-spacing: 2.6px; color: var(--muted); margin-top: 3px; text-transform: uppercase; font-weight: 700; }
.nav-scroll { flex: 1; overflow-y: auto; padding: 14px 12px; }
.nav-label {
  font-size: 9.5px; letter-spacing: 2.2px; color: var(--muted);
  text-transform: uppercase; padding: 12px 14px 7px; font-weight: 800;
}
.nav-btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 14px; margin-bottom: 3px;
  background: none; border: none; border-radius: 10px;
  color: var(--muted); font-family: var(--font-head);
  font-size: 13.5px; font-weight: 600; letter-spacing: .2px;
  text-align: left; transition: all .18s;
}
.nav-btn:hover { color: var(--text); background: var(--card); }
.nav-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #0A0A0A; font-weight: 800;
  box-shadow: 0 4px 18px rgba(212,175,55,.25);
}
.nav-btn .ico {
  width: 20px; height: 20px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 13px;
  border-radius: 6px; background: rgba(255,255,255,.05);
}
.nav-btn.active .ico { background: rgba(0,0,0,.15); }
.side-profile {
  margin: 12px; padding: 13px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; gap: 11px;
}
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(212,175,55,.25), rgba(212,175,55,.08));
  border: 1px solid rgba(212,175,55,.35);
  display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--gold-hi);
}
.side-profile .who { flex: 1; min-width: 0; }
.side-profile .who b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-head); }
.side-profile .who span { font-size: 11px; color: var(--muted); }
.online-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex-shrink: 0; box-shadow: 0 0 8px rgba(52,211,153,.7); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 32px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(10,10,10,.8); backdrop-filter: blur(14px); z-index: 10;
}
.topbar h1 { font-family: var(--font-head); font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.topbar .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.topbar .spacer { flex: 1; }
.month-chip {
  font-size: 12.5px; color: var(--muted); font-weight: 600;
  border: 1px solid var(--line2); border-radius: 10px; padding: 8px 14px;
  background: var(--bg2); text-transform: capitalize;
}
.content { padding: 28px 32px 64px; max-width: 1440px; width: 100%; }

/* ---------- butoane ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, var(--gold-dim));
  color: #0A0A0A; border: none;
  padding: 10px 18px; border-radius: 11px; font-weight: 800; font-size: 13px;
  font-family: var(--font-head); letter-spacing: .3px;
  transition: filter .15s, transform .1s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(212,175,55,.22);
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line2); box-shadow: none;
  font-weight: 600;
}
.btn.ghost:hover { border-color: var(--gold-dim); color: var(--gold-hi); filter: none; }
.btn.danger { background: transparent; color: var(--red); border: 1px solid rgba(248,113,113,.3); box-shadow: none; }
.btn.danger:hover { border-color: var(--red); filter: none; }
.btn.sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; box-shadow: none; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }

/* ---------- carduri & metrici ---------- */
.card {
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 32px rgba(0,0,0,.35);
}
.card h3 {
  font-family: var(--font-head);
  font-size: 14px; color: var(--text); font-weight: 800; letter-spacing: .2px;
  margin-bottom: 6px;
}
.card h3 .muted, .card h3 small { font-weight: 600; }
section-label {
  font-size: 10px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 1.2px; font-weight: 700;
}
.card .big { font-family: var(--font-head); font-size: 30px; font-weight: 800; letter-spacing: -1px; margin-top: 8px; }
.card .sub2 { font-size: 12px; color: var(--muted); margin-top: 5px; }
.grid { display: grid; gap: 18px; }
.c2 { grid-template-columns: repeat(2, 1fr); }
.c3 { grid-template-columns: repeat(3, 1fr); }
.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .c4, .c3 { grid-template-columns: repeat(2,1fr); } .c2 { grid-template-columns: 1fr; } }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px; border-radius: 99px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-gold { background: var(--gold-soft); color: var(--gold-hi); }
.b-green { background: rgba(52,211,153,.13); color: var(--green); }
.b-blue { background: rgba(96,165,250,.13); color: var(--blue); }
.b-red { background: rgba(248,113,113,.13); color: var(--red); }
.b-grey { background: rgba(154,154,154,.12); color: var(--muted); }
.b-purple { background: rgba(167,139,250,.13); color: var(--purple); }

/* ---------- tabele ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; padding: 12px 16px; color: var(--muted);
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px;
  border-bottom: 1px solid var(--line); font-weight: 800;
}
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr { cursor: pointer; transition: background .12s; }
.tbl tbody tr:hover { background: rgba(212,175,55,.05); }
.tbl-wrap { overflow-x: auto; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.row-flex { display: flex; align-items: center; gap: 10px; }

/* ---------- dashboard: carduri ca în mockup ---------- */
.dash-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.dash-head h3 { margin-bottom: 0; }
.dash-total { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--gold-hi); }

.cli-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.cli-row:last-child { border-bottom: none; }
.cli-row:hover .cli-name { color: var(--gold-hi); }
.cli-avatar {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(212,175,55,.22), rgba(212,175,55,.06));
  border: 1px solid rgba(212,175,55,.3);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 13px; color: var(--gold-hi);
}
.cli-name { font-weight: 700; font-size: 13.5px; font-family: var(--font-head); transition: color .15s; }
.cli-sub { font-size: 11.5px; color: var(--muted); }
.cli-val { text-align: right; font-family: var(--font-head); font-weight: 800; font-size: 14px; color: var(--gold-hi); }
.cli-val .per { display: block; font-size: 10px; color: var(--muted); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }

.delta-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 800; padding: 4px 11px; border-radius: 99px;
  margin-top: 8px;
}
.delta-up { background: rgba(52,211,153,.13); color: var(--green); }
.delta-down { background: rgba(248,113,113,.13); color: var(--red); }
.spark { width: 100%; height: 74px; margin-top: 12px; display: block; }

.task-mini { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.task-mini:last-child { border-bottom: none; }
.task-mini .tm-time { font-size: 11px; color: var(--muted); width: 52px; flex-shrink: 0; font-weight: 600; }
.task-mini .tm-title { flex: 1; font-size: 13px; cursor: pointer; }
.task-mini .tm-title:hover { color: var(--gold-hi); }

.feed-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.feed-item:last-child { border-bottom: none; }
.feed-dot {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 14px;
  background: var(--gold-soft); border: 1px solid rgba(212,175,55,.25); color: var(--gold-hi);
}
.feed-txt { flex: 1; font-size: 13px; min-width: 0; }
.feed-txt b { font-family: var(--font-head); }
.feed-txt .muted { display: block; font-size: 11.5px; margin-top: 1px; }
.feed-when { font-size: 11px; color: var(--muted); flex-shrink: 0; padding-top: 3px; }

/* mini funnel / pipeline ponderat */
.funnel-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 12.5px; }
.funnel-row .fl { width: 92px; color: var(--muted); flex-shrink: 0; }
.funnel-bar { flex: 1; height: 8px; background: var(--bg2); border-radius: 99px; overflow: hidden; }
.funnel-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); border-radius: 99px; }
.funnel-n { width: 90px; text-align: right; color: var(--muted); font-size: 11.5px; flex-shrink: 0; }

/* ---------- pipeline kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .kanban { grid-template-columns: repeat(2,1fr); } }
.kcol {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px;
  min-height: calc(100vh - 230px);
}
.kcol h4 {
  font-family: var(--font-head); font-size: 11px; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--muted); padding: 2px 4px 12px;
  display: flex; justify-content: space-between; font-weight: 800;
}
.kcol h4 span { color: var(--gold-hi); }
.kcard-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.kavatar {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(212,175,55,.2), rgba(212,175,55,.05));
  border: 1px solid rgba(212,175,55,.3); color: var(--gold-hi);
  display: grid; place-items: center; font-family: var(--font-head);
  font-weight: 800; font-size: 12px;
}
.kcard-bot { display: flex; align-items: center; justify-content: space-between; }
.kempty {
  border: 1.5px dashed var(--line2); border-radius: 10px;
  padding: 22px 10px; text-align: center; color: var(--muted);
  font-size: 12px; margin-top: 6px;
}
.kcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 14px; margin-bottom: 10px; cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .2s;
}
.kcard:hover {
  border-color: rgba(212,175,55,.45); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.kcard b { font-family: var(--font-head); font-size: 13.5px; display: block; letter-spacing: .2px; }
.kcard .kmeta { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.kcard .kval { color: var(--gold-hi); font-weight: 800; font-size: 13px; margin-top: 7px; font-family: var(--font-head); }
.kcard .kprob { display: inline-block; margin-top: 7px; font-size: 10.5px; font-weight: 700; color: var(--muted); background: var(--bg2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 99px; }

/* ---------- calendar ---------- */
.cal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cal-head h2 { font-family: var(--font-head); font-size: 19px; flex: 1; text-transform: capitalize; letter-spacing: -.2px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-dow { text-align: center; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; padding: 8px 0; font-weight: 800; }
.cal-day {
  min-height: 96px; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 12px; padding: 8px; font-size: 12px;
}
.cal-day.out { opacity: .3; }
.cal-day.today { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.cal-day .dnum { font-family: var(--font-head); font-weight: 800; font-size: 13px; margin-bottom: 5px; }
.cal-day.today .dnum { color: var(--gold-hi); }
.cal-ev {
  display: block; font-size: 10.5px; line-height: 1.35;
  padding: 3px 7px; border-radius: 6px; margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
  font-weight: 600;
}
.ev-task { background: var(--gold-soft); color: var(--gold-hi); }
.ev-activity { background: rgba(96,165,250,.14); color: var(--blue); }
.ev-expected { background: rgba(167,139,250,.14); color: var(--purple); }
.ev-won { background: rgba(52,211,153,.15); color: var(--green); }
.ev-invoice { background: rgba(248,113,113,.13); color: var(--red); }

/* ---------- sarcini ---------- */
.task-row { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.task-row:last-child { border-bottom: none; }
.task-check { width: 19px; height: 19px; accent-color: var(--gold); flex-shrink: 0; cursor: pointer; }
.task-title { flex: 1; font-size: 13.5px; font-weight: 500; }
.task-title.done { text-decoration: line-through; opacity: .45; }
.task-cat { font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 99px; text-transform: uppercase; letter-spacing: .8px; }
.cat-vanzare { background: var(--gold-soft); color: var(--gold-hi); }
.cat-followup { background: rgba(96,165,250,.13); color: var(--blue); }
.cat-admin { background: rgba(154,154,154,.12); color: var(--muted); }
.cat-tehnic { background: rgba(167,139,250,.13); color: var(--purple); }
.cat-suport { background: rgba(52,211,153,.13); color: var(--green); }
.cat-general { background: rgba(154,154,154,.12); color: var(--muted); }

/* ---------- graf ---------- */
.bars { display: flex; align-items: flex-end; gap: 12px; height: 120px; margin-top: 16px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar {
  width: 100%; max-width: 52px; border-radius: 8px 8px 0 0; min-height: 4px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-dim));
  box-shadow: 0 0 18px rgba(212,175,55,.18);
}
.bar-lbl { font-size: 10.5px; color: var(--muted); font-weight: 600; }

/* ---------- timeline ---------- */
.tl-item { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.tl-item:last-child { border-bottom: none; }
.tl-head { display: flex; gap: 9px; align-items: baseline; }
.tl-kind { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-dim); font-family: var(--font-head); }
.tl-date { margin-left: auto; font-size: 11px; color: var(--muted); }
.tl-body { margin-top: 5px; white-space: pre-wrap; }

/* ---------- contact detail ---------- */
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.detail-head h1 { font-family: var(--font-head); font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .detail-grid { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; font-size: 13px; margin-top: 12px; }
.kv .k { color: var(--muted); font-size: 12px; }

.empty { padding: 44px; text-align: center; color: var(--muted); }

/* ---------- dashboard 2×2 ca în mockup ---------- */
.dash-top { display: grid; grid-template-columns: 5fr 7fr; gap: 18px; margin-bottom: 18px; align-items: stretch; }
.dash-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 1100px) { .dash-top, .dash-bottom { grid-template-columns: 1fr; } }
.see-all { font-size: 12px; font-weight: 700; color: var(--gold-hi); white-space: nowrap; }
.see-all:hover { text-decoration: underline; }
.dash-total { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--gold-hi); }

.area-chart { width: 100%; height: 190px; margin-top: 10px; display: block; }
.chart-x { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 4px; padding: 0 8px; }
.cat-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

.feed-dot.gold, .feed-dot { background: var(--gold-soft); border: 1px solid rgba(212,175,55,.3); color: var(--gold-hi); }
.feed-dot.feed-green { background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.3); color: var(--green); }
.feed-dot.feed-blue { background: rgba(96,165,250,.12); border-color: rgba(96,165,250,.3); color: var(--blue); }
.feed-when { font-size: 11px; color: var(--muted); flex-shrink: 0; padding-top: 4px; white-space: nowrap; }

/* ---------- topbar acțiuni ---------- */
.icon-btn {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--bg2); border: 1px solid var(--line2); color: var(--muted);
  transition: all .15s; position: relative;
}
.icon-btn:hover { color: var(--gold-hi); border-color: var(--gold-dim); }
.bell-wrap { position: relative; }
.bell-badge {
  position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px;
  border-radius: 99px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 800; display: grid; place-items: center; padding: 0 4px;
}
.add-wrap { position: relative; }
.add-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  background: var(--card2); border: 1px solid var(--line2); border-radius: 13px;
  padding: 6px; min-width: 240px; box-shadow: 0 18px 50px rgba(0,0,0,.6);
}
.add-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: none; color: var(--text); font-size: 13px; font-weight: 600;
  padding: 10px 12px; border-radius: 9px; text-align: left;
}
.add-menu button:hover { background: var(--gold-soft); color: var(--gold-hi); }
.logo-mark svg { display: block; }
.ico svg { display: block; }
.nav-btn .ico { background: none; width: auto; height: auto; display: grid; place-items: center; }
.nav-btn.active .ico { background: none; }

.toast {
  position: fixed; bottom: 26px; right: 26px; z-index: 100;
  background: var(--card2); border: 1px solid var(--gold-dim); color: var(--text);
  padding: 13px 20px; border-radius: 13px; font-size: 13px; font-weight: 600;
  box-shadow: 0 14px 44px rgba(0,0,0,.6), 0 0 24px rgba(212,175,55,.12);
}

/* ============================================================
   TEMA DESCHISĂ („culori normale") — comută din butonul soare/lună
   ============================================================ */
html[data-theme="light"] {
  --bg: #F4F4F1;
  --bg2: #FFFFFF;
  --card: #FFFFFF;
  --card2: #F7F7F4;
  --line: rgba(0,0,0,.08);
  --line2: rgba(0,0,0,.16);
  --gold: #B8912F;
  --gold-dim: #9A7A24;
  --gold-soft: rgba(184,145,47,.12);
  --text: #1B1B1B;
  --muted: #6E6E6A;
}
html[data-theme="light"] body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(184,145,47,.06), transparent 60%),
    var(--bg);
}
html[data-theme="light"] .sidebar { background: #FBFBF9; }
html[data-theme="light"] .topbar { background: rgba(255,255,255,.88); }
html[data-theme="light"] .card {
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 10px 30px rgba(0,0,0,.07);
}
html[data-theme="light"] .kcol, html[data-theme="light"] .cal-day { background: var(--card2); }
html[data-theme="light"] input, html[data-theme="light"] select, html[data-theme="light"] textarea { background: #fff; }
html[data-theme="light"] .btn.ghost, html[data-theme="light"] .icon-btn, html[data-theme="light"] .month-chip { background: #fff; }
html[data-theme="light"] .nav-btn:hover { background: #F0F0ED; }
html[data-theme="light"] .funnel-bar { background: #ECECEA; }
html[data-theme="light"] .tbl tbody tr:hover { background: rgba(184,145,47,.07); }
html[data-theme="light"] .toast { background: #fff; }
html[data-theme="light"] .add-menu { background: #fff; }
html[data-theme="light"] .feed-dot, html[data-theme="light"] .kavatar,
html[data-theme="light"] .cli-avatar, html[data-theme="light"] .avatar {
  background: rgba(184,145,47,.1); border-color: rgba(184,145,47,.35); color: #8A6D1F;
}
html[data-theme="light"] .logo-mark { box-shadow: 0 4px 14px rgba(184,145,47,.3); }

/* ---------- login ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 480px at 80% -10%, var(--gold-soft), transparent 60%),
    var(--bg);
}
.login-card {
  width: 100%; max-width: 380px; background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.login-logo { display: flex; align-items: center; gap: 12px; color: var(--gold); margin-bottom: 20px; }
.login-logo b { display: block; font-family: var(--font-head); font-size: 17px; color: var(--text); letter-spacing: .4px; }
.login-logo span { display: block; font-size: 9.5px; letter-spacing: 2.5px; color: var(--muted); font-weight: 700; }
.login-card h2 { font-family: var(--font-head); font-size: 20px; margin: 0 0 4px; }
.login-card label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.login-err { color: var(--red); font-size: 12.5px; min-height: 16px; margin-top: 8px; }
.login-foot { display: flex; justify-content: space-between; margin-top: 18px; font-size: 12.5px; }
.login-foot a { color: var(--muted); }
.login-foot a:hover { color: var(--gold); }
.side-logout { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; }
.side-logout:hover { color: var(--red); border-color: rgba(248,113,113,.4); }
