/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --bg-card: #111111;
  --bg-hover: #1a1a1a;
  --border: #1e1e1e;
  --border-light: #2a2a2a;
  --text: #ffffff;
  --text-secondary: #888888;
  --text-muted: #555555;
  --accent: #ffffff;
  --red: #ef4444;
  --green: #22c55e;
  --yellow: #eab308;
  --blue: #3b82f6;
  --radius: 12px;
  --radius-pill: 999px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
.hidden { display: none !important; }

/* ===== ANIMATIONS ===== */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes waveMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.slide-up {
  opacity: 0;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
}

/* ===== BACKGROUNDS ===== */
.bg-waves {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255,255,255,0.03) 0%, transparent 70%);
}

.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

/* ===== BUTTONS ===== */
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-pill);
  font-size: 0.875rem; font-weight: 500;
  transition: all 0.2s ease;
}

.btn-pill-white {
  background: #fff; color: #000;
}
.btn-pill-white:hover { background: #e5e5e5; transform: translateY(-1px); }

.btn-pill-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-pill-ghost:hover { background: var(--bg-hover); border-color: #444; }

.btn-sm { padding: 7px 16px; font-size: 0.8rem; }

.icon-btn {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: background 0.2s;
}
.icon-btn:hover { background: var(--bg-hover); }

/* ===== LANDING PAGE ===== */
.landing-body { min-height: 100vh; position: relative; overflow-x: hidden; }

.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.brand { font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; }

.nav-center { display: flex; gap: 32px; }
.nav-center a {
  font-size: 0.875rem; color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-center a:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-discord { color: var(--text-secondary); transition: color 0.2s; }
.nav-discord:hover { color: var(--text); }

.landing-hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 40px 60px;
  position: relative; z-index: 1;
}

.hero-inner { max-width: 900px; width: 100%; text-align: center; }

.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  font-size: 0.8rem; color: var(--text-secondary);
  margin-bottom: 32px;
}

.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex; gap: 12px; justify-content: center;
  margin-bottom: 64px;
}

/* Preview window */
.preview-wrap {
  perspective: 1200px;
  padding: 24px;
  position: relative;
  cursor: default;
}

.preview-glow {
  position: absolute;
  inset: 24px;
  border-radius: 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.preview-window {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  transition: box-shadow 0.4s ease;
}

.preview-wrap.is-hovering .preview-window {
  box-shadow: 0 60px 120px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.08);
}

.preview-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.preview-dot { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.preview-title { margin-left: 12px; font-size: 0.75rem; color: var(--text-muted); }

.preview-content { display: flex; min-height: 220px; }

.preview-sidebar {
  width: 140px; padding: 16px 12px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}

.preview-nav-item {
  padding: 8px 12px; border-radius: 8px;
  font-size: 0.8rem; color: var(--text-secondary);
}
.preview-nav-item.active { background: var(--bg-hover); color: var(--text); }

.preview-main { flex: 1; padding: 20px; }

.preview-stat-row { display: flex; gap: 24px; margin-bottom: 24px; }
.preview-stat-val { display: block; font-size: 1.4rem; font-weight: 700; }
.preview-stat-lbl { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.preview-chart { position: relative; height: 80px; overflow: hidden; }
.chart-line {
  position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  animation: waveMove 8s linear infinite;
}
.chart-line.delay-1 { opacity: 0.5; animation-delay: -2s; height: 40px; }
.chart-line.delay-2 { opacity: 0.25; animation-delay: -4s; height: 80px; }

/* Landing sections */
.landing-section {
  max-width: 1100px; margin: 0 auto;
  padding: 80px 40px;
  position: relative; z-index: 1;
}

.section-title {
  font-size: 1.75rem; font-weight: 700;
  text-align: center; margin-bottom: 48px;
  letter-spacing: -0.02em;
}

.feature-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-box {
  padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s;
}
.feature-box:hover { border-color: var(--border-light); }

.feature-num { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 12px; }
.feature-box h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-box p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

.changelog-card, .terms-card, .contact-card {
  max-width: 640px; margin: 0 auto;
  padding: 40px; border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.changelog-tag {
  font-size: 0.75rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}

.changelog-card h3, .terms-card h3, .contact-card h3 {
  font-size: 1.25rem; margin: 12px 0 16px;
}

.changelog-card ul { list-style: none; }
.changelog-card li {
  padding: 8px 0; font-size: 0.9rem; color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.changelog-card li::before { content: "→ "; color: var(--text-muted); }

.terms-card p, .contact-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

.contact-email {
  display: inline-block; margin-top: 16px;
  font-size: 1.1rem; font-weight: 600;
  border-bottom: 1px solid var(--border-light);
  transition: border-color 0.2s;
}
.contact-email:hover { border-color: var(--text); }

.landing-footer {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 40px; font-size: 0.8rem; color: var(--text-muted);
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.landing-footer a { color: var(--text-secondary); }
.landing-footer a:hover { color: var(--text); }

/* ===== DASHBOARD ===== */
.dash-body { height: 100vh; overflow: hidden; }

.dash-layout {
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  height: 100vh;
}

.dash-sidebar {
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 20px 12px;
  overflow-y: auto;
}

.dash-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; margin-bottom: 24px;
  font-weight: 700; font-size: 0.95rem;
}

.dash-logo {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
}

.dash-nav-section { margin-bottom: 20px; }

.dash-nav-label {
  display: block; padding: 4px 12px;
  font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.dash-nav-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 12px; border-radius: 8px;
  font-size: 0.85rem; color: var(--text-secondary);
  transition: all 0.15s; text-align: left;
}
.dash-nav-item:hover { background: var(--bg-hover); color: var(--text); }
.dash-nav-item.active { background: var(--bg-hover); color: var(--text); }

.dash-user {
  margin-top: auto; padding: 12px;
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--border);
}

.dash-user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-hover); border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 600;
}

.dash-user-name { font-size: 0.85rem; font-weight: 600; }
.dash-user-role { font-size: 0.7rem; color: var(--text-muted); }

/* Main area */
.dash-main {
  display: flex; flex-direction: column;
  overflow: hidden; background: var(--bg);
}

.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.dash-breadcrumb { font-size: 0.85rem; color: var(--text-secondary); }
.breadcrumb-sep { margin: 0 6px; color: var(--text-muted); }
#breadcrumb-page { color: var(--text); }

.dash-header-actions { display: flex; align-items: center; gap: 10px; }

.live-ticker {
  display: flex; align-items: center; gap: 16px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.78rem; color: var(--text-secondary);
}

.ticker-item { display: flex; align-items: center; gap: 6px; white-space: nowrap; }

.public-status {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.78rem; color: var(--text-secondary);
}

body.is-admin .public-status { display: none; }
body.is-user .live-ticker { display: none; }

.user-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 32px;
}

.user-card {
  padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-card);
  cursor: pointer; transition: border-color 0.2s, transform 0.2s;
}
.user-card:hover { border-color: var(--border-light); transform: translateY(-2px); }

.user-card-icon { font-size: 1.5rem; margin-bottom: 12px; }
.user-card h3 { font-size: 1rem; margin-bottom: 6px; }
.user-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

.user-rules {
  padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-card);
  margin-bottom: 24px;
}
.user-rules h3 { margin-bottom: 12px; }
.user-rules li { color: var(--text-secondary); font-size: 0.9rem; padding: 6px 0; }

.staff-promo {
  padding: 16px 20px; border-radius: var(--radius);
  border: 1px dashed var(--border-light);
  font-size: 0.85rem; color: var(--text-secondary); text-align: center;
}

.link-btn {
  background: none; border: none; color: var(--text);
  text-decoration: underline; cursor: pointer; font-size: inherit;
}

.track-box {
  display: flex; gap: 12px; max-width: 400px; margin-bottom: 20px;
}
.track-box input {
  flex: 1; padding: 12px 16px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 10px; color: var(--text);
}

.track-result { max-width: 480px; }
.track-card {
  padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-card);
}
.track-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.track-card p { font-size: 0.9rem; color: var(--text-secondary); margin: 4px 0; }

.access-gate {
  text-align: center; padding: 60px 20px;
  border: 1px dashed var(--border-light); border-radius: var(--radius);
}
.gate-icon { font-size: 2rem; margin-bottom: 12px; }
.access-gate h3 { margin-bottom: 8px; }
.access-gate p { color: var(--text-secondary); margin-bottom: 20px; font-size: 0.9rem; }

.locked-stat { color: var(--text-muted) !important; font-size: 1rem !important; }

.live-counter {
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}

#mon-uptime, #ticker-uptime, #preview-uptime, .preview-stat-val {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.latency-good { color: var(--green); }
.latency-warn { color: var(--yellow); }
.latency-bad { color: var(--red); }

.dash-content {
  flex: 1; overflow-y: auto;
  padding: 28px;
}

.dash-view { display: none; animation: fadeIn 0.3s ease; }
.dash-view.active { display: block; }

.view-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.view-sub { color: var(--text-secondary); font-size: 0.9rem; margin: 4px 0 28px; }

/* Search */
.search-hero { text-align: center; padding: 60px 0 40px; }
.search-hero h1 { font-size: 1.75rem; font-weight: 600; margin-bottom: 28px; letter-spacing: -0.02em; }

.search-bar-wrap { max-width: 680px; margin: 0 auto; }

.search-bar {
  display: flex; align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 20px;
  transition: border-color 0.2s;
}
.search-bar:focus-within { border-color: #444; }

.search-icon { color: var(--text-muted); flex-shrink: 0; }

.search-bar input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 0.95rem; padding: 10px 12px;
}
.search-bar input::placeholder { color: var(--text-muted); }

.search-go {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: #000;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform 0.2s;
}
.search-go:hover { transform: scale(1.05); }

.search-filters {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 16px; flex-wrap: wrap;
}

.filter-pill {
  padding: 6px 16px; border-radius: var(--radius-pill);
  font-size: 0.8rem; color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.15s;
}
.filter-pill:hover { border-color: var(--border-light); color: var(--text); }
.filter-pill.active { background: var(--bg-hover); color: var(--text); border-color: var(--border-light); }

.search-hint { margin-top: 16px; font-size: 0.8rem; color: var(--text-muted); }

.search-results { max-width: 680px; margin: 0 auto; }

.result-card {
  padding: 16px 20px; border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 8px; cursor: pointer;
  transition: border-color 0.15s;
}
.result-card:hover { border-color: var(--border-light); }

.result-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.result-id { font-family: monospace; font-weight: 600; font-size: 0.85rem; }
.result-meta { font-size: 0.8rem; color: var(--text-muted); }
.result-desc { font-size: 0.85rem; color: var(--text-secondary); }

/* Status pills */
.status-pill, .status-badge {
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
.status-open, .status-incoming { background: rgba(239,68,68,0.15); color: var(--red); }
.status-reviewing, .status-review { background: rgba(234,179,8,0.15); color: var(--yellow); }
.status-resolved { background: rgba(34,197,94,0.15); color: var(--green); }
.status-dismissed { background: rgba(85,85,85,0.2); color: var(--text-muted); }
.status-online { background: rgba(34,197,94,0.15); color: var(--green); }
.status-offline { background: rgba(239,68,68,0.15); color: var(--red); }

/* Monitor */
.monitor-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 16px;
}
.monitor-grid.secondary .monitor-big { font-size: 1.8rem; }

.monitor-card {
  padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.monitor-card-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--text-secondary);
  margin-bottom: 12px;
}

.monitor-big { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.monitor-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.online-text { color: var(--green); }

.uptime-chart {
  margin-top: 24px; padding: 24px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg-card);
}

.uptime-chart-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: var(--text-secondary);
  margin-bottom: 20px;
}

.chart-live { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; }

.chart-bars {
  display: flex; align-items: flex-end; gap: 4px; height: 80px;
}

.chart-bar {
  flex: 1; background: rgba(34,197,94,0.4);
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: height 0.3s ease;
}
.chart-bar.warn { background: rgba(234,179,8,0.4); }
.chart-bar.down { background: rgba(239,68,68,0.4); }

.monitor-panels {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin: 24px 0;
}

.panel-card {
  padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-card);
}

.panel-head {
  font-size: 0.8rem; color: var(--text-secondary);
  margin-bottom: 14px; font-weight: 600;
}

.service-row, .info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.service-row:last-child, .info-row:last-child { border-bottom: none; }
.info-row span:last-child { color: var(--text-secondary); }

.cog-list { display: flex; flex-wrap: wrap; gap: 6px; }

.cog-chip {
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--bg-hover); border: 1px solid var(--border);
  font-size: 0.75rem; color: var(--text-secondary);
}

.latency-graph {
  display: flex; align-items: flex-end; gap: 3px;
  height: 100px; padding-top: 8px;
}

.lat-bar {
  flex: 1; background: rgba(34,197,94,0.5);
  border-radius: 3px 3px 0 0; min-height: 4px;
  transition: height 0.3s ease;
}
.lat-bar.warn { background: rgba(234,179,8,0.5); }
.lat-bar.bad { background: rgba(239,68,68,0.5); }

.last-checked {
  text-align: right; font-size: 0.75rem;
  color: var(--text-muted); margin-top: 12px;
}

/* Reports */
.reports-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 16px; margin-bottom: 20px;
}

.report-tabs { display: flex; gap: 6px; flex-wrap: wrap; }

.report-tab {
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: 0.8rem; color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.15s;
}
.report-tab:hover { color: var(--text); }
.report-tab.active { background: var(--bg-hover); color: var(--text); border-color: var(--border-light); }

.stats-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }

.stat-chip {
  padding: 8px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-secondary);
}
.stat-chip span { font-weight: 700; color: var(--text); margin-right: 4px; }
.stat-chip.incoming span { color: var(--red); }
.stat-chip.review span { color: var(--yellow); }
.stat-chip.resolved span { color: var(--green); }

.reports-table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.reports-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.reports-table th {
  text-align: left; padding: 12px 16px;
  background: var(--bg-elevated); color: var(--text-muted);
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.reports-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.reports-table tr { cursor: pointer; transition: background 0.1s; }
.reports-table tr:hover td { background: var(--bg-hover); color: var(--text); }
.reports-table tr:last-child td { border-bottom: none; }

.empty-msg { text-align: center; padding: 40px; color: var(--text-muted); font-size: 0.9rem; }

/* Forms */
.dash-form { max-width: 560px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 16px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 10px; color: var(--text); font-size: 0.9rem;
  outline: none; transition: border-color 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: #444;
}

.settings-card {
  max-width: 400px; padding: 28px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card);
}
.settings-card label { display: block; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 8px; }
.settings-card input {
  width: 100%; padding: 12px; margin-bottom: 12px;
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: 8px; color: var(--text);
}
.settings-card .btn-pill { margin-right: 8px; margin-top: 4px; }

.dash-contact-card { max-width: 480px; }

.alert-success, .alert-error {
  padding: 12px 16px; border-radius: 8px;
  font-size: 0.85rem; margin-top: 16px;
}
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: var(--green); }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--red); }

/* Activity panel */
.dash-activity {
  border-left: 1px solid var(--border);
  background: var(--bg);
  overflow-y: auto;
  padding: 20px 16px;
}

.activity-head {
  font-size: 0.85rem; font-weight: 600;
  margin-bottom: 16px; color: var(--text-secondary);
}

.activity-item {
  padding: 12px; border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 8px; font-size: 0.8rem;
  animation: fadeIn 0.3s ease;
}
.activity-item time { display: block; font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }
.activity-empty { color: var(--text-muted); font-size: 0.8rem; text-align: center; padding: 40px 0; }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-box {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 28px;
  max-width: 520px; width: 100%; max-height: 80vh; overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute; top: 16px; right: 16px;
  font-size: 1.4rem; color: var(--text-muted);
}
.modal-close:hover { color: var(--text); }

.modal-grid { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; font-size: 0.8rem; color: var(--text-muted); }
.modal-desc { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; white-space: pre-wrap; }

code {
  background: var(--bg-hover); padding: 2px 6px;
  border-radius: 4px; font-size: 0.85em;
}

/* Responsive */
@media (max-width: 1100px) {
  .dash-layout { grid-template-columns: 200px 1fr; }
  .dash-activity { display: none; }
}

@media (max-width: 768px) {
  .landing-nav { padding: 16px 20px; }
  .nav-center { display: none; }
  .landing-hero { padding: 100px 20px 40px; }
  .landing-section { padding: 60px 20px; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
  .live-ticker { display: none; }
}
