/* ==========================================================================
   SERP TRACKER - MEDYA HOCASI LIGHT THEME (Ahrefs / Mangools Clean Style)
   Ultra-modern, clean, airy SaaS design with Medya Hocası Brand Colors
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Clean Light Theme Palette */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --bg-input: #ffffff;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-focus: #73c71a;
  
  /* Text */
  --text-main: #1e293b;
  --text-bright: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  
  /* Medya Hocası Brand Colors from Logo */
  --mh-green: #73c71a;
  --mh-green-light: #86db26;
  --mh-green-hover: #58ab10;
  --mh-green-dark: #3d7e08;
  --mh-green-subtle: rgba(115, 199, 26, 0.08);
  --mh-green-border: rgba(115, 199, 26, 0.25);
  --mh-green-glow: rgba(115, 199, 26, 0.35);

  /* Secondary Accents */
  --mh-cyan: #0891b2;
  --mh-cyan-light: #06b6d4;
  --mh-purple: #7c3aed;
  --mh-blue: #2563eb;
  --mh-amber: #d97706;
  --mh-red: #dc2626;

  /* Gradients & Shadows */
  --gradient-main: linear-gradient(135deg, #73c71a 0%, #4e990c 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-box: 0 20px 45px -10px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  --shadow-popover: 0 25px 60px -15px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);

  --font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(115, 199, 26, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(124, 58, 237, 0.03) 0%, transparent 50%);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--mh-green);
}

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

/* ============ Sidebar ============ */
.app-sidebar {
  width: 260px;
  background: #ffffff;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.02);
}

.sidebar-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  filter: drop-shadow(0 2px 6px rgba(115, 199, 26, 0.25));
}

.sidebar-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.3px;
}

.sidebar-badge {
  font-size: 0.65rem;
  background: rgba(115, 199, 26, 0.12);
  color: #4e990c;
  border: 1px solid rgba(115, 199, 26, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sidebar-menu {
  list-style: none;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  background: var(--bg-surface-hover);
  color: var(--text-bright);
}

.sidebar-link.active {
  background: rgba(115, 199, 26, 0.1);
  color: #3d7e08;
  font-weight: 700;
}

.sidebar-link i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.sidebar-link:hover i,
.sidebar-link.active i {
  color: var(--mh-green);
}

.sidebar-footer {
  padding: 18px 20px;
  border-top: 1px solid var(--border-color);
}

.back-to-site-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-surface-hover);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.back-to-site-btn:hover {
  background: #e2e8f0;
  color: var(--text-bright);
}

/* ============ Main Content Area ============ */
.app-main {
  flex-grow: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ============ Topbar ============ */
.app-topbar {
  height: 68px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.02);
}

.page-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.3px;
}

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

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 9px;
  border: 1px solid var(--border-color);
  gap: 2px;
}

.lang-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 7px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-tab-btn:hover {
  color: var(--text-bright);
}

.lang-tab-btn.active {
  background: #ffffff;
  color: var(--text-bright);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(115, 199, 26, 0.1);
  border: 1px solid rgba(115, 199, 26, 0.25);
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #3d7e08;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mh-green);
  box-shadow: 0 0 8px var(--mh-green);
}

/* ============ Engine Switcher Tabs ============ */
.engine-tabs-bar {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  gap: 4px;
  margin-bottom: 20px;
}

.engine-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.engine-tab:hover {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.6);
}

.engine-tab.active {
  background: #ffffff;
  color: var(--text-bright);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.engine-icon-google {
  color: #4285F4;
}

.engine-icon-yandex {
  color: #fc3f1d;
}

.engine-icon-bing {
  color: #008373;
}

/* ============ Content Body ============ */
.content-body {
  padding: 32px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* ==========================================================================
   MEDYA HOCASI - ULTRA-PREMIUM SERP CHECKER HERO & CONTROLS (LIGHT THEME)
   ========================================================================== */

.serp-hero-wrapper {
  max-width: 1040px;
  margin: 10px auto 40px auto;
  text-align: center;
  position: relative;
  z-index: 500;
}

.serp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(115, 199, 26, 0.1);
  border: 1px solid rgba(115, 199, 26, 0.3);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #3d7e08;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(115, 199, 26, 0.1);
}

.hero-logo-mini {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--mh-green);
  box-shadow: 0 0 10px var(--mh-green);
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(115, 199, 26, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 7px rgba(115, 199, 26, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(115, 199, 26, 0); }
}

.serp-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.serp-hero-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 30px;
}

/* Search Box Container */
.serp-main-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  z-index: 600;
  overflow: visible !important;
}

.serp-main-box:focus-within {
  border-color: var(--mh-green);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.08), 0 0 0 3px rgba(115, 199, 26, 0.15);
}

.serp-input-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.serp-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.serp-input-group .input-icon {
  position: absolute;
  left: 18px;
  color: #94a3b8;
  font-size: 1.05rem;
  pointer-events: none;
  transition: color 0.2s ease;
}

.serp-input {
  width: 100%;
  height: 52px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 18px 0 50px;
  font-size: 0.98rem;
  color: #0f172a;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s ease;
}

.serp-input::placeholder {
  color: #94a3b8;
}

.serp-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--mh-green);
  box-shadow: 0 0 0 3px rgba(115, 199, 26, 0.18);
}

.serp-input:focus + .input-icon,
.serp-input:focus ~ .input-icon {
  color: var(--mh-green);
}

.serp-controls-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  position: relative;
  z-index: 700;
  overflow: visible !important;
}

/* Custom Dropdowns */
.custom-dropdown {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: visible !important;
}

.dropdown-trigger-btn {
  width: 100%;
  height: 48px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  user-select: none;
}

.dropdown-trigger-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.dropdown-trigger-btn.open {
  border-color: var(--mh-green);
  box-shadow: 0 0 0 3px rgba(115, 199, 26, 0.18);
  background: #ffffff;
}

.dropdown-trigger-btn .selected-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: left;
}

.dropdown-trigger-btn .flag-icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.dropdown-trigger-btn .lang-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.dropdown-trigger-btn .device-icon,
.dropdown-trigger-btn .location-icon,
.dropdown-trigger-btn .depth-icon {
  font-size: 0.95rem;
  color: #4e990c;
  flex-shrink: 0;
}

.dropdown-trigger-btn .arrow-icon {
  margin-left: auto;
  font-size: 0.72rem;
  color: #94a3b8;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.dropdown-trigger-btn.open .arrow-icon {
  transform: rotate(180deg);
  color: var(--mh-green);
}

/* Dropdown Popover Panel */
.dropdown-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 999999 !important;
  width: 100%;
  min-width: 300px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 10px;
  animation: popoverIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popoverIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-popover.open {
  display: block;
}

.dropdown-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.dropdown-search-wrap i {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  font-size: 0.85rem;
  pointer-events: none;
}

.dropdown-search-input {
  width: 100%;
  height: 38px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 12px 0 34px;
  font-size: 0.86rem;
  color: #0f172a;
  font-family: inherit;
}

.dropdown-search-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--mh-green);
  box-shadow: 0 0 0 2px rgba(115, 199, 26, 0.2);
}

.dropdown-items-list {
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 4px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.dropdown-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.dropdown-item.active {
  background: rgba(115, 199, 26, 0.12);
  color: #3d7e08;
  font-weight: 700;
}

.dropdown-item .item-flag {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.dropdown-item .item-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-item .item-lang {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #475569;
  flex-shrink: 0;
}

.dropdown-item .check-icon {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--mh-green);
  display: none;
  flex-shrink: 0;
}

.dropdown-item.active .check-icon {
  display: inline-block;
}

/* Primary Action Look Up Button */
.btn-lookup {
  height: 48px;
  padding: 0 28px;
  background: linear-gradient(135deg, #73c71a 0%, #4e990c 100%);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(115, 199, 26, 0.35);
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-family: inherit;
  letter-spacing: 0.3px;
}

.btn-lookup:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(115, 199, 26, 0.45);
  background: linear-gradient(135deg, #86db26 0%, #58ab10 100%);
}

.btn-lookup:active {
  transform: translateY(0);
}

.btn-lookup:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============ Search Card / Chart Card ============ */
.search-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.search-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.search-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

/* ============ Progress Bar ============ */
.scan-progress-container {
  display: none;
  margin-top: 20px;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.scan-progress-container.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.scan-progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.scan-progress-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scan-progress-percent {
  font-size: 0.85rem;
  font-weight: 800;
  color: #4e990c;
}

.scan-progress-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.scan-progress-fill {
  height: 100%;
  background: var(--gradient-main);
  border-radius: 10px;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* ============ Stats Grid ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 30px;
  position: relative;
  z-index: 10;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--mh-green-border);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.stat-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

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

/* ============ Results Section ============ */
.results-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
  animation: fadeIn 0.4s ease;
  position: relative;
  z-index: 10;
}

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

.results-header {
  padding: 20px 28px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.results-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.badge-total {
  background: rgba(115, 199, 26, 0.12);
  color: #3d7e08;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Scan Summary Bar */
.scan-summary {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: 20px 28px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.summary-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.summary-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Target Found Banner */
.target-found-banner {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
}

.target-found-banner.found {
  background: rgba(115, 199, 26, 0.12);
  border: 1px solid rgba(115, 199, 26, 0.35);
  color: #276704;
}

.target-found-banner.not-found {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #991b1b;
}

/* Data Table */
.data-table-wrapper {
  overflow-x: auto;
}

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

.data-table th {
  padding: 14px 18px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 16px 18px;
  font-size: 0.88rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.data-table tr:hover td {
  background: #f8fafc;
}

.data-table tr.target-row td {
  background: rgba(115, 199, 26, 0.08);
}

/* Rank Badges */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.9rem;
}

.rank-top1 {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.rank-top3 {
  background: linear-gradient(135deg, #73c71a, #4e990c);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(115, 199, 26, 0.3);
}

.rank-top10 {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.rank-top20, .rank-other {
  background: #f8fafc;
  color: #64748b;
}

/* Place Card (Google Maps Results) */
.places-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.place-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.place-card:hover {
  border-color: var(--mh-green);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.place-card.target-match {
  border-color: var(--mh-green);
  background: rgba(115, 199, 26, 0.04);
  box-shadow: 0 0 0 2px rgba(115, 199, 26, 0.2);
}

.place-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}

.place-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.place-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 4px;
}

.place-address {
  font-size: 0.82rem;
  color: #475569;
}

.place-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Form Controls & Buttons */
.form-control {
  width: 100%;
  height: 42px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 0.88rem;
  color: #0f172a;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--mh-green);
  box-shadow: 0 0 0 3px rgba(115, 199, 26, 0.18);
}

.btn-primary-action {
  height: 42px;
  padding: 0 20px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #334155;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary-action:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Pagination */
.pagination-bar, .pagination-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
}

.page-btn, .pagination-btn {
  height: 36px;
  padding: 0 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #334155;
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover, .pagination-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.page-btn.active, .pagination-btn.active {
  background: var(--mh-green);
  border-color: var(--mh-green);
  color: #ffffff;
}

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

/* Responsive */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .scan-summary { grid-template-columns: repeat(3, 1fr); }
  .serp-input-row { grid-template-columns: 1fr; }
  .serp-controls-row { flex-wrap: wrap; }
}

@media (max-width: 1024px) {
  .app-sidebar { width: 72px; }
  .sidebar-title, .sidebar-badge, .sidebar-link span, .sidebar-footer span { display: none; }
  .sidebar-header { justify-content: center; padding: 20px 10px; }
  .sidebar-menu { padding: 20px 8px; }
  .sidebar-link { justify-content: center; padding: 14px; }
  .sidebar-footer { padding: 14px 8px; }
  .app-main { margin-left: 72px; }
}

@media (max-width: 768px) {
  .app-sidebar { display: none; }
  .app-main { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .scan-summary { grid-template-columns: repeat(2, 1fr); }
  .content-body { padding: 16px; }
  .app-topbar { padding: 0 16px; }
  .place-card { flex-direction: column; align-items: flex-start; }
  .place-actions { width: 100%; justify-content: flex-end; }
  .serp-controls-row { flex-direction: column; }
  .custom-dropdown, .btn-lookup { width: 100%; }
}
