:root {
  --gd: #c8962a;
  --gl: #e8b84b;
  --bk: #0a0a0a;
  --wh: #f5f0e8;
  --tx: #1a1a1a;
  --grn: #25d366;
  --red: #e44444;
  --mid: #6a6a6a;
  --line: rgba(10,10,10,0.08);
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px; line-height: 1.5; color: var(--tx); background: var(--wh);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .head { font-family: 'Bebas Neue', Impact, sans-serif; letter-spacing: -0.5px; line-height: 1.05; font-weight: 400; }
.mono { font-family: 'DM Mono', 'Courier New', monospace; }
.label { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 14px; letter-spacing: 1.5px; color: var(--gd); text-transform: uppercase; display: block; margin-bottom: 12px; }
.label::before { content: '// '; opacity: 0.5; }
a { color: var(--gd); text-decoration: none; }
a:hover { text-decoration: underline; }

button, .btn {
  font-family: inherit; font-size: 16px; border: none; cursor: pointer;
  background: var(--bk); color: var(--wh); padding: 14px 28px; border-radius: 10px;
  font-weight: 500; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; transition: all 0.15s; min-height: 48px;
}
.btn-gold { background: var(--gd); color: var(--bk); font-weight: 600; }
.btn-gold:hover { background: var(--gl); }
.btn:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--bk); border: 1px solid var(--line); }

input, select, textarea {
  font-family: inherit; font-size: 16px; width: 100%; padding: 14px;
  border: 1px solid var(--line); border-radius: 10px; background: white;
  min-height: 48px; color: var(--tx); transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gd); box-shadow: 0 0 0 3px rgba(200,150,42,0.15); }
label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--mid); }
.field { margin-bottom: 14px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.error { background: #fee; color: var(--red); padding: 12px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; border-left: 3px solid var(--red); }
.success { background: #eef9f0; color: #1a8341; padding: 12px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; border-left: 3px solid var(--grn); }

/* AUTH + LANDING */
.shell-dark {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: var(--bk);
  background-image: radial-gradient(circle at 25% 15%, rgba(200,150,42,0.18) 0%, transparent 55%);
}
.card {
  background: var(--wh); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 40px; width: 100%; max-width: 460px;
}
.card-wide { max-width: 560px; }
.logo {
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: 64px; color: var(--gd);
  letter-spacing: -2px; line-height: 1; margin-bottom: 6px;
}
.tag { color: var(--mid); font-size: 15px; margin-bottom: 28px; }
.foot { text-align: center; margin-top: 24px; font-size: 14px; color: var(--mid); }
.badge {
  display: inline-block; padding: 5px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  background: rgba(37,211,102,0.12); color: #1a8341; margin-bottom: 20px;
}

/* LANDING SPECIFIC */
.landing-hero { text-align: center; }
.landing-hero h1 { font-size: 80px; color: var(--gd); margin-bottom: 8px; }
.landing-hero .pitch { font-size: 18px; color: var(--mid); margin-bottom: 28px; line-height: 1.45; }
.landing-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; text-align: left; }
.feat { font-size: 14px; color: var(--tx); padding-left: 22px; position: relative; }
.feat::before { content: '✓'; position: absolute; left: 0; color: var(--gd); font-weight: 700; }

/* DASHBOARD */
.app { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.sidebar {
  background: var(--bk); color: var(--wh); padding: 24px 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
}
.sidebar-logo {
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: 32px; color: var(--gd);
  padding: 0 24px 20px; letter-spacing: -1px;
  border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 14px;
}
.nav { list-style: none; flex: 1; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 12px 24px;
  color: rgba(245,240,232,0.7); font-size: 15px;
  border-left: 3px solid transparent; text-decoration: none;
}
.nav a:hover { color: var(--wh); background: rgba(255,255,255,0.03); text-decoration: none; }
.nav a.active { color: var(--gd); background: rgba(200,150,42,0.06); border-left-color: var(--gd); }
.sidebar-foot { padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 12px; color: rgba(245,240,232,0.4); }
.sidebar-user { padding: 12px 24px; font-size: 13px; color: rgba(245,240,232,0.55); }
.sidebar-user b { color: var(--wh); display: block; font-weight: 600; }

.main { padding: 32px 40px; background: var(--wh); min-height: 100vh; padding-bottom: 100px; }
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.page-title { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 38px; color: var(--bk); letter-spacing: -1px; line-height: 1; }
.page-sub { color: var(--mid); font-size: 14px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card { background: white; border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.stat-label { font-size: 11px; color: var(--mid); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; font-weight: 600; }
.stat-value { font-family: 'DM Mono', 'Courier New', monospace; font-size: 26px; font-weight: 600; color: var(--bk); }
.stat-value.gold { color: var(--gd); }
.stat-value.green { color: #1a8341; }
.stat-value.red { color: var(--red); }
.stat-sub { font-size: 12px; color: var(--mid); margin-top: 4px; }

.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.panel { background: white; border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.panel-head { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 22px; margin-bottom: 14px; color: var(--bk); letter-spacing: -0.5px; display: flex; justify-content: space-between; align-items: center; }
.panel-link { font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--gd); font-weight: 500; }

.empty { text-align: center; padding: 28px 16px; color: var(--mid); }
.empty-icon { font-size: 36px; margin-bottom: 8px; opacity: 0.35; }
.empty-text { font-size: 14px; margin-bottom: 12px; line-height: 1.5; }

.actions-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.action-btn {
  background: white; border: 1px solid var(--line); border-radius: 14px; padding: 18px 12px;
  text-align: center; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--bk); transition: all 0.15s; display: flex; flex-direction: column;
  align-items: center; gap: 8px; text-decoration: none;
}
.action-btn:hover { border-color: var(--gd); background: rgba(200,150,42,0.04); text-decoration: none; transform: translateY(-1px); }
.action-icon { font-size: 22px; }

/* MOBILE */
.mobile-tabs { display: none; }
@media (max-width: 768px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 16px; padding-bottom: 90px; }
  .page-title { font-size: 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .panels { grid-template-columns: 1fr; }
  .actions-row { grid-template-columns: repeat(2, 1fr); }
  .mobile-tabs {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--bk); border-top: 1px solid rgba(255,255,255,0.06); z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-tab {
    flex: 1; padding: 10px 4px; text-align: center; color: rgba(245,240,232,0.6);
    text-decoration: none; font-size: 11px; font-weight: 500;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
  }
  .mobile-tab.active { color: var(--gd); }
  .mobile-tab-icon { font-size: 18px; }
  .row-2 { grid-template-columns: 1fr; }
  .card { padding: 28px 22px; }
  .logo { font-size: 52px; }
  .landing-hero h1 { font-size: 60px; }
  .landing-features { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stat-value { font-size: 22px; }
}

/* Mobile-only utility (added Phase 2 fix) */
.mobile-only { display: none; }
@media (max-width: 768px) {
  .mobile-only { display: inline-flex; }
  .page-head { flex-direction: row; align-items: flex-start; }
}
