/* Caribbean Digital Business Analytics – Dark professional theme */
:root {
  --cba-bg: #0a0e17;
  --cba-bg-card: #111827;
  --cba-bg-sidebar: #0d1321;
  --cba-border: #1e293b;
  --cba-glow: rgba(20, 255, 236, 0.35);
  --cba-teal: #14ffec;
  --cba-teal-dim: #0d7377;
  --cba-gold: #f5c542;
  --cba-coral: #ff6b6b;
  --cba-lime: #a3e635;
  --cba-purple: #a78bfa;
  --cba-text: #e2e8f0;
  --cba-text-muted: #94a3b8;
  --cba-radius: 12px;
  --cba-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.cba-app, .cba-admin-wrap {
  font-family: var(--cba-font);
  background: var(--cba-bg);
  color: var(--cba-text);
  min-height: 100vh;
  margin: -20px -20px 0 -22px; /* admin offset */
  padding: 15px 15px 15px 15px;
  box-sizing: border-box;
}

/* Top bar */
.cba-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: linear-gradient(180deg, #0d1321 0%, #0a0e17 100%);
  border-bottom: 1px solid var(--cba-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 0 20px rgba(20, 255, 236, 0.08);
}

.cba-logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cba-teal);
  letter-spacing: 0.02em;
}

.cba-topbar-center {
  flex: 1;
  text-align: center;
}

.cba-datetime {
  font-family: "SF Pro Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #14ffec 0%, #a78bfa 50%, #f5c542 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 8px rgba(20, 255, 236, 0.35));
}

.cba-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cba-flag-selector {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cba-current-flag {
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.3));
}

.cba-select-flag {
  background: var(--cba-bg-card);
  color: var(--cba-text);
  border: 1px solid var(--cba-border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.8rem;
  max-width: 160px;
}

.cba-btn-google-trends {
  background: transparent;
  border: 1px solid var(--cba-gold);
  color: var(--cba-gold);
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.cba-btn-google-trends:hover {
  background: rgba(245, 197, 66, 0.15);
  box-shadow: 0 0 12px rgba(245, 197, 66, 0.4);
  color: var(--cba-gold);
}

.cba-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.cba-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--cba-teal);
  object-fit: cover;
}

.cba-avatar-lg {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--cba-teal);
  box-shadow: 0 0 20px var(--cba-glow);
  object-fit: cover;
}

/* Layout */
.cba-layout {
  display: flex;
  min-height: calc(100vh - 57px);
}

.cba-sidebar {
  width: 240px;
  background: var(--cba-bg-sidebar);
  border-right: 1px solid var(--cba-border);
  padding: 16px 0;
  flex-shrink: 0;
}

.cba-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cba-nav-item {
  display: block;
  padding: 10px 20px;
  color: var(--cba-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.cba-nav-item:hover,
.cba-nav-item.active {
  color: var(--cba-teal);
  background: rgba(20, 255, 236, 0.06);
  border-left-color: var(--cba-teal);
  text-shadow: 0 0 8px var(--cba-glow);
}

.cba-nav-item.cba-whatsapp {
  color: #25d366;
  margin-top: 12px;
  border-top: 1px solid var(--cba-border);
  padding-top: 16px;
}

.cba-main {
  flex: 1;
  padding: 15px 15px 15px 15px;
  overflow-x: hidden;
}

.cba-panel {
  display: none;
}
.cba-panel.active {
  display: block;
  animation: cba-fade 0.3s ease;
}

@keyframes cba-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.cba-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #ffffff !important;
}

.cba-subtitle {
  color: #e2e8f0 !important;
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.cba-panel h1, .cba-panel h2, .cba-panel h3,
.cba-card h3, .cba-biz-body h3, .cba-price-card h3, .cba-swot-box h4 {
  color: #ffffff !important;
}
.cba-biz-body p, .cba-biz-body .cba-tagline, .cba-review-card p,
.cba-theme-list li, .cba-card p, .cba-disclaimer, .cba-note {
  color: #e2e8f0 !important;
}

.cba-stat-card.cba-clickable { cursor: pointer; }
.cba-stat-card.cba-clickable:hover {
  border-color: var(--cba-teal);
  box-shadow: 0 0 20px var(--cba-glow);
}

.cba-biz-slider {
  position: relative; height: 160px; overflow: hidden;
  border-radius: 8px 8px 0 0; background: #1e293b;
}
.cba-biz-slider .cba-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.4s;
}
.cba-biz-slider .cba-slide.active { opacity: 1; }
.cba-biz-slider-nav {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px; z-index: 2;
}
.cba-biz-slider-nav span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
}
.cba-biz-slider-nav span.active {
  background: var(--cba-teal); box-shadow: 0 0 6px var(--cba-glow);
}

.cba-detail-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.cba-detail-table th, .cba-detail-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--cba-border);
  text-align: left; color: #e2e8f0;
}
.cba-detail-table th { color: var(--cba-teal); font-weight: 600; }

.cba-survey-bar {
  display: flex; height: 10px; border-radius: 5px; overflow: hidden;
  background: rgba(255,255,255,0.08); margin: 8px 0;
}
.cba-survey-bar .yes { background: linear-gradient(90deg, #0d7377, #14ffec); }
.cba-survey-bar .no { background: linear-gradient(90deg, #c0392b, #ff6b6b); }

.cba-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
}
.cba-badge-active { background: rgba(20,255,236,0.15); color: var(--cba-teal); }
.cba-badge-inactive { background: rgba(148,163,184,0.2); color: #94a3b8; }
.cba-badge-past { background: rgba(245,197,66,0.15); color: var(--cba-gold); }

.cba-hours-grid {
  display: grid; grid-template-columns: 90px 1fr 1fr; gap: 8px; align-items: center;
}
.cba-hours-grid span { color: #e2e8f0; font-size: 0.85rem; }

/* Cards & glow */
.cba-card, .cba-stat-card, .cba-biz-card, .cba-review-card, .cba-price-card {
  background: var(--cba-bg-card);
  border: 1px solid var(--cba-border);
  border-radius: var(--cba-radius);
  padding: 20px;
}

.cba-glow {
  box-shadow: 0 0 0 1px rgba(20, 255, 236, 0.12), 0 4px 24px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.25s, border-color 0.25s;
}
.cba-glow:hover {
  border-color: rgba(20, 255, 236, 0.35);
  box-shadow: 0 0 20px var(--cba-glow), 0 4px 28px rgba(0, 0, 0, 0.5);
}

/* Stats */
.cba-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.cba-stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cba-text-muted);
  margin-bottom: 6px;
}

.cba-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.cba-color-teal { color: var(--cba-teal); text-shadow: 0 0 14px var(--cba-glow); }
.cba-color-gold { color: var(--cba-gold); text-shadow: 0 0 14px rgba(245, 197, 66, 0.4); }
.cba-color-coral { color: var(--cba-coral); text-shadow: 0 0 14px rgba(255, 107, 107, 0.4); }
.cba-color-lime { color: var(--cba-lime); text-shadow: 0 0 14px rgba(163, 230, 53, 0.35); }

.cba-progress {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.cba-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--cba-teal-dim), var(--cba-teal));
  border-radius: 3px;
  box-shadow: 0 0 8px var(--cba-glow);
}
.cba-bar-gold { background: linear-gradient(90deg, #b8860b, var(--cba-gold)); box-shadow: 0 0 8px rgba(245,197,66,0.5); }
.cba-bar-coral { background: linear-gradient(90deg, #c0392b, var(--cba-coral)); box-shadow: 0 0 8px rgba(255,107,107,0.5); }
.cba-bar-lime { background: linear-gradient(90deg, #65a30d, var(--cba-lime)); box-shadow: 0 0 8px rgba(163,230,53,0.4); }

.cba-row {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.cba-flex-1 { flex: 1; min-width: 260px; }
.cba-flex-2 { flex: 2; min-width: 300px; }

.cba-theme-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cba-theme-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--cba-border);
  position: relative;
  padding-left: 18px;
}
.cba-theme-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cba-teal);
}

/* Buttons */
.cba-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.cba-btn-primary {
  background: linear-gradient(135deg, var(--cba-teal-dim), #14b8a6);
  color: #000000 !important;
  box-shadow: 0 0 16px rgba(20, 255, 236, 0.3);
}
.cba-btn-primary:hover {
  box-shadow: 0 0 24px rgba(20, 255, 236, 0.55);
  transform: translateY(-1px);
}
.cba-btn-outline {
  background: transparent;
  border: 1px solid var(--cba-teal);
  color: var(--cba-teal);
}
.cba-btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.cba-actions {
  margin: 20px 0;
}

.cba-disclaimer, .cba-note, .cba-empty {
  color: var(--cba-text-muted);
  font-size: 0.85rem;
  margin-top: 16px;
}

/* Forms */
.cba-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.cba-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--cba-text-muted);
}
.cba-form-grid label.cba-full {
  grid-column: 1 / -1;
}
.cba-form-grid input,
.cba-form-grid select,
.cba-form-grid textarea {
  background: #0a0e17;
  border: 1px solid var(--cba-border);
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--cba-text);
  font-size: 0.9rem;
}
.cba-form-grid input:focus,
.cba-form-grid select:focus,
.cba-form-grid textarea:focus {
  outline: none;
  border-color: var(--cba-teal);
  box-shadow: 0 0 0 3px rgba(20, 255, 236, 0.15);
}

/* Business grid */
.cba-business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.cba-biz-img {
  height: 140px;
  background-size: cover;
  background-position: center;
  border-radius: 8px 8px 0 0;
  background-color: #1e293b;
}
.cba-biz-body {
  padding: 14px;
}
.cba-biz-body h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.cba-tagline {
  color: var(--cba-text-muted);
  font-size: 0.85rem;
  margin: 0 0 8px;
}
.cba-stars {
  color: var(--cba-gold);
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.cba-meta {
  font-size: 0.8rem;
  color: var(--cba-text-muted);
}

/* SWOT grid */
.cba-swot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.cba-swot-box {
  padding: 18px;
  border-radius: var(--cba-radius);
  border: 1px solid var(--cba-border);
}
.cba-swot-box h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}
.cba-swot-box.s { border-color: rgba(20,255,236,0.4); background: rgba(20,255,236,0.05); }
.cba-swot-box.w { border-color: rgba(255,107,107,0.4); background: rgba(255,107,107,0.05); }
.cba-swot-box.o { border-color: rgba(163,230,53,0.4); background: rgba(163,230,53,0.05); }
.cba-swot-box.t { border-color: rgba(245,197,66,0.4); background: rgba(245,197,66,0.05); }
.cba-swot-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.9rem;
}

/* Modal */
.cba-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cba-modal-content {
  background: var(--cba-bg-card);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
}
.cba-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--cba-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Pricing */
.cba-pricing {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.cba-price-card {
  flex: 1;
  min-width: 240px;
  text-align: center;
}
.cba-price-card.cba-featured {
  border-color: var(--cba-teal);
  box-shadow: 0 0 24px var(--cba-glow);
}
.cba-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--cba-teal);
  margin: 12px 0;
}
.cba-price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  text-align: left;
}
.cba-price-card li {
  padding: 6px 0;
  border-bottom: 1px solid var(--cba-border);
}

/* Map & traffic */
.cba-map {
  height: 360px;
  border-radius: var(--cba-radius);
  border: 1px solid var(--cba-border);
  margin: 16px 0;
  background: #0d1321;
}
.cba-traffic-list {
  display: grid;
  gap: 8px;
}
.cba-traffic-item {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  background: var(--cba-bg-card);
  border-radius: 8px;
  font-size: 0.85rem;
  border: 1px solid var(--cba-border);
}

/* Keywords */
.cba-keyword-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cba-keyword-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--cba-bg-card);
  border-radius: 8px;
  border: 1px solid var(--cba-border);
}
.cba-keyword-score {
  color: var(--cba-teal);
  font-weight: 700;
}

/* Sectors / opportunities */
.cba-sectors-grid, .cba-opportunities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

/* Mobile */
@media (max-width: 900px) {
  .cba-layout { flex-direction: column; }
  .cba-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--cba-border);
    padding: 8px 0;
  }
  .cba-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 10px;
    gap: 6px;
    scrollbar-width: thin;
  }
  .cba-nav-item {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 8px 14px;
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
  }
  .cba-nav-item.active {
    border-bottom-color: transparent;
    background: rgba(20, 255, 236, 0.15);
    color: var(--cba-teal);
  }
  .cba-nav-item.cba-whatsapp,
  .cba-nav-item.cba-report-fraud {
    margin-top: 0;
    border-top: none;
    padding-top: 8px;
  }
  .cba-main { padding: 16px; }
  .cba-form-grid { grid-template-columns: 1fr; }
  .cba-swot-grid { grid-template-columns: 1fr; }
  .cba-topbar { flex-wrap: wrap; gap: 8px; }
  .cba-topbar-center { order: 3; width: 100%; }
}

/* Admin menu icon already handled by WP */
.wp-admin .cba-app {
  margin: 0;
}

/* News ticker – smooth continuous crawl */
.cba-news-ticker {
  background: linear-gradient(90deg, #0d1321, #111827 40%, #0d1321);
  border-bottom: 1px solid var(--cba-border);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  height: 38px;
  display: flex;
  align-items: center;
}
.cba-news-label {
  background: var(--cba-teal-dim);
  color: #041014;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  text-transform: uppercase;
  flex-shrink: 0;
  z-index: 3;
  box-shadow: 4px 0 12px rgba(0,0,0,0.35);
}
.cba-news-track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.cba-news-track {
  display: flex;
  width: max-content;
  animation: cba-ticker-smooth 180s linear infinite;
  will-change: transform;
}
.cba-news-track:hover { animation-play-state: paused; }
@keyframes cba-ticker-smooth {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.cba-news-item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 40px;
  font-size: 0.85rem;
  color: #e2e8f0;
  text-decoration: none;
  white-space: nowrap;
}
.cba-news-item:hover { color: var(--cba-teal); }
.cba-news-item .src { color: #94a3b8; font-size: 0.75rem; margin-left: 6px; }

/* Green links */
.cba-app a:not(.cba-nav-item):not(.cba-btn):not(.cba-btn-primary):not(.cba-btn-outline):not(.cba-btn-google-trends),
.cba-biz-body a,
.cba-review-card a,
.cba-card a:not(.cba-btn) {
  color: #22c55e !important;
}
.cba-app a:not(.cba-nav-item):not(.cba-btn):hover {
  color: #4ade80 !important;
}

/* Archive filters */
.cba-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  align-items: center;
}
.cba-filter-bar select, .cba-filter-bar input {
  background: #0a0e17;
  border: 1px solid var(--cba-border);
  color: #e2e8f0;
  border-radius: 6px;
  padding: 8px 12px;
}

/* Locked business */
.cba-biz-locked .cba-biz-body::after {
  content: '🔒 Members';
  position: absolute;
  top: 8px; right: 8px;
  font-size: 0.7rem;
  color: var(--cba-gold);
}

/* Auth / Login / Register */
.cba-auth-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--cba-bg, #0a0e17);
}
.cba-auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--cba-bg-card, #111827);
  border: 1px solid var(--cba-border, #1e293b);
  border-radius: 12px;
  padding: 28px 24px;
}
.cba-auth-brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cba-teal, #14ffec);
  text-align: center;
  margin-bottom: 6px;
}
.cba-auth-tagline {
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0 0 20px;
}
.cba-auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--cba-border, #1e293b);
}
.cba-auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: #94a3b8;
  padding: 10px;
  cursor: pointer;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}
.cba-auth-tab.active {
  color: var(--cba-teal, #14ffec);
  border-bottom-color: var(--cba-teal, #14ffec);
}
.cba-auth-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: #94a3b8;
}
.cba-auth-form input,
.cba-auth-form select {
  background: #0a0e17;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 10px 12px;
  color: #e2e8f0;
  font-size: 0.95rem;
}
.cba-auth-form input:focus,
.cba-auth-form select:focus {
  outline: none;
  border-color: #14ffec;
  box-shadow: 0 0 0 3px rgba(20,255,236,0.15);
}
.cba-auth-check {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  color: #e2e8f0 !important;
}
.cba-btn-block { width: 100%; justify-content: center; margin-top: 8px; }
.cba-auth-links { text-align: center; margin-top: 14px; }
.cba-auth-links a { color: #22c55e !important; font-size: 0.85rem; }
.cba-auth-note { color: #94a3b8; font-size: 0.8rem; margin-top: 12px; text-align: center; }
.cba-auth-msg {
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.cba-auth-msg.error { background: rgba(255,107,107,0.15); color: #ff6b6b; }
.cba-auth-msg.success { background: rgba(20,255,236,0.12); color: #14ffec; }

.cba-btn:disabled { opacity: 0.6; cursor: wait; }
.cba-auth-tab { cursor: pointer; }
#cba-btn-login, #cba-btn-register { cursor: pointer; pointer-events: auto; }

/* Force panel visibility (themes often override) */
.cba-app .cba-panel { display: none !important; }
.cba-app .cba-panel.active { display: block !important; }

/* Modal overlay */
.cba-modal {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0,0,0,0.8) !important;
  z-index: 99999 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cba-modal[style*="flex"] {
  display: flex !important;
}
.cba-modal-content {
  background: #111827 !important;
  color: #e2e8f0;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #1e293b;
  position: relative;
  z-index: 100000;
}
.cba-clickable { cursor: pointer !important; }

/* News ticker ensure visible */
.cba-news-ticker { z-index: 50; }
.cba-news-item { color: #e2e8f0 !important; }
.cba-surveys-active h3, #cba-surveys-active h3, .cba-card h3 { color: #ffffff !important; }
#cba-modal-participate label { color: #e2e8f0; display: block; margin: 8px 0; }
#cba-modal-participate .cba-opt { margin-right: 12px; color: #fff; }

/* Survey Participate button – black title font */
button.cba-take-survey,
.cba-btn.cba-take-survey,
.cba-btn-sm.cba-take-survey {
  color: #000000 !important;
  background: linear-gradient(135deg, #f5c542, #eab308) !important;
  border: none !important;
  font-weight: 700;
}
button.cba-take-survey:hover {
  color: #000000 !important;
  filter: brightness(1.08);
}

/* Report fraud nav accent */
.cba-nav-item.cba-report-fraud {
  color: #ff6b6b;
  margin-top: 8px;
  border-top: 1px solid var(--cba-border);
  padding-top: 14px;
}
.cba-nav-item.cba-report-fraud:hover,
.cba-nav-item.cba-report-fraud.active {
  color: #ff8a8a;
  border-left-color: #ff6b6b;
}

/* Ariel chat */
.cba-ariel-chat {
  display: flex;
  flex-direction: column;
  max-height: 480px;
}
.cba-ariel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cba-border);
  margin-bottom: 12px;
}
.cba-ariel-avatar {
  font-size: 2rem;
  line-height: 1;
}
.cba-ariel-role {
  display: block;
  font-size: 0.75rem;
  color: var(--cba-text-muted);
  font-weight: 400;
}
.cba-ariel-messages {
  flex: 1;
  overflow-y: auto;
  min-height: 180px;
  max-height: 280px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cba-msg {
  max-width: 90%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.cba-msg-bot {
  background: rgba(20, 255, 236, 0.08);
  border: 1px solid rgba(20, 255, 236, 0.2);
  align-self: flex-start;
  color: #e2e8f0;
}
.cba-msg-user {
  background: rgba(245, 197, 66, 0.12);
  border: 1px solid rgba(245, 197, 66, 0.25);
  align-self: flex-end;
  color: #fef3c7;
}
.cba-ariel-input {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--cba-border);
}
.cba-ariel-input input {
  flex: 1;
  background: #0a0e17;
  border: 1px solid var(--cba-border);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
}
.cba-ariel-input input:focus {
  outline: none;
  border-color: var(--cba-teal);
}
.cba-ariel-input input:disabled {
  opacity: 0.7;
}
/* Typing indicator – feels like a live person */
.cba-typing {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  min-width: 52px;
  padding: 12px 16px !important;
}
.cba-typing .cba-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cba-teal);
  opacity: 0.4;
  animation: cba-bounce 1.2s infinite ease-in-out;
}
.cba-typing .cba-dot:nth-child(2) { animation-delay: 0.15s; }
.cba-typing .cba-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes cba-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-5px); opacity: 1; }
}

/* Compact analysis result */
.cba-analysis-compact {
  display: grid;
  gap: 12px;
}
.cba-analysis-compact .cba-card {
  padding: 14px 16px;
}
.cba-analysis-compact h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--cba-teal);
}
.cba-analysis-compact h4 {
  margin: 10px 0 4px;
  font-size: 0.85rem;
  color: var(--cba-gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cba-analysis-compact ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.88rem;
}
.cba-analysis-compact p {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--cba-text-muted);
}
.cba-web-signals {
  font-size: 0.82rem;
  color: #94a3b8;
  border-left: 3px solid var(--cba-teal);
  padding-left: 10px;
  margin-top: 8px;
}


/* Force black button titles */
.cba-btn,
.cba-btn-primary,
.cba-btn-sm,
button.cba-btn,
a.cba-btn {
  color: #000000 !important;
}
.cba-btn-outline {
  color: var(--cba-teal) !important;
}
.cba-btn-outline:hover {
  color: #000000 !important;
  background: rgba(20, 255, 236, 0.15);
}

/* User menu dropdown */
.cba-user-menu {
  position: relative;
}
.cba-user-chip {
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--cba-border);
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  color: var(--cba-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
}
.cba-user-chip:hover {
  border-color: var(--cba-teal);
}
.cba-user-caret {
  font-size: 0.7rem;
  opacity: 0.7;
}
.cba-user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 180px;
  background: #111827;
  border: 1px solid var(--cba-border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  z-index: 100;
  padding: 6px;
}
.cba-user-dd-item {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #e2e8f0 !important;
  text-decoration: none;
  font-size: 0.9rem;
}
.cba-user-dd-item:hover {
  background: rgba(20, 255, 236, 0.08);
  color: var(--cba-teal) !important;
}
.cba-user-dd-item.cba-logout {
  color: #ff6b6b !important;
  border-top: 1px solid var(--cba-border);
  margin-top: 4px;
  padding-top: 12px;
}


/* Section yellow buttons: Advertise My Ads, Live Traffic, Trending, Google */
#panel-advertise .cba-btn,
#panel-live-traffic .cba-btn,
#panel-trending .cba-btn,
#panel-google .cba-btn,
#panel-advertise .cba-btn-outline,
#panel-live-traffic .cba-btn-outline,
#panel-trending .cba-btn-outline,
#panel-google .cba-btn-outline {
  background: linear-gradient(135deg, #f5c542, #eab308) !important;
  border-color: #eab308 !important;
  color: #000000 !important;
}
#panel-advertise .cba-btn:hover,
#panel-live-traffic .cba-btn:hover,
#panel-trending .cba-btn:hover,
#panel-google .cba-btn:hover {
  filter: brightness(1.08);
  color: #000000 !important;
}

/* Modal table headers black */
.cba-detail-table thead th,
.cba-modal-content table thead th,
.cba-modal-content h2 {
  color: #000000 !important;
}
.cba-detail-table thead th {
  background: #f5c542 !important;
}
.cba-detail-table {
  width: 100%;
  border-collapse: collapse;
}
.cba-detail-table th,
.cba-detail-table td {
  padding: 8px 10px;
  border: 1px solid #1e293b;
  text-align: left;
}
.cba-detail-table td { color: #e2e8f0; }

/* Key themes clickable */
.cba-theme-list { list-style: none; padding: 0; margin: 0; }
.cba-theme-list li { margin: 0 0 8px; }
.cba-theme-link {
  background: transparent;
  border: none;
  color: #14ffec;
  cursor: pointer;
  font: inherit;
  text-align: left;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cba-theme-link:hover,
.cba-theme-link.active { color: #f5c542; }
.cba-theme-detail {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid #14ffec;
  background: rgba(20,255,236,0.06);
  border-radius: 0 8px 8px 0;
}

/* External platform badge */
.cba-platform-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #041014;
  background: #f5c542;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* AI search results */
.cba-ai-search-results { display: flex; flex-direction: column; gap: 12px; }
.cba-ai-overview {
  padding: 12px 14px;
  background: rgba(20,255,236,0.08);
  border: 1px solid rgba(20,255,236,0.2);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.45;
}
.cba-ai-result {
  padding: 10px 12px;
  border: 1px solid var(--cba-border);
  border-radius: 8px;
  background: #0a0e17;
}
.cba-ai-result a { color: #14ffec !important; font-weight: 600; text-decoration: none; }
.cba-ai-result a:hover { text-decoration: underline; }
.cba-ai-meta { font-size: 0.75rem; color: #94a3b8; margin: 4px 0; }
.cba-ai-result p { margin: 4px 0 0; font-size: 0.85rem; color: #94a3b8; }

/* Map */
#cba-traffic-map.cba-map,
.cba-map {
  min-height: 360px;
  height: 360px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--cba-border);
  background: #0a0e17;
  z-index: 1;
}

/* Survey bars */
.cba-survey-bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: #1e293b;
  margin: 6px 0;
}
.cba-survey-bar .yes { background: #14ffec; height: 100%; }
.cba-survey-bar .no { background: #ff6b6b; height: 100%; }

/* Global: yellow buttons, black titles */
.cba-app .cba-btn,
.cba-app .cba-btn-primary,
.cba-app .cba-btn-sm,
.cba-app button.cba-btn,
.cba-app a.cba-btn,
.cba-app .cba-btn-outline {
  background: linear-gradient(135deg, #f5c542, #eab308) !important;
  border: 1px solid #eab308 !important;
  color: #000000 !important;
  font-weight: 700;
}
.cba-app .cba-btn:hover,
.cba-app .cba-btn-primary:hover,
.cba-app .cba-btn-outline:hover {
  filter: brightness(1.08);
  color: #000000 !important;
}

.cba-app a.cba-btn-google-search,
.cba-app .cba-btn-google-search {
  background: linear-gradient(135deg, #f5c542, #eab308) !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border: 1px solid #eab308 !important;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none !important;
}
