/* ============================================================
   HabitWealth — styles.css  |  Dark Premium Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── Variables ── */
:root {
  --navy-950:   #060b18;
  --navy-900:   #0b1628;
  --navy-800:   #0f1f3d;
  --navy-700:   #152848;
  --navy-600:   #1e3560;
  --charcoal:   #1a1f2e;
  --charcoal-2: #222738;
  --charcoal-3: #2a3047;

  --gold-400:   #f5c842;
  --gold-500:   #e4ae2a;
  --gold-600:   #c99318;
  --gold-glow:  rgba(228,174,42,0.18);
  --gold-glow2: rgba(228,174,42,0.08);

  --text-primary:   #f0ede8;
  --text-secondary: #9aa3b8;
  --text-muted:     #5c6480;
  --text-gold:      #e4ae2a;

  --border:       rgba(255,255,255,0.07);
  --border-gold:  rgba(228,174,42,0.25);
  --surface:      rgba(15,31,61,0.55);
  --glass:        rgba(10,20,40,0.55);
  --glass-border: rgba(255,255,255,0.06);

  --success: #3ecf8e;
  --danger:  #f25f5c;
  --warning: #f5a623;
  --info:    #4fa3e0;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm:   0 2px 12px rgba(0,0,0,0.35);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.45);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.55);
  --shadow-gold: 0 0 30px rgba(228,174,42,0.12);

  --ease:      cubic-bezier(0.22,1,0.36,1);
  --ease-fast: cubic-bezier(0.4,0,0.2,1);

  --header-h:     60px;
  --bottom-nav-h: 64px;
}

/* ── Reset ── */
*,*::before,*::after { box-sizing: border-box; margin:0; padding:0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--navy-950);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(30,53,96,0.55) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 85% 85%, rgba(228,174,42,0.04) 0%, transparent 50%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* noise overlay */
body::before {
  content:'';
  position:fixed; inset:0;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity:0.025; pointer-events:none; z-index:9999;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

a { color: var(--gold-500); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-400); }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content:''; position:fixed; top:-30%; left:-20%;
  width:70vw; height:70vw; border-radius:50%;
  background:radial-gradient(circle,rgba(21,40,72,.7) 0%,transparent 70%);
  pointer-events:none; z-index:0;
}
.auth-page::after {
  content:''; position:fixed; bottom:-20%; right:-10%;
  width:50vw; height:50vw; border-radius:50%;
  background:radial-gradient(circle,rgba(228,174,42,.06) 0%,transparent 70%);
  pointer-events:none; z-index:0;
}

.auth-card {
  width:100%; max-width:440px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative; z-index:1;
  animation: cardReveal .6s var(--ease) both;
}
@keyframes cardReveal {
  from { opacity:0; transform:translateY(24px) scale(.98); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

.auth-scroll {
  max-height:92vh; overflow-y:auto;
  scrollbar-width:thin; scrollbar-color:var(--charcoal-3) transparent;
  padding:2px;
}
.auth-scroll::-webkit-scrollbar { width:4px; }
.auth-scroll::-webkit-scrollbar-thumb { background:var(--charcoal-3); border-radius:99px; }

.auth-brand { text-align:center; margin-bottom:32px; }
.brand-icon {
  display:inline-flex; align-items:center; justify-content:center;
  width:60px; height:60px; border-radius:18px;
  background:linear-gradient(135deg,var(--navy-700),var(--navy-600));
  border:1px solid var(--border-gold);
  box-shadow:var(--shadow-gold);
  margin-bottom:14px;
  animation: iconPulse 3s ease-in-out infinite;
}
@keyframes iconPulse {
  0%,100% { box-shadow:var(--shadow-gold); }
  50%      { box-shadow:0 0 40px rgba(228,174,42,.22); }
}
.brand-icon svg { width:28px; height:28px; fill:none; stroke:var(--gold-500); stroke-width:1.8; }

.auth-brand h1 {
  font-size:28px; font-weight:700;
  background:linear-gradient(135deg,var(--text-primary) 40%,var(--gold-400));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
  margin-bottom:4px;
}
.auth-brand p { font-size:13px; color:var(--text-secondary); font-weight:300; }

.gold-line {
  width:40px; height:2px;
  background:linear-gradient(90deg,var(--gold-500),transparent);
  border-radius:99px; margin:0 auto 24px;
}

.auth-heading { margin-bottom:24px; }
.auth-heading h2 { font-size:22px; margin-bottom:4px; }
.auth-heading p  { font-size:13px; color:var(--text-secondary); }

/* ── Form Elements ── */
.form-group  { margin-bottom:18px; }
.form-row    { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-label  {
  display:block; font-size:11.5px; font-weight:500;
  color:var(--text-secondary); letter-spacing:.06em;
  text-transform:uppercase; margin-bottom:7px;
}

.input-wrap  { position:relative; display:flex; align-items:center; }
.input-icon  { position:absolute; left:14px; color:var(--text-muted); display:flex; pointer-events:none; z-index:1; }
.input-icon svg { width:15px; height:15px; }

.hw-input {
  width:100%;
  background:rgba(15,25,50,.6);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  color:var(--text-primary);
  font-family:var(--font-body);
  font-size:14px;
  padding:12px 14px 12px 40px;
  outline:none;
  transition:border-color .2s,box-shadow .2s,background .2s;
  -webkit-appearance:none;
}
.hw-input:focus {
  border-color:var(--border-gold);
  background:rgba(15,31,61,.8);
  box-shadow:0 0 0 3px var(--gold-glow2),0 0 16px var(--gold-glow2);
}
.hw-input::placeholder { color:var(--text-muted); }
.hw-input.is-invalid   { border-color:rgba(242,95,92,.6); box-shadow:0 0 0 3px rgba(242,95,92,.08); }
.hw-input.has-toggle   { padding-right:44px; }

.pw-toggle {
  position:absolute; right:14px;
  background:none; border:none; color:var(--text-muted);
  cursor:pointer; display:flex; align-items:center;
  padding:4px; transition:color .2s; z-index:1;
}
.pw-toggle:hover { color:var(--gold-500); }
.pw-toggle svg   { width:15px; height:15px; }

.field-error { font-size:11.5px; color:var(--danger); margin-top:5px; display:flex; align-items:center; gap:4px; }

.phone-prefix { display:flex; }
.phone-code {
  background:rgba(15,25,50,.6); border:1px solid var(--border);
  border-right:none; border-radius:var(--radius-md) 0 0 var(--radius-md);
  color:var(--text-secondary); font-size:13px;
  padding:12px 10px; white-space:nowrap; user-select:none;
  transition:border-color .2s;
}
.phone-prefix .hw-input { border-radius:0 var(--radius-md) var(--radius-md) 0; padding-left:12px; }
.phone-prefix:focus-within .phone-code { border-color:var(--border-gold); }

.forgot-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:7px; }
.forgot-row .form-label { margin-bottom:0; }
.forgot-link { font-size:12px; color:var(--text-secondary); }
.forgot-link:hover { color:var(--gold-500); }

/* Strength meter */
.pw-strength-bars { display:flex; gap:4px; margin-top:6px; }
.pw-strength-bar  { flex:1; height:3px; border-radius:99px; background:var(--border); transition:background .3s; }
.pw-strength-bar.active-weak   { background:var(--danger); }
.pw-strength-bar.active-fair   { background:var(--warning); }
.pw-strength-bar.active-good   { background:var(--info); }
.pw-strength-bar.active-strong { background:var(--success); }
.pw-strength-label { font-size:11px; color:var(--text-muted); transition:color .3s; margin-top:2px; display:block; }

/* Checkbox */
.hw-check { display:flex; align-items:flex-start; gap:10px; cursor:pointer; }
.hw-check input[type="checkbox"] { display:none; }
.hw-check-box {
  width:18px; height:18px; border:1.5px solid var(--border);
  border-radius:5px; background:rgba(15,25,50,.6);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; margin-top:2px; transition:border-color .2s,background .2s;
}
.hw-check input:checked ~ .hw-check-box,
.hw-check input:checked + .hw-check-box { background:var(--gold-500); border-color:var(--gold-500); }
.hw-check-box svg { width:11px; height:11px; opacity:0; transition:opacity .15s; fill:none; stroke:var(--navy-950); stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
.hw-check input:checked ~ .hw-check-box svg,
.hw-check input:checked + .hw-check-box svg { opacity:1; }
.hw-check-label { font-size:13px; color:var(--text-secondary); line-height:1.5; }
.hw-check-label a { color:var(--gold-500); }

/* Alerts */
.hw-alert {
  display:flex; align-items:flex-start; gap:10px;
  padding:12px 14px; border-radius:var(--radius-md);
  font-size:13px; margin-bottom:18px;
  animation:fadeIn .3s ease;
}
.hw-alert svg { width:15px; height:15px; flex-shrink:0; margin-top:2px; }
.hw-alert-danger  { background:rgba(242,95,92,.1);  border:1px solid rgba(242,95,92,.25);  color:#f8928f; }
.hw-alert-success { background:rgba(62,207,142,.1); border:1px solid rgba(62,207,142,.25); color:#5de0a8; }
@keyframes fadeIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }

/* Buttons */
.btn-hw-primary {
  display:flex; align-items:center; justify-content:center; gap:8px;
  width:100%; padding:13px 24px;
  background:linear-gradient(135deg,var(--gold-500),var(--gold-600));
  color:var(--navy-950);
  font-family:var(--font-body); font-size:14px; font-weight:600;
  border:none; border-radius:var(--radius-md);
  cursor:pointer; position:relative; overflow:hidden;
  transition:transform .18s var(--ease),box-shadow .18s,filter .18s;
  box-shadow:0 4px 20px rgba(228,174,42,.25);
}
.btn-hw-primary:hover { transform:translateY(-1px); box-shadow:0 8px 28px rgba(228,174,42,.35); filter:brightness(1.05); }
.btn-hw-primary:active { transform:translateY(0); }
.btn-hw-primary:disabled { opacity:.6; cursor:not-allowed; transform:none; }
.btn-hw-primary .btn-loader { display:none; width:18px; height:18px; border:2px solid rgba(6,11,24,.3); border-top-color:var(--navy-950); border-radius:50%; animation:spin .7s linear infinite; }
.btn-hw-primary.loading .btn-text   { display:none; }
.btn-hw-primary.loading .btn-loader { display:block; }
@keyframes spin { to { transform:rotate(360deg); } }

.auth-footer { text-align:center; margin-top:22px; font-size:13px; color:var(--text-secondary); }
.auth-footer a { color:var(--gold-500); font-weight:500; }

/* ============================================================
   AUTHENTICATED LAYOUT
   ============================================================ */

/* Header */
.hw-header {
  position:sticky; top:0; z-index:200;
  background:rgba(6,11,24,.88);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
  height:var(--header-h);
  display:flex; align-items:center; justify-content:space-between;
  padding:0 20px;
}
.hw-header-left  { display:flex; align-items:center; gap:12px; }
.hw-header-right { display:flex; align-items:center; gap:8px; }

.hw-brand {
  font-family:var(--font-display); font-size:21px; font-weight:700;
  background:linear-gradient(135deg,var(--text-primary) 40%,var(--gold-400));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
  text-decoration:none;
}

.hw-icon-btn {
  width:38px; height:38px; border-radius:var(--radius-sm);
  border:1px solid var(--border); background:transparent;
  color:var(--text-secondary); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:all .2s; position:relative;
  text-decoration:none;
}
.hw-icon-btn:hover { border-color:var(--border-gold); color:var(--gold-500); background:var(--gold-glow2); }
.hw-icon-btn svg  { width:17px; height:17px; }

/* Logout specific - subtle red tint on hover */
.hw-icon-btn.logout-btn:hover { border-color:rgba(242,95,92,.4); color:var(--danger); background:rgba(242,95,92,.06); }

/* Notification dot */
.notif-dot {
  position:absolute; top:8px; right:8px;
  width:6px; height:6px; border-radius:50%;
  background:var(--gold-500);
  border:1.5px solid var(--navy-950);
}

/* Bottom Nav */
.hw-bottom-nav {
  position:fixed; bottom:0; left:0; right:0; z-index:200;
  background:rgba(8,14,28,.95);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border-top:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-around;
  height:var(--bottom-nav-h);
  padding:0 4px;
  padding-bottom:env(safe-area-inset-bottom);
}

.nav-item {
  flex:1; display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:3px; padding:6px 0;
  color:var(--text-muted);
  font-size:10px; font-weight:500; letter-spacing:.03em;
  text-decoration:none; transition:color .2s,transform .2s var(--ease);
  position:relative;
}
.nav-item svg { width:21px; height:21px; stroke:currentColor; fill:none; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.nav-item.active { color:var(--gold-500); }
.nav-item.active::after {
  content:''; position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:24px; height:2px; background:var(--gold-500); border-radius:0 0 4px 4px;
}
.nav-item:active { transform:scale(.9); }

/* Main content */
.hw-main {
  flex:1; padding:24px 20px calc(var(--bottom-nav-h) + 20px);
  max-width:560px; margin:0 auto; width:100%;
}

/* ============================================================
   DASHBOARD COMPONENTS
   ============================================================ */

/* Greeting */
.dash-greeting { margin-bottom:24px; }
.dash-greeting .time-label {
  font-size:11.5px; color:var(--text-muted); letter-spacing:.06em;
  text-transform:uppercase; font-weight:500; margin-bottom:4px;
}
.dash-greeting h2 {
  font-size:28px; font-weight:700; line-height:1.15; margin-bottom:6px;
}
.dash-greeting h2 span { color:var(--gold-500); }
.dash-greeting .dash-date { font-size:13px; color:var(--text-secondary); }

/* Summary strip */
.summary-strip {
  display:grid; grid-template-columns:1fr 1fr 1fr;
  gap:10px; margin-bottom:24px;
}
.summary-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-md); padding:14px 12px;
  transition:border-color .2s,transform .2s var(--ease);
  cursor:default;
}
.summary-card:hover { border-color:rgba(255,255,255,.12); transform:translateY(-2px); }
.summary-card.gold { border-color:var(--border-gold); background:rgba(30,40,72,.6); }
.summary-card .sc-label { font-size:10px; color:var(--text-muted); letter-spacing:.05em; text-transform:uppercase; margin-bottom:6px; }
.summary-card .sc-value { font-family:var(--font-display); font-size:22px; font-weight:700; color:var(--text-primary); line-height:1; }
.summary-card.gold .sc-value { color:var(--gold-400); }
.summary-card .sc-sub { font-size:10.5px; color:var(--text-muted); margin-top:4px; }
.summary-card .sc-icon { font-size:18px; margin-bottom:6px; }

/* Section heading */
.section-head {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:14px;
}
.section-head h3 { font-family:var(--font-display); font-size:20px; font-weight:600; }
.section-head a  { font-size:12px; color:var(--gold-500); font-weight:500; }
.section-head a:hover { color:var(--gold-400); }

/* Goal card */
.goal-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:18px;
  margin-bottom:12px;
  transition:border-color .2s,box-shadow .2s;
  display:flex; flex-direction:column; gap:12px;
  animation: fadeUp .4s var(--ease) both;
}
.goal-card:hover { border-color:rgba(255,255,255,.12); box-shadow:var(--shadow-sm); }

.goal-card-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.goal-card-info { flex:1; }
.goal-card-title { font-size:15px; font-weight:500; color:var(--text-primary); margin-bottom:3px; }
.goal-card-meta  { font-size:12px; color:var(--text-muted); }

.goal-badge {
  display:inline-flex; align-items:center; gap:4px;
  padding:3px 9px; border-radius:99px; font-size:11px; font-weight:500; white-space:nowrap;
}
.goal-badge-daily   { background:rgba(79,163,224,.12); color:var(--info);    border:1px solid rgba(79,163,224,.2); }
.goal-badge-weekly  { background:rgba(228,174,42,.1);  color:var(--gold-400); border:1px solid rgba(228,174,42,.2); }
.goal-badge-done    { background:rgba(62,207,142,.12); color:var(--success);  border:1px solid rgba(62,207,142,.2); }

.goal-progress-row { display:flex; align-items:center; gap:10px; }
.hw-progress { flex:1; height:5px; background:rgba(255,255,255,.06); border-radius:99px; overflow:hidden; }
.hw-progress-fill { height:100%; border-radius:99px; background:linear-gradient(90deg,var(--gold-600),var(--gold-400)); transition:width .6s var(--ease); }
.hw-progress-fill.fill-success { background:linear-gradient(90deg,#2da870,var(--success)); }
.goal-pct { font-size:12px; font-weight:600; color:var(--gold-400); min-width:32px; text-align:right; }

.goal-streak { display:flex; align-items:center; gap:5px; font-size:12px; color:var(--text-muted); }
.goal-streak svg { width:13px; height:13px; }

/* Expense card */
.expense-row {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-md); padding:14px 16px;
  margin-bottom:8px;
  display:flex; align-items:center; gap:14px;
  transition:border-color .2s; cursor:default;
  animation: fadeUp .4s var(--ease) both;
}
.expense-row:hover { border-color:rgba(255,255,255,.1); }

.expense-icon {
  width:38px; height:38px; border-radius:10px;
  background:rgba(255,255,255,.05); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-size:16px; flex-shrink:0;
}
.expense-info { flex:1; min-width:0; }
.expense-desc { font-size:14px; color:var(--text-primary); font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.expense-cat  { font-size:11.5px; color:var(--text-muted); margin-top:2px; }
.expense-amount { font-family:var(--font-display); font-size:16px; font-weight:600; color:var(--text-primary); white-space:nowrap; }
.expense-amount.neg { color:var(--danger); }

/* Quick-add FAB */
.fab {
  position:fixed; bottom:calc(var(--bottom-nav-h) + 16px); right:20px;
  width:52px; height:52px; border-radius:50%;
  background:linear-gradient(135deg,var(--gold-500),var(--gold-600));
  border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 24px rgba(228,174,42,.35);
  transition:transform .2s var(--ease),box-shadow .2s;
  z-index:150; color:var(--navy-950);
}
.fab:hover  { transform:scale(1.08) translateY(-2px); box-shadow:0 10px 30px rgba(228,174,42,.45); }
.fab:active { transform:scale(.95); }
.fab svg    { width:22px; height:22px; }

/* Weekly chart placeholder */
.chart-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:20px;
  margin-bottom:24px;
}
.chart-card-top { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:16px; }
.chart-title    { font-family:var(--font-display); font-size:18px; font-weight:600; }
.chart-total    { text-align:right; }
.chart-total-val { font-family:var(--font-display); font-size:22px; font-weight:700; color:var(--gold-400); }
.chart-total-lbl { font-size:11px; color:var(--text-muted); }

.chart-bars {
  display:flex; align-items:flex-end; gap:6px;
  height:80px;
}
.chart-bar-wrap { flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; }
.chart-bar {
  width:100%; border-radius:4px 4px 0 0;
  background:linear-gradient(180deg,var(--gold-500),var(--gold-600));
  opacity:.7; min-height:4px; transition:opacity .2s;
}
.chart-bar:hover { opacity:1; }
.chart-bar.today { opacity:1; background:linear-gradient(180deg,var(--gold-400),var(--gold-500)); }
.chart-bar-day  { font-size:9.5px; color:var(--text-muted); }

/* Profile card */
.profile-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:20px 18px;
  display:flex; align-items:center; gap:16px;
  margin-bottom:24px;
}
.profile-avatar {
  width:52px; height:52px; border-radius:50%;
  background:linear-gradient(135deg,var(--navy-600),var(--navy-700));
  border:2px solid var(--border-gold);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-size:22px; font-weight:700;
  color:var(--gold-400); flex-shrink:0;
}
.profile-info { flex:1; }
.profile-name { font-family:var(--font-display); font-size:20px; font-weight:700; }
.profile-user { font-size:12.5px; color:var(--text-muted); margin-top:2px; }
.profile-badge {
  display:inline-flex; align-items:center; gap:5px;
  padding:4px 10px; border-radius:99px; font-size:11px; font-weight:500;
  background:var(--gold-glow); color:var(--gold-400); border:1px solid var(--border-gold);
  margin-top:6px;
}
.profile-badge svg { width:11px; height:11px; }

/* Settings list */
.settings-list { list-style:none; }
.settings-item {
  display:flex; align-items:center; gap:14px;
  padding:15px 0; border-bottom:1px solid var(--border);
  text-decoration:none; color:var(--text-primary);
  transition:color .2s;
}
.settings-item:last-child { border-bottom:none; }
.settings-item:hover { color:var(--gold-500); }
.settings-item:hover .settings-icon { border-color:var(--border-gold); color:var(--gold-500); background:var(--gold-glow2); }
.settings-icon {
  width:36px; height:36px; border-radius:10px;
  background:rgba(255,255,255,.04); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  color:var(--text-secondary); flex-shrink:0; transition:all .2s;
}
.settings-icon svg { width:16px; height:16px; }
.settings-label { flex:1; font-size:14.5px; font-weight:400; }
.settings-chevron { color:var(--text-muted); }
.settings-chevron svg { width:15px; height:15px; }

/* Logout button in settings */
.settings-item.logout { color:var(--danger); }
.settings-item.logout .settings-icon { color:var(--danger); border-color:rgba(242,95,92,.25); background:rgba(242,95,92,.06); }
.settings-item.logout:hover { color:#f8928f; }

/* Empty state */
.empty-state {
  text-align:center; padding:32px 20px;
  color:var(--text-muted);
}
.empty-state svg { width:36px; height:36px; margin:0 auto 12px; opacity:.4; }
.empty-state p   { font-size:13.5px; }
.empty-state a   { color:var(--gold-500); font-size:13.5px; font-weight:500; }

/* ── General cards ── */
.hw-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:20px;
}
.hw-card-gold { border-color:var(--border-gold); box-shadow:var(--shadow-gold); }

/* Page headings */
.page-title    { font-family:var(--font-display); font-size:26px; font-weight:700; margin-bottom:4px; }
.page-subtitle { font-size:13px; color:var(--text-secondary); margin-bottom:22px; }

/* ── Utilities ── */
.text-gold     { color:var(--gold-500); }
.text-muted    { color:var(--text-muted); }
.text-secondary{ color:var(--text-secondary); }
.text-success  { color:var(--success); }
.text-danger   { color:var(--danger); }
.text-center   { text-align:center; }
.mt-2 { margin-top:16px; } .mt-3 { margin-top:24px; } .mb-2 { margin-bottom:16px; } .mb-3 { margin-bottom:24px; }
.flex { display:flex; } .items-center { align-items:center; } .justify-between { justify-content:space-between; }
.gap-2 { gap:8px; } .gap-3 { gap:12px; }

/* Animations */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(14px); }
  to   { opacity:1; transform:translateY(0); }
}
.fade-up    { animation:fadeUp .45s var(--ease) both; }
.fade-up-d1 { animation-delay:.07s; }
.fade-up-d2 { animation-delay:.14s; }
.fade-up-d3 { animation-delay:.21s; }
.fade-up-d4 { animation-delay:.28s; }

/* Responsive */
@media (max-width:380px) {
  .auth-card  { padding:28px 18px; }
  .form-row   { grid-template-columns:1fr; }
  .summary-strip { grid-template-columns:1fr 1fr; }
  .summary-strip .summary-card:last-child { grid-column:1/-1; }
}
