/* GeoScout Pro - Modern Dribbble / Linear SaaS Design System */

:root {
  /* Matte Obsidian & Graphite Surfaces (No Neons, No Rainbow Gradients) */
  --bg-base: #0b0c0e;
  --bg-surface: #121316;
  --bg-card: #121316;
  --bg-surface-hover: #18191e;
  --bg-card-hover: #18191e;
  --bg-panel: #16171b;
  --bg-input: #0e0f12;
  
  /* Borders */
  --border-subtle: #22242a;
  --border-color: #22242a;
  --border-medium: #2e313a;
  --border-hover: #3e424e;
  
  /* Typography Colors */
  --text-main: #f4f4f6;
  --text-muted: #8e929d;
  --text-subtle: #5b5f6a;
  
  /* Refined Accent & Semantic States */
  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-soft-bg: rgba(99, 102, 241, 0.08);
  
  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.1);
  --color-success-border: rgba(16, 185, 129, 0.3);
  
  --color-info: #3b82f6;
  --color-info-bg: rgba(59, 130, 246, 0.1);
  
  --color-warning: #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.1);
  
  --color-neutral: #71717a;
  
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 36px -4px rgba(0, 0, 0, 0.8);
}

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

/* Accessibility Focus Ring (WCAG AA Compliant) */
:focus-visible {
  outline: 2px solid var(--accent-primary) !important;
  outline-offset: 2px !important;
}

/* Slim Matte Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-medium);
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

/* App Header (Desktop + Mobile) */
.app-header {
  height: 60px;
  border-bottom: 1px solid var(--border-subtle);
  background-color: #0e0f12;
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 30px;
  height: 30px;
  background: #1e1f26;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--accent-primary);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.nav-links {
  display: flex;
  gap: 8px;
  background: var(--bg-card);
  padding: 4px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.nav-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  font-size: 0.825rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.nav-btn.active {
  color: #ffffff;
  background: #252731;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.nav-btn .badge-count {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.data-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: #141519;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
}

/* Layout Containers */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.view-section {
  display: none;
  width: 100%;
}

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

/* Hero Section */
.hero-section {
  padding: 44px 24px 28px 24px;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.hero-header {
  margin-bottom: 28px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #a5b4fc;
  background: #181924;
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  color: #f7f8f8;
}

.hero-subtext {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.5;
}

/* Modern Command Search Hero Container */
.command-search-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 28px;
  text-align: left;
}

.command-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 8px;
  transition: border-color 0.15s ease;
}

.command-search-row:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.command-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 6px;
}

.command-search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-subtle);
  flex-shrink: 0;
}

.command-search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  font-weight: 500;
}

.command-search-input::placeholder {
  color: var(--text-subtle);
}

.btn-command-generate {
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-command-generate:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.btn-command-generate:active {
  transform: scale(0.98);
}

/* Command Filter Strip */
.command-filter-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 0 4px;
  flex-wrap: wrap;
}

.pill-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #181920;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0 8px;
  height: 32px;
  transition: border-color 0.15s ease;
}

.pill-select-wrapper:hover {
  border-color: var(--border-hover);
}

.pill-icon {
  width: 13px;
  height: 13px;
  color: var(--text-muted);
  margin-right: 6px;
  flex-shrink: 0;
}

.pill-select {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  padding-right: 6px;
}

.pill-select option {
  background: #181920;
  color: var(--text-main);
}

.pill-btn {
  background: #181920;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font-sans);
  padding: 0 10px;
  height: 32px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.pill-btn:hover {
  background: #20222a;
  border-color: var(--border-hover);
}

/* Available Hand-Reg Gems Radar */
.radar-container {
  margin-top: 20px;
  margin-bottom: 8px;
  text-align: left;
}

.radar-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.radar-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.radar-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.radar-title-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.radar-status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-success);
}

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

.radar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.15s ease, box-shadow 0.15s ease;
}

.radar-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.radar-domain {
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  word-break: break-all;
}

.radar-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #181920;
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: #20222a;
  border-color: var(--border-hover);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.78rem;
  min-height: 28px;
}

/* Score Pills */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.score-badge.score-excellent {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid var(--color-success-border);
}

.score-badge.score-strong {
  background: var(--color-info-bg);
  color: var(--color-info);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.score-badge.score-good {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.score-badge.score-neutral {
  background: rgba(113, 113, 122, 0.1);
  color: var(--color-neutral);
  border: 1px solid rgba(113, 113, 122, 0.2);
}

/* Dashboard Container */
.dashboard-container {
  padding: 20px 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Stats Overview Grid */
.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

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

.stat-card > div:first-child {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.stat-card > div:last-child {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-mono);
}

/* Toolbar & Filters */
.dashboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-filter-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-filter-icon {
  position: absolute;
  left: 10px;
  color: var(--text-subtle);
}

.search-filter-input {
  width: 220px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 7px 10px 7px 32px;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
  outline: none;
  font-family: var(--font-sans);
}

.search-filter-input:focus {
  border-color: var(--accent-primary);
}

.filter-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.form-group, .filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.form-group label, .filter-group label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-select, .form-input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 12px;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
  outline: none;
  font-family: var(--font-sans);
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-select:focus, .form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary);
}

textarea.form-input {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  line-height: 1.5;
}

/* Data Table Component (Desktop) */
.table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-wrapper {
  overflow-x: auto;
  width: 100%;
}

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

.data-table th {
  background: #111216;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  user-select: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.data-table th:hover {
  color: var(--text-main);
}

.data-table th .sort-icon {
  display: inline-block;
  margin-left: 4px;
  opacity: 0.4;
}

.data-table th.sorted .sort-icon {
  opacity: 1;
  color: var(--accent-primary);
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  white-space: nowrap;
}

.data-table tr {
  transition: background-color 0.15s ease;
}

.data-table tr:hover {
  background-color: var(--bg-surface-hover);
}

.domain-name-cell {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.domain-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
}

.domain-link:hover {
  color: var(--accent-primary);
}

/* Status Cell Alignment System */
.status-cell-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.availability-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 24px;
  font-size: 0.7rem;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  box-sizing: border-box;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.availability-tag.available {
  background: var(--color-success-bg);
  color: var(--color-success);
  border-color: var(--color-success-border);
}

.availability-tag.registered {
  background: rgba(113, 113, 122, 0.15);
  color: var(--text-muted);
}

.availability-tag.checking {
  background: var(--accent-soft-bg);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
}

.availability-tag.unknown {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

/* Table Footer & Pagination */
.table-footer {
  padding: 12px 18px;
  background: #111216;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 5px 12px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.page-btn:hover:not(:disabled) {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Floating Action Bar */
.floating-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: #16171d;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 8px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 90;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s;
}

.floating-bar.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.selection-info {
  font-size: 0.825rem;
  font-weight: 600;
  color: white;
  padding-right: 10px;
  border-right: 1px solid var(--border-subtle);
}

/* Mobile Fixed Bottom Navigation Bar (Dribbble iOS Concept) */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 860px) {
  .contact-grid-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #0e0f12;
    border-top: 1px solid var(--border-subtle);
    z-index: 100;
    align-items: center;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    padding: 6px 0;
    transition: color 0.15s ease;
  }

  .mobile-nav-tab.active {
    color: var(--accent-primary);
  }

  .mobile-nav-tab i {
    width: 18px;
    height: 18px;
  }

  .mobile-badge-count {
    position: absolute;
    top: 3px;
    right: 25%;
    background: var(--accent-primary);
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0 4px;
    border-radius: var(--radius-full);
  }

  /* Desktop Nav hidden on mobile */
  .desktop-nav, .header-right {
    display: none !important;
  }

  /* Mobile Content Padding for Bottom Nav */
  body {
    padding-bottom: 64px;
  }

  /* Hero Mobile */
  .hero-section {
    padding: 24px 14px 18px 14px;
  }

  .hero-title {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
  }

  .hero-subtext {
    font-size: 0.85rem !important;
    margin-bottom: 18px !important;
  }

  .command-search-row {
    flex-direction: column;
    align-items: stretch;
    padding: 6px;
    gap: 6px;
  }

  .btn-command-generate {
    width: 100%;
    height: 42px;
    justify-content: center;
  }

  .command-filter-strip {
    gap: 6px;
  }

  .pill-select-wrapper, .pill-btn {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
  }

  /* Mobile Data Table -> Responsive Cards */
  .table-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .table-wrapper {
    overflow: visible !important;
  }

  .data-table, .data-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .data-table thead {
    display: none !important;
  }

  .data-table tr {
    display: flex !important;
    flex-direction: column !important;
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-md) !important;
    padding: 14px 16px !important;
    gap: 10px !important;
    box-shadow: var(--shadow-sm) !important;
    position: relative !important;
    padding-right: 64px !important;
  }

  .data-table tr.selected-row {
    border-color: var(--accent-primary) !important;
  }

  .data-table td {
    display: block !important;
    padding: 0 !important;
    border: none !important;
    white-space: normal !important;
  }

  /* Hide individual row checkbox on mobile */
  .data-table td:nth-child(1) {
    display: none !important;
  }

  /* Domain Name */
  .data-table td:nth-child(2) {
    order: 1 !important;
  }

  .data-table td:nth-child(2) .domain-name-cell {
    font-size: 1rem !important;
    font-weight: 700 !important;
  }

  /* Location + Population + Pattern */
  .data-table td:nth-child(3),
  .data-table td:nth-child(4),
  .data-table td:nth-child(5) {
    display: inline-block !important;
    font-size: 0.78rem !important;
    color: var(--text-muted) !important;
    order: 2 !important;
  }

  .data-table td:nth-child(3)::after,
  .data-table td:nth-child(4)::after {
    content: " • ";
    color: var(--border-subtle);
  }

  /* Opp Score Badge */
  .data-table td:nth-child(6) {
    order: 3 !important;
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
  }

  /* Status and Leads Action Row */
  .data-table td:nth-child(7) {
    order: 4 !important;
    padding-top: 10px !important;
    border-top: 1px solid var(--border-subtle) !important;
    margin-top: 2px !important;
  }

  .table-footer {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    text-align: center;
    background: var(--bg-surface) !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-subtle) !important;
    padding: 14px 12px !important;
  }
}

/* Modals & Drawers */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

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

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  padding: 24px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s ease;
}

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

.modal-body {
  overflow-y: auto;
  flex: 1;
}

/* Surface Cards & Section Headers (Explore & Pipeline) */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.section-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.surface-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.surface-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 8px;
}

/* Industry Grid & Niche Chips */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.industry-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.industry-card-title, .industry-title {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.keyword-chip, .chip {
  background: #191a20;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.75rem;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.keyword-chip:hover, .chip:hover {
  background: #22242c;
  border-color: var(--accent-primary);
  color: #ffffff;
}

.keyword-chip.active, .chip.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

.keyword-chip:hover {
  background: #282a36;
  border-color: var(--accent-primary);
  color: #ffffff;
}

.keyword-chip.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

/* Global App Footer */
.app-footer {
  background: #0a0b0d;
  border-top: 1px solid var(--border-subtle);
  padding: 48px 24px 32px 24px;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
}

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .app-footer {
    padding: 32px 16px 80px 16px; /* Extra bottom space for mobile tab bar */
  }
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link, .footer-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.825rem;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: color 0.15s ease;
}

.footer-link:hover, .footer-nav-link:hover {
  color: var(--text-main);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #181920;
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.empty-state-icon {
  margin-bottom: 12px;
  color: var(--text-subtle);
}

.empty-state-title {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 6px;
  font-weight: 600;
}

/* Custom Intelligence Tables (Brainstorm & FNLN) */
.custom-intelligence-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.84rem;
}

.custom-intelligence-table th {
  background: #111216;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.custom-intelligence-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
}

.custom-intelligence-table tr:hover td {
  background-color: var(--bg-surface-hover);
}

.custom-intelligence-table td.col-domain {
  width: 25%;
  min-width: 200px;
  white-space: nowrap;
}

.custom-intelligence-table td.col-angle {
  width: 45%;
  min-width: 280px;
  white-space: normal !important;
  word-break: break-word;
  line-height: 1.5;
  color: #a1a1aa;
  font-size: 0.82rem;
  padding-right: 28px;
}

.custom-intelligence-table td.col-status {
  width: 14%;
  min-width: 110px;
  text-align: center;
  white-space: nowrap;
}

.custom-intelligence-table td.col-actions {
  width: 16%;
  min-width: 170px;
  text-align: right;
  white-space: nowrap;
}

