:root {
  --ink: #1b1e2b;
  --muted: #5a6075;
  --cream: #f3f6fb;
  --sand: #e3e9f4;
  --copper: #223a8f;
  --olive: #0f2a6b;
  --sage: #d7e2ff;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(19, 32, 72, 0.16);
  --radius: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  max-width: 100%;
}

body {
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fff, var(--cream) 45%, #d6e1fb 100%);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

.subscribe-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.subscribe-page main.section {
  flex: 1;
  padding-top: 28px;
  padding-bottom: 48px;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  padding: 120px 6vw 24px;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 14px 24px;
  background: rgba(243, 246, 251, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #d0d9ee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid #d0d9ee;
  padding: 6px;
}

.brand-logo.sm {
  width: 28px;
  height: 28px;
  padding: 4px;
  border-radius: 8px;
}

.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.brand-tag {
  font-size: 12px;
  color: var(--muted);
}

.nav-actions {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
  margin-left: auto;
  justify-content: flex-end;
}

.profile-icon-btn {
  margin-left: 6px;
}

.primary-btn,
.ghost-btn {
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trial-btn {
  padding: 14px 24px;
  font-size: 15px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-btn {
  background: var(--copper);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(20, 42, 120, 0.35);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid #c6b8a7;
}

.hidden {
  display: none !important;
}

.hero {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.1;
  margin-bottom: 16px;
  text-align: left;
}

.hero-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--olive);
  font-weight: 600;
}

.hero-sub {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 16px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.search {
  flex: 1;
  min-width: 240px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid #cbbca8;
  background: var(--white);
}

.hero-meta {
  display: flex;
  gap: 22px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-stat {
  font-weight: 700;
  font-size: 18px;
}

.hero-meta-label {
  font-size: 12px;
  color: var(--muted);
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.hero-subscribe {
  margin: 0;
  padding: 0 6vw;
}

.hero-subscribe .hero-promo {
  width: 100%;
  max-width: none;
}

@media (max-width: 960px) {
  .hero-subscribe {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .hero-subscribe .hero-promo {
    width: 100%;
    max-width: none;
  }
}
.top-welcome {
  margin-top: 16px;
  background: var(--white);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 520px;
}

.top-welcome.show {
  display: flex;
}

.profile-name {
  font-weight: 600;
}

.profile-savings {
  font-size: 13px;
  color: var(--muted);
}

.profile-icon-btn {
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--olive);
  font-size: 18px;
  cursor: pointer;
  display: none;
}

.profile-icon-btn.show {
  display: inline-grid;
  place-items: center;
}

.hero-card,
.hero-promo {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.hero-card-title {
  font-weight: 600;
}

.hero-card-sub {
  font-size: 13px;
  color: var(--muted);
}

.hero-card-list {
  display: grid;
  gap: 12px;
}

.featured-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.featured-thumb {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
}

.pill {
  font-size: 12px;
  background: var(--sage);
  color: var(--olive);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 600;
}

.hero-promo {
  display: grid;
  gap: 12px;
  background: linear-gradient(135deg, #0f2a6b, #152f86);
  color: var(--white);
  padding: 34px 28px;
  min-height: 280px;
}

.hero-promo-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.hero-promo-sub {
  font-size: 13px;
  color: #d6e1d8;
}

.hero-promo-price {
  font-size: 28px;
  font-weight: 700;
}

.hero-promo-price span {
  font-size: 14px;
  font-weight: 400;
}

.section {
  padding: 0 6vw;
}

.section-alt {
  background: var(--sand);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 12px;
  margin-top: 0;
  text-align: center;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.section-head h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  text-align: center;
  width: 100%;
}

.section-head p {
  color: var(--muted);
  max-width: 420px;
  text-align: center;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  min-height: 230px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-icon {
  font-size: 66px;
}

.category-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
}

.category-card p {
  font-size: 13px;
  color: var(--muted);
}

.category-card .category-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.category-backdrop {
  display: none;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.popular-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
  text-align: left;
  overflow: hidden;
}

.popular-thumb {
  width: 100%;
  height: 170px;
  border-radius: 0;
  object-fit: cover;
  margin: 0;
}

.popular-media {
  position: relative;
}

.popular-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(12, 18, 36, 0.72);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.popular-body {
  margin-top: 0;
  display: grid;
  gap: 6px;
  padding: 12px 16px 16px;
}

.popular-card h4 {
  font-size: 17px;
}

.popular-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.popular-location {
  font-size: 12px;
  color: var(--muted);
}

.popular-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--copper);
}

.rating-number {
  color: var(--copper);
  font-weight: 700;
}

.rating-stars {
  color: var(--copper);
  letter-spacing: 1px;
}

.rating {
  color: var(--copper);
  font-weight: 700;
}

.membership {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: center;
}

@media (min-width: 961px) {
  .subscribe-page .membership {
    max-width: 1040px;
    margin: 0 auto;
    align-items: start;
    grid-template-columns: 1fr 0.95fr;
  }

  .subscribe-page .membership h3,
  .subscribe-page .membership p {
    text-align: left;
  }
}

.membership-label {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--olive);
  font-size: 11px;
  font-weight: 600;
}

.membership h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  margin: 12px 0;
  text-align: center;
}

.membership p {
  color: var(--muted);
}

.membership-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.membership-price {
  font-size: 36px;
  font-weight: 700;
}

.membership-cycle {
  font-size: 13px;
  color: var(--muted);
}

.pricing-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pricing-option {
  border: 1px solid #d0d9ee;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  padding: 12px;
  display: grid;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pricing-option.selected {
  border-color: #2a3f93;
  box-shadow: 0 14px 30px rgba(20, 42, 120, 0.18);
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
  transform: translateY(-1px);
}

.pricing-option:focus-visible {
  outline: 2px solid #2a3f93;
  outline-offset: 2px;
}

.pricing-amount {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
  color: #112240;
}

.pricing-amount span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 4px;
}

.pricing-amount .pricing-discount {
  font-size: 16px;
  font-weight: 700;
  color: #1f8a4c;
  background: #e7f7ee;
  border-radius: 999px;
  padding: 2px 6px;
  margin-left: 6px;
}

.pricing-note {
  font-size: 12px;
  color: var(--muted);
}

.pricing-renewal {
  font-size: 12px;
  color: var(--muted);
}

.membership-list {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.footer {
  padding: 20px 6vw;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: #e7eefb;
  flex-wrap: nowrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: nowrap;
  font-size: 14px;
}

.footer-compact {
  align-items: center;
}

.footer-brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 45, 0.45);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 20px;
  z-index: 50;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--white);
  border-radius: 22px;
  max-width: 520px;
  width: 100%;
  max-height: calc(100vh - 40px);
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
}

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

.modal-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
}

.modal-sub {
  font-size: 13px;
  color: var(--muted);
}

.modal-tabs {
  display: flex;
  gap: 10px;
}

.tab-btn {
  border: 1px solid #d0d9ee;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--sage);
  color: var(--olive);
}

.modal-body {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  width: 100%;
}

.auth-form input,
.auth-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d0d9ee;
}

.payment-methods {
  display: grid;
  gap: 10px;
}

.membership-plans {
  display: grid;
  gap: 10px;
}

.membership-plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.membership-plan-btn {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #b9cbf0;
  background: linear-gradient(180deg, #eef4ff 0%, #e2ecff 100%);
  border-radius: 14px;
  padding: 12px 20px;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 140ms ease;
}

.membership-plan-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(44, 80, 160, 0.18);
}

.membership-plan-btn.selected {
  border-color: #325fb6;
  background: var(--copper);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(20, 42, 120, 0.35);
}

.membership-plan-name {
  font-size: 14px;
  font-weight: 700;
  color: #112240;
}

.membership-plan-meta {
  font-size: 12px;
  color: #3c517d;
}

.membership-total {
  border: none;
  border-radius: 0;
  padding: 2px 0 0;
  font-size: 13px;
  font-weight: 800;
  color: #112240;
  background: transparent;
}

.membership-plan-btn.selected .membership-plan-name,
.membership-plan-btn.selected .membership-plan-meta {
  color: var(--white);
}

.payment-methods-title {
  font-size: 13px;
  color: var(--muted);
}

.payment-method-grid {
  display: grid;
  gap: 10px;
}

.payment-method-btn {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #b9cbf0;
  background: linear-gradient(180deg, #eef4ff 0%, #e2ecff 100%);
  border-radius: 14px;
  padding: 12px 20px;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 140ms ease;
}

.payment-method-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(44, 80, 160, 0.18);
}

.payment-method-btn.selected {
  border-color: #325fb6;
  background: var(--copper);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(20, 42, 120, 0.35);
}

.payment-method-name {
  font-size: 14px;
  font-weight: 600;
  color: #112240;
}

.payment-method-meta {
  font-size: 12px;
  color: #3c517d;
}

.payment-method-btn.selected .payment-method-name,
.payment-method-btn.selected .payment-method-meta {
  color: var(--white);
}

.auth-form.hidden {
  display: none;
}

.auth-message {
  font-size: 13px;
  color: var(--olive);
  min-height: 18px;
}

.link-btn {
  border: none;
  background: transparent;
  color: var(--olive);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  padding: 0;
}

.pay-row {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.apple-pay-btn {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  background: #000;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.apple-logo {
  width: 14px;
  height: 16px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 814 1000'><path fill='white' d='M788 729c-23 51-34 74-64 118-41 60-98 135-168 136-62 1-78-41-155-41-78 0-95 40-156 42-70 2-124-69-165-129-90-130-160-366-67-526 33-56 95-116 162-117 62-1 120 44 155 44 34 0 98-54 166-46 29 1 111 12 164 91-4 3-98 57-97 169 1 134 117 179 118 180zm-258-538c32-39 57-96 51-153-47 2-103 31-136 70-30 35-57 92-52 147 51 4 103-27 137-64z'/></svg>");
}

.page-header {
  padding: 28px 6vw 40px;
  background: #e7eefb;
  text-align: center;
}

.page-header h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  text-align: center;
}

.page-header p {
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

.listings {
  padding: 40px 6vw 70px;
  display: grid;
  gap: 20px;
}

.listing-card {
  background: var(--white);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.listing-thumb {
  width: 140px;
  height: 120px;
  border-radius: 14px;
  object-fit: cover;
}

.listing-name {
  font-size: 20px;
  font-weight: 600;
}

.listing-meta {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.listing-actions {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.listing-actions .rating {
  font-size: 16px;
}

.redeem-btn {
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  background: var(--copper);
  color: var(--white);
}

.redeem-btn:disabled {
  background: #9aa6c7;
  cursor: default;
}

.redeem-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  gap: 6px;
  text-align: center;
  background: #f7f9ff;
  color: #0f1f4a;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  padding: 16px;
}

.redeem-overlay.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.redeem-overlay.locked {
  background: rgba(10, 15, 30, 0.72);
  place-items: center;
  padding: 6px;
}

.redeem-overlay.completed {
  background: linear-gradient(135deg, rgba(17, 69, 31, 0.95), rgba(25, 92, 42, 0.92));
}

.redeem-badge {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: #20326f;
  font-weight: 700;
}

.redeem-number {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0e1a3f;
}

.redeem-flight {
  width: min(320px, 90%);
  margin: 6px auto 4px;
}

.redeem-orbit-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}

.redeem-infinity-img {
  width: 64%;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(12, 26, 68, 0.18));
  z-index: 1;
}

.redeem-plane {
  position: absolute;
  width: 24px;
  height: 24px;
  left: 50%;
  top: 50%;
  transform-origin: center;
  animation: orbitSpin 7s linear infinite;
  filter: drop-shadow(0 4px 8px rgba(11, 13, 18, 0.25));
  z-index: 2;
}

@keyframes orbitSpin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) translateX(94px) rotate(90deg) scaleX(-1);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) translateX(94px) rotate(90deg) scaleX(-1);
  }
}


.complete-btn {
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  background: #1b2f6b;
  color: var(--white);
  margin-top: 6px;
}

.subscribe-lock {
  display: none;
  position: absolute;
  inset: 6px;
  box-sizing: border-box;
  text-align: center;
  gap: 7px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 24px rgba(10, 18, 36, 0.25);
  width: auto;
  height: auto;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.subscribe-title {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  text-shadow: none;
  line-height: 1.18;
  margin: 0;
}

.subscribe-sub {
  font-size: 12px;
  max-width: 260px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.subscribe-code {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.14em;
  filter: blur(8px);
  opacity: 0.7;
  line-height: 1;
  margin: 0;
  display: none;
}

.subscribe-btn {
  width: 100%;
  max-width: 190px;
  margin: 7px 0 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 12px;
  line-height: 1.1;
}

.redeem-overlay.locked .subscribe-lock {
  display: flex;
}

.redeem-overlay.locked .complete-btn {
  display: none;
}

.redeem-overlay.locked .redeem-number,
.redeem-overlay.locked .redeem-note {
  filter: blur(6px);
  opacity: 0.6;
}

.redeem-overlay.locked > :not(.subscribe-lock) {
  display: none;
}

.dashboard-topbar {
  padding: 18px 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e7eefb;
  border-bottom: 1px solid #d0d9ee;
}

.dashboard-menu-btn {
  padding: 10px 18px;
}

.dashboard-main {
  padding: 28px 6vw 70px;
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 100%;
}

.dash-view {
  display: none;
  gap: 18px;
}

.dash-view.active {
  display: grid;
}

.dashboard-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.dashboard-list {
  display: grid;
  gap: 10px;
}

.dashboard-search-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.dashboard-intro-grid {
  display: flex;
  justify-content: flex-start;
}

.dashboard-savings-card {
  width: min(460px, 100%);
  border: 1px solid #afc7f7;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(125deg, #f5f9ff 0%, #e5efff 55%, #d9e7ff 100%);
  box-shadow: 0 12px 24px rgba(24, 58, 132, 0.16);
  position: relative;
  overflow: hidden;
}

.dashboard-savings-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -74px;
  top: -78px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(217, 231, 255, 0) 72%);
  pointer-events: none;
}

.dashboard-savings-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #8caef0;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #1a3c82;
  background: rgba(255, 255, 255, 0.68);
}

.dashboard-welcome-name {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.15;
  color: #0f2e6d;
}

.dashboard-welcome-note {
  margin-top: 3px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #2e4f8c;
}

.dashboard-savings-strip {
  border: 1px solid #c5d7f6;
  border-radius: 12px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-savings-label {
  font-size: 12px;
  color: #36507e;
  font-weight: 600;
}

.dashboard-savings-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #123a87;
}

.dashboard-search-input {
  width: 100%;
  border: 1px solid #c8d7f4;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  background: #f8fbff;
}

.dashboard-search-btn {
  padding: 10px 18px;
  border-radius: 12px;
  white-space: nowrap;
}

.dashboard-biz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.popular-carousel-shell {
  position: relative;
  overflow: hidden;
}

.popular-carousel {
  display: flex;
  gap: 14px;
  overflow-x: hidden;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.popular-carousel::-webkit-scrollbar {
  display: none;
}

.popular-carousel .dashboard-biz-card {
  flex: 0 0 calc((100% - 28px) / 3);
  scroll-snap-align: start;
}

.popular-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #98b5ef;
  background: rgba(255, 255, 255, 0.94);
  color: #143a89;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(20, 58, 137, 0.18);
  z-index: 2;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.popular-carousel-nav:hover {
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 10px 20px rgba(20, 58, 137, 0.25);
}

.popular-carousel-nav.is-prev {
  left: 6px;
}

.popular-carousel-nav.is-next {
  right: 6px;
}

.dashboard-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.dashboard-categories-grid .category-card {
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 16px;
  align-content: space-between;
}

.dashboard-categories-grid .category-icon {
  font-size: 48px;
}

.dashboard-categories-grid .category-card h3 {
  font-size: 18px;
}

.dashboard-categories-grid .category-card p {
  font-size: 12px;
  line-height: 1.25;
}

.dashboard-see-more-btn {
  justify-self: start;
  align-self: end;
  margin-top: 2px;
  padding: 8px 14px;
  background: var(--copper);
  color: var(--white);
  border: 1px solid var(--copper);
  box-shadow: 0 8px 18px rgba(20, 42, 120, 0.28);
}

.dashboard-see-more-btn:hover {
  background: var(--olive);
  border-color: var(--olive);
}

.dashboard-biz-card {
  border: 1px solid #d0d9ee;
  border-radius: 14px;
  padding: 10px;
  background: #f9fbff;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.dashboard-biz-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
}

.dashboard-biz-title {
  font-weight: 700;
  font-size: 16px;
}

.dashboard-biz-meta {
  font-size: 12px;
  color: var(--muted);
}

.dashboard-biz-note {
  font-size: 13px;
  color: #283b63;
  margin-top: 4px;
}

.dashboard-biz-badge {
  border: 1px solid #b8cdf3;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #1b3e8a;
  background: #eaf1ff;
  white-space: nowrap;
  justify-self: start;
}

.dashboard-item {
  border: 1px solid #d0d9ee;
  border-radius: 12px;
  padding: 12px 14px;
  background: #f9fbff;
}

.dashboard-item-title {
  font-weight: 700;
}

.dashboard-item-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.dashboard-empty {
  font-size: 13px;
  color: var(--muted);
}

.dashboard-sidebar {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #fff;
  border-left: 1px solid #d0d9ee;
  box-shadow: -8px 0 28px rgba(12, 30, 66, 0.15);
  z-index: 60;
  padding: 20px 16px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  transition: right 0.2s ease;
}

.dashboard-sidebar.show {
  right: 0;
}

.dashboard-sidebar-head {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.dashboard-nav {
  display: grid;
  gap: 8px;
  align-content: start;
}

.dashboard-nav-btn {
  border: 1px solid #d0d9ee;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
}

.dashboard-nav-btn.active {
  background: var(--copper);
  color: #fff;
  border-color: var(--copper);
}

.dashboard-logout-btn {
  width: 100%;
}

.dashboard-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 45, 0.36);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.dashboard-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.dashboard-form {
  display: grid;
  gap: 10px;
}

.dashboard-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.dashboard-form input,
.dashboard-form select {
  border: 1px solid #d0d9ee;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
}

.dashboard-inline-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.dashboard-inline-row input {
  width: 100%;
  border: 1px solid #c8d7f4;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f2f7ff 100%);
  color: #1e2e57;
  box-shadow: inset 0 1px 2px rgba(12, 36, 84, 0.06);
}

.dashboard-inline-row input:focus {
  outline: none;
  border-color: #85a8eb;
  box-shadow: 0 0 0 3px rgba(80, 126, 221, 0.18);
}

.dashboard-billing-card {
  display: grid;
  gap: 10px;
}

.dashboard-status {
  font-size: 14px;
  font-weight: 700;
}

@keyframes redeemPulse {
  0%,
  100% {
    transform: scale(1);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.45),
      0 0 24px rgba(120, 170, 255, 0.6),
      0 0 36px rgba(70, 120, 255, 0.7);
  }
  50% {
    transform: scale(1.05);
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.6),
      0 0 30px rgba(120, 170, 255, 0.75),
      0 0 46px rgba(70, 120, 255, 0.85);
  }
}

.back-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .membership {
    grid-template-columns: 1fr;
  }

  .listing-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .listing-actions {
    text-align: left;
  }

  .hero-subscribe {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .hero-subscribe .hero-promo {
    width: 100%;
  }

  .dashboard-biz-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .popular-carousel .dashboard-biz-card {
    flex-basis: calc((100% - 14px) / 2);
  }

  .popular-carousel-nav {
    width: 34px;
    height: 34px;
  }

  .popular-carousel-nav.is-prev {
    left: -10px;
  }

  .popular-carousel-nav.is-next {
    right: -10px;
  }

  .pricing-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dashboard-sidebar {
    width: 92vw;
    right: -92vw;
  }

  .dashboard-topbar {
    padding: 12px 4vw;
    gap: 8px;
  }

  .dashboard-topbar .back-link {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .dashboard-topbar .brand-logo.sm {
    width: 24px;
    height: 24px;
  }

  .dashboard-menu-btn {
    padding: 8px 12px;
    font-size: 12px;
    flex: 0 0 auto;
  }

  .dashboard-main {
    padding: 14px 4vw 60px;
    gap: 12px;
  }

  .dash-view.active {
    gap: 12px;
  }

  .dashboard-section {
    padding: 14px;
    gap: 10px;
  }

  .dashboard-page .section-head h2 {
    font-size: 22px;
    line-height: 1.15;
  }

  .dashboard-page .section-head p {
    font-size: 13px;
    line-height: 1.3;
  }

  .dashboard-savings-card {
    width: 100%;
  }

  .dashboard-welcome-name {
    font-size: 20px;
  }

  .dashboard-page .dashboard-welcome-note {
    font-size: 12px;
  }

  .dashboard-page .dashboard-savings-value {
    font-size: 21px;
  }

  .dashboard-biz-grid {
    grid-template-columns: 1fr;
  }

  .popular-carousel .dashboard-biz-card {
    flex-basis: 100%;
  }

  .popular-carousel-nav {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .popular-carousel-nav.is-prev {
    left: 6px;
  }

  .popular-carousel-nav.is-next {
    right: 6px;
  }

  .search {
    min-width: 0;
    width: 100%;
  }

  .nav-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .back-link {
    min-width: 0;
    font-size: 14px;
  }

  .dashboard-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-biz-thumb {
    width: 100%;
    height: 138px;
  }

  .dashboard-search-wrap {
    grid-template-columns: 1fr;
  }

  .dashboard-search-btn {
    width: 100%;
  }

  .dashboard-page .dashboard-biz-card {
    padding: 9px;
    gap: 8px;
  }

  .dashboard-page .dashboard-biz-title {
    font-size: 15px;
  }

  .dashboard-page .dashboard-biz-meta {
    font-size: 11px;
  }

  .dashboard-page .dashboard-biz-note {
    font-size: 12px;
  }

  .dashboard-page .dashboard-see-more-btn {
    padding: 7px 12px;
    font-size: 13px;
  }

  .dashboard-page .dashboard-search-input,
  .dashboard-page .dashboard-form input,
  .dashboard-page .dashboard-form select {
    font-size: 16px;
  }

  .dashboard-inline-row {
    grid-template-columns: 1fr;
  }

  .subscribe-btn {
    margin-top: 5px;
  }

  .modal {
    padding: 10px;
    align-items: stretch;
  }

  .modal-card {
    max-width: none;
    width: 100%;
    max-height: calc(100dvh - 20px);
    border-radius: 16px;
    padding: 14px;
    gap: 12px;
  }

  .modal-title {
    font-size: 20px;
  }

  .modal-sub {
    font-size: 11px;
  }

  .modal-tabs {
    gap: 8px;
  }

  .tab-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .modal-body {
    gap: 10px;
    padding-right: 0;
  }

  .auth-form {
    gap: 10px;
  }

  .auth-form label {
    font-size: 12px;
  }

  .auth-form input,
  .auth-form select {
    font-size: 14px;
    padding: 8px 10px;
  }

  .auth-form .primary-btn {
    font-size: 13px;
    padding: 10px 14px;
  }

  #loginForm label {
    font-size: 13px;
  }

  #loginForm input,
  #loginForm select {
    font-size: 15px;
    padding: 7px 10px;
  }

  #loginForm .primary-btn {
    font-size: 14px;
    padding: 8px 14px;
  }

  .modal-head .ghost-btn {
    font-size: 12px;
    padding: 6px 10px;
  }

  .membership-plan-btn,
  .payment-method-btn {
    padding: 10px 14px;
  }

  .nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-actions {
    gap: 8px;
  }

  .hero-subscribe {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .hero-subscribe .hero-promo {
    width: 100%;
    max-width: none;
  }

  #loginBtn,
  #signupBtn {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .category-card {
    min-height: 260px;
    padding: 22px;
  }

  .category-icon {
    font-size: 66px;
  }

  .category-card h3 {
    font-size: 24px;
  }

  .category-card p {
    font-size: 15px;
  }

  .category-card .category-footer {
    font-size: 13px;
  }

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

  .popular-card {
    padding: 0;
  }

  .popular-thumb {
    height: 180px;
    margin: 0;
  }

  .popular-body {
    padding: 12px 14px 16px;
  }

  .footer {
    flex-wrap: wrap;
    gap: 8px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
  }
}
