/* ==========================================================================
   TRAP NETWORK — shared stylesheet
   Palette:
     --navy-900 #0c1220  (topbar / darkest)
     --navy-800 #121a2c  (page background)
     --navy-700 #1c2740  (panels)
     --navy-600 #263455  (panel hover / borders)
     --amber-500 #f2a300 (primary accent, from logo "NETWORK")
     --amber-600 #c9840a (accent hover/dark)
     --leaf-500 #79c243  (from logo "TRAP")
     --leaf-700 #3f6b1d
     --ink-100 #eef2f8   (primary text)
     --ink-400 #97a3ba   (muted text)
   ========================================================================== */

:root {
  --navy-900: #0c1220;
  --navy-800: #121a2c;
  --navy-700: #1c2740;
  --navy-650: #212c47;
  --navy-600: #2a3652;
  --amber-500: #f2a300;
  --amber-600: #c9840a;
  --amber-300: #ffcf5c;
  --leaf-500: #79c243;
  --leaf-700: #3f6b1d;
  --ink-100: #eef2f8;
  --ink-400: #97a3ba;
  --ink-600: #64708a;
  --danger: #e0524a;

  --font-display: 'Teko', 'Rajdhani', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-pixel: 'Silkscreen', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy-800);
  color: var(--ink-100);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Topbar ---------- */

.topbar {
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
  z-index: 40;
}

.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 20px;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.nav-group.right { justify-content: flex-end; }

.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--ink-100);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover { background: rgba(255,255,255,0.06); }

.nav-link.active {
  background: var(--amber-500);
  color: var(--navy-900);
}
.nav-link.active:hover { background: var(--amber-600); }

.brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand img {
  height: 72px;
  width: auto;
  filter: drop-shadow(0 4px 14px rgba(242, 163, 0, 0.15));
}

.subbar {
  background: #0a0f1c;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.subbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

.subbar a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--ink-400);
  font-weight: 600;
}

.subbar a:hover { color: var(--ink-100); }

/* ---------- Mobile nav toggle ---------- */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink-100);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 6px 10px;
}

/* ---------- Hero action bar ---------- */

.hero-actions {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.action-card {
  background: var(--amber-500);
  border-radius: var(--radius-md);
  padding: 20px 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  transition: transform 0.15s ease, background 0.15s ease;
}

.action-card:hover { transform: translateY(-2px); background: var(--amber-600); }

.action-card.discord-card { background: #f2a300; }

.action-icon {
  width: 56px;
  height: 56px;
  background: rgba(12, 18, 32, 0.18);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--navy-900);
}
.action-icon svg { width: 28px; height: 28px; }

.action-text .title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: 0.02em;
  line-height: 1;
}
.action-text .sub {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(12,18,32,0.7);
}

.count-bubble {
  position: absolute;
  top: -12px;
  right: -12px;
  background: var(--navy-900);
  color: var(--ink-100);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  border: 2px solid var(--amber-500);
}

/* ---------- Main content grid ---------- */

.content-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

.main-col { min-width: 0; }

.category-header {
  background: linear-gradient(90deg, var(--amber-500), var(--amber-600));
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--navy-900);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  margin: 28px 0 14px;
}
.category-header:first-child { margin-top: 0; }

.board-list {
  background: var(--navy-700);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.board-row {
  display: grid;
  grid-template-columns: 44px 1fr auto 220px;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s ease;
}
.board-row:last-child { border-bottom: none; }
.board-row:hover { background: var(--navy-650); }

.board-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--navy-600);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-500);
}
.board-icon svg { width: 22px; height: 22px; }

.board-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.board-desc {
  font-size: 0.85rem;
  color: var(--ink-400);
  margin-top: 2px;
}

.board-stats {
  display: flex;
  gap: 22px;
  text-align: center;
  color: var(--ink-400);
  font-size: 0.8rem;
}
.board-stats strong {
  display: block;
  color: var(--ink-100);
  font-size: 1rem;
}

.board-latest {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--ink-400);
}
.board-latest .avatar {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--navy-600);
  flex-shrink: 0;
  object-fit: cover;
}
.board-latest .latest-title {
  color: var(--ink-100);
  font-weight: 600;
  display: block;
}

@media (max-width: 720px) {
  .board-row { grid-template-columns: 40px 1fr; }
  .board-stats, .board-latest { display: none; }
}

/* ---------- Sidebar ---------- */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.side-panel {
  background: var(--navy-700);
  border-radius: var(--radius-md);
  padding: 20px;
}

.side-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--ink-100);
  margin: 0 0 4px;
}
.side-rule {
  width: 40px;
  height: 3px;
  background: var(--amber-500);
  border-radius: 2px;
  margin-bottom: 14px;
}

.online-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.online-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--leaf-500);
  box-shadow: 0 0 6px var(--leaf-500);
  flex-shrink: 0;
}
.online-total {
  color: var(--ink-400);
  font-size: 0.85rem;
}

.post-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.post-item:last-child { border-bottom: none; }
.post-item .avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--navy-600);
  flex-shrink: 0;
}
.post-item .post-title {
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
}
.post-item .post-meta {
  font-size: 0.78rem;
  color: var(--ink-400);
}

.ip-box {
  background: var(--navy-600);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--amber-300);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  cursor: pointer;
}
.ip-box:hover { background: #33405f; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-primary { background: var(--amber-500); color: var(--navy-900); }
.btn-primary:hover { background: var(--amber-600); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--amber-500);
  color: var(--ink-100);
}
.btn-outline:hover { background: rgba(242,163,0,0.12); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 30px 0;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-400);
  font-size: 0.85rem;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--ink-100); }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy-900);
  border: 1px solid var(--amber-500);
  color: var(--ink-100);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  padding: 56px 24px 40px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.page-hero .eyebrow {
  font-family: var(--font-pixel);
  color: var(--leaf-500);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 0 0 12px;
  color: var(--ink-100);
}
.page-hero p {
  color: var(--ink-400);
  max-width: 560px;
  margin: 0 auto;
}

.page-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ==========================================================================
   ANNOUNCEMENTS
   ========================================================================== */

.announce-panel {
  background: var(--navy-700);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 20px;
}

.announce-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.announce-slot {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  border: 2px dashed rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-600);
  font-size: 0.85rem;
  cursor: default;
  overflow: hidden;
  position: relative;
  text-align: center;
  padding: 10px;
}

.announce-slot.filled {
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--navy-650);
  cursor: pointer;
  color: var(--ink-100);
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  transition: transform .15s ease, border-color .15s ease;
}

.announce-slot.filled:hover {
  transform: translateY(-3px);
  border-color: var(--amber-500);
}

.announce-slot .slot-img {
  width: 100%;
  height: 60%;
  object-fit: cover;
  background: var(--navy-600);
}

.announce-slot .slot-body {
  padding: 10px 12px;
}

.announce-slot .slot-title {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.announce-slot .slot-meta {
  font-size: 0.72rem;
  color: var(--ink-400);
}

.announce-slot .slot-plus {
  font-size: 1.6rem;
  opacity: 0.4;
}

.view-all-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber-300);
}

.view-all-link:hover { text-decoration: underline; }

.create-announce-link {
  background: none;
  border: none;
  color: var(--ink-600);
  font-size: 0.78rem;
  padding: 4px 0;
  margin-top: 18px;
  cursor: pointer;
  transition: color .15s ease;
}

.create-announce-link:hover { color: var(--amber-300); }

.announce-info-banner {
  font-size: 0.78rem;
  color: var(--ink-600);
  background: rgba(255,255,255,0.02);
  border-left: 3px solid var(--amber-500);
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 18px;
}

@media (max-width: 700px) {
  .announce-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   MODALS (code gate, create-announcement form, announcement detail view)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,9,16,0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 500;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--navy-700);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 26px;
  position: relative;
}

.modal-box.wide { max-width: 640px; }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: none;
  color: var(--ink-400);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover { color: var(--ink-100); }

.modal-box h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  margin: 0 0 6px;
}

.modal-sub {
  font-size: 0.85rem;
  color: var(--ink-400);
  margin: 0 0 20px;
}

.field-group { margin-bottom: 16px; }

.field-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-400);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field-group input[type="text"],
.field-group input[type="password"],
.field-group input[type="email"],
.field-group input[type="datetime-local"],
.field-group textarea {
  width: 100%;
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  color: var(--ink-100);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.field-group textarea { min-height: 90px; resize: vertical; }

.field-group input:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--amber-500);
}

.field-group input[type="file"] {
  width: 100%;
  font-size: 0.82rem;
  color: var(--ink-400);
}

.file-preview {
  margin-top: 8px;
  width: 100%;
  max-height: 120px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  display: none;
  border: 1px solid rgba(255,255,255,0.1);
}

.file-preview.show { display: block; }

.avatar-preview {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 8px;
  display: none;
  border: 1px solid rgba(255,255,255,0.1);
}

.avatar-preview.show { display: block; }

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.btn-primary, .btn-secondary {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(180deg, var(--amber-300), var(--amber-500));
  color: #22160a;
}

.btn-primary:hover { filter: brightness(1.06); }

.btn-secondary {
  background: var(--navy-600);
  color: var(--ink-100);
}

.btn-secondary:hover { background: var(--navy-650); }

.modal-error {
  font-size: 0.82rem;
  color: var(--danger);
  margin-top: 8px;
  display: none;
}

.modal-error.show { display: block; }

/* Announcement detail view inside modal */
.detail-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  background: var(--navy-600);
}

.detail-title { font-size: 1.3rem; font-weight: 700; margin: 0 0 6px; }

.detail-time { font-size: 0.78rem; color: var(--ink-400); margin-bottom: 14px; }

.detail-desc { font-size: 0.92rem; color: var(--ink-100); line-height: 1.6; margin-bottom: 18px; white-space: pre-wrap; }

.detail-sender {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.detail-sender img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy-600);
}

.detail-sender span { font-size: 0.85rem; font-weight: 600; }

.detail-list { display: flex; flex-direction: column; gap: 12px; }

.detail-list-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--navy-800);
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color .15s ease;
}

.detail-list-item:hover { border-color: var(--amber-500); }

.detail-list-item img.thumb {
  width: 64px; height: 64px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--navy-600);
}

.detail-list-item .dl-title { font-weight: 700; font-size: 0.92rem; }
.detail-list-item .dl-meta { font-size: 0.76rem; color: var(--ink-400); }
.detail-list-item .dl-desc { font-size: 0.8rem; color: var(--ink-400); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.empty-state {
  text-align: center;
  color: var(--ink-600);
  padding: 40px 20px;
  font-size: 0.9rem;
}

/* ==========================================================================
   AUTH WIZARD (login / register)
   ========================================================================== */

.auth-shell {
  min-height: calc(100vh - 300px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--navy-700);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 34px;
}

.auth-card h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
  text-align: center;
}

.auth-sub {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-400);
  margin: 0 0 26px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--ink-600);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--ink-400);
}

.auth-switch a { color: var(--amber-300); font-weight: 600; }

.auth-step { display: none; }
.auth-step.active { display: block; }

.step-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.step-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.step-dots span.active { background: var(--amber-500); }

.link-code-box {
  text-align: center;
  padding: 22px;
  background: var(--navy-800);
  border-radius: var(--radius-md);
  border: 1px dashed var(--amber-500);
  margin-bottom: 20px;
}

.link-code {
  font-family: var(--font-pixel);
  font-size: 1.7rem;
  letter-spacing: 0.12em;
  color: var(--amber-300);
  margin: 8px 0;
  word-break: break-all;
}

.auth-instructions {
  font-size: 0.85rem;
  color: var(--ink-100);
  line-height: 1.7;
  background: var(--navy-800);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 18px;
}

.auth-instructions code {
  background: var(--navy-600);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--amber-300);
}

.demo-note {
  font-size: 0.72rem;
  color: var(--ink-600);
  text-align: center;
  margin-top: 18px;
  line-height: 1.5;
}

.link-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ink-400);
  background: var(--navy-800);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
}

.link-status .status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--amber-500);
  flex-shrink: 0;
}

.link-status.waiting .status-dot {
  animation: pulseDot 1.4s ease-in-out infinite;
}

.link-status.success {
  color: var(--leaf-500);
}

.link-status.success .status-dot {
  background: var(--leaf-500);
}

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

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .content-grid { grid-template-columns: 1fr; }
  .hero-actions { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items:center; }
  .topbar-inner { height: 72px; }
  .nav-group { display: none; }
  .nav-group.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-group.right.open { top: 72px; }
  .brand img { height: 52px; }
  .page-hero h1 { font-size: 2.3rem; }
}
