.page-auth {
  padding-top: 0;
  padding-bottom: 0;
}

.auth-search-banner {
  position: sticky;
  top: 56px;
  z-index: 1020;
  background-color: var(--card-bg, #ffffff);
  background-image: linear-gradient(90deg, #e8f5e9 0%, #eef0fa 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 0.55rem 0;
}

[data-theme="dark"] .auth-search-banner {
  background-color: #1a1a2e;
  background-image: linear-gradient(90deg, #1a2e1f 0%, #1e1e32 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.auth-search-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  font-size: 0.84rem;
  color: var(--text);
}

.auth-search-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.page-auth-split .auth-main--split {
  padding-top: 56px;
  padding-bottom: 2rem;
}

.auth-main--split .auth-page-split {
  max-width: 1120px;
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 992px) {
  .auth-main--split .auth-page-split {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 1.75rem;
  }

  .auth-signin-column {
    position: sticky;
    top: 68px;
  }
}

@media (max-width: 991.98px) {
  .auth-main--split .auth-page-split {
    grid-template-columns: 1fr;
  }
}

.auth-play-col {
  padding: 0.25rem 0 0.5rem;
}

.auth-play-hero {
  margin-bottom: 1rem;
}

.auth-play-hero-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-weight: 700;
  padding: 0.7rem 1rem;
  border-radius: 12px;
}

.auth-play-hero-note {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

.auth-play-hero-note a {
  font-weight: 600;
  text-decoration: none;
}

.auth-play-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.auth-divider-signin {
  margin-top: 0.25rem;
}

.auth-home-daily {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.14), rgba(91, 94, 166, 0.1));
  border: 1px solid var(--border);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-home-daily:hover {
  color: var(--text);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12);
}

.auth-home-daily-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 1.1rem;
}

.auth-home-daily-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.auth-home-daily-title {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.auth-home-daily-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}

.auth-home-daily-play {
  flex-shrink: 0;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
}

.auth-home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.auth-home-section-head h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}

.auth-home-section-head p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.auth-home-more-link {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.auth-home-more-link:hover {
  text-decoration: underline;
}

.auth-home-scroll-wrap {
  position: relative;
  margin-bottom: 0.85rem;
}

.auth-home-scroll-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 22px;
  width: 36px;
  pointer-events: none;
  background: linear-gradient(to left, var(--card-bg, #fff), transparent);
}

[data-theme="dark"] .auth-home-scroll-wrap::after {
  background: linear-gradient(to left, var(--card-bg), transparent);
}

.auth-home-scroll-hint {
  display: none;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.auth-home-scroll-hint {
  display: flex;
}

@media (min-width: 992px) {
  .auth-home-scroll-hint {
    display: none;
  }
}

.auth-home-scroll {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.auth-home-scroll::-webkit-scrollbar {
  height: 5px;
}

.auth-home-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}

.auth-home-tile {
  flex: 0 0 158px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}

.auth-home-tile:hover {
  color: inherit;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

.auth-home-tile-media {
  position: relative;
  height: 108px;
  background: linear-gradient(145deg, rgba(42, 140, 53, 0.25), rgba(91, 94, 166, 0.3));
}

.auth-home-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-home-tile-media--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  opacity: 0.85;
}

.auth-home-tile-body {
  padding: 0.5rem 0.55rem 0.55rem;
}

.auth-home-tile-cat {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 2px;
}

.auth-home-tile-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.auth-home-quick-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.auth-home-quick-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0.55rem 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.auth-home-quick-bar a i {
  font-size: 1.2rem;
}

.auth-home-quick-bar a:hover {
  color: var(--text);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.auth-card {
  padding: 1.35rem 1.25rem 1.2rem;
  border-radius: 18px;
}

.auth-card h1 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.auth-lead {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  font-weight: 500;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  color: #3c4043;
}

.btn-google svg {
  flex-shrink: 0;
}

[data-theme="dark"] .btn-google {
  background: var(--card-bg);
  color: var(--text);
  border-color: var(--border);
}

[data-theme="dark"] .btn-google:hover {
  background: var(--bg);
  color: var(--text);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 1.1rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.25rem;
}

.auth-tabs .nav-link {
  flex: 1;
  text-align: center;
  border: none;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.5rem 0.65rem;
}

.auth-tabs .nav-link:hover {
  color: var(--text);
  background: transparent;
}

.auth-tabs .nav-link.active {
  background: var(--card-bg);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .auth-tabs .nav-link.active {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.auth-alert {
  font-size: 0.88rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.auth-error {
  color: #b91c1c;
  font-size: 0.88rem;
  margin-top: 0.75rem;
}

[data-theme="dark"] .auth-error {
  color: #f87171;
}

.auth-foot {
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0;
}

.auth-consent-block {
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bs-secondary-bg, #f8f9fa);
}

.auth-consent-block .form-check-label {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text);
}

.auth-consent-block .form-check-label a {
  font-weight: 600;
}

.auth-foot a {
  font-weight: 600;
  text-decoration: none;
}

.auth-foot a:hover {
  text-decoration: underline;
}

.auth-foot-sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}

/* ── Homepage auth modal (product-first) ── */
body.auth-modal-open {
  overflow: hidden;
}

.auth-modal[hidden] {
  display: none !important;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 768px) {
  .auth-modal {
    align-items: center;
    padding: 1.25rem;
  }
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

.auth-modal-sheet {
  position: relative;
  width: min(100%, 920px);
  max-height: min(94vh, 720px);
  overflow: auto;
  border-radius: 20px 20px 0 0;
  background: var(--card-bg);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  animation: auth-modal-in 0.28s ease;
}

@media (min-width: 768px) {
  .auth-modal-sheet {
    border-radius: 20px;
    max-height: min(88vh, 680px);
  }
}

@keyframes auth-modal-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.auth-modal-close:hover {
  background: var(--border);
}

.auth-modal-layout {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .auth-modal-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
    min-height: 480px;
  }
}

.auth-modal-benefits {
  padding: 1.5rem 1.35rem 1rem;
  background:
    radial-gradient(520px 240px at 0% 0%, rgba(0, 113, 227, 0.14), transparent 60%),
    radial-gradient(420px 200px at 100% 100%, rgba(245, 158, 11, 0.12), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .auth-modal-benefits {
    padding: 2rem 1.75rem;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
}

.auth-modal-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.auth-modal-benefits-title {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.auth-modal-benefits-lead {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 1rem;
}

.auth-modal-benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.55rem;
}

.auth-modal-benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.86rem;
  line-height: 1.4;
}

.auth-modal-benefit-list i {
  color: var(--primary);
  font-size: 1rem;
  margin-top: 0.1rem;
}

.auth-modal-proof {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

.auth-modal-play-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.auth-modal-play-link:hover {
  text-decoration: underline;
}

.auth-modal-form-col {
  padding: 1.25rem 1.25rem 1.35rem;
}

@media (min-width: 768px) {
  .auth-modal-form-col {
    padding: 1.75rem 1.5rem;
  }
}

.auth-modal-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
}

.auth-modal-card-lead {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.auth-modal-skip {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.55rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.auth-modal-skip:hover {
  color: var(--text);
  text-decoration: underline;
}
