/* guardian-app.css — unified Guardian Console shell (matched to site palette) */
:root {
  --ga-bg: #0a0b0d;
  --ga-bg2: #12151c;
  --ga-panel: rgba(18, 21, 28, 0.92);
  --ga-panel-soft: rgba(18, 21, 28, 0.78);
  --ga-line: rgba(30, 35, 48, 0.95);
  --ga-text: #ffffff;
  --ga-muted: #8a919e;
  --ga-cyan: #0052ff;
  --ga-violet: #578bff;
  --ga-teal: #2667ff;
  --ga-green: #0fae6e;
  --ga-amber: #ffbe50;
  --ga-sidebar: 248px;
  --ga-topbar: 56px;
  --ga-bottom: 64px;
  --ga-radius: 16px;
  --ga-display: 'Sora', system-ui, sans-serif;
  --ga-body: 'Inter', system-ui, sans-serif;
  --ga-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body.ga-app {
  font-family: var(--ga-body);
  color: var(--ga-text);
  background:
    radial-gradient(ellipse 90% 55% at 78% -8%, rgba(0, 82, 255, 0.14), transparent 52%),
    radial-gradient(ellipse 80% 50% at 8% 12%, rgba(38, 103, 255, 0.1), transparent 48%),
    radial-gradient(ellipse 70% 45% at 92% 42%, rgba(15, 174, 110, 0.05), transparent 46%),
    radial-gradient(circle at 40% 100%, rgba(0, 82, 255, 0.06), transparent 42%),
    linear-gradient(180deg, #0f1218 0%, #0a0b0d 42%, #0c1018 100%);
  overflow: hidden;
}

.ga-shell {
  display: grid;
  grid-template-columns: var(--ga-sidebar) 1fr;
  grid-template-rows: var(--ga-topbar) 1fr;
  height: 100dvh;
  min-height: 100vh;
}

.ga-brandbar {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ga-line);
  background: linear-gradient(180deg, rgba(18, 21, 28, 0.96), rgba(10, 11, 13, 0.98));
  padding: 18px 14px 16px;
  overflow: hidden;
}

.ga-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 18px;
  text-decoration: none;
  color: inherit;
}
.ga-brand-orb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: none;
  background: url('/cyre-token-icon-128.png') center/cover no-repeat;
  border: 1px solid rgba(0, 82, 255, 0.42);
  box-shadow: 0 0 16px rgba(0, 82, 255, 0.45), 0 0 28px rgba(87, 139, 255, 0.32);
}
.ga-brand strong {
  font: 800 15px/1 var(--ga-display);
  letter-spacing: 0.12em;
}
.ga-brand small {
  display: block;
  font: 500 10px/1.3 var(--ga-mono);
  letter-spacing: 0.14em;
  color: var(--ga-muted);
  margin-top: 2px;
}

.ga-nav {
  flex: 1;
  overflow-y: auto;
  padding-right: 2px;
}
.ga-nav-group { margin-bottom: 18px; }
.ga-nav-label {
  font: 600 10px/1 var(--ga-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ga-muted);
  padding: 0 10px 8px;
}
.ga-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ga-muted);
  font: 500 14px/1.2 var(--ga-body);
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.ga-nav-item:hover { background: rgba(0, 82, 255, 0.1); color: var(--ga-text); }
.ga-nav-item.is-active {
  background: linear-gradient(90deg, rgba(0, 82, 255, 0.18), rgba(38, 103, 255, 0.12));
  color: var(--ga-text);
  box-shadow: inset 0 0 0 1px rgba(0, 82, 255, 0.28);
}
.ga-nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.04);
  flex: none;
}
.ga-nav-item.is-active .ga-nav-icon { background: rgba(0, 82, 255, 0.16); }

.ga-sidebar-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(176, 148, 255, 0.16);
  font-size: 11px;
  line-height: 1.55;
  color: var(--ga-muted);
}

.ga-topbar {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--ga-line);
  background: rgba(16, 8, 36, 0.78);
  backdrop-filter: blur(14px);
}
.ga-topbar h1 {
  margin: 0;
  font: 700 1rem/1.2 var(--ga-display);
  letter-spacing: 0.01em;
}
.ga-topbar p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ga-muted);
}
.ga-live {
  margin-left: auto;
  font: 500 11px/1 var(--ga-mono);
  letter-spacing: 0.05em;
  color: var(--ga-muted);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 82, 255, 0.22);
  background: rgba(18, 10, 36, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.ga-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ga-muted);
}
.ga-live.is-live { color: #eefaff; border-color: rgba(61, 220, 132, 0.35); }
.ga-live.is-live::before {
  background: #14F195;
  box-shadow: 0 0 10px rgba(20, 241, 149, 0.75), 0 0 18px rgba(153, 69, 255, 0.35);
}

.ga-main {
  grid-column: 2;
  grid-row: 2;
  overflow: hidden;
  position: relative;
  min-height: 0;
}

.ga-view {
  position: absolute;
  inset: 0;
  display: none;
  overflow: auto;
}
.ga-view.is-active { display: block; }

.ga-dashboard {
  padding: 22px 22px 28px;
  max-width: 980px;
}

.ga-hero-card {
  border-radius: 22px;
  padding: 24px 24px 22px;
  border: 1px solid rgba(176, 148, 255, 0.26);
  background: linear-gradient(145deg, rgba(24, 28, 38, 0.94), rgba(12, 14, 20, 0.92));
  box-shadow: 0 0 40px rgba(0, 82, 255, 0.08), 0 18px 40px rgba(0, 0, 0, 0.28);
  margin-bottom: 20px;
}
.ga-hero-card .kicker {
  font: 600 10px/1 var(--ga-mono);
  letter-spacing: 0.18em;
  color: var(--ga-cyan);
  margin-bottom: 8px;
}
.ga-hero-card h2 {
  margin: 0 0 8px;
  font: 800 clamp(1.4rem, 4vw, 2rem)/1.1 var(--ga-display);
}
.ga-hero-card h2 span { color: var(--ga-cyan); }
.ga-hero-card > p {
  margin: 0 0 18px;
  color: var(--ga-muted);
  line-height: 1.65;
  max-width: 58ch;
  font-size: 14px;
}

.ga-quick {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ga-quick input {
  flex: 1 1 240px;
  min-width: 0;
  background: rgba(12, 8, 28, 0.92);
  border: 1px solid rgba(0, 82, 255, 0.26);
  border-radius: 999px;
  padding: 13px 18px;
  color: var(--ga-text);
  font: 500 13px/1 var(--ga-mono);
  outline: none;
}
.ga-quick input:focus { border-color: var(--ga-cyan); box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.12); }
.ga-quick button {
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font: 700 14px/1 var(--ga-display);
  color: #ffffff;
  background: linear-gradient(90deg, #0052ff, #2667ff);
  box-shadow: 0 0 22px rgba(0, 82, 255, 0.35);
  cursor: pointer;
}
.ga-quick-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ga-muted);
}

.ga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.ga-card {
  border: 1px solid var(--ga-line);
  border-radius: var(--ga-radius);
  padding: 16px;
  background: var(--ga-panel-soft);
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.ga-card:hover {
  border-color: rgba(0, 82, 255, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0, 82, 255, 0.1);
}
.ga-card .tag {
  font: 600 10px/1 var(--ga-mono);
  letter-spacing: 0.12em;
  color: var(--ga-cyan);
  margin-bottom: 8px;
  display: block;
}
.ga-card h3 {
  margin: 0 0 6px;
  font: 700 1rem/1.2 var(--ga-display);
}
.ga-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ga-muted);
}

.ga-frame-wrap {
  position: absolute;
  inset: 0;
  background: #0a0518;
}
.ga-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #0a0518;
}

.ga-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  height: var(--ga-bottom);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ga-line);
  background: rgba(16, 8, 36, 0.96);
  backdrop-filter: blur(14px);
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.ga-bottom-nav button {
  border: 0;
  background: transparent;
  color: var(--ga-muted);
  font: 600 10px/1.2 var(--ga-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 10px;
  cursor: pointer;
}
.ga-bottom-nav button span.icon { font-size: 18px; line-height: 1; }
.ga-bottom-nav button.is-active {
  color: var(--ga-cyan);
  background: rgba(0, 82, 255, 0.12);
}

.ga-more-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}
.ga-more-sheet.is-open { display: flex; }
.ga-more-panel {
  width: min(480px, 100%);
  max-height: 72dvh;
  overflow: auto;
  border-radius: 20px 20px 0 0;
  border: 1px solid var(--ga-line);
  background: #12082a;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}
.ga-more-panel h3 {
  margin: 0 0 12px;
  font: 700 1rem/1.2 var(--ga-display);
}
.ga-more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.ga-more-grid button {
  border: 1px solid var(--ga-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ga-text);
  padding: 12px;
  text-align: left;
  cursor: pointer;
  font: 600 13px/1.2 var(--ga-body);
}
.ga-more-grid button small {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  font-size: 11px;
  color: var(--ga-muted);
}

@media (max-width: 860px) {
  .ga-shell {
    grid-template-columns: 1fr;
    grid-template-rows: var(--ga-topbar) 1fr var(--ga-bottom);
  }
  .ga-brandbar { display: none; }
  .ga-topbar { grid-column: 1; grid-row: 1; padding: 0 14px; }
  .ga-main {
    grid-column: 1;
    grid-row: 2;
    padding-bottom: 0;
  }
  .ga-bottom-nav { display: grid; }
  .ga-live { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
