@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  --bg: #07090b;
  --panel: #0c1012;
  --panel-2: #101517;
  --line: rgba(255,255,255,.09);
  --line-hot: rgba(231,183,75,.36);
  --text: #f1f4ef;
  --muted: #929c94;
  --muted-2: #69746c;
  --acid: #e7b74b;
  --acid-2: #ad7620;
  --cyan: #d9c598;
  --amber: #ffbb55;
  --red: #ff615f;
  --violet: #c88632;
  --radius: 6px;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --sans: "Barlow", "Arial Narrow", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); font-family: var(--sans); font-size: 15px; letter-spacing: .005em; overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }

.ambient { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.ambient::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent 80%); }
.ambient i { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .13; }
.ambient i:nth-child(1) { width: 520px; height: 520px; background: #b4781d; top: -280px; right: 10%; }
.ambient i:nth-child(2) { width: 420px; height: 420px; background: #5f4219; bottom: -280px; left: -120px; }
.ambient i:nth-child(3) { width: 300px; height: 300px; background: var(--cyan); bottom: 5%; right: -180px; }

.brand { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand b { font-size: 16px; font-weight: 700; letter-spacing: .16em; line-height: 1; }
.brand small { margin-top: 5px; color: var(--muted); font: 8px var(--mono); letter-spacing: .18em; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; position: relative; background: #111 url("./assets/guardex-avatar.png") center/cover no-repeat; border-radius: 4px; border: 1px solid rgba(231,183,75,.28); box-shadow: 0 0 20px rgba(231,183,75,.08); }
.brand-mark::before, .brand-mark span { display: none; }

.login-screen { min-height: 100vh; position: relative; z-index: 1; max-width: 1500px; margin: auto; padding: 0 5vw; display: flex; flex-direction: column; }
.public-nav { height: 94px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.system-pill { font: 10px var(--mono); letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 10px 14px; background: rgba(10,13,15,.65); }
.system-pill span, .api-health > span, .live-clock > span { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 12px var(--acid); animation: pulse 2s infinite; }
.hero { flex: 1; min-height: 680px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 5vw; }
.hero-copy { padding: 56px 0; }
.eyebrow { color: var(--muted); font: 10px var(--mono); letter-spacing: .12em; }
.eyebrow span { color: var(--acid); border: 1px solid var(--line-hot); padding: 4px 6px; margin-right: 9px; }
.hero h1 { margin: 26px 0 24px; max-width: 760px; font-size: clamp(58px, 6.8vw, 104px); line-height: .88; letter-spacing: -.04em; font-weight: 600; }
.hero h1 em { color: var(--acid); font-style: normal; }
.hero-lead { color: #9da59e; font-size: 16px; line-height: 1.75; max-width: 630px; }
.hero-actions { margin: 34px 0 40px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.discord-button { display: inline-flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #f0c75d, #b77a22); color: #100c06; padding: 15px 20px; text-decoration: none; border-radius: 4px; font-weight: 700; font-size: 13px; box-shadow: 0 14px 40px rgba(231,183,75,.13); transition: .2s ease; }
.discord-button:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 18px 46px rgba(231,183,75,.2); }
.discord-button svg { width: 20px; fill: currentColor; }
.login-note { color: var(--muted); font: 10px var(--mono); }
.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(110px, 1fr)); border-top: 1px solid var(--line); max-width: 650px; padding-top: 24px; }
.hero-metrics div { padding-left: 18px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.hero-metrics strong { font-size: 26px; letter-spacing: -.04em; }
.hero-metrics span { font: 9px var(--mono); text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.hero-visual { width: min(42vw, 580px); aspect-ratio: 1; justify-self: center; position: relative; display: grid; place-items: center; }
.hero-visual::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(231,183,75,.12), transparent 65%); filter: blur(20px); }
.hero-visual::after { content: ""; position: absolute; inset: 2%; background: url("./assets/guardex-banner.png") center/cover no-repeat; opacity: .17; filter: saturate(.8) contrast(1.15); mask-image: radial-gradient(circle, #000 12%, transparent 69%); z-index: -1; }
.orbit { position: absolute; border: 1px solid rgba(231,183,75,.17); border-radius: 50%; }
.orbit::before, .orbit::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 16px var(--acid); }
.orbit-one { inset: 13%; animation: spin 18s linear infinite; }
.orbit-one::before { top: 11%; left: 13%; }
.orbit-one::after { bottom: 5%; right: 25%; }
.orbit-two { inset: 25%; border-style: dashed; animation: spin 13s linear infinite reverse; }
.orbit-two::before { top: -3px; left: 48%; }
.core { width: 37%; aspect-ratio: 1; border-radius: 50%; position: relative; display: grid; place-items: center; background: #0b100d; border: 1px solid var(--line-hot); box-shadow: 0 0 0 16px rgba(231,183,75,.025), 0 0 80px rgba(231,183,75,.1), inset 0 0 30px rgba(231,183,75,.06); }
.core::before, .core::after { content: ""; position: absolute; inset: -35%; border: 1px solid var(--line); border-radius: 50%; clip-path: polygon(0 0,100% 0,100% 20%,0 20%); animation: spin 8s linear infinite; }
.core::after { inset: -18%; animation-direction: reverse; animation-duration: 5s; }
.core-shield { width: 62%; aspect-ratio: 1; background: #111 url("./assets/guardex-avatar.png") center/cover no-repeat; border-radius: 50%; border: 1px solid rgba(231,183,75,.22); box-shadow: inset 0 0 26px rgba(231,183,75,.08); }
.core-shield span { display: none; }
.signal { position: absolute; min-width: 145px; padding: 10px 12px; background: rgba(10,14,12,.82); border: 1px solid var(--line); backdrop-filter: blur(14px); display: flex; flex-direction: column; gap: 3px; }
.signal::before { content: ""; position: absolute; width: 36px; border-top: 1px solid var(--line-hot); top: 50%; }
.signal b { font: 9px var(--mono); letter-spacing: .06em; }
.signal span { color: var(--acid); font: 8px var(--mono); }
.signal-a { top: 17%; left: 0; }.signal-a::before { right: -36px; }
.signal-b { right: -2%; top: 39%; }.signal-b::before { left: -36px; }
.signal-c { bottom: 16%; left: 6%; }.signal-c::before { right: -36px; }
.public-footer { height: 52px; border-top: 1px solid var(--line); color: var(--muted-2); display: flex; align-items: center; gap: 12px; font: 9px var(--mono); letter-spacing: .14em; }
.public-footer span { color: var(--acid); }

.dashboard { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 268px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 268px; padding: 28px 20px 22px; background: rgba(8,11,13,.96); border-right: 1px solid var(--line); backdrop-filter: blur(28px); display: flex; flex-direction: column; z-index: 30; }
.sidebar-brand { margin: 0 8px 36px; }
.guild-picker { width: 100%; height: 62px; padding: 9px 11px; display: flex; align-items: center; gap: 12px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 5px; text-align: left; cursor: pointer; transition: .2s; }
.guild-picker:hover { border-color: var(--line-hot); background: #111714; }
.guild-avatar { width: 42px; height: 42px; flex: none; display: grid; place-items: center; background: linear-gradient(140deg, #222a24, #111613); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; font-weight: 700; color: var(--acid); background-size: cover; background-position: center; }
.guild-picker-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.guild-picker-copy b { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guild-picker-copy small { color: var(--acid); font: 8px var(--mono); margin-top: 4px; }
.chevron { color: var(--muted); font-size: 18px; }
.guild-menu { position: absolute; top: 132px; left: 20px; right: 20px; max-height: 330px; overflow-y: auto; padding: 6px; background: #0d1210; border: 1px solid var(--line-hot); border-radius: 5px; box-shadow: 0 24px 70px rgba(0,0,0,.55); z-index: 50; }
.guild-option { width: 100%; border: 0; border-radius: 3px; background: transparent; color: var(--text); padding: 9px; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.guild-option:hover { background: rgba(231,183,75,.07); }
.guild-option small { color: var(--muted); margin-left: auto; font: 8px var(--mono); }
.guild-option.offline { opacity: .55; }
.side-nav { margin-top: 26px; display: flex; flex-direction: column; gap: 3px; }
.side-nav p { margin: 21px 10px 8px; color: var(--muted-2); font: 8px var(--mono); letter-spacing: .18em; }
.nav-item { height: 40px; border: 1px solid transparent; border-radius: 4px; padding: 0 10px; display: flex; align-items: center; gap: 12px; color: #8f9991; background: transparent; cursor: pointer; font-size: 13px; font-weight: 500; text-align: left; transition: .18s; }
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.025); }
.nav-item.active { color: var(--text); background: rgba(231,183,75,.075); border-color: rgba(231,183,75,.12); }
.nav-item.active .nav-icon { color: var(--acid); }
.nav-icon { width: 18px; text-align: center; font: 17px var(--mono); color: #59625b; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 17px 8px 0; }
.api-health { display: flex; align-items: center; }
.api-health > span { flex: none; margin-left: 2px; }
.api-health div { display: flex; flex-direction: column; }
.api-health b { font-size: 10px; }
.api-health small { color: var(--muted); font: 8px var(--mono); margin-top: 3px; }
.text-button { color: var(--muted); background: none; border: 0; padding: 13px 0 0; font: 9px var(--mono); cursor: pointer; }
.text-button:hover { color: var(--red); }

.main { grid-column: 2; min-width: 0; }
.topbar { height: 84px; padding: 0 40px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: rgba(7,9,11,.88); backdrop-filter: blur(24px); z-index: 20; }
.topbar p { margin: 0 0 6px; color: var(--muted-2); font: 8px var(--mono); letter-spacing: .15em; }
.topbar h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.top-actions { display: flex; align-items: center; gap: 20px; }
.live-clock { display: flex; align-items: center; gap: 5px; padding-right: 20px; border-right: 1px solid var(--line); }
.live-clock > .clock-prefix { width: auto; height: auto; margin: 0 5px 0 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--acid); font: 9px var(--mono); letter-spacing: -.12em; animation: none; }
.live-clock b { font: 11px var(--mono); }
.live-clock small { color: var(--muted); font: 8px var(--mono); }
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #202720; border: 1px solid var(--line); background-size: cover; }
.user-chip div { display: flex; flex-direction: column; }
.user-chip b { font-size: 10px; }
.user-chip small { color: var(--muted); font: 8px var(--mono); margin-top: 3px; }
.mobile-menu { display: none; background: none; border: 0; color: var(--text); font-size: 20px; }
.content { max-width: 1440px; margin: auto; padding: 38px 40px 84px; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.section-head h3 { margin: 0 0 8px; font-size: 28px; font-weight: 600; letter-spacing: -.025em; }
.section-head p { margin: 0; color: #9ba59d; font-size: 14px; line-height: 1.6; }
.section-actions { display: flex; gap: 9px; }
.button { border: 1px solid var(--line); border-radius: 4px; min-height: 40px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--panel-2); color: var(--text); font-size: 11px; font-weight: 600; cursor: pointer; transition: .16s; }
.button:hover { border-color: var(--line-hot); transform: translateY(-1px); }
.button.primary { background: var(--acid); color: #071005; border-color: var(--acid); }
.button.danger { color: var(--red); border-color: rgba(255,97,95,.25); background: rgba(255,97,95,.06); }
.button:disabled { opacity: .45; cursor: wait; transform: none; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card { min-height: 142px; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); position: relative; overflow: hidden; }
.stat-card::before { content: ""; position: absolute; inset: -1px auto auto 22px; width: 38px; border-top: 2px solid var(--acid); }
.stat-card::after { display: none; }
.stat-card > small { color: var(--muted); font: 8px var(--mono); letter-spacing: .12em; }
.stat-card strong { display: block; margin: 25px 0 8px; font-size: 31px; font-weight: 600; line-height: 1; letter-spacing: -.035em; }
.stat-card span { color: var(--muted); font-size: 11px; }
.stat-card.acid strong { color: var(--acid); }
.stat-card.cyan strong { color: var(--cyan); }
.stat-card.violet strong { color: var(--violet); }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; margin-top: 18px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(13,17,20,.84); overflow: hidden; }
.panel-head { height: 60px; padding: 0 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.panel-head h4 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.panel-head small { color: var(--muted); font: 8px var(--mono); }
.panel-body { padding: 22px; }
.security-score { min-height: 290px; display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: 25px; }
.score-ring { width: 180px; height: 180px; margin: auto; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--acid) var(--score, 0%), #182019 0); }
.score-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #0d1210; border: 1px solid var(--line); }
.score-ring div { position: relative; text-align: center; display: flex; flex-direction: column; }
.score-ring strong { font-size: 38px; letter-spacing: -.07em; }
.score-ring span { color: var(--muted); font: 8px var(--mono); letter-spacing: .1em; }
.health-list { display: flex; flex-direction: column; }
.health-row { padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.health-row:last-child { border-bottom: 0; }
.health-row span { color: var(--muted); font-size: 10px; }
.health-row b { font: 10px var(--mono); }
.health-row b.ok { color: var(--acid); }
.mini-activity { display: flex; flex-direction: column; }
.activity-row { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.activity-row:last-child { border-bottom: 0; }
.activity-row > i { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 9px rgba(231,183,75,.4); }
.activity-row div { display: flex; flex-direction: column; }
.activity-row b { font-size: 10px; }
.activity-row small { color: var(--muted); margin-top: 4px; font: 8px var(--mono); }
.activity-row time { color: var(--muted-2); font: 8px var(--mono); }

.system-pill span, .api-health > span, .activity-row > i {
  width: 8px;
  height: 8px;
  flex: none;
  border: 1px solid var(--acid);
  border-radius: 1px;
  background: transparent;
  box-shadow: none;
  transform: rotate(45deg);
  animation: none;
}
.system-pill span { margin-right: 10px; }
.api-health > span { margin: 0 13px 0 2px; }
.activity-row > i { margin-left: 1px; }
.orbit::before, .orbit::after { border-radius: 1px; transform: rotate(45deg); box-shadow: 0 0 9px rgba(231,183,75,.35); }

.analytics-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; margin-top: 18px; }
.analytics-lower { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 18px; margin-top: 18px; }
.chart-summary { display: flex; gap: 32px; margin-bottom: 12px; }
.chart-summary div { display: flex; flex-direction: column; }
.chart-summary strong { font-size: 19px; letter-spacing: -.04em; }
.chart-summary span { margin-top: 3px; color: var(--muted); font: 8px var(--mono); text-transform: uppercase; }
.bar-chart { height: 220px; display: flex; align-items: stretch; gap: 6px; padding-top: 22px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0, transparent 54px, rgba(255,255,255,.035) 55px); }
.bar-column { min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.bar-column i { width: min(22px, 72%); min-height: 2px; background: linear-gradient(to top, #8c5c18, var(--acid)); border-radius: 3px 3px 0 0; box-shadow: 0 -8px 20px rgba(231,183,75,.07); }
.bar-column small { height: 28px; padding-top: 8px; color: var(--muted-2); font: 7px var(--mono); white-space: nowrap; }
.bar-value { height: 16px; color: var(--muted); font: 7px var(--mono); }
.movement-legend { height: 29px; display: flex; justify-content: flex-end; gap: 14px; color: var(--muted); font: 8px var(--mono); }
.movement-legend span { display: flex; align-items: center; gap: 6px; }
.movement-legend i { width: 7px; height: 7px; display: inline-block; border-radius: 1px; }
.movement-legend .join, .movement-column i.join { background: var(--acid); }
.movement-legend .leave, .movement-column i.leave { background: #8c6941; }
.movement-chart { height: 235px; display: flex; align-items: stretch; gap: 4px; padding-top: 15px; border-bottom: 1px solid var(--line); }
.movement-column { min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.movement-column > div { height: 180px; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.movement-column i { width: min(8px, 38%); min-height: 1px; border-radius: 2px 2px 0 0; }
.movement-column small { height: 28px; padding-top: 8px; color: var(--muted-2); font: 6px var(--mono); white-space: nowrap; }
.analytics-table { padding: 6px 18px 12px; }
.analytics-table-row { min-height: 43px; display: grid; grid-template-columns: 1.3fr repeat(4, .7fr); align-items: center; gap: 8px; border-bottom: 1px solid var(--line); font: 9px var(--mono); }
.analytics-table-row:last-child { border-bottom: 0; }
.analytics-table-row.head { min-height: 34px; color: var(--muted-2); font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.analytics-table-row b { color: #adb5ae; font-weight: 500; }
.analytics-table-row span { text-align: right; color: var(--muted); }
.analytics-table-row .positive { color: var(--acid); }
.analytics-table-row .negative { color: #bb8a60; }
.ranking-list { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 8px; }
.ranking-row { min-height: 48px; display: grid; grid-template-columns: 27px 1fr auto auto; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); }
.ranking-row:last-child { border-bottom: 0; }
.ranking-row > b { color: var(--muted-2); font: 8px var(--mono); }
.ranking-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.ranking-row > strong { color: var(--acid); font: 10px var(--mono); }
.ranking-row > small { color: var(--muted-2); font: 7px var(--mono); }
.empty.compact { min-height: 170px; }

.guard-grid { display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 16px; }
.guard-card { min-height: 132px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); display: flex; flex-direction: column; justify-content: space-between; transition: .18s; }
.guard-card:hover { border-color: rgba(255,255,255,.14); transform: translateY(-1px); }
.guard-card.enabled { border-color: rgba(231,183,75,.18); background: linear-gradient(145deg, rgba(231,183,75,.045), rgba(13,17,20,.95)); }
.guard-card-head { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.guard-card h4 { margin: 0 0 7px; font-size: 12px; }
.guard-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.guard-card-foot { display: flex; align-items: center; justify-content: space-between; }
.guard-state { font: 8px var(--mono); color: var(--muted); }
.enabled .guard-state { color: var(--acid); }
.switch { width: 38px; height: 21px; border: 0; border-radius: 99px; background: #2a302c; padding: 3px; cursor: pointer; transition: .2s; }
.switch::after { content: ""; display: block; width: 15px; height: 15px; border-radius: 50%; background: #788078; transition: .2s; }
.switch.on { background: var(--acid); }
.switch.on::after { background: #171006; transform: translateX(17px); }

.policy-tabs { display: flex; gap: 1px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 16px; }
.policy-tab { white-space: nowrap; border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 3px; padding: 10px 14px; cursor: pointer; font: 10px var(--mono); }
.policy-tab.active { color: #130d05; background: linear-gradient(135deg, #f0c75d, #b77a22); border-color: var(--acid); }
.policy-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 24px; }
.form-card h4 { margin: 0 0 5px; font-size: 13px; }
.form-card > p { margin: 0 0 20px; color: #b4bcb5; font-size: 13px; font-weight: 500; line-height: 1.65; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #c2c9c3; font: 600 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 4px; background: #090d0f; color: var(--text); padding: 12px 13px; outline: none; font-size: 12px; transition: .17s; }
.field textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--line-hot); box-shadow: 0 0 0 3px rgba(231,183,75,.045); }
.field small { color: #acb5ae; font: 500 11px/1.6 var(--mono); letter-spacing: .01em; }
.form-footer { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 9px; }
.channel-checks { max-height: 370px; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 7px; color: #c0c7c1; font-size: 11px; cursor: pointer; }
.check-row:hover { background: rgba(255,255,255,.025); }
.check-row input { appearance: none; width: 16px; height: 16px; border: 1px solid #39423b; border-radius: 4px; display: grid; place-items: center; }
.check-row input:checked { background: var(--acid); border-color: var(--acid); }
.check-row input:checked::after { content: "✓"; color: #081006; font: 11px var(--mono); font-weight: 800; }

.log-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.log-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 20px; display: grid; grid-template-columns: 38px 1fr; gap: 15px; align-items: center; }
.log-icon { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 3px; display: grid; place-items: center; color: var(--acid); font: 17px var(--mono); }
.log-card h4 { margin: 0 0 9px; font-size: 11px; }
.log-card select { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 4px 0 7px; background: transparent; color: var(--muted); font-size: 10px; outline: none; }

.whitelist-layout { display: grid; grid-template-columns: 1fr .72fr; gap: 18px; }
.wl-list { display: flex; flex-direction: column; }
.wl-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; padding: 15px 2px; border-bottom: 1px solid var(--line); align-items: center; }
.wl-row:last-child { border-bottom: 0; }
.wl-badge { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: rgba(231,183,75,.07); color: var(--acid); border: 1px solid rgba(231,183,75,.13); font: 15px var(--mono); }
.wl-copy b { display: block; font-size: 11px; margin-bottom: 5px; }
.wl-copy small { color: var(--muted); font: 8px var(--mono); }
.limit-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.limit-pill { padding: 3px 6px; border-radius: 4px; background: #171d19; color: #99a29a; font: 7px var(--mono); }
.icon-button { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 7px; border: 1px solid var(--line); color: var(--muted); background: transparent; cursor: pointer; }
.icon-button:hover { color: var(--red); border-color: rgba(255,97,95,.25); }
.empty { min-height: 220px; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 11px; }
.empty b { display: block; color: var(--text); font-size: 13px; margin-bottom: 6px; }

.automation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.module-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.module-title { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.module-title div { display: flex; align-items: center; gap: 10px; }
.module-title i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 3px; border: 1px solid var(--line); color: var(--acid); font-style: normal; }
.module-title h4 { margin: 0; font-size: 11px; }
.module-body { padding: 17px; }

.register-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 18px; align-items: start; }
.register-config { padding: 24px; }
.register-state { min-height: 58px; margin: -4px 0 24px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; display: flex; align-items: center; gap: 13px; background: #090d0f; }
.register-state > span { width: 9px; height: 9px; flex: none; border: 1px solid var(--muted-2); transform: rotate(45deg); }
.register-state.on > span { border-color: var(--acid); background: var(--acid); box-shadow: 0 0 14px rgba(231,183,75,.28); }
.register-state div { display: flex; flex-direction: column; }
.register-state b { font-size: 12px; }
.register-state small { margin-top: 4px; color: var(--muted); font: 8px var(--mono); }
.field label span { margin-left: 5px; color: var(--muted-2); font-size: 7px; }
.register-actions { justify-content: space-between; }
.register-preview-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.register-preview-copy { padding: 22px 22px 18px; }
.register-preview-copy small { color: var(--muted-2); font: 8px var(--mono); letter-spacing: .13em; }
.register-preview-copy h4 { margin: 10px 0 6px; font-size: 18px; font-weight: 600; }
.register-preview-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.register-preview-card > img { width: 100%; aspect-ratio: 3 / 1; display: block; object-fit: cover; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.register-choice-preview { padding: 14px 22px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.register-choice-preview button { height: 38px; border: 1px solid rgba(231,183,75,.24); border-radius: 4px; color: #d9dcd6; background: #111517; font: 600 10px var(--sans); }
.register-choice-preview button:last-child { background: linear-gradient(135deg, rgba(231,183,75,.16), rgba(119,78,19,.08)); }
.register-publish { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.register-publish .button { white-space: nowrap; }

.skeleton { position: relative; overflow: hidden; background: #121714; border-radius: 8px; min-height: 80px; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent); transform: translateX(-100%); animation: shimmer 1.2s infinite; }
.loading-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.toast-stack { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast { min-width: 270px; max-width: 390px; padding: 13px 15px; border: 1px solid var(--line); border-left: 3px solid var(--acid); border-radius: 4px; background: #111714; box-shadow: 0 18px 50px rgba(0,0,0,.45); color: #dbe1db; font-size: 11px; animation: toast-in .22s ease; }
.toast.error { border-left-color: var(--red); }
.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(2,3,4,.8); backdrop-filter: blur(10px); }
.modal { width: min(690px, 100%); max-height: 90vh; overflow-y: auto; background: #0c1110; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 35px 100px rgba(0,0,0,.6); }
.modal-head { padding: 19px 21px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; font-size: 14px; }
.modal-body { padding: 21px; }
.modal-close { color: var(--muted); background: none; border: 0; cursor: pointer; font-size: 18px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; box-shadow: 0 0 3px var(--acid); } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1120px) {
  .guard-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .whitelist-layout { grid-template-columns: 1fr; }
  .analytics-grid, .analytics-lower { grid-template-columns: 1fr; }
  .register-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { min-height: 650px; }
  .sidebar { transform: translateX(-100%); transition: .22s ease; box-shadow: 20px 0 70px rgba(0,0,0,.5); }
  .sidebar.open { transform: translateX(0); }
  .dashboard { grid-template-columns: 1fr; }
  .main { grid-column: 1; }
  .mobile-menu { display: block; }
  .topbar { padding: 0 20px; }
  .content { padding: 25px 20px 60px; }
  .policy-layout, .automation-grid { grid-template-columns: 1fr; }
  .register-publish { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .login-screen { padding: 0 22px; }
  .system-pill { display: none; }
  .hero h1 { font-size: 54px; }
  .hero-metrics { grid-template-columns: 1fr; gap: 15px; }
  .hero-metrics div { padding-bottom: 12px; }
  .top-actions .user-chip div, .live-clock { display: none; }
  .section-head { align-items: start; flex-direction: column; }
  .stat-grid, .guard-grid, .log-grid { grid-template-columns: 1fr; }
  .security-score { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .content { padding-left: 14px; padding-right: 14px; }
  .register-choice-preview { grid-template-columns: 1fr; }
}


