/* ==========================================================================
   Layout: Responsive Container Grids, Header, Hero, Stepper, and Footer
   ========================================================================== */

/* Standard Responsive Container */
.app-container,
.header-inner,
.footer-inner {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .app-container,
  .header-inner,
  .footer-inner {
    padding: 0 28px;
  }
}

@media (min-width: 1200px) {
  .app-container,
  .header-inner,
  .footer-inner {
    padding: 0 36px;
  }
}

/* App Header */
.app-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  z-index: 900;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.brand-icon {
  font-size: 1.8rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(2, 132, 199, 0.3));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 700;
}

/* Desktop Navigation Menu */
.desktop-nav {
  display: none;
}

@media (min-width: 960px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--border-subtle);
    padding: 4px 6px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
  }

  .desktop-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
  }

  .desktop-nav-link:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.7);
  }

  .desktop-nav-link.active {
    background: var(--bg-card);
    color: var(--primary);
    font-weight: 800;
    box-shadow: var(--shadow-sm);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(135deg, #091b33 0%, #0f172a 45%, #1e1b4b 100%);
  color: #ffffff;
  border-radius: var(--radius-2xl);
  padding: 36px 24px;
  margin-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .hero-banner {
    padding: 52px 48px;
  }
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -50px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.3rem;
  }
}

.hero-subtitle {
  font-size: 0.95rem;
  color: #cbd5e1;
  max-width: 720px;
  line-height: 1.7;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.08rem;
  }
}

/* Embedded Hero Search */
.hero-search-box {
  max-width: 640px;
  position: relative;
  margin-bottom: 18px;
}

.hero-search-input {
  width: 100%;
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  padding: 16px 52px 16px 130px;
  font-size: 0.98rem;
  color: var(--text-main);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  outline: none;
  transition: all var(--transition-fast);
}

.hero-search-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.3);
}

.hero-search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.hero-search-btn {
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  border-radius: var(--radius-full);
  padding: 0 20px;
  font-size: 0.88rem;
}

/* Quick Search Tag Chips */
.hero-tag-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: #38bdf8;
}

/* Live Operator Online Pill */
.hero-live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #86efac;
  margin-top: 14px;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Platform Stats Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .stats-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

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

.stat-number {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 1.8rem;
  }
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Responsive Grids */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Categories Visual Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.category-tile {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-tile:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.category-tile-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

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

.category-tile-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Features / Advantages Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: var(--space-10);
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-fast);
}

.feature-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-light), #e0f2fe);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

/* How It Works Stepper */
.stepper-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: var(--space-10);
}

@media (min-width: 768px) {
  .stepper-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-number {
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 2rem;
  font-weight: 900;
  color: #e2e8f0;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: var(--space-6) 0 var(--space-4);
}

.section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
}

.section-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.section-link:hover {
  text-decoration: underline;
}

/* Desktop Hide Bottom Nav */
@media (min-width: 960px) {
  .bottom-nav {
    display: none !important;
  }
}

/* Footer */
.app-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 24px;
  margin-top: 60px;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
}

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

.footer-links a {
  color: #94a3b8;
  font-size: 0.86rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: #64748b;
}

/* --- Inner Pages Responsive Grids --- */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 960px) {
  .service-detail-grid {
    grid-template-columns: 1.8fr 1fr;
    align-items: start;
  }
}

.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 960px) {
  .order-detail-grid {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
  }
}

.sticky-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 84px;
}

/* --- Header Controls & Pills --- */
.header-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.header-wallet-pill:hover {
  background: var(--primary-glow);
  transform: translateY(-1px);
}

.header-wallet-pill .add-balance-btn {
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--border-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  transform: rotate(20deg) scale(1.05);
  background: var(--border-strong);
}

/* Notification Bell & Dropdown */
.notif-bell-wrapper {
  position: relative;
}

.notif-bell-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--border-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.notif-bell-btn:hover {
  background: var(--border-strong);
}

.notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--danger);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-card);
  animation: pulse 2s infinite;
}

.notif-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  width: 340px;
  max-width: 90vw;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: modalFadeIn 0.2s ease-out;
}

.notif-dropdown.show {
  display: flex;
}

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

.notif-list {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition-fast);
  cursor: pointer;
}

.notif-item:hover {
  background: var(--primary-light);
}

.notif-item.unread {
  background: rgba(2, 132, 199, 0.05);
  border-right: 3px solid var(--primary);
}

/* Spotlight Command Palette (Ctrl + K) */
.spotlight-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}

.spotlight-backdrop.show {
  display: flex;
}

.spotlight-box {
  width: 620px;
  max-width: 92vw;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1.5px solid var(--border-color);
}

.spotlight-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.08rem;
  background: transparent;
  color: var(--text-main);
  font-family: inherit;
}

.spotlight-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spotlight-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.spotlight-item:hover, .spotlight-item.active {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateX(-4px);
}

.spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: var(--border-subtle);
  border-top: 1px solid var(--border-color);
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* --- Interactive Home Hub Tabs --- */
.hub-tabs-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 36px 0 24px;
  flex-wrap: wrap;
}

.hub-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hub-tab-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.hub-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 6px 18px -2px var(--primary-glow);
}

/* --- Ambient Aura in Hero --- */
.hero-ambient-aura {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, rgba(79, 70, 229, 0.15) 50%, transparent 70%);
  top: -150px;
  left: -150px;
  filter: blur(40px);
  animation: auraFloat 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes auraFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 60px) scale(1.15); }
}

/* --- Customer Reviews Grid --- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}

@media (min-width: 640px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.review-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* --- Official Printable Invoice Sheet --- */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-invoice-modal, #printable-invoice-modal * {
    visibility: visible;
  }
  #printable-invoice-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
    background: #ffffff !important;
    color: #000000 !important;
  }
  .no-print {
    display: none !important;
  }
}

.invoice-sheet {
  background: #ffffff;
  color: #0f172a;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 2px solid #e2e8f0;
  position: relative;
  font-size: 0.9rem;
  line-height: 1.6;
}

.invoice-stamp {
  width: 110px;
  height: 110px;
  border: 3px dashed #0284c7;
  border-radius: 50%;
  color: #0284c7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  transform: rotate(-12deg);
  opacity: 0.85;
}

@media (min-width: 768px) {
  #header-spotlight-btn {
    display: inline-flex !important;
  }
}

/* ==========================================================================
   Dark Theme Polished Surface Overrides (Fintech Midnight Glass)
   ========================================================================== */
[data-theme="dark"] .stat-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .category-tile,
[data-theme="dark"] .feature-box,
[data-theme="dark"] .step-card,
[data-theme="dark"] .review-card,
[data-theme="dark"] .card {
  background: rgba(15, 23, 42, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--text-main);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .stat-card:hover,
[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .category-tile:hover,
[data-theme="dark"] .feature-box:hover,
[data-theme="dark"] .review-card:hover {
  border-color: var(--primary) !important;
  box-shadow: 0 8px 25px -4px rgba(56, 189, 248, 0.25);
}

[data-theme="dark"] .hero-search-input {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f8fafc;
}

[data-theme="dark"] .desktop-nav {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .desktop-nav-link.active {
  background: rgba(30, 41, 59, 0.95);
  color: #38bdf8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .step-number {
  color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .nav-menu {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .hub-tab-btn {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

[data-theme="dark"] .hub-tab-btn.active {
  background: var(--primary);
  color: #0f172a;
  border-color: var(--primary);
}

/* ==========================================================================
   Animated Online Support FAB & Concierge Drawer
   ========================================================================== */

.support-fab-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 16px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 28px -2px rgba(2, 132, 199, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all var(--transition-normal);
  animation: fabPulseWave 3s infinite;
  user-select: none;
}

@media (max-width: 768px) {
  .support-fab-btn {
    bottom: 84px;
    left: 16px;
    padding: 10px 16px 10px 12px;
  }
}

@keyframes fabPulseWave {
  0% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.6), 0 10px 28px -2px rgba(2, 132, 199, 0.5);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(2, 132, 199, 0), 0 10px 28px -2px rgba(2, 132, 199, 0.5);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0), 0 10px 28px -2px rgba(2, 132, 199, 0.5);
  }
}

.support-fab-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 34px -2px rgba(2, 132, 199, 0.65);
  border-color: rgba(255, 255, 255, 0.5);
}

.support-fab-btn:active {
  transform: translateY(1px) scale(0.98);
}

.support-fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.support-fab-btn:hover .support-fab-icon {
  transform: rotate(-10deg) scale(1.1);
}

.support-fab-label {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.support-fab-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
  animation: dotBlink 2s infinite ease-in-out;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* --- Support Drawer Overlay & Modal --- */
.support-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 24px;
}

@media (max-width: 768px) {
  .support-drawer-overlay {
    padding: 0;
    align-items: flex-end;
  }
}

.support-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.support-drawer {
  background: var(--bg-card);
  color: var(--text-main);
  width: 100%;
  max-width: 440px;
  max-height: 85vh;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  border: 1.5px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(30px) scale(0.96);
  transition: transform var(--transition-normal);
}

@media (max-width: 768px) {
  .support-drawer {
    max-width: 100%;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    max-height: 90vh;
  }
}

.support-drawer-overlay.active .support-drawer {
  transform: translateY(0) scale(1);
}

.support-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--border-subtle);
  border-bottom: 1px solid var(--border-color);
}

.support-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.support-drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.support-action-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
}

.support-section-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-muted);
  margin: 16px 0 8px;
}

.support-channel-btn {
  background: var(--border-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px;
  text-align: center;
  transition: all var(--transition-fast);
  display: block;
}

.support-channel-btn:hover {
  border-color: var(--primary);
  background: var(--bg-card);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.support-app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  background: var(--border-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.support-app-tile:hover {
  border-color: var(--primary);
  background: var(--bg-card);
  transform: translateY(-2px);
}

.support-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--border-subtle);
}

.support-faq-summary {
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-main);
  outline: none;
  user-select: none;
}

.support-faq-answer {
  padding: 8px 14px 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
}

/* Dark Mode Overrides for Support Drawer */
[data-theme="dark"] .support-fab-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 28px -2px rgba(2, 132, 199, 0.6), 0 0 20px rgba(56, 189, 248, 0.25);
}

[data-theme="dark"] .support-drawer {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .support-drawer-header {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .support-channel-btn,
[data-theme="dark"] .support-app-tile,
[data-theme="dark"] .support-faq-item {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .support-faq-answer {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.08);
}

