/* ============================================================
   REFLECTORHOST — GLOBAL DARK MODE DESIGN SYSTEM
   Unified layout across all pages
   Nav + Shell + Header + Body + Footer
   ============================================================ */

/* ------------------------------------------------------------
   ROOT VARIABLES
   ------------------------------------------------------------ */
:root {
  --bg: #050711;
  --bg-alt: #0b0f1f;
  --accent: #4ade80;
  --accent-soft: rgba(74, 222, 128, 0.12);
  --accent-strong: rgba(74, 222, 128, 0.35);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --danger: #f97373;
}

/* ------------------------------------------------------------
   GLOBAL RESET
   ------------------------------------------------------------ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
  gap: 1rem;
}

/* ------------------------------------------------------------
   NAVIGATION BAR
   ------------------------------------------------------------ */
.nav {
  width: 100%;
  max-width: 960px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  background: rgba(5, 7, 17, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 0 1px rgba(74,222,128,0.04);
  position: relative;
  overflow: hidden;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(74,222,128,0.06) 0%, transparent 40%);
  pointer-events: none;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
}

.nav-group.right {
  flex: none;
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: rgba(55, 65, 81, 0.8);
  margin: 0 0.35rem;
  flex-shrink: 0;
}

.nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
  z-index: 1;
}

.nav-btn:hover {
  color: var(--text-main);
  background: rgba(255,255,255,0.05);
  border-color: rgba(148, 163, 184, 0.15);
}

.nav-btn.active {
  color: var(--accent);
  background: rgba(74, 222, 128, 0.09);
  border-color: rgba(74, 222, 128, 0.22);
}

.nav-btn .nav-icon {
  width: 15px;
  height: 15px;
  opacity: 0.75;
  flex-shrink: 0;
}

.nav-btn.active .nav-icon {
  opacity: 1;
}

.nav-badge {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.1rem 0.38rem;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.18);
  color: var(--accent);
  border: 1px solid rgba(74, 222, 128, 0.3);
  line-height: 1.4;
}

.nav-btn.nav-cta {
  background: radial-gradient(circle at 0 0, rgba(74,222,128,0.3), rgba(22,163,74,0.85));
  border-color: rgba(34, 197, 94, 0.7);
  color: #022c22;
  font-weight: 600;
  box-shadow: 0 0 14px rgba(34,197,94,0.35);
}

.nav-btn.nav-cta:hover {
  background: radial-gradient(circle at 0 0, rgba(74,222,128,0.45), rgba(22,163,74,1));
  box-shadow: 0 0 20px rgba(34,197,94,0.55);
  color: #011a14;
}

@media (max-width: 700px) {
  .nav { overflow-x: auto; flex-wrap: nowrap; }
  .nav-group { flex-shrink: 0; }
  .nav-label { display: none; }
}

/* ------------------------------------------------------------
   SHELL LAYOUT (USED ON EVERY PAGE)
   ------------------------------------------------------------ */
.shell {
  width: 100%;
  max-width: 960px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow:
    0 24px 80px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  overflow: hidden;
  position: relative;
}

.shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle at 0 0, rgba(74, 222, 128, 0.18), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* ------------------------------------------------------------
   HEADER (USED ON EVERY PAGE)
   ------------------------------------------------------------ */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem 1rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 20%, #bbf7d0 0, transparent 55%),
    radial-gradient(circle at 70% 80%, #22c55e 0, transparent 55%),
    radial-gradient(circle at 50% 50%, #16a34a 0, #052e16 65%);
  position: relative;
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.5),
    0 0 18px rgba(34, 197, 94, 0.7);
}

.logo::before,
.logo::after {
  content: "";
  position: absolute;
  inset: 50%;
  border-radius: inherit;
  border: 1px solid rgba(187, 247, 208, 0.7);
  transform: translate(-50%, -50%);
}

.logo::before {
  width: 170%;
  height: 170%;
  opacity: 0.35;
}

.logo::after {
  width: 230%;
  height: 230%;
  opacity: 0.18;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-pill {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.9);
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.9);
}

.status-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  color: var(--accent);
}

.status-divider {
  width: 1px;
  height: 18px;
  background: rgba(55, 65, 81, 0.9);
}

.status-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: right;
}

.status-meta span:first-child {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.status-meta span:last-child {
  font-size: 0.8rem;
  color: var(--text-main);
}
/* ------------------------------------------------------------
   BODY GRID (CONTINUED)
   ------------------------------------------------------------ */

.status-meta span:last-child {
  font-size: 0.8rem;
  color: var(--text-main);
}

/* ------------------------------------------------------------
   BODY GRID (USED ON EVERY PAGE)
   ------------------------------------------------------------ */
.body {
  padding: 1.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 800px) {
  .body {
    grid-template-columns: minmax(0, 1fr);
  }
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .header-right {
    align-self: stretch;
    justify-content: space-between;
  }
}

/* ------------------------------------------------------------
   HERO SECTION
   ------------------------------------------------------------ */
.hero {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(to right, rgba(74, 222, 128, 0.1), var(--accent));
}

.title {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1.2;
  font-weight: 600;
}

.title span {
  color: var(--accent);
}

.subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* ------------------------------------------------------------
   META PILLS
   ------------------------------------------------------------ */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.meta-pill {
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.35rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.meta-pill span.key {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.meta-pill span.value {
  font-size: 0.75rem;
  color: var(--text-main);
}

.meta-pill span.dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

/* ------------------------------------------------------------
   SIDE PANEL AREA
   ------------------------------------------------------------ */
.side {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* ------------------------------------------------------------
   PANEL (RIGHT SIDE)
   ------------------------------------------------------------ */
.panel {
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), rgba(15, 23, 42, 0.98));
  padding: 1rem 1.1rem;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 0 0, rgba(74, 222, 128, 0.16), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
  position: relative;
  z-index: 1;
}

.panel-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.panel-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.7);
  color: var(--accent);
  background: rgba(5, 46, 22, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.panel-body {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.signal-label {
  font-size: 0.75rem;
  color: var(--text-main);
}

.signal-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
}

.signal-bars span {
  width: 3px;
  border-radius: 999px;
  background: rgba(55, 65, 81, 0.9);
}

.signal-bars span:nth-child(1) { height: 6px; }
.signal-bars span:nth-child(2) { height: 9px; }
.signal-bars span:nth-child(3) { height: 13px; }
.signal-bars span:nth-child(4) {
  height: 18px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.9);
}

.divider {
  height: 1px;
  background: rgba(31, 41, 55, 0.9);
  margin: 0.5rem 0;
}

.kv-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.kv-row span.key {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.65rem;
}

.kv-row span.value {
  color: var(--text-main);
  font-size: 0.78rem;
}

/* ------------------------------------------------------------
   NOTICE BOX
   ------------------------------------------------------------ */
.notice {
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.8rem 0.9rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.notice strong {
  color: var(--text-main);
  font-weight: 500;
}

.pill-inline {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.15rem 0.55rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.footer {
  padding: 0.9rem 1.75rem 1.1rem;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.footer span {
  opacity: 0.9;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------
   BUTTONS (PRIMARY + SECONDARY)
   ------------------------------------------------------------ */
.btn-primary {
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.9);
  background: radial-gradient(circle at 0 0, rgba(74, 222, 128, 0.35), rgba(22, 163, 74, 0.95));
  color: #022c22;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow:
    0 0 18px rgba(34, 197, 94, 0.7),
    0 10px 30px rgba(15, 23, 42, 0.9);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 22px rgba(34, 197, 94, 0.9),
    0 16px 40px rgba(15, 23, 42, 0.95);
  background: radial-gradient(circle at 0 0, rgba(190, 242, 100, 0.45), rgba(22, 163, 74, 1));
}

.btn-secondary {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  font-size: 0.8rem;
  padding: 0.55rem 1.2rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(209, 213, 219, 0.9);
  transform: translateY(-1px);
}

.btn-secondary span.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.9);
}

/* ------------------------------------------------------------
   FORM ELEMENTS
   ------------------------------------------------------------ */
input,
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 1);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}

label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
  display: block;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

/* Validation states */
.input-error {
  border-color: var(--danger) !important;
  background: rgba(255, 0, 0, 0.08) !important;
}

.error-text {
  color: var(--danger);
  font-size: 0.75rem;
  margin-top: -0.25rem;
}

.success-box,
.error-box {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.success-box {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: var(--accent);
}

.error-box {
  background: rgba(249, 115, 115, 0.15);
  border: 1px solid rgba(249, 115, 115, 0.4);
  color: var(--danger);
}

/* ------------------------------------------------------------
   UTILITY CLASSES
   ------------------------------------------------------------ */
.flex { display: flex; }
.grid { display: grid; }
.center { display: flex; justify-content: center; align-items: center; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }

.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }

/* ------------------------------------------------------------
   END OF REFLECTORHOST GLOBAL STYLES
   ------------------------------------------------------------ */
