:root {
  --bg: #090b12;
  --panel: rgba(20, 23, 34, 0.9);
  --panel-2: rgba(28, 31, 44, 0.88);
  --border: rgba(219, 173, 85, 0.25);
  --gold: #d9ad55;
  --gold-light: #f2d38d;
  --text: #f5f1e8;
  --muted: #aaa79f;
  --danger: #ef7373;
  --success: #67d6a0;
  --twitch: #9146ff;
  --youtube: #ff3d3d;
  --kick: #53fc18;
  font-family: Inter, system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -20%, rgba(120, 78, 32, .22), transparent 45%),
    linear-gradient(rgba(9, 11, 18, .88), rgba(9, 11, 18, .98)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.013) 0 1px, transparent 1px 8px);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
.hidden { display: none !important; }
.ambient { position: fixed; width: 420px; height: 420px; border-radius: 50%; filter: blur(130px); opacity: .12; pointer-events: none; }
.ambient-one { background: #c78c30; top: -160px; left: -120px; }
.ambient-two { background: #6b35b4; right: -180px; bottom: -160px; }

.site-header {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: relative;
  z-index: 2;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-shield {
  width: 44px; height: 50px; display: grid; place-items: center;
  font: 700 24px Cinzel, serif; color: #19120a;
  background: linear-gradient(135deg, var(--gold-light), #a97128);
  clip-path: polygon(50% 0, 92% 16%, 84% 75%, 50% 100%, 16% 75%, 8% 16%);
  filter: drop-shadow(0 5px 12px rgba(0,0,0,.45));
}
.brand strong { display:block; font: 700 18px Cinzel, serif; letter-spacing: .08em; }
.brand small { display:block; color: var(--gold); text-transform: uppercase; letter-spacing: .28em; font-size: 9px; margin-top: 2px; }
.home-link { color: var(--muted); font-size: 13px; transition: color .2s; }
.home-link:hover { color: var(--gold-light); }

.login-layout {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 165px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
  padding: 56px 0 72px;
  position: relative;
  z-index: 1;
}
.eyebrow { color: var(--gold); letter-spacing: .22em; font-size: 11px; font-weight: 700; margin: 0 0 13px; }
.hero-copy h1 {
  font: 700 clamp(42px, 5.2vw, 72px)/1.07 Cinzel, serif;
  letter-spacing: -.035em;
  margin: 0;
  text-shadow: 0 6px 30px rgba(0,0,0,.4);
}
.hero-copy h1 em { color: var(--gold-light); font-style: normal; }
.hero-text { color: #bebbb4; font-size: 16px; line-height: 1.75; max-width: 650px; margin: 28px 0; }
.feature-row { display:flex; flex-wrap: wrap; gap: 12px 24px; color: #d5d1c8; font-size: 13px; }
.feature-row span::first-letter { color: var(--gold); }

.auth-card {
  position: relative;
  padding: 54px 42px 36px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(34,37,49,.96), rgba(16,18,27,.96));
  box-shadow: 0 26px 70px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.04);
  border-radius: 8px;
}
.auth-card::before, .auth-card::after {
  content:""; position:absolute; width:26px; height:26px; border-color: var(--gold); opacity:.55;
}
.auth-card::before { top:10px; left:10px; border-top:1px solid; border-left:1px solid; }
.auth-card::after { bottom:10px; right:10px; border-bottom:1px solid; border-right:1px solid; }
.seal {
  position:absolute; top:-36px; left:50%; transform:translateX(-50%);
  width:72px; height:72px; display:grid; place-items:center; border-radius:50%;
  border:1px solid #e1bd72; background:radial-gradient(circle, #3a2917, #17120d 68%);
  box-shadow:0 8px 25px rgba(0,0,0,.5); font:700 22px Cinzel,serif; color:var(--gold-light);
}
.card-kicker { text-align:center; color:var(--gold); letter-spacing:.18em; font-size:10px; font-weight:700; }
.auth-card h2 { text-align:center; font:700 27px Cinzel,serif; margin:8px 0 7px; }
.card-description { text-align:center; color:var(--muted); font-size:13px; margin:0 0 28px; }
.auth-buttons { display:grid; gap:12px; }
.platform-button {
  display:grid; grid-template-columns:42px 1fr 20px; gap:13px; align-items:center;
  min-height:68px; padding:10px 15px; border-radius:6px; border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.035); transition:transform .18s,border-color .18s,background .18s;
}
.platform-button:hover { transform:translateY(-2px); background:rgba(255,255,255,.065); }
.platform-button.twitch:hover { border-color:rgba(145,70,255,.7); }
.platform-button.youtube:hover { border-color:rgba(255,61,61,.7); }
.platform-button.kick:hover { border-color:rgba(83,252,24,.7); }
.platform-icon { width:40px; height:40px; display:grid; place-items:center; border-radius:6px; font-weight:800; background:rgba(255,255,255,.08); }
.twitch .platform-icon { color:#b48cff; }
.youtube .platform-icon { color:#ff7575; }
.kick .platform-icon { color:#80ff54; }
.platform-button strong { display:block; font-size:14px; }
.platform-button small { display:block; color:var(--muted); font-size:11px; margin-top:3px; }
.arrow { color:#777; font-size:25px; }
.privacy-note { color:#77746e; font-size:10px; text-align:center; line-height:1.55; margin:22px 10px 0; }
.alert { padding:12px 14px; margin:0 0 16px; border:1px solid rgba(239,115,115,.4); background:rgba(114,29,29,.25); color:#ffb7b7; border-radius:5px; font-size:12px; }
.alert.success { border-color:rgba(103,214,160,.4); background:rgba(30,100,68,.22); color:#9be9c0; }
footer { width:min(1220px,calc(100% - 40px)); margin:0 auto; padding:20px 0 28px; border-top:1px solid rgba(255,255,255,.06); color:#625f5a; font-size:11px; text-align:center; }

.top-nav { display:flex; align-items:center; gap:24px; color:#918e87; font-size:13px; }
.top-nav a.active { color:var(--gold-light); }
.top-nav .disabled { opacity:.4; cursor:not-allowed; }
.logout-button { color:#aaa69f; background:transparent; border:0; cursor:pointer; padding:8px 0; }
.logout-button:hover { color:#fff; }
.profile-shell { width:min(1180px,calc(100% - 40px)); margin:0 auto; min-height:calc(100vh - 160px); padding:52px 0 80px; position:relative; z-index:1; }
.loading-card { margin-top:60px; padding:50px; text-align:center; color:var(--muted); border:1px solid var(--border); background:var(--panel); }
.profile-banner {
  display:grid; grid-template-columns:auto 1fr auto; gap:26px; align-items:center;
  padding:30px 34px; border:1px solid var(--border); border-radius:8px;
  background:linear-gradient(115deg,rgba(48,39,28,.86),rgba(22,25,36,.92) 55%,rgba(30,26,39,.9));
  box-shadow:0 20px 50px rgba(0,0,0,.25);
}
.profile-avatar-wrap { position:relative; }
.profile-avatar { width:96px; height:96px; object-fit:cover; border-radius:50%; border:2px solid var(--gold); background:#1d202b; }
.level-badge { position:absolute; right:-2px; bottom:2px; width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#12141c;border:1px solid var(--gold);color:var(--gold-light);font:700 13px Cinzel,serif; }
.profile-heading h1 { font:700 clamp(28px,4vw,42px) Cinzel,serif; margin:0 0 7px; }
.profile-heading p:last-child { margin:0;color:var(--muted);font-size:13px; }
.treasury-card { min-width:210px; padding:18px 22px; text-align:right; border-left:1px solid rgba(217,173,85,.3); }
.treasury-card span { display:block; color:var(--gold);font-size:9px;letter-spacing:.18em;font-weight:700; }
.treasury-card strong { display:block;font:700 36px Cinzel,serif;color:var(--gold-light);margin:5px 0; }
.treasury-card small { color:#858179;font-size:10px; }
.section-block { margin-top:42px; }
.section-heading { display:flex; justify-content:space-between; align-items:end; gap:30px; margin-bottom:18px; }
.section-heading h2,.roadmap-card h2 { font:700 25px Cinzel,serif; margin:0; }
.section-heading>p { max-width:470px;color:var(--muted);font-size:12px;line-height:1.6;text-align:right;margin:0; }
.platform-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:16px; }
.account-card { position:relative; min-height:250px;padding:24px;border:1px solid rgba(255,255,255,.09);border-radius:7px;background:var(--panel);overflow:hidden; }
.account-card::after { content:""; position:absolute;top:0;left:0;right:0;height:3px;background:var(--provider-color);opacity:.9; }
.account-card.unlinked { background:rgba(18,20,29,.72); border-style:dashed; }
.account-header { display:flex;justify-content:space-between;align-items:center;margin-bottom:30px; }
.account-brand { display:flex;align-items:center;gap:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;font-size:12px; }
.account-logo { width:34px;height:34px;display:grid;place-items:center;border-radius:5px;background:color-mix(in srgb,var(--provider-color) 18%,transparent);color:var(--provider-color);font-weight:900; }
.status { font-size:9px;text-transform:uppercase;letter-spacing:.12em;color:var(--success); }
.account-user { display:flex;gap:13px;align-items:center;margin-bottom:26px; }
.account-user img { width:48px;height:48px;border-radius:50%;object-fit:cover;background:#292c36; }
.account-user strong { display:block;font-size:14px; }
.account-user small { color:var(--muted);font-size:10px; }
.balance-row { display:flex;align-items:end;justify-content:space-between;padding-top:19px;border-top:1px solid rgba(255,255,255,.07); }
.balance-row span { color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.13em; }
.balance-row strong { font:700 24px Cinzel,serif;color:var(--gold-light); }
.account-actions { margin-top:21px;display:flex;gap:10px; }
.connect-button,.unlink-button { width:100%;min-height:38px;border-radius:4px;cursor:pointer;font-weight:700;font-size:11px; }
.connect-button { display:grid;place-items:center;background:var(--provider-color);color:#090b12;border:0; }
.unlink-button { background:transparent;color:#8e8a83;border:1px solid rgba(255,255,255,.1); }
.unlink-button:hover { color:#f2aaaa;border-color:rgba(239,115,115,.4); }
.unlinked-copy { color:var(--muted);font-size:12px;line-height:1.65;min-height:82px;margin:0 0 20px; }
.roadmap-card { margin-top:35px;padding:29px 32px;display:flex;gap:23px;align-items:center;border:1px solid rgba(217,173,85,.18);background:rgba(20,22,30,.65);border-radius:7px; }
.roadmap-icon { width:60px;height:60px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--border);color:var(--gold-light);font-size:27px;flex:none; }
.roadmap-card p:last-child { color:var(--muted);line-height:1.65;font-size:12px;margin:8px 0 0; }

@media (max-width:900px) {
  .login-layout { grid-template-columns:1fr; padding-top:70px; }
  .hero-copy { text-align:center; }
  .hero-text { margin-left:auto;margin-right:auto; }
  .feature-row { justify-content:center; }
  .auth-card { width:min(520px,100%);margin:0 auto; }
  .platform-grid { grid-template-columns:1fr; }
  .profile-banner { grid-template-columns:auto 1fr; }
  .treasury-card { grid-column:1/-1;text-align:left;border-left:0;border-top:1px solid rgba(217,173,85,.3);padding-left:0; }
}
@media (max-width:620px) {
  .site-header { width:calc(100% - 28px);height:76px; }
  .top-nav a,.top-nav .disabled { display:none; }
  .login-layout,.profile-shell { width:calc(100% - 28px); }
  .hero-copy h1 { font-size:38px; }
  .auth-card { padding:52px 20px 28px; }
  .profile-banner { grid-template-columns:1fr;text-align:center;padding:26px 20px; }
  .profile-avatar-wrap { margin:auto; }
  .treasury-card { text-align:center; }
  .section-heading { display:block; }
  .section-heading>p { text-align:left;margin-top:9px; }
  .roadmap-card { align-items:flex-start;padding:23px 20px; }
}
