:root {
  --bg: #0f1221;
  --panel: #161a2f;
  --panel-2: #1d2240;
  --text: #e7ecff;
  --muted: #a3a8c3;
  --warn: #ff7b7b;
  --ok: #6cf0c2;
  --primary: #7b7bff;
  --neon: #8a5cff;
  --neon-2: #29ffd3;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body { background: radial-gradient(1200px 800px at 80% -10%, rgba(138,92,255,.25), transparent),
              radial-gradient(900px 700px at -10% 20%, rgba(41,255,211,.15), transparent), var(--bg);
       color: var(--text); font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji"; }

#app { max-width: 1100px; margin: 0 auto; padding: 24px; }

.app-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.brand { font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.brand-glow { color: var(--neon); text-shadow: 0 0 14px rgba(138,92,255,.8), 0 0 28px rgba(138,92,255,.3); }
.brand-thin { color: var(--text); font-weight: 400; opacity: .8; margin-left: 4px; }

.badge { padding: 6px 10px; border-radius: 999px; font-size: 12px; background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.badge-warn { background: rgba(255,123,123,.15); color: #ffd1d1; border: 1px solid rgba(255,123,123,.3); }
.badge-ok { background: rgba(108,240,194,.15); color: #c7ffef; border: 1px solid rgba(108,240,194,.3); }

.btn { background: linear-gradient(135deg, rgba(138,92,255,.9), rgba(41,255,211,.9)); border: none; color: #0b0e1a; font-weight: 700; padding: 10px 14px; border-radius: 10px; cursor: pointer; box-shadow: 0 10px 24px rgba(138,92,255,.25), 0 4px 14px rgba(41,255,211,.2); transition: transform .08s ease, filter .2s ease; }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.1); }
.btn-small { padding: 8px 10px; font-size: 12px; }

.content { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 980px) { .content { grid-template-columns: 1fr 1fr; } }

.card { background: linear-gradient(180deg, rgba(22,26,47,.6), rgba(22,26,47,.85)); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.card h2 { margin: 0 0 12px; font-size: 18px; letter-spacing: .4px; }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.field label { font-size: 12px; color: var(--muted); }
.field input { background: var(--panel-2); border: 1px solid rgba(255,255,255,.08); color: var(--text); border-radius: 12px; padding: 12px 14px; outline: none; box-shadow: inset 0 0 0 1px rgba(138,92,255,.05); }
.field input::placeholder { color: #7d83a6; }
.hint { color: var(--muted); font-size: 12px; margin-top: -4px; }

.advanced { margin-top: 8px; }
.advanced summary { cursor: pointer; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.result { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 12px; }
.short-link { display: flex; align-items: center; gap: 8px; }
.short-link a { color: var(--neon-2); text-decoration: none; word-break: break-all; }
.qr-wrapper { border: 1px solid rgba(255,255,255,.06); background: rgba(13,16,32,.6); padding: 12px; border-radius: 14px; display: inline-flex; }
.qr-wrapper img { width: 220px; height: 220px; image-rendering: crisp-edges; }

.list-header { display: flex; justify-content: space-between; align-items: center; }
.list-controls { display: flex; gap: 8px; align-items: center; }
.switch { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }

.table-wrapper { overflow: auto; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; min-width: 720px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.table td a { color: var(--neon-2); text-decoration: none; }
.table td .row-actions { display: flex; gap: 6px; justify-content: flex-end; }

.error { background: rgba(255,123,123,.1); color: #ffd1d1; border: 1px solid rgba(255,123,123,.3); padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.muted { color: var(--muted); font-size: 13px; }

.modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(4,6,14,.6); backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.modal-content { width: 100%; max-width: 520px; background: var(--panel); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.modal-content.wide { max-width: 900px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.stats-body { display: grid; gap: 12px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-kpi { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px; }
.k { font-size: 26px; font-weight: 800; color: #cfe6ff; }
.k-label { font-size: 12px; color: var(--muted); }
.trackers { border: 1px solid rgba(255,255,255,.06); border-radius: 12px; overflow: auto; }
.trackers table { width: 100%; border-collapse: collapse; min-width: 680px; }
.trackers th, .trackers td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.06); text-align: left; font-size: 12px; }


