:root{
  --navy:#08105a;--navy2:#0f1a7a;--blue:#1a2fa8;--blue-soft:#e8ecfb;
  --red:#cc1111;--red-soft:#fdecea;
  --ink:#0a0a14;--ink2:#3a3a4a;--ink3:#7a7a8a;
  --line:#e4e4ee;--bg:#f8f8fc;--white:#ffffff;
  --gold:#b8860b;--gold-soft:#fdf8ec;
  --green:#0f6e3a;--green-soft:#e8f5ee;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Stem', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

@font-face{font-family:'Unbounded';src:url('https://fonts.gstatic.com/s/unbounded/v8/Yq6V-LOTTbIIPpnsPw8Kp8xO6s.webp') format('woff2');font-weight:400;font-display:swap;}

/* Layout */
.account-layout { display: flex; min-height: 100vh; }
.account-sidebar {
  width: 260px;
  background: var(--navy);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
}
.sidebar-logo {
  padding: 24px;
  font-family: 'Unbounded', sans-serif;
  font-size: 20px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-logo a { color: white; text-decoration: none; }
.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
  margin-bottom: 4px;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(255,255,255,.1);
  color: white;
}
.sidebar-nav a svg { width: 20px; height: 20px; flex-shrink: 0; }
.sidebar-user {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
}
.sidebar-user b { display: block; color: white; margin-bottom: 2px; }
.sidebar-user span { color: rgba(255,255,255,.5); }
.account-main {
  flex: 1;
  margin-left: 260px;
  padding: 32px;
  max-width: calc(100% - 260px);
}

/* Header */
.page-header { margin-bottom: 28px; }
.page-header h1 {
  font-family: 'Unbounded', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.page-header p { color: var(--ink3); font-size: 14px; }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 16px rgba(8,16,90,.04);
}
.card-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.stat-value {
  font-family: 'Unbounded', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.stat-label { font-size: 12px; color: var(--ink3); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-family: 'Stem', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .15s;
}
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--blue); transform: translateY(-1px); }
.btn-red { background: var(--red); color: white; }
.btn-red:hover { background: #e01313; transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink2); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink3);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-family: 'Stem', sans-serif;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: all .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,47,168,.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.data-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink3);
  background: var(--bg);
}
.data-table tr:hover { background: var(--bg); }

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  padding: 24px;
}
.auth-box {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}
.auth-box h1 {
  font-family: 'Unbounded', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.auth-box p { color: var(--ink3); margin-bottom: 24px; font-size: 14px; }
.auth-links {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--ink3);
}
.auth-links a { color: var(--blue); text-decoration: none; font-weight: 600; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--navy);
  color: white;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(8,16,90,.35);
  opacity: 0;
  transform: translateY(20px);
  transition: all .3s;
  z-index: 9999;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: var(--green); }
.toast-error { background: var(--red); }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink3); }
.empty-state h3 { font-family: 'Unbounded', sans-serif; font-size: 18px; color: var(--ink); margin-bottom: 8px; }

/* Responsive */
@media (max-width: 900px) {
  .account-sidebar { width: 100%; position: relative; inset: auto; flex-direction: row; align-items: center; padding: 12px 16px; }
  .sidebar-nav { display: none; }
  .account-main { margin-left: 0; max-width: 100%; padding: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
}
