:root {
  --ink: #0c1222;
  --muted: #5a6578;
  --bg: #f5f7fb;
  --wash: #eef2f8;
  --line: #dde3ee;
  --brand: #e31c23;
  --brand-hover: #c4161c;
  --brand-soft: rgba(227, 28, 35, 0.12);
  --gold: #b8953b;
  --danger: #b42318;
  --ok: #1b7f3a;
  --sale: #b4234e;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Manrope", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Manrope", "Segoe UI", Tahoma, sans-serif;
  --max: 1440px;
  --pad: clamp(1.25rem, 3.2vw, 2.75rem);
}

@property --brand {
  syntax: "<color>";
  inherits: true;
  initial-value: #e31c23;
}

@property --brand-hover {
  syntax: "<color>";
  inherits: true;
  initial-value: #c4161c;
}

/* Weather-synced brand — өдөр / үүл / бороо / цас / шөнө */
.weather-clear {
  --brand: #f05a28;
  --brand-hover: #d94818;
  --brand-soft: rgba(240, 90, 40, 0.14);
}

.weather-cloudy {
  --brand: #d0343c;
  --brand-hover: #b0222a;
  --brand-soft: rgba(208, 52, 60, 0.14);
}

.weather-rain,
.weather-storm {
  --brand: #7a1420;
  --brand-hover: #5c1018;
  --brand-soft: rgba(122, 20, 32, 0.16);
}

.weather-snow {
  --brand: #4f7fa8;
  --brand-hover: #3d678c;
  --brand-soft: rgba(79, 127, 168, 0.16);
}

.weather-night {
  --brand: #5b4d96;
  --brand-hover: #463a78;
  --brand-soft: rgba(91, 77, 150, 0.16);
}

body {
  transition: --brand 0.85s ease, --brand-hover 0.85s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  min-height: 100vh;
  line-height: 1.5;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid #e6e8ee;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-header::before {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 12px 0;
  min-height: 58px;
  height: auto;
}

.brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink) !important;
  letter-spacing: -0.025em;
  text-decoration: none !important;
  line-height: 1.1;
}

.brand > span {
  color: var(--brand) !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 14px;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-right: 10px;
  margin-right: 6px;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.nav-utils {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-divider {
  display: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: #3a4254;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link .ico {
  width: 16px;
  height: 16px;
  color: #8b93a7;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand);
  background: var(--brand-soft);
}

.nav-link:hover .ico,
.nav-link.is-active .ico {
  color: var(--brand);
}

.nav-link.is-active {
  font-weight: 700;
}

.nav-link--quiet {
  color: #8b93a7;
}

.nav-link--quiet:hover {
  color: var(--ink);
}

.nav-cart {
  position: relative;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  margin-left: 2px;
  transition: background 0.75s ease;
}

.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  margin-left: 2px;
  color: var(--ink);
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.nav-account:hover,
.nav-account.is-active {
  border-color: #e6e8ee;
  background: #f8f9fb;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #e8f3f2;
  flex-shrink: 0;
}

.nav-account__name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 7.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 38px;
  margin-left: 2px;
}

.nav-user__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 3px 10px 3px 3px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  line-height: 1;
  box-sizing: border-box;
  transition: background 0.15s ease;
}

.nav-user__btn:hover,
.nav-user.is-open .nav-user__btn {
  border: 0;
  background: rgba(15, 23, 42, 0.05);
  box-shadow: none;
}

.nav-user__caret {
  width: 14px;
  height: 14px;
  color: #8b93a7;
  transition: transform 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.nav-user.is-open .nav-user__caret {
  transform: rotate(180deg);
  color: var(--brand);
}

.nav-user__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 240px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  z-index: 80;
}

.nav-user__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  text-align: left;
}
.nav-user__head strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.nav-user__head span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  text-decoration: none !important;
  color: #3a4254;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.nav-user__item .ico {
  color: #8b93a7;
  flex-shrink: 0;
}

.nav-user__item:hover {
  background: rgba(15, 23, 42, 0.04);
  color: var(--ink);
}

.nav-user__item:hover .ico {
  color: var(--ink);
}

.nav-user__item--danger {
  color: #b42318;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  margin-top: 4px;
  padding-top: 10px;
  border-radius: 0 0 10px 10px;
}

.nav-user__item--danger:hover {
  color: var(--danger);
  background: #fff7f6;
}

.nav-user__item--danger:hover .ico {
  color: var(--danger);
}

.nav-user__logout {
  margin: 0;
}

.nav-logout {
  margin: 0;
  display: inline;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  padding: 8px 14px;
  transition: background 0.75s ease;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 0.15s ease;
  min-height: 36px;
}

.nav-cta:hover {
  background: var(--brand-hover);
}

.page-title {
  font-size: 22px;
  margin: 0 0 6px;
}

.page-lead {
  margin: 0 0 18px;
}

.page-narrow {
  width: min(720px, calc(100% - 2rem));
}

.profile-page {
  width: min(920px, calc(100% - 2rem));
}

.profile-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.profile-quick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.profile-main,
.profile-side {
  padding-top: 4px;
  border-top: 2px solid var(--ink);
}

.profile-form {
  margin-top: 8px;
}

.profile-form > * + * {
  margin-top: 4px;
}

.profile-form .btn {
  margin-top: 14px;
}

.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 18px;
}

.profile-avatar-wrap {
  flex-shrink: 0;
}

.profile-avatar-lg {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e6e8ee;
  background: #e8f3f2;
  display: block;
}

#password {
  scroll-margin-top: 88px;
}

.profile-readonly {
  margin: 12px 0 8px;
}

.profile-readonly-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.profile-readonly-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.file-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.file-button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.file-name {
  font-size: 13px;
}

.field-hint {
  margin: 4px 0 0;
  font-size: 12px;
}

@media (max-width: 800px) {
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.cart-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* —— Cart checkout shell —— */
.cart-shell {
  position: relative;
  padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 72px);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(227, 28, 35, 0.04), transparent 55%),
    linear-gradient(180deg, #f7f8fb 0%, #fff 42%, #fff 100%);
}

.cart-wrap {
  position: relative;
  z-index: 1;
}

.cart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: clamp(22px, 3vw, 32px);
  animation: fadeUp 0.4s ease both;
}

.cart-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.cart-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.cart-sub {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.cart-continue {
  font-size: 13px;
  font-weight: 600;
  color: #3a4254;
  text-decoration: none !important;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  transition: background 0.15s ease, color 0.15s ease;
}

.cart-continue:hover {
  background: rgba(15, 23, 42, 0.07);
  color: var(--brand);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.85fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  animation: fadeUp 0.45s ease both;
}

.cart-row:hover {
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.cart-row__media {
  display: block;
  width: 88px;
  height: 88px;
  background: #f3f4f6;
  overflow: hidden;
  text-decoration: none !important;
  flex-shrink: 0;
  border-radius: 10px;
}

.cart-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-row__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  background: linear-gradient(145deg, #fde8e9, #f3f4f6);
}

.cart-row__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cart-row__type {
  font-size: 11px;
  font-weight: 600;
  color: #7a8499;
  text-decoration: none;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  letter-spacing: 0.01em;
}

.cart-row__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-row__title:hover {
  color: var(--brand);
}

.cart-row__price {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.cart-row__remove {
  margin: 0;
  align-self: center;
}

.cart-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8b93a7;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.cart-remove-btn:hover {
  color: var(--danger);
  background: #fff7f6;
}

.cart-summary {
  position: sticky;
  top: 88px;
  animation: fadeUp 0.5s ease both;
  animation-delay: 0.08s;
}

.cart-summary__inner {
  padding: 22px 20px 20px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.cart-summary__title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cart-summary__lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.cart-summary__line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.cart-summary__line span:last-child {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.cart-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--muted);
}

.cart-summary__total strong {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.cart-summary__pay .btn-pay {
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
  gap: 8px;
  border-radius: 12px;
}

.cart-summary__hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.cart-trust {
  list-style: none;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.cart-trust .ico {
  color: var(--brand);
  flex-shrink: 0;
}

.cart-empty-state {
  text-align: center;
  max-width: 420px;
  margin: 24px auto 0;
  padding: 48px 24px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
  animation: fadeUp 0.4s ease both;
}

.cart-empty-visual {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 50%;
}

.cart-empty-state h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cart-empty-state p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
    order: 2;
  }

  .cart-list {
    order: 1;
  }
}

@media (max-width: 560px) {
  .cart-row {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px;
  }

  .cart-row__media {
    width: 72px;
    height: 72px;
  }

  .cart-summary__inner {
    padding: 18px 16px;
  }

  .cart-auth-actions {
    flex-direction: column;
  }

  .cart-auth-actions .btn {
    width: 100%;
  }
}

.btn-pay {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
}

@media (min-width: 521px) and (max-width: 900px) {
  .page-narrow {
    width: min(560px, calc(100% - 1.5rem));
  }
}

.pay-page {
  width: min(560px, calc(100% - 2rem));
  margin: 0 auto;
}

.pay-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 24px;
}

.pay-kicker {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pay-title {
  margin: 0 0 6px;
  font-size: 24px;
}

.pay-amount {
  font-size: 32px;
  font-weight: 800;
  margin: 12px 0 16px;
  letter-spacing: -0.03em;
}

.pay-items {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pay-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
}

.pay-qr-wrap {
  text-align: center;
  margin: 8px 0 18px;
}

.pay-qr {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 auto 10px;
  border: 1px solid var(--line);
}

.pay-qr-fallback {
  width: 220px;
  height: 220px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f3f3;
  border: 1px dashed #bbb;
  font-weight: 700;
  color: #666;
}

.pay-mock-box {
  background: #f5f8ff;
  border: 1px solid #c9d8f5;
  padding: 16px;
  margin-bottom: 12px;
}

.pay-banks {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.pay-banks-title {
  margin: 0 0 12px;
  font-size: 15px;
}

.bank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bank-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none !important;
  color: inherit;
  min-height: 64px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.bank-card:hover {
  border-color: var(--brand);
  background: #f7faff;
}

.bank-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.bank-logo-fallback {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}

.bank-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bank-meta strong {
  font-size: 13px;
  line-height: 1.25;
}

.bank-meta .muted {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-method-form {
  display: grid;
  gap: 8px;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  margin: 0;
  background: #fff;
}

.pay-method:has(input:checked) {
  border-color: var(--brand);
  background: #f7faff;
}

.pay-method input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.pay-method-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pay-method-body strong {
  font-size: 14px;
}

.transfer-details {
  margin: 0 0 14px;
  padding: 0;
  border: 1px solid var(--line);
}

.transfer-details > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.transfer-details > div:last-child {
  border-bottom: none;
}

.transfer-details dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.transfer-details dd {
  margin: 0;
  font-weight: 600;
}

.transfer-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.card-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pay-mock-note {
  margin: 16px 0 0;
  padding: 12px;
  background: #f7f7f7;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  line-height: 1.2;
  transition: background 0.75s ease, border-color 0.75s ease, color 0.75s ease, transform 0.15s ease;
}

.btn-primary {
  background-color: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--brand-hover);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: #bbb;
  background: var(--wash);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.hero {
  padding: 0;
  border-bottom: 0;
  background: var(--brand);
  overflow: hidden;
}

.hero-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  height: 400px;
  max-height: 400px;
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.hero-banner__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  background: #1a2a28;
}

.hero-banner__media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.hero-banner__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 28, 26, 0.72) 0%, rgba(12, 28, 26, 0.45) 38%, rgba(12, 28, 26, 0.12) 68%, transparent 100%),
    linear-gradient(180deg, rgba(12, 28, 26, 0.15) 0%, transparent 40%, rgba(12, 28, 26, 0.2) 100%);
}

.hero-banner__copy {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding-inline: 20px;
  font-weight: 700;
  font-size: 15px;
}

.hero-cta__arrow {
  font-size: 1.1em;
  line-height: 1;
}

.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  backdrop-filter: blur(4px);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #fff;
  color: #fff;
}

.hero .btn-primary.hero-cta {
  background: #fff;
  border-color: #fff;
  color: var(--brand);
}

.hero .btn-primary.hero-cta:hover {
  background: #fff7f7;
  border-color: #fff;
  color: var(--brand-hover);
}

/* MD Cargo–inspired red hero */
.hero--md {
  background: transparent;
}

.hero-md__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(0);
  will-change: transform, opacity;
  mix-blend-mode: screen;
}

.hero-md__glow--a {
  width: 70vmax;
  height: 70vmax;
  top: -35%;
  left: -25%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(255, 150, 150, 0.35) 35%, transparent 68%);
  animation: hero-glow-a 7s ease-in-out infinite alternate;
}

.hero-md__glow--b {
  width: 62vmax;
  height: 62vmax;
  right: -22%;
  bottom: -38%;
  background: radial-gradient(circle, rgba(255, 200, 60, 0.4) 0%, rgba(160, 10, 25, 0.45) 42%, transparent 70%);
  animation: hero-glow-b 9s ease-in-out infinite alternate;
}

.hero-md__glow--c {
  width: 46vmax;
  height: 46vmax;
  top: 8%;
  left: 38%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 65%);
  animation: hero-glow-c 5.5s ease-in-out infinite alternate;
}

.hero-md {
  position: relative;
  background: transparent;
  color: #fff;
  padding: 2.5rem 0 0;
  overflow: hidden;
}

.hero-md__paint {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(125deg, #ff4a4f 0%, var(--brand) 42%, #a01018 78%, #e31c23 100%);
  background-size: 220% 220%;
  animation: hero-bg-shift 10s ease-in-out infinite alternate;
  opacity: 1;
  transition: opacity 0.9s ease;
}

.hero-md__paint.is-exit {
  opacity: 0;
}

.hero-md__paint.is-enter {
  opacity: 0;
}

.hero-md__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 2rem;
  align-items: center;
  min-height: 340px;
  padding-bottom: 4.5rem;
}

.hero-md__brand {
  margin: 0 0 0.35rem;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  animation: hero-copy-in 0.7s ease both;
}

.hero-md__brand span {
  opacity: 0.92;
}

.hero-md__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
  animation: hero-copy-in 0.7s ease 0.08s both;
}

.hero-md__lead {
  margin: 0 0 1.35rem;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.hero-md__copy .hero-actions {
  animation: hero-copy-in 0.7s ease 0.16s both;
}

.hero-md__mark {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-md__orb {
  width: min(280px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  animation: hero-orb-float 3.2s ease-in-out infinite;
  overflow: hidden;
  position: relative;
  padding: 1.1rem 1rem 1.2rem;
}

.hero-orb__brand {
  display: grid;
  gap: 0.05rem;
  justify-items: center;
  line-height: 1;
}

.hero-orb__mogul {
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b93a3;
}

.hero-orb__id {
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--brand);
  line-height: 0.95;
  transition: color 0.75s ease;
}

.hero-orb__wx {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 90%;
  padding: 0.5rem 0.9rem 0.5rem 0.5rem;
  border-radius: 999px;
  background: #f4f6f9;
  border: 1px solid #e6e9ef;
}

.hero-orb__wx-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hero-orb__wx-ico svg {
  width: 22px;
  height: 22px;
  display: block;
}

.hero-orb__wx-text {
  display: grid;
  gap: 0.1rem;
  text-align: left;
  line-height: 1.15;
  min-width: 0;
}

.hero-orb__wx-text strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hero-orb__wx-text span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #7a8499;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-orb__wx-city {
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  color: #9aa3b5 !important;
  max-width: 9.5rem;
}

.hero-orb--rain .hero-orb__wx,
.hero-orb--storm .hero-orb__wx {
  background: #eef4ff;
  border-color: #d7e3f8;
}

.hero-orb--snow .hero-orb__wx {
  background: #eef6ff;
  border-color: #d9e9f8;
}

.hero-orb--clear .hero-orb__wx {
  background: #fff8e8;
  border-color: #f5e4b8;
}

.hero-orb--cloudy .hero-orb__wx {
  background: #f4f6f9;
  border-color: #e4e9f0;
}

.hero-person__svg {
  width: 88%;
  height: 88%;
  display: block;
  margin: 0 auto;
}

.hero-person__tag {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 800;
  fill: var(--brand);
  letter-spacing: -0.04em;
}

.hero-person__prop {
  display: none;
}

.hero-person--clear .hero-person__prop--sun,
.hero-person--cloudy .hero-person__prop--cloudy,
.hero-person--rain .hero-person__prop--rain,
.hero-person--snow .hero-person__prop--snow,
.hero-person--storm .hero-person__prop--storm {
  display: inline;
}

.hero-person--rain .hero-person__hair,
.hero-person--storm .hero-person__hair,
.hero-person--snow .hero-person__hair {
  opacity: 0.35;
}

.hero-person--clear .hero-person__prop--sun {
  animation: hero-sun-spin 12s linear infinite;
  transform-origin: 158px 48px;
}

.hero-md__weather {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0 0 1.15rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  font-size: 0.88rem;
  animation: hero-copy-in 0.7s ease 0.12s both;
}

.hero-md__weather-city {
  opacity: 0.88;
}

.hero-md__weather-temp {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-md__weather-label {
  opacity: 0.92;
}

.hero-md__fx {
  position: absolute;
  inset: 0 0 80px 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-md__clouds {
  position: absolute;
  inset: 0 0 90px 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.wx-cloud {
  position: absolute;
  display: block;
  opacity: 0.92;
  will-change: transform;
  filter: drop-shadow(0 10px 18px rgba(30, 40, 60, 0.18));
}

.wx-cloud--1 {
  width: 210px;
  height: 105px;
  top: 10%;
  left: 2%;
  animation: wx-cloud-float 22s ease-in-out infinite alternate;
}

.wx-cloud--2 {
  width: 280px;
  height: 140px;
  top: 26%;
  left: 18%;
  opacity: 0.78;
  animation: wx-cloud-float 28s ease-in-out infinite alternate-reverse;
  animation-delay: -6s;
}

.wx-cloud--3 {
  width: 170px;
  height: 85px;
  top: 6%;
  right: 6%;
  left: auto;
  opacity: 0.88;
  animation: wx-cloud-float 20s ease-in-out infinite alternate;
  animation-delay: -10s;
}

.wx-cloud--4 {
  width: 250px;
  height: 125px;
  top: 40%;
  left: 44%;
  opacity: 0.7;
  animation: wx-cloud-float 32s ease-in-out infinite alternate-reverse;
  animation-delay: -4s;
}

.wx-cloud--5 {
  width: 190px;
  height: 95px;
  top: 16%;
  left: 56%;
  opacity: 0.82;
  animation: wx-cloud-float 26s ease-in-out infinite alternate;
  animation-delay: -14s;
}

.weather-clear .wx-cloud {
  opacity: 0.4;
  filter: drop-shadow(0 6px 12px rgba(30, 40, 60, 0.1));
}

.weather-cloudy .wx-cloud {
  opacity: 0.95;
}

.weather-storm .wx-cloud,
.weather-rain .wx-cloud {
  opacity: 0.55;
  filter: brightness(0.55) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
}

/* Lightning / thunder storm */
.wx-storm {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

.wx-storm.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.wx-storm__flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(255, 255, 255, 0.92) 0%, rgba(200, 220, 255, 0.35) 35%, transparent 70%);
  opacity: 0;
  mix-blend-mode: screen;
}

.wx-storm__flash.is-on {
  animation: wx-lightning-flash 0.45s ease-out;
}

.wx-storm__bolt {
  position: absolute;
  width: min(56px, 9vw);
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 0 10px #fff6a8) drop-shadow(0 0 22px #ffd84a);
}

.wx-storm__bolt.is-on {
  animation: wx-bolt-strike 0.38s ease-out;
}

.wx-storm__bolt--a {
  top: 4%;
  left: 18%;
  transform: rotate(-8deg);
}

.wx-storm__bolt--b {
  top: 8%;
  left: 58%;
  width: min(42px, 7vw);
  transform: rotate(12deg);
}

.wx-storm__bolt--c {
  top: 2%;
  left: 78%;
  width: min(48px, 8vw);
  transform: rotate(-3deg);
}

.wx-storm--footer .wx-storm__bolt--a {
  top: 0;
  left: 22%;
  width: 36px;
}

.wx-storm--footer .wx-storm__bolt--b {
  top: 4%;
  left: 70%;
  width: 28px;
}

@keyframes wx-lightning-flash {
  0% { opacity: 0; }
  8% { opacity: 1; }
  16% { opacity: 0.15; }
  28% { opacity: 0.95; }
  45% { opacity: 0.2; }
  100% { opacity: 0; }
}

@keyframes wx-bolt-strike {
  0% { opacity: 0; filter: drop-shadow(0 0 0 transparent); }
  10% { opacity: 1; }
  25% { opacity: 0.2; }
  40% { opacity: 1; }
  100% { opacity: 0; }
}

.weather-storm .hero-md__fx .wx-drop,
.weather-storm .footer-wx .wx-drop {
  width: 2.5px;
  animation-duration: 0.9s;
}

@media (prefers-reduced-motion: reduce) {
  .wx-storm__flash,
  .wx-storm__bolt {
    animation: none !important;
  }
}

/* Glass screen — бороо/цас дэлгэцэн дээр наалдсан дусал (бодит шил) */
.wx-glass,
.wx-glass-screen {
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.7s ease;
}

.wx-glass {
  position: absolute;
  inset: 0;
  z-index: 6;
}

.wx-glass-screen {
  position: fixed;
  inset: 0;
  z-index: 25;
}

.wx-glass.is-hidden,
.wx-glass-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.wx-glass__mist {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 18% 22%, rgba(255, 255, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 82% 18%, rgba(220, 235, 255, 0.1), transparent 50%),
    radial-gradient(ellipse 80% 60% at 50% 70%, rgba(180, 200, 230, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 35%, rgba(200, 220, 240, 0.04) 100%);
  mix-blend-mode: soft-light;
  backdrop-filter: blur(0.4px) saturate(1.05);
  -webkit-backdrop-filter: blur(0.4px) saturate(1.05);
}

.wx-bead {
  position: absolute;
  border-radius: 50%;
  /* Lens body: clear center + cool edge + depth rim */
  background:
    radial-gradient(ellipse 55% 45% at 30% 24%,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.35) 12%,
      transparent 28%),
    radial-gradient(ellipse 90% 90% at 50% 48%,
      rgba(230, 245, 255, 0.18) 0%,
      rgba(160, 200, 240, 0.12) 35%,
      rgba(90, 130, 180, 0.16) 62%,
      rgba(40, 70, 110, 0.2) 82%,
      rgba(20, 40, 70, 0.12) 100%);
  box-shadow:
    /* outer contact shadow on glass */
    1px 3px 5px rgba(0, 0, 0, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.15),
    /* bright glass rim */
    0 0 0 0.5px rgba(255, 255, 255, 0.35),
    /* inner volume */
    inset -2px -3px 5px rgba(30, 60, 100, 0.28),
    inset 2px 2px 4px rgba(255, 255, 255, 0.75),
    inset 0 0 8px rgba(180, 210, 240, 0.15);
  /* Refraction: blur what's behind the drop */
  backdrop-filter: blur(2.2px) contrast(1.08) saturate(1.15) brightness(1.05);
  -webkit-backdrop-filter: blur(2.2px) contrast(1.08) saturate(1.15) brightness(1.05);
  isolation: isolate;
  transform: translateZ(0);
  will-change: transform, top, left;
}

/* Primary specular highlight */
.wx-bead::before {
  content: "";
  position: absolute;
  top: 12%;
  left: 18%;
  width: 38%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 40%,
    #fff 0%,
    rgba(255, 255, 255, 0.85) 35%,
    rgba(255, 255, 255, 0.15) 70%,
    transparent 100%);
  filter: blur(0.3px);
  pointer-events: none;
}

/* Secondary glint + bottom caustic */
.wx-bead::after {
  content: "";
  position: absolute;
  right: 18%;
  bottom: 16%;
  width: 22%;
  height: 16%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow:
    -6px -10px 0 -3px rgba(255, 255, 255, 0.25),
    0 8px 6px -2px rgba(120, 170, 220, 0.2);
  pointer-events: none;
}

.wx-bead--sm {
  width: 5px;
  height: 6px;
  opacity: 0.78;
  backdrop-filter: blur(1px) brightness(1.04);
  -webkit-backdrop-filter: blur(1px) brightness(1.04);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    inset 0 -1px 2px rgba(30, 60, 100, 0.25),
    inset 1px 1px 1px rgba(255, 255, 255, 0.8);
}

.wx-bead--sm::before {
  width: 42%;
  height: 32%;
  top: 10%;
  left: 16%;
}

.wx-bead--sm::after {
  display: none;
}

.wx-bead--md {
  width: 11px;
  height: 13px;
  border-radius: 47% 49% 52% 48% / 44% 46% 54% 52%;
  opacity: 0.92;
}

.wx-bead--lg {
  width: 17px;
  height: 21px;
  border-radius: 44% 48% 55% 50% / 40% 44% 58% 55%;
  opacity: 0.96;
  backdrop-filter: blur(2.8px) contrast(1.1) saturate(1.2) brightness(1.06);
  -webkit-backdrop-filter: blur(2.8px) contrast(1.1) saturate(1.2) brightness(1.06);
}

.wx-bead--xl {
  width: 24px;
  height: 30px;
  border-radius: 42% 46% 56% 52% / 38% 42% 60% 56%;
  opacity: 1;
  backdrop-filter: blur(3.5px) contrast(1.12) saturate(1.25) brightness(1.08);
  -webkit-backdrop-filter: blur(3.5px) contrast(1.12) saturate(1.25) brightness(1.08);
  box-shadow:
    2px 5px 10px rgba(0, 0, 0, 0.28),
    0 2px 3px rgba(0, 0, 0, 0.16),
    0 0 0 0.6px rgba(255, 255, 255, 0.4),
    inset -3px -5px 8px rgba(25, 50, 90, 0.32),
    inset 3px 3px 5px rgba(255, 255, 255, 0.85),
    inset 0 0 12px rgba(170, 205, 240, 0.2);
}

/* Teardrop / gravity stretch */
.wx-bead--tear {
  border-radius: 50% 50% 48% 48% / 38% 38% 62% 62% !important;
}

.wx-bead--flat {
  border-radius: 48% 52% 50% 50% / 55% 55% 45% 45% !important;
  transform: scaleY(0.82);
}

.wx-bead--stuck {
  /* Шилэн дээр наалдсан — доош урсахгүй */
  animation: none;
}

.wx-bead--stuck.wx-bead--pulse {
  animation-name: wx-bead-pulse;
  animation-duration: 5.5s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.wx-bead--drip {
  animation-name: wx-bead-drip;
  animation-timing-function: cubic-bezier(0.33, 0.02, 0.2, 1);
  animation-iteration-count: infinite;
}

.wx-bead--drip::before {
  /* stretch highlight while dripping */
  animation: wx-bead-highlight-stretch 1s ease-in-out infinite alternate;
  animation-duration: inherit;
}

/* Wet trail left on glass while dripping */
.wx-trail {
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.35),
    rgba(200, 225, 255, 0.12) 30%,
    rgba(255, 255, 255, 0.04)
  );
  box-shadow:
    inset 0 0 2px rgba(255, 255, 255, 0.3),
    0 0 3px rgba(180, 210, 240, 0.15);
  filter: blur(0.4px);
  opacity: 0.55;
  pointer-events: none;
  animation: wx-trail-fade 8s linear forwards;
}

.wx-bead--pulse {
  animation-name: wx-bead-pulse;
  animation-duration: 5s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.wx-streak {
  position: absolute;
  width: 1.5px;
  border-radius: 2px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.5),
    rgba(200, 220, 255, 0.2) 35%,
    rgba(255, 255, 255, 0.04)
  );
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.2);
  animation-name: wx-streak-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  opacity: 0.55;
  filter: blur(0.25px);
}

.wx-bead--snow {
  background:
    radial-gradient(circle at 35% 30%, #fff 0%, rgba(255, 255, 255, 0.9) 30%, rgba(235, 245, 255, 0.5) 65%, rgba(200, 220, 255, 0.2) 100%);
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.75),
    0 2px 4px rgba(0, 0, 0, 0.12),
    inset 0 -1px 2px rgba(160, 180, 210, 0.35);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  border-radius: 50%;
  filter: blur(0.25px);
}

.wx-bead--snow::before {
  background: radial-gradient(circle, #fff, rgba(255, 255, 255, 0.4) 60%, transparent);
}

.wx-bead--snow::after {
  opacity: 0.5;
}

.wx-bead--snow.wx-bead--drip {
  animation-name: wx-snow-slide;
}

@keyframes wx-bead-drip {
  0% {
    transform: translateY(0) scale(1, 1);
    filter: brightness(1);
  }
  8% {
    transform: translateY(3px) scale(1.06, 0.9);
  }
  18% {
    transform: translateY(8px) scale(0.92, 1.12);
  }
  100% {
    transform: translateY(48vh) scale(0.78, 1.35);
    opacity: 0.12;
    filter: brightness(1.05);
  }
}

@keyframes wx-bead-highlight-stretch {
  from { transform: scale(1, 1); }
  to { transform: scale(0.85, 1.25); }
}

@keyframes wx-snow-slide {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.92; }
  100% { transform: translateY(30vh) translateX(14px) rotate(48deg); opacity: 0.15; }
}

@keyframes wx-bead-pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.03); filter: brightness(1.06); }
}

@keyframes wx-streak-fall {
  from { transform: translateY(-5vh); opacity: 0; }
  8% { opacity: 0.6; }
  to { transform: translateY(110vh); opacity: 0.1; }
}

@keyframes wx-trail-fade {
  0% { opacity: 0.5; }
  70% { opacity: 0.25; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wx-bead--drip,
  .wx-bead--pulse,
  .wx-streak,
  .wx-trail,
  .wx-bead--drip::before {
    animation: none !important;
  }

  .wx-bead {
    backdrop-filter: blur(1.2px);
    -webkit-backdrop-filter: blur(1.2px);
  }
}

@keyframes wx-cloud-float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(5vw, -10px); }
}

.wx-drop,
.wx-flake {
  position: absolute;
  top: -20px;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.wx-drop {
  width: 2px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.95));
  border-radius: 2px;
  transform: rotate(12deg);
  animation-name: wx-fall;
}

/* Classic 6-arm branched snowflake */
.wx-flake {
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.55);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23000' stroke='%23000' stroke-width='1.2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpolygon points='32,28 35.5,30 35.5,34 32,36 28.5,34 28.5,30'/%3E%3Cg%3E%3Cpath d='M32 32V8'/%3E%3Cpath d='M32 20l-7-5.5M32 20l7-5.5'/%3E%3Cpath d='M32 13l-5-4M32 13l5-4'/%3E%3Cpath d='M32 8l3.2-5  -3.2-2.5L28.8 3 32 8z'/%3E%3C/g%3E%3Cg transform='rotate(60 32 32)'%3E%3Cpath d='M32 32V8'/%3E%3Cpath d='M32 20l-7-5.5M32 20l7-5.5'/%3E%3Cpath d='M32 13l-5-4M32 13l5-4'/%3E%3Cpath d='M32 8l3.2-5  -3.2-2.5L28.8 3 32 8z'/%3E%3C/g%3E%3Cg transform='rotate(120 32 32)'%3E%3Cpath d='M32 32V8'/%3E%3Cpath d='M32 20l-7-5.5M32 20l7-5.5'/%3E%3Cpath d='M32 13l-5-4M32 13l5-4'/%3E%3Cpath d='M32 8l3.2-5  -3.2-2.5L28.8 3 32 8z'/%3E%3C/g%3E%3Cg transform='rotate(180 32 32)'%3E%3Cpath d='M32 32V8'/%3E%3Cpath d='M32 20l-7-5.5M32 20l7-5.5'/%3E%3Cpath d='M32 13l-5-4M32 13l5-4'/%3E%3Cpath d='M32 8l3.2-5  -3.2-2.5L28.8 3 32 8z'/%3E%3C/g%3E%3Cg transform='rotate(240 32 32)'%3E%3Cpath d='M32 32V8'/%3E%3Cpath d='M32 20l-7-5.5M32 20l7-5.5'/%3E%3Cpath d='M32 13l-5-4M32 13l5-4'/%3E%3Cpath d='M32 8l3.2-5  -3.2-2.5L28.8 3 32 8z'/%3E%3C/g%3E%3Cg transform='rotate(300 32 32)'%3E%3Cpath d='M32 32V8'/%3E%3Cpath d='M32 20l-7-5.5M32 20l7-5.5'/%3E%3Cpath d='M32 13l-5-4M32 13l5-4'/%3E%3Cpath d='M32 8l3.2-5  -3.2-2.5L28.8 3 32 8z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23000' stroke='%23000' stroke-width='1.2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpolygon points='32,28 35.5,30 35.5,34 32,36 28.5,34 28.5,30'/%3E%3Cg%3E%3Cpath d='M32 32V8'/%3E%3Cpath d='M32 20l-7-5.5M32 20l7-5.5'/%3E%3Cpath d='M32 13l-5-4M32 13l5-4'/%3E%3Cpath d='M32 8l3.2-5  -3.2-2.5L28.8 3 32 8z'/%3E%3C/g%3E%3Cg transform='rotate(60 32 32)'%3E%3Cpath d='M32 32V8'/%3E%3Cpath d='M32 20l-7-5.5M32 20l7-5.5'/%3E%3Cpath d='M32 13l-5-4M32 13l5-4'/%3E%3Cpath d='M32 8l3.2-5  -3.2-2.5L28.8 3 32 8z'/%3E%3C/g%3E%3Cg transform='rotate(120 32 32)'%3E%3Cpath d='M32 32V8'/%3E%3Cpath d='M32 20l-7-5.5M32 20l7-5.5'/%3E%3Cpath d='M32 13l-5-4M32 13l5-4'/%3E%3Cpath d='M32 8l3.2-5  -3.2-2.5L28.8 3 32 8z'/%3E%3C/g%3E%3Cg transform='rotate(180 32 32)'%3E%3Cpath d='M32 32V8'/%3E%3Cpath d='M32 20l-7-5.5M32 20l7-5.5'/%3E%3Cpath d='M32 13l-5-4M32 13l5-4'/%3E%3Cpath d='M32 8l3.2-5  -3.2-2.5L28.8 3 32 8z'/%3E%3C/g%3E%3Cg transform='rotate(240 32 32)'%3E%3Cpath d='M32 32V8'/%3E%3Cpath d='M32 20l-7-5.5M32 20l7-5.5'/%3E%3Cpath d='M32 13l-5-4M32 13l5-4'/%3E%3Cpath d='M32 8l3.2-5  -3.2-2.5L28.8 3 32 8z'/%3E%3C/g%3E%3Cg transform='rotate(300 32 32)'%3E%3Cpath d='M32 32V8'/%3E%3Cpath d='M32 20l-7-5.5M32 20l7-5.5'/%3E%3Cpath d='M32 13l-5-4M32 13l5-4'/%3E%3Cpath d='M32 8l3.2-5  -3.2-2.5L28.8 3 32 8z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  animation-name: wx-flake-fall;
}

@keyframes wx-fall {
  from { transform: translateY(-10vh) translateX(0); }
  to { transform: translateY(110vh) translateX(18px); }
}

@keyframes wx-flake-fall {
  from { transform: translateY(-10vh) translateX(0) rotate(0deg); }
  to { transform: translateY(110vh) translateX(28px) rotate(360deg); }
}

.weather-clear .hero-md__paint,
.hero-md__paint.weather-clear {
  background: linear-gradient(125deg, #ff6a4a 0%, #e31c23 45%, #ff8a3d 100%);
  background-size: 220% 220%;
}

.weather-cloudy .hero-md__paint,
.hero-md__paint.weather-cloudy {
  background: linear-gradient(125deg, #d94a52 0%, #b81820 50%, #8e1218 100%);
  background-size: 220% 220%;
}

.weather-rain .hero-md__paint,
.weather-storm .hero-md__paint,
.hero-md__paint.weather-rain,
.hero-md__paint.weather-storm {
  background: linear-gradient(145deg, #9e1a28 0%, #6d1018 45%, #3d0c18 100%);
  background-size: 220% 220%;
}

.weather-snow .hero-md__paint,
.hero-md__paint.weather-snow {
  background: linear-gradient(145deg, #c63a48 0%, #8e1e2a 40%, #4a6a8a 100%);
  background-size: 220% 220%;
}

.weather-night .hero-md__paint,
.hero-md__paint.weather-night {
  background: linear-gradient(145deg, #2a1840 0%, #1a1028 40%, #0d0a18 100%);
  background-size: 220% 220%;
}

.weather-night .hero-md__brand,
.weather-night .hero-md__title {
  color: #f3e9ff;
}

.hero-md__clouds,
.hero-md__stars,
.hero-md__fx {
  transition: opacity 0.75s ease;
}

.hero-md__clouds.is-hidden,
.hero-md__stars.is-hidden,
.hero-md__clouds.is-fading,
.hero-md__stars.is-fading,
.hero-md__fx.is-fading {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-md__paint,
  .hero-md__clouds,
  .hero-md__stars,
  .hero-md__fx {
    transition: none !important;
  }
}

.hero-md__stars {
  position: absolute;
  inset: 0 0 100px 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-md__stars span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px #fff;
  animation: wx-star-twinkle 2.8s ease-in-out infinite;
}

.hero-md__stars span:nth-child(1) { top: 12%; left: 8%; animation-delay: 0s; }
.hero-md__stars span:nth-child(2) { top: 18%; left: 22%; width: 2px; height: 2px; animation-delay: 0.4s; }
.hero-md__stars span:nth-child(3) { top: 8%; left: 40%; animation-delay: 0.8s; }
.hero-md__stars span:nth-child(4) { top: 28%; left: 55%; width: 2px; height: 2px; animation-delay: 1.1s; }
.hero-md__stars span:nth-child(5) { top: 14%; left: 70%; animation-delay: 0.2s; }
.hero-md__stars span:nth-child(6) { top: 36%; left: 15%; width: 2px; height: 2px; animation-delay: 1.4s; }
.hero-md__stars span:nth-child(7) { top: 22%; left: 85%; animation-delay: 0.6s; }
.hero-md__stars span:nth-child(8) { top: 42%; left: 78%; width: 2px; height: 2px; animation-delay: 1.8s; }
.hero-md__stars span:nth-child(9) { top: 6%; left: 58%; animation-delay: 1.2s; }
.hero-md__stars span:nth-child(10) { top: 32%; left: 34%; width: 2px; height: 2px; animation-delay: 0.9s; }

@keyframes wx-star-twinkle {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.35); }
}

.hero-orb--night .hero-orb__wx {
  background: #ece7f8;
  border-color: #d8d0ee;
}

.wx-preview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  margin: 0 0 0 4px;
  padding: 0 10px 0 12px;
  border: 0;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  outline: none;
  box-sizing: border-box;
  line-height: 1;
  vertical-align: middle;
  cursor: pointer;
  transition: background 0.15s ease;
}

.wx-preview:hover,
.wx-preview:focus-within {
  background: rgba(15, 23, 42, 0.05);
}

.nav-utils .nav-cart {
  margin-right: 0;
  padding-right: 12px;
  border-right: 0;
}

.wx-preview__label {
  display: none;
}

.wx-preview__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #8b93a7;
  flex-shrink: 0;
  line-height: 0;
  pointer-events: none;
}

.wx-preview__select {
  appearance: none;
  -webkit-appearance: none;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' stroke='%238b93a7' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  border-radius: 0;
  height: 32px;
  padding: 0 20px 0 2px;
  margin: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 32px;
  color: #3a4254;
  cursor: pointer;
  min-width: 0;
  box-sizing: border-box;
}

.wx-preview__select:hover,
.wx-preview__select:focus {
  background-color: transparent !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--ink);
}

@media (max-width: 800px) {
  .wx-preview__select {
    font-size: 13px;
    min-width: 0;
  }
}

.weather-rain .hero-md__sea--1,
.weather-storm .hero-md__sea--1 { animation-duration: 12s; }
.weather-rain .hero-md__sea--2,
.weather-storm .hero-md__sea--2 { animation-duration: 9s; }
.weather-rain .hero-md__sea--3,
.weather-storm .hero-md__sea--3 { animation-duration: 7s; }

.weather-clear .hero-md__sea--1 { animation-duration: 18s; }
.weather-clear .hero-md__sea--2 { animation-duration: 14s; }
.weather-clear .hero-md__sea--3 { animation-duration: 11s; }

@keyframes hero-sun-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-md__orb-brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9aa3;
}

.hero-md__orb-id {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--brand);
}

.hero-md__ocean {
  position: relative;
  z-index: 1;
  height: 130px;
  margin-top: -0.5rem;
  margin-bottom: -1px;
  overflow: hidden;
}

.hero-md__sea {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 100%;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.hero-md__sea svg {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: visible;
}

.hero-md__sea path {
  fill: currentColor;
}

.hero-md__sea--1 {
  color: rgba(255, 255, 255, 0.2);
  height: 100%;
  animation: hero-sea-flow 16s linear infinite;
}

.hero-md__sea--2 {
  color: rgba(255, 255, 255, 0.36);
  height: 90%;
  animation: hero-sea-flow 12s linear infinite reverse;
}

.hero-md__sea--3 {
  color: rgba(255, 255, 255, 0.55);
  height: 80%;
  animation: hero-sea-flow 9s linear infinite;
}

.hero-md__sea--foam {
  color: #fff;
  height: 72%;
  animation: hero-sea-flow 14s linear infinite reverse;
}

@keyframes hero-bg-shift {
  0% { background-position: 0% 40%; }
  100% { background-position: 100% 60%; }
}

@keyframes hero-glow-a {
  0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  100% { transform: translate(28%, 22%) scale(1.35); opacity: 1; }
}

@keyframes hero-glow-b {
  0% { transform: translate(0, 0) scale(1); opacity: 0.65; }
  100% { transform: translate(-30%, -18%) scale(1.4); opacity: 1; }
}

@keyframes hero-glow-c {
  0% { transform: translate(0, 0) scale(0.85); opacity: 0.45; }
  100% { transform: translate(-18%, 24%) scale(1.45); opacity: 1; }
}

@keyframes hero-orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.03); }
}

@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-sea-flow {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes hero-orb-in {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-md,
  .hero-md__glow,
  .hero-md__orb,
  .hero-md__sea,
  .hero-md__brand,
  .hero-md__title,
  .hero-md__copy .hero-actions,
  .hero-person__prop--sun,
  .wx-drop,
  .wx-flake,
  .wx-cloud,
  .hero-md__stars span {
    animation: none !important;
  }
}

.page-home .site-header {
  background: #fff;
  border-bottom: 1px solid #e6e8ee;
}

.page-home .brand {
  color: var(--ink) !important;
}

.page-home .brand > span {
  color: var(--brand) !important;
}

.page-home .nav-link {
  color: #2f3747;
}

.page-home .nav-link .ico {
  color: #7a8499;
}

.page-home .nav-link:hover,
.page-home .nav-link.is-active {
  color: var(--brand);
  background: rgba(227, 28, 35, 0.06);
}

.page-home .nav-link:hover .ico,
.page-home .nav-link.is-active .ico {
  color: var(--brand);
}

.page-home .nav-divider {
  background: #e1e4ea;
}

.page-home .nav-toggle {
  border-color: var(--line);
  background: #fff;
}

.page-home .nav-toggle span {
  background: var(--ink);
}

.page-home .cart-count {
  background: var(--brand);
  color: #fff;
}

.page-home .nav-user__btn {
  color: var(--ink);
}

.page-home .nav-account__name {
  color: inherit;
}

.page-home .nav-user__caret {
  color: inherit;
}

.page-home .nav-avatar {
  border-color: transparent;
}

.page-home .hero-md {
  padding-top: 2.5rem;
}

.hero--shop .hero-md__inner {
  min-height: 260px;
  padding-bottom: 3.25rem;
}

.hero--shop .hero-md__orb {
  width: min(220px, 58vw);
}

.page-shop .site-header {
  background: #fff;
  border-bottom: 1px solid #e6e8ee;
}

.section--shop {
  padding-top: 1.5rem;
}

.hero-mast,
.hero-arrow,
.hero-kicker,
.hero-layout,
.hero-grid,
.hero-index,
.hero-visual,
.hero-visual__panel,
.hero-features,
.hero-feat,
.hero-media,
.hero-copy,
.hero .brand-hero,
.hero-title,
.hero-lead,
.hero .form-actions,
.hero .lead {
  display: none !important;
}

@media (max-width: 900px) {
  .hero-banner {
    height: 320px;
    max-height: 320px;
  }

  .hero-banner__media img {
    object-position: 65% 25%;
  }

  .hero-banner__shade {
    background:
      linear-gradient(180deg, rgba(12, 28, 26, 0.35) 0%, rgba(12, 28, 26, 0.55) 55%, rgba(12, 28, 26, 0.75) 100%);
  }

  .hero-md__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 1.5rem;
    padding-bottom: 2.25rem;
    text-align: center;
  }

  .hero-md__lead {
    margin-inline: auto;
  }

  .hero-md__copy .hero-actions {
    justify-content: center;
  }

  .hero-md__orb {
    width: min(180px, 48vw);
  }

  .hero-md__orb-id {
    font-size: 2.6rem;
  }

  .hero-md__ocean {
    height: 96px;
  }
}

.ico {
  display: inline-block;
  vertical-align: -3px;
  flex-shrink: 0;
}

.btn .ico {
  margin-right: 2px;
}

.how {
  padding: clamp(36px, 5vw, 56px) 0;
  background: #fff;
  border-bottom: 1px solid #e6e8ee;
}

.how-head {
  margin-bottom: clamp(24px, 3.5vw, 36px);
  max-width: 36rem;
}

.how-head h2 {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.how-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.how-step {
  position: relative;
  min-width: 0;
  padding: 0;
}

.how-step__mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.how-step__num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--brand);
}

.how-step__ico {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7e3e1;
  background: #f7faf9;
  color: var(--brand);
  flex-shrink: 0;
}

.how-step__title {
  display: block;
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.how-step__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 800px) {
  .how-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .how-step {
    padding: 18px 0;
    border-bottom: 1px solid #e6e8ee;
  }

  .how-step:first-child {
    padding-top: 0;
  }

  .how-step:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

.section {
  padding: clamp(36px, 5vw, 56px) 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 8px;
  border-bottom: 0;
  padding-bottom: 0;
}

.section-head h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.section-head a {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}

.section-head a:hover {
  text-decoration: underline !important;
}

.section-intro {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

@media (max-width: 1100px) {
  .course-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Product-style cards — reference e-commerce grid */
.p-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8eaee;
  border-radius: 0;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  animation: fadeUp 0.45s ease both;
}

.p-card:hover {
  border-color: #d5d9e0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transform: none;
}

.p-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #f3f4f6;
  overflow: hidden;
  text-decoration: none !important;
}

.p-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.p-card:hover .p-card__media img {
  transform: scale(1.03);
}

.p-card__ph {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  min-height: 100%;
  background: #f3f4f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9aa3b2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.p-card__ph .ph-brand {
  font-size: 13px;
  font-weight: 600;
  color: #9aa3b2;
}

.p-card__ph .ph-brand span {
  color: var(--brand);
}

.p-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}

.p-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 2px;
  line-height: 1.2;
}

.p-badge--new {
  background: #5b8def;
  color: #fff;
  margin-left: auto;
}

.p-badge--sale {
  background: #e85d8a;
  color: #fff;
  margin-left: auto;
}

.p-badge--type {
  background: rgba(255, 255, 255, 0.92);
  color: #5a6578;
  font-weight: 500;
  border: 1px solid #e8eaee;
}

.p-card__body {
  padding: 14px 16px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.p-card__brand {
  font-size: 12px;
  color: #8b93a7;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #c9ced9;
  width: fit-content;
}

.p-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.p-card__title a {
  color: inherit;
  text-decoration: none !important;
}

.p-card__title a:hover {
  color: var(--brand);
}

.p-card__meta {
  display: none;
}

.p-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
  padding-top: 2px;
}

.p-card__price-now {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.p-card__price-old {
  font-size: 13px;
  font-weight: 500;
  color: #9aa3b2;
  text-decoration: line-through;
}

.p-card__bar {
  padding: 10px 12px 12px;
  border-top: 1px solid #eef0f4;
  background: #fff;
  margin-top: auto;
}

.p-card__bar .btn {
  gap: 8px;
  min-height: 38px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.p-card__bar .btn-primary {
  background-color: var(--brand);
  background-image: none;
  color: #fff;
  border: 1px solid var(--brand);
  transition: background-color 0.85s ease, border-color 0.85s ease, color 0.85s ease, filter 0.85s ease;
}

.p-card__bar .btn-primary:hover {
  background-color: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
}

/* Өдөр / бороо / цас / шөнө — товчны өнгө тод ялгагдана */
.weather-clear .p-card__bar .btn-primary {
  background-color: #f05a28;
  border-color: #f05a28;
  box-shadow: 0 0 0 1px rgba(255, 200, 120, 0.35);
}

.weather-clear .p-card__bar .btn-primary:hover {
  background-color: #d94818;
  border-color: #d94818;
}

.weather-cloudy .p-card__bar .btn-primary {
  background-color: #d0343c;
  border-color: #d0343c;
}

.weather-cloudy .p-card__bar .btn-primary:hover {
  background-color: #b0222a;
  border-color: #b0222a;
}

.weather-rain .p-card__bar .btn-primary,
.weather-storm .p-card__bar .btn-primary {
  background-color: #7a1420;
  border-color: #7a1420;
}

.weather-rain .p-card__bar .btn-primary:hover,
.weather-storm .p-card__bar .btn-primary:hover {
  background-color: #5c1018;
  border-color: #5c1018;
}

.weather-snow .p-card__bar .btn-primary {
  background-color: #4f7fa8;
  border-color: #4f7fa8;
}

.weather-snow .p-card__bar .btn-primary:hover {
  background-color: #3d678c;
  border-color: #3d678c;
}

.weather-night .p-card__bar .btn-primary {
  background-color: #5b4d96;
  border-color: #5b4d96;
  box-shadow: 0 0 12px rgba(120, 100, 200, 0.28);
}

.weather-night .p-card__bar .btn-primary:hover {
  background-color: #463a78;
  border-color: #463a78;
}

.p-card__bar form {
  margin: 0;
}

.shop-toolbar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.shop-search {
  display: flex;
  align-items: center;
  height: 42px;
  max-width: 420px;
  background: #f4f5f7;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.shop-search:focus-within {
  background: #fff;
  box-shadow: 0 0 0 1.5px rgba(15, 23, 42, 0.14);
}

.shop-search__field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 42px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.shop-search__field:focus-within {
  border: 0;
  box-shadow: none;
}

.shop-search__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 42px;
  color: #8b93a7;
  flex-shrink: 0;
  pointer-events: none;
  line-height: 0;
}

.shop-search__field input,
.shop-search__field input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="file"]) {
  flex: 1;
  align-self: center;
  min-width: 0;
  max-width: none;
  width: 100%;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 36px 0 0 !important;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 500;
  line-height: 42px !important;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}

.shop-search__field input:focus,
.shop-search__field input:not([type="radio"]):not([type="checkbox"]):focus {
  outline: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.shop-search__field input::-webkit-search-decoration,
.shop-search__field input::-webkit-search-cancel-button,
.shop-search__field input::-webkit-search-results-button,
.shop-search__field input::-webkit-search-results-decoration {
  display: none;
  -webkit-appearance: none;
  appearance: none;
}

.shop-search__field input::placeholder {
  color: #9aa3b5;
  line-height: 42px;
  opacity: 1;
}

.shop-search__clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #8b93a7;
  text-decoration: none !important;
  font-size: 18px;
  line-height: 1;
}

.shop-search__clear:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--ink);
}

.shop-search__btn {
  flex-shrink: 0;
  height: 42px;
  border: 0;
  border-radius: 0;
  padding: 0 16px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 42px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.shop-search__btn:hover {
  background: var(--brand-hover);
}

.shop-types {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.shop-type {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #6b7385;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.shop-type:hover {
  color: var(--ink);
}

.shop-type.is-active {
  color: var(--ink);
  border-bottom-color: var(--brand);
  background: transparent;
}

.shop-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.shop-empty p {
  margin: 0;
}

.shop-pager {
  margin-top: 1.5rem;
}

/* legacy wrappers kept for other pages */
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.shop-filters select {
  min-height: 40px;
  border: 1px solid var(--border, #e1e3e8);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  font: inherit;
}

.shop-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.shop-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--text, #0f172a);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.shop-tab:hover {
  background: rgba(227, 28, 35, 0.12);
  color: var(--brand, #e31c23);
}

.shop-tab.is-active {
  background: var(--brand, #e31c23);
  color: #fff;
}

@media (max-width: 560px) {
  .shop-search {
    max-width: none;
  }

  .shop-search__btn {
    padding: 0 14px;
  }

  .shop-types {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .shop-types::-webkit-scrollbar {
    display: none;
  }

  .shop-type {
    white-space: nowrap;
  }
}

.lib-heading {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
}

.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}

.lib-card {
  border: 1px solid var(--border, #e1e3e8);
  border-radius: 12px;
  padding: 16px;
  background: linear-gradient(180deg, #fff 0%, #f8faf9 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lib-card__top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lib-key {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: #0f172a;
  border-radius: 8px;
}

.lib-key code {
  color: #a7f3d0;
  font-size: 13px;
  word-break: break-all;
}

.lib-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
  margin-top: 4px;
}

.progress-bar > span {
  display: block;
  height: 100%;
  background: var(--brand, #e31c23);
  border-radius: inherit;
}

/* Course detail (product) page */
.pd {
  padding: 28px 0 8px;
  background: #fafbfc;
}

.pd-layout {
  display: grid;
  grid-template-columns: 1.05fr 1.1fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.pd-media__main {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.pd-media__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-media__ph {
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.pd-media__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: flex-end;
}

.pd-info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 22px 20px;
}

.pd-brand {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.pd-title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.pd-rating {
  margin-bottom: 10px;
  font-size: 14px;
}

.pd-excerpt {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.pd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
}

.pd-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pd-meta .ico {
  color: #94a3b8;
}

.pd-price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.pd-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
}

.pd-price-old {
  font-size: 15px;
  color: var(--muted);
  text-decoration: line-through;
}

.pd-actions {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.pd-actions form {
  margin: 0;
}

.btn-lg {
  min-height: 48px;
  padding: 12px 20px;
  font-size: 15px;
}

.pd-points {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.pd-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
}

.pd-points .ico {
  color: var(--ok);
  flex-shrink: 0;
}

.pd-side {
  display: grid;
  gap: 14px;
}

.pd-side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.pd-side-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.pd-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.pd-side-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
}

.pd-side-list .ico {
  color: var(--ok);
  margin-top: 2px;
  flex-shrink: 0;
}

.pd-related {
  display: grid;
  gap: 10px;
}

.pd-related__item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  text-decoration: none !important;
  color: inherit;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.pd-related__item:hover {
  background: #f8fafc;
}

.pd-related__item img,
.pd-related__ph {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.pd-related__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pd-related__meta strong {
  font-size: 13px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pd-related__meta span {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
}

.pd-below {
  background: #fff;
  padding-top: 8px;
}

.pd-below-grid {
  display: grid;
  gap: 16px;
  max-width: 820px;
}

.pd-section-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.pd-desc {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.pd-lesson-section {
  margin: 14px 0 6px;
  font-size: 14px;
  font-weight: 700;
}

.pd-review {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 14px;
}

.pd-review:first-of-type {
  border-top: 0;
  padding-top: 0;
}

/* Legacy course-item kept for safety */
.course-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  color: inherit;
  text-decoration: none !important;
  transition: border-color 0.15s ease, transform 0.15s ease;
  animation: fadeUp 0.5s ease both;
}

.course-item:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.course-item-link {
  display: block;
  color: inherit;
  text-decoration: none !important;
  flex: 1;
}

.course-item-link:hover h3 {
  color: var(--brand);
}

.course-actions {
  padding: 0 14px 14px;
}

.course-actions .btn-block {
  width: 100%;
}

.course-thumb {
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  object-fit: cover;
  width: 100%;
}

.course-thumb-ph {
  aspect-ratio: 16 / 9;
  background: #f3f4f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9aa3b2;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  position: relative;
}

.course-thumb-ph::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--brand);
}

.course-thumb-ph span,
.course-thumb-ph .ph-brand span {
  color: #7fd4cf;
}

.ph-play {
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.ph-brand {
  font-size: 18px;
}

.meta-icons span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta-icons span:not(:last-child)::after {
  margin-left: 7px;
}

.meta-icons .ico {
  color: #888;
}

.course-body {
  padding: 14px;
}

.course-body h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink);
}

.meta {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.meta span:not(:last-child)::after {
  content: "·";
  margin: 0 7px;
  color: #bbb;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.price {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 13px;
}

.sale-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--sale);
  background: #fce4ec;
  padding: 2px 6px;
  border-radius: 2px;
}

.site-footer {
  position: relative;
  flex-shrink: 0;
  margin-top: auto;
  border-top: 0;
  padding: 28px 0 28px;
  font-size: 13px;
  background:
    linear-gradient(160deg, #f03a3f 0%, var(--brand) 55%, #c4161c 100%);
  color: rgba(255, 255, 255, 0.82);
  transition: opacity 0.55s ease, background 0.9s ease;
}

.site-footer.is-wx-fading {
  opacity: 0.35;
}

.footer-wave {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 42px;
  line-height: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.footer-wave__sea {
  position: absolute;
  left: 0;
  top: 0;
  width: 200%;
  height: 100%;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.footer-wave__sea svg {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: visible;
}

.footer-wave__sea path {
  fill: #ffffff;
}

.footer-wave__sea--a {
  opacity: 1;
  animation: footer-wave-flow 14s linear infinite;
}

.footer-wave__sea--b {
  opacity: 0.55;
  animation: footer-wave-flow 9s linear infinite reverse;
}

@keyframes footer-wave-flow {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .footer-wave__sea {
    animation: none !important;
  }
}

.site-footer > .container {
  position: relative;
  z-index: 2;
  padding-top: 0.35rem;
}

.footer-wx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.footer-wx__fx,
.footer-wx__clouds,
.footer-wx__stars {
  position: absolute;
  inset: 0;
  transition: opacity 0.75s ease;
}

.footer-wx__clouds.is-hidden,
.footer-wx__stars.is-hidden,
.footer-wx__fx.is-fading,
.footer-wx__clouds.is-fading,
.footer-wx__stars.is-fading {
  opacity: 0;
}

.footer-wx .footer-cloud {
  opacity: 0.55;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18));
}

.weather-clear .footer-wx .footer-cloud {
  opacity: 0.28;
}

.weather-cloudy .footer-wx .footer-cloud {
  opacity: 0.7;
}

.footer-wx .wx-cloud--1 {
  width: min(220px, 36vw);
  top: 18%;
  left: -2%;
}

.footer-wx .wx-cloud--2 {
  width: min(180px, 30vw);
  top: 8%;
  left: 28%;
}

.footer-wx .wx-cloud--3 {
  width: min(200px, 34vw);
  top: 22%;
  right: 18%;
  left: auto;
}

.footer-wx .wx-cloud--4 {
  width: min(160px, 28vw);
  top: 6%;
  right: -1%;
  left: auto;
}

.footer-wx__stars span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 5px #fff;
  animation: wx-star-twinkle 2.8s ease-in-out infinite;
}

.footer-wx__stars span:nth-child(1) { top: 18%; left: 10%; }
.footer-wx__stars span:nth-child(2) { top: 30%; left: 22%; animation-delay: 0.4s; }
.footer-wx__stars span:nth-child(3) { top: 14%; left: 40%; animation-delay: 0.8s; }
.footer-wx__stars span:nth-child(4) { top: 42%; left: 55%; width: 3px; height: 3px; animation-delay: 1.1s; }
.footer-wx__stars span:nth-child(5) { top: 20%; left: 72%; animation-delay: 0.2s; }
.footer-wx__stars span:nth-child(6) { top: 48%; left: 85%; animation-delay: 1.4s; }
.footer-wx__stars span:nth-child(7) { top: 12%; left: 60%; animation-delay: 0.6s; }
.footer-wx__stars span:nth-child(8) { top: 36%; left: 8%; animation-delay: 1.8s; }

.footer-wx .wx-drop,
.footer-wx .wx-flake {
  z-index: 1;
}

.weather-clear .site-footer {
  background: linear-gradient(160deg, #ff6a4a 0%, #e31c23 45%, #ff8a3d 100%);
}

.weather-cloudy .site-footer {
  background: linear-gradient(160deg, #d94a52 0%, #b81820 50%, #8e1218 100%);
}

.weather-rain .site-footer,
.weather-storm .site-footer {
  background: linear-gradient(160deg, #9e1a28 0%, #6d1018 45%, #3d0c18 100%);
}

.weather-snow .site-footer {
  background: linear-gradient(160deg, #c63a48 0%, #8e1e2a 40%, #4a6a8a 100%);
}

.weather-night .site-footer {
  background: linear-gradient(160deg, #2a1840 0%, #1a1028 45%, #0d0a18 100%);
}

@media (prefers-reduced-motion: reduce) {
  .footer-wx__fx,
  .footer-wx__clouds,
  .footer-wx__stars {
    transition: none !important;
  }
}

.site-footer .brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff !important;
  text-decoration: none !important;
  line-height: 1.1;
}

.site-footer .brand > span {
  color: #fff !important;
  font-weight: 800;
}

.footer-desc {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  max-width: 36ch;
  white-space: pre-line;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px 32px;
  margin-bottom: 24px;
  align-items: start;
}

.footer-col strong {
  display: block;
  color: #fff;
  font-size: 13px;
  margin-bottom: 12px;
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-col a .ico {
  color: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
  opacity: 0.95;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-domain {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none !important;
  font-weight: 600;
}

.footer-domain:hover {
  color: #fff;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 20px;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }

  .footer-desc {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .site-footer {
    padding: 28px 0 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }
}

.flash {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: min(560px, 100%);
  margin: 18px 0 6px;
  padding: 11px 16px 11px 13px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  animation: flashIn 0.32s ease both;
}

@keyframes flashIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.flash::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.flash-success {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
}

.flash-success::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.2 8.2 6.4 11.2 12.8 4.4' stroke='%231a7a3a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.flash-info {
  background: #fff;
}

.flash-info::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='8' r='5.6' stroke='%235a6578' stroke-width='1.5'/%3E%3Cpath d='M8 7.2v3.4M8 5h.01' stroke='%235a6578' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

.flash-error {
  background: #fff;
  border-color: rgba(227, 28, 35, 0.18);
  color: #7a1c22;
}

.flash-error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 4.2v5M8 11.2h.01' stroke='%23e31c23' stroke-width='1.7' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='8' r='5.6' stroke='%23e31c23' stroke-width='1.5'/%3E%3C/svg%3E");
}

.auth-wrap,
.page-narrow {
  width: min(440px, calc(100% - 32px));
  margin: 32px auto;
}

.auth-page {
  display: flex;
  justify-content: center;
  padding: 40px var(--pad) 56px;
  background: #f7f8fa;
  min-height: calc(100dvh - 65px);
}

.auth-card {
  width: min(380px, 100%);
  margin: 0 auto;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.auth-card h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-card label {
  margin: 10px 0 4px;
  font-size: 12px;
}

.auth-card input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="file"]) {
  padding: 8px 10px;
  font-size: 14px;
}

.auth-form-fields label {
  margin-top: 12px;
}

.auth-form-fields label:first-of-type {
  margin-top: 0;
}

.auth-sub {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.auth-alert {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.auth-alert--ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.auth-alert--err {
  background: #fff5f4;
  border: 1px solid #f5c2c0;
  color: #b42318;
}

.btn-block {
  width: 100%;
  margin-top: 14px;
  min-height: 46px;
}

.auth-card .btn-block {
  margin-top: 12px;
  min-height: 40px;
  font-size: 14px;
}

.remember-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 500 !important;
  margin-top: 12px !important;
}

.remember-row input {
  width: auto !important;
}

.auth-switch {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* Auth popup modal */
body.auth-modal-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.auth-modal.is-open {
  display: flex;
}

.auth-modal[hidden] {
  display: none !important;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 34, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.auth-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  max-height: min(92dvh, 92vh);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(12, 18, 34, 0.28);
  padding: 22px 24px 26px;
}

.auth-modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.auth-modal__logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: 0 6px 16px rgba(227, 28, 35, 0.22);
}

.auth-modal__logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.auth-modal__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #f1f4f8;
  color: #64748b;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-modal__close:hover {
  background: #e8edf4;
  color: var(--ink);
}

.auth-modal__hello {
  margin: 0 0 2px;
  font-size: 14px;
  color: var(--muted);
}

.auth-modal__title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink);
}

.auth-modal__title span {
  color: var(--brand);
}

.auth-modal__errors {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #fff5f4;
  border: 1px solid #f5c2c0;
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 13px;
}

.auth-modal__errors p {
  margin: 0;
}

.auth-modal__errors p + p {
  margin-top: 4px;
}

.auth-modal__form .auth-field {
  margin: 0 0 12px;
}

.auth-modal__form .auth-field label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #3a4050;
}

.auth-field__control {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-field__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.auth-field__toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-field__toggle:hover {
  color: var(--ink);
  background: #f1f4f8;
}

.auth-modal__form .auth-field__control input {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-modal__form .auth-field__control input:focus {
  outline: none;
  border-color: rgba(227, 28, 35, 0.55);
  box-shadow: 0 0 0 3px rgba(227, 28, 35, 0.1);
}

.auth-modal__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 4px;
  flex-wrap: wrap;
}

.auth-modal__meta-row .remember-row {
  margin: 0 !important;
  font-size: 13px;
  color: #4b5160;
}

.auth-modal__forgot {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
}

.auth-modal__forgot:hover {
  text-decoration: underline;
}

.auth-modal__form .btn-block {
  margin-top: 14px;
  min-height: 46px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
}

.auth-modal__footer {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.auth-modal__link {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 700;
  color: var(--brand);
  cursor: pointer;
}

.auth-modal__link:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .auth-modal {
    align-items: flex-end;
    padding: 0;
  }

  .auth-modal__dialog {
    width: 100%;
    max-height: min(94dvh, 94vh);
    border-radius: 18px 18px 0 0;
    padding: 18px 18px calc(22px + env(safe-area-inset-bottom, 0));
  }
}

.social-auth {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}

.btn-social {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  font-weight: 600;
  padding: 11px 16px;
  text-decoration: none !important;
  min-height: 44px;
  border-radius: var(--radius);
  box-sizing: border-box;
}

.btn-google {
  background: #fff;
  color: #1c1c1c;
}

.btn-google:hover {
  background: #f7f7f7;
  border-color: #bbb;
}

.auth-modal .social-auth {
  margin: 0 0 2px;
}

.auth-modal .auth-divider {
  margin: 14px 0 10px;
}

.auth-modal .auth-divider span {
  flex-shrink: 0;
}

.btn-facebook {
  background: #1877f2;
  color: #fff;
  border-color: #1877f2;
}

.btn-facebook:hover {
  background: #166fe5;
  color: #fff;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.panel h1 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0 4px;
}

input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="file"]),
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 10px;
  font: inherit;
  background: #fff;
}

input:not([type="radio"]):not([type="checkbox"]):focus,
textarea:focus,
select:focus {
  outline: 2px solid #c2d6ff;
  border-color: var(--brand);
}

/* Auth modal fields — must win over global input padding */
.auth-modal .auth-field__control > input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="file"]) {
  padding: 12px 44px 12px 44px;
}

.auth-modal .auth-field__control > input:not([type="radio"]):not([type="checkbox"]):focus {
  outline: none;
  border-color: rgba(227, 28, 35, 0.55);
  box-shadow: 0 0 0 3px rgba(227, 28, 35, 0.1);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.form-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 500 !important;
}

.admin-check input {
  width: auto !important;
}

.course-hero {
  padding: 24px 0 8px;
}

.course-layout {
  display: grid;
  grid-template-columns: 1.55fr 0.75fr;
  gap: 20px;
  align-items: start;
}

.course-layout > div > h1 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.course-cover {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}

.lesson-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lesson-list li {
  border-top: 1px solid var(--line);
}

.lesson-list a,
.lesson-list span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}

.lesson-list a:hover {
  color: var(--brand);
}

.buy-box {
  position: sticky;
  top: 72px;
}

.buy-box .price {
  font-size: 26px;
}

.buy-box .btn {
  width: 100%;
}

.buy-points {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}

.buy-points li {
  padding: 5px 0;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.buy-points li:first-child {
  border-top: none;
}

.buy-points .ico {
  color: var(--ok);
  margin-top: 2px;
}

.trust {
  display: none;
}

.contact {
  padding: clamp(40px, 6vw, 64px) 0;
  background: #f7f9f8;
  border-top: 1px solid #e6e8ee;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.contact-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.contact-copy > p {
  margin: 0 0 22px;
  max-width: 28rem;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.contact-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.contact-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.contact-points .ico {
  color: var(--brand);
  flex-shrink: 0;
}

.contact-form {
  background: #fff;
  border: 1px solid #e1e6e4;
  padding: clamp(20px, 3vw, 28px);
}

.contact-form label {
  margin-top: 12px;
}

.contact-form label:first-of-type {
  margin-top: 0;
}

.contact-form textarea {
  min-height: 120px;
}

.contact-form .btn {
  margin-top: 16px;
  min-height: 42px;
  padding-inline: 18px;
}

@media (max-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

.learn-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 12px;
  padding: 12px 0 40px;
}

.player-shell {
  background: #111;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  -webkit-user-select: none;
  user-select: none;
}

.player-shell video {
  width: 100%;
  max-height: 70vh;
  background: #000;
  -webkit-user-select: none;
  user-select: none;
}

.player-shell video::-webkit-media-controls-download-button {
  display: none !important;
}

.player-shell video::-webkit-media-controls-enclosure {
  overflow: hidden;
}

.sidebar-lessons {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  max-height: 75vh;
  overflow: auto;
}

.sidebar-lessons a {
  display: block;
  padding: 8px 6px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
}

.sidebar-lessons a.active,
.sidebar-lessons a:hover {
  background: #eef4ff;
  color: var(--brand);
}

.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  background: #eef4ff;
  color: var(--brand);
}

.badge-paid {
  background: #edf8f0;
  color: var(--ok);
}

.badge-pending {
  background: #fff1f0;
  color: var(--danger);
}

.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.search-bar input {
  max-width: 320px;
}

.muted {
  color: var(--muted);
}

.stack > * + * {
  margin-top: 12px;
}

.split {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
}

.progress-bar {
  margin-top: 10px;
  height: 6px;
  background: #ececec;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: var(--brand);
}

.order-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.order-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.order-row:first-child {
  padding-top: 0;
}

.badge-soft {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border: 1px solid var(--line);
  background: #f5f5f5;
}

.badge-ok {
  background: #e8f7ee;
  border-color: #b7e0c5;
  color: #147a3c;
}

.badge-wait {
  background: #fff6e5;
  border-color: #f0d9a0;
  color: #8a5a00;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 650;
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid #e6e8ee;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 16px;
    gap: 0;
    z-index: 50;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  }

  .nav-links.is-open {
    display: flex;
  }

  .page-home .nav-links {
    background: #fff;
  }

  .page-home .nav-links .nav-link,
  .page-home .nav-links .nav-user__btn,
  .page-home .nav-links .nav-account__name {
    color: #2f3747;
  }

  .page-home .nav-links .nav-link .ico,
  .page-home .nav-links .nav-user__caret {
    color: #7a8499;
  }

  .page-home .nav-links .nav-link:hover,
  .page-home .nav-links .nav-link.is-active {
    color: var(--brand);
    background: rgba(227, 28, 35, 0.06);
  }

  .page-home .nav-links .nav-link:hover .ico,
  .page-home .nav-links .nav-link.is-active .ico {
    color: var(--brand);
  }

  .page-home .nav-links .nav-divider {
    background: #e1e4ea;
  }

  .page-home .nav-links .cart-count {
    background: var(--brand);
    color: #fff;
  }

  .nav-primary,
  .nav-utils {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--pad);
  }

  .nav-primary {
    border-right: 0;
    padding-right: 0;
    margin-right: 0;
    margin-bottom: 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  }

  .nav-utils .nav-cart,
  .wx-preview {
    margin: 0;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    width: 100%;
    justify-content: flex-start;
  }

  .wx-preview__select {
    flex: 1;
    background-position: right 8px center;
    padding-right: 26px;
  }

  .nav-divider {
    display: none;
  }

  .nav-link,
  .nav-user,
  .nav-cta {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
    margin: 0;
    border-radius: 10px;
  }

  .nav-user {
    width: 100%;
  }

  .nav-user__btn {
    width: 100%;
    justify-content: flex-start;
    padding: 8px 10px;
    border-radius: 10px;
  }

  .nav-user__menu {
    position: static;
    box-shadow: none;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    margin: 0 0 8px;
    min-width: 0;
    width: 100%;
  }

  .nav-account__name {
    max-width: none;
  }

  .nav-logout {
    width: 100%;
  }

  .nav-logout .nav-link {
    width: 100%;
  }

  .site-header {
    position: sticky;
  }

  .order-row {
    flex-direction: column;
  }

  .course-layout,
  .pd-layout,
  .learn-layout,
  .footer-grid,
  .trust-grid,
  .profile-grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .course-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .buy-box {
    position: static;
  }

  .pd {
    padding-top: 16px;
  }

  .pd-info {
    padding: 18px 16px;
  }

  .pd-media__main {
    max-height: min(70vw, 420px);
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 520px) {
  .course-grid {
    grid-template-columns: 1fr;
  }

  .p-card__media {
    aspect-ratio: 16 / 10;
  }
}

@media (min-width: 801px) and (max-width: 1024px) {
  .pd-layout {
    grid-template-columns: 1fr 1fr;
  }

  .pd-side {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .course-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* On-site QR checkout */
.pay-page--wire { width: min(720px, calc(100% - 1.25rem)); }
.pay-card--wire { padding-bottom: 16px; }
.wire-onsite-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.wire-frame-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fb;
  min-height: 560px;
}
.wire-frame {
  display: block;
  width: 100%;
  height: min(72vh, 640px);
  border: 0;
  background: #fff;
}
.wire-onsite-hint {
  margin: 10px 0 0;
  font-size: 12px;
  text-align: center;
}
.wire-poll-status {
  margin: 12px 0 0;
  font-size: 12px;
  text-align: center;
}
/* Cart pay modal — phone / tablet / PC */
.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}
.pay-modal.is-open {
  display: flex;
}
.pay-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  -webkit-tap-highlight-color: transparent;
}
.pay-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(92dvh, 92vh);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.2);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.pay-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.pay-modal__head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.pay-modal__close {
  border: 0;
  background: #f1f5f9;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.pay-modal__body {
  padding: 14px 16px 20px;
}
.pay-modal__amount {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 12px;
}
.pay-modal .pay-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 12px;
}
.pay-modal .pay-qr,
.pay-modal .pay-qr-fallback {
  width: min(180px, 46vw);
  height: min(180px, 46vw);
  max-width: 200px;
  max-height: 200px;
}
.pay-modal .bank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: none;
  overflow: visible;
}
.pay-modal .bank-card {
  min-height: 52px;
  padding: 10px;
}
.pay-modal .bank-meta strong {
  font-size: 12px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pay-modal .btn-block {
  min-height: 48px;
  width: 100%;
}

@media (max-width: 380px) {
  .pay-modal .bank-grid {
    grid-template-columns: 1fr;
  }
  .pay-modal .pay-qr,
  .pay-modal .pay-qr-fallback {
    width: 150px;
    height: 150px;
  }
}

@media (min-width: 600px) {
  .pay-modal {
    align-items: center;
    padding: 24px;
  }
  .pay-modal__dialog {
    width: min(480px, 100%);
    max-height: min(88dvh, 88vh);
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
    padding-bottom: 0;
  }
  .pay-modal .pay-qr,
  .pay-modal .pay-qr-fallback {
    width: 200px;
    height: 200px;
  }
  .pay-modal .bank-grid {
    max-height: 280px;
    overflow: auto;
  }
}

@media (min-width: 1024px) {
  .pay-modal__dialog {
    width: min(440px, 100%);
  }
  .pay-modal__amount {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  .wire-frame { height: 70vh; }
  .wire-frame-wrap { min-height: 420px; }

  .pay-qr,
  .pay-qr-fallback {
    width: min(200px, 56vw);
    height: min(200px, 56vw);
  }

  .pay-amount {
    font-size: 28px;
  }

  .pay-card {
    padding: 20px 16px;
  }
}

@media (max-width: 520px) {
  .bank-grid {
    grid-template-columns: 1fr;
  }

  .pay-page {
    width: min(100%, calc(100% - 1rem));
  }
}

