:root {
  color-scheme: dark;
  --navy: #101a38;
  --navy-2: #18254d;
  --panel: #121a2d;
  --panel-2: #182238;
  --line: #2d3a59;
  --text: #f6f7fb;
  --muted: #a9b5cd;
  --red: #e8383f;
  --red-2: #ff555b;
  --shadow: 0 18px 50px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #0b1120; color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.app-frame { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
.sidebar { min-height: 100vh; background: linear-gradient(180deg,var(--navy),#0d1530); border-right: 1px solid var(--line); padding: 30px 18px 20px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: inline-flex; color: var(--text); text-decoration: none; margin: 0 10px 34px; }
.brand-logo { background: #fff; border-radius: 10px; padding: 7px; overflow: hidden; }
.brand-logo img { display: block; width: 190px; height: auto; }

nav { display: grid; gap: 5px; }
.nav-group { display: grid; }
.nav-item { width: 100%; border: 0; border-radius: 9px; background: transparent; color: #dce3f2; text-align: left; padding: 11px 12px; cursor: pointer; font-weight: 650; }
.nav-item:hover { background: rgba(255,255,255,.055); }
.nav-item.active { background: rgba(232,56,63,.16); color: #fff; box-shadow: inset 3px 0 0 var(--red); }
.nav-children { display: grid; gap: 3px; padding: 3px 12px 6px 25px; }
.nav-child { color: #7f8aa6; font-size: .78rem; padding: 3px 0; }
.sidebar-footer { margin-top: 28px; padding: 16px 10px 0; border-top: 1px solid rgba(255,255,255,.08); }
.version { color: #6f7c99; font-size: .76rem; letter-spacing: .08em; }

.main { min-width: 0; }
.shell { padding: 0 44px 56px; max-width: 1500px; margin: 0 auto; }
.topbar { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 6px; color: #7f8caa; font-weight: 800; font-size: .72rem; letter-spacing: .14em; }
h1,h2,p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 1.55rem; }
h2 { font-size: clamp(1.7rem,3vw,2.5rem); margin-bottom: 12px; }
.user-cluster { display: flex; align-items: center; gap: 15px; color: var(--muted); }
button { border: 1px solid var(--line); color: var(--text); background: #17213a; border-radius: 8px; padding: 9px 14px; cursor: pointer; }
button:hover { border-color: #566483; }
.hero, .content-card { margin-top: 42px; border: 1px solid var(--line); background: linear-gradient(145deg,var(--panel-2),var(--panel)); border-radius: 18px; padding: clamp(26px,5vw,54px); box-shadow: var(--shadow); }
.hero { min-height: 320px; display: flex; flex-direction: column; justify-content: center; }
.hero p:last-child, .content-card > p { color: var(--muted); font-size: 1.04rem; max-width: 760px; line-height: 1.65; }
.section-heading { display: flex; justify-content: space-between; gap: 24px; }
.reserved-list { margin-top: 24px; display: grid; gap: 10px; max-width: 680px; }
.reserved-item { display: flex; justify-content: space-between; gap: 20px; border: 1px solid var(--line); background: rgba(0,0,0,.13); border-radius: 10px; padding: 13px 15px; }
.reserved-item span { color: #7f8caa; font-size: .82rem; }
.section-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.action-link { display: inline-block; color: #fff; background: var(--red); border-radius: 8px; padding: 11px 16px; text-decoration: none; font-weight: 750; }
.action-link:hover { background: var(--red-2); }
.shell-status, .form-status { color: #f2b4b6; min-height: 1.5em; margin-top: 16px; }

.auth-panel { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 50% 35%,#1c2c58 0,#0b1120 58%); }
.auth-card { width: min(440px,100%); padding: 38px; border: 1px solid var(--line); background: rgba(16,25,48,.96); border-radius: 18px; box-shadow: var(--shadow); }
.login-logo { display: block; width: min(290px,100%); height: auto; margin: 0 auto 28px; border-radius: 10px; }
.auth-card h1 { font-size: 2rem; margin-bottom: 8px; }
.auth-card > p:not(.eyebrow):not(.form-status) { color: var(--muted); }
.auth-card form { display: grid; gap: 16px; margin-top: 28px; }
.auth-card label { display: grid; gap: 7px; color: #c7d0e2; font-size: .88rem; font-weight: 650; }
.auth-card input { width: 100%; border: 1px solid #3a4868; background: #0e1629; color: #fff; border-radius: 8px; padding: 11px 12px; outline: none; }
.auth-card input:focus { border-color: #7789b1; box-shadow: 0 0 0 3px rgba(119,137,177,.15); }
.auth-card button { margin-top: 4px; border-color: var(--red); background: var(--red); font-weight: 800; }

[hidden] { display: none !important; }

@media (max-width: 820px) {
  .app-frame { grid-template-columns: 1fr; }
  .sidebar { position: static; min-height: auto; height: auto; padding: 20px 16px; }
  .brand { margin-bottom: 18px; }
  nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nav-children { display: none; }
  .shell { padding: 0 20px 40px; }
  .topbar { min-height: 92px; }
}
