@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --bg-0: #0A0F1E;
  --bg-1: #0F1730;
  --panel: rgba(255,255,255,0.045);
  --panel-border: rgba(255,255,255,0.09);
  --panel-hover: rgba(255,255,255,0.07);
  --blue-1: #3B82F6;
  --blue-2: #60A5FA;
  --blue-glow: #2563EB;
  --cyan: #38BDF8;
  --gold: #E8B95C;
  --green: #34D399;
  --coral: #F87171;
  --text: #E7ECF7;
  --text-dim: #8D9BC0;
  --text-faint: #5C6890;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family:'Manrope', sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(59,130,246,0.16), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(56,189,248,0.10), transparent 40%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, var(--bg-0));
  min-height:100vh;
}

a{ color:inherit; text-decoration:none; }
.eyebrow{ font-family:'IBM Plex Mono', monospace; font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--text-faint); }
h1,h2,h3{ font-family:'Space Grotesk', sans-serif; margin:0; color:var(--text); }
p{ line-height:1.6; color:var(--text-dim); }

/* ---------------- App shell: sidebar + content ---------------- */
.app-shell{ display:flex; min-height:100vh; }

.sidebar{
  width:230px; flex-shrink:0; padding:26px 18px;
  border-right:1px solid var(--panel-border);
  display:flex; flex-direction:column; gap:26px;
  position:sticky; top:0; height:100vh;
}
.brand{ display:flex; align-items:center; gap:11px; padding:0 6px; }
.brand-mark{
  width:34px; height:34px; border-radius:9px;
  background:linear-gradient(135deg, var(--blue-1), var(--cyan));
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 0 18px rgba(59,130,246,0.5); flex-shrink:0;
}
.brand-name{ font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:15px; }

.nav-group{ display:flex; flex-direction:column; gap:3px; }
.nav-link{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; border-radius:9px; font-size:13.5px; font-weight:600;
  color:var(--text-dim); transition:background .15s ease, color .15s ease;
}
.nav-link:hover{ background:var(--panel-hover); color:var(--text); }
.nav-link.active{ background:rgba(59,130,246,0.14); color:#fff; border:1px solid rgba(96,165,250,0.25); }
.nav-link svg{ flex-shrink:0; }

.sidebar-foot{ margin-top:auto; padding:0 6px; }
.wallet-pill{
  display:flex; align-items:center; justify-content:space-between;
  background:var(--panel); border:1px solid var(--panel-border); border-radius:10px;
  padding:10px 12px; font-size:12.5px; margin-bottom:10px;
}
.wallet-pill b{ font-family:'IBM Plex Mono', monospace; color:var(--gold); }
.logout-link{ font-size:13px; color:var(--text-faint); padding:8px 6px; display:block; }
.logout-link:hover{ color:var(--coral); }

.content{ flex:1; padding:32px 34px 70px; max-width:1180px; }

/* ---------------- Page header ---------------- */
.page-head{ margin-bottom:26px; }
.page-head h1{ font-size:26px; font-weight:700; letter-spacing:-.01em; margin-bottom:6px; }
.page-head p{ margin:0; font-size:14px; }

/* ---------------- Cards & grids ---------------- */
.stat-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:30px; }
.card{
  background:var(--panel); border:1px solid var(--panel-border); border-radius:16px;
  padding:22px 24px; position:relative; overflow:hidden; backdrop-filter:blur(10px);
}
.stat-card::after{
  content:''; position:absolute; right:-30px; top:-30px; width:120px; height:120px; border-radius:50%;
  background:radial-gradient(circle, rgba(59,130,246,0.18), transparent 70%);
}
.stat-card .icon{ width:38px; height:38px; border-radius:10px; margin-bottom:14px; display:flex; align-items:center; justify-content:center; background:rgba(59,130,246,0.14); border:1px solid rgba(96,165,250,0.25); }
.stat-card .label{ font-family:'IBM Plex Mono', monospace; font-size:11px; letter-spacing:.09em; text-transform:uppercase; color:var(--text-faint); margin-bottom:8px; }
.stat-card .value{ font-family:'Space Grotesk', sans-serif; font-size:34px; font-weight:700; color:#fff; line-height:1; letter-spacing:-.01em; }
.stat-card .sub{ font-size:13px; color:var(--text-dim); margin-top:10px; }

.section-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; margin-top:8px; }

/* ---------------- Buttons & forms ---------------- */
button, .btn{
  font-family:'Manrope', sans-serif; font-weight:700; font-size:13.5px; cursor:pointer;
  border-radius:9px; padding:10px 18px; border:none; display:inline-block;
  background:linear-gradient(135deg, var(--blue-1), var(--blue-glow));
  color:#fff; box-shadow:0 4px 16px rgba(37,99,235,0.35);
  transition:transform .12s ease, box-shadow .15s ease;
}
button:hover, .btn:hover{ transform:translateY(-1px); box-shadow:0 6px 20px rgba(37,99,235,0.5); }
.btn.ghost{ background:transparent; box-shadow:none; border:1px solid var(--panel-border); color:var(--text); }
.btn.ghost:hover{ background:var(--panel-hover); }
.btn.small{ padding:7px 13px; font-size:12.5px; }

input[type=text], input[type=email], input[type=password], input[type=url], textarea, select{
  appearance:none; -webkit-appearance:none;
  font-family:'Manrope', sans-serif; font-size:13.5px; font-weight:500;
  padding:10px 14px; border:1px solid var(--panel-border); border-radius:9px;
  background:rgba(255,255,255,0.03); color:var(--text); width:100%;
}
input::placeholder, textarea::placeholder{ color:var(--text-faint); }
select{ cursor:pointer; }
label{ display:block; font-size:12px; font-family:'IBM Plex Mono',monospace; letter-spacing:.04em; color:var(--text-faint); margin-bottom:6px; text-transform:uppercase; }
.field{ margin-bottom:16px; }
.field-row{ display:flex; gap:14px; flex-wrap:wrap; }
.field-row > .field{ flex:1; min-width:200px; }

/* ---------------- Flash / alerts ---------------- */
.flash{ padding:12px 16px; border-radius:10px; font-size:13.5px; margin-bottom:20px; border:1px solid; }
.flash.success{ background:rgba(52,211,153,0.1); border-color:rgba(52,211,153,0.3); color:#8FE9C4; }
.flash.error{ background:rgba(248,113,113,0.1); border-color:rgba(248,113,113,0.3); color:#FCA5A5; }
.flash.info{ background:rgba(96,165,250,0.1); border-color:rgba(96,165,250,0.3); color:#BFDBFE; }

/* ---------------- Table ---------------- */
.table-wrap{ background:var(--panel); border:1px solid var(--panel-border); border-radius:16px; overflow:hidden; backdrop-filter:blur(10px); }
table{ width:100%; border-collapse:collapse; }
thead th{ text-align:left; font-family:'IBM Plex Mono', monospace; font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--text-faint); padding:14px 20px; border-bottom:1px solid var(--panel-border); }
tbody td{ padding:16px 20px; border-bottom:1px solid rgba(255,255,255,0.05); font-size:14px; vertical-align:middle; }
tbody tr:last-child td{ border-bottom:none; }
tbody tr:hover{ background:rgba(59,130,246,0.06); }
td.num{ font-family:'IBM Plex Mono', monospace; text-align:right; color:var(--text); }
.title-strong{ font-weight:700; color:#fff; }
.tag{ font-family:'IBM Plex Mono', monospace; font-size:10.5px; background:rgba(96,165,250,0.12); border:1px solid rgba(96,165,250,0.25); color:var(--blue-2); padding:3px 9px; border-radius:20px; display:inline-block; }
.tag.gold{ background:rgba(232,185,92,0.12); border-color:rgba(232,185,92,0.3); color:var(--gold); }
.tag.green{ background:rgba(52,211,153,0.12); border-color:rgba(52,211,153,0.3); color:var(--green); }
.tag.dim{ background:rgba(255,255,255,0.05); border-color:var(--panel-border); color:var(--text-dim); }
.ctr-bar-wrap{ display:flex; align-items:center; gap:10px; justify-content:flex-end; }
.ctr-bar{ width:84px; height:6px; background:rgba(255,255,255,0.08); border-radius:3px; overflow:hidden; }
.ctr-bar-fill{ height:100%; background:linear-gradient(90deg, var(--blue-1), var(--cyan)); border-radius:3px; }
.empty-state{ padding:44px 20px; text-align:center; color:var(--text-faint); font-size:14px; }

/* ---------------- Award / nomination cards ---------------- */
.award-cards{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:32px; }
.award-card{ flex:1 1 300px; border-radius:16px; padding:20px 22px; position:relative; overflow:hidden; background:linear-gradient(155deg, rgba(59,130,246,0.16), rgba(15,23,48,0.5)); border:1px solid rgba(96,165,250,0.22); backdrop-filter:blur(10px); }
.award-card .badge{ position:absolute; top:18px; right:18px; width:40px; height:40px; border-radius:50%; background:linear-gradient(135deg, var(--gold), #C9973F); display:flex; align-items:center; justify-content:center; font-family:'Space Grotesk',sans-serif; font-weight:700; color:#1A1200; font-size:16px; box-shadow:0 0 18px rgba(232,185,92,0.45); }
.award-card .cat-name{ font-family:'Space Grotesk', sans-serif; font-size:17px; font-weight:700; color:#fff; margin-top:4px; max-width:78%; }
.vote-row{ display:flex; align-items:center; gap:14px; margin-top:14px; }
.vote-ring{ position:relative; width:52px; height:52px; flex-shrink:0; }
.vote-ring svg{ width:52px; height:52px; transform:rotate(-90deg); }
.vote-ring .bg-ring{ fill:none; stroke:rgba(255,255,255,.1); stroke-width:5; }
.vote-ring .fg-ring{ fill:none; stroke:url(#ringGrad); stroke-width:5; stroke-linecap:round; }
.vote-ring .pct{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-family:'IBM Plex Mono', monospace; font-size:10.5px; color:#fff; }
.vote-nums{ font-size:12.5px; color:var(--text-dim); }
.vote-nums b{ color:#fff; font-family:'IBM Plex Mono', monospace; }

/* ---------------- AI guide ---------------- */
.tip-card{
  display:flex; gap:14px; background:var(--panel); border:1px solid var(--panel-border);
  border-radius:14px; padding:18px 20px; margin-bottom:14px; backdrop-filter:blur(10px);
}
.tip-icon{ width:36px; height:36px; border-radius:10px; background:rgba(56,189,248,0.14); border:1px solid rgba(56,189,248,0.3); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.tip-card h3{ font-size:14.5px; margin-bottom:5px; }
.tip-card p{ font-size:13.5px; margin:0; }
.tip-priority{ font-family:'IBM Plex Mono', monospace; font-size:10px; letter-spacing:.06em; text-transform:uppercase; padding:2px 8px; border-radius:20px; margin-left:auto; height:fit-content; }
.tip-priority.high{ background:rgba(248,113,113,0.14); color:var(--coral); }
.tip-priority.medium{ background:rgba(232,185,92,0.14); color:var(--gold); }
.tip-priority.low{ background:rgba(52,211,153,0.14); color:var(--green); }

/* ---------------- Auth pages (register/login) ---------------- */
.auth-wrap{ min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; }
.auth-card{ width:100%; max-width:400px; background:var(--panel); border:1px solid var(--panel-border); border-radius:18px; padding:34px 30px; backdrop-filter:blur(12px); }
.auth-card .brand{ justify-content:center; margin-bottom:22px; }
.auth-card h1{ font-size:21px; text-align:center; margin-bottom:6px; }
.auth-card p.sub{ text-align:center; font-size:13px; margin-bottom:22px; }
.auth-card button{ width:100%; margin-top:6px; padding:11px; }
.auth-switch{ text-align:center; font-size:13px; color:var(--text-dim); margin-top:18px; }
.auth-switch a{ color:var(--blue-2); font-weight:600; }

footer.page-foot{ margin-top:30px; padding-top:18px; border-top:1px solid var(--panel-border); display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; font-size:12px; color:var(--text-faint); font-family:'IBM Plex Mono', monospace; }

@media (max-width:900px){
  .app-shell{ flex-direction:column; }
  .sidebar{ width:100%; height:auto; position:relative; flex-direction:row; align-items:center; overflow-x:auto; }
  .nav-group{ flex-direction:row; }
  .sidebar-foot{ margin-top:0; }
  .stat-grid{ grid-template-columns:1fr; }
  .content{ padding:24px 18px 50px; }
}
