:root {
  --bg-primary: #07080b;
  --bg-sidebar: #0b0d12;
  --bg-secondary: #0f121a;
  --bg-card: #131620;
  --bg-card-hover: #171b28;
  --border-color: rgba(255, 255, 255, 0.07);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-highlight: rgba(255, 255, 255, 0.14);
  --border-active: #ffffff;
  
  --text-main: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #8e95a5;
  --text-dim: #555d6e;

  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;

  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Plus Jakarta Sans", "Inter", "Segoe UI", Roboto, sans-serif;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  --shadow-card: 0 12px 32px -4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-card-hover: 0 16px 36px -4px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.07) 0%, transparent 55%),
    radial-gradient(circle at 95% 100%, rgba(6, 182, 212, 0.04) 0%, transparent 45%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Tabular figures for monetary & rate numbers */
.num, .rate-val, .leak-number, .vital-card-val, .pitch-metric-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Reusable SVG Icon Class */
.svg-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.svg-icon-lg {
  width: 20px;
  height: 20px;
}

.svg-icon-sm {
  width: 14px;
  height: 14px;
}

/* Master Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar (Apple / CRED Minimalist) */
.sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 90;
}

.sidebar-header {
  padding: 1.35rem 1.35rem 1.15rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon-box {
  width: 36px;
  height: 36px;
  background: #ffffff;
  color: #07080b;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.brand-subtitle {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.sidebar-nav {
  padding: 1.15rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav-item .svg-icon {
  color: var(--text-dim);
  transition: var(--transition);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.nav-item:hover .svg-icon {
  color: #ffffff;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-item.active .svg-icon {
  color: #ffffff;
}

.sidebar-footer {
  padding: 1.15rem 1.35rem;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

.system-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
  flex-shrink: 0;
}

.status-dot.red {
  background: var(--accent-red);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

.status-dot.amber {
  background: var(--accent-amber);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

/* Main Viewport */
.main-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top Navbar (Apple Glass) */
.top-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 2rem;
  background: rgba(11, 13, 18, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 80;
}

.client-dropdown-wrapper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.client-dropdown-wrapper:focus-within {
  border-color: var(--border-highlight);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.client-dropdown-wrapper label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.client-select {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  max-width: 340px;
}

.client-select option {
  background: var(--bg-sidebar);
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.date-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
}

.date-selector-wrapper label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.date-input {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.84rem;
  outline: none;
  cursor: pointer;
  font-weight: 500;
}

.date-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* Buttons (Apple & CRED Style Pill Form) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.48rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  outline: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: #ffffff;
  color: #07080b;
  border-color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
  background: #e2e8f0;
  border-color: #e2e8f0;
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-highlight);
  transform: translateY(-1px);
}

.btn-outline-cyan {
  background: rgba(6, 182, 212, 0.06);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.22);
}

.btn-outline-cyan:hover {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-1px);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Tab Views Container */
.tab-views-container {
  padding: 1.75rem 2rem;
  flex: 1;
}

.tab-view {
  display: none;
  animation: fadeIn 0.2s ease-out;
}

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

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

/* ==============================================================
   HOTEL PROFILE 360 HERO & 4 PILLARS
   ============================================================== */
.profile-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-card);
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-main-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hero-thumbnail {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.hero-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.025em;
}

.hero-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.hero-badges-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.hero-direct-button {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 0.78rem;
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.hero-direct-button:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--border-highlight);
}

/* The 4-Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.pillar-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.85rem;
}

.pillar-number-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pillar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0.2rem;
  letter-spacing: -0.015em;
}

/* Pillar 1: Commission Defense */
.commission-leak-box {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}

.leak-number {
  font-size: 1.65rem;
  font-weight: 700;
  color: #f87171;
}

.rate-net-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.rate-net-comparison-table th {
  padding: 0.65rem 0.5rem;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.rate-net-comparison-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Pillar 3: Competitor Availability Calendar Grid */
.availability-calendar-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-top: 0.5rem;
}

.avail-day-card {
  min-width: 220px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.avail-day-card.weekend {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
}

.avail-day-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
}

.comp-avail-status {
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  gap: 0.5rem;
}

.comp-avail-name {
  color: #cbd5e1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 135px;
  font-weight: 500;
  font-size: 0.74rem;
}

.status-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1.3;
}

.status-badge.sold-out {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.status-badge.scarce {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.status-badge.available {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Pillar 4: Event Timeline & Seasonality */
.event-item-card {
  background: var(--bg-secondary);
  border-left: 2px solid var(--accent-cyan);
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

.event-surge-tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.hotelzify-action-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-top: 0.65rem;
}

/* Tables & Matrix */
.matrix-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.75rem;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.matrix-table th {
  background: rgba(15, 18, 26, 0.95);
  padding: 0.85rem 1.15rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.matrix-table td {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.matrix-table tr.my-hotel-row {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid #ffffff;
}

.rate-cell-pill {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rate-val {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.95rem;
}

.rate-val.undercut {
  color: #f87171;
}

.rate-tag {
  font-size: 0.7rem;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.rate-tag.mobile { color: var(--accent-cyan); }
.rate-tag.member { color: #a78bfa; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-my-hotel {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-compset {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.badge-parity-alert {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.btn-proof {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-proof:hover {
  background: #ffffff;
  color: #07080b;
  border-color: #ffffff;
}

/* Modals (Apple Smooth Blur) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 760px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 2rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.35rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.screenshot-preview {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  max-height: 460px;
  object-fit: contain;
  background: #000;
  margin-top: 1rem;
}

/* Pitch Calculator Styles */
.pitch-calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 960px) {
  .pitch-calculator-grid {
    grid-template-columns: 1fr;
  }
}

.pitch-input-group {
  margin-bottom: 1.15rem;
}

.pitch-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.pitch-val-badge {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.78rem;
  border: 1px solid var(--border-color);
}

.pitch-slider {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  outline: none;
  cursor: pointer;
  accent-color: #ffffff;
}

.pitch-tagline-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-card);
}

.pitch-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pitch-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.pitch-metric-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-1px);
}

.pitch-metric-card.leak {
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.2);
}

.pitch-metric-card.saved {
  background: rgba(16, 185, 129, 0.04);
  border-color: rgba(16, 185, 129, 0.25);
}

.pitch-metric-card.gold {
  background: rgba(245, 158, 11, 0.04);
  border-color: rgba(245, 158, 11, 0.2);
}

.pitch-metric-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.pitch-metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.35rem 0 0.15rem;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.pitch-metric-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.text-red { color: #f87171 !important; }
.text-green { color: #34d399 !important; }
.text-gold { color: #fbbf24 !important; }

/* 30-Day Rate Engine */
.rate-engine-summary-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 800px) {
  .rate-engine-summary-bar {
    grid-template-columns: 1fr 1fr;
  }
}

.surge-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
}

.surge-badge.surge {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.surge-badge.optimal {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.surge-badge.defend {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Competitor Sentiment Miner */
.comp-flaw-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  border-left: 3px solid #ef4444;
  transition: var(--transition);
}

.comp-flaw-card:hover {
  border-color: rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

.comp-flaw-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.comp-flaw-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.comp-flaw-theme {
  font-size: 0.84rem;
  font-weight: 600;
  color: #f87171;
  margin-bottom: 0.35rem;
}

.comp-flaw-quote {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-xs);
  margin-bottom: 0.65rem;
  border-left: 2px solid #ef4444;
}

.comp-counter-box {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-xs);
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: #a7f3d0;
}

.ad-hook-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.ad-hook-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  flex: 1;
}

/* Multi-Channel Live Scraping Engine */
.channel-sources-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  margin-bottom: 1rem;
}

.channel-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
}

.channel-source-pill.active {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.channel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.matrix-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-btn-group {
  display: flex;
  gap: 0.35rem;
  background: var(--bg-secondary);
  padding: 0.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  color: #ffffff;
}

.filter-btn.active {
  background: #ffffff;
  color: #07080b;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.1);
}

.crawler-step-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.65rem;
  transition: all 0.25s ease;
}

.crawler-step-card.active {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.crawler-step-card.done {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.04);
}

.crawler-step-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

/* Growth Studio Tabs */
.growth-subnav {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
}

.growth-tab-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.growth-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.growth-tab-btn.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #07080b;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.growth-section-view {
  display: none;
}

.growth-section-view.active {
  display: block;
}

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

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

.vital-card.good {
  border-top: 2px solid #10b981;
}

.vital-card-val {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0.25rem 0;
}

.friction-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 1.5rem;
  align-items: center;
}

.friction-issue-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.friction-cure-box {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.code-snippet-box {
  background: #090c12;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  color: #38bdf8;
  max-height: 250px;
  overflow-y: auto;
  white-space: pre;
}

.curated-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.curated-chip-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.curated-chip-card:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

/* Settings Form Controls */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.settings-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.settings-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--border-highlight);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

/* Progress bar tracks */
.bar-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: #ffffff;
  border-radius: var(--radius-pill);
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: #11141c;
  border: 1px solid var(--border-highlight);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  color: #ffffff;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.84rem;
  animation: slideInDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 420px;
}

@keyframes slideInDown {
  from { transform: translateY(-16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #0f121a;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8);
  z-index: 99999;
  max-height: 280px;
  overflow-y: auto;
  backdrop-filter: blur(20px);
  padding: 0.35rem 0;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background: rgba(255, 255, 255, 0.06);
}

.autocomplete-item-content {
  flex: 1;
  min-width: 0;
}

.autocomplete-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-item-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}
