/* Reports Intellect - Custom Styles */

:root {
  --navy: #1a2332;
  --navy-light: #253349;
  --navy-dark: #0f151f;
  --accent: #0d6fa9;
  --accent-light: #1a8bc9;
  --teal: #0d9f8a;
  --green: #27ae60;
  --gold: #c4a961;
  --gray-light: #fafbfc;
  --text-muted: #7c8b9b;
  --premium-bg: #f8f9fa;
}

* { box-sizing: border-box; }
html, body {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #fafbfc;
  color: #1e293b;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ─── Top Bar ─── */
.topbar {
  background: var(--navy-dark);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

/* ─── Navbar ─── */
.navbar {
  background: var(--navy);
  transition: all 0.3s ease;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
  width: 100%;
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
  background: rgba(7,27,52,0.98);
  backdrop-filter: blur(15px);
  border-bottom-color: rgba(45,142,245,0.2);
}

.nav-inner {
  max-width: 95%;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1280px) {
  .max-w-7xl {
    max-width: 96% !important;
  }
  .nav-inner {
    max-width: 96% !important;
  }
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  min-height: 70px;
  width: 100%;
  flex-wrap: nowrap;
}

@media (max-width: 1023px) {
  .nav-content {
    justify-content: space-between;
  }
}

/* Logo Styling */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-logo:hover {
  transform: translateY(-2px);
}

.nav-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(45,142,245,0.3));
  transition: transform 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.08);
}

.nav-logo-text {
  display: none;
  white-space: nowrap;
}

.nav-logo-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  display: block;
  line-height: 1.2;
}

.nav-logo-accent {
  color: #2d8ef5;
}

.nav-logo-subtitle {
  font-size: 0.65rem;
  color: rgba(45,142,245,0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: -0.2rem;
  font-weight: 600;
}

/* Show logo text on medium and up */
@media (min-width: 640px) {
  .nav-logo-text {
    display: block;
  }
}

/* Desktop Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
  justify-content: center;
  min-width: 0;
  flex-wrap: wrap;
  padding: 0 0.5rem;
}
@media (max-width: 899px) {
  .nav-menu {
    display: none !important;
  }
}

/* Navigation Links */
.nav-link {
  position: relative;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 0.35rem 0.4rem;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--accent-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.dropdown-icon {
  width: 0.5rem;
  height: 0.5rem;
  transition: transform 0.3s ease;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px; /* Bridge the gap to prevent hover loss */
}

.dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  max-height: 500px;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  border-top: 3px solid var(--accent);
  pointer-events: none;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu-wide {
  min-width: 520px;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  padding: 0.75rem;
}

.dropdown-content {
  padding: 0.5rem 0;
}

.dropdown-content a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #334155;
  transition: all 0.15s ease;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  font-weight: 500;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background: #f0f4f8;
  color: var(--accent);
  padding-left: 1.25rem;
  font-weight: 600;
}

.dropdown-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem 0.75rem 1rem;
  margin: 0;
}

.dropdown-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 0.5rem 0;
}

.dropdown-highlight {
  color: var(--accent) !important;
  font-weight: 600 !important;
}

/* Action Buttons */
.nav-actions {
  display: none;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

@media (max-width: 899px) {
  .nav-actions {
    display: none;
  }
}

@media (min-width: 900px) {
  .nav-actions {
    display: flex;
  }
}

/* Mobile Button */
.nav-mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.nav-mobile-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}

.nav-mobile-btn svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 900px) {
  .nav-mobile-btn {
    display: none;
  }
}

/* Mobile Menu */
.nav-mobile-menu {
  display: none;
  background: rgba(15, 21, 31, 0.98);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile-menu.open {
  display: flex;
  max-height: 500px;
}

@media (min-width: 1024px) {
  .nav-mobile-menu {
    display: none !important;
  }
}

.nav-mobile-link {
  display: block;
  padding: 0.75rem 1rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-mobile-link:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.nav-mobile-link-sm {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

.nav-mobile-footer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.82rem;
  color: #334155;
  transition: all 0.15s;
  border-bottom: 1px solid #f1f5f9;
  font-weight: 500;
  text-decoration: none;
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: #f0f4f8; color: var(--accent); padding-left: 1.5rem; font-weight: 600; }

/* ─── Hero ─── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #0a2d5e 100%);
  position: relative;
  overflow: hidden;
  min-height: 75vh;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,111,196,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,111,196,0.07) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-light);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle 8s infinite;
}
@keyframes float-particle {
  0% { opacity: 0; transform: translateY(100%) scale(0); }
  10% { opacity: 0.6; }
  90% { opacity: 0.1; }
  100% { opacity: 0; transform: translateY(-100vh) scale(1.5); }
}

/* ─── Buttons ─── */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(26,111,196,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26,111,196,0.5);
  background: linear-gradient(135deg, #1a7fd4, #40a0ff);
}
.btn-outline {
  background: transparent;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid rgba(255,255,255,0.35);
  transition: all 0.3s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.btn-outline:hover {
  border-color: var(--accent-light);
  background: rgba(26,111,196,0.15);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.82rem;
  border-radius: 6px;
}

/* ─── Stats Counter ─── */
.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}
@media (max-width: 768px) {
  .stat-card {
    padding: 1.25rem 1rem;
  }
}
.stat-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent);
  transform: translateY(-4px);
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-suffix {
  color: var(--accent-light);
  font-size: 1.5rem;
}

/* ─── Cards ─── */
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e8ecf1;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  border-color: var(--accent);
}
.card-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-new { background: #dcfce7; color: #166534; }
.badge-trending { background: #fef3c7; color: #92400e; }
.badge-hot { background: #fee2e2; color: #991b1b; }

/* ─── Industry Cards ─── */
.industry-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.industry-card:hover img { transform: scale(1.1); }
.industry-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,27,52,0.9) 0%, rgba(7,27,52,0.3) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  transition: all 0.3s;
}
.industry-card:hover .industry-card-overlay { background: linear-gradient(to top, rgba(26,111,196,0.85) 0%, rgba(7,27,52,0.4) 100%); }

/* ─── Section Titles ─── */
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  line-height: 1.75;
  margin-top: 1rem;
}

/* ─── Divider ─── */
.gradient-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
  border-radius: 2px;
  width: 60px;
  margin: 1rem 0;
}

/* ─── Search Bar ─── */
.search-wrapper {
  position: relative;
}
.search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  padding-right: 4rem;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  font-size: 0.95rem;
  background: #fff;
  color: #1e293b;
  transition: all 0.3s;
  outline: none;
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(26,111,196,0.1);
}
.search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.search-btn:hover { background: var(--accent-light); }

/* ─── Report List Item ─── */
.report-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
}
.report-item:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateX(4px);
}

/* ─── Filter Sidebar ─── */
.filter-sidebar {
  background: var(--navy);
  border-radius: 16px;
  overflow: hidden;
}
.filter-sidebar-header {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.filter-sidebar a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.2s;
  text-decoration: none;
}
.filter-sidebar a:hover { color: #fff; background: rgba(255,255,255,0.06); padding-left: 1.6rem; }
.filter-sidebar a.active { color: var(--accent-light); font-weight: 600; }

/* ─── Testimonial ─── */
.testimonial-card {
  background: linear-gradient(135deg, #fff, #f8fafc);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 10rem;
  color: var(--accent);
  opacity: 0.06;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.stars { color: var(--gold); }

/* ─── AI Chat Widget ─── */
.ai-chat-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 8px 30px rgba(26,111,196,0.5);
  transition: all 0.3s;
  border: none;
  animation: pulse-chat 3s infinite;
}
@keyframes pulse-chat {
  0%, 100% { box-shadow: 0 8px 30px rgba(26,111,196,0.5); }
  50% { box-shadow: 0 8px 40px rgba(26,111,196,0.8), 0 0 0 8px rgba(26,111,196,0.15); }
}
.ai-chat-btn:hover {
  transform: scale(1.1);
  animation: none;
  box-shadow: 0 12px 40px rgba(26,111,196,0.7);
}
.ai-chat-panel {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 360px;
  max-height: 500px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.2);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ai-chat-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.ai-chat-header {
  background: linear-gradient(135deg, var(--navy), var(--accent));
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ai-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 280px;
}
.chat-msg {
  max-width: 85%;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  font-size: 0.83rem;
  line-height: 1.5;
}
.chat-msg.bot {
  background: var(--gray-light);
  color: #334155;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-msg.user {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.ai-chat-input {
  padding: 0.75rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 0.5rem;
}
.ai-chat-input input {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.83rem;
  outline: none;
  transition: border-color 0.2s;
}
.ai-chat-input input:focus { border-color: var(--accent); }
.ai-send-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.ai-send-btn:hover { background: var(--accent-light); }
.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0.6rem 0.9rem;
}
.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

/* ─── Logo Marquee ─── */
.marquee-container {
  position: relative;
  display: flex;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}
.marquee-track {
  display: flex;
  flex-shrink: 0;
  gap: 3rem;
  padding-right: 3rem;
  animation: marquee 25s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ─── Charts ─── */
.chart-bar {
  background: linear-gradient(to top, var(--accent), var(--accent-light));
  border-radius: 4px 4px 0 0;
  animation: growUp 1.5s ease forwards;
  transform-origin: bottom;
}
@keyframes growUp {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* ─── Progress Bar ─── */
.progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 3px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Footer ─── */
.footer {
  background: var(--navy-dark);
}
.footer-link {
  color: rgba(255,255,255,0.6);
  font-size: 0.83rem;
  transition: color 0.2s;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}
.footer-link:hover { color: var(--accent-light); }

/* ─── Page Header ─── */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #0a2d5e 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
}

/* ─── Breadcrumb ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ─── Pricing Table ─── */
.price-card {
  border-radius: 16px;
  padding: 2rem;
  border: 2px solid #e2e8f0;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff;
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

/* ─── FAQ Accordion ─── */
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: all 0.3s;
}
.faq-item.open { border-color: var(--accent); }
.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--gray-light); }
.faq-question.open { background: var(--navy); color: #fff; }
.faq-icon { transition: transform 0.3s; font-size: 1.2rem; }
.faq-question.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  background: #fafbfc;
}
.faq-answer.open { max-height: 300px; padding: 1.25rem 1.5rem; }

/* ─── Carousel ─── */
.carousel-container {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 1.5rem 0;
  overflow: hidden;
}
.carousel-wrapper {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 2rem;
}
.carousel-slide {
  flex: 0 0 calc(25% - 1.5rem);
  min-width: 280px;
  height: 350px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.carousel-slide:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.carousel-slide:hover img {
  transform: scale(1.05);
}
.carousel-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(26, 35, 50, 0.95) 0%, transparent 100%);
  padding: 2rem 1.5rem 1.5rem;
  color: white;
}
.carousel-slide-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}
.carousel-btn:hover {
  background: var(--accent-light);
  transform: scale(1.1);
}
.carousel-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(13, 111, 169, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.carousel-dot.active {
  background: var(--accent);
  width: 32px;
  border-radius: 6px;
}

@media (max-width: 1024px) {
  .carousel-slide {
    flex: 0 0 calc(33.333% - 1.333rem);
  }
}

@media (max-width: 768px) {
  .carousel-slide {
    flex: 0 0 calc(50% - 1rem);
    height: 280px;
  }
  .carousel-track {
    padding: 0 1rem;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .carousel-slide {
    flex: 0 0 calc(100% - 1rem);
    height: 240px;
  }
  .carousel-container {
    padding: 2rem 0;
  }
}

/* ─── Utilities ─── */
.text-accent { color: var(--accent); }
.text-accent-light { color: var(--accent-light); }
.bg-navy { background: var(--navy); }
.bg-navy-dark { background: var(--navy-dark); }
.bg-accent { background: var(--accent); }
.hidden { display: none !important; }

/* ─── Animations ─── */
.fade-up { opacity: 0; transform: translateY(30px); }
.fade-up.visible { opacity: 1; transform: translateY(0); transition: all 0.7s ease; }
.fade-in { opacity: 0; }
.fade-in.visible { opacity: 1; transition: opacity 0.7s ease; }
.slide-in-left { opacity: 0; transform: translateX(-40px); }
.slide-in-left.visible { opacity: 1; transform: translateX(0); transition: all 0.7s ease; }
.slide-in-right { opacity: 0; transform: translateX(40px); }
.slide-in-right.visible { opacity: 1; transform: translateX(0); transition: all 0.7s ease; }
.scale-up { opacity: 0; transform: scale(0.9); }
.scale-up.visible { opacity: 1; transform: scale(1); transition: all 0.6s ease; }

/* ─── Loading Screen ─── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s, visibility 0.5s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .navbar > div > div:nth-child(2) {
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  .stat-number { font-size: 2rem; }
  .section-title { font-size: 1.6rem; }
  .ai-chat-panel { width: calc(100vw - 2rem); right: 1rem; }
  .ai-chat-btn { bottom: 1.5rem; right: 1.5rem; }
  .price-card.featured { transform: none; }
}

/* ─── Table Mode Toggle ─── */
.view-toggle .active {
  background: var(--accent);
  color: #fff;
}

/* ─── Service Icon Box ─── */
.service-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: linear-gradient(135deg, rgba(26,111,196,0.1), rgba(45,142,245,0.15));
  border: 1px solid rgba(26,111,196,0.2);
  transition: all 0.3s;
}
.card:hover .service-icon-box {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-color: transparent;
}
.card:hover .service-icon-box span { filter: brightness(10); }

/* ─── Timeline ─── */
.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 2.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--accent);
}

/* ─── Publisher Card ─── */
.publisher-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  transition: all 0.3s;
  cursor: pointer;
}
.publisher-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.publisher-card img {
  max-height: 50px;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(60%);
  transition: filter 0.3s;
}
.publisher-card:hover img { filter: grayscale(0%); }

/* ─── Cookie Banner ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 9997;
  border-top: 3px solid var(--accent);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }

/* ─── Form ─── */
.form-field {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #1e293b;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(26,111,196,0.1);
}
.form-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ─── Table ─── */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  background: var(--navy);
  color: #fff;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
}
.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.88rem;
  color: #334155;
}
.data-table tr:hover td { background: var(--gray-light); }

/* ─── Back to Top ─── */
.back-to-top {
  position: fixed;
  bottom: 6.5rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  background: var(--navy);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--accent); }

/* ─── Select Options Fix ─── */
select.text-white option {
  background-color: var(--navy);
  color: #fff;
}
/* Update your pricing card or add this class */
.sticky-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 6rem; /* Matches top-24 in Tailwind */
  z-index: 40;
}

/* Ensure content underneath is readable */
.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* --- Admin sidebar active ------------------------------------------- */
.sidebar-link.active {
  background: rgba(29, 78, 216, 0.3);
  color: #fff;
}

/* --- Table styles ---------------------------------------------------- */
.admin-table th {
  background: #1e2d6e;
  color: #fff;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
}
.admin-table td {
  padding: 0.65rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
}
.admin-table tr:hover td { background: #f0f7ff; }

/* --- Hero Interactive Console Styles --- */
.hero-visual-wrapper {
  display: none;
}
@media (min-width: 768px) {
  .hero-visual-wrapper {
    display: block;
  }
}
.animated-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 6s linear infinite;
}
@keyframes drawLine {
  0% { stroke-dashoffset: 1000; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1000; }
}
.text-xxs {
  font-size: 0.65rem;
}


