/* ==========================================================
   GRIDMANIAC — Static & Comms Pages Stylesheet
   Theme: High-Tech Cyberpunk / Dark Tactical Grid HUD
   ========================================================== */

:root {
  --bg: #04060d;
  --bg-deep: #020308;
  --panel: rgba(10, 16, 32, 0.72);
  --panel-strong: rgba(8, 12, 26, 0.92);
  --panel-card: rgba(13, 22, 45, 0.65);
  --panel-hover: rgba(20, 36, 70, 0.82);
  --line: rgba(56, 243, 255, 0.18);
  --line-strong: rgba(56, 243, 255, 0.45);
  --cyan: #38f3ff;
  --cyan-soft: rgba(56, 243, 255, 0.28);
  --cyan-glow: rgba(56, 243, 255, 0.5);
  --magenta: #ff3df2;
  --magenta-soft: rgba(255, 61, 242, 0.25);
  --amber: #ffb640;
  --amber-soft: rgba(255, 182, 64, 0.25);
  --red: #ff3d5a;
  --green: #7dff8c;
  --text: #e6f4ff;
  --text-bright: #ffffff;
  --muted: #8ea6c4;
  --muted-dark: #4b6282;
  --font-display: 'Orbitron', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 6px;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Global Reset & Body ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(56, 243, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 40%, rgba(255, 61, 242, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(56, 243, 255, 0.04) 0%, transparent 50%),
    linear-gradient(rgba(56, 243, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 243, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  background-position: 0 0, 0 0, 0 0, -1px -1px, -1px -1px;
}

/* Subtle CRT Scanline overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.12),
    rgba(0, 0, 0, 0.12) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 999;
  opacity: 0.6;
}

/* Links */
a {
  color: var(--cyan);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--cyan);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-bright);
}

/* ---------- Cyber Header & Navigation ---------- */
.cyber-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 6, 13, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand-logo-hex {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(56, 243, 255, 0.08);
  border: 1px solid var(--cyan);
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(56, 243, 255, 0.3), inset 0 0 8px rgba(56, 243, 255, 0.2);
  transition: var(--transition);
}
.brand-wrap:hover .brand-logo-hex {
  transform: rotate(45deg);
  box-shadow: 0 0 25px var(--cyan);
}
.brand-logo-hex svg {
  width: 22px;
  height: 22px;
  transition: var(--transition);
}
.brand-wrap:hover .brand-logo-hex svg {
  transform: rotate(-45deg);
}

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

.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #fff;
  line-height: 1;
}
.brand-title span {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(56, 243, 255, 0.6);
}

.brand-tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Navigation items */
.cyber-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--cyan);
  background: rgba(56, 243, 255, 0.06);
  border-color: var(--line);
  box-shadow: 0 0 12px rgba(56, 243, 255, 0.2);
}

.nav-link.active {
  color: #fff;
  background: rgba(56, 243, 255, 0.12);
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(56, 243, 255, 0.35);
}

.nav-link.play-cta {
  background: linear-gradient(135deg, rgba(56, 243, 255, 0.2), rgba(255, 61, 242, 0.2));
  color: #fff;
  border-color: var(--cyan);
  padding: 0.5rem 1.1rem;
}
.nav-link.play-cta:hover {
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  color: #04060d;
  font-weight: 900;
  box-shadow: 0 0 20px rgba(56, 243, 255, 0.7);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cyan);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* ---------- Main Layout Containers ---------- */
.page-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.hero-banner {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cyan);
  background: rgba(56, 243, 255, 0.08);
  border: 1px solid var(--line);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  box-shadow: 0 0 15px rgba(56, 243, 255, 0.15);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 0 25px rgba(56, 243, 255, 0.35);
}
.hero-title span {
  color: var(--cyan);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
  font-weight: 500;
}

/* ---------- Cyber Panels & Cards ---------- */
.cyber-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 2.2rem;
  margin-bottom: 2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.cyber-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.cyber-panel::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--magenta);
  box-shadow: 0 0 10px var(--magenta);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.panel-title-icon {
  color: var(--cyan);
}

.panel-badge {
  font-family: var(--font-display);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(56, 243, 255, 0.1);
  border: 1px solid var(--line);
  color: var(--cyan);
  letter-spacing: 0.1em;
}

/* ---------- Grid Layouts ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
  margin-bottom: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.feature-card {
  background: var(--panel-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: var(--transition);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 10px 30px rgba(56, 243, 255, 0.2);
  background: var(--panel-hover);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.card-title {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.card-desc {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Tactical Specs / Key-Value ---------- */
.tactical-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.spec-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--cyan);
}

.spec-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.spec-val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
  margin-top: 0.2rem;
}

/* ---------- Legal Document Styling (Privacy & Terms) ---------- */
.legal-content h2 {
  font-size: 1.35rem;
  margin: 2.2rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed var(--line);
  color: var(--cyan);
}

.legal-content h3 {
  font-size: 1.1rem;
  margin: 1.4rem 0 0.5rem;
  color: #fff;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  margin-bottom: 1.1rem;
  color: #cbdbee;
  font-size: 1.05rem;
  line-height: 1.65;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.8rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content strong {
  color: #fff;
  font-weight: 700;
}

.highlight-box {
  background: rgba(56, 243, 255, 0.05);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--cyan);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}
.highlight-box.danger {
  background: rgba(255, 61, 90, 0.08);
  border-color: rgba(255, 61, 90, 0.4);
  border-left-color: var(--red);
}

.legal-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0.8rem 1.2rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
.legal-meta span {
  color: var(--cyan);
}

/* ---------- Forms & Review Submission (/contact.html) ---------- */
.review-form-container {
  max-width: 680px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.6rem;
  position: relative;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}
.label-optional {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: none;
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(6, 10, 24, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.1rem;
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(56, 243, 255, 0.35);
  background: rgba(10, 18, 38, 0.9);
}

.form-input.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--red);
  box-shadow: 0 0 12px rgba(255, 61, 90, 0.35);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.form-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.4rem;
  display: flex;
  justify-content: space-between;
}
.char-count {
  font-family: var(--font-display);
  font-size: 0.75rem;
}
.char-count.warn {
  color: var(--amber);
}
.char-count.danger {
  color: var(--red);
}

.field-error {
  color: var(--red);
  font-size: 0.82rem;
  margin-top: 0.35rem;
  display: none;
  font-weight: 600;
}
.field-error.visible {
  display: block;
}

/* Star Rating Selector */
.star-rating-wrap {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0.6rem 0;
  flex-wrap: wrap;
}

.star-group {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0.35rem;
}

.star-input {
  display: none;
}

.star-label {
  cursor: pointer;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.18);
  transition: var(--transition);
  user-select: none;
  line-height: 1;
}

.star-label:hover,
.star-label:hover ~ .star-label,
.star-input:checked ~ .star-label {
  color: var(--amber);
  text-shadow: 0 0 14px rgba(255, 182, 64, 0.7);
}

.rating-text-feedback {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
  min-width: 140px;
}

/* Turnstile Box */
.turnstile-wrap {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed var(--line);
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.6rem;
  min-height: 85px;
}
.turnstile-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

/* Primary Form Action Button */
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, rgba(56, 243, 255, 0.2), rgba(255, 61, 242, 0.2));
  border: 1px solid var(--cyan);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 1rem 1.8rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  box-shadow: 0 0 20px rgba(56, 243, 255, 0.25);
  text-transform: uppercase;
}

.btn-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  color: #04060d;
  box-shadow: 0 0 30px var(--cyan);
  transform: translateY(-2px);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* Form Alert Boxes */
.alert-box {
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-top: 1.5rem;
  display: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.5;
  animation: fadeIn 0.3s ease-out forwards;
}

.alert-box.success {
  display: block;
  background: rgba(125, 255, 140, 0.1);
  border: 1px solid var(--green);
  color: #d4ffd8;
}

.alert-box.error {
  display: block;
  background: rgba(255, 61, 90, 0.1);
  border: 1px solid var(--red);
  color: #ffd4db;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Admin Dashboard (/admin-hades-99x.html) ---------- */
.admin-login-wrap {
  max-width: 440px;
  margin: 4rem auto;
}

.admin-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--red);
  background: rgba(255, 61, 90, 0.12);
  border: 1px solid var(--red);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

/* Chat-box Dashboard Container */
.admin-dashboard-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
  height: calc(100vh - 120px);
  height: calc(100dvh - 120px);
}

.admin-sidebar {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
}

.admin-status-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.stat-metric {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.stat-desc {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
}

/* Filter buttons */
.filter-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.btn-filter {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  padding: 0.5rem 0.8rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.btn-filter:hover {
  background: rgba(56, 243, 255, 0.08);
  color: var(--cyan);
  border-color: var(--cyan);
}

.btn-filter.active {
  background: rgba(56, 243, 255, 0.15);
  color: #fff;
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(56, 243, 255, 0.3);
}

/* Main Chat Screen (Discord/iMessage Style) */
.admin-chat-stage {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.chat-header {
  padding: 1rem 1.5rem;
  background: rgba(6, 10, 24, 0.95);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.chat-channel-icon {
  font-size: 1.2rem;
  color: var(--cyan);
}

.chat-channel-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.chat-readonly-badge {
  font-family: var(--font-display);
  font-size: 0.68rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 182, 64, 0.12);
  border: 1px solid var(--amber);
  color: var(--amber);
  border-radius: 4px;
  letter-spacing: 0.08em;
}

/* Chat feed stream */
.chat-feed-stream {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Review Chat Bubble */
.review-bubble {
  background: rgba(14, 22, 44, 0.7);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  display: flex;
  gap: 1rem;
  transition: var(--transition);
}

.review-bubble:hover {
  background: rgba(18, 30, 60, 0.85);
  border-color: var(--cyan);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.bubble-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 243, 255, 0.2), rgba(255, 61, 242, 0.2));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cyan);
  flex-shrink: 0;
}

.bubble-content {
  flex: 1;
}

.bubble-meta-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.bubble-author {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
}

.bubble-rating {
  color: var(--amber);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
}

.bubble-time {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--muted);
}

.bubble-email-tag {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bubble-text {
  font-size: 1.05rem;
  color: #e2eeff;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Chat Footer (STRICTLY READ-ONLY) */
.chat-readonly-footer {
  padding: 0.8rem 1.5rem;
  background: rgba(4, 6, 13, 0.95);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--muted);
}
.chat-readonly-footer span {
  color: var(--cyan);
}

/* Terminate Session Button */
.btn-logout {
  background: rgba(255, 61, 90, 0.1);
  border: 1px solid var(--red);
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.78rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}
.btn-logout:hover {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 15px var(--red);
}

/* ---------- Cyber Footer ---------- */
.cyber-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 3rem 1.5rem 2rem;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 380px;
  margin: 0.8rem 0 1.2rem;
}

.footer-edge-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--cyan);
  background: rgba(56, 243, 255, 0.08);
  border: 1px solid var(--line);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.footer-col h4 {
  font-size: 0.85rem;
  color: var(--cyan);
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--muted-dark);
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 900px) {
  .admin-dashboard-container {
    grid-template-columns: 1fr;
    height: auto;
  }
  .admin-sidebar {
    max-height: 260px;
  }
  .chat-feed-stream {
    max-height: 500px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .cyber-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(4, 6, 13, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  }
  .cyber-nav.open {
    display: flex;
  }
  .nav-link {
    width: 100%;
    padding: 0.7rem 1rem;
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .cyber-panel {
    padding: 1.5rem;
  }
}

/* ==========================================================
   ERROR PAGES (404, 500, 403, 503) STYLES
   ========================================================== */

.error-hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.error-code-wrap {
  position: relative;
  display: inline-block;
  margin: 1rem 0;
  user-select: none;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.08em;
  color: var(--text-bright);
  text-shadow: 
    0 0 20px var(--cyan-glow),
    3px 3px 0 rgba(255, 61, 242, 0.6),
    -3px -3px 0 rgba(56, 243, 255, 0.6);
  position: relative;
  display: inline-block;
}

.error-code.danger {
  text-shadow: 
    0 0 25px rgba(255, 61, 90, 0.6),
    3px 3px 0 rgba(255, 182, 64, 0.6),
    -3px -3px 0 rgba(255, 61, 90, 0.8);
}

.error-code.warn {
  text-shadow: 
    0 0 25px rgba(255, 182, 64, 0.6),
    3px 3px 0 rgba(255, 61, 90, 0.5),
    -3px -3px 0 rgba(255, 182, 64, 0.8);
}

/* Radar Scanline Circle Visual */
.radar-orb {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  border: 1px dashed var(--cyan);
  background: radial-gradient(circle, rgba(56, 243, 255, 0.08) 0%, transparent 70%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(56, 243, 255, 0.15);
}

.radar-orb.danger {
  border-color: var(--red);
  background: radial-gradient(circle, rgba(255, 61, 90, 0.12) 0%, transparent 70%);
  box-shadow: 0 0 30px rgba(255, 61, 90, 0.25);
}

.radar-orb.warn {
  border-color: var(--amber);
  background: radial-gradient(circle, rgba(255, 182, 64, 0.12) 0%, transparent 70%);
  box-shadow: 0 0 30px rgba(255, 182, 64, 0.25);
}

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(56, 243, 255, 0.4), transparent 60deg);
  animation: radarSpin 4s linear infinite;
  pointer-events: none;
}

.radar-orb.danger .radar-sweep {
  background: conic-gradient(from 0deg, rgba(255, 61, 90, 0.5), transparent 60deg);
}

.radar-orb.warn .radar-sweep {
  background: conic-gradient(from 0deg, rgba(255, 182, 64, 0.5), transparent 60deg);
}

.radar-icon {
  font-size: 3rem;
  z-index: 2;
  filter: drop-shadow(0 0 10px rgba(56, 243, 255, 0.5));
}

.radar-orb.danger .radar-icon {
  filter: drop-shadow(0 0 10px rgba(255, 61, 90, 0.6));
}

.radar-orb.warn .radar-icon {
  filter: drop-shadow(0 0 10px rgba(255, 182, 64, 0.6));
}

@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Diagnostic Matrix Card */
.diag-card {
  background: rgba(8, 12, 26, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-family: monospace;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: left;
  margin: 1.5rem auto 2rem;
  max-width: 650px;
  width: 100%;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.diag-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.6rem;
  margin-bottom: 0.8rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.diag-header.danger {
  color: var(--red);
}

.diag-header.warn {
  color: var(--amber);
}

.diag-row {
  display: flex;
  justify-content: space-between;
  margin: 0.35rem 0;
  word-break: break-all;
}

.diag-key {
  color: var(--muted-dark);
  margin-right: 1rem;
  white-space: nowrap;
}

.diag-val {
  color: var(--text-bright);
}

.diag-val.highlight {
  color: var(--cyan);
}

.diag-val.err {
  color: var(--red);
}

/* Quick Recovery Action Grid */
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem auto;
  max-width: 650px;
  width: 100%;
}

.btn-error-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--cyan);
  color: #04060d;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 0 20px rgba(56, 243, 255, 0.4);
}

.btn-error-primary:hover {
  background: #ffffff;
  color: #04060d;
  box-shadow: 0 0 30px rgba(56, 243, 255, 0.8);
  transform: translateY(-2px);
}

.btn-error-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(10, 16, 32, 0.85);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-error-secondary:hover {
  border-color: var(--cyan);
  color: #ffffff;
  background: rgba(56, 243, 255, 0.12);
  transform: translateY(-2px);
}

