/* ==========================================================================
   AdMind AI - Dark Glassmorphism Design System & Stylesheet
   ========================================================================== */

:root {
  --bg-dark: #0b0f19;
  --bg-surface: #131b2e;
  --bg-card: rgba(23, 32, 54, 0.7);
  --bg-glass: rgba(19, 27, 46, 0.65);

  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.4);

  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-emerald: #10b981;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 25px rgba(139, 92, 246, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 40%);
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* App Container */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Navigation */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

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

.brand-text .name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-text .highlight {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.35rem;
  border-radius: 100px;
  border: 1px solid var(--border-color);
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.nav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-btn.active {
  background: linear-gradient(135deg, var(--accent-purple), #6d28d9);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.nav-btn.accent {
  position: relative;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.nav-btn.accent:hover, .nav-btn.accent.active {
  background: var(--accent-cyan);
  color: #000000;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.live-ticker {
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
}

.ticker-label {
  color: var(--text-muted);
  margin-right: 0.35rem;
}

.ticker-val {
  color: var(--accent-emerald);
  font-weight: 700;
}

.split-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
}

.split-item.platform { color: var(--accent-purple); }
.split-item.pub { color: var(--accent-pink); }
.split-divider { color: var(--text-muted); }

/* Main Content */
.main-content {
  flex: 1;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.tab-pane.active {
  display: block;
}

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

/* Buttons & Inputs */
.btn {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Glass Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* TAB 1: HERO & STATS */
.hero-banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
  padding: 2.5rem;
  background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.15), transparent 60%), var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.pill-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--accent-purple);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-text h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, #a78bfa, #f472b6, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
}

/* Ad Preview Box */
.ad-preview-box {
  background: #0f172a;
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-glow);
}

.ad-preview-box.floating-glow {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.ad-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.ad-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent-pink);
  background: rgba(236, 72, 153, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(236, 72, 153, 0.25);
}

.ad-timer {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ad-content-sim {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ad-logo-wrapper {
  width: 44px;
  height: 44px;
  background: #1e293b;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ad-logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ad-copy {
  flex: 1;
}

.ad-headline {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.ad-link-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.ad-click-btn {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.4);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-fast);
}

.ad-click-btn:hover {
  background: var(--accent-purple);
  color: #ffffff;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: var(--transition-fast);
}

.stat-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }
.stat-icon.cyan { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.stat-icon.emerald { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.stat-icon.pink { background: rgba(236, 72, 153, 0.15); color: var(--accent-pink); }

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0.2rem 0;
  letter-spacing: -0.02em;
}

.highlight-cyan { color: var(--accent-cyan); }
.highlight-emerald { color: var(--accent-emerald); }

.stat-trend {
  font-size: 0.75rem;
  font-weight: 700;
}

.stat-trend.positive { color: var(--accent-emerald); }
.stat-subtitle { font-size: 0.75rem; color: var(--text-muted); }

/* Features Section */
.features-section h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  position: relative;
}

.step-num {
  font-family: var(--font-code);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* TAB 2: ADVERTISER PORTAL */
.pane-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.pane-header h2 {
  font-size: 2rem;
  font-weight: 800;
}

.pane-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.advertiser-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2rem;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 1.1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}

.brand-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.table-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #1e293b;
  padding: 4px;
}

.bid-badge {
  font-family: var(--font-code);
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.status-tag.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.side-panel h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.panel-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.creative-preview {
  margin-bottom: 2rem;
}

.bidding-calculator {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.bidding-calculator h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.calc-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.calc-row label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.input-with-symbol {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-symbol span {
  position: absolute;
  left: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
}

.input-with-symbol input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.65rem 0.85rem 0.65rem 2rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent-purple);
}

.payout-summary-box {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.summary-line.split-line {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px border-color;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* TAB 3: PUBLISHER HUB */
.publisher-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2rem;
}

.platform-selector {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.platform-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.platform-tab.active {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.4);
}

.code-box-wrapper {
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2rem;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.copy-btn {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.copy-btn:hover {
  background: var(--accent-purple);
  color: #ffffff;
}

.code-block {
  padding: 1.25rem;
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: #38bdf8;
  overflow-x: auto;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.guide-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.guide-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.guide-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.guide-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Publisher Payout Box */
.pub-calc-box {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.input-group label {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.input-group input {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
}

.earnings-breakdown {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.earning-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.pub-share-highlight {
  color: var(--accent-emerald);
  font-size: 0.95rem;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--border-color);
}

.monthly-projection {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.monthly-projection h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-emerald);
  margin: 0.2rem 0;
}

.monthly-projection small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* TAB 4: LIVE AI OVERLAY SANDBOX */
.sandbox-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.custom-select {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.sandbox-container {
  max-width: 950px;
  margin: 0 auto;
}

.ai-chat-window {
  background: #0d1322;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.ai-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
}

.ai-model-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}

.ai-status-indicator.online {
  width: 10px;
  height: 10px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
}

.badge-mini {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.ai-messages-log {
  padding: 1.5rem;
  min-height: 280px;
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.chat-msg {
  display: flex;
  gap: 1rem;
  animation: fadeIn 0.3s ease-out;
}

.chat-msg.user-msg {
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.chat-msg.user-msg .msg-avatar {
  background: var(--accent-purple);
}

.msg-body {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  max-width: 80%;
  font-size: 0.92rem;
}

.chat-msg.user-msg .msg-body {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
}

/* THINKING AD OVERLAY (The core feature) */
.thinking-ad-overlay {
  display: none;
  margin: 0 1.5rem 1.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid var(--accent-purple);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.3);
  animation: slideUp 0.3s ease-out;
}

.thinking-ad-overlay.active {
  display: block;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.thinking-spinner-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

.spinner-dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent-cyan);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ad-notice {
  margin-left: auto;
  font-size: 0.68rem;
  color: var(--accent-pink);
  background: rgba(236, 72, 153, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.overlay-ad-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.overlay-logo {
  width: 46px;
  height: 46px;
  background: #1e293b;
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.overlay-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.overlay-text-group {
  flex: 1;
}

.overlay-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.overlay-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.sponsor-link {
  color: var(--accent-cyan);
}

.bid-info strong {
  color: var(--accent-emerald);
}

.overlay-visit-btn {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-fast);
}

.overlay-visit-btn:hover {
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.5);
  transform: scale(1.03);
}

.ai-input-area {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border-color);
}

.ai-input-area input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.92rem;
}

.ai-input-area input:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

/* MODAL */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.active {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
}

.close-modal-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input, .form-group select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-banner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .advertiser-layout, .publisher-layout { grid-template-columns: 1fr; }
  .anim-workflow-grid { grid-template-columns: 1fr; }
}

/* Interactive Workflow Animation Styles */
.workflow-demo-panel {
  margin-bottom: 3rem;
  background: var(--bg-surface);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.anim-workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.anim-step-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.anim-step-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.anim-step-num {
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-pink);
  background: rgba(236, 72, 153, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.anim-step-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.code-typing-box {
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: #38bdf8;
  position: relative;
  min-height: 110px;
  overflow-x: auto;
}

.typing-cursor {
  animation: blink 0.8s infinite;
  color: var(--accent-pink);
  font-weight: 800;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.rendered-ad-sim-box {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-ad-container {
  width: 100%;
}

.ad-placeholder-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

.revenue-ticker-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ticker-counter-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.views-pulse-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   SikAds 2.0 — product-led visual system
   ========================================================================== */
:root {
  --bg-dark: #06110f;
  --bg-surface: #0a1a17;
  --bg-card: rgba(11, 31, 27, 0.72);
  --bg-glass: rgba(7, 24, 21, 0.76);
  --border-color: rgba(202, 255, 219, 0.12);
  --border-glow: rgba(119, 247, 154, 0.36);
  --accent-purple: #77f79a;
  --accent-cyan: #58d9ca;
  --accent-pink: #ff7a5c;
  --accent-emerald: #77f79a;
  --text-primary: #f2fff6;
  --text-secondary: #a8c3b5;
  --text-muted: #718e80;
  --font-main: 'Outfit', sans-serif;
  --font-code: 'Space Mono', monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-glow: 0 0 0 1px rgba(119, 247, 154, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 72% 8%, rgba(88, 217, 202, 0.12), transparent 28rem),
    radial-gradient(circle at 8% 45%, rgba(119, 247, 154, 0.06), transparent 34rem),
    linear-gradient(155deg, #06110f 0%, #071a17 48%, #06100f 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg width='76' height='76' viewBox='0 0 76 76' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M76 0H0v76' fill='none' stroke='%2377f79a' stroke-opacity='.12' stroke-width='.7'/%3E%3C/svg%3E");
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

button,
input,
select {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(119, 247, 154, 0.55);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.65rem 0.9rem;
  color: #06110f;
  background: var(--accent-emerald);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.top-nav {
  padding: 0.9rem clamp(1rem, 3vw, 2.5rem);
  background: rgba(6, 17, 15, 0.78);
  border-color: rgba(202, 255, 219, 0.1);
}

.logo-icon {
  border-radius: 7px;
  color: var(--accent-emerald);
  background: rgba(119, 247, 154, 0.07);
  border-color: rgba(119, 247, 154, 0.24);
  box-shadow: none;
}

.logo-icon path {
  stroke: var(--accent-emerald);
}

.brand-text .name {
  letter-spacing: 0.06em;
}

.brand-text .highlight {
  color: var(--accent-emerald);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.badge-tag {
  color: var(--text-muted);
}

.nav-links {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.nav-btn {
  border-radius: 5px;
}

.nav-btn.active {
  color: #06110f;
  background: var(--accent-emerald);
  box-shadow: none;
}

.nav-btn.accent {
  color: var(--accent-cyan);
  background: transparent;
  border-color: rgba(88, 217, 202, 0.26);
}

.live-ticker {
  background: rgba(119, 247, 154, 0.06);
  border-color: rgba(119, 247, 154, 0.2);
}

.ticker-val,
.split-item.platform,
.split-item.pub {
  color: var(--accent-emerald);
}

.main-content {
  max-width: 1480px;
  padding: clamp(1rem, 3vw, 2.5rem);
}

.hero-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(720px, calc(100vh - 120px));
  overflow: hidden;
  margin: 0 calc(clamp(1rem, 3vw, 2.5rem) * -1) 4.5rem;
  padding: clamp(3rem, 8vw, 7.5rem) clamp(1.25rem, 8vw, 8rem);
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(4, 15, 13, 0.94) 0%, rgba(4, 15, 13, 0.62) 52%, rgba(4, 15, 13, 0.12) 100%),
    radial-gradient(circle at 78% 44%, rgba(119, 247, 154, 0.2), transparent 23%),
    linear-gradient(145deg, #071513, #0a2822 56%, #123a30);
}

.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(90deg, transparent 0 8.5%, rgba(255, 255, 255, 0.025) 8.5% calc(8.5% + 1px));
  mask-image: linear-gradient(to right, transparent 18%, black);
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-brand {
  margin-bottom: 1.25rem;
  color: var(--accent-emerald);
  font-family: var(--font-code);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.32em;
  animation: reveal-up 650ms ease-out both;
}

.hero-text h1 {
  max-width: 780px;
  margin-bottom: 1.35rem;
  font-size: clamp(3.25rem, 7.7vw, 7.6rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  animation: reveal-up 720ms 80ms ease-out both;
}

.gradient-text {
  color: #d9ffe2;
  background: linear-gradient(105deg, #f2fff6 5%, #77f79a 65%, #58d9ca);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  max-width: 620px;
  margin-bottom: 2rem;
  color: #c1d8ca;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  animation: reveal-up 720ms 160ms ease-out both;
}

.hero-cta-group {
  animation: reveal-up 720ms 240ms ease-out both;
}

.btn {
  min-height: 44px;
  border-radius: 5px;
}

.btn-primary {
  color: #06110f;
  background: var(--accent-emerald);
  box-shadow: none;
}

.btn-primary:hover {
  color: #06110f;
  background: #a2ffb8;
  box-shadow: none;
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(6, 17, 15, 0.55);
  border-color: rgba(242, 255, 246, 0.25);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.orbit {
  position: absolute;
  top: 50%;
  right: 5%;
  width: min(48vw, 650px);
  aspect-ratio: 1;
  border: 1px solid rgba(119, 247, 154, 0.26);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: orbit-breathe 7s ease-in-out infinite;
}

.orbit::before,
.orbit::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.orbit::before {
  inset: 13%;
  border: 1px dashed rgba(88, 217, 202, 0.3);
  animation: orbit-spin 22s linear infinite;
}

.orbit::after {
  inset: 35%;
  background: radial-gradient(circle, rgba(119, 247, 154, 0.4), rgba(88, 217, 202, 0.06) 45%, transparent 70%);
  filter: blur(6px);
}

.orbit-two {
  right: -5%;
  width: min(32vw, 420px);
  animation-delay: -3s;
}

.signal-line {
  position: absolute;
  right: 3%;
  width: 52%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-emerald), transparent);
  transform-origin: right;
  animation: signal-scan 3.4s ease-in-out infinite;
}

.signal-one { top: 35%; }
.signal-two { top: 67%; animation-delay: -1.7s; }

.signal-copy {
  position: absolute;
  right: 4%;
  bottom: 5%;
  color: rgba(198, 255, 213, 0.42);
  font-family: var(--font-code);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

.glass-panel {
  background: var(--bg-card);
  border-color: var(--border-color);
  box-shadow: none;
}

.workflow-demo-panel {
  background: linear-gradient(140deg, rgba(13, 42, 35, 0.86), rgba(6, 20, 17, 0.86));
  border-color: rgba(119, 247, 154, 0.18);
}

.anim-step-card,
.stat-card,
.feature-card,
.guide-card {
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.stats-grid {
  gap: 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stat-card {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--border-color);
}

.stat-card:last-child {
  border-right: 0;
}

.stat-card:hover {
  background: rgba(119, 247, 154, 0.04);
  transform: none;
}

.features-grid {
  gap: 0;
}

.feature-card {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--border-color);
}

.feature-card:hover {
  background: rgba(119, 247, 154, 0.03);
  transform: none;
}

.ad-click-btn,
.copy-btn,
.sikads-slot-btn {
  color: var(--accent-emerald);
  border-color: rgba(119, 247, 154, 0.32);
  background: rgba(119, 247, 154, 0.08);
}

.ad-click-btn:hover,
.copy-btn:hover {
  color: #06110f;
  background: var(--accent-emerald);
}

.data-table tbody tr:hover {
  background: rgba(119, 247, 154, 0.035);
}

.modal-box {
  border-color: rgba(119, 247, 154, 0.32);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes orbit-breathe {
  0%, 100% { transform: translateY(-50%) scale(0.96); opacity: 0.7; }
  50% { transform: translateY(-50%) scale(1.04); opacity: 1; }
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes signal-scan {
  0%, 100% { opacity: 0; transform: scaleX(0.2); }
  45%, 60% { opacity: 0.8; transform: scaleX(1); }
}

@media (max-width: 1180px) {
  .header-actions {
    display: none;
  }

  .top-nav {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .nav-btn {
    flex: 0 0 auto;
  }
}

@media (max-width: 720px) {
  .top-nav {
    position: relative;
    padding: 0.8rem;
  }

  .brand {
    padding-left: 0.25rem;
  }

  .nav-links {
    margin: 0 -0.2rem;
    padding: 0.25rem;
  }

  .nav-btn {
    padding: 0.55rem 0.72rem;
    font-size: 0.78rem;
  }

  .nav-btn svg {
    display: none;
  }

  .main-content {
    padding: 0.85rem;
  }

  .hero-banner {
    min-height: 660px;
    align-items: flex-end;
    margin: 0 -0.85rem 3rem;
    padding: 3rem 1.15rem 3.5rem;
  }

  .hero-text h1 {
    font-size: clamp(3.25rem, 17vw, 5rem);
  }

  .hero-cta-group {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-cta-group .btn {
    justify-content: center;
  }

  .orbit {
    top: 28%;
    right: -34%;
    width: 105vw;
  }

  .signal-copy {
    top: 6%;
    bottom: auto;
  }

  .panel-top,
  .pane-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    border-right: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .anim-workflow-grid,
  .guide-cards {
    grid-template-columns: 1fr;
  }

  .glass-panel,
  .workflow-demo-panel {
    padding: 1rem;
  }

  .ai-input-area {
    align-items: stretch;
    flex-direction: column;
  }

  .overlay-ad-card,
  .ad-content-sim {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .overlay-visit-btn {
    margin-left: 3.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Pass 2 — contrast, sandbox polish, section cohesion
   ========================================================================== */
.nav-label-short {
  display: none;
}

.anim-step-card {
  transition: border-color 220ms ease, transform 220ms ease, background 220ms ease;
}

.anim-step-card.is-active {
  border-color: rgba(119, 247, 154, 0.55);
  background: rgba(119, 247, 154, 0.06);
  transform: translateY(-2px);
}

.sikads-slot-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(119, 247, 154, 0.28);
  border-radius: 8px;
  background: linear-gradient(120deg, #0a1f1a, #12352c);
  animation: fadeIn 0.35s ease-out;
}

.sikads-slot-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 5px;
  border-radius: 6px;
  background: #fff;
}

.sikads-slot-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sikads-slot-content {
  min-width: 0;
  flex: 1;
}

.sikads-slot-title {
  color: #f2fff6;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.sikads-slot-sub {
  margin-top: 0.15rem;
  color: #91aa9d;
  font-size: 0.7rem;
}

.sikads-slot-sub strong {
  color: var(--accent-emerald);
}

.badge-mini,
.bid-badge,
.status-tag {
  color: var(--accent-emerald);
  background: rgba(119, 247, 154, 0.1);
  border: 1px solid rgba(119, 247, 154, 0.24);
  border-radius: 999px;
}

.pane-header h2 {
  letter-spacing: -0.03em;
}

.platform-tab.active {
  color: #06110f;
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
}

.code-block,
.code-typing-box {
  color: #9dffb7;
  background: #04110e;
  border-color: rgba(119, 247, 154, 0.16);
}

.ai-chat-window {
  background: linear-gradient(180deg, #0a1a17, #071310);
  border-color: rgba(119, 247, 154, 0.18);
  box-shadow: none;
}

.ai-chat-header {
  background: rgba(119, 247, 154, 0.04);
}

.badge-mini {
  white-space: nowrap;
}

.msg-avatar {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  color: #06110f;
  background: var(--accent-emerald);
  font-family: var(--font-code);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.chat-msg.user-msg .msg-avatar {
  background: var(--accent-cyan);
}

.msg-body {
  color: #e8fff0;
  background: rgba(242, 255, 246, 0.05);
  border-color: rgba(202, 255, 219, 0.16);
}

.chat-msg.user-msg .msg-body {
  color: #f2fff6;
  background: rgba(88, 217, 202, 0.14);
  border-color: rgba(88, 217, 202, 0.28);
}

.thinking-ad-overlay {
  border-color: rgba(119, 247, 154, 0.45);
  background: linear-gradient(135deg, rgba(12, 42, 34, 0.96), rgba(7, 20, 17, 0.98));
  box-shadow: 0 0 0 1px rgba(119, 247, 154, 0.08);
}

.thinking-spinner-bar {
  color: var(--accent-cyan);
}

.ad-notice {
  color: #06110f;
  background: var(--accent-emerald);
  border: 0;
}

.overlay-logo {
  background: #fff;
}

.overlay-visit-btn {
  color: #06110f;
  background: var(--accent-emerald);
}

.overlay-visit-btn:hover {
  background: #a2ffb8;
  box-shadow: none;
  transform: translateY(-1px);
}

.ai-input-area {
  background: rgba(4, 17, 14, 0.72);
}

.ai-input-area input {
  background: #0a1a17;
  border-color: rgba(119, 247, 154, 0.2);
}

.ai-input-area input:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(119, 247, 154, 0.18);
}

.send-prompt-btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.ad-preview-box,
.creative-preview {
  border-color: rgba(119, 247, 154, 0.28);
  background: #071513;
  box-shadow: none;
}

.ad-badge {
  color: #06110f;
  background: var(--accent-pink);
  border: 0;
}

.monthly-projection {
  background: rgba(119, 247, 154, 0.08);
  border-color: rgba(119, 247, 154, 0.24);
}

.stat-icon.purple,
.stat-icon.pink,
.stat-icon.cyan,
.stat-icon.emerald {
  color: var(--accent-emerald);
  background: rgba(119, 247, 154, 0.1);
}

@media (max-width: 720px) {
  .nav-label-full {
    display: none;
  }

  .nav-label-short {
    display: inline;
  }

  .nav-btn {
    gap: 0.35rem;
  }

  .nav-btn svg,
  .nav-btn .live-dot {
    display: inline-block;
  }

  .sikads-slot-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .sikads-slot-btn {
    margin-left: 48px;
  }
}

/* Site chrome, legal, support, admin */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-link {
  text-decoration: none;
  color: inherit;
}

.top-nav-simple .nav-btn {
  text-decoration: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 3vw, 2.5rem) 2rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.footer-brand {
  font-family: var(--font-code);
  letter-spacing: 0.18em;
  color: var(--accent-emerald);
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-admin {
  opacity: 0.55;
}

.legal-page,
.support-page,
.admin-page {
  max-width: 1100px;
}

.legal-card h1,
.admin-login h1,
.support-page h1,
.admin-page h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}

.legal-kicker {
  color: var(--accent-emerald);
  font-family: var(--font-code);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.legal-card h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
  line-height: 1.65;
}

.legal-card ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
}

.legal-card a {
  color: var(--accent-emerald);
}

.support-layout,
.admin-grid,
.admin-grid-2 {
  display: grid;
  gap: 1rem;
}

.support-layout {
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
}

.support-chat {
  min-width: 0;
}

.support-input-area {
  align-items: stretch;
}

.support-status {
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.support-status.is-error {
  color: #ff8f75;
}

.support-side h2,
.admin-page h2,
.admin-page h3 {
  margin-bottom: 0.75rem;
}

.topic-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.topic-list li {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secondary);
}

.escalate-panel {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.escalate-form,
.admin-form {
  display: grid;
  gap: 0.55rem;
}

.escalate-form input,
.escalate-form textarea,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: #071513;
  color: var(--text-primary);
}

.admin-login {
  max-width: 460px;
  margin: 2rem auto;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-metric {
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(119, 247, 154, 0.04);
  display: grid;
  gap: 0.35rem;
}

.admin-metric span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.admin-metric strong {
  font-size: 1.45rem;
}

.admin-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.admin-grid-2 {
  grid-template-columns: 1.2fr 0.8fr;
}

.admin-list {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

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

.compact-form {
  margin-top: 1rem;
}

.widget-fieldset {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  display: grid;
  gap: 0.45rem;
}

.widget-fieldset label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 36px;
}

@media (max-width: 980px) {
  .support-layout,
  .admin-grid,
  .admin-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-card,
  .support-side,
  .admin-login,
  .admin-page .glass-panel {
    padding: 1rem;
  }

  .table-container {
    overflow-x: auto;
  }
}

/* ==========================================================================
   Extension Download & Installation Page Styles
   ========================================================================== */
.extension-page-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.ext-hero-section {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  overflow: hidden;
}

.ext-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  max-width: 950px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-purple);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ext-hero-content h1 {
  font-size: 2.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 800px;
}

.hero-lead strong {
  color: var(--accent-emerald);
}

.browser-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  width: 100%;
  margin-top: 1.5rem;
}

.browser-download-card {
  background: rgba(19, 27, 46, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-fast);
}

.browser-download-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.browser-download-card.featured {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.06);
}

.browser-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
}

.browser-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.version-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-family: var(--font-code);
  margin-top: 0.2rem;
}

.browser-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition-fast);
  cursor: pointer;
}

.chrome-btn {
  background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
  color: #fff;
}

.firefox-btn {
  background: linear-gradient(135deg, #FF7139 0%, #FF9400 100%);
  color: #fff;
}

.edge-btn {
  background: linear-gradient(135deg, #0078D4 0%, #00C853 100%);
  color: #fff;
}

.script-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  color: #fff;
}

.download-btn:hover {
  filter: brightness(1.15);
  transform: scale(1.02);
}

/* Explanation Cards */
.text-center-panel {
  text-align: center;
}

.panel-header-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-emerald);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.explain-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 850px;
  margin: 0.5rem auto 2rem auto;
}

.explanation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.explain-card {
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: left;
  position: relative;
}

.explain-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-purple);
  opacity: 0.6;
  font-family: var(--font-code);
  margin-bottom: 0.5rem;
}

.explain-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.explain-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Guide Cards */
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.guide-title-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.guide-title-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.guide-badge {
  padding: 0.3rem 0.75rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: rgba(11, 15, 25, 0.5);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.step-badge {
  padding: 0.35rem 0.75rem;
  background: var(--accent-purple);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 6px;
  white-space: nowrap;
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.step-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.platforms-flex-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.highlight-panel {
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.05);
}

.security-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  list-style: none;
}

.security-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.security-list strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Mobile Optimization & Responsive UX System
   ========================================================================== */

@media (max-width: 860px) {
  .top-nav {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    display: flex;
    gap: 0.4rem;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-btn {
    scroll-snap-align: start;
    flex-shrink: 0;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    min-height: 40px;
  }

  .header-actions {
    margin-left: auto;
  }

  .ext-hero-content h1,
  .hero-text h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .hero-lead,
  .explain-lead {
    font-size: 1rem;
  }

  .browser-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .extension-page-layout,
  .app-container {
    padding: 0.5rem;
  }

  .ext-hero-section,
  .hero-banner,
  .glass-panel {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }

  .hero-cta-group,
  .browser-download-card {
    width: 100%;
  }

  .download-btn,
  .btn,
  .ad-btn,
  .ad-click-btn {
    width: 100%;
    min-height: 44px; /* iOS & Android touch target standard */
    font-size: 0.95rem;
    justify-content: center;
  }

  .step-item {
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem;
  }

  .guide-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .platform-chip {
    width: 100%;
    justify-content: flex-start;
  }

  input,
  select,
  textarea {
    font-size: 16px !important; /* Prevents auto-zoom on mobile safari */
    min-height: 44px;
  }

  .live-ticker,
  .split-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }
}

/* ==========================================================================
   UNIVERSAL DESKTOP, PAD/TABLET & MOBILE SCREEN FIT UX SYSTEM
   ========================================================================== */

/* Universal Layout Container Boundaries */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

img, video, canvas, svg, iframe {
  max-width: 100%;
}

.container, .app-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Table Responsive Wrappers */
.table-container,
div[style*="overflow-x: auto"] {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

/* Paywall Modal Responsive Rules */
#campaign-paywall-modal > div {
  width: 95vw !important;
  max-width: 580px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* World Map Responsiveness */
.map-replay-panel canvas,
#map-canvas,
#dash-map-canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Breakpoint 1: Pad & Tablet (1024px and below) */
@media (max-width: 1024px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Stack World Map Canvas & Telemetry Sidebar on Tablets */
  div[style*="grid-template-columns: 1fr 300px"],
  div[style*="grid-template-columns: 1fr 280px"] {
    grid-template-columns: 1fr !important;
  }

  #telemetry-feed-box,
  #dash-telemetry-feed {
    max-height: 240px !important;
  }

  .hero-section {
    padding: 3rem 1rem 2rem 1rem !important;
  }

  .hero-section h1 {
    font-size: clamp(2rem, 5vw, 2.75rem) !important;
  }
}

/* Breakpoint 2: Mobile & Small Pad (768px and below) */
@media (max-width: 768px) {
  /* Header & Navigation Adjustments */
  .header-container,
  .top-nav {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links a {
    flex-shrink: 0;
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  /* Grid Stack Adjustments */
  .dash-grid,
  .anim-workflow-grid,
  div[style*="grid-template-columns: repeat(auto-fit"] {
    grid-template-columns: 1fr !important;
  }

  /* Paywall Method Option Radio Group */
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Article Containers */
  article {
    padding: 1.5rem 1.25rem !important;
  }

  article h1 {
    font-size: 1.8rem !important;
  }

  article h2 {
    font-size: 1.35rem !important;
  }
}

/* Breakpoint 3: Small Mobile (480px and below) */
@media (max-width: 480px) {
  body {
    font-size: 0.92rem;
  }

  #campaign-paywall-modal > div {
    padding: 1.25rem !important;
    border-radius: 16px !important;
  }

  .btn,
  button[type="submit"],
  #confirm-pay-and-activate-btn {
    font-size: 0.95rem !important;
    padding: 12px 16px !important;
    min-height: 46px !important;
  }

  input, select, textarea {
    font-size: 16px !important;
    padding: 10px 12px !important;
  }
}



