:root {
  --bg-dark: #09071c;
  --bg-card: #140d33;
  --bg-card-hover: #1c1344;
  --bg-elevated: #1e144a;
  --bg-header: rgba(9, 7, 28, 0.85);
  
  --accent-gold: #ffb020;
  --accent-gold-glow: rgba(255, 176, 32, 0.35);
  --accent-purple: #8b5cf6;
  --accent-purple-light: #b8a1ff;
  --accent-purple-glow: rgba(139, 92, 246, 0.3);
  --accent-green: #22c55e;
  --accent-green-dark: #16a34a;
  --accent-cyan: #06b6d4;

  --text-main: #ffffff;
  --text-muted: #a993bd;
  --text-dim: #7f6e91;

  --border-light: rgba(184, 161, 255, 0.2);
  --border-active: #ab84e1;

  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1440px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Accessibility (a11y) & Focus Ring System */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--accent-gold);
  color: #09071c;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  text-decoration: none;
  transition: top var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.skip-link:focus {
  top: 20px;
}

*:focus-visible {
  outline: 2px solid var(--accent-gold) !important;
  outline-offset: 3px !important;
}

/* Accessible screen reader only label class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-card-hover);
  border-radius: 4px;
  border: 1px solid var(--border-light);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

.hide-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-light);
  height: 80px;
  display: flex;
  align-items: center;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Premium Canadian Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-icon {
  width: 50px;
  height: 50px;
  position: relative;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.brand-logo:hover .brand-logo-icon {
  transform: scale(1.08) rotate(3deg);
}

.logo-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(255, 59, 48, 0.45));
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.brand-name .text-highlight {
  background: #151138;
  filter: drop-shadow(0 2px 8px rgba(255, 176, 32, 0.35));
}

.brand-name .text-sub {
  color: #ffffff;
  font-weight: 800;
}

.brand-geo {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--accent-purple-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.95;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: rgba(139, 92, 246, 0.15);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.btn-primary {
  background: #141036 0%, var(--accent-green-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
  background: #151138;
  color: #fff;
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: #151138;
  border-color: var(--accent-purple-light);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--text-main);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-main);
  background: transparent;
  padding: 8px;
}

/* Hero Section */
.hero-section {
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  background-color: #09071c;
  background-image: url('assets/img/hero_bg.webp');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 7, 28, 0.85);
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 176, 32, 0.12);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero-title span {
  color: var(--accent-gold);
  background: #151138;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  margin-top: 40px;
  background: var(--bg-card);
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.metric-item {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-item:last-child {
  border-right: none;
}

.metric-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-gold);
  display: block;
  line-height: 1.1;
  margin-bottom: 6px;
}

.metric-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Category Filter Bar */
.filter-bar {
  padding: 32px 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 850px;
  margin: 0 auto;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 540px;
}

.search-input {
  width: 100%;
  height: 50px;
  padding: 0 20px 0 48px;
  background: rgba(22, 17, 48, 0.75);
  border: 1.5px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
  background: rgba(30, 22, 64, 0.9);
  border-color: var(--accent-gold);
  box-shadow: 0 0 25px rgba(255, 176, 32, 0.35), 0 8px 24px rgba(0, 0, 0, 0.5);
  outline: none;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-gold);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-scroll {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 4px 2px;
  width: 100%;
}

.category-chip {
  padding: 10px 24px;
  background: rgba(22, 17, 48, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.category-chip:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: var(--accent-purple-light);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.category-chip.active {
  background: #141036 0%, var(--accent-purple) 100%);
  border-color: var(--accent-gold);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 59, 48, 0.4), 0 4px 12px rgba(0,0,0,0.4);
}

/* Sections */
.section {
  padding: 48px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.section-title-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 176, 32, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Strategy Card Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}

.card {
  background: #141036 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-purple-light);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(139, 92, 246, 0.3);
}

.card-img-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-elevated);
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(9, 7, 28, 0.85);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.card-score-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: #141036 0%, rgba(22, 163, 74, 0.95) 100%);
  color: #fff;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.card-stats {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: auto;
}

.stat-group {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stat-value {
  font-weight: 700;
  color: var(--text-main);
}

.card-action {
  margin-top: 18px;
  width: 100%;
}

/* Features Block */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 20px 0;
}

.feature-box {
  background: #141036 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition-normal);
}

.feature-box:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 176, 32, 0.2);
}

.feature-icon-box {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid var(--accent-purple);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.feature-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Providers Grid */
/* Providers Grid - Enhanced Studio Cards */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.provider-card-rich {
  background: #141036 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.provider-card-rich::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #141036, var(--accent-gold), var(--accent-purple));
  opacity: 0.6;
  transition: opacity var(--transition-normal);
}

.provider-card-rich:hover {
  transform: translateY(-6px);
  border-color: var(--accent-purple-light);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(139, 92, 246, 0.3);
}

.provider-card-rich:hover::before {
  opacity: 1;
}

.provider-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.provider-badge {
  display: flex;
  align-items: center;
  gap: 14px;
}

.provider-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #141036 0%, rgba(255, 176, 32, 0.15) 100%);
  border: 1px solid var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
  flex-shrink: 0;
}

.provider-title-text {
  display: flex;
  flex-direction: column;
}

.provider-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.provider-subtag {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.provider-rating-pill {
  background: rgba(255, 176, 32, 0.12);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(255, 176, 32, 0.15);
}

.provider-specialty {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  background: rgba(9, 7, 28, 0.4);
  padding: 12px 16px;
  border-radius: 10px;
  border-left: 3px solid var(--accent-purple);
}

.provider-footer-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(9, 7, 28, 0.5);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.provider-meta-item {
  display: flex;
  flex-direction: column;
}

.provider-meta-lbl {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.provider-meta-val {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent-purple-light);
}

/* Editorial Content Block */
.content-block {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 40px;
  margin: 40px 0;
}

.content-block h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: #fff;
}

.content-block p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Footer Section */
.footer {
  background: #050412;
  border-top: 1px solid var(--border-light);
  padding-top: 60px;
  padding-bottom: 40px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 40px;
}

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

.footer-col h3 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 20px;
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

.footer-disclaimer .highlight-notice {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

/* Modal Dialog System */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 4, 18, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

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

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.modal-body {
  padding: 24px;
}

/* Strategy Detail Modal Content */
.strategy-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  text-align: center;
}

.strategy-meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.meta-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.notice-banner {
  background: rgba(255, 176, 32, 0.1);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Responsive adjustments & Burger Menu system */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hide-on-desktop {
  display: none;
}

/* Zero Layout Shift Mobile Rules */
html, body {
  overflow-x: hidden;
  width: 100%;
}

@media (max-width: 992px) {
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-actions.hide-on-mobile {
    display: none;
  }

  .hide-on-desktop {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(9, 7, 28, 0.98);
    border-bottom: 1.5px solid var(--border-light);
    flex-direction: column;
    padding: 24px 20px 32px;
    gap: 14px;
    align-items: stroke;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
    z-index: 999;
  }

  .nav-links.mobile-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 12px 18px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .mobile-header-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    width: 100%;
  }

  .mobile-header-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 110px;
    padding-bottom: 50px;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.925rem;
    padding: 0 10px;
  }

  .hero-metrics {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .hero-metrics .metric-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    width: 100%;
  }

  .hero-metrics .metric-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .providers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .filter-bar {
    padding: 20px 0 10px;
  }

  .search-box {
    max-width: 100%;
  }

  .category-scroll {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }

  .modal-container {
    width: 94vw;
    max-height: 90vh;
    padding: 0;
  }

  .strategy-meta {
    grid-template-columns: 1fr;
  }
}

/* Beautiful Auth Modal System */
.auth-tabs {
  display: flex;
  background: var(--bg-elevated);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
}

.auth-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.auth-tab.active {
  background: #151138;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--accent-purple-light);
}

.input-field-group {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.input-field-icon {
  position: absolute;
  left: 16px;
  color: var(--accent-purple-light);
  font-size: 1.1rem;
  pointer-events: none;
}

.custom-input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  background: rgba(31, 31, 40, 0.85);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.custom-input:focus {
  border-color: var(--accent-purple-light);
  background: rgba(31, 31, 40, 1);
  box-shadow: 0 0 15px rgba(184, 161, 255, 0.25);
}

.auth-extra-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-forgot-link {
  color: var(--accent-purple-light);
  font-weight: 600;
}

.auth-forgot-link:hover {
  color: #fff;
  text-decoration: underline;
}
