:root {
  --bg: #090b10;
  --card: rgba(18, 23, 33, 0.88);
  --muted: #9aa4b2;
  --text: #f3f4f6;
  --accent: #d4af37;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(212, 175, 55, 0.28);
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.38);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.10), transparent 26%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.08), transparent 24%),
    linear-gradient(180deg, #080a0f 0%, #0d121b 100%);
  color: var(--text);
  line-height: 1.5;
}
.page-glow { position: fixed; width: 360px; height: 360px; border-radius: 999px; filter: blur(90px); opacity: 0.18; pointer-events: none; z-index: 0; }
.page-glow-1 { top: -140px; left: -80px; background: var(--accent); }
.page-glow-2 { right: -100px; bottom: -120px; background: #1d4ed8; }
.container { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 32px 24px 48px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
h1,h2,h3 { margin: 0; }
p { color: var(--muted); }
.brand-badge { display: inline-flex; margin-bottom: 10px; padding: 7px 12px; border-radius: 999px; background: rgba(212, 175, 55, 0.12); border: 1px solid rgba(212, 175, 55, 0.22); color: #f4d97d; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.brand h1 { font-size: 44px; line-height: 1.05; margin-bottom: 10px; letter-spacing: -0.04em; }
.brand p { font-size: 18px; }
.tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.tab-btn, button, select, input { border-radius: 14px; border: 1px solid var(--border); font-size: 14px; }
.tab-btn, button { background: var(--card); color: var(--text); padding: 12px 18px; cursor: pointer; transition: .2s ease; }
.tab-btn.active, .primary { background: linear-gradient(180deg, #e1bf4c 0%, #c49b21 100%); color: #111; border-color: rgba(212, 175, 55, 0.45); font-weight: 800; }
button:hover, .tab-btn:hover { transform: translateY(-1px); }
.grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
.card { background: linear-gradient(180deg, rgba(18, 23, 33, 0.92) 0%, rgba(14, 18, 27, 0.94) 100%); border: 1px solid var(--border); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.card-main { padding: 24px; }
.card-head,.summary-header,.section-bar { margin-bottom: 18px; }
.card h2 { font-size: 20px; margin-bottom: 8px; letter-spacing: -0.03em; }
label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #d7dce3; }
.field { margin-bottom: 18px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, select { width: 100%; min-height: 54px; background: rgba(8, 12, 19, 0.95); color: var(--text); padding: 14px 16px; outline: none; border-radius: 16px; transition: border-color .2s ease, box-shadow .2s ease; }
input:focus, select:focus { border-color: var(--border-strong); box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.08); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; margin-top: 14px; }
.slot { text-align: center; padding: 13px 12px; border-radius: 14px; background: #0d1320; border: 1px solid rgba(255,255,255,.08); cursor: pointer; user-select: none; font-weight: 600; transition: .18s ease; }
.slot:hover { border-color: rgba(212, 175, 55, 0.45); transform: translateY(-1px); }
.slot.selected { background: linear-gradient(180deg, #e1bf4c 0%, #c49b21 100%); color: #111; border-color: rgba(212, 175, 55, 0.45); font-weight: 800; }
.slot.disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.item { background: rgba(10, 16, 26, 0.88); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; padding: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.item-actions { display:flex; gap:10px; flex-wrap:wrap; }
.item-actions button { padding: 10px 14px; }
.badge { display:inline-block; padding:4px 8px; border-radius:999px; font-size:12px; margin-top:6px; background:rgba(212,175,55,.18); color:#f6d77a; border:1px solid rgba(212,175,55,.3); }
.danger { background: rgba(220,38,38,.12); border-color: rgba(220,38,38,.35); color:#fca5a5; }
.success { background: rgba(22,163,74,.12); border-color: rgba(22,163,74,.35); color:#86efac; }
.admin-grid { display:grid; grid-template-columns: 1fr 1fr; gap:20px; }
.admin-section-gap { margin-top: 20px; }
.muted { color: var(--muted); font-size: 13px; }
.hidden { display:none; }
.empty { border:1px dashed rgba(255,255,255,.08); border-radius:16px; padding:18px; color:var(--muted); text-align:center; margin-top:4px; background:rgba(10,16,26,.5); }
.footer-note { margin-top:16px; font-size:12px; color:var(--muted); }
.cta-btn { width:100%; min-height:54px; border-radius:16px; font-size:15px; font-weight:800; }
.custom-select { position: relative; width: 100%; }
.custom-select-trigger { width:100%; min-height:54px; padding:14px 16px; border-radius:16px; border:1px solid var(--border); background:rgba(8,12,19,.95); color:var(--text); display:flex; align-items:center; justify-content:space-between; gap:12px; text-align:left; font-size:14px; cursor:pointer; transition:.2s ease; }
.custom-select-trigger:hover { border-color: rgba(212, 175, 55, 0.45); }
.custom-select-trigger.open { border-color: var(--border-strong); box-shadow: 0 0 0 4px rgba(212,175,55,.08); }
.custom-select-trigger span { pointer-events:none; }
.custom-select-arrow { color: var(--accent); font-size:14px; transition: transform .2s ease; }
.custom-select-trigger.open .custom-select-arrow { transform: rotate(180deg); }
.custom-select-menu { position:absolute; top:calc(100% + 8px); left:0; width:100%; background:#101722; border:1px solid rgba(255,255,255,.08); border-radius:18px; padding:8px; box-shadow:0 16px 40px rgba(0,0,0,.35); z-index:50; max-height:280px; overflow-y:auto; }
.custom-select-option { width:100%; padding:12px 14px; border-radius:14px; border:1px solid transparent; background:transparent; color:var(--text); cursor:pointer; display:flex; flex-direction:column; gap:4px; transition:.2s ease; }
.custom-select-option:hover { background: rgba(212,175,55,.08); border-color: rgba(212,175,55,.22); }
.custom-select-option.active { background: rgba(212,175,55,.14); border-color: rgba(212,175,55,.35); }
.custom-select-option-title { font-size:14px; font-weight:700; color:var(--text); }
.custom-select-option-meta { font-size:12px; color:var(--muted); }
.custom-select-menu.hidden { display:none; }
.auth-modal.hidden { display: none; }
.auth-modal { position: fixed; inset: 0; z-index: 9999; }
.auth-backdrop { position: absolute; inset: 0; background: rgba(3, 6, 12, 0.72); backdrop-filter: blur(6px); }
.auth-dialog { position: relative; z-index: 2; width: min(100% - 32px, 420px); margin: 10vh auto 0; padding: 24px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.08); background: linear-gradient(180deg, rgba(18, 23, 33, 0.96) 0%, rgba(12, 17, 25, 0.98) 100%); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45); }
.auth-head { margin-bottom: 18px; }
.auth-head h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: -0.03em; }
.auth-head p { margin: 0; }
.auth-error { margin-top: -4px; margin-bottom: 14px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(220, 38, 38, 0.28); background: rgba(220, 38, 38, 0.10); color: #fca5a5; font-size: 13px; }
.auth-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
@media (max-width: 900px) { .grid, .admin-grid { grid-template-columns:1fr; } .field-grid { grid-template-columns:1fr; } .brand h1 { font-size:34px; } }
@media (max-width: 640px) { .container { padding:20px 16px 36px; } .card { padding:18px; border-radius:20px; } .brand h1 { font-size:30px; } .brand p { font-size:16px; } }