.language-switcher {
  position: fixed;
  top: clamp(1rem, 5vw, 2.6rem);
  right: clamp(0.75rem, 4vw, 1.9rem);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  z-index: 900;
  pointer-events: none;
}

.language-switcher-toggle {
  pointer-events: auto;
  width: 3.1rem;
  height: 3.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.82);
  color: rgba(226, 232, 240, 0.94);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(18px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.2s ease;
}

.language-switcher-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.38);
  border-color: rgba(148, 163, 184, 0.55);
}

.language-switcher-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35), 0 18px 44px rgba(15, 23, 42, 0.38);
  border-color: rgba(59, 130, 246, 0.45);
}

.language-switcher-toggle-flag {
  font-size: 1.4rem;
  line-height: 1;
}

.language-switcher-toggle-text {
  font-size: 0.62rem;
  color: rgba(226, 232, 240, 0.78);
}

.language-switcher-menu {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  margin: 0;
  padding: 0.6rem;
  list-style: none;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.38);
  min-width: 11rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.4rem) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.language-switcher.is-open .language-switcher-menu {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.language-switcher-menu-item {
  list-style: none;
}

.language-switcher-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(226, 232, 240, 0.94);
  font-weight: 600;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.language-switcher-option:hover,
.language-switcher-option:focus-visible {
  outline: none;
  background: rgba(59, 130, 246, 0.18);
  color: #fff;
}

.language-switcher-option.is-active {
  background: rgba(59, 130, 246, 0.22);
  color: #fff;
}

.language-switcher-option.is-active::after {
  content: '✓';
  margin-left: auto;
  font-size: 0.85rem;
  color: #bfdbfe;
  font-weight: 700;
}

.language-switcher-option-flag {
  font-size: 1.25rem;
  line-height: 1;
}

.language-switcher-option-label {
  flex: 1 1 auto;
}

.language-switcher.is-open .language-switcher-toggle {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.28), 0 20px 48px rgba(15, 23, 42, 0.4);
}

@media (max-width: 720px) {
  .language-switcher {
    top: clamp(0.75rem, 5vw, 1.6rem);
    right: clamp(0.6rem, 5vw, 1.25rem);
    gap: 0.45rem;
  }

  .language-switcher-toggle {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 0.64rem;
  }

  .language-switcher-toggle-text {
    font-size: 0.56rem;
  }

  .language-switcher-menu {
    min-width: 10.2rem;
  }
}

.is-width-zero {
  width: 0%;
}

.standalone-body {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.standalone-page {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.coupon-body {
  min-height: 100vh;
  justify-content: center;
}

.coupon-main {
  width: min(100%, 720px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3vw, 1.6rem);
}

.coupon-card {
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.6rem, 3vw, 2.2rem);
}

.coupon-hero-panel {
  position: relative;
  display: grid;
  gap: clamp(1.2rem, 3vw, 1.8rem);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border-radius: 1.6rem;
  background: linear-gradient(135deg, #0f3d72, #2563eb 55%, #60a5fa);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.coupon-hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.45;
  pointer-events: none;
}

.coupon-hero-panel * {
  position: relative;
}

.coupon-hero-panel {
  align-items: center;
  justify-items: start;
}

.coupon-hero-copy {
  max-width: 36rem;
  display: grid;
  gap: 0.8rem;
}

.coupon-hero-kicker {
  margin: 0;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  opacity: 0.82;
}

.coupon-hero-title {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 700;
}

.coupon-hero-text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  opacity: 0.92;
}

.coupon-hero-cta {
  display: grid;
  gap: 0.95rem;
  padding: clamp(1.2rem, 2.5vw, 1.6rem);
  border-radius: 1.2rem;
  background: rgba(11, 52, 117, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  justify-items: start;
}

.coupon-hero-price {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.coupon-hero-price-current {
  font-size: clamp(2.6rem, 6vw, 3.2rem);
  font-weight: 700;
}

.coupon-hero-price-original {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  text-decoration: line-through;
  opacity: 0.75;
}

.coupon-hero-note {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.coupon-hero-button {
  padding-inline: clamp(2.1rem, 5vw, 2.8rem);
  font-size: 1.05rem;
  box-shadow: 0 20px 40px rgba(7, 40, 94, 0.45);
  width: min(100%, 320px);
}


.coupon-card-grid {
  display: grid;
  gap: clamp(1.8rem, 3vw, 2.4rem);
  place-items: center;
}


.coupon-info {
  padding: clamp(1.5rem, 4vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 2.8vw, 1.6rem);
}

.coupon-info-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.coupon-info h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 1.8rem);
}

.coupon-info-lede {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  color: var(--muted);
}

.coupon-conditions h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.05rem, 2.3vw, 1.25rem);
  color: var(--muted-strong);
}

.coupon-conditions-list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--muted);
}

.coupon-conditions-list ul {
  margin-top: 0.6rem;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.coupon-conditions-list strong {
  color: var(--muted-strong);
}

.coupon-card-media {
  margin: 0;
}

.coupon-card-media img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.coupon-card-media--hero {
  width: min(720px, 100%);
  border-radius: 1.6rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.65), rgba(219, 234, 254, 0.9));
  box-shadow: 0 32px 60px rgba(15, 61, 114, 0.18);
  padding: clamp(0.9rem, 2.4vw, 1.4rem);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
}

.coupon-card-media--hero img {
  border-radius: 1.2rem;
  box-shadow: 0 15px 30px rgba(15, 61, 114, 0.18);
}

.coupon-cta {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow var(--transition), background-color var(--transition);
}

.coupon-cta:hover,
.coupon-cta:focus-visible {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong);
  border-radius: 999px;
}

.coupon-badge {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.coupon-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--muted);
  margin: 0;
}

.coupon-points {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--muted-strong);
}

.coupon-points li {
  line-height: 1.5;
}

.coupon-smallprint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.coupon-header {
  width: min(100%, 960px);
  margin: 0 auto clamp(0rem, 3vw, 1rem);
}

.coupon-nav {
  gap: clamp(0.5rem, 2vw, 0.9rem);
  flex-wrap: wrap;
}

.coupon-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--transition), transform 0.18s ease;
}

.coupon-nav-link:hover,
.coupon-nav-link:focus-visible {
  background: rgba(37, 99, 235, 0.18);
  transform: translateY(-1px);
}

.coupon-offers,
.coupon-how {
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 3vw, 1.8rem);
}

.coupon-section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.coupon-section-heading h2 {
  margin: 0;
}

.coupon-section-heading p {
  margin: 0;
  color: var(--muted-strong);
}

.coupon-search-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.2rem;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.24);
}

.coupon-search-summary {
  margin: 0;
  color: var(--muted-strong);
  font-weight: 600;
}

.coupon-search-reset {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
}

.coupon-search-reset:hover,
.coupon-search-reset:focus-visible {
  text-decoration: underline;
}

.coupon-offers-empty {
  margin: 0;
  padding: 0.9rem 1.2rem;
  border-radius: 18px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--muted-strong);
  font-weight: 500;
}

.coupon-offers-grid {
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.4rem);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.coupon-offer {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: clamp(0.95rem, 2vw, 1.25rem);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.coupon-offer-category {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.coupon-offer--highlight {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.22);
  transform: translateY(-2px);
}

.coupon-offer h3 {
  margin: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.25rem);
}

.coupon-offer-benefit {
  margin: 0;
  font-weight: 600;
  color: var(--primary-dark);
}

.coupon-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3vw, 1.5rem);
}

.coupon-steps li {
  display: flex;
  gap: clamp(0.8rem, 2vw, 1.2rem);
  align-items: flex-start;
}

.coupon-step-number {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-soft);
}

.coupon-step-content h3 {
  margin: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
}

.coupon-step-content p {
  margin: 0.4rem 0 0;
  color: var(--muted-strong);
  line-height: 1.6;
}

.coupon-step-notes {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--muted-strong);
}

.coupon-step-notes li {
  margin: 0;
}

.coupon-step-notes strong {
  color: var(--primary-dark);
}

@media (min-width: 768px) {
  .coupon-main {
    gap: 1.8rem;
  }

  .coupon-card {
    padding: clamp(1.8rem, 3vw, 2.6rem);
  }

  .coupon-hero-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    align-items: center;
  }

  .coupon-card-grid {
    grid-template-columns: minmax(0, 0.66fr) minmax(0, 0.34fr);
    align-items: stretch;
  }

  .coupon-card-media img {
    width: min(240px, 45%);
  }

  .coupon-card-media {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .coupon-header {
    align-items: flex-start;
  }

  .coupon-nav {
    justify-content: flex-start;
  }

  .coupon-steps li {
    flex-direction: column;
  }

  .coupon-step-number {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1rem;
  }
}

.standalone-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.8rem);
}

.standalone-header .header-search {
  flex: 1 1 280px;
  max-width: 420px;
}

.standalone-header .header-search--light {
  margin-left: auto;
}

.standalone-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.standalone-brand img {
  width: clamp(56px, 8vw, 72px);
  height: auto;
}

.standalone-brand-overline {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.standalone-brand-title {
  margin: 0.25rem 0 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.standalone-nav {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
}

.standalone-main {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.8rem);
}

.standalone-hero {
  display: grid;
  gap: clamp(1.6rem, 3vw, 2.5rem);
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
}

.standalone-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.standalone-hero-badge {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.standalone-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.standalone-hero-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.standalone-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.standalone-hero-note {
  margin: 0;
  color: var(--muted-strong);
  font-weight: 600;
}

.standalone-hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.standalone-hero-stats li {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: clamp(1rem, 2vw, 1.4rem);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.standalone-hero-stats strong {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary-dark);
}

.standalone-hero-stats span {
  color: var(--muted);
  font-size: 0.95rem;
}

.standalone-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

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

  .standalone-hero-stats {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 640px) {
  .standalone-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .standalone-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background: radial-gradient(circle at 18% 82%, rgba(37, 99, 235, 0.14), transparent 55%),
    radial-gradient(circle at 82% 70%, rgba(14, 165, 233, 0.16), transparent 52%);
  animation: backgroundDrift 24s ease-in-out infinite alternate;
}

body::after {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.08), transparent 60%),
    radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.12), transparent 55%);
  z-index: -3;
}

.grid {
  display: grid;
  gap: var(--space-4);
  align-content: start;
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(26, 26, 26, 0.08);
  background: var(--color-white);
  box-shadow: var(--elev-2);
  padding: clamp(1.2rem, 2vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.5vw, 1.2rem);
  min-height: 48px;
  position: relative;
  isolation: isolate;
  animation: cardFade 0.6s ease-out both;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.surface-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px);
}

.surface-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 65%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  z-index: -1;
}

.surface-card:hover::after,
.surface-card:focus-within::after {
  opacity: 1;
}

@keyframes backgroundDrift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.05) translate3d(-1.5%, -1.5%, 0);
  }
}

@keyframes headerPulse {
  0% {
    opacity: 0.4;
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    opacity: 0.75;
    transform: translate3d(-1%, 1%, 0) scale(1.05);
  }
  100% {
    opacity: 0.5;
    transform: translate3d(1%, -1%, 0) scale(1.08);
  }
}

@keyframes cardFade {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

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

button,
select,
input,
textarea {
  font: inherit;
  min-height: 44px;
}

button:focus-visible,
[role='button']:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus-ring-color);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
  border-radius: 18px;
}

input[type='text'],
input[type='email'],
input[type='password'],
select,
textarea {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.7rem 0.85rem;
  transition: border var(--transition), box-shadow var(--transition), background var(--transition);
}

input[type='text']:focus-visible,
input[type='email']:focus-visible,
input[type='password']:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
  background: #fff;
  outline: 3px solid var(--focus-ring-color);
  outline-offset: 2px;
}

.app-header {
  padding: clamp(1.65rem, 4vw, 3.75rem) clamp(1.25rem, 5vw, 4rem);
  color: #fff;
  position: relative;
  overflow: hidden;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.6rem);
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.95), rgba(124, 58, 237, 0.88));
  border-radius: 36px;
  box-shadow: var(--shadow-strong);
  width: 100%;
  max-width: none;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.header-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 960px) {
  .header-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    align-items: start;
  }

  .header-top-actions {
    grid-column: 1 / -1;
  }

  .auth-bar {
    justify-content: flex-end;
  }

  .auth-controls {
    width: auto;
    align-items: flex-end;
  }

  .auth-controls > button {
    width: max-content;
  }

  .auth-status-badge {
    align-self: flex-end;
  }

  .user-menu {
    align-items: flex-end;
    text-align: right;
    width: auto;
  }

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

.app-header::before,
.app-header::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.app-header::before {
  background: radial-gradient(circle at 18% -10%, rgba(255, 255, 255, 0.32), transparent 58%),
    radial-gradient(circle at 88% 18%, rgba(14, 165, 233, 0.35), transparent 60%);
  opacity: 0.9;
  z-index: 0;
}

.app-header::after {
  background: radial-gradient(circle at 50% 120%, rgba(14, 165, 233, 0.28), transparent 65%);
  animation: headerPulse 18s ease-in-out infinite alternate;
  z-index: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 959px) {
  .brand {
    flex-direction: row;
    align-items: flex-start;
  }
}

.brand img {
  width: clamp(64px, 10vw, 86px);
  height: clamp(64px, 10vw, 86px);
  object-fit: contain;
  border-radius: 50%;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
  flex-shrink: 0;
}

.brand-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.header-top-actions {
  display: flex;
  flex-direction: column;
  gap: clamp(1.15rem, 2vw, 1.85rem);
  width: 100%;
}

.header-coupon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(124, 58, 237, 0.9));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.25);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition),
    color var(--transition);
  white-space: nowrap;
  border: none;
  align-self: flex-start;
}

.header-coupon-button:hover,
.header-coupon-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 28px 50px rgba(15, 23, 42, 0.32);
  background: linear-gradient(135deg, rgba(37, 99, 235, 1), rgba(59, 130, 246, 0.95));
  color: #fff;
}

.header-coupon-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.65);
  outline-offset: 2px;
}

.header-coupon-button--light {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.header-coupon-button--light:hover,
.header-coupon-button--light:focus-visible {
  box-shadow: 0 22px 44px rgba(37, 99, 235, 0.3);
}

.header-coupon-button--light:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
}

.header-search {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: min(100%, 420px);
  flex: 1 1 320px;
  align-self: flex-start;
  padding: 0.4rem 0.5rem 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(12px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.header-search:hover,
.header-search:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.26);
  border-color: rgba(255, 255, 255, 0.6);
}

.header-search input[type='search'] {
  border: none;
  background: transparent;
  color: #fff;
  width: 100%;
  padding: 0.25rem 0;
  font-size: 0.95rem;
}

.header-search input[type='search']::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

/* FIX: a11y – focus ring dla search */
.header-search input[type='search']:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--focus-ring);
}

.header-search-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(124, 58, 237, 0.85));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.22);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.header-search-button:hover,
.header-search-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.28);
  background: linear-gradient(135deg, rgba(37, 99, 235, 1), rgba(59, 130, 246, 0.95));
}

.header-search--light {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.15);
  backdrop-filter: none;
}

.header-search--light input[type='search'] {
  color: var(--text);
}

.header-search--light input[type='search']::placeholder {
  color: rgba(15, 23, 42, 0.55);
}

.header-search--light .header-search-button {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.header-search--light .header-search-button:hover,
.header-search--light .header-search-button:focus-visible {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
}

@media (max-width: 720px) {
  .header-search {
    width: 100%;
  }

  .header-search-button {
    padding-inline: 0.85rem;
  }

  .standalone-header .header-search--light {
    margin-left: 0;
  }
}

.brand-title .brand-name {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 3.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-title .brand-name span {
  color: #fef3c7;
}

.tagline {
  margin: 0.65rem 0 0;
  font-size: clamp(1rem, 2.3vw, 1.25rem);
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.85);
}

.header-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 0.5rem;
  column-gap: 0.65rem;
  background: rgba(255, 255, 255, 0.5);
  padding: 0.5rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 22px 44px rgba(14, 116, 144, 0.24);
  position: relative;
  z-index: 1;
  justify-self: center;
}

.header-tab {
  border: none;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(15, 23, 42, 0.88);
  font-weight: 600;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

.header-tab:hover,
.header-tab:focus-visible {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(14, 116, 144, 0.22);
}

.header-tab.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 20px 44px rgba(14, 116, 144, 0.26);
  transform: translateY(-1px);
}


.header-actions {
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 1.5vw, 1.35rem);
  position: relative;
  z-index: 1;
  align-items: stretch;
  width: 100%;
}

.header-actions-primary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: clamp(0.6rem, 1vw, 1rem);
}

.header-actions-primary button {
  width: 100%;
  justify-content: center;
}

.auth-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
}

.auth-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
  width: 100%;
}

.auth-controls > button {
  width: 100%;
}

.auth-guest-note {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted, #334155);
}

.auth-controls .auth-guest-note {
  align-self: flex-start;
  max-width: 26ch;
}

.auth-spinner {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted, #334155);
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.auth-spinner.is-visible {
  opacity: 1;
  height: auto;
}

.auth-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  align-self: flex-start;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.15);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), box-shadow var(--transition);
}

.auth-status-badge::before {
  content: '';
  display: inline-flex;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
}

.auth-status-badge[data-state='guest'] {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
  color: #1d4ed8;
}

.auth-status-badge[data-state='authenticated'] {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.32);
  color: #166534;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.16);
}

.auth-status-badge[data-state='loading'] {
  background: rgba(148, 163, 184, 0.22);
  border-color: rgba(148, 163, 184, 0.32);
  color: #475569;
}

.auth-status-badge[data-state='loading']::before {
  background: transparent;
  border: 2px solid currentColor;
  border-top-color: transparent;
  box-shadow: none;
  animation: authSpinner 0.8s linear infinite;
}

.auth-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 1rem);
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.92);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.auth-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.auth-toast.is-error {
  background: rgba(220, 38, 38, 0.92);
  box-shadow: 0 14px 36px rgba(220, 38, 38, 0.28);
}

.notifications-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
}

.notifications-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.user-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  padding: 0.6rem 0.9rem;
  color: #fff;
  backdrop-filter: blur(14px);
  text-align: left;
  width: 100%;
}

.user-menu span {
  font-weight: 600;
}

.user-menu-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
  justify-content: flex-start;
}

.user-menu-actions .ghost {
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
}

.notifications-panel {
  position: fixed;
  top: 5.5rem;
  right: 1.5rem;
  width: min(360px, calc(100% - 2rem));
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  padding: 1.25rem 1.1rem;
  z-index: 1100;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.notifications-panel[hidden] {
  display: none;
}

.notifications-panel:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.notifications-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.notifications-panel-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: rgba(15, 23, 42, 0.95);
}

.notifications-panel-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.notifications-close {
  font-size: 1.05rem;
  line-height: 1;
  padding: 0.3rem 0.45rem;
}

.notifications-empty {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.notifications-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notification-item {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(248, 250, 252, 0.92);
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.notification-item.is-unread {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(219, 234, 254, 0.78);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.notification-message {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.94);
}

.notification-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.notification-meta time {
  font-variant-numeric: tabular-nums;
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-left: auto;
}

.link-button {
  border: none;
  background: none;
  color: rgba(37, 99, 235, 0.92);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
}

.link-button:hover,
.link-button:focus-visible {
  color: rgba(37, 99, 235, 1);
  text-decoration: underline;
}

.header-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(0.85rem, 1.5vw, 1.4rem);
  position: relative;
  z-index: 1;
  width: 100%;
  margin-inline: auto;
}

@media (min-width: 960px) {
  .header-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }
}

.metric-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 26px;
  padding: clamp(0.95rem, 1.8vw, 1.45rem);
  box-shadow: 0 22px 44px rgba(14, 116, 144, 0.24);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: transform var(--transition), box-shadow var(--transition);
  scroll-snap-align: start;
}

.metric-card-link {
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}

.metric-card-link:hover,
.metric-card-link:focus-visible {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 28px 52px rgba(14, 116, 144, 0.3);
}

.metric-card-link.is-current {
  pointer-events: none;
  box-shadow: 0 18px 36px rgba(14, 116, 144, 0.25);
}

.metric-label {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(15, 23, 42, 0.6);
}

.metric-value {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
}

.metric-subtext {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.95rem;
  line-height: 1.45;
}

.metric-progress {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.metric-progress-track {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.14);
  overflow: hidden;
}

.metric-progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: inherit;
  transition: width var(--transition);
}

.metric-progress-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted-strong);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  width: 100%;
  max-width: none;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px);
  position: relative;
  isolation: isolate;
}

main::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.08), transparent 55%);
  z-index: -1;
}

.app-view {
  width: 100%;
}

.layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  padding: 0;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(1.35rem, 2.2vw, 2.5rem);
    align-items: start;
  }

  .primary-column {
    grid-column: 1;
    gap: clamp(1.2rem, 1.9vw, 2rem);
  }

  .sidebar-column {
    grid-column: 2;
  }

  .discovery-grid {
    grid-column: 1 / -1;
  }
}

.primary-column {
  display: flex;
  flex-direction: column;
  gap: clamp(1.15rem, 2vw, 1.85rem);
}

.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 2vw, 1.85rem);
}

.map-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1rem, 2vw, 1.75rem);
}

.map-accessibility-actions {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.map-accessibility-actions a {
  color: var(--primary);
  font-weight: 600;
}

.map-google-link {
  text-decoration: underline;
}

.map-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* FIX: a11y – skip link focus */
.map-skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem 0.85rem;
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 999px;
  box-shadow: var(--focus-ring);
  outline: 2px solid transparent;
  z-index: 2;
}

.map-skip-target {
  margin: 0;
}

#map {
  width: 100%;
  height: clamp(320px, 52vh, 480px);
  border-radius: 22px;
  overflow: hidden;
  border: 1.5px solid rgba(14, 165, 233, 0.35);
}

.current-objective {
  background: var(--surface-strong);
  border-radius: 22px;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(14, 165, 233, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 14px 35px rgba(14, 165, 233, 0.15);
}

.current-objective h2 {
  margin-top: 0;
}

.current-objective p {
  margin-bottom: 0.65rem;
}

.objective-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

.objective-navigation button {
  flex: 1 1 160px;
  min-width: 0;
}

.reviews-panel {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(14, 165, 233, 0.18);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reviews-panel h3 {
  margin: 0;
  font-size: 1.2rem;
  color: rgba(15, 23, 42, 0.95);
}

.trip-planner {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  border-radius: 20px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: linear-gradient(145deg, rgba(191, 219, 254, 0.35), rgba(219, 234, 254, 0.65));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 12px 26px rgba(37, 99, 235, 0.18);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.trip-planner-header h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  color: rgba(30, 64, 175, 0.95);
}

.trip-planner-header p {
  margin: 0;
  color: rgba(30, 41, 59, 0.85);
  line-height: 1.55;
}

.trip-planner-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.trip-planner-start label {
  font-weight: 600;
  color: rgba(30, 41, 59, 0.92);
  display: block;
  margin-bottom: 0.4rem;
}

.trip-planner-start select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  background: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  color: rgba(15, 23, 42, 0.92);
  box-shadow: inset 0 1px 2px rgba(37, 99, 235, 0.18);
}

.trip-planner-hint {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: rgba(30, 64, 175, 0.85);
}

.trip-planner-fieldset {
  border: 1px dashed rgba(37, 99, 235, 0.4);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.6);
}

.trip-planner-fieldset legend {
  padding: 0 0.4rem;
  font-weight: 600;
  color: rgba(30, 41, 59, 0.88);
}

.trip-planner-options {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.trip-planner-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.trip-planner-option:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 14px 30px rgba(30, 64, 175, 0.2);
  background: rgba(255, 255, 255, 0.9);
}

.trip-planner-option input {
  margin-top: 0.35rem;
  width: 1.1rem;
  height: 1.1rem;
}

.trip-planner-option input:disabled {
  cursor: not-allowed;
  accent-color: rgba(96, 165, 250, 0.8);
}

.trip-planner-option.is-start {
  cursor: default;
  border-style: solid;
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(219, 234, 254, 0.9);
}

.trip-planner-option.is-start:hover {
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.trip-planner-option-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: rgba(15, 23, 42, 0.9);
}

.trip-planner-option-title {
  font-weight: 600;
  line-height: 1.35;
}

.trip-planner-option-meta {
  font-size: 0.9rem;
  color: rgba(37, 99, 235, 0.9);
}

.trip-planner-start-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1d4ed8;
  background: rgba(191, 219, 254, 0.9);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  margin-top: 0.3rem;
  width: fit-content;
}

.trip-planner-summary {
  border-radius: 16px;
  padding: 1rem 1.1rem;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: rgba(30, 41, 59, 0.92);
  line-height: 1.55;
}

.trip-planner-summary.has-results {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.trip-planner-highlight {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.trip-planner-route {
  margin: 0.35rem 0;
  font-size: 0.95rem;
}

.trip-planner-tip {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(30, 64, 175, 0.85);
}

@media (min-width: 680px) {
  .trip-planner-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .trip-planner-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.reviews-summary {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--muted);
}

.review-reward-info,
.review-reward-copy {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1f2937;
}

.review-reward-info {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  color: #92400e;
}

.review-reward-copy {
  font-size: 0.9rem;
  color: #374151;
}

.reviews-average {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.95);
}

.reviews-average strong {
  font-size: 1.05rem;
}

.star-visual {
  font-size: 1.35rem;
  letter-spacing: 0.1rem;
  color: #f59e0b;
}

.reviews-empty {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

.reviews-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.review-item {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.review-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.review-author {
  font-weight: 600;
  color: rgba(15, 23, 42, 0.92);
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #f59e0b;
  font-size: 1.05rem;
}

.review-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.review-comment {
  margin: 0;
  color: rgba(30, 41, 59, 0.92);
  line-height: 1.5;
}

.review-photo {
  margin: 0.65rem 0 0;
}

.review-photo img {
  max-width: 100%;
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.review-login {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px dashed rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.08);
}

.review-login p {
  margin: 0;
  color: rgba(30, 64, 175, 0.95);
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(248, 250, 252, 0.75);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.review-fieldset {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.review-fieldset legend {
  font-weight: 600;
  color: rgba(15, 23, 42, 0.95);
}

.rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.25rem;
}

.rating-input input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-input label {
  font-size: 1.75rem;
  color: rgba(148, 163, 184, 0.8);
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
}

.rating-input label:hover,
.rating-input label:focus-visible {
  color: #f59e0b;
  transform: scale(1.05);
}

.rating-input label:hover ~ label,
.rating-input label:focus-visible ~ label {
  color: #f59e0b;
}

.rating-input input:checked ~ label {
  color: #f59e0b;
}

.rating-input input:focus-visible + label {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  border-radius: 6px;
  outline-offset: 2px;
}

.review-form textarea {
  width: 100%;
  min-height: 100px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  padding: 0.75rem;
  font-family: inherit;
  resize: vertical;
}

.review-form input[type='file'] {
  border: 1px dashed rgba(59, 130, 246, 0.45);
  border-radius: 14px;
  padding: 0.75rem;
  background: rgba(191, 219, 254, 0.25);
  color: rgba(30, 64, 175, 0.95);
  cursor: pointer;
}

.review-photo-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-photo-preview img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.review-form-message {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.review-form-message[data-tone='error'] {
  color: #dc2626;
}

.review-form-message[data-tone='success'] {
  color: #047857;
}

.review-form-message[data-tone='info'] {
  color: rgba(37, 99, 235, 0.95);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2vw, 2rem);
}

.packing-panel {
  background: var(--surface);
  border-radius: 28px;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tasks-panel {
  background: var(--surface);
  border-radius: 28px;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vip-panel {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.85), rgba(255, 255, 255, 0.95));
  border-radius: 28px;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vip-intro {
  margin: 0;
  color: rgba(15, 23, 42, 0.75);
  line-height: 1.6;
  font-size: 1.05rem;
  max-width: 65ch;
}

.vip-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.vip-content {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.8rem);
}

.vip-hero-card {
  position: relative;
  overflow: hidden;
  color: rgba(15, 23, 42, 0.95);
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  display: grid;
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  padding: clamp(2rem, 3vw, 3rem);
  min-height: 280px;
}

.vip-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.15), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.15), transparent 50%);
  opacity: 1;
  pointer-events: none;
}

.vip-hero-card > * {
  position: relative;
  z-index: 1;
}

.vip-hero-card h3 {
  color: rgba(15, 23, 42, 0.95);
  font-weight: 700;
}

.vip-hero-card p {
  color: rgba(51, 65, 85, 0.9);
}

.vip-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(37, 99, 235, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  color: rgba(30, 64, 175, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.vip-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.vip-hero-actions .ghost {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(30, 64, 175, 0.3);
  color: rgba(30, 64, 175, 0.95);
  font-weight: 600;
}

.vip-hero-actions .ghost:hover,
.vip-hero-actions .ghost:focus-visible {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(30, 64, 175, 0.5);
  color: rgba(30, 64, 175, 1);
}

.vip-overview {
  display: grid;
  gap: clamp(1.2rem, 2.4vw, 2rem);
}

.vip-overview header {
  display: grid;
  gap: 0.65rem;
}

.vip-feature-grid {
  display: grid;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.vip-feature {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  padding: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: grid;
  gap: 0.5rem;
}

.vip-feature-number {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
}

.vip-note {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.15));
  border-radius: 22px;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  display: grid;
  gap: 0.4rem;
}

.vip-note h4 {
  margin: 0;
}

.vip-gallery {
  display: grid;
  gap: clamp(1.2rem, 2.4vw, 2rem);
}

.vip-gallery header {
  display: grid;
  gap: 0.6rem;
}

.vip-gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.vip-gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.vip-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vip-gallery-item figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0.75rem 1rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.8));
}

.vip-packages {
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
}

.vip-packages header {
  display: grid;
  gap: 0.6rem;
}

.vip-packages h3,
.vip-overview h3,
.vip-video h3 {
  color: rgba(15, 23, 42, 0.95);
}

.vip-packages p,
.vip-overview p,
.vip-video p {
  color: rgba(51, 65, 85, 0.9);
}

.vip-packages .section-eyebrow,
.vip-overview .section-eyebrow,
.vip-video .section-eyebrow {
  color: rgba(37, 99, 235, 0.9);
  font-weight: 700;
}

.vip-intro {
  color: rgba(71, 85, 105, 0.9);
  font-size: 0.975rem;
}

.vip-video {
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
}

.vip-video header {
  display: grid;
  gap: 0.6rem;
}

.vip-video-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.vip-video-grid iframe {
  width: 100%;
  min-height: 220px;
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.vip-itineraries {
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
}

.vip-itineraries header {
  display: grid;
  gap: 0.6rem;
}

.vip-itineraries h3,
.vip-cta h3 {
  color: rgba(15, 23, 42, 0.95);
}

.vip-itineraries p,
.vip-cta p {
  color: rgba(51, 65, 85, 0.9);
}

.vip-itineraries .section-eyebrow,
.vip-cta .section-eyebrow {
  color: rgba(37, 99, 235, 0.9);
  font-weight: 700;
}

.vip-itineraries-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.vip-itinerary {
  background: rgba(255, 255, 255, 0.86);
  border-radius: 20px;
  padding: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: grid;
  gap: 0.6rem;
}

.vip-itinerary h4 {
  color: rgba(15, 23, 42, 0.95);
  margin: 0;
}

.vip-itinerary p {
  color: rgba(51, 65, 85, 0.9);
  margin: 0;
}

.vip-itinerary ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.vip-itinerary li {
  color: rgba(51, 65, 85, 0.9);
}

.vip-itinerary-time {
  margin: 0;
  font-weight: 600;
  color: rgba(37, 99, 235, 0.9);
}

.vip-cta-inner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.18));
  border-radius: 22px;
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
  display: grid;
  gap: 0.8rem;
}

.vip-cta-inner h3 {
  color: rgba(15, 23, 42, 0.95);
}

.vip-cta-inner p {
  color: rgba(51, 65, 85, 0.9);
}

.vip-cta-inner .section-eyebrow {
  color: rgba(37, 99, 235, 0.9);
  font-weight: 700;
}

.vip-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.vip-contact {
  display: grid;
  gap: clamp(1.2rem, 2.4vw, 2rem);
}

.vip-contact header {
  display: grid;
  gap: 0.6rem;
}

.vip-contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.vip-contact-card {
  border-radius: 20px;
  padding: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.86);
  display: grid;
  gap: 0.5rem;
}

.vip-contact-card a {
  font-weight: 600;
  color: var(--primary);
}

.vip-contact-icon {
  font-size: 1.6rem;
}

.vip-contact-meta {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.vip-contact-meta h4 {
  margin-top: 0;
}

.vip-extra {
  display: grid;
  gap: clamp(1.2rem, 2.4vw, 2rem);
}

.vip-extra header {
  display: grid;
  gap: 0.6rem;
}

.vip-extra-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.vip-extra-card {
  border-radius: 20px;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: grid;
  gap: 0.4rem;
}

.vip-extra-card a {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 720px) {
  .vip-hero-card {
    text-align: left;
  }

  .vip-contact-meta {
    grid-template-columns: minmax(0, 1fr);
  }
}


.vip-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  padding: 1rem;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  grid-template-columns: minmax(0, 1fr);
}

.vip-card::before,
.vip-card::after {
  content: none;
}


.vip-primary {
  display: grid;
  gap: clamp(0.75rem, 1.5vw, 1.2rem);
}

.vip-card-header {
  display: grid;
  gap: 0.5rem;
}

.vip-card-header h3 {
  margin: 0.1rem 0 0;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
}

.vip-meta {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(37, 99, 235, 0.78);
  font-weight: 600;
}

.vip-description {
  margin: 0.25rem 0 0;
  color: rgba(15, 23, 42, 0.76);
  line-height: 1.65;
  max-width: 60ch;
}

.vip-price {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.08);
  font-weight: 600;
  color: rgba(15, 23, 42, 0.85);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
}

.vip-price strong {
  display: inline-block;
  margin-left: 0.2rem;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  color: var(--secondary);
}

.vip-section {
  display: grid;
  gap: 0.6rem;
}

.vip-section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: rgba(15, 23, 42, 0.72);
}

.vip-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.vip-highlights li {
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.6;
  color: rgba(15, 23, 42, 0.72);
}

.vip-highlights li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: rgba(37, 99, 235, 0.85);
  font-size: 0.95rem;
  font-weight: 700;
}

.vip-helper {
  margin: 0;
  color: rgba(15, 23, 42, 0.6);
  font-size: 0.9rem;
  line-height: 1.45;
}

.vip-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.vip-link:hover,
.vip-link:focus-visible {
  background: rgba(37, 99, 235, 0.18);
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.2);
  transform: translateY(-1px);
}

.vip-form {
  display: grid;
  gap: clamp(0.85rem, 1.8vw, 1.25rem);
  border-top: 1px solid rgba(148, 163, 184, 0.32);
  padding-top: clamp(1.1rem, 2vw, 1.5rem);
}

.vip-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.vip-field strong {
  font-size: 1.05rem;
  color: rgba(15, 23, 42, 0.82);
}

.vip-field label {
  font-weight: 600;
  color: rgba(15, 23, 42, 0.8);
}

.vip-field input,
.vip-field select {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.96);
  transition: border var(--transition), box-shadow var(--transition);
}

.vip-field input:focus-visible,
.vip-field select:focus-visible {
  outline: 3px solid var(--focus-ring-color);
  outline-offset: 2px;
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.vip-result {
  margin: 0;
  display: grid;
  gap: 0.75rem;
  color: rgba(15, 23, 42, 0.85);
  padding: clamp(0.85rem, 2vw, 1.15rem);
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.16);
}

.vip-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.vip-result-row dt {
  font-weight: 600;
}

.vip-result-row dd {
  margin: 0;
}

.vip-output {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--secondary);
}

@media (min-width: 960px) {
  .vip-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: start;
  }

  .vip-form {
    border-top: none;
    border-left: 1px solid rgba(148, 163, 184, 0.32);
    padding-top: 0;
    padding-left: clamp(1rem, 2vw, 1.5rem);
    margin-left: clamp(0.6rem, 1.2vw, 1rem);
  }
}

@media (min-width: 1280px) {
  .vip-card {
    padding: clamp(1.1rem, 1.8vw, 1.5rem);
  }
}

@media (max-width: 640px) {
  .vip-result-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
}

.engagement-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.daily-streak-card,
.daily-challenge-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1rem, 2vw, 1.6rem);
  position: relative;
}

.daily-streak-header h2,
.daily-challenge-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.daily-streak-header p,
.daily-challenge-header p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.daily-streak-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  font-size: 1rem;
}

.daily-streak-current strong {
  font-size: 1.75rem;
  color: var(--primary);
}

.daily-streak-best {
  color: var(--muted);
}

.daily-streak-message {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.5;
}

.daily-challenge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.daily-challenge-bonus {
  font-weight: 700;
  color: #0f766e;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.95rem;
}

.daily-challenge-body h3 {
  margin: 0;
  font-size: 1.1rem;
}

.daily-challenge-body p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.daily-challenge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.daily-challenge-actions .secondary,
.daily-challenge-actions .ghost {
  flex: 1 1 auto;
  min-width: 150px;
}

.daily-challenge-status {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--muted-strong);
}

.daily-challenge-status[data-state='completed'] {
  color: #047857;
}

.daily-challenge-status[data-state='locked'] {
  color: #b45309;
}

.daily-streak-card.is-hot {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 18px 30px rgba(245, 158, 11, 0.18);
}

.adventure-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.adventure-shortcut-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1rem, 2vw, 1.6rem);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.adventure-shortcut-card h2 {
  margin: 0;
  font-size: 1.25rem;
}

.adventure-shortcut-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.adventure-shortcut-card .secondary {
  align-self: flex-start;
}

.adventure-shortcut-card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

.adventure-shortcut-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.discovery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.1rem, 2vw, 1.8rem);
  align-items: stretch;
}

.progress-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 1.8vw, 1.6rem);
}

.progress-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
}

.progress-header h2 {
  margin: 0;
}

.progress-header p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  max-width: 36ch;
}

.progress-link {
  padding-inline: 1.1rem;
  flex-shrink: 0;
}

.progress-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

.progress-card {
  background: rgba(37, 99, 235, 0.06);
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: clamp(1rem, 2vw, 1.35rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 100%;
}

.progress-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.92);
}

.progress-card-value {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--primary-dark);
}

.progress-card-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}

.progress-meter {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-meter-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.7);
  overflow: hidden;
  position: relative;
}

.progress-meter-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: inherit;
  transition: width var(--transition);
}

.progress-badges {
  max-height: 10.5rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.progress-badges::-webkit-scrollbar {
  width: 6px;
}

.progress-badges::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.35);
  border-radius: 999px;
}

.progress-badges .badge {
  background: rgba(219, 234, 254, 0.7);
  border-color: rgba(37, 99, 235, 0.25);
}

@media (max-width: 640px) {
  .progress-header {
    flex-direction: column;
    align-items: stretch;
  }

  .progress-link {
    width: 100%;
    justify-content: center;
  }

  .progress-cards {
    grid-template-columns: 1fr;
  }
}

.discovery-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.discovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.discovery-actions .ghost,
.discovery-actions .secondary {
  white-space: nowrap;
}

.discovery-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.locations-list-preview {
  position: relative;
}

.locations-list-preview.is-collapsed {
  max-height: 19rem;
  overflow: hidden;
}

.locations-list-preview.is-collapsed::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4rem;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(255, 255, 255, 1) 25%, rgba(255, 255, 255, 0));
  transition: opacity var(--transition);
}

.locations-list-preview.is-expanded::after {
  opacity: 0;
}

.locations-panel,
.progress-panel,
.services-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.locations-panel h2,
.progress-panel h2,
.services-panel h2 {
  margin: 0 0 0.5rem 0;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 700;
  color: rgba(15, 23, 42, 0.95);
}

.services-panel p {
  margin: 0 0 0.75rem 0;
  color: rgba(15, 23, 42, 0.75);
  line-height: 1.6;
  font-size: clamp(1rem, 2vw, 1.05rem);
}

.services-panel ul {
  margin: 0 0 1.25rem 0;
  padding-left: 1.5rem;
  display: grid;
  gap: 0.6rem;
  color: rgba(15, 23, 42, 0.75);
  line-height: 1.6;
  font-size: clamp(0.95rem, 2vw, 1rem);
}

.services-panel ul li {
  padding-left: 0.25rem;
}

.services-panel .primary {
  align-self: flex-start;
  min-height: 48px;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
}

.services-panel-footer {
  margin-top: auto;
}

@media (max-width: 600px) {
  .services-panel h2 {
    font-size: clamp(1.3rem, 4vw, 1.5rem);
  }
  
  .services-panel p {
    font-size: 1rem;
  }
  
  .services-panel ul {
    font-size: 0.95rem;
  }
  
  .services-panel .primary {
    width: 100%;
    text-align: center;
  }
}

.auto-rental-promo {
  display: grid;
  gap: clamp(1.3rem, 3vw, 2.4rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.auto-rental-promo-text h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.auto-rental-promo-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.auto-rental-promo-text ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted-strong);
  display: grid;
  gap: 0.45rem;
}

.auto-rental-promo-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-start;
}

.auto-rental-promo-actions .ghost {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.18);
  color: var(--primary-dark);
}

.adventure-shortcut-card .adventure-link {
  align-self: flex-start;
}

.header-actions-primary .header-link {
  white-space: nowrap;
}

@media (min-width: 900px) {
  .auto-rental-promo {
    grid-template-columns: 1.2fr 0.85fr;
  }

  .auto-rental-promo-actions {
    align-items: stretch;
  }
}

.auto-rental {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.6rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.auto-rental-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auto-rental-badge {
  align-self: flex-start;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(14, 165, 233, 0.9));
  color: #fff;
}

.auto-rental-header h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.auto-rental-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.auto-rental-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
}

.auto-benefit {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: clamp(1rem, 2vw, 1.4rem);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.auto-benefit h3 {
  margin: 0;
  font-size: 1.1rem;
}

.auto-benefit p,
.auto-benefit ul {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.auto-benefit ul {
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.auto-rental-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

.auto-rental-details article {
  background: rgba(37, 99, 235, 0.04);
  border-radius: 20px;
  padding: clamp(1rem, 2vw, 1.45rem);
  border: 1px dashed rgba(37, 99, 235, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.auto-rental-details h3 {
  margin: 0;
  font-size: 1.05rem;
}

.auto-rental-details ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted-strong);
  display: grid;
  gap: 0.45rem;
}

.auto-rental-groups {
  display: grid;
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.auto-category {
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 2vw, 1.4rem);
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 28px;
  padding: clamp(1.1rem, 2.2vw, 1.8rem);
  box-shadow: var(--shadow-soft);
}

.auto-category-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  justify-content: space-between;
}

.auto-category-title {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 720px;
}

.auto-category-title h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.4rem);
}

.auto-category-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.auto-category-badge {
  align-self: flex-start;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.auto-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(0.9rem, 2vw, 1.4rem);
}

.auto-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  padding: clamp(0.9rem, 2vw, 1.35rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.auto-card-media {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.16);
  aspect-ratio: 4 / 3;
}

.auto-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auto-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity var(--transition);
}

.auto-card:hover,
.auto-card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.auto-card:hover::after,
.auto-card:focus-within::after {
  opacity: 1;
}

.auto-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.auto-card-title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.auto-card-title h3 {
  margin: 0;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.auto-card-title span {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.auto-card-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.14);
  color: var(--primary-dark);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.auto-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auto-card-specs li {
  padding: 0.35rem 0.6rem;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.16);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.auto-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auto-card-tags li {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
}

.auto-card-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.auto-card .secondary {
  align-self: flex-start;
}

.auto-rental-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.2rem, 2vw, 1.8rem);
}

.auto-rental-block {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-strong);
  padding: clamp(1.2rem, 2.2vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auto-rental-block h3 {
  margin: 0;
  font-size: 1.3rem;
}

.auto-rental-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.auto-calculator {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

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

.auto-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--muted-strong);
}

.auto-field input,
.auto-field select {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.95);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.auto-field input:focus-visible,
.auto-field select:focus-visible {
  border-color: rgba(37, 99, 235, 0.75);
  box-shadow: var(--focus-ring);
}

.auto-checkbox {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 18px;
  border: 1px dashed rgba(37, 99, 235, 0.28);
  padding: 0.75rem 1rem;
  background: rgba(37, 99, 235, 0.06);
  font-weight: 600;
  color: var(--muted-strong);
}

.auto-checkbox input {
  width: 1.25rem;
  height: 1.25rem;
}

.auto-checkbox label {
  cursor: pointer;
  flex: 1;
}

.auto-calculate-btn {
  align-self: flex-start;
}

.auto-calculator-result {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 3.5rem;
}

.auto-calculator-total {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.auto-calculator-breakdown {
  font-size: 0.92rem;
  color: var(--muted-strong);
}

.auto-calculator-breakdown ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.auto-calculator-message {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted-strong);
}

.auto-calculator-message.is-error {
  color: var(--accent-dark);
}

.auto-reservation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.auto-reservation-frame {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.auto-reservation-frame iframe {
  width: 100%;
  height: 520px;
  border: 0;
}

@media (min-width: 720px) {
  .discovery-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .attractions-toolbar {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .attractions-toolbar input[type='search'] {
    flex: 1;
  }
}

@media (max-width: 680px) {
  .auto-calculator-grid {
    grid-template-columns: 1fr;
  }

  .auto-checkbox {
    flex-direction: row;
    align-items: flex-start;
  }

  .auto-checkbox input {
    margin-top: 0.25rem;
  }

  .auto-reservation-frame iframe {
    height: 460px;
  }
}

.achievements-header {
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.achievements-hero {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

.achievements-hero-content {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.achievements-hero-content h2 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.achievements-back {
  align-self: flex-start;
}

.achievements-tabs {
  display: flex;
  gap: 0.75rem;
}

.achievements-tabs .header-tab {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.achievements-main {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.attractions-main {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.attractions-intro {
  display: grid;
  gap: 1.25rem;
}

.attractions-intro-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.attractions-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.attractions-results {
  margin: 0;
  color: var(--accent-dark);
  font-weight: 600;
}

.attractions-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.attractions-toolbar input[type='search'] {
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
}

.attractions-toolbar a {
  align-self: flex-start;
}

.attractions-catalog {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.attractions-card {
  border-radius: 20px;
  padding: 1.1rem 1.35rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  display: grid;
  gap: 0.6rem;
  transition: transform var(--transition), box-shadow var(--transition), border var(--transition);
  cursor: pointer;
}

.attractions-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.attractions-card.visited {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.14);
  box-shadow: 0 16px 34px rgba(22, 163, 74, 0.22);
}

.attractions-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.attractions-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.attractions-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.attractions-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.attractions-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.attractions-actions a {
  text-decoration: none;
  font-weight: 600;
}

.attractions-empty {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

.achievements-progress {
  gap: 1.75rem;
}

.achievements-progress-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.achievements-progress-header h2 {
  margin: 0;
}

.achievements-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.achievements-next {
  margin: 0;
  color: var(--accent-dark);
  font-weight: 600;
}

.achievements-progress-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.achievements-stats {
  display: grid;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.achievements-stats strong {
  display: block;
  margin-bottom: 0.2rem;
}

.achievements-stats p {
  margin: 0;
  color: var(--muted);
}

.achievements-section-intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.achievements-empty {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

.achievements-visited-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.achievements-visited-list li {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 18px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.86);
  display: grid;
  gap: 0.35rem;
}

.achievements-visited-list li strong {
  font-size: 1.05rem;
}

.achievements-visited-meta {
  color: var(--muted);
  margin: 0;
}

@media (min-width: 860px) {
  .achievements-hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }

  .achievements-hero-content {
    align-items: flex-end;
    text-align: right;
  }

  .achievements-back {
    align-self: flex-end;
  }

  .achievements-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .achievements-progress {
    grid-column: 1 / -1;
  }

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

.packing-panel-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.packing-panel-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.packing-season-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: rgba(148, 163, 184, 0.16);
  padding: 0.4rem;
  border-radius: 999px;
  width: fit-content;
}

.packing-season-toggle button {
  border: none;
  background: transparent;
  color: rgba(30, 41, 59, 0.72);
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background-color var(--transition), color var(--transition), box-shadow var(--transition),
    transform var(--transition);
}

.packing-season-toggle button:hover,
.packing-season-toggle button:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  transform: translateY(-1px);
}

.packing-season-toggle button.is-active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(99, 102, 241, 0.92));
  color: #fff;
  box-shadow: 0 16px 32px rgba(14, 116, 144, 0.25);
  transform: translateY(-1px);
}

.packing-season-icon {
  font-size: 1.1rem;
}

.packing-panel-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.packing-season-header h3 {
  margin: 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.packing-season-header p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.packing-lists {
  display: grid;
  gap: 1rem;
}

.packing-list-section {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 20px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.packing-list-section h4 {
  margin: 0;
  font-size: 1rem;
  color: rgba(15, 23, 42, 0.92);
}

.packing-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.packing-checklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: flex-start;
}

.packing-checklist input[type='checkbox'] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.2rem 0 0;
  accent-color: var(--primary);
}

.packing-check-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.packing-check-main {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.95);
}

.packing-check-label small {
  color: var(--muted);
  line-height: 1.5;
}

.packing-optional {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(14, 165, 233, 0.15);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  align-self: center;
}

.packing-note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(71, 85, 105, 0.85);
}

@media (min-width: 960px) {
  .packing-lists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.journal-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.journal-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.journal-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.journal-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.journal-tabs {
  display: inline-flex;
  gap: 0.5rem;
  background: rgba(148, 163, 184, 0.15);
  padding: 0.35rem;
  border-radius: 999px;
  width: fit-content;
}

.journal-tab {
  border: none;
  background: transparent;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  color: rgba(30, 41, 59, 0.7);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.journal-tab:hover,
.journal-tab:focus-visible {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
}

.journal-tab.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.journal-tab-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.journal-tabpanel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.journal-empty-message {
  margin: 0;
  font-style: italic;
  color: var(--muted);
}

.journal-entries {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.journal-entry {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.journal-entry.is-highlighted {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  box-shadow: 0 18px 40px rgba(59, 130, 246, 0.18);
}

.journal-entry-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.journal-entry-title {
  margin: 0;
  font-size: 1.1rem;
  color: rgba(15, 23, 42, 0.95);
}

.journal-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.journal-entry-notes {
  margin: 0;
  line-height: 1.55;
  color: rgba(15, 23, 42, 0.92);
  white-space: pre-wrap;
}

.journal-entry-photo {
  margin: 0.25rem 0 0;
}

.journal-entry-photo img {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
}

.journal-entry-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.journal-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.journal-entry-actions .journal-entry-action {
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
}

.journal-entry-actions .journal-entry-action.is-danger {
  color: #b91c1c;
}

.journal-entry-actions .journal-entry-action.is-danger:hover,
.journal-entry-actions .journal-entry-action.is-danger:focus {
  color: #7f1d1d;
}

.journal-entry-like {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.35);
  color: #be123c;
}

.journal-entry-like:hover,
.journal-entry-like:focus-visible {
  background: rgba(244, 63, 94, 0.2);
  color: #9f1239;
}

.journal-entry-like.is-liked {
  background: #be123c;
  border-color: #be123c;
  color: #fff;
}

.journal-entry-like.is-liked:hover,
.journal-entry-like.is-liked:focus {
  background: #9f1239;
  border-color: #9f1239;
  color: #fff;
}

.journal-entry-like[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.journal-entry-likes {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.journal-entry-comments {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.journal-entry-comments-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.88);
}

.journal-entry-comments-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.journal-entry-comment {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.78);
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  margin-left: calc(var(--comment-depth, 0) * 1.5rem);
}

.journal-entry-comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.journal-entry-comment-header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.journal-entry-comment-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.journal-entry-comment-actions-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.journal-entry-comment-action {
  border: none;
  background: transparent;
  color: rgba(37, 99, 235, 0.9);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
}

.journal-entry-comment-action:hover,
.journal-entry-comment-action:focus-visible {
  color: rgba(37, 99, 235, 1);
  text-decoration: underline;
}

.journal-entry-comment-action.is-danger {
  color: rgba(220, 38, 38, 0.92);
}

.journal-entry-comment-action.is-danger:hover,
.journal-entry-comment-action.is-danger:focus-visible {
  color: rgba(185, 28, 28, 1);
}

.journal-entry-comment-text {
  margin: 0;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.92);
  white-space: pre-wrap;
}

.journal-entry-comment-empty {
  margin: 0;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
}

.journal-entry-comment-login {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.journal-entry-comment-login .ghost {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
}

.journal-entry-comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.journal-entry-comment-form.is-reply {
  background: rgba(241, 245, 249, 0.75);
  border-radius: 12px;
  padding: 0.55rem 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.26);
  margin-left: calc(var(--comment-depth, 0) * 1.5rem + 1rem);
}

.journal-entry-comment-form textarea {
  resize: vertical;
  min-height: 3.2rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
}

.journal-entry-comment-form.is-reply textarea {
  min-height: 2.5rem;
}

.journal-entry-comment-form textarea:focus {
  outline: 2px solid rgba(14, 165, 233, 0.35);
  outline-offset: 2px;
}

.journal-entry-comment-form button {
  align-self: flex-end;
  font-size: 0.85rem;
  padding: 0.4rem 0.95rem;
}

.journal-entry-comment-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}

.journal-entry-replies {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.place-journal {
  margin-top: 2rem;
  padding: 1.5rem 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(244, 249, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.place-journal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.place-journal-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: rgba(15, 23, 42, 0.92);
}

.place-journal .ghost {
  font-size: 0.95rem;
  padding: 0.35rem 0.9rem;
}

.place-journal-list {
  max-height: 24rem;
  overflow: auto;
  padding-right: 0.25rem;
}

.place-journal-list .journal-entry {
  background: rgba(255, 255, 255, 0.95);
}

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1200;
  pointer-events: none;
}

.toast {
  min-width: 260px;
  max-width: min(360px, calc(100vw - 2rem));
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  padding: 0.9rem 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.toast-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.toast-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.95);
}

.toast-message {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.85);
  line-height: 1.45;
}

.toast-success {
  border-color: rgba(34, 197, 94, 0.38);
  background: rgba(240, 253, 244, 0.95);
}

.utility-view {
  background: var(--surface);
  border-radius: 32px;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  max-width: 1080px;
  align-self: center;
  width: 100%;
}

.utility-view-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.utility-view-header h2 {
  margin: 0 0 0.75rem 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: rgba(15, 23, 42, 0.95);
  font-weight: 700;
  line-height: 1.2;
}

.utility-view-header p {
  margin: 0;
  max-width: 65ch;
  color: rgba(15, 23, 42, 0.75);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
}

.utility-view-header > div {
  flex: 1 1 auto;
  min-width: 280px;
}

.utility-view-header a {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .utility-view-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  
  .utility-view-header h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  
  .utility-view-header p {
    font-size: 1rem;
  }
  
  .utility-view-header a {
    width: 100%;
    text-align: center;
  }
}

.journal-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  padding: 1.1rem;
  background: rgba(248, 250, 252, 0.75);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.journal-form input[type='text'],
.journal-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.75rem 0.85rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.85);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.journal-form input[type='text']:focus-visible,
.journal-form textarea:focus-visible {
  outline: 3px solid var(--focus-ring-color);
  outline-offset: 2px;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}

.journal-form textarea {
  resize: vertical;
}

.journal-form input[type='file'] {
  border: 1px dashed rgba(14, 165, 233, 0.45);
  border-radius: 14px;
  padding: 0.75rem;
  background: rgba(191, 219, 254, 0.25);
  color: rgba(30, 64, 175, 0.95);
  cursor: pointer;
}

.journal-photo-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.journal-photo-preview img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
}

.journal-form-hint {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(37, 99, 235, 0.95);
}

.journal-form-message {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.journal-form-message[data-tone='error'] {
  color: #dc2626;
}

.journal-form-message[data-tone='success'] {
  color: #047857;
}

.journal-form-message[data-tone='info'] {
  color: rgba(37, 99, 235, 0.95);
}

.sidebar h2 {
  margin-top: 0;
  font-size: 1.35rem;
}


.btn,
.primary,
.secondary,
.ghost,
.danger,
.task-action {
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition),
    border-color var(--transition);
}

.btn-primary,
.primary {
  background: var(--color-brand-700);
  border-color: var(--color-brand-700);
  color: var(--color-white);
  box-shadow: 0 24px 48px rgba(72, 61, 60, 0.32);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.primary:hover,
.primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 28px 56px rgba(72, 61, 60, 0.34);
  background: #3b2f2e;
  border-color: #3b2f2e;
}

.btn-primary:disabled,
.primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary,
.secondary {
  background: var(--color-white);
  border-color: rgba(72, 61, 60, 0.55);
  color: var(--color-brand-700);
  box-shadow: 0 16px 30px rgba(72, 61, 60, 0.16);
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.secondary:hover,
.secondary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(72, 61, 60, 0.2);
  background: rgba(255, 255, 255, 0.92);
}

.btn-secondary:disabled,
.secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost,
.ghost {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(72, 61, 60, 0.22);
  color: var(--color-brand-700);
  padding: 0.75rem 1.35rem;
  box-shadow: 0 12px 24px rgba(72, 61, 60, 0.12);
}

.btn-ghost:hover,
.btn-ghost:focus-visible,
.ghost:hover,
.ghost:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(72, 61, 60, 0.35);
}

.app-header .ghost {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--text);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(14px);
}

.app-header .ghost:hover,
.app-header .ghost:focus-visible {
  background: rgba(255, 255, 255, 1);
  color: var(--text);
}

.ghost.link {
  background: transparent;
  border-color: transparent;
  color: var(--color-brand-700);
  padding: 0;
  box-shadow: none;
  text-decoration: underline;
}

.ghost.link:hover,
.ghost.link:focus-visible {
  background: transparent;
  transform: none;
  color: var(--color-brand-500);
}

.btn-danger,
.danger {
  background: var(--color-error-600);
  border-color: var(--color-error-600);
  color: var(--color-white);
  box-shadow: 0 22px 46px rgba(220, 38, 38, 0.3);
}

.btn-danger:hover,
.btn-danger:focus-visible,
.danger:hover,
.danger:focus-visible {
  transform: translateY(-1px);
  background: #b91c1c;
  border-color: #b91c1c;
}

.icon-button {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition), transform var(--transition);
}

.icon-button:hover,
.icon-button:focus-visible {
  background: rgba(255, 255, 255, 0.32);
  transform: rotate(90deg);
}

.locations-list,
.badges-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.locations-list li {
  padding: 0.95rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  transition: transform var(--transition), box-shadow var(--transition), border var(--transition);
  cursor: pointer;
  display: grid;
  gap: 0.35rem;
}

.locations-list li.locations-highlight {
  padding: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(124, 58, 237, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.25);
}

.locations-highlight-link {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1.1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.locations-highlight-link strong {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
}

.locations-list li.locations-highlight .location-meta {
  color: rgba(255, 255, 255, 0.85);
}

.locations-list li.locations-highlight:hover,
.locations-list li.locations-highlight:focus-within {
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.35);
}

.locations-list li.locations-highlight:hover .locations-highlight-link,
.locations-list li.locations-highlight:focus-within .locations-highlight-link {
  text-decoration: none;
}

.locations-highlight-link:focus-visible {
  outline: 3px solid var(--focus-ring-color);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(191, 219, 254, 0.8);
  border-radius: 18px;
}

.locations-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

.locations-list li.visited {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.16);
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.22);
}

.locations-list li.locked {
  opacity: 0.65;
  cursor: not-allowed;
  background: rgba(226, 232, 240, 0.5);
  border-style: dashed;
}

.location-meta {
  font-size: 0.92rem;
  color: var(--muted);
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  border-radius: 18px;
  background: rgba(250, 232, 255, 0.65);
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.badge span {
  font-size: 1.35rem;
}

.xp-bar {
  width: 100%;
  height: 12px;
  background: rgba(226, 232, 240, 0.7);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transition: width 0.5s ease;
}

.level-indicator {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.xp-progress {
  margin: 0.25rem 0 0.75rem;
  color: var(--muted);
}

.level-status {
  min-height: 1.3rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.badges-counter {
  margin-top: 0.85rem;
  font-weight: 600;
}

.badges-counter span {
  color: var(--accent);
}

.hint {
  font-size: 0.92rem;
  color: var(--muted);
}

.status {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.tasks-hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin: -0.35rem 0 1.1rem;
}

.tasks-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.task {
  display: grid;
  grid-template-columns: minmax(0, 2fr) auto;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(14, 165, 233, 0.18);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
}

.task.locked {
  opacity: 0.65;
}

.task.completed {
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 16px 32px rgba(14, 165, 233, 0.18);
}

.task-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.task-title {
  margin: 0;
  font-weight: 600;
  color: var(--muted-strong);
}

.task-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.task-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.task-xp {
  font-weight: 600;
  color: var(--accent);
}

.task-action {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.55rem 1.35rem;
}

.task-action:hover,
.task-action:focus-visible {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.35);
}

.task-action.is-completed {
  background: var(--accent);
  color: #fff;
}

.task-action:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  background: rgba(249, 115, 22, 0.12);
  color: rgba(15, 23, 42, 0.6);
  border-color: rgba(249, 115, 22, 0.15);
  box-shadow: none;
}

.guest-reset {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(14, 165, 233, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.guest-reset-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.app-footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  width: 100%;
  max-width: none;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  position: relative;
  isolation: isolate;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--secondary);
}

.current-objective a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.manual-confirm-wrapper {
  margin-top: 0.75rem;
}

.manual-confirm {
  width: 100%;
}

.ghost-link {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: underline;
}

.ghost-link:hover,
.ghost-link:focus-visible {
  color: var(--accent-dark);
}

.explorer-modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: clamp(1rem, 4vw, 3rem);
  /*
    Use an even higher z-index so the explorer modal always appears above
    other interface layers such as sticky headers, floating buttons or drawers.
    Previously it sat behind those panels, making the modal invisible even
    though it was technically rendered. A larger value ensures the overlay wins
    every stacking-context comparison without impacting other modals.
  */
  z-index: 2000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

@media (min-width: 768px) {
  .explorer-modal {
    align-items: center;
  }
}

.explorer-dialog {
  width: min(960px, 100%);
  max-height: min(80vh, 720px);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 26px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: 0 35px 65px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
}

.explorer-header {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: flex-start;
}

.explorer-header p {
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.explorer-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#explorerFilter {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.55rem 1.35rem 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  cursor: pointer;
  transition: border var(--transition), box-shadow var(--transition);
}

#explorerFilter:hover,
#explorerFilter:focus-visible {
  border-color: rgba(14, 165, 233, 0.55);
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.18);
}

.explorer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.explorer-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border var(--transition);
  cursor: pointer;
}

.explorer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.2);
}

.explorer-card.locked {
  opacity: 0.7;
  cursor: not-allowed;
  border-style: dashed;
}

.explorer-card.visited {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.14);
  box-shadow: 0 20px 38px rgba(22, 163, 74, 0.28);
}

.explorer-card.active {
  border-color: rgba(14, 165, 233, 0.65);
  box-shadow: 0 24px 48px rgba(14, 165, 233, 0.25);
}

.explorer-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.explorer-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.explorer-card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.explorer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(14, 165, 233, 0.12);
  color: var(--primary-dark);
}

.status-unlocked {
  background: rgba(14, 165, 233, 0.16);
}

.status-locked {
  background: rgba(148, 163, 184, 0.18);
  color: rgba(71, 85, 105, 0.9);
}

.status-visited {
  background: rgba(34, 197, 94, 0.18);
  color: rgba(22, 101, 52, 0.95);
}

.status-active {
  background: rgba(20, 184, 166, 0.18);
  color: rgba(13, 148, 136, 0.95);
}

.explorer-meta {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.8);
}

.explorer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.explorer-empty {
  text-align: center;
  color: var(--muted);
  padding: 2.5rem 1rem;
}

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

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.65);
  z-index: 10000;
  padding: var(--space-4);
}

.modal.is-open {
  display: grid;
}

.modal__dialog {
  position: relative;
  width: min(400px, 90vw);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--elev-2);
  padding: var(--space-4);
  animation: modalIn 0.25s ease;
}

.auth-intro {
  margin: 0 0 var(--space-3);
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-modal__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.auth-modal__tab {
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  padding: 0.65rem 0.75rem;
  background: rgba(241, 245, 249, 0.75);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border var(--transition);
}

.auth-modal__tab.is-active {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.4);
  color: var(--primary-dark);
}

.auth-modal__tab:focus-visible {
  outline: 3px solid var(--focus-ring-color);
  outline-offset: 2px;
}

.auth-modal__panels {
  display: grid;
  gap: var(--space-3);
}

.auth-modal__panel {
  display: none;
}

.auth-modal__panel.is-active {
  display: block;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-form label {
  font-weight: 600;
  font-size: 0.95rem;
}

.auth-form input {
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  transition: border var(--transition), box-shadow var(--transition);
}

.auth-form input:focus-visible {
  border-color: var(--primary);
  outline: 3px solid var(--focus-ring-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.auth-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.auth-form__link {
  border: none;
  background: transparent;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  transition: color var(--transition), transform var(--transition);
}

.auth-form__link:hover,
.auth-form__link:focus-visible {
  color: var(--primary);
  transform: translateY(-1px);
}

.auth-form__link:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.auth-form button[data-loading='true'] {
  pointer-events: none;
}

.auth-form button[data-loading='true']::after {
  content: '';
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  margin-left: 0.5rem;
  animation: authSpinner 0.75s linear infinite;
}

.auth-guest {
  background: rgba(226, 232, 240, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 20px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-message {
  min-height: 1.2rem;
  margin-top: var(--space-3);
  font-weight: 600;
  color: var(--primary-dark);
}

.auth-message[data-tone='error'] {
  color: #dc2626;
}

.auth-message[data-tone='success'] {
  color: #15803d;
}

@keyframes authSpinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes modalIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal__actions {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.modal__actions .btn {
  width: 100%;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--color-neutral-900);
  cursor: pointer;
}

.modal__close:hover,
.modal__close:focus-visible {
  color: var(--color-accent-600);
}

.app-header,
.lang-switcher {
  position: relative;
  z-index: 900;
}

.header {
  z-index: 900;
}

.is-modal-open .app-header,
.is-modal-open .lang-switcher,
.is-modal-open .header {
  pointer-events: none;
}

body.u-lock-scroll {
  overflow: hidden;
}

@supports (padding: max(0px)) {
  .modal__dialog {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

.form-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: -0.35rem 0 0;
}

.account-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(18px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.account-dialog {
  background: var(--surface-strong);
  border-radius: 28px;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  width: min(840px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 35px 65px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(14, 165, 233, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.account-modal.visible .account-dialog {
  transform: translateY(0);
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.account-header h2 {
  margin: 0 0 0.35rem;
}

.account-header p {
  margin: 0;
  color: var(--muted);
}

.account-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.account-tabs {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.account-tab {
  flex: 1 1 0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  background: rgba(241, 245, 249, 0.6);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  transition: background var(--transition), border var(--transition), color var(--transition);
}

.account-tab.is-active {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.45);
  color: var(--primary-dark);
}

.account-tab:focus-visible {
  outline: 3px solid var(--focus-ring-color);
  outline-offset: 2px;
}

.account-panel {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
}

.account-panel.is-active {
  display: flex;
}

.account-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.1rem;
}

.account-stat-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 36px rgba(14, 165, 233, 0.1);
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.account-stat-card h3 {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(30, 41, 59, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary-dark);
}

.account-stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.account-reset-card {
  background: rgba(239, 68, 68, 0.08);
  border-radius: 20px;
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.account-reset-card h3 {
  margin: 0;
}

.account-reset-card p {
  margin: 0;
  color: var(--muted);
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.85);
  padding: 1.2rem 1.4rem;
  border-radius: 20px;
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: 0 18px 36px rgba(14, 165, 233, 0.12);
}

.account-form.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.account-form--vertical {
  background: rgba(255, 255, 255, 0.9);
}

.account-form h3 {
  margin: 0;
}

.account-form label {
  font-weight: 600;
  font-size: 0.95rem;
}

.account-form input {
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.9);
  transition: border var(--transition), box-shadow var(--transition);
}

.account-form input:focus-visible {
  border-color: var(--primary);
  outline: 3px solid var(--focus-ring-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

.account-reset {
  background: rgba(239, 68, 68, 0.08);
  border-radius: 20px;
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.account-status {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.xp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.xp-item {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: baseline;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.xp-item__reason {
  font-weight: 600;
  color: rgba(30, 41, 59, 0.8);
}

.xp-item__delta {
  font-family: var(--font-family-mono, 'Roboto Mono', monospace);
  color: var(--primary-dark);
}

.xp-item__date {
  font-size: 0.85rem;
  color: rgba(100, 116, 139, 0.9);
}

[data-account-loading] {
  font-weight: 600;
  color: rgba(71, 85, 105, 0.9);
}

.account-reset h3 {
  margin: 0;
}

.account-reset p {
  margin: 0;
  color: var(--muted);
}

.account-reset .danger {
  align-self: flex-start;
}

.account-guest-note {
  margin: -0.5rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(254, 226, 226, 0.6);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #b91c1c;
  font-weight: 500;
}

.danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.danger:hover,
.danger:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 35px rgba(239, 68, 68, 0.25);
  filter: brightness(1.05);
}

.account-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.account-message {
  min-height: 1.2rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.account-message[data-tone='error'] {
  color: #dc2626;
}

.account-message[data-tone='success'] {
  color: #15803d;
}

.sos-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(18px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.sos-dialog {
  background: var(--surface-strong);
  border-radius: 28px;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  width: min(860px, 100%);
  box-shadow: 0 35px 65px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(14, 165, 233, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(12px);
  transition: transform 0.25s ease;
  max-height: 90vh;
  overflow: auto;
  overscroll-behavior: contain;
}

.sos-modal.visible .sos-dialog {
  transform: translateY(0);
}

.sos-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.sos-header h2 {
  margin: 0 0 0.35rem;
}

.sos-header p {
  margin: 0;
  color: var(--muted);
}

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

.sos-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: 0 18px 36px rgba(14, 165, 233, 0.15);
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sos-card h3 {
  margin: 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sos-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sos-card li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sos-card strong {
  font-size: 1.05rem;
}

.sos-card p {
  margin: 0;
  color: rgba(15, 23, 42, 0.8);
  line-height: 1.5;
}

.sos-card a {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
}

.sos-card a:hover,
.sos-card a:focus-visible {
  text-decoration: underline;
}

.sos-note {
  margin: 0;
  padding: 0.75rem 1rem;
  background: rgba(14, 165, 233, 0.08);
  border-radius: 18px;
  color: var(--primary-dark);
  font-weight: 600;
}

@media (max-width: 640px) {
  .sos-dialog {
    padding: 1.35rem;
    border-radius: 22px;
  }

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

.account-message[data-tone='warning'] {
  color: #c2410c;
}

.mobile-tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - clamp(1.5rem, 8vw, 2.75rem), 680px);
  max-width: 680px;
  bottom: clamp(0.75rem, 4vw, 1.5rem);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 26px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
  display: none;
  padding: clamp(0.35rem, 2vw, 0.55rem) clamp(0.45rem, 4vw, 0.75rem);
  padding-bottom: calc(clamp(0.35rem, 2vw, 0.55rem) + env(safe-area-inset-bottom) * 0.6);
  z-index: 40;
  backdrop-filter: blur(18px);
  overflow: hidden;
  isolation: isolate;
  gap: clamp(0.3rem, 1.5vw, 0.6rem);
}

.mobile-tabbar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), transparent 60%);
  pointer-events: none;
  opacity: 0.55;
  z-index: -1;
}

.mobile-tabbar-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.55rem 0.35rem;
  border-radius: 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  position: relative;
  isolation: isolate;
  min-width: 0;
  flex: 1 1 0;
}

.mobile-tabbar-btn .mobile-tabbar-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.mobile-tabbar-btn .mobile-tabbar-label {
  font-size: 0.72rem;
  line-height: 1.1;
  text-align: center;
}

.mobile-tabbar-btn.is-active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(124, 58, 237, 0.92));
  color: #fff;
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}

.mobile-tabbar-btn:focus-visible {
  outline: 3px solid var(--focus-ring-color);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}

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

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

@media (max-width: 1023px) {
  .layout {
    display: flex;
    flex-direction: column;
  }

  .header-actions {
    margin-left: 0;
    width: 100%;
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  body {
    gap: 1.2rem;
    padding: clamp(0.75rem, 3vw, 1.1rem);
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, #f8fafc 0%, #e0f2fe 45%, #ede9fe 100%);
  }

  .standalone-body {
    padding: clamp(0.75rem, 3vw, 1.1rem);
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom));
  }

  main {
    padding: clamp(1rem, 3vw, 1.3rem);
    border-radius: 26px;
    gap: 1.35rem;
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.12);
  }

  .surface-card {
    border-radius: 22px;
    padding: clamp(0.95rem, 3vw, 1.25rem);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1.1rem, 4vw, 1.8rem);
    border-radius: 30px;
    gap: 1.35rem;
  }

  .auth-bar {
    width: 100%;
    order: 2;
  }

  .auth-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .auth-controls > button {
    width: 100%;
  }

  .user-menu {
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .user-menu-actions {
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
  }

  .header-top {
    gap: 0.9rem;
  }

  .brand {
    align-items: center;
    gap: 0.75rem;
  }

  .brand img {
    width: 58px;
  }

  .brand-title .brand-name {
    font-size: 1.55rem;
  }

  .tagline {
    font-size: 0.92rem;
    margin: 0;
  }

  .header-top-actions {
    width: 100%;
    display: grid;
    gap: 1rem;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions-primary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .header-actions-primary > * {
    width: 100%;
  }

  .header-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    column-gap: 0.45rem;
    padding: 0.55rem 0.4rem;
    scroll-snap-type: x mandatory;
    scrollbar-color: rgba(255, 255, 255, 0.45) transparent;
  }

  .header-tabs::-webkit-scrollbar {
    height: 4px;
  }

  .header-tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 999px;
  }

  .header-tab {
    flex: 0 0 auto;
    scroll-snap-align: center;
    padding: 0.65rem 0.95rem;
    border-radius: 18px;
  }

  .header-metrics {
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 1fr);
    overflow-x: auto;
    padding-bottom: 0.45rem;
    scroll-snap-type: x proximity;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  }

  .header-metrics::-webkit-scrollbar {
    height: 4px;
  }

  .header-metrics::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
  }

  .metric-card {
    min-width: 180px;
  }

  .layout {
    padding: 0;
  }

  .primary-column,
  .sidebar-column {
    gap: 1rem;
  }

  .sidebar-column {
    order: 2;
  }

  .map-panel {
    padding: clamp(0.9rem, 3vw, 1.15rem);
    gap: 1.2rem;
  }

  #map {
    height: clamp(280px, 52vh, 420px);
    border-radius: 20px;
  }

  .current-objective {
    padding: 1rem;
    border-radius: 20px;
  }

  .objective-navigation {
    flex-direction: column;
    gap: 0.6rem;
  }

  .objective-navigation button {
    flex: 1 1 auto;
  }

  .reviews-panel {
    gap: 0.85rem;
  }

  .trip-planner {
    gap: 1rem;
  }

  .notifications-panel {
    width: calc(100% - 1.5rem);
    left: 0.75rem;
    right: 0.75rem;
    top: auto;
    bottom: calc(6.5rem + env(safe-area-inset-bottom));
  }

  .mobile-tabbar {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: clamp(0.35rem, 1.6vw, 0.6rem);
    padding-bottom: calc(clamp(0.35rem, 2vw, 0.55rem) + env(safe-area-inset-bottom) * 0.6);
  }

  .mobile-tabbar-btn {
    font-size: 0.75rem;
    padding-bottom: calc(0.4rem + env(safe-area-inset-bottom) * 0.25);
  }

  .mobile-tabbar-btn .mobile-tabbar-icon {
    font-size: 1.25rem;
  }

  .mobile-tabbar-btn .mobile-tabbar-label {
    font-size: 0.7rem;
  }

  .app-footer {
    font-size: 0.85rem;
    padding: 1.15rem;
    border-radius: 22px;
    margin-bottom: env(safe-area-inset-bottom);
  }

  .explorer-dialog {
    max-height: 85vh;
  }

  .auth-dialog,
  .account-dialog {
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .auth-content,
  .account-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  body {
    gap: 1rem;
    padding: clamp(0.65rem, 4vw, 0.95rem);
    padding-bottom: calc(6.75rem + env(safe-area-inset-bottom));
  }

  .standalone-body {
    padding: clamp(0.65rem, 4vw, 0.95rem);
    padding-bottom: calc(6.75rem + env(safe-area-inset-bottom));
  }

  main {
    padding: clamp(0.85rem, 4vw, 1rem);
    border-radius: 20px;
    gap: 1.1rem;
  }

  .app-header {
    padding: clamp(0.95rem, 5vw, 1.4rem);
    border-radius: 26px;
  }

  .brand img {
    width: 52px;
  }

  .brand-title .brand-name {
    font-size: 1.4rem;
  }

  .tagline {
    font-size: 0.88rem;
  }

  .header-actions-primary {
    grid-template-columns: 1fr;
  }

  .header-tab {
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
  }

  .surface-card,
  .map-panel,
  .packing-panel,
  .tasks-panel {
    padding: 0.95rem;
  }

  #map {
    height: clamp(260px, 55vh, 380px);
  }

  .header-metrics {
    grid-auto-columns: minmax(160px, 1fr);
  }

  .mobile-tabbar {
    width: min(100% - clamp(1rem, 8vw, 1.6rem), 560px);
    bottom: clamp(0.5rem, 6vw, 0.85rem);
    border-radius: 24px;
    padding: clamp(0.3rem, 2vw, 0.45rem) clamp(0.35rem, 4vw, 0.6rem);
    gap: clamp(0.25rem, 1.2vw, 0.45rem);
  }

  .mobile-tabbar-btn {
    padding: 0.5rem 0.25rem;
    font-size: 0.72rem;
  }

  .mobile-tabbar-btn .mobile-tabbar-icon {
    font-size: 1.2rem;
  }

  .mobile-tabbar-btn .mobile-tabbar-label {
    font-size: 0.68rem;
  }

  .header-actions .primary,
  .header-actions .ghost {
    width: 100%;
  }

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

  .account-reset {
    align-items: stretch;
  }
}

/* CyprusEye service template */
.service-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 44px;
  padding: clamp(1.8rem, 4vw, 3.4rem);
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(148, 163, 184, 0.24);
  backdrop-filter: blur(14px);
}

.service-template {
  gap: clamp(2rem, 4vw, 3.2rem);
}

.service-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) - 6px);
  padding: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
  box-shadow: var(--shadow-soft);
}

.service-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.service-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
  transition: var(--transition);
}

.service-nav-link:hover,
.service-nav-link:focus-visible {
  background: var(--primary);
  color: white;
  box-shadow: var(--focus-ring);
}

.service-hero {
  background: var(--surface-strong);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-soft);
}

.service-hero-visual {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-hero-illustration {
  width: 100%;
  border-radius: clamp(1.4rem, 3vw, 2rem);
  aspect-ratio: 4 / 3;
  background: radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.55), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(14, 165, 233, 0.6), transparent 58%),
    linear-gradient(140deg, rgba(14, 165, 233, 0.65), rgba(14, 116, 144, 0.55));
  box-shadow: var(--shadow-strong);
}

.vip-visual {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.38), rgba(14, 165, 233, 0.22)),
    url('https://images.unsplash.com/photo-1530789253388-582c481c54b0?auto=format&fit=crop&w=1600&q=80') center/cover;
}

.service-main {
  gap: clamp(2rem, 4vw, 3.5rem);
}

.service-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: clamp(1.8rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-soft);
}

.service-media {
  gap: clamp(1.6rem, 3vw, 2.6rem);
}

.service-media-layout {
  display: grid;
  gap: clamp(1.6rem, 3vw, 2.6rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.service-media-intro {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.service-media-highlight {
  padding: 1.25rem;
  border-radius: 22px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: grid;
  gap: 0.8rem;
}

.service-media-highlight p {
  margin: 0;
  color: var(--muted-strong);
}

.service-media-highlight .primary {
  justify-self: start;
}

.service-media-packages {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.media-package-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: grid;
  gap: 1rem;
  box-shadow: var(--shadow-soft);
}

.media-package-card h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

.media-package-subtitle {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.media-duration-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.media-duration-list > div {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  display: grid;
  gap: 0.35rem;
}

.media-duration-list dt {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.media-duration-list dd {
  margin: 0;
  color: var(--muted-strong);
}

.media-package-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.6rem;
  color: var(--muted-strong);
  list-style: disc;
}

.media-contact {
  padding: 1.1rem;
  border-radius: 20px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  display: grid;
  gap: 0.6rem;
}

.media-contact p {
  margin: 0;
  color: var(--muted-strong);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.25;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.section-eyebrow {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  font-size: 0.82rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 3vw, 1.6rem);
}

.service-grid-balanced {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card {
  background: var(--surface-strong);
  border-radius: clamp(1rem, 2.5vw, 1.6rem);
  border: 1px solid var(--border);
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow-soft);
}

.service-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.service-card ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
  color: var(--muted-strong);
}

.experience-grid {
  display: grid;
  gap: clamp(1rem, 3vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.experience-card {
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.1));
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: clamp(1rem, 2.8vw, 1.8rem);
  padding: clamp(1.2rem, 2.5vw, 1.7rem);
  box-shadow: var(--shadow-soft);
}

.experience-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
}

.experience-card p {
  margin: 0;
  color: var(--muted-strong);
}

.service-note {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.2rem;
  background: rgba(37, 99, 235, 0.08);
  border-radius: clamp(0.9rem, 2vw, 1.2rem);
  color: var(--muted-strong);
}

.service-highlight {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.12), rgba(59, 130, 246, 0.12));
  border-color: rgba(124, 58, 237, 0.28);
}

.service-contact {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.service-contact-card {
  background: var(--surface-strong);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-strong);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: center;
}

.service-contact-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.service-contact-card p {
  margin: 0;
  color: var(--muted-strong);
}

.service-contact-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.service-contact-note {
  font-size: 0.95rem;
  color: var(--muted);
}

.service-footer {
  background: transparent;
  border-top: 1px solid var(--border);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.service-footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
}

.service-footer-title {
  margin: 0 0 0.6rem;
  font-weight: 700;
}

.service-footer-text {
  margin: 0;
  color: var(--muted);
}

.service-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.service-footer-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.service-footer-links a:hover,
.service-footer-links a:focus-visible {
  text-decoration: underline;
}

.service-footer-meta {
  margin-top: clamp(1.5rem, 3vw, 2.4rem);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .service-shell {
    padding: clamp(1.2rem, 4vw, 2.4rem);
    border-radius: 34px;
  }

  .service-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
  }

  .service-hero {
    grid-template-columns: 1fr;
  }

  .service-nav {
    justify-content: flex-start;
  }

  .service-media-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .service-shell {
    padding: clamp(1rem, 5vw, 2rem);
    border-radius: 26px;
  }

  .service-nav-link {
    width: 100%;
    justify-content: flex-start;
  }

  .experience-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .media-duration-list {
    gap: 0.75rem;
  }
}

.city-select {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.city-select-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.city-select-header h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.city-select-header p {
  margin: 0;
  color: var(--muted);
}

.city-select-grid {
  display: grid;
  gap: clamp(1.2rem, 2vw, 1.8rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.city-select-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: var(--shadow-soft);
  color: inherit;
  text-decoration: none;
}

.city-select-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.city-select-card h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}

.city-select-card p {
  margin: 0;
  color: var(--muted);
}

.city-select-card-tag {
  margin: 0;
  display: inline-flex;
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary-dark);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.city-select-card-list {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--muted-strong);
}

.city-select-card-list li {
  line-height: 1.5;
}

.city-select-cta {
  align-self: flex-start;
  text-decoration: none;
}

.city-select-info {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

@media (max-width: 900px) {
  .city-select-info {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}
.tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.2s ease;
  opacity: 0;
}

.tutorial-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.tutorial-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
}

.tutorial-highlight {
  position: fixed;
  border-radius: 18px;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.65), 0 0 0 3px #38bdf8;
  transition: all 0.24s ease;
  pointer-events: none;
  min-width: 48px;
  min-height: 48px;
}

.tutorial-arrow {
  position: fixed;
  font-size: 2.5rem;
  color: #38bdf8;
  text-shadow: 0 2px 12px rgba(8, 47, 73, 0.6);
  pointer-events: none;
  transition: transform 0.24s ease, opacity 0.24s ease;
  opacity: 0;
}

.tutorial-arrow.is-visible {
  opacity: 1;
}

.tutorial-dialog {
  position: relative;
  z-index: 2;
  max-width: min(520px, 90vw);
  background: #0f172a;
  color: #f8fafc;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-family: var(--font-family-base);
}

.tutorial-dialog h2 {
  font-size: 1.35rem;
  margin: 0 0 12px;
}

.tutorial-dialog p {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.tutorial-controls {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.tutorial-controls button {
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.tutorial-button-prev,
.tutorial-button-skip {
  background: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

.tutorial-button-next {
  background: #38bdf8;
  color: #0f172a;
}

.tutorial-controls button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(56, 189, 248, 0.35);
}

.tutorial-controls button:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}

.tutorial-button-prev[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.tutorial-target-active {
  position: relative;
  z-index: 1;
}

body.tutorial-open {
  overflow: hidden;
}

.tutorial-help-button {
  margin-top: 12px;
}

@media (max-width: 600px) {
  .tutorial-dialog {
    padding: 20px;
  }

  .tutorial-dialog h2 {
    font-size: 1.2rem;
  }

  .tutorial-dialog p {
    font-size: 0.95rem;
  }

  .tutorial-controls {
    justify-content: center;
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-weight: 600;
  box-shadow: var(--elev-1);
}

.btn--primary {
  background: var(--color-brand-700);
  color: var(--color-white);
}

.btn--primary:hover {
  filter: brightness(1.05);
}

.btn--secondary {
  background: var(--color-brand-500);
  color: var(--color-white);
}

.btn--link {
  background: transparent;
  color: var(--color-accent-600);
  box-shadow: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.card {
  background: var(--color-white);
  border: var(--border-1);
  border-radius: var(--radius-md);
  box-shadow: var(--elev-1);
  padding: var(--space-4);
  overflow: hidden;
}

.card__media {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.card__title {
  margin: var(--space-3) 0 var(--space-2);
}

.card__actions {
  margin-top: var(--space-3);
  display: flex;
  gap: var(--space-3);
}

.form-control {
  display: grid;
  gap: 6px;
  margin-bottom: var(--space-4);
}

.form-control label {
  font-weight: 600;
}

.form-control input,
.form-control select,
.form-control textarea {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-sm);
  background: #fff;
}

.form-control input:focus,
.form-control select:focus,
.form-control textarea:focus {
  outline: 3px solid rgba(10, 132, 255, 0.35);
  outline-offset: 2px;
  border-color: var(--color-accent-600);
}

.form-help {
  color: var(--color-neutral-600);
  font-size: 14px;
}

.form-error {
  color: var(--color-error-600);
  font-size: 14px;
}

.form-success {
  color: var(--color-success-600);
  font-size: 14px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3);
}

.nav a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.nav a[aria-current="page"] {
  background: var(--color-neutral-100);
  font-weight: 700;
}


/* Standalone auth page layout */
body.auth-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.18), transparent 55%),
    linear-gradient(160deg, rgba(191, 219, 254, 0.65), rgba(59, 130, 246, 0.35));
  padding: var(--space-6);
}

.auth-page__container {
  width: min(100%, 520px);
  background: var(--color-white);
  border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  display: grid;
  gap: var(--space-4);
}

.auth-page__header {
  display: grid;
  gap: var(--space-3);
  text-align: center;
}

.auth-page__logo {
  width: 82px;
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 12px 32px rgba(37, 99, 235, 0.25));
}

.auth-page__title {
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
}

.auth-page__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.auth-page__status {
  justify-self: center;
}

.auth-page__return {
  justify-self: center;
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.auth-page__return:hover,
.auth-page__return:focus-visible {
  color: var(--primary);
}

.auth-page__content {
  display: grid;
  gap: var(--space-4);
}

.auth-success-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(15, 23, 42, 0.68);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  cursor: pointer;
}

.auth-success-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

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

.auth-success-overlay__inner {
  width: min(420px, 90vw);
  background: var(--color-white);
  border-radius: 28px;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.25);
  text-align: center;
  color: var(--color-slate-900, #0f172a);
  cursor: inherit;
}

.auth-success-overlay__inner:focus {
  outline: none;
}

.auth-success-overlay__badge {
  font-size: clamp(2.4rem, 5.8vw, 3.4rem);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.auth-success-overlay__title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
}

.auth-success-overlay__user {
  margin: var(--space-2) 0 0;
  font-weight: 600;
  font-size: 1.05rem;
}

.auth-success-overlay__user strong {
  color: var(--primary);
}

.auth-success-overlay__message {
  margin: var(--space-2) 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-success-overlay__hint {
  margin: var(--space-3) 0 0;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.65);
}

@media (prefers-reduced-motion: reduce) {
  .auth-success-overlay {
    transition: none;
  }
}

.auth-confirmation {
  display: grid;
  gap: var(--space-3);
  justify-items: center;
  text-align: center;
  border-radius: 24px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: linear-gradient(155deg, rgba(191, 219, 254, 0.35), rgba(59, 130, 246, 0.12));
  padding: clamp(1.75rem, 5vw, 2.75rem);
  color: var(--primary-dark);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

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

.auth-confirmation__badge {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1;
  filter: drop-shadow(0 12px 28px rgba(37, 99, 235, 0.28));
}

.auth-confirmation__title {
  margin: 0;
  font-size: clamp(1.45rem, 3.4vw, 1.95rem);
  font-weight: 700;
}

.auth-confirmation__user {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
}

.auth-confirmation__user strong {
  color: var(--primary);
}

.auth-confirmation__message {
  margin: 0;
  color: var(--muted);
  max-width: 32ch;
}

.auth-confirmation__hint {
  margin: 0;
  color: rgba(15, 23, 42, 0.65);
  font-size: 0.9rem;
  max-width: 32ch;
}

.auth-modal__content--signed-in {
  display: grid;
  gap: var(--space-4);
  justify-items: center;
  padding: var(--space-3) var(--space-2) var(--space-4);
}

.auth-modal__content--signed-in .auth-modal__tabs,
.auth-modal__content--signed-in .auth-modal__panels,
.auth-modal__content--signed-in #authMessage {
  display: none !important;
}

.auth-modal__content--signed-in .auth-confirmation {
  display: grid;
  width: min(100%, 420px);
}

.auth-page__cta {
  font-weight: 600;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #166534;
  border-radius: 18px;
  padding: 0.85rem 1rem;
  margin: 0;
  text-align: center;
}

.auth-page__cta a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.auth-page__cta a:hover,
.auth-page__cta a:focus-visible {
  text-decoration-style: wavy;
}

@media (max-width: 640px) {
  body.auth-page {
    padding: var(--space-4);
  }

  .auth-page__container {
    border-radius: 20px;
    padding: clamp(1.25rem, 6vw, 2rem);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
  }

  .auth-confirmation {
    padding: clamp(1.25rem, 8vw, 2.25rem);
    gap: var(--space-2);
  }

  .auth-modal__tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ========================================
   Profile Avatar Section
   ======================================== */

.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.profile-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
  border: 3px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.profile-avatar-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-weight: 500;
}

.profile-avatar-actions .btn-secondary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.profile-avatar-actions .btn-secondary:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}

.profile-avatar-actions .btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.profile-avatar-actions .btn-ghost {
  background: transparent;
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.profile-avatar-actions .btn-ghost:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.5);
}

.profile-avatar-actions .btn-ghost:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .profile-avatar {
    width: 100px;
    height: 100px;
  }
  
  .profile-avatar-section {
    padding: 1rem 0;
  }
  
  .profile-avatar-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .profile-avatar-actions .btn {
    width: 100%;
  }
}

/* ===================================
   PROFILE BUTTON WITH AVATAR (HEADER)
   =================================== */

.btn-profile {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem !important;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-profile:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary-500);
  background: white;
}

.btn-profile span {
  font-weight: 500;
}

