:root {
  --bg: #071713;
  --panel: rgba(255,255,255,.08);
  --panel2: rgba(255,255,255,.12);
  --text: #eefcf7;
  --muted: #a5bdb5;
  --gold: #f5c96b;
  --emerald: #16c784;
  --danger: #ff5f6d;
  --line: rgba(255,255,255,.13);
  --shadow: 0 24px 70px rgba(0,0,0,.35);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: radial-gradient(circle at top left, #124b3c, #071713 48%, #020806); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.login-body { display: grid; place-items: center; padding: 32px; }
.login-card { width: min(480px, 100%); background: rgba(6,24,20,.9); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); padding: 34px; backdrop-filter: blur(18px); }
.install-card { width: min(560px, 100%); }
.brand-mark { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 22px; background: linear-gradient(135deg, var(--emerald), #0b7356); color: white; font-size: 32px; box-shadow: 0 12px 30px rgba(22,199,132,.3); }
.login-card h1 { margin: 20px 0 8px; font-size: 34px; }
.login-card p { color: var(--muted); line-height: 1.6; }
label { display: grid; gap: 8px; color: #d8eee8; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.08); color: var(--text); padding: 14px 15px; outline: none; }
select option { color: #111; }
textarea { resize: vertical; }
form { display: grid; gap: 18px; }
button, .button { border: 0; border-radius: 16px; padding: 13px 18px; background: rgba(255,255,255,.12); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; border: 1px solid var(--line); }
button:hover, .button:hover { transform: translateY(-1px); }
.primary { background: linear-gradient(135deg, var(--emerald), #0f8f68); border-color: rgba(255,255,255,.1); }
.danger { background: rgba(255,95,109,.15); color: #ffd6da; border-color: rgba(255,95,109,.35); }
.large { font-size: 18px; padding: 16px 24px; }
.alert, .success { padding: 14px 16px; border-radius: 16px; }
.alert { background: rgba(255,95,109,.14); border: 1px solid rgba(255,95,109,.35); color: #ffd9dd; }
.success { background: rgba(22,199,132,.14); border: 1px solid rgba(22,199,132,.35); color: #dfffee; }
.wide { margin-bottom: 18px; }
.login-note { color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 10px; }

.admin-body { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 24px; border-right: 1px solid var(--line); background: rgba(0,0,0,.25); backdrop-filter: blur(18px); display: flex; flex-direction: column; gap: 8px; }
.admin-logo { font-size: 22px; font-weight: 900; margin-bottom: 22px; color: var(--gold); }
.admin-sidebar a { padding: 13px 14px; border-radius: 14px; color: #d6eee8; }
.admin-sidebar a:hover { background: rgba(255,255,255,.08); }
.admin-sidebar .logout { margin-top: auto; color: #ffd6da; }
.admin-main { padding: 30px; max-width: 1500px; width: 100%; }
.admin-hero, .panel { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.08); box-shadow: var(--shadow); }
.admin-hero { padding: 32px; display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 24px; background: linear-gradient(135deg, rgba(22,199,132,.18), rgba(245,201,107,.08)); }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-weight: 900; font-size: 12px; }
.admin-hero h1 { margin: 4px 0; font-size: clamp(34px, 4vw, 60px); }
.admin-hero p { color: var(--muted); line-height: 1.6; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-form { display: grid; gap: 22px; }
.panel { padding: 26px; }
.panel h2 { margin-top: 0; font-size: 26px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.toggle-row { display: flex; flex-wrap: wrap; gap: 16px 24px; margin: 14px 0; }
.toggle-row label { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #e7fbf5; }
.toggle-row input { width: auto; }
.section-note { color: var(--muted); }
.copy-box { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.sticky-save { position: sticky; bottom: 0; display: flex; gap: 12px; padding: 18px 0 0; background: linear-gradient(transparent, rgba(7,23,19,.95) 30%); z-index: 3; }

@media (max-width: 980px) {
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; flex-direction: row; flex-wrap: wrap; }
  .grid.two, .grid.five { grid-template-columns: 1fr; }
  .admin-hero { flex-direction: column; align-items: flex-start; }
}
