:root {
  color-scheme: dark;
  --bg: #0c0a12;
  --surface: rgba(25, 21, 36, 0.9);
  --surface-strong: #211b30;
  --text: #faf8ff;
  --muted: #b9b2c8;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #ff7a1a;
  --accent-light: #ffb067;
  --green: #63d68b;
  --danger: #ff7272;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 122, 26, 0.2), transparent 30rem),
    radial-gradient(circle at 90% 30%, rgba(103, 67, 202, 0.16), transparent 35rem),
    var(--bg);
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 72px 0 80px; }
.hero { max-width: 760px; margin-bottom: 36px; }
.eyebrow, .step { margin: 0 0 8px; color: var(--accent-light); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.5rem, 7vw, 5.4rem); line-height: .95; letter-spacing: -.055em; }
.hero > p:last-child { max-width: 630px; margin: 24px 0 0; color: var(--muted); font-size: 1.15rem; line-height: 1.65; }

.card { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 24px 80px rgba(0,0,0,.28); backdrop-filter: blur(16px); }
.form-card { padding: clamp(24px, 5vw, 46px); }
.section-heading, .list-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
h2, h3 { margin: 0; }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); }
.private-badge, .count { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .82rem; white-space: nowrap; }

form { margin-top: 32px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
label { display: grid; gap: 9px; color: #ded9e8; font-size: .9rem; font-weight: 700; }
label small { min-height: 1.1em; color: var(--muted); font-size: .76rem; font-weight: 500; }
.wide-field { grid-column: 1 / -1; }
input, select {
  width: 100%; min-height: 52px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px;
  outline: none; color: var(--text); background: rgba(8, 7, 13, .65); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 122, 26, .14); }
input::placeholder { color: #746d81; }
.primary-button, .secondary-button { min-height: 50px; border: 0; border-radius: 12px; font-weight: 800; }
.primary-button { min-width: 180px; margin-top: 26px; padding: 0 24px; color: #160b03; background: linear-gradient(135deg, var(--accent-light), var(--accent)); }
.primary-button:hover { filter: brightness(1.08); }
.form-error { margin: 18px 0 -8px; color: var(--danger); }
.success { margin-top: 20px; padding: 18px; border: 1px solid rgba(99,214,139,.3); border-radius: 12px; color: #baf4ce; background: rgba(99,214,139,.1); line-height: 1.55; }
.success strong { display: block; margin-bottom: 4px; color: #e6ffef; }

.dashboard { margin-top: 56px; }
.compact-hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.admin-shell { max-width: 1180px; }
.login-card { max-width: 560px; }
.login-card form { display: grid; }
.dashboard-heading { margin-bottom: 20px; }
.list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.list-card { min-width: 0; padding: 25px; }
.list-title > div { display: flex; align-items: center; gap: 10px; }
.platform-dot { width: 10px; height: 10px; border-radius: 50%; }
.android-dot { background: #52d780; box-shadow: 0 0 14px rgba(82,215,128,.5); }
.ios-dot { background: #d9d5e2; box-shadow: 0 0 14px rgba(217,213,226,.4); }
.empty { margin: 26px 0; padding: 34px 18px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }
.table-wrap { margin: 20px 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .78rem; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.delete-row { border: 0; color: var(--danger); background: transparent; font-size: 1rem; }
.secondary-button { width: 100%; padding: 0 16px; border: 1px solid var(--line); color: var(--text); background: var(--surface-strong); }
.secondary-button:disabled { cursor: not-allowed; opacity: .4; }
.text-button { border: 0; padding: 8px; background: transparent; }
.danger { color: var(--danger); }

@media (max-width: 760px) {
  .shell { padding-top: 42px; }
  .field-grid, .list-grid { grid-template-columns: 1fr; }
  .wide-field { grid-column: auto; }
  .private-badge { display: none; }
}
