:root {
  --bg: #070911;
  --surface: #0e1220;
  --surface-2: #141a2d;
  --line: rgba(255,255,255,.09);
  --text: #f5f7ff;
  --muted: #8e98b3;
  --primary: #7c5cff;
  --cyan: #31d7f4;
  --green: #4de2a8;
  --danger: #ff6577;
  --shadow: 0 24px 80px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(124,92,255,.24), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(49,215,244,.13), transparent 30%),
    var(--bg);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.topbar { display:flex; align-items:center; justify-content:space-between; min-height:82px; gap:20px; }
.brand { display:flex; align-items:center; gap:12px; font-weight:800; letter-spacing:-.03em; font-size:20px; }
.brand-mark { width:38px; height:38px; border-radius:12px; display:grid; place-items:center; background:linear-gradient(135deg,var(--primary),var(--cyan)); box-shadow:0 10px 30px rgba(124,92,255,.3); }
.brand-mark svg { width:21px; }
.top-actions { display:flex; align-items:center; gap:10px; }
.muted { color: var(--muted); }
.eyebrow { color:var(--cyan); text-transform:uppercase; letter-spacing:.14em; font-size:12px; font-weight:800; }
.btn { border:1px solid var(--line); border-radius:12px; padding:10px 15px; background:rgba(255,255,255,.035); cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:8px; transition:.2s ease; }
.btn:hover { transform:translateY(-1px); border-color:rgba(255,255,255,.18); background:rgba(255,255,255,.07); }
.btn-primary { border:0; color:white; background:linear-gradient(135deg,var(--primary),#5d72ff); box-shadow:0 10px 30px rgba(124,92,255,.25); }
.btn-danger { color:#ff9ba8; }
.btn-small { padding:7px 10px; border-radius:9px; font-size:13px; }
.icon-btn { width:36px; height:36px; padding:0; }
.hero { min-height:calc(100vh - 82px); display:grid; grid-template-columns:1.15fr .85fr; gap:70px; align-items:center; padding:70px 0 110px; }
.hero h1 { max-width:760px; margin:16px 0 20px; font-size:clamp(48px,7vw,84px); line-height:.98; letter-spacing:-.065em; }
.gradient-text { color:transparent; background:linear-gradient(90deg,#fff 5%,#b9b0ff 46%,#58def5); background-clip:text; }
.hero-copy { max-width:630px; color:#aeb7cd; font-size:18px; }
.hero-pills { display:flex; flex-wrap:wrap; gap:10px; margin-top:30px; }
.pill { padding:9px 13px; border:1px solid var(--line); background:rgba(255,255,255,.025); border-radius:999px; color:#bdc5d9; font-size:13px; }
.preview-card,.panel,.stat,.auth-card { border:1px solid var(--line); background:linear-gradient(145deg,rgba(20,26,45,.95),rgba(10,13,24,.95)); box-shadow:var(--shadow); }
.preview-card { border-radius:24px; padding:22px; position:relative; overflow:hidden; }
.preview-card::before { content:""; position:absolute; width:180px; height:180px; border-radius:50%; background:rgba(124,92,255,.2); filter:blur(60px); right:-50px; top:-60px; }
.window-dots { display:flex; gap:6px; margin-bottom:26px; }
.window-dots i { width:8px; height:8px; border-radius:50%; background:#37405b; }
.mock-link { padding:16px; background:#090c16; border:1px solid var(--line); border-radius:14px; position:relative; }
.mock-link strong { display:block; color:var(--green); font-size:18px; margin-bottom:5px; }
.mock-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-top:12px; }
.mock-stat { padding:18px; border-radius:14px; background:rgba(255,255,255,.035); }
.mock-stat b { display:block; font-size:27px; margin-top:5px; }
.auth-wrap { min-height:calc(100vh - 82px); display:grid; place-items:center; padding:50px 0 100px; }
.auth-card { width:min(460px,100%); border-radius:24px; padding:34px; }
.auth-card h1 { margin:9px 0; letter-spacing:-.04em; font-size:34px; }
.auth-card p { margin-top:0; }
.field { display:grid; gap:7px; margin-bottom:16px; }
.field label { color:#c7cee0; font-size:13px; font-weight:700; }
.input { width:100%; border:1px solid var(--line); border-radius:11px; padding:12px 13px; color:var(--text); background:#090c16; outline:none; transition:.2s; }
.input:focus { border-color:rgba(124,92,255,.8); box-shadow:0 0 0 3px rgba(124,92,255,.12); }
textarea.input { resize:vertical; min-height:85px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; }
.alert { border:1px solid; border-radius:11px; padding:11px 13px; margin-bottom:15px; }
.alert-error { color:#ffb0b9; background:rgba(255,101,119,.08); border-color:rgba(255,101,119,.25); }
.alert-success { color:#9cf0cc; background:rgba(77,226,168,.08); border-color:rgba(77,226,168,.23); }
.dashboard { padding:32px 0 90px; }
.page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:25px; }
.page-head h1 { font-size:38px; letter-spacing:-.045em; margin:5px 0 0; }
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:18px; }
.stat { padding:20px; border-radius:17px; box-shadow:none; }
.stat span { display:block; color:var(--muted); font-size:13px; }
.stat strong { display:block; font-size:30px; letter-spacing:-.04em; margin-top:5px; }
.stat small { color:var(--green); }
.grid-main { display:grid; grid-template-columns:1.35fr .65fr; gap:18px; align-items:start; }
.panel { border-radius:19px; padding:20px; box-shadow:none; }
.panel-head { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:18px; }
.panel-head h2 { margin:0; font-size:18px; }
.create-panel { margin-bottom:18px; }
.short-builder { display:grid; grid-template-columns:1.6fr .7fr auto; gap:10px; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; }
th { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.09em; text-align:left; padding:11px 10px; border-bottom:1px solid var(--line); }
td { padding:14px 10px; border-bottom:1px solid rgba(255,255,255,.055); vertical-align:middle; }
tbody tr:last-child td { border-bottom:0; }
.link-name { min-width:230px; }
.link-name strong { display:block; color:#ddd8ff; }
.link-name small { color:var(--muted); max-width:290px; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.badge { display:inline-flex; padding:4px 8px; border-radius:999px; font-size:11px; font-weight:800; }
.badge-live { color:#87ebc1; background:rgba(77,226,168,.1); }
.badge-off { color:#ff9ba8; background:rgba(255,101,119,.1); }
.actions { display:flex; gap:6px; justify-content:flex-end; }
.actions form { margin:0; }
.analytics-stack { display:grid; gap:18px; }
.bar-list { display:grid; gap:12px; }
.bar-item { display:grid; grid-template-columns:90px 1fr 35px; gap:9px; align-items:center; font-size:12px; }
.bar-track { height:7px; border-radius:99px; background:rgba(255,255,255,.06); overflow:hidden; }
.bar-track i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--primary),var(--cyan)); }
.trend { height:145px; display:flex; align-items:flex-end; gap:7px; padding-top:15px; }
.trend div { flex:1; min-height:3px; background:linear-gradient(180deg,var(--cyan),var(--primary)); border-radius:5px 5px 2px 2px; opacity:.88; position:relative; }
.trend div:hover::after { content:attr(data-label); position:absolute; left:50%; bottom:calc(100% + 7px); transform:translateX(-50%); background:#05070d; border:1px solid var(--line); padding:4px 7px; border-radius:6px; white-space:nowrap; font-size:10px; }
.empty { text-align:center; color:var(--muted); padding:38px 15px; }
dialog { width:min(620px,calc(100% - 30px)); border:1px solid var(--line); border-radius:20px; padding:0; color:var(--text); background:#0d111e; box-shadow:0 35px 100px #000; }
dialog::backdrop { background:rgba(2,3,8,.78); backdrop-filter:blur(6px); }
.dialog-body { padding:24px; }
.dialog-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.dialog-head h2 { margin:0; }
.footer { color:#667089; text-align:center; padding:20px 0 35px; font-size:12px; }
@media (max-width:900px) {
  .hero,.grid-main { grid-template-columns:1fr; }
  .hero { gap:40px; padding-top:35px; }
  .stats { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:650px) {
  .shell { width:min(100% - 22px,1180px); }
  .topbar { min-height:70px; }
  .top-actions .muted { display:none; }
  .hero h1 { font-size:48px; }
  .preview-card { padding:16px; }
  .page-head { align-items:flex-start; flex-direction:column; }
  .stats { grid-template-columns:1fr 1fr; }
  .short-builder,.form-row { grid-template-columns:1fr; }
  .panel { padding:15px; }
  .bar-item { grid-template-columns:72px 1fr 28px; }
}
