:root {
  --bg: #0b0b0b;
  --surface: #111111;
  --surface-strong: #1a1a1a;
  --text: #ececec;
  --muted: #b3b3b3;
  --accent: #ff2d2d;
  --accent-dark: #8b0000;
  --border: rgba(255, 45, 45, 0.16);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(255, 45, 45, 0.08), transparent 35%), var(--bg);
  min-height: 100vh;
}

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

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

button, input, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 11, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 18px 0;
}

.brand {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 45, 45, 0.08);
  color: var(--text);
  font-weight: 600;
}

.global-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.global-nav a {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.global-nav a:hover,
.global-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 45, 45, 0.14);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 14px 22px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-color: transparent;
}

.button-secondary,
.button-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.hero {
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  gap: 32px;
}

.hero-copy h1,
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0;
  letter-spacing: -0.04em;
}

.eyebrow {
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.intro {
  font-size: 1rem;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.hero-panel,
.card,
.panel,
.info-card,
.rule-card,
.tier-card,
.summary-card,
.channel-card,
.cad-card,
.status-card,
.form-card {
  background: linear-gradient(180deg, rgba(17,17,17,0.98) 0%, rgba(13,13,13,0.96) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-card,
.panel-header,
.map-panel-inner,
.terminal-panel,
.channel-grid .channel-card {
  background: #111111;
}

.hero-card {
  padding: 32px;
}

.hero-card h2,
.panel-header h2,
.card h2,
.card h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #fff;
}

.status-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.status-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 45, 45, 0.18);
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.badge-primary {
  background: rgba(255, 45, 45, 0.24);
}

.badge-secondary {
  background: rgba(139, 0, 0, 0.25);
}

.badge-alert {
  background: rgba(255, 55, 55, 0.3);
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-btn {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.filter-btn.active {
  background: var(--accent-dark);
  border-color: var(--accent);
}

.panel {
  padding: 40px 0;
}

.section {
  padding: 40px 0;
}

.card-grid,
.system-grid,
.status-grid,
.content-grid,
.channel-grid,
.form-grid {
  display: grid;
  gap: 20px;
}

.card-grid {
  grid-template-columns: repeat( auto-fit, minmax(240px, 1fr) );
}

.system-grid {
  grid-template-columns: repeat( auto-fit, minmax(220px, 1fr) );
}

.status-grid {
  grid-template-columns: repeat( auto-fit, minmax(170px, 1fr) );
}

.content-grid {
  grid-template-columns: repeat( auto-fit, minmax(280px, 1fr) );
}

.channel-grid {
  grid-template-columns: repeat( auto-fit, minmax(220px, 1fr) );
}

.form-grid {
  grid-template-columns: repeat( auto-fit, minmax(240px, 1fr) );
}

.full-width {
  grid-column: 1 / -1;
}

.card,
.info-card,
.rule-card,
.tier-card,
.summary-card,
.channel-card,
.cad-card,
.status-card,
.form-card {
  padding: 28px;
}

.status-card {
  border-left: 4px solid var(--accent);
}

.status-card strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
}

.map-panel {
  padding-top: 0;
}

.map-panel-inner {
  padding: 24px;
  border-radius: 24px;
  position: relative;
}

.map-placeholder {
  min-height: 420px;
  position: relative;
  background: radial-gradient(circle at top left, rgba(255,45,45,0.09), transparent 25%),
              linear-gradient(135deg, rgba(255,255,255,0.05), transparent 40%),
              #0f0f0f;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 45px rgba(0,0,0,0.5);
}

.map-pin {
  position: absolute;
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(139, 0, 0, 0.85);
  color: #fff;
  font-size: 0.85rem;
  max-width: 160px;
  line-height: 1.4;
  border: 1px solid rgba(255,255,255,0.08);
}

.map-pin.police { top: 12%; left: 18%; }
.map-pin.dmv { top: 35%; left: 58%; }
.map-pin.court { top: 12%; right: 16%; }
.map-pin.emergency { top: 55%; left: 20%; }
.map-pin.business { top: 72%; left: 66%; }
.map-pin.gang { top: 45%; right: 16%; }

.terminal-panel {
  background: #090909;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 28px;
  color: #b3b3b3;
  overflow-x: auto;
}

.terminal-panel pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.75;
  color: #e8e8e8;
}

.system-form {
  display: grid;
  gap: 18px;
}

.system-form label {
  display: grid;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--muted);
}

.system-form input,
.system-form select,
.system-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: #111111;
  color: var(--text);
  padding: 14px 16px;
}

.system-form textarea {
  resize: vertical;
}

.system-form input:focus,
.system-form select:focus,
.system-form textarea:focus,
button:focus-visible,
.global-nav a:focus-visible {
  outline: 3px solid rgba(255, 45, 45, 0.4);
  outline-offset: 2px;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
}

.form-status {
  color: var(--accent);
  font-weight: 600;
  min-height: 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 12px;
  padding: 32px 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 860px) {
  .hero-grid,
  .content-grid,
  .card-grid,
  .section .card-grid,
  .status-grid,
  .channel-grid,
  .form-grid,
  .dashboard-grid,
  .cad-modules,
  .command-dashboard,
  .dispatch-layout {
    grid-template-columns: 1fr;
  }

  .dispatch-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dispatch-sidebar {
    order: -1;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .global-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    background: rgba(11,11,11,0.98);
    padding: 14px;
    border-radius: 20px;
  }

  .global-nav.show {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .record-grid,
  .result-details,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .page-hero .hero-actions {
    flex-direction: column;
  }

  .call-actions,
  .table-actions {
    flex-direction: column;
  }

  .call-actions button,
  .table-actions button {
    width: 100%;
  }

  .map-details {
    margin-top: 0;
    order: 1;
  }
}

@media (max-width: 480px) {
  .hero,
  .panel,
  .section {
    padding: 28px 0;
  }

  .hero-panel,
  .card,
  .panel-header,
  .map-panel-inner,
  .terminal-panel {
    padding: 24px;
  }

  .button {
    width: 100%;
  }
}

.active-link {
  color: #fff;
  background: rgba(255, 45, 45, 0.18);
}

/* Page hero styles */
.page-hero {
  padding: 72px 0 48px;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0;
  letter-spacing: -0.04em;
}

.page-hero .intro {
  font-size: 1rem;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.page-hero .hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Section headings */
.section h2 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #fff;
}

/* Responsive grids */
.card-grid,
.system-grid,
.status-grid,
.content-grid,
.channel-grid,
.form-grid {
  display: grid;
  gap: 20px;
}

.card-grid {
  grid-template-columns: repeat( auto-fit, minmax(240px, 1fr) );
}

.system-grid {
  grid-template-columns: repeat( auto-fit, minmax(220px, 1fr) );
}

.status-grid {
  grid-template-columns: repeat( auto-fit, minmax(170px, 1fr) );
}

.content-grid {
  grid-template-columns: repeat( auto-fit, minmax(280px, 1fr) );
}

.channel-grid {
  grid-template-columns: repeat( auto-fit, minmax(220px, 1fr) );
}

.form-grid {
  grid-template-columns: repeat( auto-fit, minmax(240px, 1fr) );
}

.full-width {
  grid-column: 1 / -1;
}

/* Form cards */
.form-card {
  padding: 28px;
}

/* Form rows */
.form-row {
  display: grid;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--muted);
}

.form-row label {
  display: grid;
  gap: 10px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: #111111;
  color: var(--text);
  padding: 14px 16px;
}

.form-row textarea {
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus,
button:focus-visible,
.global-nav a:focus-visible {
  outline: 3px solid rgba(255, 45, 45, 0.4);
  outline-offset: 2px;
}

/* Checkbox rows */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--muted);
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* Submit messages */
.form-status {
  color: var(--accent);
  font-weight: 600;
  min-height: 1.5rem;
}

.form-status.error {
  color: #ff6b6b;
}

.form-status.success {
  color: #4caf82;
}

/* Record preview cards */
.record-preview {
  background: rgba(17,17,17,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.record-preview h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #fff;
}

.record-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Command dashboard */
.command-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.dashboard-card {
  background: rgba(17,17,17,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

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

.dashboard-card span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-card strong {
  display: block;
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.card-status {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.card-desc {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.8;
}

/* Dispatch layout */
.dispatch-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  margin-top: 24px;
}

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

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

/* Call queue */
.call-queue {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.call-card {
  background: rgba(17,17,17,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.call-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.call-id {
  font-weight: 600;
  color: var(--accent);
}

.call-priority {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.call-details {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.call-details div {
  color: var(--muted);
}

.call-description {
  background: rgba(255,255,255,0.02);
  padding: 8px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.call-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.call-actions button {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 6px;
}

/* Activity feed */
.activity-feed {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-item {
  background: rgba(17,17,17,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.85rem;
}

.activity-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.activity-type {
  font-weight: 600;
  color: var(--accent);
}

.activity-time {
  color: var(--muted);
  font-size: 0.75rem;
}

.activity-message {
  color: var(--text);
}

/* Officers board */
.officers-board {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.officer-card {
  background: rgba(17,17,17,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.officer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.officer-callsign {
  font-weight: 600;
  color: var(--accent);
}

.officer-status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.officer-role {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.officer-last-update {
  color: var(--muted);
  font-size: 0.75rem;
}

.status-available { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.status-assigned { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.status-en-route { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.status-on-scene { background: rgba(147, 51, 234, 0.2); color: #9333ea; }
.status-busy { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.status-off-duty { background: rgba(156, 163, 175, 0.2); color: #9ca3af; }

/* Call status badges */
.status-new { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.status-assigned { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.status-en-route { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.status-on-scene { background: rgba(147, 51, 234, 0.2); color: #9333ea; }
.status-closed { background: rgba(34, 197, 94, 0.2); color: #22c55e; }

/* Interactive map */
.map-container {
  min-height: 420px;
  position: relative;
  background: radial-gradient(circle at top left, rgba(255,45,45,0.09), transparent 25%),
              linear-gradient(135deg, rgba(255,255,255,0.05), transparent 40%),
              #0f0f0f;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 45px rgba(0,0,0,0.5);
}

/* GTA Map iframe */
.gta-map-iframe {
  width: 100%;
  min-height: 500px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  display: block;
  background: #0f0f0f;
  box-shadow: inset 0 0 45px rgba(0,0,0,0.5);
}

.map-pin.clickable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-pin.clickable:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 45, 45, 0.3);
}

.map-pin.emergency {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 45, 45, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 45, 45, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 45, 45, 0); }
}

.pin-label {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.2;
}

.map-details {
  margin-top: 20px;
  background: rgba(17,17,17,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.location-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.location-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
}

.location-category {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(255, 45, 45, 0.2);
  color: var(--accent);
}

.location-info {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.location-info div {
  color: var(--muted);
}

.location-purpose {
  background: rgba(255,255,255,0.02);
  padding: 8px;
  border-radius: 8px;
  margin-top: 8px;
}

.location-discord {
  margin-top: 8px;
  padding: 6px 12px;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.2);
  border-radius: 6px;
  font-size: 0.8rem;
  color: #5865f2;
}

/* Filter buttons */
.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-btn {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.filter-btn.active {
  background: var(--accent-dark);
  border-color: var(--accent);
}

/* Status badges */
.badge {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 45, 45, 0.18);
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.badge-primary {
  background: rgba(255, 45, 45, 0.24);
}

.badge-secondary {
  background: rgba(139, 0, 0, 0.25);
}

.badge-alert {
  background: rgba(255, 55, 55, 0.3);
}

.badge-success {
  background: rgba(34, 197, 94, 0.25);
}

.badge-warning {
  background: rgba(251, 191, 36, 0.25);
}

/* Priority badges */
.priority-low { background: rgba(156, 163, 175, 0.25); }
.priority-medium { background: rgba(251, 191, 36, 0.25); }
.priority-high { background: rgba(239, 68, 68, 0.25); }
.priority-critical { background: rgba(185, 28, 28, 0.25); }

/* Channel badges */
.channel-badge {
  display: inline-flex;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
}

.toast {
  background: rgba(17,17,17,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: toast-slide-in 0.3s ease-out;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.toast.success {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
}

.toast.warning {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.05);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

.toast.info {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.05);
}

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.toast-message {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.toast-close:hover {
  color: var(--text);
}

@keyframes toast-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Mobile toasts */
@media (max-width: 480px) {
  .toast-container {
    top: auto;
    bottom: 20px;
    right: 20px;
    left: 20px;
    max-width: none;
  }
}

/* Data tables */
.data-table-container {
  background: rgba(17,17,17,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: var(--shadow);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th {
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
  vertical-align: top;
}

.data-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

.empty-row {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  padding: 40px 16px;
}

.table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.table-actions button {
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
}

/* Result cards */
.result-card {
  background: rgba(17,17,17,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.result-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

.result-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.result-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.result-value {
  color: var(--text);
  font-size: 0.9rem;
}

.result-notes {
  grid-column: 1 / -1;
  background: rgba(255,255,255,0.02);
  padding: 12px;
  border-radius: 8px;
  margin-top: 8px;
}

.result-notes .result-label {
  margin-bottom: 4px;
}

/* Empty states */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  color: var(--text);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.9rem;
  max-width: 300px;
  margin: 0 auto;
}
