/* ═════════════════════════════════════════════════════════════════════
   Hyper Foundation — Operational War Room & Admin Command Suite (admin.css)
   ═════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: Inter;
  src: url('../inter-latin-400-normal.9698cc7dbf147ed363b6.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: Teodor;
  src: url('../Teodor-Light.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #072723;
  --ink-deep: #031412;
  --ink-card: rgba(8, 35, 31, 0.85);
  --ink-card-hover: rgba(12, 48, 43, 0.95);
  --ink-input: #041a17;
  --mint: #97fce4;
  --mint-hover: #50d2c1;
  --mint-glow: rgba(151, 252, 228, 0.25);
  --mint-dim: rgba(151, 252, 228, 0.12);
  --muted: #a3bfb9;
  --text-dim: #678c85;
  --border: #183e37;
  --border-light: #24564d;
  --border-focus: #50d2c1;
  --danger: #f87171;
  --danger-glow: rgba(248, 113, 113, 0.25);
  --warning: #fbbf24;
  --success: #34d399;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink-deep);
  color: #edf7f5;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Grid */
.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(to right, rgba(151, 252, 228, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(151, 252, 228, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* War Room Header */
.war-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 20, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.war-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.war-brand img { height: 26px; }
.war-badge {
  background: rgba(151, 252, 228, 0.1);
  border: 1px solid rgba(151, 252, 228, 0.3);
  color: var(--mint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.war-status-ribbon {
  display: flex;
  align-items: center;
  gap: 20px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  font-family: monospace;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: pulseDot 2s infinite;
}
.status-dot.danger {
  background: var(--danger);
  box-shadow: 0 0 10px var(--danger);
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.war-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons & Inputs */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-mint {
  background: var(--mint);
  color: #051d1a;
}
.btn-mint:hover {
  background: var(--mint-hover);
  box-shadow: 0 0 16px var(--mint-glow);
}
.btn-outline {
  background: transparent;
  border-color: var(--border-light);
  color: #edf7f5;
}
.btn-outline:hover {
  border-color: var(--mint);
  color: var(--mint);
  background: var(--mint-dim);
}
.btn-danger {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.4);
  color: var(--danger);
}
.btn-danger:hover {
  background: rgba(248, 113, 113, 0.25);
  box-shadow: 0 0 12px var(--danger-glow);
}
.btn-sm {
  font-size: 11.5px;
  padding: 5px 10px;
}

/* Layout Container */
.war-container {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

/* Grid Top Metrics */
.top-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.metric-card {
  background: var(--ink-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  transition: border-color 0.2s;
}
.metric-card:hover {
  border-color: var(--border-light);
}
.metric-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.metric-card-val {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  font-family: Inter, sans-serif;
  line-height: 1.2;
}
.metric-card-val.mint { color: var(--mint); }
.metric-card-val.danger { color: var(--danger); }
.metric-card-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Main War Room Dashboard Tabs */
.dashboard-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.d-tab {
  background: none;
  border: none;
  color: var(--muted);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.d-tab:hover {
  color: #fff;
  background: rgba(151, 252, 228, 0.05);
}
.d-tab.active {
  color: var(--mint);
  background: rgba(151, 252, 228, 0.1);
  border: 1px solid rgba(151, 252, 228, 0.25);
  font-weight: 600;
}

/* Tab Panels */
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeTab 0.25s ease-out; }
@keyframes fadeTab {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards & Modules */
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.module-grid.single {
  grid-template-columns: 1fr;
}

.panel-card {
  background: var(--ink-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.panel-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.panel-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-title svg { color: var(--mint); }

/* Form Controls in Admin */
.ctrl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(24, 62, 55, 0.4);
}
.ctrl-row:last-child { border-bottom: none; }
.ctrl-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ctrl-label {
  font-weight: 500;
  color: #ffffff;
  font-size: 13.5px;
}
.ctrl-desc {
  font-size: 11.5px;
  color: var(--text-dim);
}

.ctrl-action {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Custom Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #041a17;
  border: 1px solid var(--border-light);
  transition: .3s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--muted);
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--mint-dim);
  border-color: var(--mint);
}
input:checked + .slider:before {
  transform: translateX(20px);
  background-color: var(--mint);
}

/* Range Slider */
.range-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.range-input {
  -webkit-appearance: none;
  appearance: none;
  width: 140px;
  height: 6px;
  border-radius: 3px;
  background: var(--ink-input);
  outline: none;
  border: 1px solid var(--border);
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mint);
  cursor: pointer;
  box-shadow: 0 0 8px var(--mint);
}
.range-val {
  font-family: monospace;
  font-size: 13px;
  color: var(--mint);
  min-width: 40px;
  text-align: right;
}

/* Text & Select Inputs */
.admin-input, .admin-select {
  background: var(--ink-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.admin-input:focus, .admin-select:focus {
  border-color: var(--mint);
}
.admin-input.mono {
  font-family: monospace;
}

/* Funnel Visualization */
.funnel-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.funnel-step {
  display: grid;
  grid-template-columns: 160px 1fr 100px;
  align-items: center;
  gap: 16px;
}
.funnel-name {
  font-size: 12.5px;
  color: var(--muted);
}
.funnel-bar-bg {
  background: var(--ink-input);
  height: 18px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.funnel-bar-fill {
  background: linear-gradient(90deg, #185248, var(--mint));
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.funnel-stat {
  font-family: monospace;
  font-size: 12.5px;
  color: #fff;
  text-align: right;
}

/* Real-time Telemetry Streamer */
.log-streamer {
  background: #020d0b;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: monospace;
  font-size: 12px;
  height: 320px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.log-entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
  border-bottom: 1px solid rgba(24, 62, 55, 0.2);
  padding-bottom: 4px;
}
.log-time { color: var(--text-dim); }
.log-tag {
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10.5px;
}
.log-tag.shield { background: rgba(151, 252, 228, 0.15); color: var(--mint); }
.log-tag.claim { background: rgba(52, 211, 153, 0.15); color: var(--success); }
.log-tag.trap { background: rgba(248, 113, 113, 0.15); color: var(--danger); }
.log-tag.ads { background: rgba(251, 191, 36, 0.15); color: var(--warning); }
.log-msg { color: #d7e8e4; word-break: break-all; }

/* Feedback Toast */
.war-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #072723;
  border: 1px solid var(--mint);
  color: var(--mint);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  z-index: 99999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.3s ease;
  pointer-events: none;
}
.war-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Spreading & Social Studio Module */
.output-box {
  background: var(--ink-input);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 14px;
}
.output-url {
  font-family: monospace;
  font-size: 12px;
  color: var(--mint);
  word-break: break-all;
  line-height: 1.4;
  margin-bottom: 10px;
}
.qr-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(4, 26, 23, 0.6);
  border: 1px dashed var(--border);
  border-radius: 8px;
  margin-top: 14px;
}
#qr-canvas {
  border-radius: 6px;
  background: #ffffff;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.canvas-preview-wrap {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 14px;
  background: #020d0b;
}
.canvas-preview-wrap canvas {
  width: 100%;
  height: auto;
  display: block;
}
.sub-tabs-header {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  overflow-x: auto;
}
.sub-tab-btn {
  background: none;
  border: none;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.sub-tab-btn:hover { color: #fff; background: rgba(151,252,228,0.05); }
.sub-tab-btn.active { color: var(--ink); background: var(--mint); font-weight: 600; }
.sub-tab-pane { display: none; }
.sub-tab-pane.active { display: block; animation: fadeTab 0.2s ease-out; }
.copy-snippet-box {
  background: var(--ink-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}
.snippet-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--text-dim);
}
.snippet-text {
  font-size: 12.5px;
  color: #d1e7e2;
  line-height: 1.5;
  white-space: pre-wrap;
  font-family: inherit;
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 960px) {
  .module-grid { grid-template-columns: 1fr; }
  .war-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .war-status-ribbon { flex-wrap: wrap; }
  .funnel-step { grid-template-columns: 120px 1fr 60px; }
}

/* ═════════════════════════════════════════════════════════════════════
   Real Manageable Data: Tables, Modals, Badges & Live Indicators
   ═════════════════════════════════════════════════════════════════════ */

/* Admin Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}
.admin-table th {
  background: rgba(4, 26, 23, 0.95);
  color: var(--muted);
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(24, 62, 55, 0.4);
  color: #d7e8e4;
  vertical-align: middle;
}
.admin-table tbody tr:hover {
  background: rgba(151, 252, 228, 0.03);
}
.admin-table td.mono {
  font-family: monospace;
  font-size: 12px;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge-eligible {
  background: rgba(151, 252, 228, 0.12);
  color: var(--mint);
  border: 1px solid rgba(151, 252, 228, 0.3);
}
.badge-claimed {
  background: rgba(52, 211, 153, 0.15);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.badge-staked {
  background: rgba(167, 139, 250, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.3);
}
.badge-banned {
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.3);
}
.badge-active {
  background: rgba(151, 252, 228, 0.15);
  color: var(--mint);
}
.badge-paused {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning);
}

/* Live Price Flash Animation */
@keyframes pricePump {
  0% { background-color: rgba(52, 211, 153, 0.35); color: #fff; }
  100% { background-color: transparent; }
}
@keyframes priceDump {
  0% { background-color: rgba(248, 113, 113, 0.35); color: #fff; }
  100% { background-color: transparent; }
}
.price-up {
  animation: pricePump 1.2s ease-out;
  color: var(--mint) !important;
}
.price-down {
  animation: priceDump 1.2s ease-out;
  color: var(--danger) !important;
}

/* Modals */
.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.admin-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.admin-modal-dialog {
  background: var(--ink);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}
.admin-modal-backdrop.open .admin-modal-dialog {
  transform: translateY(0);
}
.admin-modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(4, 26, 23, 0.6);
}
.admin-modal-head h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--mint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.admin-modal-close:hover { color: #fff; }
.admin-modal-body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}
.admin-modal-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(4, 26, 23, 0.4);
}

/* Form Helper Grid */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 600px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}
.form-group {
  margin-bottom: 12px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
}

/* Domain Master Banner */
.domain-banner {
  background: linear-gradient(135deg, rgba(8, 35, 31, 0.95), rgba(4, 26, 23, 0.95));
  border: 1px solid rgba(151, 252, 228, 0.25);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.domain-banner-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.domain-chip {
  background: var(--ink-input);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
  color: var(--mint);
  font-weight: 700;
}

/* AI Campaign Studio Styles */
.ai-copy-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-copy-item {
  background: var(--ink-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: #fff;
  transition: border-color 0.2s;
}
.ai-copy-item:hover {
  border-color: var(--mint);
}
.char-count {
  font-family: monospace;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  white-space: nowrap;
}
.char-count.good { color: var(--mint); border: 1px solid rgba(151, 252, 228, 0.2); }
.char-count.warn { color: var(--warning); }
.ai-box {
  background: var(--ink-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  max-height: 180px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.ai-box.mono {
  font-family: monospace;
  font-size: 11.5px;
  color: #a4e5d7;
}

/* Integration Cards & Status Badges */
.integration-card {
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.integration-card:hover {
  border-color: var(--mint);
  box-shadow: 0 4px 20px rgba(0, 255, 163, 0.08);
}
.status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.status-badge.connected {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--success);
}
.status-badge.disconnected {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: var(--danger);
}
.status-badge.testing {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--warning);
}

/* ═════════════════════════════════════════════════════════════════════
   Divine Ad Compliance Scanner & Live Mockup Previewers
   ═════════════════════════════════════════════════════════════════════ */
.compliance-panel {
  background: linear-gradient(135deg, rgba(8, 35, 31, 0.95), rgba(4, 26, 23, 0.95));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.compliance-score-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.compliance-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--mint);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(151, 252, 228, 0.08);
  box-shadow: 0 0 15px rgba(151, 252, 228, 0.2);
}
.compliance-circle-score {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.compliance-circle-label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--mint);
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.compliance-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.compliance-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.compliance-tag.safe {
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.compliance-tag.flagged {
  background: rgba(248, 113, 113, 0.12);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

/* Google SERP Live Mockup */
.ad-mockup-serp {
  background: #202124;
  border-radius: 8px;
  padding: 16px 20px;
  color: #bdc1c6;
  font-family: Arial, sans-serif;
  border: 1px solid #3c4043;
  margin-top: 12px;
}
.serp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #bdc1c6;
  margin-bottom: 4px;
}
.serp-badge {
  font-weight: 700;
  font-size: 11px;
  color: #fff;
  background: #303134;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid #5f6368;
}
.serp-domain {
  color: #bdc1c6;
  font-size: 12px;
}
.serp-title {
  color: #8ab4f8;
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.3;
  margin-bottom: 6px;
  display: block;
}
.serp-title:hover {
  text-decoration: underline;
}
.serp-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #bdc1c6;
  margin-bottom: 10px;
}
.serp-sitelinks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #3c4043;
}
.serp-sitelink-title {
  color: #8ab4f8;
  font-size: 13px;
  font-weight: 500;
}
.serp-sitelink-desc {
  font-size: 11.5px;
  color: #9aa0a6;
  margin-top: 2px;
}

/* X / Twitter Sponsored Feed Mockup */
.ad-mockup-x {
  background: #000;
  border-radius: 12px;
  border: 1px solid #2f3336;
  padding: 16px;
  color: #e7e9ea;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin-top: 12px;
}
.x-mockup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.x-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.x-user-title {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}
.x-handle {
  color: #71767b;
  font-size: 13px;
}
.x-body-text {
  font-size: 14px;
  line-height: 1.5;
  color: #e7e9ea;
  white-space: pre-wrap;
  margin-bottom: 12px;
}
.x-card-preview {
  border: 1px solid #2f3336;
  border-radius: 12px;
  overflow: hidden;
  background: #16181c;
}
.x-card-img {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #031412, #072723);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #2f3336;
}
.x-card-body {
  padding: 10px 14px;
}
.x-card-host {
  font-size: 11px;
  color: #71767b;
  text-transform: lowercase;
}
.x-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

/* ═════════════════════════════════════════════════════════════════════
   Predictive ROAS Optimizer & Multi-Touch Attribution Engine
   ═════════════════════════════════════════════════════════════════════ */
.forecast-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.forecast-stat-card {
  background: var(--ink-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.forecast-stat-title {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.forecast-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
}
.forecast-stat-value.mint {
  color: var(--mint);
}

.attribution-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.attribution-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  gap: 12px;
}
.attribution-channel {
  width: 140px;
  color: #fff;
  font-weight: 600;
}
.attribution-progress-track {
  flex: 1;
  height: 8px;
  background: var(--ink-input);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.attribution-progress-fill {
  height: 100%;
  background: var(--mint);
  border-radius: 4px;
  transition: width 0.3s ease;
}
.attribution-val {
  font-family: monospace;
  color: var(--mint);
  width: 50px;
  text-align: right;
  font-size: 12px;
}

/* ═════════════════════════════════════════════════════════════════════
   Environment Mode Switcher (Live Production vs Demo Sandbox)
   ═════════════════════════════════════════════════════════════════════ */
.env-toggle-wrap {
  display: inline-flex;
  align-items: center;
}
.env-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.env-btn.live {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--mint);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}
.env-btn.live:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: var(--mint);
}
.env-btn.demo {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}
.env-btn.demo:hover {
  background: rgba(245, 158, 11, 0.16);
  border-color: #fbbf24;
}
.env-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.env-btn.live .env-dot {
  background: var(--mint);
  box-shadow: 0 0 6px var(--mint);
  animation: pulse-dot 2s infinite;
}
.env-btn.demo .env-dot {
  background: #fbbf24;
  box-shadow: 0 0 6px #fbbf24;
  animation: pulse-dot 2s infinite;
}

.empty-table-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-dim);
  font-size: 13px;
  font-style: italic;
  background: rgba(255, 255, 255, 0.015);
  border-radius: 6px;
  border: 1px dashed var(--border);
  margin: 12px 0;
}

/* ═════════════════════════════════════════════════════════════════════
   Omni-Cloner & Semantic Website Template Studio
   ═════════════════════════════════════════════════════════════════════ */
.cloner-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.cloner-preview-wrapper {
  width: 100%;
  background: #020d0b;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  min-height: 400px;
}
.cloner-iframe-desktop {
  width: 100%;
  height: 540px;
  border: none;
  border-radius: 8px;
  transition: width 0.3s ease;
}
.cloner-iframe-tablet {
  width: 768px;
  max-width: 100%;
  height: 540px;
  border: none;
  border-radius: 8px;
  transition: width 0.3s ease;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}
.cloner-iframe-mobile {
  width: 375px;
  max-width: 100%;
  height: 540px;
  border: none;
  border-radius: 8px;
  transition: width 0.3s ease;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}




