@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700&display=swap');

:root {
  /* Colors */
  --primary: #0F172A;
  --primary-light: #1E293B;
  --accent: #f71729;
  --accent-dark: #d61323;

  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --container-width: 1400px;
  --section-padding: 80px;

  /* Other */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* Animation */
  --transition: all 0.3s ease;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.4s ease-in-out;
}

/* Keywords */
.keyword-list {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  max-width: 200px;
}

.keyword-tag {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75em;
  white-space: nowrap;
}

/* Crawler Table */
.crawl-table-container {
  overflow-x: auto;
  margin-top: 15px;
}

.crawl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
}

.crawl-table th,
.crawl-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #334155;
}

.crawl-table th {
  color: #94a3b8;
  font-weight: 500;
}

.crawl-table td {
  color: #e2e8f0;
}

.status-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: 600;
}

.status-badge.success {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.status-badge.error {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.mobile-show, .mobile-visible { display: none; }
.desktop-hide { display: none; }

.header-row-1, .header-row-2 { display: flex; align-items: center; }
.card-header { display: flex; justify-content: space-between; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(247, 23, 41, 0.39);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 23, 41, 0.23);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-light);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-8 {
  margin-bottom: 4rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.text-muted {
  color: var(--text-muted);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #171a22;
  /* Dark Theme */
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 40px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: white;
  letter-spacing: -0.02em;
  margin-left: 12px;
}

.nav-list {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

/* Navigation Mega Menu Dropdown */
.nav-dropdown {
  position: relative;
  list-style: none;
}

.nav-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  padding: 24px 32px;
  width: max-content;
  max-width: 850px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1200;
  pointer-events: none;
}

.nav-dropdown:hover .nav-mega-menu,
.nav-dropdown:focus-within .nav-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 32px;
}

.mega-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #38bdf8 !important;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.mega-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: #cbd5e1 !important;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  margin-bottom: 4px;
}

.mega-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc !important;
  transform: translateX(4px);
}

@media (max-width: 991px) {
  .mega-menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .nav-mega-menu {
    max-width: 92vw;
    left: -20px;
    padding: 20px;
  }
  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}



.nav-link:hover {
  color: white;
}

.mobile-only-btn {
  display: none;
}

/* Header Buttons */
/* Header Buttons */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-selector {
  background: none;
  border: none;
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s;
}

.lang-selector:hover,
.lang-dropdown.active .lang-selector {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}

.lang-selector .arrow {
  font-size: 0.7em;
  transition: transform 0.3s;
}

.lang-dropdown.active .arrow {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  padding: 8px 0;
  min-width: 180px;
  z-index: 1100;
  display: none;
  flex-direction: column;
  max-height: 400px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s;
}

.lang-dropdown.active .lang-menu {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Custom Scrollbar */
.lang-menu::-webkit-scrollbar {
  width: 6px;
}

.lang-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.lang-menu li {
  width: 100%;
}

.lang-menu li a {
  display: block;
  padding: 10px 16px;
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}

.lang-menu li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  padding-left: 20px;
}

.btn-login {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.btn-login:hover {
  color: var(--accent);
  /* Optional: change color on hover or keep white */
  background: rgba(255, 255, 255, 0.05);
}

.btn-start {
  background: #f71729;
  /* Red */
  color: #fff;
  /* White text for contrast */
  font-weight: 700;
  padding: 8px 16px;
  /* Reduced from 10px 20px */
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  /* Reduced from 0.95rem */
  transition: background 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-start:hover {
  background: #d61323;
  color: #fff;
}

/* Hero */
.hero {
  padding-top: 80px;
  padding-bottom: 40px;
  /* Premium Dark Gradient with Red Accent */
  background: linear-gradient(135deg, #0F172A 0%, #1e1b4b 60%, #5b0f19 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-benefits-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  color: #94a3b8;
  animation: fadeInRight 0.6s ease-out both;
}

.benefit-item:nth-child(1) { animation-delay: 0.2s; }
.benefit-item:nth-child(2) { animation-delay: 0.4s; }
.benefit-item:nth-child(3) { animation-delay: 0.6s; }

.benefit-icon {
  width: 20px;
  height: 20px;
  color: #f71729;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(247, 23, 41, 0.4));
}

.benefit-item span strong {
  color: white;
  font-weight: 600;
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Add a subtle overlay pattern or glow */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
  transform: rotate(30deg);
  z-index: 0;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: white;
  background: linear-gradient(135deg, #ffffff 0%, #f71729 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Ensure text is white */
  text-shadow: 0 4px 20px rgba(247, 23, 41, 0.3);
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #cbd5e1;
  max-width: 500px;
  line-height: 1.6;
}

.hero-free-text {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Hero Audit Form */
.hero-audit-container {
  margin-top: 60px;
  position: relative;
  max-width: 500px;
}

.hero-audit-form.audit-tabs-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.audit-tabs-container .audit-tabs,
.audit-tabs.hero-glass-tabs,
.audit-tabs {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 15px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  padding: 24px !important;
  border-radius: 28px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  max-width: 1150px !important;
  margin: 0 auto !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
  white-space: normal !important;
  overflow: visible !important;
}

.audit-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 12px 10px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
}

.tab-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2), inset 0 2px 4px rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.tab-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
  z-index: 1;
}

.google-pro { 
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%); 
}
.deep-analysis { 
  background: linear-gradient(135deg, #f87171 0%, #ef4444 50%, #991b1b 100%); 
}
.ai-visibility { 
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #6b21a8 100%); 
}
.local-bus { 
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #065f46 100%); 
}
.keyword-hits { 
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #9a3412 100%); 
}

/* Premium Icon Enhancements */
.tab-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom right, rgba(255,255,255,0.4) 0%, transparent 50%, rgba(0,0,0,0.2) 100%);
  pointer-events: none;
  z-index: 3;
}

.tab-icon svg {
  width: 24px;
  height: 24px;
  z-index: 2;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.audit-tab:not(.active) .tab-icon {
  animation: floatIcon 3s ease-in-out infinite;
}

.audit-tab:nth-child(2) .tab-icon { animation-delay: 0.2s; }
.audit-tab:nth-child(3) .tab-icon { animation-delay: 0.4s; }
.audit-tab:nth-child(4) .tab-icon { animation-delay: 0.6s; }
.audit-tab:nth-child(5) .tab-icon { animation-delay: 0.8s; }

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.tab-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.audit-tab:hover {
  background: rgba(255, 255, 255, 0.05);
}

.audit-tab:hover .tab-icon {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 20px rgba(255,255,255,0.1);
}

.audit-tab:hover svg {
  transform: scale(1.1);
  stroke-dasharray: 100;
  animation: drawStroke 1.5s ease forwards;
}

@keyframes drawStroke {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

.audit-tab:hover .tab-label {
  color: white;
  letter-spacing: 0.05em;
}

.audit-tab.active {
  background: rgba(255, 255, 255, 0.08);
}

.audit-tab.active .tab-icon {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 8px 24px rgba(0,0,0,0.3);
}

.audit-tab.active .tab-label {
  color: white;
  font-weight: 700;
}

@media (max-width: 768px) {
  .audit-tabs-container .audit-tabs,
  .audit-tabs.hero-glass-tabs,
  .audit-tabs {
    grid-template-columns: repeat(3, 1fr) !important;
    margin: 0 15px !important;
    padding: 20px 10px !important;
  }

  .hero-free-text {
    justify-content: center;
    margin-bottom: 2rem !important;
  }
}

@media (max-width: 480px) {
  .audit-tabs-container .audit-tabs,
  .audit-tabs.hero-glass-tabs,
  .audit-tabs {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    padding: 12px 4px !important;
  }
  
  .tab-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
  }
  
  .tab-label {
    font-size: 0.65rem !important;
    white-space: normal !important;
    text-align: center;
    line-height: 1.1;
  }
}

.hero-audit-form {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.input-wrapper {
  position: relative;
  flex: 1;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  color: #94a3b8;
}

.input-icon svg {
  width: 20px;
  height: 20px;
}

#hero-url-input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

#hero-url-input:focus {
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(247, 23, 41, 0.2);
}

.btn-audit-hero {
  white-space: nowrap;
  padding: 12px 24px;
  font-size: 1rem;
}

/* Audit Options */
.audit-options {
  display: none;
  /* Hidden by default */
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: 15px;
  background: rgba(30, 41, 59, 0.95);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  z-index: 50;
  animation: slideDown 0.3s ease-out;
}

.audit-options.active {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.option-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  transform: translateX(5px);
}

.option-icon {
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.option-info h3 {
  font-size: 0.95rem;
  color: white;
  margin-bottom: 2px;
}

.option-info p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

/* AI Trust Section */
.ai-trust-section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-trust-text {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

.highlight-text {
  color: white;
  font-weight: 600;
}

.ai-logos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  cursor: default;
}

.ai-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateY(-2px);
}

.ai-badge.highlight {
  background: rgba(247, 23, 41, 0.1);
  border-color: rgba(247, 23, 41, 0.3);
  color: var(--accent);
  font-weight: 600;
}

.ai-icon {
  font-size: 1rem;
}

/* Hero Mobile Demo Styles */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.phone-frame {
  width: 280px;
  height: 560px;
  background: #1e293b;
  border: 12px solid #334155;
  border-radius: 36px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.3s ease;
}

.phone-frame:hover {
  transform: rotateY(0) rotateX(0);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 24px;
  background: #334155;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  font-family: 'Inter', sans-serif;
}

/* Demo Animation Sequence */
.demo-sequence {
  position: relative;
  width: 100%;
  height: 100%;
}

.demo-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Step 1: Scan */
.step-scan {
  background: #f8fafc;
  animation: showStep1 12s infinite;
}

/* Persistent Header for Emulation */
.demo-header-persistent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 35px 16px 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.demo-branding {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-logo-mini {
  height: 24px !important;
  width: 24px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
  filter: brightness(0) opacity(0.9) !important;
}

.demo-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.demo-url-bar {
  width: 100%;
  background: rgba(15, 23, 42, 0.05);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  color: #64748b;
  text-align: center;
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Glass Reflection Effect */
.screen-gloss {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0) 40%,
      rgba(255, 255, 255, 0) 60%,
      rgba(255, 255, 255, 0.1) 100%);
  pointer-events: none;
  z-index: 20;
}

.demo-body {
  padding: 85px 20px 20px;
  /* Adjusted for persistent header */
  width: 100%;
  position: relative;
}

.code-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.line {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
}

.w-80 {
  width: 80%;
}

.w-60 {
  width: 60%;
}

.w-90 {
  width: 90%;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right,
      transparent 0%,
      rgba(247, 23, 41, 0.1) 20%,
      var(--accent) 50%,
      rgba(247, 23, 41, 0.1) 80%,
      transparent 100%);
  box-shadow: 0 0 15px var(--accent), 0 0 5px var(--accent);
  animation: scanMove 2.5s infinite linear;
  z-index: 5;
}

/* Step 2: Issues */
.step-issues {
  background: rgba(255, 0, 0, 0.05);
  animation: showStep2 12s infinite;
}

.demo-alert {
  width: 80%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  transform: scale(0.8);
  opacity: 0;
}

.demo-alert.error {
  background: #fee2e2;
  color: #ef4444;
  border: 1px solid #fca5a5;
  animation: popIn 0.5s forwards 4s;
}

.demo-alert.warning {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fcd34d;
  animation: popIn 0.5s forwards 4.2s;
}

.demo-cursor {
  position: absolute;
  bottom: 20%;
  right: 20%;
  font-size: 2rem;
  animation: moveCursor 2s forwards 5s;
}

/* Step 3: Fix */
.step-fix {
  background: white;
  justify-content: center;
  animation: showStep3 12s infinite;
}

.demo-btn-fix {
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transform: scale(1);
  animation: btnClick 0.3s 7.5s;
}

/* Step 4: Success */
.step-success {
  background: #dcfce7;
  animation: showStep4 12s infinite;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: bounceIn 0.6s 8.5s backwards;
}

.success-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #15803d;
  animation: fadeIn 0.5s 9s backwards;
}

.health-score-mini {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  font-weight: 800;
  color: #15803d;
  font-size: 1.5rem;
  animation: scaleUp 0.5s 9.5s backwards;
}

/* Keyframes */
@keyframes showStep1 {

  0%,
  30% {
    opacity: 1;
  }

  33%,
  100% {
    opacity: 0;
  }
}

@keyframes showStep2 {

  0%,
  30% {
    opacity: 0;
  }

  33%,
  63% {
    opacity: 1;
  }

  66%,
  100% {
    opacity: 0;
  }
}

@keyframes showStep3 {

  0%,
  63% {
    opacity: 0;
  }

  66%,
  79% {
    opacity: 1;
  }

  82%,
  100% {
    opacity: 0;
  }
}

@keyframes showStep4 {

  0%,
  79% {
    opacity: 0;
  }

  82%,
  95% {
    opacity: 1;
  }

  98%,
  100% {
    opacity: 0;
  }
}

@keyframes scanMove {
  0% {
    top: 0;
  }

  100% {
    top: 100%;
  }
}

@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes moveCursor {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: translate(-40px, -150px);
    opacity: 1;
  }
}

/* Adjusted for visual */
@keyframes btnClick {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes bounceIn {
  from {
    transform: scale(0);
  }

  60% {
    transform: scale(1.1);
  }

  to {
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    translate: 0 10px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes scaleUp {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

/* Hero Mobile Demo Styles */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

/* iPhone 15 Pro Style Frame */
.phone-frame {
  width: 280px;
  height: 580px;
  background: #1c1c1e;
  /* Space Black */
  border: 8px solid #38383a;
  /* Titanium Edge */
  border-radius: 48px;
  /* Match iPhone corners */
  position: relative;
  box-shadow:
    0 0 0 1px #000,
    0 25px 50px -12px rgba(0, 0, 0, 0.6),
    inset 0 0 20px rgba(0, 0, 0, 0.8);
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.3s ease;
  padding: 10px;
  max-width: 90%;
  height: auto;
  aspect-ratio: 9/18;
}

/* Inner black bezel */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 6px solid #000;
  border-radius: 42px;
  z-index: 5;
  pointer-events: none;
}

.phone-frame:hover {
  transform: rotateY(0) rotateX(0);
}

/* Side Buttons */
/* Mute Switch */
.phone-frame::after {
  content: '';
  position: absolute;
  top: 90px;
  left: -10px;
  width: 3px;
  height: 24px;
  background: #28282a;
  border-radius: 4px 0 0 4px;
}

.phone-screen {
  overflow: hidden;
}

/* Volume Buttons (Using Box Shadow to reduce elements) */
.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 4px;
  background: #000;
  border-radius: 2px;
  z-index: 100;
  opacity: 0.3;
}

/* Power Button */
.phone-notch {
  /* Dynamic Island */
  position: absolute;
  top: 18px;
  /* Adjusted for bezel */
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 28px;
  background: #000;
  border-radius: 14px;
  z-index: 20;
  transition: width 0.3s ease;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 34px;
  /* Screen Radius */
  overflow: hidden;
  position: relative;
  font-family: 'Inter', sans-serif;
  z-index: 1;
}

/* Screen Glare */
.phone-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 30;
}

/* Responsive Hero */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    margin: 0 auto;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }
}



/* Trust */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 40px 0;
}

.logo-grid {
  display: flex;
  justify-content: space-around;
  opacity: 0.6;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
  max-width: 800px;
  margin: 3rem auto 0;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 0 10px;
  }
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Services & Common Grids */
.bg-secondary {
  background: var(--bg-secondary);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.card {
  background: var(--bg-primary);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.icon-box {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Audit Tool */
.audit-tool-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.audit-form {
  display: flex;
  gap: 10px;
  width: 100%;
}

.audit-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.audit-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Audit Result Dashboard */
.audit-result {
  margin-top: 3rem;
  border-top: none;
  padding-top: 0;
}

.dashboard-card {
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
}

/* Icon Button */
.icon-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #64748b;
  padding: 4px;
  border-radius: 4px;
}

.icon-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.card-header {
  padding: 16px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.url-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
}

.target-url {
  color: #0284c7;
  /* Link blue */
  text-decoration: none;
}

.target-url:hover {
  text-decoration: underline;
}

.metrics-row {
  display: flex;
  padding: 20px 24px;
  gap: 30px;
  flex-wrap: wrap;
  align-items: flex-start;
}

@media (max-width: 600px) {
  .metrics-row {
    padding: 15px;
    gap: 15px;
  }

  .metric-group.seo-label {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
    margin-right: 0;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
}

.metric-group.seo-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 20px;
  border-right: 1px solid #f1f5f9;
  color: #0284c7;
  font-weight: 700;
  font-size: 0.9rem;
  margin-right: 10px;
  min-height: 60px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 80px;
}

.metric-label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.metric-value-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.metric-value.blue {
  color: #0284c7;
}

.metric-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 2px;
}

.mini-progress-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #1c375a;
  border-top-color: #f59e0b;
  /* Orange accent */
  display: inline-block;
}

.loader {
  font-weight: 600;
  color: var(--accent);
  animation: pulse 1.5s infinite;
  margin-bottom: 2rem;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

/* Future Tools */
.tool-card.blur {
  filter: grayscale(100%);
  opacity: 0.7;
  cursor: not-allowed;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Case Studies v2 (3-Column Grid) */
.case-studies-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.case-study-card-v2 {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.case-study-card-v2:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.case-visual-v2 {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.case-img-v2 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-study-card-v2:hover .case-img-v2 {
  transform: scale(1.05);
}

.case-badge-v2 {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.case-badge-v2.green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.case-badge-v2.purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.case-content-v2 {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-content-v2 h3 {
  font-size: 1.1rem;
  margin-bottom: 2px;
  color: var(--primary);
  font-weight: 700;
}

.case-content-v2 p {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.35;
  margin-bottom: 6px;
  flex: 1;
}

.results-v2 {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.res-item {
  font-size: 0.75rem;
  color: #1e293b;
}

.res-item strong {
  display: block;
  font-size: 0.9rem;
  color: #3b82f6;
}

.case-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: #3b82f6;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}

.case-link:hover {
  gap: 10px;
}

/* Mobile scaling for Case Studies */
@media (max-width: 768px) {
  .case-studies-grid-v2 {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .case-visual-v2 {
    height: 80px !important;
  }
  .case-content-v2 {
    padding: 8px !important;
  }
  .case-content-v2 h3 {
    font-size: 0.65rem !important;
    margin-bottom: 4px !important;
  }
  .case-content-v2 p {
    font-size: 0.45rem !important;
    margin-bottom: 8px !important;
  }
  .results-v2 {
    gap: 6px !important;
    margin-bottom: 8px !important;
  }
  .res-item {
    font-size: 0.45rem !important;
  }
  .res-item strong {
    font-size: 0.55rem !important;
  }
  .case-link {
    font-size: 0.45rem !important;
  }
  .case-badge-v2 {
    font-size: 0.4rem !important;
    padding: 2px 5px !important;
  }
}

.case-features li svg {
  color: #10b981;
}

.case-study-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.case-visual {
  flex: 1;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-muted);
  min-height: 300px;
  border-left: 1px solid var(--border);
}

.results {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.result-item span {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 5px;
}

/* CTA Section */
.bg-dark {
  background: var(--primary);
  color: white;
}

.bg-darker {
  background: var(--primary-light);
  color: white;
}

.text-white {
  color: white;

}

/* Redesigned Footer Styles */
.footer {
  padding: 80px 0 30px;
  background: #0f172a; /* Deep matching hero start */
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  flex: 1.2;
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo-image {
  height: 40px;
  width: auto;
  display: block;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0 !important;
  color: white !important; /* Force visibility on dark background */
  display: block !important; /* Ensure it's not hidden */
}

.footer-desc {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-social ul {
  display: flex;
  gap: 16px;
  padding: 0;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #94a3b8;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(247, 23, 41, 0.3);
}

.footer-links-grid {
  flex: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-links-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.footer-links-col ul {
  padding: 0;
}

.footer-links-col ul li {
  margin-bottom: 12px;
}

.footer-links-col ul li a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.footer-links-col ul li a:hover {
  color: white;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
}

.copyright-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 0.85rem;
}

.lumewise-link {
  color: #94a3b8;
  font-weight: 600;
  text-decoration: none;
}

.lumewise-link:hover {
  color: var(--accent);
}

@media (max-width: 1024px) {
  .footer-grid {
    flex-direction: column;
    gap: 40px;
  }
  
  .footer-brand {
    max-width: 100%;
    text-align: center;
  }

  .footer-desc {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  
  .footer-logo {
    justify-content: center;
    gap: 15px;
  }

  .footer-logo-image {
    flex-shrink: 0;
  }
  
  .footer-social ul {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .footer-links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .footer-links-grid {
    grid-template-columns: repeat(3, 1fr); /* Force row layout as requested */
    text-align: left;
    gap: 10px;
  }

  .footer-links-col h4 {
    font-size: 0.75rem;
  }

  .footer-links-col ul li a {
    font-size: 0.8rem;
  }
  
  .copyright-info {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* Mobile Fixes for Trusted Logos and Performance Button */
@media (max-width: 600px) {
  .logo-track {
    animation: none;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 20px;
    justify-items: center;
    padding: 20px 0;
  }

  .logo-carousel-item {
    font-size: 1.1rem;
    filter: grayscale(0);
    opacity: 0.8;
  }

  .logo-carousel::after {
    display: none;
  }

  .search-input-group {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .company-input {
    width: 100%;
    flex: none;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px;
    padding: 15px;
  }

  .search-icon-box {
    display: none;
  }

  .btn-search-business {
    width: 100%;
    padding: 15px;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .case-study-card {
    flex-direction: column !important;
    margin-bottom: 24px;
    border-radius: 16px;
  }

  .case-content {
    padding: 30px 20px;
  }

  .case-content h3 {
    font-size: 1.5rem;
  }

  .results {
    gap: 20px;
    flex-wrap: wrap;
  }

  .result-item span {
    font-size: 1.5rem;
  }

  .case-visual {
    border-left: none;
    border-top: 1px solid var(--border);
    min-height: 180px;
  }

  /* Footer removed from here to consolidate with main footer styles */

  .hero-title {
    font-size: 2.5rem;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-container {
    flex-direction: column;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: 60px;
    padding: 0 15px;
    justify-content: space-between;
  }

  .logo-image {
    height: 32px;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  /* Hide less important items on mobile to save space */
  .lang-selector {
    display: flex;
  }

  /* Toggle Buttons */
  .desktop-only-btn {
    display: none !important;
  }

  .mobile-only-btn {
    display: block !important;
    width: 100%;
    padding: 0 20px;
  }

  .mobile-menu-btn {
    display: block !important;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    z-index: 1002;
  }

  .nav {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    z-index: 1001;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #171a22;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    padding: 10px 0;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 15px 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-list.active {
    display: flex;
    animation: slideDown 0.3s ease-out forwards;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
    margin-bottom: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
    margin: 0 auto 1.5rem;
  }

  .hero-audit-form {
    flex-direction: column;
    padding: 15px;
  }

  .btn-audit-hero {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero {
    padding-top: 120px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .case-content {
    padding: 24px 16px;
  }

  .case-content h3 {
    font-size: 1.25rem;
  }

  .results {
    gap: 15px;
  }

  .result-item span {
    font-size: 1.25rem;
  }

  .case-visual {
    min-height: 150px;
  }
}

/* Base style for button (hidden on desktop) */
.mobile-menu-btn {
  display: none;
}

/* --- Dashboard Layout (report.html) --- */

.dashboard-body {
  background: #f1f5f9;
  color: var(--text-main);
  overflow-x: hidden;
}

.dashboard-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: #1e293b;
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  margin: 0 !important; /* Prevent any margins from moving fixed element */
}

/* Sidebar Collapsed State (Desktop) */
.sidebar-collapsed .sidebar {
  width: 80px;
}

.sidebar-collapsed .logo-text,
.sidebar-collapsed .sidebar-nav ul li a span:not(.icon),
.sidebar-collapsed .user-info {
  display: none;
}

.sidebar-collapsed .sidebar-header,
.sidebar-collapsed .sidebar-footer {
  padding: 24px 15px;
  text-align: center;
}

.sidebar-collapsed .sidebar-nav ul li a {
  justify-content: center;
  padding: 12px;
}

.sidebar-collapsed .sidebar-nav ul li a .icon {
  margin: 0;
  width: 24px;
  height: 24px;
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-small {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: white;
  letter-spacing: -0.02em;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 0;
}

.sidebar-nav ul li a {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s;
  gap: 12px;
}

.sidebar-nav ul li a .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: inherit;
}

.sidebar-nav ul li a .icon svg {
  width: 100%;
  height: 100%;
}

.sidebar-nav ul li.active a,
.sidebar-nav ul li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-left: 3px solid var(--accent);
}

.sidebar-footer {
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-info .name {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
}

.user-info .plan {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Audit Tabs Section Wrapper */
/* Legacy audit-tabs styles removed */

/* End of legacy audit-tab button styles removed */

.audit-box {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.crawler-box {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  margin: 0 auto;
}

/* Tab Animation */
.audit-tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.audit-tab-content.active {
  display: block;
}

.audit-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- PDF Preview Modal --- */
.preview-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  flex-direction: column;
}

.preview-modal.active {
  display: flex;
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
}

.preview-container {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 20px auto;
  width: 95%;
  background: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.preview-toolbar {
  height: 64px;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.preview-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #64748b;
  padding-left: 16px;
  border-left: 1px solid #e2e8f0;
}

.preview-actions {
  display: flex;
  gap: 12px;
}

.preview-body {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  background: #cbd5e1;
  padding: 40px;
}

.preview-body iframe {
  width: 100%;
  height: 100%;
  max-width: 850px; /* A4 width proxy */
  border: none;
  background: white;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
}

.preview-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 20;
}

.preview-loader .spinner {
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .preview-container {
    margin: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  
  .preview-toolbar {
    padding: 0 16px;
  }
  
  .preview-label {
    display: none;
  }
}

/* Update Crawler Box to match Dashboard Card style if needed, 
   but for now keep it consistent with existing layout */


/* Main Dashboard Area */
.dashboard-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 0;
}

.dashboard-main.sidebar-collapsed,
.sidebar-collapsed .dashboard-main {
  margin-left: 80px;
}

.dashboard-topbar {
  background: white;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
}

.breadcrumbs {
  font-size: 0.9rem;
  color: #64748b;
}

.breadcrumbs .current {
  color: #0f172a;
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  gap: 12px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.dashboard-content {
  padding: 32px;
}

.page-title {
  font-size: 1.75rem;
  margin-bottom: 24px;
  color: #0f172a;
}

.section-heading {
  font-size: 1.25rem;
  margin: 32px 0 16px;
  color: #0f172a;
}

/* Overview Cards */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.health-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.health-circle-large {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 16px 0;
}

.circular-chart {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 250px;
}

.circle-bg {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 2.5;
}

.circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  animation: progress 1s ease-out forwards;
}

@keyframes progress {
  0% {
    stroke-dasharray: 0 100;
  }
}

.health-circle-large .score {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
}

.text-success {
  color: #10b981;
  font-weight: 500;
  font-size: 0.9rem;
}

.issues-list-summary {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin-top: 16px;
  gap: 10px;
}

.issue-item {
  text-align: center;
}

.issue-item .count {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.issue-item.error .count {
  color: #ef4444;
}

.issue-item.warning .count {
  color: #f59e0b;
}

.issue-item.notice .count {
  color: #3b82f6;
}

.issue-item .label {
  font-size: 0.8rem;
  color: #64748b;
}

.crawled-card .big-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
}

.crawled-card .sub-text {
  text-align: center;
  color: #64748b;
  margin-bottom: 16px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
}

/* CWV */
.cwv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cwv-item {
  text-align: center;
  padding: 24px;
}

.cwv-item .value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 8px 0;
}

.cwv-item.pass .value {
  color: #10b981;
}

.cwv-item.pass .status {
  color: #10b981;
  background: #d1fae5;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.cwv-item.fail .value {
  color: #ef4444;
}

.cwv-item.fail .status {
  color: #ef4444;
  background: #fee2e2;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Expanded Dashboard Styles */
.filters-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.text-muted {
  color: #64748b;
}

.text-sm {
  font-size: 0.875rem;
}

.font-medium {
  font-weight: 500;
}

.text-primary {
  color: var(--accent);
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.w-full {
  width: 100%;
}

.ml-2 {
  margin-left: 0.5rem;
}

.flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.gap-2 {
  gap: 0.5rem;
}

/* Status Badges */
.status-pill {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-2xx {
  background: #dcfce7;
  color: #15803d;
}

.status-3xx {
  background: #e0f2fe;
  color: #0369a1;
}

.status-4xx {
  background: #fee2e2;
  color: #b91c1c;
}

.status-5xx {
  background: #fef9c3;
  color: #b45309;
}

/* truncate */
.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Forms & Inputs */
.form-input,
.form-select {
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: #334155;
}

.search-box {
  width: 300px;
}

.search-box .form-input {
  width: 100%;
}

.badge-pill {
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #475569;
}

/* Table */
.table-card {
  padding: 0;
  overflow-x: auto;
}

.issues-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.issues-table th {
  background: #f8fafc;
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.issues-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  white-space: normal;
  word-break: break-word;
}

.badge-error {
  background: #fee2e2;
  color: #ef4444;
}

.badge-warning {
  background: #fef3c7;
  color: #d97706;
}

.badge-notice {
  background: #dbeafe;
  color: #1d4ed8;
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
  display: block;
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
  .sidebar {
    left: -260px;
    width: 260px !important; /* Force width on mobile */
  }

  .sidebar.active {
    left: 0;
  }

  .sidebar-collapsed .sidebar {
    left: -260px;
  }

  .sidebar-collapsed .sidebar.active {
    left: 0;
  }

  .dashboard-main {
    margin-left: 0 !important;
  }

  .sidebar-collapsed .dashboard-main {
    margin-left: 0 !important;
  }

  /* Show labels on mobile even if collapsed state is active in localStorage */
  .sidebar.active .logo-text,
  .sidebar.active .sidebar-nav ul li a span:not(.icon),
  .sidebar.active .user-info {
    display: flex !important;
  }

  .sidebar.active .sidebar-header,
  .sidebar.active .sidebar-footer {
    padding: 24px !important;
    text-align: left !important;
  }

  .sidebar.active .sidebar-nav ul li a {
    justify-content: flex-start !important;
    padding: 12px 24px !important;
  }

  .cwv-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard-content {
    padding: 20px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .cwv-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .cwv-item {
    padding: 10px 4px;
  }

  .cwv-item h4 {
    font-size: 0.8rem;
    margin-bottom: 4px;
  }

  .cwv-item .value {
    font-size: 1rem;
    margin: 4px 0;
  }

  .cwv-item .status {
    font-size: 0.65rem;
    padding: 2px 6px;
    white-space: nowrap;
  }

  .dashboard-topbar {
    padding: 0 15px;
  }

  .page-title {
    font-size: 1.4rem;
  }

  .metrics-grid {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .secondary-metrics {
    grid-template-columns: 1fr;
    border-left: none;
    border-top: 1px solid #f1f5f9;
    padding-left: 0;
    padding-top: 20px;
    width: 100%;
  }

  .search-box {
    width: 100%;
    margin-bottom: 10px;
  }

  .filters-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .issues-table {
    font-size: 0.8rem;
  }

  .issues-table th,
  .issues-table td {
    padding: 8px 6px;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .issues-table th {
    white-space: normal;
    word-break: normal;
    font-size: 0.75rem;
  }

  .issues-table .badge {
    padding: 2px 6px;
    font-size: 0.65rem;
    margin-bottom: 0;
    white-space: nowrap;
  }

  .issues-list-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    justify-items: center;
  }

  .issue-item .count {
    font-size: 1.1rem;
  }

  .issue-item .label {
    font-size: 0.7rem;
  }

  .issues-table .btn-link {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .card.table-card {
    font-size: 0.85rem;
  }

  .issues-table td.text-sm {
    font-size: 0.75rem;
    line-height: 1.3;
  }
}

/* Modern Audit Results UI */

/* Glassmorphism Card */
.glass-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 10px 40px -10px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.02);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 50px -12px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.02);
}

.card-header {
  padding: 20px 32px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(248, 250, 252, 0.5);
}

.url-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-favicon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.badge-pro {
  background: linear-gradient(135deg, #4f46e5, #ec4899);
  color: white;
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.online {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Metrics Grid */
.metrics-grid {
  display: flex;
  padding: 32px;
  gap: 32px;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
}

.metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s;
}

.metric-card:hover {
  transform: scale(1.05);
}

/* Donut Charts */
.chart-container {
  width: 120px;
  height: 120px;
  position: relative;
}

.donut-chart {
  width: 100%;
  height: 100%;
}

.circular-chart {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 100%;
}

.circle-bg {
  fill: none;
  stroke: #f1f5f9;
  stroke-width: 2.5;
}

.circle {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke: var(--c);
  /* defined in inline style */
  animation: progress 1.5s ease-out forwards;
}

@keyframes progress {
  0% {
    stroke-dasharray: 0 100;
  }
}

.center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-weight: 800;
  color: #1e293b;
  font-size: 1.5rem;
}

.center-text .percent {
  font-size: 0.9rem;
  color: #64748b;
  margin-left: 2px;
}

.metric-label {
  font-weight: 600;
  color: #334155;
}

.trend {
  font-size: 0.8rem;
  font-weight: 500;
}

.trend.up {
  color: #10b981;
}

.trend.neutral {
  color: #64748b;
}

/* Secondary Metrics */
.secondary-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-left: 32px;
  border-left: 1px solid #f1f5f9;
}

.mini-metric {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s;
}

.mini-metric:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.mini-metric .icon {
  font-size: 1.25rem;
}

.mini-metric-content {
  display: flex;
  flex-direction: column;
}

.mini-metric .value {
  font-weight: 700;
  color: #0f172a;
  font-size: 1.1rem;
  line-height: 1.2;
}

.mini-metric .label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Glowing Button */
.btn-glow {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
  min-width: 240px;
}

.btn-glow:hover {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
  transform: translateY(-2px);
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

/* Fade In Up Data */
/* Customization Section */
.customization-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.customization-text {
  flex: 1;
  max-width: 500px;
}

.customization-visual {
  flex: 1;
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.feature-list {
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: #e2e8f0;
}

.feature-list .icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Animations & Visuals */
.glow-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  animation: pulseGlow 4s infinite alternate ease-in-out;
  z-index: 0;
}

.floating-cards {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  transform-style: preserve-3d;
  animation: floatMain 10s infinite ease-in-out;
}

.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.float-card.card-lang-1 { top: 10%; left: 0%; animation: floatItem 6s infinite ease-in-out reverse; }
.float-card.card-lang-2 { top: 0%; right: 10%; animation: floatItem 7s infinite ease-in-out 1s; }
.float-card.card-lang-3 { bottom: 10%; left: 10%; animation: floatItem 8s infinite ease-in-out 2s; }
.float-card.card-lang-4 { bottom: 5%; right: 0%; animation: floatItem 6s infinite ease-in-out 3s; }

.float-card:hover {
  transform: translateY(-10px) scale(1.05) !important;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
  z-index: 10;
}

.main-theme-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateY(-15deg) rotateX(10deg);
  width: 260px;
  height: 180px;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: none; /* Controlled by parent floatMain */
}

.main-theme-card:hover {
  transform: translate(-50%, -50%) rotateY(0) rotateX(0) scale(1.05) !important;
}

.theme-header {
  height: 40px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
}

.theme-header .dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #475569;
  margin-right: 4px;
}
.theme-header .dots span:first-child { background: #ef4444; }
.theme-header .dots span:nth-child(2) { background: #f59e0b; }
.theme-header .dots span:nth-child(3) { background: #10b981; }

.theme-toggle {
  width: 32px;
  height: 16px;
  background: #3b82f6;
  border-radius: 10px;
  position: relative;
}
.toggle-switch {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
}

.theme-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-line {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Keyframes */
@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

@keyframes floatMain {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes floatItem {
  0% { transform: translateY(0px) translateX(0px); }
  33% { transform: translateY(-8px) translateX(5px); }
  66% { transform: translateY(5px) translateX(-5px); }
  100% { transform: translateY(0px) translateX(0px); }
}

@media (max-width: 900px) {
  .customization-container {
    flex-direction: column;
  }
  .customization-text {
    text-align: center;
    margin: 0 auto;
  }
  .feature-list li {
    justify-content: center;
  }
  .customization-visual {
    margin-top: 40px;
    width: 100%;
    min-height: 350px;
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .metrics-grid {
    flex-direction: column;
    padding: 20px;
  }

  .secondary-metrics {
    border-left: none;
    border-top: 1px solid #f1f5f9;
    padding-left: 0;
    padding-top: 20px;
    width: 100%;
  }
}

/* Trust Section */
.trust.section {
  padding: 80px 0;
  background: linear-gradient(to bottom, #f8fafc, #ffffff);
  border-bottom: 1px solid #e2e8f0;
}

.logo-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px 60px;
  margin-bottom: 60px;
  opacity: 0.7;
}

.logo-item {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  transition: all 0.3s ease;
  user-select: none;
  cursor: default;
}

.logo-item:hover {
  color: var(--accent);
  transform: translateY(-2px);
  opacity: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.stat-item:nth-child(1) {
  animation-delay: 0.2s;
}

.stat-item:nth-child(2) {
  animation-delay: 0.4s;
}

/* Performance Analysis Section */
.performance.section {
  padding: 100px 0;
  background: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
  position: relative;
  overflow: hidden;
}

.performance-header {
  max-width: 700px;
  margin: 0 auto 60px;
}

.performance .section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.performance .section-subtitle {
  color: #334155;
  font-size: 1.1rem;
  font-weight: 500;
}

.business-search-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* --- Performance Analysis DARK THEME --- */
.performance.section.dark-performance {
  background: #030712 !important;
  padding: 120px 0;
  color: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.dark-performance::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.dark-performance .performance-badge {
  background: rgba(124, 58, 237, 0.1);
  color: #a78bfa;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid rgba(124, 58, 237, 0.2);
  margin-bottom: 20px;
  display: inline-block;
}

.dark-performance .section-title {
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
  font-size: 3rem;
}

.dark-performance .section-subtitle {
  color: #94a3b8 !important;
}

/* Search Group */
.dark-performance .business-search-container {
  max-width: 800px;
  margin: 0 auto;
}

.dark-performance .search-input-group {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.02) !important;
  backdrop-filter: blur(20px);
  padding: 12px !important;
  border-radius: 24px !important;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-performance .search-input-group:focus-within {
  border-color: rgba(124, 58, 237, 0.5) !important;
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.15), inset 0 0 20px rgba(124, 58, 237, 0.05) !important;
  transform: translateY(-2px);
}

.dark-performance .company-input {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 1.1rem !important;
  padding: 15px 15px 15px 45px !important;
  flex: 1;
  outline: none !important;
}

.dark-performance .search-icon {
  position: absolute;
  left: 25px;
  color: #a78bfa;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.dark-performance .btn-search-business {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
  border: none !important;
  padding: 15px 35px !important;
  border-radius: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3) !important;
  transition: all 0.3s ease;
}

.dark-performance .btn-search-business:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(124, 58, 237, 0.4) !important;
}

/* Top Stats Row */
.performance-top-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 60px;
  margin-bottom: 40px;
}
@media (max-width: 480px) {
  .performance-top-stats {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 5px !important;
    margin-top: 20px !important;
  }
}

.perf-stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  transition: all 0.3s ease;
}

.perf-stat-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.1);
}

.perf-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.perf-icon-box.blue { background: rgba(59, 130, 246, 0.1); color: #60a5fa; }
.perf-icon-box.green { background: rgba(16, 185, 129, 0.1); color: #34d399; }
.perf-icon-box.yellow { background: rgba(245, 158, 11, 0.1); color: #fbbf24; }
.perf-icon-box.purple { background: rgba(139, 92, 246, 0.1); color: #a78bfa; }
.perf-icon-box.red { background: rgba(239, 68, 68, 0.1); color: #f87171; }

.perf-stat-info {
  display: flex;
  flex-direction: column;
}

.perf-label {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 4px;
}

.perf-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.perf-sub {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: lowercase;
}

.perf-mini-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-top: 16px;
  overflow: hidden;
}

.perf-mini-bar .fill {
  height: 100%;
  transition: width 1.5s ease;
}

.perf-mini-bar .fill.blue { background: #3b82f6; }
.perf-mini-bar .fill.green { background: #10b981; }
.perf-mini-bar .fill.yellow { background: #f59e0b; }
.perf-mini-bar .fill.purple { background: #8b5cf6; }
.perf-mini-bar .fill.red { background: #ef4444; }

/* Grid Cards */
.dark-glass {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 32px;
  padding: 40px;
}

.card-header-with-icon {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.header-icon {
  width: 24px;
  height: 24px;
  color: #7c3aed;
}

.header-icon.purple { color: #a78bfa; }
.header-icon.blue { color: #60a5fa; }

.header-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.header-text p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 4px 0 0;
}

/* Strength List V2 */
.strength-list-v2 {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.strength-item-v2 .item-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.icon-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.mini-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mini-icon i { width: 16px; height: 16px; }

.mini-icon.purple { background: rgba(139, 92, 246, 0.1); color: #a78bfa; }
.mini-icon.green { background: rgba(16, 185, 129, 0.1); color: #34d399; }
.mini-icon.yellow { background: rgba(245, 158, 11, 0.1); color: #fbbf24; }
.mini-icon.purple-light { background: rgba(167, 139, 250, 0.1); color: #c4b5fd; }
.mini-icon.red { background: rgba(239, 68, 68, 0.1); color: #f87171; }

.label-desc {
  display: flex;
  flex-direction: column;
}

.label-desc .label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
}

.label-desc .desc {
  font-size: 0.8rem;
  color: #64748b;
}

.strength-item-v2 .value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3b82f6;
}

.bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 1.5s ease;
}

.bar-fill.blue { background: #3b82f6; }
.bar-fill.green { background: #10b981; }
.bar-fill.yellow { background: #f59e0b; }
.bar-fill.purple { background: #8b5cf6; }
.bar-fill.red { background: #ef4444; }

/* Insights V2 */
.smart-insights-v2 {
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 20px;
  padding: 24px;
}

.insights-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.insight-icon { width: 20px; height: 20px; color: #a78bfa; }

.insights-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.insights-list-v2 {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insights-list-v2 li {
  font-size: 0.85rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 10px;
}

.insights-list-v2 li .check {
  width: 14px;
  height: 14px;
  color: #a78bfa;
}

/* Donut Chart V2 */
.donut-chart-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.donut-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}

.donut-center-v2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-center-v2 .label {
  display: block;
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.donut-center-v2 .value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
}

.donut-legend-v2 {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.legend-item-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legend-item-v2 .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-item-v2 .name {
  font-size: 0.9rem;
  color: #94a3b8;
  flex: 1;
}

.legend-item-v2 .pct {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.dot.green { background: #10b981; }
.dot.blue { background: #3b82f6; }
.dot.yellow { background: #f59e0b; }
.dot.red { background: #ef4444; }

/* Competitors List V2 */
.header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.header-controls .label {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.header-controls .view-all {
  font-size: 0.75rem;
  color: #7c3aed;
  text-decoration: none;
  background: rgba(124, 58, 237, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

.comp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comp-row:last-child { border-bottom: none; }

.comp-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comp-rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.comp-rank.yellow { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.comp-rank.silver { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }
.comp-rank.bronze { background: rgba(180, 83, 9, 0.2); color: #d97706; }

.comp-avatar {
  width: 36px;
  height: 36px;
  background: rgba(124, 58, 237, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #a78bfa;
}

.comp-details {
  display: flex;
  flex-direction: column;
}

.comp-details .name { font-size: 0.9rem; font-weight: 600; color: #f1f5f9; }
.comp-details .type { font-size: 0.75rem; color: #64748b; }

.comp-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}

.comp-stats .vis {
  font-size: 1rem;
  font-weight: 700;
}

.comp-sparkline {
  width: 80px;
  height: 24px;
}

.sparkline-svg {
  width: 100%;
  height: 100%;
}

/* Footer Features */
.performance-footer-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 30px !important;
}

/* --- V3 Dashboard Layout --- */
.performance-dashboard-v3 {
  max-width: 1400px;
  margin: 60px auto 100px;
}

.perf-grid-v3 {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
}

.perf-left-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.perf-right-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Strength List V3 */
.strength-list-v3 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.strength-item-v3 .item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.strength-item-v3 .label-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f1f5f9;
}

.strength-item-v3 .label-with-icon i {
  width: 16px;
  height: 16px;
  color: #a78bfa;
}

.strength-item-v3 .value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3b82f6;
}

.strength-item-v3 .item-desc {
  font-size: 0.75rem;
  color: #64748b;
  margin: 8px 0 0;
}

/* Insights V3 */
.insights-list-v3 {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insights-list-v3 li {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.4;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}

.insights-list-v3 li i { flex-shrink: 0; width: 14px; height: 14px; margin-top: 2px; }
.insights-list-v3 li i.check { color: #10b981; }
.insights-list-v3 li i.alert { color: #ef4444; }

/* Donut V3 */
.donut-chart-container-v3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.donut-wrapper-v3 {
  position: relative;
  width: 200px;
  height: 200px;
}

.donut-center-v3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-center-v3 .label { font-size: 0.65rem; color: #64748b; font-weight: 700; display: block; margin-bottom: 4px; }
.donut-center-v3 .value { font-size: 2.25rem; font-weight: 800; color: #ffffff; }

.donut-legend-v3 {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.legend-item-v3 {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.3s;
}

.legend-item-v3:hover { background: rgba(255, 255, 255, 0.05); }

.legend-item-v3 .dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-item-v3 .name { font-size: 0.9rem; color: #94a3b8; flex: 1; }
.legend-item-v3 .pct { font-size: 0.9rem; font-weight: 700; color: #ffffff; }

/* Modules Grid V3 */
.modules-subgrid-v3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.module-card-v3 {
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.card-header-v3 {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.card-header-v3 i { width: 24px; height: 24px; flex-shrink: 0; }
.card-header-v3 h4 { font-size: 1.1rem; color: #ffffff; margin: 0; font-weight: 700; }
.card-header-v3 p { font-size: 0.8rem; color: #64748b; margin: 2px 0 0; }

/* Radial V3 */
.radial-container-v3 {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.radial-v3 {
  position: relative;
  width: 140px;
  height: 140px;
}

.radial-v3 svg {
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.15));
}
.radial-v3 circle {
  fill: transparent;
  stroke-width: 8;
  stroke-linecap: round;
}
.radial-v3 circle.bg {
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 6;
}
.radial-v3 circle.fg {
  transition: stroke-dasharray 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  stroke-width: 8;
  stroke: #7c3aed;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.5));
}

.radial-text-v3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 76%;
  height: 76%;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.radial-text-v3 .val {
  font-size: 1.35rem !important;
  font-weight: 800;
  background: linear-gradient(135deg, #c084fc 30%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  display: block;
  text-shadow: 0 0 15px rgba(167, 139, 250, 0.4);
  line-height: 1;
}
.radial-text-v3 .lbl {
  font-size: 0.5rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Light Performance Mode Overrides for Radial-v3 */
.light-performance .radial-text-v3 {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.light-performance .radial-text-v3 .val {
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  text-shadow: none !important;
}

.growth-stats-v3 { display: flex; flex-direction: column; gap: 10px; }
.g-stat { display: flex; justify-content: space-between; font-size: 0.8rem; color: #94a3b8; }
.g-stat .val { font-weight: 700; }

.btn-unlock-v3 {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: #a78bfa;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-unlock-v3:hover { background: rgba(124, 58, 237, 0.2); transform: translateY(-2px); }

/* Missed V3 */
.missed-main-v3 { text-align: center; }
.missed-count-box { display: flex; align-items: center; justify-content: center; gap: 15px; }
.missed-count-box i { width: 32px; height: 32px; }
.missed-count-box .num { font-size: 2.5rem; font-weight: 800; color: #f59e0b; }
.missed-main-v3 .sub { font-size: 0.85rem; color: #64748b; font-weight: 600; }

.missed-bars-v3 { display: flex; flex-direction: column; gap: 16px; }
.m-bar-v3 .m-info-v3 { display: flex; justify-content: space-between; font-size: 0.75rem; color: #94a3b8; margin-bottom: 6px; }
.m-bar-v3 .m-info-v3 .val { font-weight: 700; color: #f1f5f9; }
.m-progress-v3 { height: 6px; background: rgba(255, 255, 255, 0.05); border-radius: 10px; overflow: hidden; }
.m-fill-v3 { height: 100%; transition: width 1.5s ease; border-radius: 10px; }

/* Quick Wins V3 */
.wins-list-v3 { display: flex; flex-direction: column; gap: 12px; }
.win-row-v3 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}

.win-row-v3 i { width: 18px; height: 18px; flex-shrink: 0; }
.win-data { flex: 1; display: flex; flex-direction: column; }
.win-data span { font-size: 0.85rem; font-weight: 600; color: #f1f5f9; }
.win-data small { font-size: 0.7rem; color: #10b981; font-weight: 600; }
.win-row-v3 .time { font-size: 0.75rem; color: #64748b; }

.wins-footer-v3 { display: flex; justify-content: space-between; align-items: center; }
.wins-footer-v3 .total-time { font-size: 0.75rem; color: #64748b; }
.btn-apply-v3 {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

/* --- V4 3-Column Dashboard Layout --- */
.perf-main-grid-v4 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch; /* Changed from start to stretch for equal column heights */
}

.perf-col-v4 {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

/* Ensure the last card in each column fills the remaining vertical space for a clean bottom line */
.perf-col-v4 > div:last-child {
  flex: 1;
}

/* Mobile Scale-down for v4 Grid */
@media (max-width: 768px) {
  .perf-main-grid-v4 {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .perf-col-v4 {
    gap: 8px !important;
  }
  .dark-glass, .breakdown-card, .smart-insights-card, .market-share-card, .module-card-v3, .report-cta-card {
    padding: 8px !important;
    border-radius: 12px !important;
  }
  .card-header-with-icon, .card-header-v3 {
    margin-bottom: 8px !important;
    gap: 5px !important;
  }
  .card-header-with-icon i, .card-header-v3 i {
    width: 14px !important;
    height: 14px !important;
  }
  .card-header-with-icon h3, .card-header-v3 h4 {
    font-size: 0.65rem !important;
  }
  .card-header-with-icon p, .card-header-v3 p {
    font-size: 0.45rem !important;
  }
  .strength-item-v3 .label-with-icon {
    font-size: 0.5rem !important;
    gap: 4px !important;
  }
  .strength-item-v3 .value, .radial-text-v3 .val, .missed-count-box .num, .p-item-v3 .num {
    font-size: 0.75rem !important;
  }
  .bar-bg {
    height: 4px !important;
  }
  .insights-list-v3 li {
    font-size: 0.45rem !important;
    padding: 4px !important;
    gap: 4px !important;
  }
  .insights-list-v3 li i {
    width: 8px !important;
    height: 8px !important;
  }
  .donut-wrapper-v3 {
    width: 60px !important;
    height: 60px !important;
  }
  .donut-center-v3 .value {
    font-size: 0.7rem !important;
  }
  .legend-item-v3 {
    padding: 2px !important;
    gap: 4px !important;
  }
  .legend-item-v3 .name {
    font-size: 0.45rem !important;
  }
  .legend-item-v3 .dot {
    width: 6px !important;
    height: 6px !important;
  }
  .radial-v3 {
    width: 50px !important;
    height: 50px !important;
  }
  .g-stat {
    font-size: 0.45rem !important;
  }
  .win-row-v3 {
    padding: 3px !important;
    gap: 4px !important;
  }
  .win-data span {
    font-size: 0.5rem !important;
  }
  .win-data small {
    font-size: 0.4rem !important;
  }
  .missed-count-box i {
    width: 12px !important;
    height: 12px !important;
  }
  .missed-main-v3 .sub {
    font-size: 0.45rem !important;
  }
  .m-info-v3 {
    font-size: 0.45rem !important;
  }
  .meter-bar-v3 {
    height: 6px !important;
  }
  .p-item-v3 .dot {
    width: 6px !important;
    height: 6px !important;
  }
  .p-info span {
    font-size: 0.5rem !important;
  }
  .btn-unlock-v3, .btn-apply-v3, .btn-primary {
    padding: 4px 8px !important;
    font-size: 0.5rem !important;
    border-radius: 6px !important;
  }
  .report-cta-card h4 {
    font-size: 0.6rem !important;
  }
  .report-cta-card i {
    width: 16px !important;
    height: 16px !important;
  }
}

.btn-apply-v3:hover { background: #10b981; color: #ffffff; }

/* Priority V3 */
.meter-bar-v3 { display: flex; height: 12px; background: rgba(255, 255, 255, 0.05); border-radius: 100px; overflow: hidden; gap: 2px; }
.meter-bar-v3 .seg { transition: flex 1.5s ease; }
.meter-bar-v3 .seg.high { background: #ef4444; }
.meter-bar-v3 .seg.med { background: #f59e0b; }
.meter-bar-v3 .seg.low { background: #10b981; }

.meter-legend-v3 { display: flex; flex-direction: column; gap: 12px; }
.p-item-v3 { display: flex; align-items: center; gap: 12px; }
.p-item-v3 .dot { width: 8px; height: 8px; border-radius: 50%; }
.p-info { flex: 1; display: flex; flex-direction: column; }
.p-info span { font-size: 0.85rem; font-weight: 600; color: #f1f5f9; }
.p-info small { font-size: 0.7rem; color: #64748b; }
.p-item-v3 .num { font-size: 0.85rem; font-weight: 700; color: #ffffff; }

.priority-footer-v3 { display: flex; gap: 12px; padding: 12px; background: rgba(255, 255, 255, 0.02); border-radius: 12px; font-size: 0.75rem; color: #64748b; }
.priority-footer-v3 i { width: 14px; height: 14px; color: #a78bfa; flex-shrink: 0; }

@media (max-width: 1024px) {
  .perf-grid-v3 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .modules-subgrid-v3 { grid-template-columns: 1fr; }
  .donut-chart-container-v3 { flex-direction: column; text-align: center; }
}

.feat-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.footer-feat:hover .feat-icon {
  transform: scale(1.1) rotate(5deg);
}

.feat-icon i { width: 28px; height: 28px; }

.feat-icon.blue { color: #3b82f6; background: rgba(59, 130, 246, 0.1); }
.feat-icon.green { color: #10b981; background: rgba(16, 185, 129, 0.1); }
.feat-icon.yellow { color: #f59e0b; background: rgba(245, 158, 11, 0.1); }
.feat-icon.red { color: #ef4444; background: rgba(239, 68, 68, 0.1); }

.feat-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}

.feat-text p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .performance-footer-features {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    margin-top: 20px !important;
  }
  .footer-feat {
    flex-direction: column !important;
    text-align: center !important;
    gap: 8px !important;
  }
  .feat-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    margin: 0 auto !important;
  }
  .feat-icon i {
    width: 16px !important;
    height: 16px !important;
  }
  .feat-text h4 {
    font-size: 0.6rem !important;
    margin: 0 !important;
    line-height: 1.2 !important;
  }
  .feat-text p {
    display: none !important; /* Hide description on tight 4-col mobile footer */
  }
}

@media (max-width: 1024px) {
  .performance-top-stats { grid-template-columns: repeat(3, 1fr); }
  .performance-footer-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .performance-grid { grid-template-columns: 1fr; }
  .performance-top-stats { grid-template-columns: repeat(2, 1fr); }
  .donut-chart-container { flex-direction: column; text-align: center; }
  .donut-legend-v2 { align-items: center; }
}

@media (max-width: 480px) {
  .performance-top-stats { 
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 8px !important;
  }
  .perf-stat-card {
    padding: 12px 8px !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .perf-icon-box {
    width: 32px !important;
    height: 32px !important;
    margin-bottom: 8px !important;
  }
  .perf-icon-box i {
    width: 14px !important;
    height: 14px !important;
  }
  .perf-label {
    font-size: 0.65rem !important;
    line-height: 1.2 !important;
    margin-bottom: 4px !important;
    height: 2.4em; /* Ensure alignment */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .perf-value {
    font-size: 1rem !important;
    margin-bottom: 4px !important;
  }
  .perf-sub {
    display: none !important; /* Hide subtext on tight 3-col mobile */
  }
  .perf-mini-bar {
    height: 4px !important;
    margin-top: 4px !important;
    width: 80% !important;
  }
  .performance-footer-features { grid-template-columns: 1fr; }
}

/* --- V3 Dashboard Responsiveness --- */
@media (max-width: 1200px) {
  .perf-grid-v3 { 
    grid-template-columns: 1fr; 
    gap: 32px;
  }
  .perf-left-col { order: 2; }
  .perf-right-col { order: 1; }
}

@media (max-width: 768px) {
  .modules-subgrid-v3 { 
    grid-template-columns: 1fr; 
  }
  .donut-chart-container-v3 { 
    flex-direction: column; 
    text-align: center;
    gap: 30px; 
  }
  .donut-legend-v3 { 
    width: 100%; 
    align-items: center;
  }
}


.stat-item:nth-child(3) {
  animation-delay: 0.6s;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #cbd5e1;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 8px;
  background: linear-gradient(135deg, #0F172A 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .logo-grid {
    gap: 30px;
  }
}

/* Dashboard Result Card Styling */
.dashboard-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  margin-top: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ec4899, #8b5cf6, #3b82f6);
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .dashboard-card {
    padding: 20px;
    border-radius: 16px;
    margin-top: 20px;
  }

  .card-header {
    padding: 15px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .card-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
}

.glass-panel {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card Header adjustments */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.url-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.target-url {
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  font-size: 1.25rem;
}

.badge-pro {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(236, 72, 153, 0.3);
}

.card-actions .icon-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
  color: #64748b;
}

/* Deep Scan Table Styling */
.crawl-table-container {
  overflow-x: auto;
  margin-top: 20px;
}

.crawl-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

.crawl-table th,
.crawl-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.crawl-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.crawl-table th:first-child {
  border-top-left-radius: 12px;
}

.crawl-table th:last-child {
  border-top-right-radius: 12px;
}

.crawl-table tr:hover td {
  background: #f8fafc;
}

.crawl-table td {
  color: #334155;
  font-size: 0.95rem;
}

.crawl-table a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.crawl-table a:hover {
  text-decoration: underline;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-badge.success {
  background: #dcfce7;
  color: #166534;
}

.status-badge.error {
  background: #fee2e2;
  color: #991b1b;
}

.card-actions .icon-btn:hover {
  background: #f1f5f9;
  color: #3b82f6;
}

/* Logo Fix */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-image {
  height: 40px;
  width: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: #ffffff;
}

/* Deep Scan Progress Bar */
.loading-container {
  width: 100%;
  max-width: 400px;
  margin: 30px auto;
  text-align: center;
}

.progress-bar-container {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-bottom: 15px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #06b6d4, #3b82f6);
  background-size: 200% 100%;
  border-radius: 10px;
  transition: width 0.3s ease;
  animation: gradientMove 2s linear infinite;
}

.loading-text {
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}

@keyframes gradientMove {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

/* Keyword Analysis Component */
.google-tools-menu {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 2px;
}

.search-tabs {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.search-tabs::-webkit-scrollbar {
  display: none;
}

.search-tab {
  background: none;
  border: none;
  padding: 10px 0;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}

.search-tab.active {
  color: #1a73e8;
}

.search-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #1a73e8;
}

.search-tab:hover {
  color: #1a73e8;
}

.search-tab.tools-btn {
  margin-left: 10px;
  border-left: 1px solid #e2e8f0;
  padding-left: 20px;
}

.keyword-metric-box {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.keyword-score {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.suggestion-card {
  padding: 15px;
  background: white;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
  transition: transform 0.2s, box-shadow 0.2s;
}

.suggestion-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}


/* Customization Section */
.customization-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.customization-text {
  flex: 1;
  max-width: 500px;
}

.customization-visual {
  flex: 1;
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.feature-list {
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: #e2e8f0;
}

.feature-list .icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Animations & Visuals */
.glow-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  animation: pulseGlow 4s infinite alternate ease-in-out;
  z-index: 0;
}

.floating-cards {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  transform-style: preserve-3d;
  animation: floatMain 10s infinite ease-in-out;
}

.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.float-card.card-lang-1 { top: 10%; left: 0%; animation: floatItem 6s infinite ease-in-out reverse; }
.float-card.card-lang-2 { top: 0%; right: 10%; animation: floatItem 7s infinite ease-in-out 1s; }
.float-card.card-lang-3 { bottom: 10%; left: 10%; animation: floatItem 8s infinite ease-in-out 2s; }
.float-card.card-lang-4 { bottom: 5%; right: 0%; animation: floatItem 6s infinite ease-in-out 3s; }

.float-card:hover {
  transform: translateY(-10px) scale(1.05) !important;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
  z-index: 10;
  cursor: pointer;
}

.float-card.active-pref {
  border-color: var(--accent);
  background: rgba(247, 23, 41, 0.1);
  box-shadow: 0 0 20px rgba(247, 23, 41, 0.2);
}

.lang-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0.5px;
}

.lang-de { background: linear-gradient(135deg, #111827, #ef4444, #f59e0b); }
.lang-fr { background: linear-gradient(135deg, #2563eb, #ffffff, #ef4444); color: #0f172a; }
.lang-es { background: linear-gradient(135deg, #ef4444, #f59e0b, #ef4444); }
.lang-en { background: linear-gradient(135deg, #2563eb, #ef4444); }

.theme-label {
  padding: 12px 20px;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
  transition: all 0.3s ease;
}

.toast-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.toast-notification.saving .toast-icon { color: #3b82f6; animation: spin 1s linear infinite; }
.toast-notification.success .toast-icon { color: #10b981; }
.toast-notification.error .toast-icon { color: #ef4444; }

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes slideOutDown {
  100% { transform: translateX(-50%) translateY(100px); opacity: 0; }
}

.main-theme-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateY(-15deg) rotateX(10deg);
  width: 260px;
  height: 180px;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: none; /* Controlled by parent floatMain */
}

.main-theme-card:hover {
  transform: translate(-50%, -50%) rotateY(0) rotateX(0) scale(1.05) !important;
}

.theme-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
}

/* Keyframes */
@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

@keyframes floatMain {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes floatItem {
  0% { transform: translateY(0px) translateX(0px); }
  33% { transform: translateY(-8px) translateX(5px); }
  66% { transform: translateY(5px) translateX(-5px); }
  100% { transform: translateY(0px) translateX(0px); }
}

@media (max-width: 900px) {
  .customization-container {
    flex-direction: column;
  }
  .customization-text {
    text-align: center;
    margin: 0 auto;
  }
  .feature-list li {
    justify-content: center;
  }
  .customization-visual {
    margin-top: 40px;
    width: 100%;
    min-height: 350px;
  }
}



/* Case Studies Image Scaling */
.case-visual {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-study-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 0.5s ease;
}

.case-study-card:hover .case-study-img {
  transform: scale(1.05); /* subtle zoom on hover */
}

/* --- Print Styles for Reports --- */
@media print {
  /* Hide UI elements */
  .sidebar,
  .topbar-actions,
  .header,
  .footer,
  .btn,
  .modal,
  .loader-container,
  .mobile-menu-btn,
  .icon-btn {
    display: none !important;
  }

  /* Reset layout for print */
  body, 
  .dashboard-body, 
  .dashboard-container {
    background: white !important;
    color: black !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .dashboard-main {
    margin-left: 0 !important;
    padding: 20px !important;
    width: 100% !important;
    overflow: visible !important;
  }

  .dashboard-content {
    margin-top: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .dashboard-topbar {
    border-bottom: 2px solid #e2e8f0 !important;
    margin-bottom: 30px !important;
  }

  .breadcrumbs {
    font-size: 1.2rem !important;
    color: #1e293b !important;
  }

  /* Cards and Metrics */
  .card, 
  .metric-card, 
  .glass-panel, 
  .table-card,
  .dashboard-main,
  .dashboard-content,
  .dashboard-container {
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    background: white !important;
    break-inside: avoid;
    margin-bottom: 20px !important;
    border-radius: 8px !important;
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
  }

  .issues-table, .crawl-table {
    width: 100% !important;
    table-layout: fixed !important;
    word-break: break-all !important;
    font-size: 10pt !important;
  }

  .issues-table th:nth-child(1), .issues-table td:nth-child(1) { width: 45%; } /* URL */
  .issues-table th:nth-child(2), .issues-table td:nth-child(2) { width: 10%; } /* Status */
  .issues-table th:nth-child(3), .issues-table td:nth-child(3) { width: 15%; } /* Type */
  .issues-table th:nth-child(4), .issues-table td:nth-child(4) { width: 10%; } /* Depth */
  .issues-table th:nth-child(5), .issues-table td:nth-child(5) { width: 20%; } /* Load Time */

  .issues-table th, .issues-table td {
    padding: 8px !important;
  }

  /* Force colors and backgrounds */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Typography adjustments */
  h1, h2, h3 {
    color: #0f172a !important;
  }

  .big-number {
    color: #0f172a !important;
  }

  /* Ensure charts are visible */
  .donut-chart {
    border: 2px solid #e2e8f0 !important;
  }

  /* Specific spacing */
  .overview-grid, 
  .metrics-grid {
    display: block !important;
  }

  .metric-card {
    width: 100% !important;
    max-width: none !important;
  }

  /* Page breaks */
  h2 {
    page-break-before: always;
  }
  
  .dashboard-card:first-child h2 {
    page-break-before: auto;
  }
}

/* --- PDF Export Helper Classes --- */
.exporting-pdf {
  background: white !important;
  width: 794px !important; /* EXACT A4 width at 96 DPI */
  min-width: 794px !important;
  font-size: 14px !important;
  color: #1e293b !important;
  overflow: visible !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.exporting-pdf .dashboard-container {
  display: block !important;
  width: 794px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.exporting-pdf .sidebar,
.exporting-pdf .dashboard-topbar,
.exporting-pdf .breadcrumbs,
.exporting-pdf .topbar-actions,
.exporting-pdf .header,
.exporting-pdf .footer,
.exporting-pdf .btn,
.exporting-pdf .lang-dropdown,
.exporting-pdf .btn-link,
.exporting-pdf button {
  display: none !important;
}

.exporting-pdf .dashboard-main {
  margin: 0 !important;
  padding: 0 !important; 
  width: 794px !important;
  max-width: 794px !important;
  background: white !important;
  overflow: visible !important;
}

.exporting-pdf #report {
  width: 794px !important;
  margin: 0 !important;
  padding: 20px !important;
}

.exporting-pdf .dashboard-content {
  width: 100% !important;
  max-width: 794px !important;
  padding: 0 !important;
}

.exporting-pdf .overview-grid,
.exporting-pdf .cwv-grid,
.exporting-pdf .metrics-grid,
.exporting-pdf .grid-3 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 15px !important;
  margin-bottom: 25px !important;
}

.exporting-pdf .card, 
.exporting-pdf .table-card {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
  box-shadow: none !important;
  border: 1px solid #e2e8f0 !important;
  margin-bottom: 20px !important;
}

.exporting-pdf .section-heading {
  page-break-after: avoid !important;
  margin-top: 40px !important;
  margin-bottom: 15px !important;
  font-size: 20px !important;
}

.exporting-pdf .grid-4 {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 15px !important;
  width: 100% !important;
}

.exporting-pdf .secondary-metrics {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 15px !important;
  padding-left: 0 !important;
  border-left: none !important;
}

.exporting-pdf .card, 
.exporting-pdf .table-card {
  width: 100% !important;
  max-width: none !important;
  box-shadow: none !important;
  border: 1px solid #e2e8f0 !important;
  margin-bottom: 25px !important;
  background: white !important;
  break-inside: avoid !important; /* Keep cards on one page */
  page-break-inside: avoid !important;
}

.exporting-pdf .card-header {
  flex-direction: row !important;
  justify-content: space-between !important;
  background: #f8fafc !important;
  padding: 15px 20px !important;
}

/* --- Mobile Refinements --- */
@media (max-width: 600px) {
  .service-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
  }
  
  .service-grid .card {
    padding: 15px !important;
    text-align: center;
    height: auto !important;
  }

  .service-grid .card .icon-box {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    margin: 0 auto 8px;
  }

  .service-grid .card h3 {
    font-size: 0.85rem !important;
    margin-bottom: 4px;
    line-height: 1.2;
  }

  .service-grid .card p {
    font-size: 0.7rem !important;
    line-height: 1.3;
  }

  /* Ensure audit section is visible */
  #audit {
    display: block !important;
    padding: 40px 0 !important;
    color: #1e293b !important; /* Force dark text */
    background-color: #f8fafc !important;
  }

  #audit .container {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .audit-tab-content {
     color: #1e293b !important;
  }

  .audit-tab-content.active {
    display: block !important;
  }

  .text-muted {
    color: #64748b !important;
  }
}

/* --- Dashboard Specific Responsiveness (Consolidated) --- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 8px;
  margin-right: 12px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.menu-toggle svg {
  pointer-events: none;
}

.menu-toggle:hover {
  background: #f1f5f9;
  color: #0f172a;
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }

  .topbar-actions {
    gap: 8px;
  }

  .btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 640px) {
  .dashboard-topbar {
    height: auto;
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .breadcrumbs {
    font-size: 0.8rem;
  }
}

/* SEO FAQ Section Premium Refinement */
.seo-faq-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #3b82f6;
    color: white;
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: bold;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.faq-section-title {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 12px;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.faq-section-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.faq-accordion {
    max-width: 1000px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
}

.faq-item {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.faq-trigger {
    width: 100%;
    padding: 28px 32px;
    background: #f8fafc;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s ease;
}

.faq-q-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    flex: 1;
    padding-right: 25px;
    line-height: 1.4;
}

.faq-chevron {
    width: 28px;
    height: 28px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
    flex-shrink: 0;
}

.faq-chevron svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.faq-content-inner {
    padding: 0 32px 28px;
    color: #475569;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Active State */
.faq-item.active {
    border-color: #3b82f6;
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.1), 0 10px 10px -5px rgba(59, 130, 246, 0.04);
}

.faq-item.active .faq-trigger {
    background: white;
}

.faq-item.active .faq-content {
    max-height: 800px;
}

.faq-item.active .faq-chevron {
    background: #3b82f6;
    color: white;
    transform: rotate(180deg);
}

.faq-item.active .faq-q-text {
    color: #3b82f6;
}

.faq-item:hover:not(.active) {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Mobile Responsiveness for FAQ */
@media (max-width: 768px) {
    .seo-faq-section {
        padding: 50px 0;
    }
    .faq-section-title {
        font-size: 1.8rem;
    }
    .faq-section-subtitle {
        font-size: 0.95rem;
    }
    .faq-trigger {
        padding: 20px;
    }
    .faq-q-text {
        font-size: 1rem;
        padding-right: 15px;
    }
    .faq-content-inner {
        font-size: 0.9rem;
        padding: 0 20px 20px;
    }
    .faq-header {
        margin-bottom: 30px;
    }
    .faq-accordion {
        margin: 20px auto 0;
        gap: 15px;
    }
}

/* Footer Refinements */
.footer-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-top: 15px;
    line-height: 1.6;
    max-width: 300px;
}

.footer-social ul {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding: 0;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(247, 23, 41, 0.3);
}

.footer-social-link:active {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(12, 12, 12, 0.2);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease, stroke-width 0.3s ease;
}

.footer-social-link:hover svg,
.footer-social-link:active svg {
    stroke: #ffffff !important;
    stroke-width: 2.5;
    transform: scale(1.1);
}

.footer-social-link:hover svg *,
.footer-social-link:active svg * {
    stroke: #ffffff !important;
}

.lumewise-link {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lumewise-link:hover {
    text-decoration: underline;
    color: #60a5fa;
}

.copyright p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Enquiry Modal */
.enquiry-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.enquiry-modal.active {
    display: flex;
}

.enquiry-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.enquiry-header {
    text-align: center;
    margin-bottom: 30px;
}

.enquiry-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #0F172A 0%, #f71729 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.enquiry-header p {
    color: #64748B;
}

.close-enquiry {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748B;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #F8FAFC;
}

.close-enquiry:hover {
    background: #fee2e2;
    color: #f71729;
    transform: rotate(90deg);
}

.enquiry-form .form-group {
    margin-bottom: 20px;
}

.enquiry-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0F172A;
}

.enquiry-form input,
.enquiry-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.enquiry-form input:focus,
.enquiry-form textarea:focus {
    border-color: #f71729;
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(247, 23, 41, 0.1);
}

.enquiry-success {
    text-align: center;
    padding: 40px 0;
    display: none;
}

.enquiry-success i {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 20px;
    display: block;
}

.enquiry-success h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
}

.breadcrumbs li:not(:last-child)::after {
    content: ">";
    color: #475569;
    font-size: 0.7rem;
    font-weight: 700;
}

.breadcrumbs a {
    color: #60a5fa;
    transition: all 0.3s ease;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.breadcrumbs li:last-child {
    color: #ffffff;
    opacity: 0.8;
}

/* Light Background variation (Privacy/Terms) */
.legal-content .breadcrumbs li {
    color: #64748b;
}

.legal-content .breadcrumbs li:last-child {
    color: #0f172a;
    opacity: 1;
}

.legal-content .breadcrumbs a:hover {
    color: #3b82f6;
}

/* --- Modernized Trust Section --- */

.trust.section {
    padding: 100px 0;
    overflow: hidden;
    background: #f8fafc;
    position: relative; /* For blobs */
}

/* Decorative Blobs */
.trust-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.15;
    animation: blobFloat 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #3b82f6, #60a5fa);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #a855f7, #c084fc);
    bottom: -50px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes blobFloat {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(50px, 50px) scale(1.1); }
}

.trust .container {
    position: relative;
    z-index: 1;
}

.trust-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2.5rem;
}

/* Infinite Logo Carousel + Shimmer */
.logo-carousel {
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    overflow: hidden;
    margin-bottom: 4rem;
    position: relative;
}

.logo-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: skewX(-25deg);
    animation: shimmer 6s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    30% { left: 200%; }
    100% { left: 200%; }
}

.logo-track {
    display: flex;
    width: max-content;
    gap: 4rem;
    animation: logoScroll 30s linear infinite;
    padding: 10px 0;
}

.logo-carousel-item {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.4s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-carousel-item i {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
}

.logo-carousel-item:hover {
    filter: grayscale(0);
    opacity: 1;
    color: #1e293b;
    transform: scale(1.1);
}

@keyframes logoScroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 2rem)); }
}

/* Premium Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    perspective: 1000px;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.stat-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

/* Colourful Variants */
.stat-card.color-1 { border-color: rgba(59, 130, 246, 0.3); }
.stat-card.color-1 .stat-card-value { background: linear-gradient(135deg, #3b82f6, #60a5fa); -webkit-background-clip: text; background-clip: text; }
.stat-card.color-1:hover { box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2); border-color: #3b82f6; }

.stat-card.color-2 { border-color: rgba(168, 85, 247, 0.3); }
.stat-card.color-2 .stat-card-value { background: linear-gradient(135deg, #a855f7, #c084fc); -webkit-background-clip: text; background-clip: text; }
.stat-card.color-2:hover { box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2); border-color: #a855f7; }

.stat-card.color-3 { border-color: rgba(245, 158, 11, 0.3); }
.stat-card.color-3 .stat-card-value { background: linear-gradient(135deg, #f59e0b, #fbbf24); -webkit-background-clip: text; background-clip: text; }
.stat-card.color-3:hover { box-shadow: 0 20px 40px rgba(245, 158, 11, 0.2); border-color: #f59e0b; }

.stat-card-value {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    display: block;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 480px) {
  .stat-card-value {
    font-size: 1.5rem !important;
    margin-bottom: 0.1rem !important;
  }
  .stat-card-label {
    font-size: 0.6rem !important;
    line-height: 1.05 !important;
  }
  .stat-card {
    padding: 10px 5px !important;
    border-radius: 12px !important;
  }
}

.stat-card-label {
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Entry Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Modernized Services Section --- */

#services.services.section {
    position: relative;
    padding: 100px 0;
    background: #ffffff;
    overflow: hidden;
}

.services-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.1;
    animation: blobFloat 25s infinite alternate ease-in-out;
}

.services-blob.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #34d399, #10b981);
    top: -200px;
    right: -100px;
}

.services-blob.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #fbbf24, #f59e0b);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.service-grid {
    position: relative;
    z-index: 1;
}

.service-grid .card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.service-grid .card:hover {
    transform: translateY(-12px) scale(1.02);
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.service-grid .card .icon-box {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.service-grid .card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* Service Colour Variants */
.service-grid .card.color-1 .icon-box { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.service-grid .card.color-1:hover { border-color: rgba(59, 130, 246, 0.3); box-shadow: 0 20px 40px rgba(59, 130, 246, 0.08); }

.service-grid .card.color-2 .icon-box { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.service-grid .card.color-2:hover { border-color: rgba(16, 185, 129, 0.3); box-shadow: 0 20px 40px rgba(16, 185, 129, 0.08); }

.service-grid .card.color-3 .icon-box { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.service-grid .card.color-3:hover { border-color: rgba(139, 92, 246, 0.3); box-shadow: 0 20px 40px rgba(139, 92, 246, 0.08); }

.service-grid .card.color-4 .icon-box { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.service-grid .card.color-4:hover { border-color: rgba(245, 158, 11, 0.3); box-shadow: 0 20px 40px rgba(245, 158, 11, 0.08); }

.service-grid .card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.service-grid .card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 1rem;
}

/* --- Modernized Tools Section --- */

.future-tools.section {
    padding: 100px 0;
    background: #f8fafc;
}

.future-tools .badge {
    vertical-align: middle;
    margin-left: 10px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(247, 23, 41, 0.1);
    color: var(--accent);
    border: 1px solid rgba(247, 23, 41, 0.2);
    border-radius: 20px;
    animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(247, 23, 41, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(247, 23, 41, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(247, 23, 41, 0); }
}

.tool-card {
    padding: 3rem 2.5rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #ffffff;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.tool-card .icon-box {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.5s ease;
}

.tool-card h3 {
    font-size: 1.4rem;
    font-weight: 750;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.tool-card p {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 0;
}

.tool-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.tool-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* Tool Colour Variants */
.tool-card.color-1 .icon-box { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.tool-card.color-1:hover { border-color: rgba(59, 130, 246, 0.3); box-shadow: 0 20px 50px rgba(59, 130, 246, 0.12); }

.tool-card.color-2 .icon-box { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.tool-card.color-2:hover { border-color: rgba(16, 185, 129, 0.3); box-shadow: 0 20px 50px rgba(16, 185, 129, 0.12); }

.tool-card.color-3 .icon-box { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.tool-card.color-3:hover { border-color: rgba(139, 92, 246, 0.3); box-shadow: 0 20px 50px rgba(139, 92, 246, 0.12); }

/* Enhanced Blur for locked tool */
.tool-card.blur {
    filter: none; /* remove parent filter if any */
}

.tool-card.blur .icon-box,
.tool-card.blur h3,
.tool-card.blur p {
    filter: blur(4px);
    opacity: 0.6;
}

.tool-card.blur::after {
    content: "LOCKED"; 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748b;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

/* --- Pricing Section --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

.pricing-card.professional {
    background: white;
    border: 2px solid #3b82f6;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
    z-index: 2;
    transform: scale(1.05);
}

.pricing-card.professional:hover {
    transform: translateY(-15px) scale(1.08);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 25px;
}

.pricing-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #64748b;
}

.price .amount {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
}

.price .period {
    color: #64748b;
    font-size: 1rem;
}

.price-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 10px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 15px;
}

.pricing-features li i {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-features li i[data-lucide="check"] { color: #10b981; }
.pricing-features li i[data-lucide="x"] { color: #94a3b8; opacity: 0.5; }

.pricing-features li.disabled {
    color: #94a3b8;
    text-decoration: line-through;
}

.pricing-footer {
    display: flex;
    justify-content: center;
}

.w-full { width: 100%; justify-content: center; }

@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-card.professional {
        transform: scale(1);
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .pricing-card.professional:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.professional {
        grid-column: span 1;
    }
}



/* --- End of Consolidated Performance Analysis Section --- */

.performance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.strength-card, .chart-main-card {
    height: 100%;
}

.performance-card {
    background: linear-gradient(145deg, rgba(248, 250, 252, 0.95), rgba(239, 246, 255, 0.95)) !important;
    border: 1px solid rgba(186, 230, 253, 0.4) !important;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.05) !important;
}

.performance-card:hover {
    background: linear-gradient(145deg, rgba(248, 250, 252, 1), rgba(231, 242, 254, 1)) !important;
    border-color: rgba(147, 197, 253, 0.5) !important;
}

.strength-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.strength-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.strength-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.strength-name {
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.strength-val {
    font-weight: 700;
    color: #3b82f6;
}

.progress-bar-bg {
    height: 10px;
    background: #f1f5f9;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.strength-desc {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    margin: 0;
}

.smart-insights {
    background: rgba(59, 130, 246, 0.03);
    border-left: 4px solid #3b82f6;
    padding: 20px;
    border-radius: 0 12px 12px 0;
}

.insights-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.insights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.insights-list li {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.insights-list li::before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
}

.chart-main-card {
    text-align: center;
}

.chart-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #0f172a;
}

.donut-chart-wrapper {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.donut-svg {
    transform: rotate(-90deg);
}

.donut-segment {
    cursor: pointer;
    transition: all 0.3s ease;
    transform-origin: center;
}

.donut-segment:hover {
    stroke-width: 14;
    filter: drop-shadow(0 0 8px currentColor);
}

.chart-center {
    transform: rotate(90deg);
    transform-origin: center;
}

.center-label {
    text-anchor: middle;
    font-size: 6px;
    font-weight: 600;
    fill: #64748b;
}

.center-value {
    text-anchor: middle;
    font-size: 12px;
    font-weight: 900;
    fill: #0f172a;
}

.chart-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    text-align: left;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.legend-item:hover {
    background: #f8fafc;
}

.legend-item .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-item .label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

.legend-item .val {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
}

.chart-footer .btn-text {
    background: none;
    border: none;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 auto;
    transition: color 0.2s;
}

.chart-footer .btn-text:hover {
    color: #3b82f6;
}

@media (max-width: 992px) {
    .performance-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .chart-legend {
        grid-template-columns: 1fr;
    }
}

/* Competitor Analysis Table */
.competitors-list {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-top: 30px;
  text-align: left;
}

.competitors-list h4 {
  color: black;
  margin-bottom: 15px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comp-table-wrapper {
  overflow-x: auto;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
}

.comp-table th {
  text-align: left;
  font-size: 0.8rem;
  color: #94a3b8;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comp-table td {
  padding: 12px 10px;
  font-size: 0.9rem;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comp-name-cell {
  font-weight: 500;
  color: white;
}

.vis-cell {
  width: 150px;
}

.comp-visibility {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vis-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  flex: 1;
  border-radius: 3px;
  overflow: hidden;
}

.vis-fill {
  height: 100%;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.comp-status-cell {
  text-align: right;
}

.status-tag {
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.status-market-leader {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.status-strong-rival {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.status-growing {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}



/* Blog Section Styles */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.blog-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--primary);
  line-height: 1.4;
}

.blog-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-read-more {
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.blog-read-more:hover {
  gap: 12px;
}

/* --- PDF Preview Modal --- */
.preview-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  flex-direction: column;
}

.preview-modal.active {
  display: flex;
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
}

.preview-container {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 20px auto;
  width: 95%;
  background: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.preview-toolbar {
  height: 64px;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.preview-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #64748b;
  padding-left: 16px;
  border-left: 1px solid #e2e8f0;
}

.preview-actions {
  display: flex;
  gap: 12px;
}

.preview-body {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  background: #cbd5e1;
  padding: 40px;
}

.preview-body iframe {
  width: 100%;
  height: 100%;
  max-width: 850px;
  border: none;
  background: white;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
}

.preview-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 20;
}

.preview-loader .spinner {
  margin-bottom: 16px;
}

/* --- PDF Report Document (Tabular) --- */
.report-document {
  padding: 40px;
  background: white;
  width: 794px;
  min-height: 1123px;
  font-family: 'Inter', system-ui, sans-serif;
  color: #0f172a;
}

.report-header {
  margin-bottom: 40px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 24px;
}

.report-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
  color: #0f172a;
}

.analysis-banner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.analysis-banner .icon-box {
  width: 48px;
  height: 48px;
  background: #eff6ff;
  color: #3b82f6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.analysis-details div:first-child {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.analysis-details .url {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  word-break: break-all;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.report-table th {
  background: #f8fafc;
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
}

.report-table td {
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  line-height: 1.5;
  vertical-align: top;
}

.report-table .severity-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.report-table .severity-error { background: #fee2e2; color: #991b1b; }
.report-table .severity-warning { background: #fef3c7; color: #92400e; }
.report-table .severity-notice { background: #e0f2fe; color: #075985; }

.report-footer {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .preview-container {
    margin: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

/* --- Mobile Navigation (Hamburger) --- */
@media (max-width: 991px) {
  .header-container {
    padding: 10px 20px;
    position: relative;
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .header-right {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }

  .header-right .lang-dropdown {
    display: block !important;
  }

  .header-right .btn-login.mobile-visible {
    display: flex !important;
    padding: 6px 12px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
  }

  /* Circular Profile for Logged-In State on Mobile */
  .header-right .btn-login.logged-in {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    font-size: 0.9rem !important;
    border-radius: 50% !important;
    background: var(--accent) !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    box-shadow: 0 4px 10px rgba(247, 23, 41, 0.3) !important;
    flex-shrink: 0 !important;
  }

  .mobile-menu-btn {
    display: none !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    z-index: 1002;
  }

  .mobile-menu-btn.active {
    transform: rotate(90deg);
    color: var(--accent);
  }

  /* Navigation List as Slide-out Drawer */
  .nav-list {
    display: none !important;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 100px 30px 40px;
    gap: 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-list.active {
    display: none !important;
    right: 0;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
  }

  .nav-link {
    display: block;
    padding: 18px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    width: 100%;
  }

  .nav-link:hover, .nav-link.active {
    color: var(--accent);
    padding-left: 10px;
  }

  /* Show mobile-only buttons in the menu */
  .mobile-only-btn {
    display: block !important;
    margin-top: 20px;
  }

  .desktop-only-btn:not(.mobile-visible) {
    display: none !important;
  }

  /* Tawk.to Mobile Optimization */
  #tawk-chat-container, 
  .tawk-minified-container,
  #tawk-chat-container iframe,
  iframe#tawk-chat-iframe-container {
    transform: scale(0.85) !important;
    transform-origin: bottom right !important;
    bottom: 95px !important;
    right: 15px !important;
  }

  /* Overlay for when menu is open */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}
/* Supplemental Page Refinements */
.legal-content {
    padding: 60px 0 !important;
}

@media (max-width: 991px) {
    .legal-content {
        padding: 40px 0 !important;
    }
    
    .legal-content h1 {
        font-size: 2rem !important;
        margin-bottom: 25px !important;
    }
    
    .legal-content .container {
        max-width: 100% !important;
        padding: 0 20px !important;
    }
}

/* Case Study Desktop Refinement: Rectangular Image Space */
@media (min-width: 992px) {
    .case-content {
        flex: 1;
        padding: 30px 40px;
    }
    .case-visual {
        flex: 2;
        height: 100%;
        background: #0f172a;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .case-study-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        transition: transform 0.6s ease;
    }
    .case-content {
        height: 100%;
        overflow-y: auto;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
        flex: 1.5;
        padding: 30px 40px;
    }
    .case-content::-webkit-scrollbar {
        display: none;
    }
    .case-study-card {
        height: 380px !important;
    }
    .case-content h3 {
        font-size: 1.4rem !important;
        margin-bottom: 6px !important;
    }
    .case-content p.problem {
        font-size: 0.85rem !important;
        margin-bottom: 8px !important;
        line-height: 1.4 !important;
    }
    .results .result-item span {
        font-size: 1.1rem !important;
    }
}

/* Optimization Styles: Hero & Conversion Sections */
.hero-usp-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.usp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.usp-badge i {
    width: 14px;
    height: 14px;
    color: #f71729;
}

.input-microcopy {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 10px;
    margin-left: 10px;
}

.hero-trust-signals {
    display: flex;
    align-items: center;
    gap: 20px;
}

.trust-item {
    font-size: 0.9rem;
    color: #cbd5e1;
}

.trust-count {
    font-weight: 700;
    color: white;
}

.trust-separator {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.trust-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-label i {
    width: 16px;
    height: 16px;
    color: #10b981;
}

/* Sample Report Preview */
.sample-preview-section {
    background: #f8fafc;
}

.sample-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sample-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 20px;
}

.sample-report-img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.sample-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(247, 23, 41, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(247, 23, 41, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sample-overlay:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

/* Modern Benefits Section */
.benefits-v2 {
    position: relative;
    overflow: hidden;
    background: #fdfdfe; /* Ultra-light tint */
    background-image: radial-gradient(at 0% 0%, rgba(247, 23, 41, 0.03) 0, transparent 50%), 
                      radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.03) 0, transparent 50%);
    padding: 120px 0;
}

.benefits-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(247, 23, 41, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.benefit-cards-grid, .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.benefit-card-v2 {
    position: relative;
    background: #ffffff;
    padding: 40px;
    border-radius: 32px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.benefit-v2-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(247, 23, 41, 0.08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.benefit-card-v2:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(247, 23, 41, 0.4);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
}

.benefit-card-v2:hover .benefit-v2-glow {
    opacity: 1;
}

.benefit-v2-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(247, 23, 41, 0.15) 0%, rgba(247, 23, 41, 0.05) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f71729;
    margin-bottom: 28px;
    position: relative;
    transition: transform 0.5s ease;
}

.benefit-card-v2:hover .benefit-v2-icon {
    transform: rotate(10deg) scale(1.1);
}

.icon-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    border: 2px solid #f71729;
    opacity: 0;
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

.benefit-card-v2 h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.benefit-card-v2 p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.card-footer-info {
    margin-top: auto;
}

.meta-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f8fafc;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #f1f5f9;
}

/* Premium Testimonials Section - DARK MODE */
.bg-secondary-modern {
    background: #0f172a; /* Deep premium dark blue */
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.bg-secondary-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.bg-secondary-modern .section-title {
    color: #ffffff;
}

.bg-secondary-modern .section-subtitle {
    color: #94a3b8;
}

.testimonial-card-premium {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.testimonial-card-premium:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(247, 23, 41, 0.3);
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 80px;
    font-family: serif;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    pointer-events: none;
}

.star-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.star-fill {
    width: 16px;
    height: 16px;
    fill: #f59e0b;
    color: #f59e0b;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e2e8f0;
    font-weight: 400;
    margin-bottom: 30px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author-v2 {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar-premium {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.author-avatar-premium.sarah { background-image: url('/images/sarah_avatar.png'); }
.author-avatar-premium.michael { background-image: url('/images/michael_avatar.png'); }
.author-avatar-premium.david { background-image: url('/images/david_avatar.png'); }

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.author-info span {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

@media (max-width: 991px) {
    .benefit-cards-grid, .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Mobile View Adjustments (One row, two items) */
@media (max-width: 768px) {
    /* Hide view sample pdf image in mobile view */
    .sample-visual {
        display: none !important;
    }

    .sample-grid {
        grid-template-columns: 1fr !important;
    }

    /* Grid adjustments for 1 row 2 items on mobile */
    .blog-grid, 
    .testimonials-grid, 
    .benefit-cards-grid, 
    #tools .grid-3,
    .service-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    /* Adjust font sizes and padding for tight 2-col mobile grid */
    .benefit-card-v2 h3,
    .testimonial-card-premium h4,
    .tool-card h3,
    .service-grid h3,
    .blog-card h3 {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }

    .testimonial-text,
    .benefit-card-v2 p,
    .tool-card p,
    .service-grid p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }

    .benefit-card-v2, 
    .testimonial-card-premium, 
    .blog-card, 
    .tool-card,
    .card.color-1,
    .card.color-2,
    .card.color-3,
    .card.color-4 {
        padding: 15px !important;
        border-radius: 16px !important;
    }

    .benefit-v2-icon,
    .icon-box {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 12px !important;
    }

    .benefit-v2-icon i,
    .icon-box svg {
        width: 18px !important;
        height: 18px !important;
    }

    .testimonial-author-v2 {
        gap: 10px !important;
    }

    .author-avatar-premium {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
    }

    .author-info h4 {
        font-size: 0.85rem !important;
    }

    .author-info span {
        font-size: 0.7rem !important;
    }

    .quote-icon {
        font-size: 40px !important;
        top: 10px !important;
        right: 15px !important;
    }

    #latest-insights .container > div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
        margin-bottom: 30px !important;
    }
}

/* Section Badges */
.badge-outline {
    background: rgba(247, 23, 41, 0.05);
    border: 1px solid rgba(247, 23, 41, 0.2);
    color: #f71729;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: #1e293b;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
.slide-in-right {
    animation: slideInRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideInRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --- Brand Selection Modal --- */
.brand-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-modal.active {
  opacity: 1;
  visibility: visible;
}

.brand-modal-content {
  width: 100%;
  max-width: 800px;
  background: rgba(23, 23, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 24px;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.brand-modal.active .brand-modal-content {
  transform: translateY(0) scale(1);
}

.brand-modal-header {
  margin-bottom: 30px;
}

.brand-modal-header h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.brand-modal-header p {
  color: #94a3b8;
  font-size: 0.95rem;
}

.close-brand-modal {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 2rem;
  color: #64748b;
  cursor: pointer;
  transition: color 0.3s;
}

.close-brand-modal:hover { color: #fff; }

.brand-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 550px;
  overflow-y: auto;
  padding-right: 10px;
}

/* Custom Scrollbar */
.brand-suggestions-list::-webkit-scrollbar { width: 6px; }
.brand-suggestions-list::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 10px; }
.brand-suggestions-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; }

.suggestion-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  transition: all 0.3s;
  cursor: pointer;
}

.suggestion-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateX(5px);
}

.suggestion-info { flex: 1; }

.suggestion-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.suggestion-title-row h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.gmb-status {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
}

.gmb-status.verified { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.gmb-status.unverified { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.category-tag {
  font-size: 0.75rem;
  color: #3b82f6;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.suggestion-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
  border-radius: 12px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.detail-item i {
  width: 14px;
  height: 14px;
  color: #3b82f6;
  opacity: 0.8;
}

.suggestion-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-tag {
  font-size: 0.7rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-select-brand {
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 12px;
  flex-shrink: 0;
  margin-left: 20px;
}

.brand-modal-footer {
  margin-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
}

.brand-modal-footer a {
  color: #3b82f6;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.brand-modal-footer a:hover { color: #60a5fa; }

/* Mobile Optimizations */
@media (max-width: 640px) {
  .brand-modal-content { padding: 25px; border-radius: 0; height: 100%; max-width: 100%; }
  .suggestion-card { flex-direction: column; align-items: stretch; gap: 15px; }
  .btn-select-brand { margin-left: 0; width: 100%; }
  .suggestion-details { grid-template-columns: 1fr; }
}

.refine-search-section {
  animation: slideInUp 0.3s ease-out;
}

.refine-search-section h4 {
  color: #fff !important;
}

.refine-input-row select, .refine-input-row input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  outline: none;
}

.refine-input-row select:focus, .refine-input-row input:focus {
  border-color: #6366f1 !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.refine-input-row select option {
  background: #171717;
  color: #fff;
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   PREMIUM GLASSMORPHIC AUDIT REPORT THEME OVERRIDES
   ========================================================================== */

:root {
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-bg-hover: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-border-hover: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04);
  --glass-shadow-hover: 0 12px 40px 0 rgba(31, 38, 135, 0.08);
  --glass-blur: blur(12px);
  --glass-radius: 20px;
}

body.dashboard-body {
  background: linear-gradient(135deg, #f0f4f8 0%, #e6eef4 50%, #dbeafe 100%);
  background-attachment: fixed;
  color: #1e293b;
}

.sidebar {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1) !important;
}

.sidebar-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-nav ul li a {
  margin: 4px 12px;
  border-radius: 12px;
  padding: 10px 16px !important;
  color: #94a3b8 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: none !important;
}

.sidebar-nav ul li.active a,
.sidebar-nav ul li a:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.sidebar-nav ul li.active a {
  background: linear-gradient(90deg, rgba(247, 23, 41, 0.15), rgba(247, 23, 41, 0.05)) !important;
  border: 1px solid rgba(247, 23, 41, 0.3) !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 12px rgba(247, 23, 41, 0.1), 0 4px 12px rgba(247, 23, 41, 0.05);
}

.sidebar-nav ul li.active a .icon {
  color: #f71729 !important;
  filter: drop-shadow(0 0 4px rgba(247, 23, 41, 0.4));
}

.avatar {
  background: linear-gradient(135deg, #f71729, #d61323) !important;
  box-shadow: 0 4px 10px rgba(247, 23, 41, 0.3) !important;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.dashboard-topbar {
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
  position: sticky;
  top: 0;
  z-index: 999;
}

.btn-primary.btn-sm {
  background: linear-gradient(135deg, #f71729, #d61323) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(247, 23, 41, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary.btn-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(247, 23, 41, 0.45) !important;
}

.btn-secondary.btn-sm {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(4px) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-secondary.btn-sm:hover {
  background: rgba(255, 255, 255, 1) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-1px);
}

.overview-grid .card,
.cwv-grid .card,
.table-card {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow) !important;
  border-radius: var(--glass-radius) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
  overflow: hidden;
}

.overview-grid .card:hover,
.cwv-grid .card:hover,
.table-card:hover {
  background: var(--glass-bg-hover) !important;
  border-color: var(--glass-border-hover) !important;
  box-shadow: var(--glass-shadow-hover) !important;
  transform: translateY(-4px);
}

.health-circle-large {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 10px 0;
  filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.15));
}

.health-circle-large .score {
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  font-family: var(--font-display) !important;
  color: #0f172a !important;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.health-circle-large svg.circular-chart {
  width: 100%;
  height: 100%;
}

.circle-bg {
  stroke: rgba(255, 255, 255, 0.4) !important;
  stroke-width: 3.5 !important;
}

.circle {
  stroke-width: 3.5 !important;
  stroke-linecap: round !important;
}

.severity-card {
  border-radius: 16px;
  padding: 16px 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.severity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 4px 0 0 4px;
}

.severity-card.error {
  background: rgba(254, 226, 226, 0.4) !important;
  border: 1px solid rgba(239, 68, 68, 0.15) !important;
}
.severity-card.error::before { background: #ef4444; }

.severity-card.warning {
  background: rgba(254, 243, 199, 0.4) !important;
  border: 1px solid rgba(245, 158, 11, 0.15) !important;
}
.severity-card.warning::before { background: #f59e0b; }

.severity-card.notice {
  background: rgba(219, 234, 254, 0.4) !important;
  border: 1px solid rgba(59, 130, 246, 0.15) !important;
}
.severity-card.notice::before { background: #3b82f6; }

.severity-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.severity-card .count {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-display);
}

.severity-card .label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.crawled-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.crawled-card .progress-wrapper {
  margin-top: 15px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px;
  border-radius: 14px;
}

.progress-bar {
  background: rgba(0, 0, 0, 0.05) !important;
  height: 10px !important;
  border-radius: 99px !important;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, #f71729, #c20c18) !important;
  border-radius: 99px !important;
  box-shadow: 0 0 10px rgba(247, 23, 41, 0.3);
}

.cwv-item {
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 16px !important;
  padding: 20px !important;
  transition: all 0.3s ease !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cwv-item:hover {
  background: rgba(255, 255, 255, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.cwv-item h4 {
  font-size: 0.85rem !important;
  color: #475569 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.cwv-item .value {
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  font-family: var(--font-display);
  margin: 6px 0 !important;
  color: #0f172a;
}

.cwv-item .status {
  padding: 4px 12px !important;
  border-radius: 20px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cwv-item.pass .status {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #15803d !important;
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.cwv-item.average .status {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #b45309 !important;
  border: 1px solid rgba(245, 158, 11, 0.1);
}

.cwv-item.fail .status {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #b91c1c !important;
  border: 1px solid rgba(239, 68, 68, 0.1);
}

.issues-table th {
  background: rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(4px) !important;
  font-weight: 700 !important;
  font-family: var(--font-display) !important;
  color: #1e293b !important;
  padding: 16px 24px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.issues-table td {
  padding: 16px 24px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
  color: #334155 !important;
}

.issues-table tr:hover td {
  background: rgba(255, 255, 255, 0.25) !important;
}

.badge-pill {
  padding: 6px 12px !important;
  border-radius: 20px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-pill.badge-error {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #ef4444 !important;
}

.badge-pill.badge-warning {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #d97706 !important;
}

.badge-pill.badge-notice {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #1d4ed8 !important;
}

.btn-view-details:not(.btn-link) {
  background: linear-gradient(135deg, #1e293b, #0f172a) !important;
  color: white !important;
  border: none !important;
  padding: 6px 16px !important;
  border-radius: 20px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15) !important;
}

.btn-view-details:not(.btn-link):hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #334155, #1e293b) !important;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25) !important;
}

/* Base Desktop Styling for Issue Title Cells */
.issues-table td.issue-title-cell {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  max-width: 320px;
}

.issues-table td.issue-title-cell button.btn-link {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  text-align: left !important;
  width: 100% !important;
  display: inline-block !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  cursor: pointer !important;
  transition: color 0.2s ease !important;
}

.issues-table td.issue-title-cell button.btn-link:hover {
  color: #f71729 !important;
  text-decoration: underline !important;
  transform: none !important;
  background: none !important;
  box-shadow: none !important;
}


.issue-detail-card {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--glass-radius) !important;
  padding: 30px !important;
  margin-top: 24px !important;
}

.fix-box {
  background: rgba(15, 23, 42, 0.03) !important;
  border-left: 4px solid #10b981 !important;
  padding: 16px 20px !important;
  border-radius: 0 12px 12px 0 !important;
  margin: 15px 0 !important;
  font-size: 0.95rem !important;
  color: #334155 !important;
}

.affected-pages-box {
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  margin-top: 20px !important;
}

#healthScoreGradient stop:first-child {
  stop-color: #10b981;
}
#healthScoreGradient stop:last-child {
  stop-color: #059669;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

@media (max-width: 768px) {
  .dashboard-content {
    padding: 16px !important;
  }
  
  .overview-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .cwv-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
  }
  
  .cwv-item {
    padding: 12px 6px !important;
    border-radius: 10px !important;
  }
  
  .cwv-item h4 {
    font-size: 0.7rem !important;
  }
  
  .cwv-item .value {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    margin: 4px 0 !important;
  }
  
  .cwv-item .status {
    font-size: 0.6rem !important;
    padding: 2px 6px !important;
  }
  
  .table-card {
    border-radius: 14px !important;
  }
  
  .issues-table {
    font-size: 0.75rem !important;
  }
  
  .issues-table th,
  .issues-table td {
    padding: 10px 8px !important;
  }
  
  .issues-table th {
    font-size: 0.75rem !important;
  }
  
  .issues-table td.issue-title-cell,
  .issues-table td.issue-title-cell button.btn-link {
    font-weight: 700 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    font-size: 0.7rem !important;
    line-height: 1.25 !important;
  }

  .issues-table td.issue-desc-cell {
    font-size: 0.65rem !important;
    color: #475569 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .issues-table td.issue-severity-cell,
  .issues-table td.issue-count-cell,
  .issues-table td.issue-action-cell {
    white-space: nowrap !important;
  }
  
  h1 {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
}

/* Premium Scanning Online Animation for Find Business */
.premium-scanning-container {
  max-width: 650px;
  margin: 2rem auto;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  animation: scaleUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.radar-box {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.2), inset 0 0 30px rgba(99, 102, 241, 0.1);
  overflow: hidden;
}

.radar-circle::before {
  content: '';
  position: absolute;
  top: 15%; left: 15%; right: 15%; bottom: 15%;
  border-radius: 50%;
  border: 1px dashed rgba(99, 102, 241, 0.4);
}

.radar-circle::after {
  content: '';
  position: absolute;
  top: 35%; left: 35%; right: 35%; bottom: 35%;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.5);
}

.radar-beam {
  position: absolute;
  top: 50%; left: 50%;
  width: 500%; height: 500%;
  background: conic-gradient(from 0deg at 0 0, rgba(99, 102, 241, 0.4) 0deg, rgba(99, 102, 241, 0.05) 60deg, transparent 120deg);
  transform-origin: 0 0;
  animation: radarSweep 2.5s linear infinite;
  pointer-events: none;
}

.radar-pulse {
  position: absolute;
  width: 20px; height: 20px;
  background: #6366f1;
  border-radius: 50%;
  box-shadow: 0 0 20px #6366f1;
  animation: pulseRadarCenter 2s ease-out infinite;
}

.radar-node {
  position: absolute;
  width: 36px; height: 36px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  z-index: 10;
  transition: all 0.3s ease;
  animation: floatRadarNode 4s ease-in-out infinite alternate;
}

.radar-node.node-1 { top: 15%; left: 20%; animation-delay: 0s; }
.radar-node.node-2 { top: 25%; right: 15%; animation-delay: 1s; }
.radar-node.node-3 { bottom: 20%; left: 25%; animation-delay: 2s; }
.radar-node.node-4 { bottom: 15%; right: 25%; animation-delay: 3s; }

.radar-node:hover, .radar-node.lit {
  background: #6366f1;
  color: white;
  border-color: #6366f1;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
  transform: scale(1.15);
}

.scanning-info {
  text-align: center;
  width: 100%;
}

.scanning-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #6366f1;
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.pulse-dot {
  width: 8px; height: 8px;
  background: #6366f1;
  border-radius: 50%;
  animation: pulseDotLive 1s infinite alternate;
}

.scanning-title {
  font-size: 1.6rem;
  color: #0f172a;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.scanning-step {
  font-size: 1rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 1.5rem;
  min-height: 24px;
}

.scanning-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 450px;
  margin: 0 auto 1.5rem;
}

.scanning-progress-bar {
  flex: 1;
  height: 10px;
  background: #f1f5f9;
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.scanning-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1 0%, #a855f7 100%);
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.scanning-percentage {
  font-size: 0.95rem;
  font-weight: 700;
  color: #6366f1;
  min-width: 42px;
  text-align: right;
}

.scanning-sources-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.scanning-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.scanning-source.active {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.scanning-source.pending {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.spin-icon {
  animation: spin 1s linear infinite;
  width: 14px; height: 14px;
}

@keyframes scaleUpFade {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes radarSweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseRadarCenter {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(3.5); opacity: 0; }
}

@keyframes floatRadarNode {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

@keyframes pulseDotLive {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px #6366f1; }
}


