:root {
  --bg: #080b13;
  --bg-soft: #0d1220;
  --panel: #101725;
  --panel-2: #151e2e;
  --line: #243047;
  --text: #f5f7fb;
  --muted: #8f9bb0;
  --dim: #63708a;
  --accent: #8b5cf6;
  --accent-2: #6d4bf5;
  --cyan: #3fd6e3;
  --green: #42d392;
  --yellow: #f7bd4b;
  --red: #ff6b7b;
  --shadow: 0 24px 80px rgba(0,0,0,.28);
  --radius: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 74% -20%, rgba(83,55,180,.2), transparent 38%), var(--bg); color: var(--text); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { color: #7886a1; font-size: 10px; letter-spacing: .16em; font-weight: 800; margin: 0 0 8px; }
.card { background: linear-gradient(145deg, rgba(20,29,45,.98), rgba(14,20,32,.98)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 7vw; max-width: 1280px; margin: auto; padding: 48px 7vw; }
.login-art { position: relative; padding: 16px 0 80px; }
.login-art:after { content: ""; width: 320px; height: 320px; position: absolute; right: 0; bottom: -60px; border-radius: 50%; border: 1px solid rgba(139,92,246,.18); box-shadow: 0 0 0 36px rgba(139,92,246,.04), 0 0 0 72px rgba(139,92,246,.025); }
.brand-mark { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; color: white; font-size: 26px; font-weight: 900; background: linear-gradient(135deg, #a78bfa, #5b21b6); box-shadow: 0 12px 34px rgba(109,75,245,.3); margin-bottom: 70px; }
.login-art h1 { font-size: clamp(40px, 5.4vw, 78px); line-height: .98; letter-spacing: -.055em; max-width: 650px; margin: 0 0 24px; }
.hero-copy { max-width: 520px; font-size: 17px; line-height: 1.6; }
.login-highlights { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.login-highlights span { border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; color: var(--muted); font-size: 12px; background: rgba(20,29,45,.6); }
.login-highlights b { color: var(--text); }
.login-card { max-width: 460px; padding: 34px; }
.brand-lockup { display: flex; gap: 10px; align-items: center; font-weight: 750; letter-spacing: -.02em; }
.brand-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-weight: 900; background: linear-gradient(135deg, #a78bfa, #5b21b6); }
.login-card h2 { font-size: 28px; letter-spacing: -.03em; margin: 54px 0 8px; }
.stack-form { display: grid; gap: 17px; margin-top: 26px; }
label { color: #cbd3e2; font-size: 12px; font-weight: 700; display: grid; gap: 8px; }
input, textarea, select { width: 100%; color: var(--text); background: #0b111d; border: 1px solid #29364f; border-radius: 10px; padding: 12px 13px; outline: none; transition: border .2s, box-shadow .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,92,246,.16); }
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; }
.button { border: 0; border-radius: 10px; padding: 11px 15px; color: var(--text); font-size: 12px; font-weight: 800; transition: transform .2s, background .2s, opacity .2s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 24px rgba(109,75,245,.23); }
.button.ghost { background: #182236; border: 1px solid #2a3852; }
.button.danger { color: #ffb4bd; background: rgba(188,39,61,.13); border: 1px solid rgba(255,107,123,.25); }
.button.small { padding: 8px 10px; font-size: 11px; }
.button.full { width: 100%; padding: 13px; }
.form-error { color: var(--red); min-height: 18px; margin: 0; font-size: 12px; }
.login-note { color: var(--dim); font-size: 11px; line-height: 1.5; margin: 28px 0 0; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 254px; flex-shrink: 0; min-height: 100vh; padding: 30px 17px 20px; border-right: 1px solid #182238; background: rgba(9,13,23,.85); display: flex; flex-direction: column; }
.sidebar-brand { padding: 0 12px; font-size: 15px; }
.sidebar-brand small { display: block; color: var(--dim); font-size: 8px; letter-spacing: .15em; margin-top: 2px; }
.nav-list { display: grid; gap: 5px; margin-top: 66px; }
.nav-item { text-align: left; width: 100%; padding: 11px 12px; border: 1px solid transparent; color: var(--muted); background: transparent; border-radius: 10px; font-size: 12px; font-weight: 700; display: flex; gap: 11px; align-items: center; }
.nav-item:hover { color: var(--text); background: rgba(28,39,62,.6); }
.nav-item.active { color: white; border-color: #302b67; background: linear-gradient(90deg, rgba(111,78,220,.27), rgba(55,45,120,.08)); }
.nav-icon { width: 18px; text-align: center; color: #8796b4; font-size: 13px; }
.nav-item.active .nav-icon { color: #bba7ff; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 16px; }
.security-pill { padding: 12px; border: 1px solid #20334a; border-radius: 12px; background: rgba(22,34,47,.7); display: flex; gap: 10px; align-items: flex-start; font-size: 11px; }
.security-pill small { display: block; color: var(--dim); margin-top: 4px; font-size: 10px; font-weight: 500; }
.status-dot { width: 7px; height: 7px; border-radius: 999px; display: inline-block; background: var(--dim); flex-shrink: 0; }
.status-dot.green { background: var(--green); box-shadow: 0 0 0 4px rgba(66,211,146,.1); }
.status-dot.yellow { background: var(--yellow); }
.status-dot.red { background: var(--red); }
.main-content { width: calc(100% - 254px); min-width: 0; }
.topbar { min-height: 112px; padding: 28px 4.2vw 20px; border-bottom: 1px solid #152036; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar h1 { margin: 0; font-size: 26px; letter-spacing: -.04em; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.status-chip { display: inline-flex; align-items: center; gap: 8px; color: #b8c4d8; border: 1px solid #263b4e; padding: 8px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.admin-email { color: var(--muted); font-size: 12px; }
.page-content { padding: 34px 4.2vw 70px; max-width: 1440px; }
.page-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 24px; }
.page-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.page-heading p { color: var(--muted); font-size: 12px; margin: 7px 0 0; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.metric-card { padding: 19px; min-height: 122px; position: relative; overflow: hidden; }
.metric-card:after { content: ""; position: absolute; right: -28px; bottom: -44px; width: 115px; height: 115px; border-radius: 50%; background: rgba(139,92,246,.1); }
.metric-label { color: var(--muted); font-size: 11px; font-weight: 700; }
.metric-value { font-size: 31px; font-weight: 850; letter-spacing: -.05em; margin-top: 15px; }
.metric-note { color: var(--dim); font-size: 10px; margin-top: 4px; }
.dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 15px; margin-top: 15px; }
.panel { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(16,23,37,.76); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.panel-header h3 { margin: 0; font-size: 14px; letter-spacing: -.02em; }
.panel-header span { color: var(--dim); font-size: 11px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { color: var(--dim); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 10px; border-bottom: 1px solid rgba(36,48,71,.6); color: #c7d0df; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.tag.green { color: #79e7b0; background: rgba(66,211,146,.1); }
.tag.yellow { color: #ffd27b; background: rgba(247,189,75,.1); }
.tag.red { color: #ff9ca8; background: rgba(255,107,123,.1); }
.tag.blue { color: #8ed9ee; background: rgba(63,214,227,.1); }
.tag.gray { color: #a4afc1; background: rgba(143,155,176,.1); }
.empty { color: var(--dim); padding: 28px 12px; text-align: center; font-size: 12px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { max-width: 245px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.settings-grid .full-row { grid-column: 1 / -1; }
.form-panel { padding: 22px; }
.form-panel h3 { margin: 0 0 6px; font-size: 15px; }
.form-panel > p { margin: 0 0 20px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full-row { grid-column: 1 / -1; }
.help { color: var(--dim); font-size: 10px; line-height: 1.45; font-weight: 500; }
.checkbox-row { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.checkbox-row input { width: auto; accent-color: var(--accent); }
.step-list { display: grid; gap: 13px; }
.step { display: grid; grid-template-columns: 30px 1fr; gap: 13px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(12,18,30,.7); }
.step-num { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(139,92,246,.15); color: #c6b5ff; font-weight: 900; font-size: 12px; }
.step h4 { margin: 0 0 6px; font-size: 13px; }
.step p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.step code { color: #beeaf0; background: #111d2d; border-radius: 4px; padding: 2px 5px; font-size: 10px; }
.callout { border-left: 3px solid var(--accent); background: rgba(139,92,246,.08); padding: 13px 15px; color: #c8c2e6; font-size: 11px; line-height: 1.55; border-radius: 0 9px 9px 0; }
.toast { position: fixed; z-index: 30; right: 22px; bottom: 22px; max-width: 380px; padding: 13px 16px; background: #172236; border: 1px solid #324362; color: #e7edf7; border-radius: 11px; box-shadow: var(--shadow); font-size: 12px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: none; }
.modal-backdrop { position: fixed; z-index: 20; inset: 0; background: rgba(2,5,10,.72); display: grid; place-items: center; padding: 20px; }
.modal { max-width: 650px; width: 100%; max-height: 90vh; overflow: auto; padding: 24px; background: #111a2a; border: 1px solid #33425d; border-radius: 16px; box-shadow: var(--shadow); }
.modal-header { display: flex; justify-content: space-between; gap: 15px; align-items: start; margin-bottom: 20px; }
.modal-header h3 { margin: 0; font-size: 18px; }
.icon-button { width: 31px; height: 31px; border-radius: 8px; color: var(--muted); border: 1px solid var(--line); background: #172337; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.progress { height: 7px; background: #1a263b; border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--cyan)); border-radius: 99px; }
@media (max-width: 1020px) { .login-shell { grid-template-columns: 1fr; max-width: 640px; gap: 20px; } .login-art { padding-bottom: 0; } .brand-mark { margin-bottom: 35px; } .login-card { max-width: none; } .metrics-grid { grid-template-columns: repeat(2, 1fr); } .dashboard-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .sidebar { width: 70px; padding: 22px 10px; } .sidebar-brand span:last-child, .nav-item:not(.active)::after, .nav-item { font-size: 0; } .sidebar-brand .brand-icon { margin: auto; } .nav-item { justify-content: center; padding: 12px 8px; } .nav-icon { font-size: 14px; } .security-pill { padding: 9px; justify-content: center; } .security-pill span:last-child, .sidebar-bottom .subtle { display: none; } .main-content { width: calc(100% - 70px); } .topbar { padding: 22px 20px; align-items: flex-start; } .topbar h1 { font-size: 20px; } .admin-email { display: none; } .page-content { padding: 24px 20px 50px; } .metrics-grid, .settings-grid, .split, .form-grid { grid-template-columns: 1fr; } .settings-grid .full-row, .form-grid .full-row { grid-column: auto; } .page-heading { align-items: flex-start; flex-direction: column; } }
