:root {
  --page: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f3f4f6;
  --text: #111827;
  --text-soft: #6b7280;
  --muted: #6c6c6e;
  --border: #e5e7eb;
  --brand: #006bff;
  --brand-hover: #0d57e6;
  --charcoal: #111827;
  --success: #1f9d55;
  --link: #0d57e6;
  --flash: #006bff;
  --purple: #6a4dff;
  --warning: #5f22d3;
  --container: 1280px;
  --radius: 5px;
  --shadow-1: 0 2px 4px rgba(0, 0, 0, .10);
  --shadow-2: 0 4px 10px rgba(0, 0, 0, .10);
  --ease: 150ms linear;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: "Roboto Flex", "Segoe UI Variable", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.drawer-open { overflow: hidden; }

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: #fff; border: 0; border-radius: 999px; background: linear-gradient(110deg, #006bff 0%, #0d57e6 68%, #6a4dff 100%); box-shadow: 0 3px 10px rgba(0,84,220,.22), inset 0 1px 0 rgba(255,255,255,.24); cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.page-container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.support-button { position: fixed; z-index: 44; right: 0; bottom: 82px; display: flex; align-items: center; justify-content: center; gap: 7px; width: 74px; height: 58px; color: #fff; border-radius: 8px 0 0 8px; background: linear-gradient(135deg, #8b43ff, #6d28d9 60%, #953cff); box-shadow: 0 3px 12px rgba(109,40,217,.3); font-size: 12px; font-weight: 700; }
.support-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.support-button:hover { width: 112px; }
.back-to-top { position: fixed; z-index: 44; right: 13px; bottom: 15px; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; color: #fff; border: 0; border-radius: 50%; background: #363544; box-shadow: 0 4px 14px rgba(17,24,39,.24); cursor: pointer; font-size: 24px; line-height: 1; }
.back-to-top:hover { background: #111827; transform: translateY(-2px); }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.auth-open { overflow: hidden; }
.auth-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; }
.auth-modal-backdrop { position: absolute; inset: 0; background: rgba(11, 18, 32, .68); backdrop-filter: blur(5px); }
.auth-dialog { position: relative; z-index: 1; width: min(100%, 440px); max-height: calc(100vh - 36px); overflow: auto; padding: 30px; color: #172033; border: 1px solid rgba(255, 255, 255, .55); border-radius: 18px; background: #fff; box-shadow: 0 30px 90px rgba(7, 17, 38, .32); }
.auth-close { position: absolute; top: 14px; right: 14px; display: grid; width: 34px; height: 34px; place-items: center; padding: 0; color: #4b5563; border: 1px solid #e5e7eb; border-radius: 50%; background: #fff; box-shadow: none; font-size: 24px; line-height: 1; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: #0d57e6; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.auth-brand img { width: 76px; height: auto; }
.auth-dialog h2 { margin: 0; color: #111827; font-size: 30px; font-weight: 750; letter-spacing: -.04em; }
.auth-intro { margin: 7px 0 20px; color: #667085; font-size: 14px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; border-radius: 9px; background: #eef2f7; }
.auth-tabs button { min-height: 40px; padding: 8px 10px; color: #5f6b7a; border-radius: 7px; background: transparent; box-shadow: none; font-size: 13px; font-weight: 700; }
.auth-tabs button[aria-selected="true"] { color: #fff; background: #0868f7; box-shadow: 0 5px 14px rgba(8, 104, 247, .22); }
.auth-form { display: grid; gap: 14px; margin-top: 20px; }
.auth-form label { display: grid; gap: 6px; color: #344054; font-size: 12px; font-weight: 650; }
.auth-form input { width: 100%; min-height: 44px; padding: 10px 12px; color: #1f2937; border: 1px solid #d6dce5; border-radius: 7px; background: #fff; }
.auth-form input:focus { outline: 3px solid rgba(8, 104, 247, .12); border-color: #0868f7; }
.auth-submit { min-height: 45px; margin-top: 2px; border-radius: 7px; font-size: 13px; font-weight: 750; }
.auth-submit:disabled { opacity: .6; cursor: wait; }
.auth-feedback { min-height: 18px; margin: -5px 0 0; color: #d92d20; font-size: 12px; }
.auth-privacy { display: block; margin-top: 16px; color: #98a2b3; font-size: 12px; text-align: center; }

@media (max-width: 520px) {
  .auth-modal { padding: 10px; align-items: end; }
  .auth-dialog { width: 100%; max-height: calc(100vh - 20px); padding: 26px 20px 22px; border-radius: 18px 18px 10px 10px; }
}

.skip-link {
  position: fixed;
  inset: 8px auto auto 8px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--brand);
  border-radius: var(--radius);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg:not(.brand-mark):not(.svg-sprite) {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-stack {
  display: grid;
  gap: 40px;
  padding-block: 28px 42px;
}

.home-stack > * { min-width: 0; }

.dark-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 18px;
  color: #fff;
  background: #111;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
}

.dark-cta svg { width: 15px !important; height: 15px !important; }
.dark-cta:hover { background: var(--brand); }

.round-arrow,
.carousel-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #6d28d9;
  border: 1px solid #dfceff;
  border-radius: 50%;
  background: #fbf9ff;
  box-shadow: none;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.round-arrow:hover,
.carousel-arrow:hover { color: #fff; border-color: transparent; background: linear-gradient(135deg, #8b43ff, #6d28d9 60%, #953cff); box-shadow: 0 5px 14px rgba(109, 40, 217, .24); }

.round-arrow:focus-visible,
.carousel-arrow:focus-visible { outline: 3px solid rgba(139, 67, 255, .25); outline-offset: 2px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 38px;
  margin-bottom: 12px;
}

.section-header h2,
.compact-categories h2,
.popular-searches h2 {
  margin: 0;
  color: #242424;
  font-size: 25px;
  line-height: 1.2;
}

.section-dots { display: flex; gap: 5px; }
.section-dots i { width: 5px; height: 5px; border-radius: 50%; background: #c6c6c6; }
.section-dots i:first-child { background: var(--charcoal); }

.tab-list {
  display: flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  padding: 4px;
  border: 1px solid #e5ddff;
  border-radius: 999px;
  background: #f5f1ff;
  box-shadow: inset 0 1px 2px rgba(54,22,113,.06);
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-list::-webkit-scrollbar { display: none; }
.tab-list button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 14px;
  border: 0;
  border-radius: 99px;
  color: #604990;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.tab-list button[aria-selected="true"],
.tab-list button.is-active { color: #fff; background: linear-gradient(135deg, #8b43ff, #6d28d9 60%, #953cff); box-shadow: 0 3px 8px rgba(109,40,217,.28), inset 0 1px 0 rgba(255,255,255,.25); }
.tab-list button:not([aria-selected="true"]):not(.is-active):hover { color: #6d28d9; background: #ece4ff; }
.tab-list button:focus-visible { outline: 3px solid rgba(139,67,255,.35); outline-offset: 2px; }

.carousel-shell { position: relative; }

.carousel-shell > .carousel-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
}

.carousel-shell > .prev { left: -21px; transform: translateY(-50%) rotate(180deg); }
.carousel-shell > .next { right: -21px; }
.carousel-arrow:disabled { opacity: 0; pointer-events: none; }

.toast {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 28px;
  min-width: 240px;
  padding: 12px 18px;
  color: #fff;
  background: var(--charcoal);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  text-align: center;
  transform: translateX(-50%);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
