/* GET4CARD — design system (dark + light) */
@view-transition {
  navigation: none;
}
:root,
[data-theme="dark"] {
  /* Brand accent RGB — used by rgba(var(--accent-rgb), a) across the storefront */
  --accent-rgb: 255, 45, 120;
  --secondary-rgb: 139, 92, 246;
  --bg: #05070b;
  --bg-elevated: #0c1018;
  --bg-card: #121826;
  --bg-card-hover: #171f30;
  --bg-soft: #0a0f18;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --line: rgba(255, 255, 255, 0.28);
  --text: #f4f7fb;
  --text-soft: #a7b0c0;
  --text-muted: #b4bccb;
  --text-faint: rgba(255, 255, 255, 0.62);
  --muted: var(--text-muted);
  --pink: #ff2d78;
  --pink-hot: #ff7eab;
  --pink-deep: #d9165a;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --green: #34d399;
  --gold: #f59e0b;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --glow-pink: 0 10px 30px rgba(var(--accent-rgb), 0.35);
  --glow-purple: 0 0 60px rgba(var(--secondary-rgb), 0.35);
  --header-bg: transparent;
  --dropdown-bg: #111827;
  --sidebar-bg: #0b1018;
  --input-bg: #101623;
  --badge-bg: rgba(var(--secondary-rgb), 0.15);
  --badge-text: #c4b5fd;
  --ring: rgba(var(--accent-rgb), 0.45);
  --hero-spot: radial-gradient(circle at 70% 40%, rgba(var(--secondary-rgb), 0.28), transparent 42%),
    radial-gradient(circle at 20% 10%, rgba(var(--accent-rgb), 0.12), transparent 35%);
  --surface-1: #121826;
  --code: #93c5fd;
  --ok: #86efac;
  --warn: #fcd34d;
  --danger: #fca5a5;
  /* Semantic aliases (color themes remapped via data-color-theme) */
  --background: var(--bg);
  --background-secondary: var(--bg-soft);
  --surface: var(--bg-card);
  --surface-elevated: var(--bg-elevated);
  --text-primary: var(--text);
  --text-secondary: var(--text-soft);
  --primary: var(--pink);
  --primary-hover: var(--pink-hot);
  --primary-soft: rgba(var(--accent-rgb), 0.14);
  --secondary: var(--purple);
  --gradient-primary: linear-gradient(135deg, var(--pink), var(--purple));
  --success: var(--ok);
  --warning: var(--warn);
  --info: var(--blue);
  --glow: var(--glow-pink);
  /* iOS / notched device chrome */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --app-tab-clearance: 0px;
  --app-pwa-clearance: 0px;
  --app-dock-gap: 1.1rem;
  --store-header-offset: calc(4rem + var(--safe-top));
  --surface-ghost: rgba(255, 255, 255, 0.03);
  --surface-ghost-2: rgba(255, 255, 255, 0.02);
  --surface-soft: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --on-accent: #ffffff;
  --placeholder: rgba(255, 255, 255, 0.52);
  --icon: var(--text-soft);
  --chrome-bg: #05070b;
  /* Semantic surfaces — dark (parity with light tokens used by wallet/status UI) */
  --warn-bg: rgba(245, 158, 11, 0.12);
  --warn-border: rgba(245, 158, 11, 0.38);
  --warn-text: #fbbf24;
  --info-accent-bg: rgba(var(--accent-rgb), 0.12);
  --info-accent-border: rgba(var(--accent-rgb), 0.32);
  --badge-ok-bg: rgba(52, 211, 153, 0.14);
  --badge-ok-text: #86efac;
  --badge-ok-border: rgba(52, 211, 153, 0.35);
  --badge-fee-bg: rgba(var(--accent-rgb), 0.14);
  --badge-fee-text: var(--pink-hot);
  --badge-fee-border: rgba(var(--accent-rgb), 0.35);
  --badge-info-bg: rgba(59, 130, 246, 0.14);
  --badge-info-text: #93c5fd;
  --badge-info-border: rgba(59, 130, 246, 0.35);
  --error: var(--danger);
  /* Theme-aware overlays (prefer over raw rgba(255,255,255,*) in components) */
  --overlay-01: rgba(255, 255, 255, 0.03);
  --overlay-02: rgba(255, 255, 255, 0.05);
  --overlay-04: rgba(255, 255, 255, 0.08);
  --overlay-06: rgba(255, 255, 255, 0.12);
  --overlay-08: rgba(255, 255, 255, 0.16);
  --nested-surface: #171f30;
  color-scheme: dark;
}

html[data-theme="light"] {
  --accent-rgb: 255, 45, 120;
  --secondary-rgb: 109, 40, 217;
  --bg: #eef1f6;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f7f8fb;
  --bg-soft: #e4e8f0;
  --border: rgba(15, 23, 42, 0.16);
  --border-strong: rgba(15, 23, 42, 0.24);
  --line: rgba(15, 23, 42, 0.34);
  --text: #0b1220;
  --text-soft: #1e293b;
  --text-muted: #475569;
  --text-faint: rgba(15, 23, 42, 0.72);
  --muted: var(--text-muted);
  --pink: #ff2d78;
  --pink-hot: #be185d;
  --pink-deep: #9d174d;
  --purple: #6d28d9;
  --blue: #1d4ed8;
  --cyan: #0e7490;
  --green: #047857;
  --gold: #b45309;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  --glow-pink: 0 10px 24px rgba(var(--accent-rgb), 0.2);
  --glow-purple: 0 0 36px rgba(var(--secondary-rgb), 0.12);
  --header-bg: rgba(238, 241, 246, 0.92);
  --dropdown-bg: #ffffff;
  --sidebar-bg: #ffffff;
  --input-bg: #ffffff;
  --badge-bg: rgba(var(--accent-rgb), 0.12);
  --badge-text: var(--pink-hot);
  --ring: rgba(var(--accent-rgb), 0.34);
  --hero-spot: radial-gradient(circle at 78% 18%, rgba(var(--accent-rgb), 0.07), transparent 38%),
    radial-gradient(circle at 12% 0%, rgba(29, 78, 216, 0.05), transparent 32%);
  --surface-1: #ffffff;
  --code: #1d4ed8;
  --ok: #047857;
  --warn: #b45309;
  --danger: #b91c1c;
  --surface-ghost: #ffffff;
  --surface-ghost-2: #ffffff;
  --surface-soft: #f5f7fa;
  --surface-hover: #eef1f6;
  --on-accent: #ffffff;
  --placeholder: #64748b;
  --icon: #334155;
  --warn-bg: #fff7ed;
  --warn-border: rgba(217, 119, 6, 0.38);
  --warn-text: #9a3412;
  --info-accent-bg: rgba(var(--accent-rgb), 0.1);
  --info-accent-border: rgba(var(--accent-rgb), 0.28);
  --badge-ok-bg: #ecfdf5;
  --badge-ok-text: #047857;
  --badge-ok-border: rgba(4, 120, 87, 0.3);
  --badge-fee-bg: rgba(var(--accent-rgb), 0.12);
  --badge-fee-text: var(--pink-hot);
  --badge-fee-border: rgba(var(--accent-rgb), 0.3);
  --badge-info-bg: #eff6ff;
  --badge-info-text: #1d4ed8;
  --badge-info-border: rgba(29, 78, 216, 0.3);
  --error: var(--danger);
  --overlay-01: rgba(15, 23, 42, 0.03);
  --overlay-02: rgba(15, 23, 42, 0.05);
  --overlay-04: rgba(15, 23, 42, 0.08);
  --overlay-06: rgba(15, 23, 42, 0.12);
  --overlay-08: rgba(15, 23, 42, 0.16);
  --nested-surface: #f5f7fa;
  --background: var(--bg);
  --background-secondary: var(--bg-soft);
  --surface: var(--bg-card);
  --surface-elevated: var(--bg-elevated);
  --text-primary: var(--text);
  --text-secondary: var(--text-soft);
  --primary: var(--pink);
  --primary-hover: var(--pink-hot);
  --primary-soft: rgba(var(--accent-rgb), 0.12);
  --secondary: var(--purple);
  --gradient-primary: linear-gradient(135deg, var(--pink), var(--purple));
  --success: var(--ok);
  --warning: var(--warn);
  --info: var(--blue);
  --glow: var(--glow-pink);
  --chrome-bg: #eef1f6;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

a,
button,
[role="button"],
summary,
label,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a:visited {
  color: inherit;
}

a:focus,
button:focus,
[role="button"]:focus,
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: none;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  background-image: var(--hero-spot);
  background-attachment: scroll;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body.has-mobile-home-tab {
  /* Floating tab bar (~4.35rem) + bottom float gap (~0.7rem) */
  --app-tab-clearance: 5.35rem;
  --mobile-home-tab-space: 5.85rem;
}

body.has-pwa-install {
  --app-pwa-clearance: 4.35rem;
}

body.has-push-prompt.has-pwa-install .push-prompt {
  bottom: calc(0.85rem + var(--safe-bottom) + var(--app-tab-clearance) + 5.15rem);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

[x-cloak] { display: none !important; }

.container {
  width: min(1200px, calc(100% - 2.5rem));
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .container,
  .hero-shell.container {
    width: min(1240px, calc(100% - 4rem));
  }
}

/* Header — pinned to the viewport so hide/show never breaks sticky */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  padding-top: constant(safe-area-inset-top);
  padding-top: var(--safe-top);
  padding-inline-start: constant(safe-area-inset-left);
  padding-inline-start: var(--safe-left);
  padding-inline-end: constant(safe-area-inset-right);
  padding-inline-end: var(--safe-right);
  transition:
    background .2s ease,
    border-color .2s ease,
    backdrop-filter .2s ease,
    -webkit-backdrop-filter .2s ease,
    box-shadow .2s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-away {
  transform: translate3d(0, -100%, 0);
  pointer-events: none;
}

.site-header-spacer {
  height: var(--store-header-offset);
  pointer-events: none;
  flex-shrink: 0;
}

.site-header.is-scrolled {
  background: rgba(5, 7, 11, 0.55);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .site-header.is-scrolled {
  background: rgba(245, 247, 251, 0.62);
  border-bottom-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

body.dropdown-open .site-header,
body.sidebar-open .site-header,
body.search-overlay-open .site-header,
body.overlay-scroll-lock .site-header {
  transform: none;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
}

.news-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.62rem 1rem;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.18);
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0.04));
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.news-banner:hover {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.08));
  color: var(--text);
}

.news-banner-icon,
.news-banner svg {
  flex-shrink: 0;
  color: #29a9eb;
}

.news-banner-text {
  min-width: 0;
  text-align: center;
}

.news-banner-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.16);
  color: var(--pink-hot);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

html[data-theme="light"] .news-banner {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.08), rgba(var(--accent-rgb), 0.03));
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .news-banner-cta {
  background: rgba(var(--accent-rgb), 0.1);
}

@media (max-width: 640px) {
  .news-banner {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .news-banner-text {
    display: none;
  }

  .news-banner-cta {
    padding: 0.08rem 0.42rem;
    font-size: 0.68rem;
  }

  .news-banner > svg:last-child {
    display: none;
  }

  .news-banner-icon svg {
    width: 14px;
    height: 14px;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 64px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand picture {
  display: flex;
  flex-shrink: 0;
  line-height: 0;
}

.brand-logo--light {
  display: none !important;
}

html[data-theme="light"] .brand-logo--dark {
  display: none !important;
}

html[data-theme="light"] .brand-logo--light {
  display: flex !important;
}

.brand img {
  width: auto;
  height: 56px;
  max-width: 250px;
  object-fit: contain;
}

.footer-brand .brand img {
  width: auto;
  height: 48px;
  max-width: 220px;
}

.sidebar-head .brand img {
  width: auto;
  height: 38px;
  max-width: 170px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}

.brand-text strong {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.brand-text small {
  font-size: 0.68rem;
  color: var(--pink);
  letter-spacing: 0.12em;
  font-weight: 700;
}

.nav-desktop {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 1.15rem;
  flex: 1 1 auto;
}

.nav-desktop > a,
.nav-dropdown-trigger {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.35rem 0;
  background: none;
  border: 0;
}

.nav-desktop > a:hover,
.nav-desktop > a.is-active,
.nav-dropdown-trigger:hover,
.nav-dropdown.is-open .nav-dropdown-trigger { color: var(--text); }

.nav-desktop > a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 999px;
  background: var(--pink);
}

.nav-dropdown {
  position: relative;
}

/* Product search */
.product-search {
  position: relative;
  width: 100%;
  z-index: 1;
  margin: 0;
  overflow: visible;
}

.product-search--home {
  width: min(100%, 720px);
  margin: 0 auto;
}

.product-search-pin-spacer {
  width: 100%;
  pointer-events: none;
}

.product-search--home.is-pinned {
  position: fixed;
  top: var(--search-pin-top, calc(env(safe-area-inset-top, 0px) + 4.5rem));
  left: max(1rem, env(safe-area-inset-left, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  width: auto;
  max-width: 720px;
  margin-inline: auto;
  z-index: 200;
  filter: none;
  pointer-events: auto;
}

.product-search--home.is-pinned .product-search-field {
  background: color-mix(in srgb, var(--bg-elevated, #12151c) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.product-search--home.is-pinned .product-search-dropdown {
  max-height: min(62vh, 420px);
}

.product-search-close {
  display: none;
}

.product-search--home.is-pinned .product-search-field-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-search--home.is-pinned .product-search-field {
  flex: 1 1 auto;
  min-width: 0;
}

.product-search--home.is-pinned .product-search-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-elevated, #12151c) 92%, transparent);
  color: var(--text);
  cursor: pointer;
}

html[data-theme="light"] .product-search--home.is-pinned .product-search-close {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

body.search-overlay-open .product-search--home {
  z-index: 200;
  filter: none !important;
  pointer-events: auto;
}

body.search-overlay-open .product-search--home .product-search-field-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body.search-overlay-open .product-search--home .product-search-field {
  flex: 1 1 auto;
  min-width: 0;
}

body.search-overlay-open .product-search--home .product-search-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-elevated, #12151c) 92%, transparent);
  color: var(--text);
  cursor: pointer;
}

@media (min-width: 768px) {
  .product-search--home.is-pinned {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: min(100%, 720px);
    max-width: 720px;
    margin-inline: auto;
    z-index: 2;
  }

  .product-search-pin-spacer {
    display: none;
    height: 0 !important;
  }

  .product-search-close {
    display: none !important;
  }
}

.product-search-trigger {
  display: none;
}

.product-search-dock {
  position: relative;
  z-index: 2;
}

.product-search-field-wrap {
  position: relative;
  z-index: 2;
}

.product-search-field {
        display: flex;
        align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0.8rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  cursor: text;
  touch-action: manipulation;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.product-search--home .product-search-field {
  padding: 0.62rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: var(--surface-soft);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  touch-action: manipulation;
}

.product-search--home .product-search-input {
  font-size: 16px;
  touch-action: manipulation;
}

.product-search--home .product-search-dropdown {
  border-radius: 18px;
}

.product-search-field:focus-within {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.product-search-icon {
  display: inline-grid;
  place-items: center;
  color: var(--pink);
  flex-shrink: 0;
  pointer-events: none;
}

.product-search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  touch-action: manipulation;
  -webkit-user-select: text;
  user-select: text;
}

.product-search-input::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

.product-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.product-search-dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  inset-inline: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.35rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--sidebar-bg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  max-height: min(52vh, 360px);
  overflow: hidden;
}

.product-search-dropdown[hidden] {
  display: none;
}

.product-search-results {
  display: grid;
  gap: 0.15rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.product-search-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

.product-search-item:hover,
.product-search-item.is-active {
  background: rgba(var(--accent-rgb), 0.08);
}

.product-search-item-thumb {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  object-fit: cover;
  flex-shrink: 0;
}

.product-search-item-thumb--empty {
  display: inline-grid;
  place-items: center;
  color: var(--pink);
}

.product-search-item-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.product-search-item-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.35rem;
}

.product-search-item-badge {
  display: inline-block;
  margin-inline-start: 0.4rem;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #fff;
  background: color-mix(in srgb, var(--accent, var(--pink)) 88%, #111);
}

.product-search-item.is-unavailable {
  cursor: default;
  pointer-events: none;
}

.product-search-item.is-unavailable .product-search-item-thumb {
  filter: grayscale(0.42) saturate(0.55) brightness(0.88);
  opacity: 0.78;
}

.product-search-item.is-unavailable .product-search-item-copy {
  opacity: 0.82;
}

.product-search-item-badge.is-unavailable {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: #e8eaee;
  background: rgba(8, 10, 16, 0.78);
  border: 1px solid rgba(248, 113, 113, 0.55);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
  text-transform: none;
  letter-spacing: 0.01em;
}

.product-search-item-badge.is-unavailable::before {
  content: "";
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 6px #f43f5e;
  flex-shrink: 0;
}

.product-search-item--category .product-search-item-copy strong {
  font-size: 0.95rem;
}

.product-search-item-copy strong {
  font-size: 0.82rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-search-item-copy small {
  color: var(--text-muted);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-search-empty {
  padding: 0.75rem 0.65rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.product-search-view-all {
  display: block;
  flex: 0 0 auto;
  margin-top: 0.15rem;
  padding: 0.62rem 0.75rem;
  border-top: 1px solid var(--border);
  background: inherit;
  color: var(--pink-hot);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  z-index: 1;
}

.product-search-view-all[hidden] {
  display: none;
}

.home-search-band {
  position: relative;
  z-index: 45;
  isolation: isolate;
  padding: 0 0 0.35rem;
  margin-top: 1.75rem;
}

.home-search-shell {
  display: grid;
  justify-items: center;
}

.home-categories-section {
  padding-top: 1.35rem;
  padding-bottom: 1.5rem;
}

.home-categories-section .section-head {
  margin-bottom: 0.85rem;
}

/* Home category circles — horizontal slider */
.category-slider-shell {
  position: relative;
  isolation: isolate;
  max-width: 100%;
  overflow-x: clip;
}

.category-slider-shell::before,
.category-slider-shell::after {
  content: none;
  display: none;
}

.category-slider {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 1.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(1.25rem, calc((100vw - min(1200px, calc(100vw - 2.5rem))) / 2));
  padding: 0.45rem max(1.25rem, calc((100vw - min(1200px, calc(100vw - 2.5rem))) / 2)) 0.9rem;
  margin-inline: calc(-1 * max(1.25rem, calc((100vw - min(1200px, calc(100vw - 2.5rem))) / 2)));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
}

.category-slider-shell:not(.is-scrollable) .category-slider {
  scroll-snap-type: none;
}

.category-slider::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex: 0 0 auto;
  width: 5.35rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.58rem;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.category-chip-ring {
  display: grid;
  place-items: center;
  width: 4.55rem;
  height: 4.55rem;
  padding: 2.5px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.78), rgba(139, 92, 246, 0.5), rgba(56, 189, 248, 0.42));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(var(--accent-rgb), 0.14);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.category-chip-media {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(var(--accent-rgb), 0.12), transparent 55%),
    var(--bg-card);
  border: 2.5px solid var(--bg);
}

.category-chip-image,
.category-chip-media .category-thumb,
.category-chip-media .category-thumb--fluid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 1;
}

.category-chip-media .category-thumb-fallback,
.category-chip-media .category-thumb-fallback--fluid {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.category-chip-icon {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
}

.category-chip-icon .category-svg,
.category-chip-icon svg {
  width: 1.95rem;
  height: 1.95rem;
  display: block;
  filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.22));
}

.category-chip-label {
  width: 100%;
  min-height: 1.35em;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

html[data-theme="light"] .category-chip-ring {
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.06),
    0 10px 22px rgba(var(--accent-rgb), 0.12);
}

html[data-theme="light"] .category-chip-media {
  border-color: var(--bg);
  background: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .category-chip:hover .category-chip-ring {
    transform: scale(1.04);
    box-shadow:
      0 0 0 1px rgba(var(--accent-rgb), 0.25),
      0 14px 32px rgba(var(--accent-rgb), 0.22);
  }

  .category-chip:hover .category-chip-label {
    color: var(--pink-hot);
  }
}

@media (min-width: 768px) {
  .category-slider {
    gap: 1.75rem;
  }

  .category-chip {
    width: 6rem;
  }

  .category-chip-ring {
    width: 5.15rem;
    height: 5.15rem;
  }

  .category-chip-label {
    font-size: 0.74rem;
  }

  .category-chip-icon {
    width: 2.35rem;
    height: 2.35rem;
  }

  .category-chip-icon .category-svg,
  .category-chip-icon svg {
    width: 2.15rem;
    height: 2.15rem;
  }
}

@media (max-width: 1023px) {
  .category-slider-shell .category-slider {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: 0;
    padding-inline: 0.5rem;
    scroll-padding-inline: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .category-slider-shell:not(.is-scrollable) .category-slider {
    justify-content: center;
    overflow-x: hidden;
    margin-inline: 0;
    padding-inline: 0;
  }

  .category-slider-shell.is-scrollable .category-slider {
    justify-content: flex-start;
  }

  .category-chip {
    width: 6.35rem;
  }

  .category-chip-ring {
    width: 5.35rem;
    height: 5.35rem;
    padding: 3px;
  }

  .category-chip-label {
    font-size: 0.76rem;
  }

  .category-chip-icon {
    width: 2.45rem;
    height: 2.45rem;
  }

  .category-chip-icon .category-svg,
  .category-chip-icon svg {
    width: 2.2rem;
    height: 2.2rem;
  }
}

@media (min-width: 1280px) {
  .category-slider {
    gap: 2.15rem;
  }

  .category-chip {
    width: 6.6rem;
  }

  .category-chip-ring {
    width: 5.55rem;
    height: 5.55rem;
  }

  .category-chip-label {
    font-size: 0.78rem;
  }
}

/* Logged-in home (pro dashboard) */
.home-auth {
  padding: 0.85rem 0 calc(6rem + env(safe-area-inset-bottom, 0px));
}

.home-auth-shell {
  display: grid;
  gap: 1rem;
}

.home-auth-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.home-auth-welcome-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.home-auth-welcome-avatar,
.home-auth-welcome-avatar--initials {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}

.home-auth-welcome-avatar--initials {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.25), rgba(var(--accent-rgb), 0.08));
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  font-weight: 800;
  font-size: 0.85rem;
}

.home-auth-welcome-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.home-auth-welcome-eyebrow {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-auth-welcome-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  line-height: 1.15;
}

.home-auth-welcome-summary {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: 36ch;
}

.home-auth-wallet-chip {
  display: grid;
  gap: 0.1rem;
  flex-shrink: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  background: rgba(var(--accent-rgb), 0.08);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.home-auth-wallet-chip span {
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-auth-wallet-chip strong {
  font-size: 0.92rem;
  line-height: 1;
  color: var(--pink-hot);
}

.home-auth-wallet-chip:hover {
  border-color: rgba(var(--accent-rgb), 0.42);
  background: rgba(var(--accent-rgb), 0.12);
  transform: translateY(-1px);
}

/* Account Setup Tasks — premium onboarding card */
.g4c-setup {
  min-width: 0;
  max-width: 100%;
  margin: 0.65rem 0 0.85rem;
  box-sizing: border-box;
}

.g4c-setup *,
.g4c-setup *::before,
.g4c-setup *::after {
  box-sizing: border-box;
}

.g4c-setup-card[hidden],
.g4c-setup-head[hidden],
.g4c-setup-progress-wrap[hidden],
.g4c-setup-done-banner[hidden] {
  display: none !important;
}

.g4c-setup-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: var(--bg-card);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  color: var(--text);
}

.g4c-setup-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.55rem 0.65rem;
  width: 100%;
  margin: 0;
  padding: 0.85rem 0.9rem 0.45rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.g4c-setup-head-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  font-size: 1.05rem;
  line-height: 1;
}

.g4c-setup-head-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.g4c-setup-title {
  display: block;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}

.g4c-setup-subtitle {
  display: block;
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.g4c-setup-head-meta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.g4c-setup-count {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.g4c-setup-chevron {
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  color: var(--text-muted);
}

.g4c-setup-chevron::before {
  content: "";
  position: absolute;
  inset: 0.22rem;
  border-inline-end: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.g4c-setup-card.is-collapsed .g4c-setup-chevron::before {
  transform: rotate(-45deg);
  inset-block-start: 0.35rem;
}

.g4c-setup-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.9rem 0.7rem;
}

.g4c-setup-progress {
  flex: 1;
  min-width: 0;
  height: 7px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  overflow: hidden;
}

.g4c-setup-progress-bar {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--pink-hot));
  transition: width 0.25s ease;
}

.g4c-setup-percent {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--pink);
}

.g4c-setup-dismiss {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  margin: 0;
  padding: 0.1rem 0.15rem;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
}

.g4c-setup-dismiss:hover,
.g4c-setup-dismiss:focus-visible {
  color: var(--text);
  text-decoration: underline;
  outline: none;
}

.g4c-setup-done-banner {
  padding: 0.15rem;
}

.g4c-setup-done-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  margin: 0;
  padding: 0.8rem 0.85rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.g4c-setup-done-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: var(--badge-ok-bg, rgba(52, 211, 153, 0.16));
  color: var(--badge-ok-text, #34d399);
  font-size: 1rem;
  font-weight: 800;
}

.g4c-setup-done-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.g4c-setup-done-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
}

.g4c-setup-done-body {
  display: block;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.g4c-setup-list {
  list-style: none;
  margin: 0;
  padding: 0 0.55rem;
}

.g4c-setup-card.is-collapsed .g4c-setup-list,
.g4c-setup-card.is-collapsed .g4c-setup-foot {
  display: none;
}

.g4c-setup-card.is-all-complete:not(.is-expanded) .g4c-setup-list,
.g4c-setup-card.is-all-complete:not(.is-expanded) .g4c-setup-foot {
  display: none;
}

.g4c-setup-card.is-all-complete:not(.is-expanded) .g4c-setup-progress-wrap,
.g4c-setup-card.is-all-complete:not(.is-expanded) .g4c-setup-head {
  display: none;
}

.g4c-setup-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.4rem;
  border-top: 1px solid var(--border);
}

.g4c-setup-item:first-child {
  border-top: 0;
}

.g4c-setup-item-status {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--pink);
  font-size: 0.95rem;
  line-height: 1;
}

.g4c-setup-item-status.is-done {
  background: var(--badge-ok-bg, rgba(52, 211, 153, 0.16));
  color: var(--badge-ok-text, #22c55e);
}

.g4c-setup-check {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.g4c-setup-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.55;
}

.g4c-setup-item-emoji {
  line-height: 1;
}

.g4c-setup-item-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.g4c-setup-item-title {
  display: block;
  margin: 0;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.3;
  color: var(--text);
  overflow-wrap: anywhere;
}

.g4c-setup-item-desc {
  display: block;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.g4c-setup-item-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  max-width: 42%;
}

.g4c-setup-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 2.45rem;
  max-width: 100%;
  padding: 0.35rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: var(--on-accent, #fff);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.28);
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.g4c-setup-btn:hover,
.g4c-setup-btn:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-1px);
  outline: none;
  color: var(--on-accent, #fff);
  text-decoration: none;
}

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

.g4c-setup-btn-chevron {
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
}

.g4c-setup-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 750;
  white-space: nowrap;
}

.g4c-setup-badge.is-complete {
  color: var(--badge-ok-text, #15803d);
  background: var(--badge-ok-bg, rgba(34, 197, 94, 0.14));
}

.g4c-setup-badge.is-muted {
  color: var(--text-muted);
  background: rgba(var(--accent-rgb), 0.08);
}

.g4c-setup-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem 0.85rem;
}

.g4c-setup-foot-note {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 430px) {
  .g4c-setup {
    margin: 0.45rem 0 0.7rem;
  }

  .g4c-setup-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0.8rem 0.8rem 0.4rem;
  }

  .g4c-setup-head-meta {
    grid-column: 2;
    justify-self: start;
  }

  .g4c-setup-count {
    font-size: 0.68rem;
  }

  .g4c-setup-item {
    gap: 0.55rem;
    padding: 0.65rem 0.3rem;
  }

  .g4c-setup-item-action {
    max-width: none;
  }

  .g4c-setup-btn {
    min-height: 2.35rem;
    padding: 0.32rem 0.75rem;
  }
}

html[data-theme="dark"] .g4c-setup-card {
  background: var(--bg-card);
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .g4c-setup-card {
  background: var(--bg-card);
  border-color: rgba(var(--accent-rgb), 0.18);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

html[data-theme="light"] .g4c-setup-badge.is-complete {
  color: #15803d;
  background: rgba(34, 197, 94, 0.14);
}

.home-auth-banner {
  min-width: 0;
}

.home-banner-slider {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  background: #0a0d14;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.home-banner-track {
  position: relative;
  aspect-ratio: 24 / 9;
  width: 100%;
  min-height: 120px;
  max-height: 280px;
  overflow: hidden;
}

.home-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}

.home-banner-slide.is-active {
  opacity: 1;
  transform: none;
  z-index: 1;
}

.home-banner-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0a0d14;
}

.home-banner-media picture,
.home-banner-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.home-banner-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 11, 0.08) 0%, rgba(5, 7, 11, 0.35) 42%, rgba(5, 7, 11, 0.88) 100%),
    linear-gradient(90deg, rgba(5, 7, 11, 0.72) 0%, rgba(5, 7, 11, 0.18) 55%, rgba(5, 7, 11, 0.45) 100%);
}

.home-banner-copy {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.05rem 1.15rem;
  max-width: min(100%, 34rem);
}

.home-banner-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-banner-title {
  margin: 0;
  font-size: clamp(1.15rem, 4.5vw, 1.65rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.home-banner-cta {
  margin-top: 0.15rem;
  color: #ffb8d2;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.home-banner-dots {
  position: absolute;
  left: 50%;
  bottom: 0.55rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.12rem;
  z-index: 3;
  padding: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
}

.home-banner-dot {
  width: 22px;
  height: 22px;
  border-radius: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease;
}

.home-banner-dot::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}

.home-banner-dot.is-active::after {
  width: 12px;
  height: 5px;
  border-radius: 999px;
  background: #fff;
}

.home-auth-search-card {
  position: relative;
  z-index: 45;
  isolation: isolate;
  padding: 0.75rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), 0.08), transparent 52%),
    var(--surface-ghost);
}

.home-auth-search-card:focus-within {
  z-index: 60;
}

.home-auth-search-card .product-search--home {
  width: 100%;
  max-width: none;
  margin: 0;
}

.home-auth-search-card .product-search-field {
  box-shadow: none;
}

.home-auth-block {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.home-auth-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.home-auth-block-head h2 {
  margin: 0;
  min-width: 0;
  font-size: clamp(1.1rem, 3.5vw, 1.45rem);
  line-height: 1.1;
}

.home-auth-block-head .link-more {
  flex-shrink: 0;
  white-space: nowrap;
}

.home-auth-block-eyebrow {
  margin: 0 0 0.25rem;
  color: var(--pink-hot);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-auth-block-subtitle {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 36rem;
}

.home-auth-category-scroll,
.home-auth-product-scroll {
  min-width: 0;
  overflow: visible;
}

.home-auth .type-card-grid--compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.home-auth .type-card-grid--compact .type-card-body {
  min-height: 4rem;
  padding: 0.65rem 0.55rem 0.75rem;
}

.home-auth .type-card-grid--compact .type-card-body h3 {
  font-size: 0.8rem;
}

.home-auth-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.home-auth-product-grid .product-card {
  min-width: 0;
}

.home-auth-product-scroll--single-row {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.home-auth-product-scroll--single-row::-webkit-scrollbar {
  display: none;
}

.home-auth-product-grid--single-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(158px, 62vw);
  grid-template-columns: none;
  width: max-content;
  max-width: none;
  gap: 0.65rem;
}

.home-auth-product-grid--single-row .product-card {
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .home-auth-product-grid--single-row {
    grid-auto-columns: minmax(168px, 28vw);
    gap: 0.75rem;
  }
}

@media (min-width: 1100px) {
  .home-auth-product-scroll--single-row {
    overflow-x: visible;
    margin-inline: 0;
    padding-inline: 0;
  }

  .home-auth-product-grid--single-row {
    display: grid;
    grid-auto-flow: unset;
    grid-auto-columns: unset;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
  }
}

.home-auth-orders-panel {
  display: grid;
  gap: 0.55rem;
  padding: 0.55rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
}

.home-order-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--surface-ghost-2);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.home-order-row:hover {
  border-color: rgba(var(--accent-rgb), 0.22);
  background: rgba(var(--accent-rgb), 0.06);
  transform: translateY(-1px);
}

.home-order-row-leading img,
.home-order-row-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.home-order-row-icon {
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--pink-hot);
}

.home-order-row-body {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.home-order-row-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.home-order-row-top strong {
  font-size: 0.88rem;
}

.home-order-row-top .profile-status-badge {
  font-size: 0.62rem;
  padding: 0.18rem 0.45rem;
}

.home-order-row-sub {
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-order-row-price {
  display: grid;
  justify-items: end;
  gap: 0.05rem;
  flex-shrink: 0;
}

.home-order-row-price strong {
  font-size: 0.92rem;
  line-height: 1;
}

.home-order-row-price small {
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-auth-orders-empty {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  text-align: center;
  padding: 1.35rem 1rem;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: var(--surface-ghost-2);
}

.home-auth-orders-empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--pink-hot);
}

.home-auth-orders-empty strong {
  display: block;
  margin-bottom: 0.2rem;
}

.home-auth-orders-empty p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.home-auth-faq-wrap .faq-section {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
}

.home-auth-faq-wrap .faq-title {
  font-size: clamp(1.15rem, 3.5vw, 1.55rem);
}

@media (min-width: 640px) {
  .home-auth .type-card-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .home-auth-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .home-banner-track {
    aspect-ratio: 24 / 9;
    min-height: 140px;
    max-height: 280px;
  }
}

/* Laptop/desktop: show the full banner, never crop or zoom. */
@media (min-width: 768px) {
  .home-banner-track {
    aspect-ratio: auto;
    min-height: 0;
    max-height: none;
    height: auto;
  }

  .home-banner-slide {
    position: absolute;
    inset: 0;
    transform: none;
  }

  .home-banner-slide.is-active {
    position: relative;
    inset: auto;
    transform: none;
  }

  .home-banner-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    overflow: hidden;
  }

  .home-banner-media picture,
  .home-banner-media img {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }
}

@media (min-width: 900px) {
  .home-auth-shell {
    gap: 1.15rem;
  }

  .home-auth .type-card-grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-auth-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-auth-block--orders {
    max-width: 100%;
  }
}

@media (min-width: 1100px) {
  .home-auth-product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .home-auth .type-card-grid--compact {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .home-auth {
    padding-top: 0.55rem;
  }

  .home-auth-shell {
    gap: 0.85rem;
  }

  .home-auth-welcome {
    align-items: center;
    flex-wrap: nowrap;
  }

  .home-auth-wallet-chip {
    padding: 0.5rem 0.65rem;
  }

  .home-auth-search-card {
    padding: 0.65rem;
    border-radius: 16px;
  }

  .home-auth-search-card .product-search--home .product-search-field {
    padding: 0.58rem 0.82rem;
    border-radius: 14px;
  }

  .home-auth-search-card .product-search--home .product-search-input {
    font-size: 16px;
  }

  .home-banner-track {
    aspect-ratio: 21 / 8;
    min-height: 110px;
    max-height: 168px;
  }

  .home-banner-copy {
    padding: 0.85rem 0.9rem 1.35rem;
  }

  .home-banner-title {
    font-size: 1.05rem;
  }

  .home-auth-block-head {
    align-items: center;
    flex-direction: row;
    gap: 0.75rem;
  }

  .home-auth-block-head h2 {
    min-width: 0;
  }

  .home-auth-block-head .link-more {
    flex-shrink: 0;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .home-auth-category-scroll,
  .home-auth-product-scroll {
    margin-inline: 0;
    padding-inline: 0;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .home-auth .home-auth-category-scroll .type-card-grid--compact {
    display: grid;
    grid-auto-flow: unset;
    grid-auto-columns: unset;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    gap: 0.5rem;
  }

  .home-auth .home-auth-category-scroll .type-card-grid--compact .type-card {
    scroll-snap-align: unset;
  }

  .home-auth-category-scroll::-webkit-scrollbar,
  .home-auth-product-scroll::-webkit-scrollbar {
    display: none;
  }

  .home-auth-product-scroll .home-auth-product-grid {
    display: grid;
    grid-auto-flow: unset;
    grid-auto-columns: unset;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    gap: 0.5rem;
  }

  .home-auth-product-scroll .product-card {
    scroll-snap-align: unset;
  }

  .type-card {
    border-radius: 12px;
  }

  .type-card-body {
    min-height: 0;
    padding: 0.42rem 0.35rem 0.48rem;
    gap: 0;
  }

  .type-card-body h3 {
    font-size: 0.62rem;
    min-height: 0;
    font-weight: 700;
  }

  .type-card-cta {
    display: none;
  }

  .type-card-grid--compact .type-card-body {
    min-height: 0;
    padding: 0.42rem 0.35rem 0.48rem;
  }

  .type-card-grid--compact .type-card-body h3 {
    font-size: 0.62rem;
    min-height: 0;
  }

  .type-card-grid--compact .type-card-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .type-card-grid--compact .type-card-icon-wrap .category-svg,
  .type-card-grid--compact .type-card-icon-wrap svg {
    width: 30px;
    height: 30px;
  }

  .home-order-row {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "leading body"
      "leading price";
    row-gap: 0.35rem;
  }

  .home-order-row-leading { grid-area: leading; }
  .home-order-row-body { grid-area: body; }
  .home-order-row-price {
    grid-area: price;
    justify-items: start;
    padding-inline-start: calc(44px + 0.75rem);
  }

  .home-order-row-sub {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 430px) {
  .home-auth-welcome {
    flex-wrap: nowrap;
    align-items: center;
  }

  .home-auth-welcome-summary {
    display: none;
  }

  .home-auth-welcome-name {
    font-size: 0.98rem;
  }

  .home-auth-wallet-chip {
    display: grid;
    padding: 0.42rem 0.55rem;
    width: auto;
    max-width: 42%;
  }

  .home-auth-wallet-chip strong,
  .home-auth-wallet-chip [data-wallet-balance] {
    font-size: 0.78rem;
    white-space: nowrap;
  }
}

html[data-theme="light"] .product-search--home .product-search-field {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.error-page {
  padding: 2.5rem 0 4rem;
  min-height: calc(100vh - 220px);
  display: grid;
  align-items: center;
}

.error-shell {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.error-visual {
  width: min(100%, 360px);
  margin: 0 auto 1.35rem;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.error-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.error-shell h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.error-copy {
  margin: 0 auto 1.5rem;
  max-width: 34rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.error-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.error-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  text-decoration: none;
}

.auth-error-secondary {
  min-height: 48px;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.auth-error-secondary:hover {
  border-color: rgba(255, 77, 141, 0.55);
  background: rgba(var(--accent-rgb), 0.12);
  transform: translateY(-1px);
}

.error-card .auth-heading p {
  display: block;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.nav-dropdown-trigger svg {
  transition: transform .18s ease;
}

.nav-dropdown.is-open .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  inset-inline-start: 0;
  min-width: 220px;
  padding: 0.45rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--dropdown-bg);
  box-shadow: var(--shadow);
  display: none;
  z-index: 80;
}

.nav-dropdown.is-open .nav-dropdown-menu { display: grid; gap: 0.15rem; }

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.is-active {
  background: var(--bg-soft);
  color: var(--text);
}

.nav-dropdown-menu .menu-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  color: var(--pink);
  flex-shrink: 0;
}

.nav-dropdown-menu .menu-icon-category {
  width: 32px;
  height: 32px;
  background: transparent;
  border-radius: 0;
}

.nav-dropdown-menu .menu-icon-category .category-svg {
  width: 26px;
  height: 26px;
  display: block;
}

.lang-dropdown .nav-dropdown-menu {
  inset-inline-start: auto;
  inset-inline-end: 0;
  min-width: 160px;
}

.lang-menu a {
  justify-content: space-between;
}

.lang-menu small {
  color: var(--text-muted);
  font-weight: 500;
}

.profile-dropdown {
  position: relative;
}

.profile-dropdown .nav-dropdown-menu {
  inset-inline-start: auto;
  inset-inline-end: 0;
  min-width: 320px;
  max-width: min(340px, calc(100vw - 1.25rem));
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.profile-trigger-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.08);
}

.profile-trigger-avatar--initials,
.profile-menu-avatar--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.28), rgba(var(--accent-rgb), 0.08));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-trigger-chevron {
  color: var(--text-muted);
}

.profile-menu {
  min-width: 320px;
  padding: 0.75rem;
  gap: 0.6rem;
}

.profile-menu-head {
  padding: 0.35rem 0.35rem 0.15rem;
}

.profile-menu-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.profile-menu-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-menu-meta {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.profile-menu-name-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.profile-menu-name-row strong {
  flex: 1;
  min-width: 0;
  font-size: clamp(0.78rem, 2.8vw, 0.92rem);
  line-height: 1.25;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu-meta small {
  color: var(--text-muted);
  font-size: 0.76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex-shrink: 0;
  position: relative;
}

.profile-status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  opacity: 0.35;
}

.profile-status-dot.is-active {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.18);
}

.profile-status-dot.is-active::after {
  background: #22c55e;
}

.profile-status-dot.is-pending {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18);
}

.profile-status-dot.is-pending::after {
  background: #f59e0b;
}

.profile-status-dot.is-suspended {
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18);
}

.profile-status-dot.is-suspended::after {
  background: #ef4444;
}

.profile-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.profile-status-badge.is-active {
  color: var(--ok);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.profile-status-badge.is-pending {
  color: var(--warn);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.profile-status-badge.is-suspended {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.profile-balance-card {
  display: grid;
  gap: 0.65rem;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background: rgba(var(--accent-rgb), 0.06);
}

.profile-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.profile-balance-copy {
  display: grid;
  gap: 0.2rem;
}

.profile-balance-copy span {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-balance-copy strong {
  font-size: 1.05rem;
}

.profile-balance-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--pink-hot);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.profile-balance-add.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.profile-menu-links {
  display: grid;
  gap: 0.15rem;
}

.profile-menu-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.72rem 0.75rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}

.profile-menu-link:hover,
.profile-menu-link.is-active {
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--pink-hot);
}

.profile-menu-link--logout {
  color: #fca5a5;
}

.profile-menu-link--logout:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #fecaca;
}

.profile-menu-logout {
  margin: 0;
  padding-top: 0.15rem;
  border-top: 1px solid var(--border);
}

.profile-sidebar-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
}

.account-page {
  padding: 2rem 0 3rem;
}

.account-page-head {
  margin-bottom: 1.25rem;
}

.account-page-head h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.account-page-head p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
}

.account-card {
  padding: 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
}

.account-card-head {
  display: flex;
  align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
  margin-bottom: 1rem;
}

.account-details {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}

.account-details div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.account-details dt {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.account-details dd {
  margin: 0;
  font-weight: 700;
}

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

.account-empty,
.account-coming-soon {
  padding: 1rem 0 0;
  color: var(--text-muted);
}

.account-orders-list {
  display: grid;
  gap: 0.75rem;
}

.account-order-card {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
}

.account-order-top,
.account-order-meta {
        display: flex;
        align-items: center;
  justify-content: space-between;
        gap: 0.75rem;
}

.account-order-meta {
  margin-top: 0.55rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-inline-start: auto;
  flex: 0 0 auto;
}

.header-prefs {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex: 0 0 auto;
  position: relative;
  overflow: visible;
  z-index: 3;
}

.header-wallet-slot {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.header-wallet-chip {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.02rem;
  min-height: 40px;
  max-width: 9.5rem;
  padding: 0.28rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.1);
  color: inherit;
  text-decoration: none;
  line-height: 1.05;
}

.header-wallet-chip-label {
  color: var(--text-muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-wallet-chip [data-wallet-balance] {
  color: var(--pink-hot);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-wallet-chip--readonly {
  opacity: 0.72;
  cursor: default;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
}

.icon-btn svg,
.theme-icon-btn .theme-moon,
.theme-icon-btn .theme-sun {
  display: block;
  margin: 0 auto;
}

.nav-action-icon svg,
.nav-tool-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.nav-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-tool-btn {
  position: relative;
  color: var(--text-soft);
        text-decoration: none;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.nav-tool-btn:hover {
  color: var(--text);
}

.nav-tool-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  inset-inline-end: 2px;
  inset-inline-start: auto;
  min-width: 11px;
  height: 11px;
  padding: 0 2px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.5rem;
  font-weight: 800;
  line-height: 11px;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 0 0 1.5px var(--bg);
  z-index: 1;
}

html[data-theme="light"] .nav-tool-badge {
  box-shadow: 0 0 0 2px var(--bg);
}

.theme-icon-btn {
  position: relative;
}

.theme-icon-btn .theme-moon,
.theme-icon-btn .theme-sun {
  position: absolute;
  inset: 0;
  display: grid !important;
  place-items: center;
}

.icon-btn:hover { border-color: var(--border-strong); background: var(--surface-soft); }
html[data-theme="light"] .icon-btn:hover { background: rgba(15,23,42,0.04); }

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 40px;
  padding: 0 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #be185d, #9d174d); color: #fff; box-shadow: var(--glow-pink); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0.45rem 0.85rem; border-radius: 12px; font-size: 0.85rem; }
.desktop-only { display: none; }
.mobile-only { display: inline-flex; }

/* Mobile sidebar */
.sidebar-backdrop,
.nav-dropdown-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 11, 0.5);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 80;
}

.sidebar-backdrop.is-open,
.nav-dropdown-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-dropdown-backdrop {
  z-index: 70;
}

html[data-theme="light"] .sidebar-backdrop,
html[data-theme="light"] .nav-dropdown-backdrop {
  background: rgba(15, 23, 42, 0.5);
}

body.sidebar-open,
body.dropdown-open,
body.overlay-scroll-lock {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

body.overlay-scroll-lock {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

body.dropdown-open .site-header {
  z-index: 90;
}

body.dropdown-open .nav-dropdown.is-open {
  z-index: 91;
}

body.search-overlay-open .mobile-home-tab-bar,
body.search-overlay-open .floating-dock {
  z-index: 50;
}

html.search-scroll-block,
html.search-scroll-block body {
  overscroll-behavior: none;
}

/* Mobile: the real input already sits at the top. Never move it after focus. */
@media (max-width: 767px) {
  .product-search--home .product-search-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: inherit;
    color: inherit;
    font: inherit;
    cursor: text;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .product-search--home .product-search-trigger-copy {
    color: var(--text-muted);
    font-weight: 600;
  }

  .product-search--home .product-search-dock {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 0.65rem);
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    width: auto;
    max-width: none;
    margin: 0;
    z-index: 210;
    opacity: 0;
    pointer-events: none;
  }

  body.search-overlay-open .nav-dropdown-backdrop,
  body.search-overlay-open .nav-dropdown-backdrop.is-open {
    z-index: 190;
    opacity: 1;
    pointer-events: auto;
    background: rgba(5, 7, 11, 0.62);
    backdrop-filter: blur(28px) saturate(1.25);
    -webkit-backdrop-filter: blur(28px) saturate(1.25);
  }

  /* Android leftover click would hit the backdrop and close search. */
  body.search-overlay-arming .nav-dropdown-backdrop,
  body.search-overlay-arming .nav-dropdown-backdrop.is-open {
    pointer-events: none !important;
  }

  html[data-theme="light"] body.search-overlay-open .nav-dropdown-backdrop,
  html[data-theme="light"] body.search-overlay-open .nav-dropdown-backdrop.is-open {
    background: rgba(15, 23, 42, 0.48);
  }

  body.search-overlay-open .site-header,
  body.search-overlay-open .news-banner {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  body.search-overlay-open .site-footer,
  body.search-overlay-open .mobile-home-tab-bar,
  body.search-overlay-open .floating-dock,
  body.search-overlay-open .home-market-shell > *:not(.market-search) {
    filter: none;
    pointer-events: none;
    user-select: none;
    touch-action: none;
  }

  body.search-overlay-open .market-search,
  body.search-overlay-open .product-search--home {
    z-index: 200;
    filter: none !important;
    pointer-events: none;
    user-select: none;
  }

  body.search-overlay-open .product-search--home .product-search-dock {
    opacity: 1;
    pointer-events: auto;
    user-select: auto;
  }

  body.search-overlay-open .product-search--home .product-search-trigger {
    display: none;
  }

  body.search-overlay-open .product-search--home .product-search-dropdown {
    max-height: min(52dvh, 380px);
    touch-action: pan-y;
    overscroll-behavior: contain;
  }

  body.search-overlay-open .product-search-results {
    touch-action: pan-y;
    overscroll-behavior: contain;
  }

  .product-search-input,
  .product-search--home .product-search-input,
  .home-auth-search-card .product-search--home .product-search-input,
  .catalog-search-input,
  .catalog-search-field input,
  .catalog-search-pill input {
    font-size: 16px;
  }
}

/* Android keyboard overlays the page — pin only the bar to the top.
   A 100dvh sheet vertically centers the field, Chrome pans it off-screen on the first letter. */
body.search-overlay-open .product-search--home .product-search-dock,
.product-search-dock.is-search-sheet {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  z-index: 400 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  display: flex !important;
  flex-direction: column;
  box-sizing: border-box;
  padding: calc(env(safe-area-inset-top, 0px) + 0.65rem) 0.75rem 0.75rem;
  background: var(--bg);
  overflow: visible;
  transform: none !important;
}

body.search-overlay-open .product-search--home .product-search-trigger {
  display: none !important;
}

body.search-overlay-open .product-search--home .product-search-dropdown:not([hidden]),
.product-search-dock.is-search-sheet .product-search-dropdown:not([hidden]) {
  position: relative;
  top: auto;
  inset-inline: 0;
  bottom: auto;
  grid-column: 1 / -1;
  grid-row: 2;
  max-height: min(42vh, 320px);
  margin-top: 0;
  overflow: hidden;
}

.product-search-dock.is-search-sheet .product-search-field-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  min-height: 0;
  position: relative;
}

.product-search-dock.is-search-sheet .product-search-field {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.product-search-dock.is-search-sheet .product-search-close {
  display: grid;
  place-items: center;
  grid-column: 2;
  grid-row: 1;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-elevated, #12151c) 92%, transparent);
  color: var(--text);
  cursor: pointer;
}

.product-search-dock.is-search-sheet .product-search-results {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

/* Desktop search is a normal dropdown — no overlay, pin, or page jump. */
@media (min-width: 768px) {
  body.search-overlay-open .nav-dropdown-backdrop,
  body.search-overlay-open .nav-dropdown-backdrop.is-open {
    opacity: 0 !important;
    pointer-events: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.search-overlay-open .site-header,
  body.search-overlay-open .news-banner,
  body.search-overlay-open .site-footer,
  body.search-overlay-open .mobile-home-tab-bar,
  body.search-overlay-open .floating-dock,
  body.search-overlay-open .home-market-shell > *:not(.market-search) {
    filter: none;
    pointer-events: auto;
    user-select: auto;
  }
}

.mobile-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 80%;
  max-width: 80%;
  background:
    radial-gradient(1200px 420px at 12% -10%, rgba(var(--accent-rgb), 0.16), transparent 58%),
    radial-gradient(900px 380px at 110% 8%, rgba(59, 130, 246, 0.1), transparent 52%),
    var(--bg);
  border: 0;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  box-shadow: none;
  overflow: hidden;
}

[dir="rtl"] .mobile-sidebar {
  inset: 0 0 0 auto;
  transform: translateX(100%);
}
.mobile-sidebar.is-open,
[dir="rtl"] .mobile-sidebar.is-open { transform: translateX(0); }

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  min-height: 64px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.sidebar-head .brand {
  min-width: 0;
}

.sidebar-close-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.sidebar-head-divider {
  height: 1px;
  margin: 0 1rem 0.75rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--accent-rgb), 0.55) 18%,
    rgba(var(--accent-rgb), 0.85) 50%,
    rgba(var(--accent-rgb), 0.55) 82%,
    transparent
  );
  flex-shrink: 0;
}

.sidebar-user-panel {
        display: grid;
  gap: 0.65rem;
  padding: 0 1rem 0.85rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-user-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 3px 0 0 0.7rem;
}

.sidebar-user-head-meta {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.sidebar-user-head-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 800;
}

.sidebar-user-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.sidebar-user-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background: rgba(var(--accent-rgb), 0.06);
}

.sidebar-user-balance-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.sidebar-user-balance-copy span {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.sidebar-user-balance-copy strong {
  font-size: 0.95rem;
  line-height: 1.1;
}

.sidebar-user-balance-add {
  flex-shrink: 0;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--pink-hot);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.sidebar-user-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.sidebar-user-links--single {
  grid-template-columns: 1fr;
}

.sidebar-user-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.55rem 0.45rem;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
}

.sidebar-user-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-link:hover,
.sidebar-user-link.is-active {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--pink-hot);
}

.sidebar-guest-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  padding: 1rem 1.15rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-guest-panel .btn {
  min-height: 44px;
}

/* ==========================================================================
   Guest sidebar — premium night / light redesign
   ========================================================================== */
.mobile-sidebar--guest {
  background:
    radial-gradient(900px 360px at 8% -8%, rgba(var(--accent-rgb), 0.22), transparent 55%),
    radial-gradient(720px 320px at 100% 12%, rgba(168, 85, 247, 0.14), transparent 50%),
    linear-gradient(180deg, #070a12 0%, #05070b 48%, #060912 100%);
  border-inline-end: 1px solid rgba(var(--accent-rgb), 0.22);
  box-shadow:
    12px 0 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

[dir="rtl"] .mobile-sidebar--guest {
  border-inline-end: 0;
  border-inline-start: 1px solid rgba(var(--accent-rgb), 0.22);
  box-shadow:
    -12px 0 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.mobile-sidebar--guest .sidebar-head {
  padding: 0.95rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.16);
  background: rgba(7, 10, 18, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mobile-sidebar--guest .sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
  max-width: calc(100% - 3.25rem);
}

.mobile-sidebar--guest .sidebar-brand img {
  max-width: 100%;
  height: auto;
}

.mobile-sidebar--guest .sidebar-brand-tagline {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(226, 232, 240, 0.62);
  line-height: 1.25;
}

.mobile-sidebar--guest .sidebar-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.08);
}

.mobile-sidebar--guest .sidebar-close-btn:hover,
.mobile-sidebar--guest .sidebar-close-btn:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.12);
  color: #fff;
}

.mobile-sidebar--guest .sidebar-scroll--guest {
  gap: 0.85rem;
  padding: 0.9rem 0.85rem calc(1.1rem + env(safe-area-inset-bottom));
}

.mobile-sidebar--guest .sidebar-welcome-card {
  display: grid;
  gap: 0.85rem;
  padding: 0.95rem 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.16) 0%, rgba(168, 85, 247, 0.08) 42%, rgba(7, 10, 18, 0.92) 100%);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(var(--accent-rgb), 0.1);
}

.mobile-sidebar--guest .sidebar-welcome-top {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.mobile-sidebar--guest .sidebar-welcome-avatar {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--pink, #ff2d83);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.18);
}

.mobile-sidebar--guest .sidebar-welcome-copy {
  min-width: 0;
  display: grid;
  gap: 0.22rem;
}

.mobile-sidebar--guest .sidebar-welcome-title {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
  line-height: 1.2;
}

.mobile-sidebar--guest .sidebar-welcome-text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(226, 232, 240, 0.72);
}

.mobile-sidebar--guest .sidebar-welcome-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.mobile-sidebar--guest .sidebar-welcome-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.mobile-sidebar--guest .sidebar-welcome-btn--primary {
  border: 0;
  background: linear-gradient(90deg, var(--pink, #ff2d83) 0%, #ff4d9a 100%);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.35);
}

.mobile-sidebar--guest .sidebar-welcome-btn--secondary {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

.mobile-sidebar--guest .sidebar-welcome-btn:hover,
.mobile-sidebar--guest .sidebar-welcome-btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.mobile-sidebar--guest .sidebar-dash-section {
  gap: 0.4rem;
  padding: 0.75rem 0.55rem 0.7rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(12, 16, 28, 0.72);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.mobile-sidebar--guest .sidebar-dash-heading {
  padding-inline: 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(148, 163, 184, 0.9);
}

.mobile-sidebar--guest .sidebar-dash-link {
  min-height: 46px;
  border-radius: 14px;
  color: rgba(241, 245, 249, 0.92);
}

.mobile-sidebar--guest .sidebar-dash-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.mobile-sidebar--guest .sidebar-dash-link.is-active {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.22) 0%, rgba(var(--accent-rgb), 0.06) 70%, transparent 100%);
  color: #fff;
  box-shadow:
    inset 3px 0 0 var(--pink, #ff2d83),
    0 0 18px rgba(var(--accent-rgb), 0.12);
}

[dir="rtl"] .mobile-sidebar--guest .sidebar-dash-link.is-active {
  background: linear-gradient(270deg, rgba(var(--accent-rgb), 0.22) 0%, rgba(var(--accent-rgb), 0.06) 70%, transparent 100%);
  box-shadow:
    inset -3px 0 0 var(--pink, #ff2d83),
    0 0 18px rgba(var(--accent-rgb), 0.12);
}

.mobile-sidebar--guest .sidebar-dash-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.mobile-sidebar--guest .sidebar-dash-link.is-active .sidebar-dash-icon {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.16);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.22);
}

.mobile-sidebar--guest .sidebar-dash-label {
  font-weight: 700;
}

.mobile-sidebar--guest .sidebar-dash-chevron {
  color: rgba(148, 163, 184, 0.85);
}

.mobile-sidebar--guest .sidebar-dash-meta.is-accent {
  color: var(--pink, #ff2d83);
  font-weight: 800;
}

.mobile-sidebar--guest .sidebar-theme-stack {
  display: grid;
  gap: 0.55rem;
  padding: 0.15rem 0 0.25rem;
}

.mobile-sidebar--guest .sidebar-theme-stack-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}

.mobile-sidebar--guest .sidebar-whatsapp-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 64px;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(12, 16, 28, 0.9) 55%, rgba(var(--accent-rgb), 0.08) 100%);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.mobile-sidebar--guest .sidebar-whatsapp-icon {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 14px;
  background: rgba(37, 211, 102, 0.16);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.28);
}

.mobile-sidebar--guest .sidebar-whatsapp-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.mobile-sidebar--guest .sidebar-whatsapp-copy strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: #f8fafc;
}

.mobile-sidebar--guest .sidebar-whatsapp-copy span {
  font-size: 0.76rem;
  color: rgba(226, 232, 240, 0.68);
  line-height: 1.3;
}

.mobile-sidebar--guest .sidebar-whatsapp-chevron {
  color: rgba(148, 163, 184, 0.9);
}

.mobile-sidebar--guest .sidebar-legal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.85rem;
  margin-top: 0.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-sidebar--guest .sidebar-legal-foot a {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.92);
  text-decoration: none;
  padding: 0.35rem 0.1rem;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.mobile-sidebar--guest .sidebar-legal-foot a:hover,
.mobile-sidebar--guest .sidebar-legal-foot a:focus-visible {
  color: var(--pink, #ff2d83);
}

/* Guest light mode — soft surfaces, restrained pink accents */
html[data-theme="light"] .mobile-sidebar--guest {
  background:
    radial-gradient(900px 320px at 10% -10%, rgba(var(--accent-rgb), 0.1), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-inline-end: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 12px 0 36px rgba(15, 23, 42, 0.12);
  color: #0b1220;
}

html[data-theme="light"][dir="rtl"] .mobile-sidebar--guest {
  border-inline-end: 0;
  border-inline-start: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: -12px 0 36px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .mobile-sidebar--guest .sidebar-head {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .mobile-sidebar--guest .sidebar-brand-tagline {
  color: #64748b;
}

html[data-theme="light"] .mobile-sidebar--guest .sidebar-close-btn {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .mobile-sidebar--guest .sidebar-welcome-card {
  border-color: rgba(var(--accent-rgb), 0.22);
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.08) 0%, #ffffff 48%, rgba(168, 85, 247, 0.05) 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .mobile-sidebar--guest .sidebar-welcome-title {
  color: #0b1220;
}

html[data-theme="light"] .mobile-sidebar--guest .sidebar-welcome-text {
  color: #475569;
}

html[data-theme="light"] .mobile-sidebar--guest .sidebar-welcome-avatar {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.22);
}

html[data-theme="light"] .mobile-sidebar--guest .sidebar-welcome-btn--secondary {
  border-color: rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #0b1220 !important;
  -webkit-text-fill-color: #0b1220 !important;
}

html[data-theme="light"] .mobile-sidebar--guest .sidebar-dash-section {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .mobile-sidebar--guest .sidebar-dash-heading {
  color: #64748b;
}

html[data-theme="light"] .mobile-sidebar--guest .sidebar-dash-link {
  color: #0f172a;
}

html[data-theme="light"] .mobile-sidebar--guest .sidebar-dash-link:hover {
  background: rgba(15, 23, 42, 0.03);
}

html[data-theme="light"] .mobile-sidebar--guest .sidebar-dash-link.is-active {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.14) 0%, rgba(var(--accent-rgb), 0.04) 72%, transparent 100%);
  color: #0b1220;
  box-shadow: inset 3px 0 0 var(--pink, #ff2d83);
}

html[data-theme="light"][dir="rtl"] .mobile-sidebar--guest .sidebar-dash-link.is-active {
  background: linear-gradient(270deg, rgba(var(--accent-rgb), 0.14) 0%, rgba(var(--accent-rgb), 0.04) 72%, transparent 100%);
  box-shadow: inset -3px 0 0 var(--pink, #ff2d83);
}

html[data-theme="light"] .mobile-sidebar--guest .sidebar-dash-icon {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .mobile-sidebar--guest .sidebar-whatsapp-card {
  border-color: rgba(15, 23, 42, 0.1);
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.08) 0%, #ffffff 55%, rgba(var(--accent-rgb), 0.05) 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .mobile-sidebar--guest .sidebar-whatsapp-copy strong {
  color: #0b1220;
}

html[data-theme="light"] .mobile-sidebar--guest .sidebar-whatsapp-copy span {
  color: #64748b;
}

html[data-theme="light"] .mobile-sidebar--guest .sidebar-legal-foot {
  border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .mobile-sidebar--guest .sidebar-legal-foot a {
  color: #64748b;
}

@media (max-width: 1023px) {
  .mobile-sidebar--guest {
    width: min(86vw, 22.5rem);
    max-width: min(86vw, 22.5rem);
  }
}

@media (max-width: 360px) {
  .mobile-sidebar--guest {
    width: 92vw;
    max-width: 92vw;
  }

  .mobile-sidebar--guest .sidebar-welcome-actions {
    grid-template-columns: 1fr;
  }

  .mobile-sidebar--guest .sidebar-brand-tagline {
    max-width: 11rem;
  }
}

body.sidebar-open .sidebar-backdrop.is-open {
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
}

.sidebar-fund-card {
  margin: 1rem 1.15rem 0.35rem;
  padding: 1.05rem 1.1rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), var(--surface-ghost));
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

html[data-theme="light"] .sidebar-fund-card {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.03);
}

.sidebar-fund-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sidebar-fund-amount {
  margin: calc(0.2rem + 5px) 0 0.85rem;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.sidebar-fund-amount [data-wallet-balance] {
  font: inherit;
}

.sidebar-add-funds {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(90deg, var(--pink) 0%, #ff4d8d 100%);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.28);
}

.sidebar-add-funds:hover,
.sidebar-add-funds:focus-visible,
.sidebar-add-funds:visited {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  filter: brightness(1.06);
}

.sidebar-account-no {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sidebar-account-no strong {
  color: var(--text);
  font-weight: 800;
}

.sidebar-copy-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
}

.sidebar-copy-btn:hover,
.sidebar-copy-btn.is-copied {
  color: var(--pink-hot);
  background: rgba(var(--accent-rgb), 0.1);
}

.sidebar-dash-section {
  display: grid;
  gap: 0.35rem;
  padding: 0.7rem 0.55rem 0.75rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.sidebar-dash-heading {
  display: block;
  padding: 0.15rem 0.55rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sidebar-dash-nav {
  display: grid;
  gap: 0.2rem;
}

.sidebar-dash-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  min-height: 52px;
  padding: 0.45rem 0.55rem;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  text-align: start;
  cursor: pointer;
}

.sidebar-dash-link.is-active {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.16) 0%, rgba(var(--accent-rgb), 0.05) 70%, transparent 100%);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--pink);
}

[dir="rtl"] .sidebar-dash-link.is-active {
  background: linear-gradient(270deg, rgba(var(--accent-rgb), 0.16) 0%, rgba(var(--accent-rgb), 0.05) 70%, transparent 100%);
  box-shadow: inset -3px 0 0 var(--pink);
}

.sidebar-dash-link.is-locked {
  opacity: 0.72;
}

.sidebar-dash-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-soft);
}

.sidebar-dash-icon.is-pink { --nav-icon: #ff2d83; }
.sidebar-dash-icon.is-pink-hot { --nav-icon: #ff3b8d; }
.sidebar-dash-icon.is-blue { --nav-icon: #3b82f6; }
.sidebar-dash-icon.is-amber { --nav-icon: #f59e0b; }
.sidebar-dash-icon.is-cyan { --nav-icon: #22d3ee; }
.sidebar-dash-icon.is-green,
.sidebar-dash-icon.is-teal { --nav-icon: #22c55e; }
.sidebar-dash-icon.is-violet { --nav-icon: #8b5cf6; }
.sidebar-dash-icon.is-gold { --nav-icon: #fbbf24; }
.sidebar-dash-icon.is-blue-soft { --nav-icon: #60a5fa; }
.sidebar-dash-icon.is-purple { --nav-icon: #a855f7; }
.sidebar-dash-icon.is-cyan-deep { --nav-icon: #06b6d4; }
.sidebar-dash-icon.is-orange { --nav-icon: #f97316; }

.sidebar-dash-icon[class*="is-"] {
  color: var(--nav-icon);
}

.sidebar-dash-icon[class*="is-"] svg {
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--nav-icon) 46%, transparent));
}

.sidebar-dash-link.is-active .sidebar-dash-icon {
  color: var(--nav-icon, var(--pink));
  background: var(--surface-soft);
  border-color: var(--border);
}

.sidebar-dash-label {
  flex: 1;
  min-width: 0;
}

.sidebar-dash-meta {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
}

.sidebar-dash-meta.is-accent {
  color: var(--pink-hot);
}

.sidebar-dash-chevron {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.sidebar-dash-link[aria-expanded="true"] .sidebar-dash-chevron {
  transform: rotate(90deg);
}

.sidebar-dash-disclosure {
  display: grid;
}

.sidebar-dash-disclosure:not(.is-open) [data-sidebar-disclosure-panel] {
  display: none;
}

.sidebar-dash-panel {
  padding: 0.15rem 0.35rem 0.45rem 2.55rem;
}

.sidebar-dash-panel .sidebar-lang-options,
.sidebar-dash-panel .theme-selector--compact {
  width: 100%;
}

.sidebar-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.85rem 1.15rem 1.15rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  -webkit-overflow-scrolling: touch;
}

.sidebar-section {
  display: grid;
  gap: 0.45rem;
  padding-bottom: 0.55rem;
}

.sidebar-section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.35rem 0.15rem 0.15rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-nav--compact > a {
  padding-block: 0.72rem;
}

.sidebar-nav > a,
.sidebar-accordion-trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.82rem 0.9rem;
  border-radius: 12px;
  color: var(--text-soft);
  font-weight: 600;
  background: none;
  border: 0;
  text-align: start;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}

.sidebar-nav > a:hover,
.sidebar-nav > a.is-active,
.sidebar-accordion-trigger:hover,
.sidebar-accordion-trigger.is-active,
.sidebar-accordion.is-open .sidebar-accordion-trigger {
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text);
}

.sidebar-nav > a.is-active,
.sidebar-accordion-trigger.is-active {
  box-shadow: inset 3px 0 0 var(--pink-hot);
}

[dir="rtl"] .sidebar-nav > a.is-active,
[dir="rtl"] .sidebar-accordion-trigger.is-active {
  box-shadow: inset -3px 0 0 var(--pink-hot);
}

.nav-link-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
        place-items: center;
  color: var(--pink);
  flex-shrink: 0;
}

.accordion-chevron {
  margin-inline-start: auto;
  display: inline-grid;
  transition: transform .18s ease;
}

.sidebar-accordion.is-open .accordion-chevron {
  transform: rotate(180deg);
}

.sidebar-accordion-panel {
  display: grid;
  gap: 0.1rem;
  padding: 0.15rem 0 0.35rem 0.55rem;
}

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

.sidebar-accordion-panel a,
.sidebar-category-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.7rem;
  border-radius: 10px;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.82rem;
}

.sidebar-category-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.sidebar-category-icon .category-svg {
  width: 18px;
  height: 18px;
  display: block;
}

.sidebar-accordion-panel a:hover,
.sidebar-category-item:hover,
.sidebar-category-item.is-active {
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text);
}

.sidebar-category-item--all {
  margin-top: 0.15rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border);
}

.sidebar-footer {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem 1.15rem calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  flex-shrink: 0;
}

.sidebar-controls {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
}

.sidebar-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.62rem 0.75rem;
}

.sidebar-control-row + .sidebar-control-row {
  border-top: 1px solid var(--border);
}

.sidebar-control-label {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.82rem;
        font-weight: 700;
  color: var(--text);
  min-width: 0;
}

.sidebar-control-row--lang .sidebar-lang-options {
  gap: 0.3rem;
}

.sidebar-control-row--lang .sidebar-lang-options a {
  min-width: 2.15rem;
  padding: 0.28rem 0.5rem;
  font-size: 0.72rem;
}

.sidebar-control-row--theme {
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}

.sidebar-control-row--theme .sidebar-control-label {
  width: 100%;
}

.sidebar-control-row--theme .theme-selector--compact {
  width: 100%;
}

.theme-selector {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.22rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.theme-selector--compact {
  flex-shrink: 0;
}

.theme-selector--compact .theme-selector-btn {
  flex: 1;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.38rem 0.2rem;
  min-height: 54px;
}

.theme-selector-btn-text {
  font-size: 0.62rem;
  line-height: 1.1;
  font-weight: 700;
  text-align: center;
}

.theme-selector--block {
  display: flex;
  width: 100%;
}

.theme-selector--block .theme-selector-btn {
  flex: 1;
}

.theme-selector--menu {
  display: grid;
  gap: 0.2rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.theme-selector-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 34px;
  min-height: 34px;
  padding: 0 0.55rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.theme-selector-btn:hover {
  color: var(--text);
  background: var(--surface-soft);
}

html[data-theme="light"] .theme-selector-btn:hover {
  background: rgba(15, 23, 42, 0.04);
}

.theme-selector-btn.is-active {
  background: var(--pink);
  color: #fff;
}

.theme-selector-btn.is-active:hover {
  background: var(--pink-hot);
  color: #fff;
}

.theme-selector--menu .theme-selector-btn {
  width: 100%;
  justify-content: flex-start;
  min-height: 40px;
  padding: 0.55rem 0.65rem;
}

.theme-menu {
  min-width: 12rem;
  padding: 0.35rem;
}

.theme-dropdown .nav-dropdown-menu,
.header-prefs .theme-menu {
  inset-inline-start: auto;
  inset-inline-end: 0;
  min-width: 12rem;
  max-width: min(16rem, calc(100vw - 1.25rem));
}

.theme-dropdown.is-open {
  z-index: 92;
}

.account-theme-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-soft);
}

.account-theme-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.account-theme-card-head strong {
  display: block;
  font-size: 0.95rem;
}

.account-theme-card-head span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.account-theme-card-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.theme-switch--compact {
  width: 44px;
  height: 26px;
}

.theme-switch--compact .theme-switch-thumb {
  width: 20px;
  height: 20px;
}

.theme-switch--compact.is-light .theme-switch-thumb {
  transform: translateX(18px);
}

[dir="rtl"] .theme-switch--compact.is-light .theme-switch-thumb {
  transform: translateX(-18px);
}

.sidebar-logout {
  margin: 0;
}

.sidebar-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  background: transparent;
  color: var(--pink-hot);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.sidebar-logout-btn:hover {
  background: rgba(var(--accent-rgb), 0.1);
  color: #ff7aa8;
}

.sidebar-settings {
  display: grid;
  gap: 0.55rem;
}

.sidebar-lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
}

.sidebar-lang-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
}

.sidebar-lang-options {
  display: inline-flex;
  gap: 0.35rem;
}

.sidebar-lang-options a {
  min-width: 2.4rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.sidebar-lang-options a:hover,
.sidebar-lang-options a.is-active {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--pink-hot);
}

.sidebar-auth {
  display: grid;
  gap: 0.55rem;
}

.sidebar-actions {
  display: grid;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.theme-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
}

.theme-switch-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.theme-switch {
  position: relative;
  width: 52px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #3f4656;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s ease;
}

.theme-switch.is-light {
  background: var(--pink);
}

.theme-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transition: transform .2s ease;
}

.theme-switch.is-light .theme-switch-thumb {
  transform: translateX(22px);
}

[dir="rtl"] .theme-switch-thumb { left: auto; right: 3px; }
[dir="rtl"] .theme-switch.is-light .theme-switch-thumb {
  transform: translateX(-22px);
}

/* Hero */
.hero {
  display: flex;
  align-items: flex-start;
  min-height: auto;
  padding: 0.35rem 0 0.65rem;
  margin-bottom: 0;
}

/* Hero open / display animation (plays on first load) */
@media (prefers-reduced-motion: no-preference) {
  .hero .hero-in {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    animation: heroInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .hero .hero-in:nth-child(1) { animation-delay: 0.08s; }
  .hero .hero-in:nth-child(2) { animation-delay: 0.18s; }
  .hero .hero-in:nth-child(3) { animation-delay: 0.28s; }
  .hero .hero-in:nth-child(4) { animation-delay: 0.38s; }
  .hero .hero-in:nth-child(5) { animation-delay: 0.5s; }

  .hero .hero-in-visual {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.96);
    animation: heroInVisual 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
  }

  .hero .hero-in-visual .hero-image {
    animation:
      heroImagePop 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both,
      float 7s ease-in-out 1s infinite;
  }
}

@keyframes heroInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroInVisual {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes heroImagePop {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.hero-shell.container {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
  align-self: center;
  max-width: 100%;
}

.hero-grid {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  width: 100%;
  min-width: 0;
}

/* Phone: image first under nav, then copy */
.hero-visual {
  order: 1;
}

.hero-copy {
  order: 2;
        display: flex;
        flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: min(540px, 100%);
  min-width: 0;
  padding: 0;
  margin: 0 auto;
  justify-self: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(167, 139, 250, 0.28);
  color: #ddd6fe;
  font-size: clamp(0.62rem, 2.8vw, 0.74rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 0.65rem;
  white-space: normal;
  line-height: 1.3;
}

html[data-theme="light"] .hero-pill {
  background: rgba(124, 58, 237, 0.1);
  color: #6d28d9;
  border-color: rgba(124, 58, 237, 0.18);
}

.hero-pill--mobile {
  display: none;
}

.hero h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.85rem, 8vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 100%;
}

.hero-title-line {
  display: block;
}

.hero h1 .accent {
  background: linear-gradient(
    90deg,
    #ff6b4a 0%,
    var(--pink) 22%,
    #ff4d8d 44%,
    #ffa07a 66%,
    var(--pink) 88%,
    #ff6b4a 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroAccentFlow 0.7s linear infinite;
}

@keyframes heroAccentFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.hero-lede {
  color: var(--text-soft);
  font-size: clamp(0.95rem, 3.6vw, 1.12rem);
  line-height: 1.6;
  max-width: 100%;
  margin: 0 0 0.85rem;
  font-weight: 500;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
  width: 100%;
}

.hero-btn {
  min-height: 46px;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  border-radius: 14px;
  font-weight: 700;
  width: 100%;
  justify-content: center;
  white-space: nowrap;
}

.hero-ctas .btn-primary {
  box-shadow: 0 12px 32px rgba(var(--accent-rgb), 0.38);
}

.hero-ctas .btn-outline {
  background: var(--surface-ghost);
  border-color: rgba(255, 255, 255, 0.22);
}

html[data-theme="light"] .hero-ctas .btn-outline {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.14);
}

.trust-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0.65rem 0.85rem;
  padding-top: 0.15rem;
  width: 100%;
  min-width: 0;
}

.trust-inline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 0;
  line-height: 1.25;
  flex: 1 1 calc(50% - 0.5rem);
}

.trust-inline span:last-child {
  flex: 1 1 100%;
}

.trust-inline svg {
  color: var(--pink);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Phone: compact badge between CTAs and search */
@media (max-width: 767px) {
  .hero-grid {
    gap: 0.25rem;
  }

  .hero-visual {
    min-height: 210px;
    padding: 0 0.35rem 0.15rem;
  }

  .hero-image {
    max-height: 320px;
  }

  .hero-copy {
    margin-top: -0.15rem;
  }

  .hero-pill--desktop,
  .trust-marquee {
    display: none !important;
  }

  .hero-ctas {
    margin-bottom: 0 !important;
  }

  .hero-pill--mobile {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    width: fit-content;
    max-width: calc(100% - 1rem);
    margin: 0.75rem auto !important;
    padding: 0.26rem 0.62rem;
    font-size: 0.58rem;
    letter-spacing: 0.055em;
    line-height: 1.15;
    white-space: nowrap;
    text-align: center;
    border-radius: 999px;
  }

  .hero h1 {
    margin-top: 0;
  }

  .hero {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .home-search-band {
    margin-top: 0 !important;
    padding-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-inline.is-marquee {
    animation: none !important;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  justify-items: center;
  min-height: 240px;
  padding: 0.25rem 0.5rem 0.85rem;
  overflow: visible;
}

.hero-image {
  position: relative;
  z-index: 3;
  width: min(100%, 640px);
  max-height: 380px;
  height: auto;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  background: transparent;
  filter: drop-shadow(0 20px 36px rgba(var(--accent-rgb), 0.16));
}

@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .hero .hero-in-visual .hero-image {
    animation:
      heroImagePop 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both,
      float 5.5s ease-in-out 0.9s infinite;
  }

  .hero-light-a {
    animation: lightShiftA 8s ease-in-out infinite;
  }

  .hero-light-b {
    animation: lightShiftB 9s ease-in-out infinite;
  }
}

html[data-theme="light"] .hero-image {
  filter: drop-shadow(0 18px 30px rgba(15, 23, 42, 0.16));
}

.hero-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
}

.hero-light-a {
  width: 200px;
  height: 200px;
  top: 12%;
  inset-inline-end: 10%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.7), transparent 70%);
}

.hero-light-b {
  width: 220px;
  height: 220px;
  top: 22%;
  inset-inline-start: 8%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.45), transparent 70%);
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .hero-light-a { animation: lightShiftA 8s ease-in-out infinite; }
  .hero-light-b { animation: lightShiftB 9s ease-in-out infinite; }
}

/* Pro floor platform */
.hero-floor {
  position: absolute;
  z-index: 2;
  bottom: 0.15rem;
  left: 50%;
  transform: translateX(-50%) perspective(420px) rotateX(62deg);
  width: min(72%, 380px);
  height: 88px;
  pointer-events: none;
  transform-style: preserve-3d;
}

.hero-floor-base {
  position: absolute;
  inset: 18% 0 22%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.35) 0%, rgba(99, 102, 241, 0.16) 38%, transparent 70%);
  filter: blur(2px);
}

.hero-floor-sheen {
  position: absolute;
  inset: 28% 8% 34%;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 48%,
    transparent 62%
  );
  background-size: 220% 100%;
  opacity: 0.85;
}

.hero-floor-ring {
  position: absolute;
  left: 50%;
  top: 30%;
  width: 78%;
  height: 42%;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1.5px solid rgba(var(--accent-rgb), 0.45);
  box-shadow:
    0 0 16px rgba(var(--accent-rgb), 0.25),
    inset 0 0 12px rgba(56, 189, 248, 0.12);
}

.hero-floor-ring.delay {
  width: 92%;
  height: 52%;
  top: 22%;
  border-color: rgba(56, 189, 248, 0.28);
}

.hero-floor-spark {
  position: absolute;
  left: 12%;
  top: 40%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 4px rgba(var(--accent-rgb), 0.75);
  opacity: 0;
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .hero-floor-base { animation: floorBreathe 5s ease-in-out infinite; }
  .hero-floor-sheen { animation: floorSheen 3.8s ease-in-out infinite; }
  .hero-floor-ring { animation: floorRing 4.2s ease-out infinite; }
  .hero-floor-ring.delay { animation-delay: 1.4s; }
  .hero-floor-spark { animation: floorSpark 4.8s linear infinite; }
}

/* Sections */
.section { padding: 2rem 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}
.link-more {
  color: var(--pink-hot);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}

/* Pro reveal — GPU-friendly (opacity + small Y, no blur) */
.reveals-ready .reveal:not(.is-revealed) {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

.reveals-ready .reveal {
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveals-ready .reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.social-stat strong[data-counter] {
  font-variant-numeric: tabular-nums;
}

/* Avoid clipping reveal/overflow motion */
.section,
.product-grid,
.category-grid,
.type-card-grid,
.social-grid,
.faq-grid,
.how-steps,
.payment-methods {
  overflow: visible;
}

.payments-section .container {
  overflow: hidden;
}

.payment-methods.is-marquee {
  display: flex;
  width: max-content;
  gap: 0.7rem;
  animation: payMarquee 28s linear infinite;
  will-change: transform;
}

.payment-methods.is-marquee:hover {
  animation-play-state: paused;
}

.payment-methods.is-marquee .payment-chip {
  flex: 0 0 auto;
  min-width: 150px;
}

@keyframes payMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (min-width: 768px), (prefers-reduced-motion: reduce) {
  .payment-methods.is-marquee {
    animation: none !important;
    display: grid;
    width: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .payment-methods.is-marquee {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  /* Hide duplicated marquee clones on desktop grid */
  .payment-methods.is-marquee .payment-chip[aria-hidden="true"] {
    display: none;
  }
}

/* Floating dock — above tab bar + PWA, never under home indicator */
.floating-dock {
  --dock-size: 52px;
  position: fixed;
  inset-inline-end: max(1.1rem, calc(0.65rem + var(--safe-right)));
  bottom: calc(
    var(--app-dock-gap) + var(--safe-bottom) + var(--app-tab-clearance) + var(--app-pwa-clearance)
  );
  /* Above bottom tab bar (70) so support stays reachable; below modals/overlays (200+) */
  z-index: 85;
  width: var(--dock-size);
  height: var(--dock-size);
}

.floating-dock-toast {
  position: absolute;
  bottom: calc(100% + 0.85rem);
  inset-inline-end: 0;
  min-width: 10.5rem;
  max-width: 14rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ecfdf5;
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.96), rgba(5, 150, 105, 0.94));
  border: 1px solid rgba(167, 243, 208, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 8px, 0);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
  pointer-events: none;
  z-index: 2;
}

.floating-dock-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.floating-dock-toast-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  flex: 0 0 auto;
}

.floating-dock-toast-icon svg {
  display: block;
}

.floating-cart-btn {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  background:
    linear-gradient(165deg, var(--bg-card, #121826), var(--bg-elevated, #0c1018));
  border: 1px solid var(--border);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(var(--accent-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.floating-cart-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 77, 141, 0.35);
  box-shadow:
    0 14px 32px rgba(var(--accent-rgb), 0.22),
    0 0 0 1px rgba(var(--accent-rgb), 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.floating-cart-btn:active {
  transform: translateY(0) scale(0.96);
}

.floating-cart-btn svg {
  display: block;
}

.floating-cart-badge {
  position: absolute;
  top: 3px;
  inset-inline-end: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 0 0 2px rgba(8, 10, 16, 0.95);
  z-index: 1;
}

html[data-theme="light"] .floating-cart-btn {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 252, 0.98));
  border-color: rgba(15, 23, 42, 0.1);
  color: var(--text);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(var(--accent-rgb), 0.1);
}

html[data-theme="light"] .floating-cart-badge {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.98);
}

/* Floating contact — primary corner support launcher */
.floating-contact {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.floating-contact-menu {
  position: absolute;
  bottom: calc(100% + 0.65rem);
  inset-inline-end: 0;
  min-width: 11.5rem;
  padding: 0.55rem;
  border-radius: 16px;
  display: grid;
  gap: 0.35rem;
  background:
    linear-gradient(165deg, rgba(18, 22, 32, 0.98), rgba(8, 10, 16, 0.99));
  border: 1px solid var(--border);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(var(--accent-rgb), 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 10px, 0) scale(0.96);
  transform-origin: bottom right;
  transition:
    opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.28s ease;
  pointer-events: none;
}

[dir="rtl"] .floating-contact-menu {
  transform-origin: bottom left;
}

.floating-contact.is-open .floating-contact-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.floating-contact-menu-label {
  margin: 0 0.35rem 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.floating-contact-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.62rem 0.7rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--surface-ghost);
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.floating-contact-option:hover {
  transform: translateY(-1px);
  border-color: var(--border);
  background: var(--surface-hover);
}

.floating-contact-option-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.floating-contact-option--whatsapp .floating-contact-option-icon {
  color: #ecfdf5;
  background: linear-gradient(160deg, rgba(34, 197, 94, 0.95), rgba(21, 128, 61, 0.92));
}

.floating-contact-option--ai .floating-contact-option-icon {
  color: #fff;
  background: linear-gradient(160deg, rgba(255, 77, 141, 0.95), rgba(217, 22, 90, 0.92));
}

.floating-contact-btn {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.floating-contact-btn::before,
.floating-contact-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.42);
  pointer-events: none;
  z-index: 0;
  animation: support-boom-ring 1.7s ease-out infinite;
}

.floating-contact-btn::after {
  animation-delay: 0.55s;
}

.floating-contact-btn-icon {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(255, 77, 141, 0.95), rgba(217, 22, 90, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(var(--accent-rgb), 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
}

.floating-contact-btn-icon--open {
  animation: support-boom 1.7s ease-in-out infinite;
}

.floating-contact-btn-icon--close {
  display: none;
}

.floating-contact.is-open .floating-contact-btn-icon--open {
  display: none;
}

.floating-contact.is-open .floating-contact-btn-icon--close {
  display: grid;
}

.floating-contact-btn:hover .floating-contact-btn-icon {
  transform: translateY(-2px);
  box-shadow:
    0 14px 32px rgba(var(--accent-rgb), 0.28),
    0 0 0 1px rgba(var(--accent-rgb), 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.floating-contact-btn:hover .floating-contact-btn-icon--open,
.floating-contact-btn:active .floating-contact-btn-icon--open,
.floating-contact.is-open .floating-contact-btn-icon--open,
.floating-contact.is-open .floating-contact-btn::before,
.floating-contact.is-open .floating-contact-btn::after {
  animation: none;
}

.floating-contact-btn:active .floating-contact-btn-icon {
  transform: translateY(0) scale(0.96);
}

@keyframes support-boom {
  0%, 52%, 100% {
    transform: scale(1);
  }
  8% {
    transform: scale(1.16);
  }
  18% {
    transform: scale(1);
  }
  28% {
    transform: scale(1.1);
  }
  38% {
    transform: scale(1);
  }
}

@keyframes support-boom-ring {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  70%, 100% {
    transform: scale(1.72);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-contact-btn::before,
  .floating-contact-btn::after,
  .floating-contact-btn-icon--open {
    animation: none;
  }
}

.floating-contact-btn svg {
  display: block;
}

html[data-theme="light"] .floating-contact-menu {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 252, 0.99));
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

html[data-theme="light"] .floating-contact-option {
  color: var(--text);
  background: rgba(15, 23, 42, 0.03);
}

html[data-theme="light"] .floating-contact-btn-icon {
  color: #fff;
}

/* AI agent chat panel */
.ai-agent-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: end;
  pointer-events: none;
  isolation: isolate;
}

.ai-agent-panel:not([hidden]) {
  pointer-events: auto;
}

.ai-agent-panel-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 4, 10, 0.55);
  opacity: 0;
  transition: opacity 0.22s ease;
  touch-action: none;
}

.ai-agent-panel:not([hidden]) .ai-agent-panel-backdrop {
  opacity: 1;
}

.ai-agent-panel-sheet {
  position: relative;
  width: min(100%, 26rem);
  height: min(86dvh, 40rem);
  max-height: min(86dvh, 40rem);
  margin: 0 0.85rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  background:
    linear-gradient(165deg, rgba(18, 22, 32, 0.98), rgba(8, 10, 16, 0.99));
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
  transform: translate3d(0, 24px, 0);
  opacity: 0;
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.22s ease;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  contain: layout paint style;
  content-visibility: auto;
  -webkit-overflow-scrolling: touch;
}

.ai-agent-panel:not([hidden]) .ai-agent-panel-sheet {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

body.has-ai-agent-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

body.has-ai-agent-open .floating-dock {
  visibility: hidden;
  pointer-events: none;
}

/* Mobile: true full-height responsive chat */
@media (max-width: 639px) {
  .ai-agent-panel {
    place-items: stretch;
  }

  .ai-agent-panel-sheet {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: 100%;
    min-height: 100%;
    margin: 0;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }

  body.has-mobile-home-tab .ai-agent-panel-sheet {
    height: calc(100dvh - 4.75rem - var(--safe-bottom, 0px) - var(--app-pwa-clearance, 0px));
    max-height: calc(100dvh - 4.75rem - var(--safe-bottom, 0px) - var(--app-pwa-clearance, 0px));
    min-height: 0;
    margin: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-radius: 18px 18px 0 0;
  }
}

@media (min-width: 640px) {
  .ai-agent-panel {
    place-items: end end;
  }

  .ai-agent-panel-sheet {
    margin: 0 1.1rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
  }
}

.ai-agent-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 0.95rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-agent-panel-head-copy {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}

.ai-agent-panel-badge {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(160deg, rgba(255, 77, 141, 0.95), rgba(217, 22, 90, 0.92));
  flex: 0 0 auto;
}

.ai-agent-panel-head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.ai-agent-panel-head p {
  margin: 0.15rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.ai-agent-panel-head-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.ai-agent-end-chat {
  height: 34px;
  padding: 0 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-hover);
  color: #fff;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.ai-agent-panel-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.ai-agent-panel-body {
  padding: 0.85rem;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: grid;
  gap: 0.65rem;
  align-content: start;
  min-height: 0;
  touch-action: pan-y;
  will-change: scroll-position;
}

.ai-agent-message {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.ai-agent-message--user {
  justify-content: flex-end;
}

.ai-agent-message--user p {
  background: linear-gradient(160deg, rgba(255, 77, 141, 0.92), rgba(217, 22, 90, 0.88));
  color: #fff;
}

.ai-agent-message--admin {
  justify-content: flex-start;
}

.ai-agent-message--admin p {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.ai-agent-message-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 77, 141, 0.18);
  flex: 0 0 auto;
}

.ai-agent-message p {
  margin: 0;
  max-width: 85%;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--surface-hover);
  color: #fff;
}

.ai-agent-photo {
  display: block;
  max-width: min(220px, 72vw);
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.35rem;
}

.ai-agent-attach {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--surface-hover);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.ai-agent-attach input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.ai-agent-panel-compose {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.ai-agent-panel-compose input[type="text"] {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  font: inherit;
  /* 16px prevents iOS Safari auto-zoom on focus */
  font-size: 16px;
  line-height: 1.25;
  touch-action: manipulation;
}

.ai-agent-panel-compose input::placeholder {
  color: var(--text-faint);
  -webkit-text-fill-color: var(--text-faint);
}

.ai-agent-panel-send {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(160deg, rgba(255, 77, 141, 0.95), rgba(217, 22, 90, 0.92));
  cursor: pointer;
}

.ai-agent-closed-note {
  margin: 0;
  padding: 0.55rem 0.9rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: center;
}

.ai-agent-panel.is-closed .ai-agent-closed-note,
.support-chat-page.is-closed .ai-agent-closed-note {
  display: block;
}

.ai-agent-panel-frame {
  width: 100%;
  min-height: 22rem;
  border: 0;
  background: var(--bg-card, #fff);
}
html[data-theme="light"] .ai-agent-panel-frame {
  background: #fff;
}

.ai-agent-panel-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

html[data-theme="light"] .ai-agent-panel-sheet {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 252, 0.99));
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .ai-agent-panel-head,
html[data-theme="light"] .ai-agent-panel-compose {
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .ai-agent-panel-close,
html[data-theme="light"] .ai-agent-end-chat,
html[data-theme="light"] .ai-agent-panel-compose input {
  color: var(--text);
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .ai-agent-message p {
  color: var(--text);
  background: rgba(15, 23, 42, 0.05);
}

.ai-agent-message--system {
  justify-self: center;
  max-width: 92%;
}

.ai-agent-message--system p {
  background: transparent;
  color: var(--muted, #94a3b8);
  text-align: center;
  font-size: 0.78rem;
  padding: 0.2rem 0.4rem;
}

.ai-agent-offer {
  display: grid;
  gap: 0.7rem;
  margin: 0.15rem 0 0.35rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 16px;
  background: rgba(var(--accent-rgb), 0.08);
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.ai-agent-offer-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.4;
}

.ai-agent-offer-actions {
  display: flex;
  gap: 0.5rem;
}

.ai-agent-offer-yes,
.ai-agent-offer-no {
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.ai-agent-offer-yes {
  border: 0;
  background: var(--pink);
  color: #fff;
}

.ai-agent-offer-no {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: inherit;
}

html[data-theme="light"] .ai-agent-offer {
  background: #fff1f5;
  border-color: rgba(217, 22, 90, 0.22);
}

html[data-theme="light"] .ai-agent-offer-no {
  border-color: rgba(15, 23, 42, 0.14);
  background: #fff;
  color: #0f172a;
}

html[data-theme="light"] .ai-agent-message--system p {
  color: #64748b;
}

html[data-theme="light"] .ai-agent-message--user p {
  background: linear-gradient(160deg, #ff4d8d, #d9165a);
  color: #fff;
}

.ai-agent-picks {
  display: grid;
  gap: 0.55rem;
  margin: 0.1rem 0 0.25rem;
}

.ai-agent-picks-title {
  margin: 0;
  color: var(--muted, #94a3b8);
  font-size: 0.78rem;
  font-weight: 700;
}

.ai-agent-picks-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

@media (max-width: 420px) {
  .ai-agent-picks-list {
    grid-template-columns: 1fr;
  }
}

.ai-agent-pick {
  max-width: 100%;
  min-height: 38px;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.1);
  color: inherit;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: start;
  cursor: pointer;
}

.ai-agent-pick:hover,
.ai-agent-pick:focus-visible {
  background: rgba(var(--accent-rgb), 0.18);
  border-color: var(--pink);
}

html[data-theme="light"] .ai-agent-picks-title {
  color: #64748b;
}

html[data-theme="light"] .ai-agent-pick {
  background: #fff;
  border-color: rgba(217, 22, 90, 0.28);
  color: #0f172a;
}

@media (min-width: 1024px) {
  body.has-mobile-home-tab .ai-agent-panel-sheet {
    margin-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    height: min(86dvh, 40rem);
    max-height: min(86dvh, 40rem);
  }
}

/* Full-page support chat (no modal / no site footer) */
html:has(body.is-support-chat-page) {
  height: 100%;
  overflow: hidden;
}

body.is-support-chat-page {
  overflow: hidden;
  overscroll-behavior: none;
  height: 100%;
  min-height: 100dvh;
  min-height: 100svh;
  background: #05070b;
  padding: 0;
  margin: 0;
}

body.is-support-chat-page #main.support-chat-main {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  min-height: 100svh;
  height: 100dvh;
  height: 100svh;
}

.support-chat-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: 100%;
  height: 100dvh;
  height: 100svh;
  max-height: 100dvh;
  max-height: 100svh;
  min-height: 0;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(18, 22, 32, 0.98), rgba(8, 10, 16, 1));
  color: #fff;
  contain: layout paint style;
}

.support-chat-page-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: calc(0.75rem + env(safe-area-inset-top, 0px)) 0.9rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 16, 0.92);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.support-chat-back {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  text-decoration: none;
  flex: 0 0 auto;
  touch-action: manipulation;
}

.support-chat-back:hover,
.support-chat-back:focus-visible {
  background: rgba(var(--accent-rgb), 0.18);
  border-color: rgba(var(--accent-rgb), 0.35);
}

.support-chat-page-head-copy {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.support-chat-page-head-copy h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.support-chat-page-head-copy p {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.support-chat-page-head-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.support-chat-page-body {
  min-height: 0;
  height: 100%;
  overflow: auto;
}

.support-chat-page .ai-agent-closed-note {
  margin: 0;
  padding: 0.55rem 0.9rem;
}

.support-chat-page-compose {
  padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 10, 16, 0.96);
}

html[data-theme="light"] body.is-support-chat-page {
  background: #f4f6fb;
}

html[data-theme="light"] .support-chat-page {
  background: linear-gradient(180deg, #ffffff, #f4f6fb);
  color: #0f172a;
}

html[data-theme="light"] .support-chat-page-head,
html[data-theme="light"] .support-chat-page-compose {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .support-chat-back {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .support-chat-page-head-copy p {
  color: #64748b;
}

@media (min-width: 768px) {
  .support-chat-page {
    max-width: 52rem;
    border-inline: 1px solid rgba(255, 255, 255, 0.08);
  }

  html[data-theme="light"] .support-chat-page {
    border-color: rgba(15, 23, 42, 0.08);
  }
}

#offer,
#how,
#payments,
#faq,
.site-footer {
  content-visibility: visible;
}

.features-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0.5rem 0 1.5rem;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.feature-icon.purple { background: rgba(139,92,246,.18); color: var(--purple); }
.feature-icon.blue { background: rgba(59,130,246,.18); color: var(--blue); }
.feature-icon.cyan { background: rgba(34,211,238,.15); color: var(--cyan); }
.feature-icon.pink { background: rgba(var(--accent-rgb),.15); color: var(--pink); }

.feature-item h3 { margin: 0 0 0.2rem; font-size: 0.95rem; }
.feature-item p { margin: 0; color: var(--text-muted); font-size: 0.8rem; line-height: 1.4; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 132px;
  height: 100%;
  background: var(--surface-ghost);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem 0.75rem;
  text-align: center;
  cursor: default;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

html[data-theme="light"] .category-card {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

@media (hover: hover) and (pointer: fine) {
  .category-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.14);
  }

  html[data-theme="light"] .category-card:hover {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.14);
  }
}

.category-icon {
  width: 52px;
  height: 52px;
  margin: 0;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 28px rgba(91, 140, 255, 0.08);
}

.category-icon .category-svg,
.category-icon svg {
  display: block;
  width: 48px;
  height: 48px;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.28));
}

.category-card h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  max-width: 12ch;
}

.type-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: stretch;
  touch-action: pan-y;
}

.type-card-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.type-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  touch-action: pan-y;
}

html[data-theme="light"] .type-card {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

@media (hover: hover) and (pointer: fine) {
  .type-card {
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  }

  .type-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--accent-rgb), 0.28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  }
}

.type-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(var(--accent-rgb), 0.12), transparent 58%),
    var(--surface-ghost);
  overflow: hidden;
}

.type-card--icon .type-card-media {
  display: grid;
  place-items: center;
}

.type-card-image,
.type-card-media .category-thumb,
.type-card-media .category-thumb--fluid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 1;
}

.type-card-media .category-thumb-fallback,
.type-card-media .category-thumb-fallback--fluid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  font-size: clamp(1.15rem, 4.5vw, 1.55rem);
  letter-spacing: 0.06em;
}

.type-card-icon-wrap {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.type-card-icon-wrap .category-svg,
.type-card-icon-wrap svg {
  width: 48px;
  height: 48px;
}

.type-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.28rem;
  min-height: 4.75rem;
  padding: 0.85rem 0.8rem 0.95rem;
  text-align: center;
}

.type-card-body h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.type-card-cta {
  margin-top: auto;
  padding-top: 0.2rem;
  color: var(--pink-hot);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.type-card-grid--compact .type-card-body {
  min-height: 4.25rem;
  padding: 0.72rem 0.65rem 0.82rem;
}

.type-card-grid--compact .type-card-body h3 {
  font-size: 0.82rem;
  min-height: 2.4em;
}

.type-card-grid--compact .type-card-icon-wrap {
  width: 52px;
  height: 52px;
}

.type-card-grid--compact .type-card-icon-wrap .category-svg,
.type-card-grid--compact .type-card-icon-wrap svg {
  width: 42px;
  height: 42px;
}

@media (min-width: 640px) {
  .type-card-grid,
  .type-card-grid--filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .type-card-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (min-width: 900px) {
  .type-card-grid,
  .type-card-grid--filter {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .type-card-grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .type-card-grid,
  .type-card-grid--filter {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .type-card-grid--compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Products — compact tile cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: stretch;
  touch-action: pan-y;
}

.product-grid--catalog {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
  touch-action: pan-y;
}

.product-list {
  display: none;
  gap: 0.7rem;
}

.product-card,
.product-row {
  background: var(--surface-ghost);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
}

html[data-theme="light"] .product-card,
html[data-theme="light"] .product-row {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

/* Dark mode — solid card surfaces (avoid washed glass overlays site-wide) */
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .product-row,
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .home-cat-card,
html[data-theme="dark"] .home-order-row--premium,
html[data-theme="dark"] .type-card,
html[data-theme="dark"] .orders-search,
html[data-theme="dark"] .orders-select,
html[data-theme="dark"] .orders-dates,
html[data-theme="dark"] .orders-export-btn,
html[data-theme="dark"] .cart-total,
html[data-theme="dark"] .ui-select-trigger,
html[data-theme="dark"] .dropdown-panel,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .toast {
  background: var(--bg-card);
  backdrop-filter: none;
}

html[data-theme="light"] .product-avail-badge {
  background: rgba(15, 18, 24, 0.74);
  color: #f3f4f6;
  border-color: rgba(239, 68, 68, 0.48);
}

html[data-theme="light"] .product-avail-status,
html[data-theme="light"] .product-avail-action {
  color: #6b7280;
}

html[data-theme="light"] .product-card--out,
html[data-theme="light"] .product-row--out {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(15, 23, 42, 0.08);
}

.product-row--out .thumb img,
.product-row--out .thumb .product-fallback {
  filter: grayscale(0.4) saturate(0.58) brightness(0.88);
  opacity: 0.78;
}

.product-row--out > div {
  opacity: 0.82;
}

.product-avail-action {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 14px;
  transition: border-color .18s ease;
  touch-action: pan-y;
}

.product-card--out {
  box-shadow: none;
}

.product-card--out .product-media img,
.product-card--out .product-media .product-fallback {
  filter: grayscale(0.38) saturate(0.52) brightness(0.88);
  opacity: 0.76;
}

.product-card--out .product-card-body,
.product-card--out .product-card-caption {
  opacity: 0.84;
}

.product-card--out .product-card-link--static {
  cursor: default;
  pointer-events: none;
}

.product-card--out .product-card-fav {
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
  .product-card--out:hover {
    transform: none;
  }
}

.product-avail-badge {
  position: absolute;
  top: 0.36rem;
  inset-inline-start: 0.36rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: calc(100% - 2.9rem);
  padding: 0.16rem 0.46rem 0.16rem 0.34rem;
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(248, 113, 113, 0.55);
  color: #e8eaee;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.08), 0 0 12px rgba(239, 68, 68, 0.22);
}

.product-avail-dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: #f43f5e;
  box-shadow: 0 0 6px #f43f5e, 0 0 10px rgba(244, 63, 94, 0.5);
}

.product-avail-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-avail-status {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0.08rem 0 0;
  font-size: 0.58rem;
  font-weight: 700;
  color: #c7cbd3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (max-width: 420px) {
  .product-avail-badge {
    top: 0.28rem;
    inset-inline-start: 0.28rem;
    font-size: 0.54rem;
    padding: 0.12rem 0.38rem 0.12rem 0.28rem;
    max-width: calc(100% - 2.55rem);
  }
}

@media (hover: hover) and (pointer: fine) {
  .product-card {
    transition: transform .18s ease, border-color .18s ease;
  }

  .product-card:hover {
    transform: translateY(-3px);
    border-color: var(--border);
  }

  .product-card--out:hover {
    transform: none;
  }
}

.product-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  touch-action: pan-y;
}

.product-media {
  aspect-ratio: 1 / 1;
  width: 100%;
  flex-shrink: 0;
  background: var(--surface-ghost-2);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.product-price-badge {
  position: absolute;
  top: 0.35rem;
  inset-inline-end: 0.35rem;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.04rem;
  max-width: calc(100% - 0.5rem);
  padding: 0.24rem 0.45rem;
  border-radius: 8px;
  background: rgba(5, 7, 11, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.product-price-badge strong {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  white-space: nowrap;
}

.product-price-badge s {
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.product-price-badge--sale strong {
  color: #ffd0e4;
}

.product-price-badge--custom strong {
  color: #ff9ec4;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-theme="light"] .product-price-badge {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .product-price-badge strong {
  color: var(--text);
}

html[data-theme="light"] .product-price-badge s {
  color: var(--text-muted);
}

html[data-theme="light"] .product-price-badge--sale strong {
  color: var(--pink-deep);
}

.product-card-caption {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding: 0.5rem 0.45rem 0.55rem;
  min-height: 0;
}

.product-card-caption h3 {
  margin: 0;
  width: 100%;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card--shop {
  height: 100%;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: none;
  contain: content;
}

.product-grid--catalog > .product-card--shop:nth-child(n+13) {
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}

.product-card--shop .product-card-media-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-card--shop .product-media {
  aspect-ratio: 1 / 1;
}

.product-card-flag {
  position: absolute;
  top: 0.28rem;
  inset-inline-start: 0.28rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 0.4rem);
  padding: 0.1rem 0.32rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  color: #1a1204;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-flag svg {
  display: block;
  flex-shrink: 0;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.4rem 0.38rem 0.45rem;
  flex: 1;
}

.product-card-title-link {
  text-decoration: none;
  color: inherit;
}

.product-card--shop h3 {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.product-card-price strong {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}

.product-card-price s {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.product-card-price.is-sale strong {
  color: var(--pink-hot);
}

.product-card-price.is-custom strong {
  color: var(--pink-hot);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-card-price.is-rate strong {
  color: var(--pink-hot);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.product-card-qty {
  display: flex;
  align-items: center;
  gap: 0.22rem;
  margin: 0;
  font-size: 0.5rem;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-qty-min {
  color: #34d399;
}

.product-card-qty-sep {
  color: var(--text-muted);
  font-weight: 500;
}

.product-card-qty-max {
  color: var(--text-muted);
}

.product-card-delivery {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  margin: 0;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.product-card-delivery.is-instant::before,
.product-card-delivery.is-average::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
}

.product-card-delivery.is-instant {
  color: #34d399;
}

.product-card-delivery.is-average {
  color: #fbbf24;
}

.product-card--market .product-avail-status {
  margin-top: 0.14rem;
}

.product-card-alert {
  margin: 0;
  padding: 0.32rem 0.42rem;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  min-height: 28px;
  padding: 0.28rem 0.4rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.product-card-buy.is-disabled {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
}

html[data-theme="light"] .product-card--shop {
  background: #fff;
}

html[data-theme="light"] .product-card-alert {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.product-grid--catalog.is-list {
  grid-template-columns: 1fr !important;
  gap: 0.5rem;
}

.product-grid--catalog.is-list .product-card--shop {
  display: block;
  min-height: 110px;
  max-height: 140px;
}

.product-grid--catalog.is-list .product-card-link,
.product-grid--catalog.is-list .product-card-link--static {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: stretch;
  min-height: 110px;
  max-height: 140px;
  height: auto;
  flex-direction: unset;
}

.product-grid--catalog.is-list .product-card--shop .product-media {
  aspect-ratio: auto;
  width: 100px;
  min-width: 100px;
  max-width: 110px;
  height: 100%;
  min-height: 110px;
  max-height: 140px;
}

.product-grid--catalog.is-list .product-media img {
  object-fit: cover;
  object-position: center;
}

.product-grid--catalog.is-list .product-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.16rem;
  min-width: 0;
  padding: 0.48rem 2.55rem 0.48rem 0.7rem;
}

.product-grid--catalog.is-list .product-card-body h3 {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.25;
  -webkit-line-clamp: 2;
}

.product-grid--catalog.is-list .product-card-package,
.product-grid--catalog.is-list .product-card-delivery {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.25;
}

.product-grid--catalog.is-list .product-card-price {
  margin: 0;
}

.product-grid--catalog.is-list .product-card-price strong {
  font-size: 0.92rem;
}

.product-grid--catalog.is-list .product-card-qty {
  display: none;
}

.product-grid--catalog.is-list .product-card-buy {
  max-width: 160px;
}

.product-grid--catalog.is-list > .product-card--shop:nth-child(n+13) {
  contain-intrinsic-size: auto 128px;
}

.product-grid--catalog.is-list .product-card-fav {
  top: 0.32rem;
  inset-inline-end: 0.32rem;
}

.product-grid--catalog.is-list .product-card-actions {
  flex-direction: row;
}

.product-grid--catalog.is-list .product-card-fav .product-wishlist-btn,
.product-grid--catalog.is-list .product-card-fav .product-monitor-btn {
  width: 28px;
  height: 28px;
}

.product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 1;
}

.product-media img[src$=".svg"] {
  position: relative;
  inset: auto;
  width: 48%;
  height: 48%;
  object-fit: contain;
  padding: 0;
}

.product-fallback {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.36);
  pointer-events: none;
  z-index: 0;
}

.product-fallback svg {
  width: 40%;
  height: 40%;
  max-width: 72px;
  max-height: 72px;
}

.product-fallback[hidden],
.product-fallback.is-behind-photo,
.product-fallback:has(+ img[data-product-photo]:not(.is-broken)),
.product-media:has(img[data-product-photo]:not(.is-broken)) > .product-fallback,
.product-detail-media-frame:has(img[data-product-photo]:not(.is-broken)) > .product-fallback,
.cart-row-media:has(img[data-product-photo]:not(.is-broken)) > .product-fallback,
.account-order-item-media:has(img[data-product-photo]:not(.is-broken)) > .product-fallback,
.checkout-item-media:has(img[data-product-photo]:not(.is-broken)) > .product-fallback,
.product-row .thumb:has(img[data-product-photo]:not(.is-broken)) > .product-fallback,
.shop-card:has(img[data-product-photo]:not(.is-broken)) .product-fallback {
  display: none !important;
}

img.is-broken,
.product-media img.is-broken,
.product-detail-media-frame img.is-broken,
.cart-row-media img.is-broken,
.checkout-item-media img.is-broken,
.account-order-item-media img.is-broken,
.category-chip-media img.is-broken,
.type-card-media img.is-broken {
  display: none !important;
}

.product-media .product-fallback,
.product-detail-media-frame .product-fallback,
.cart-row-media .product-fallback,
.account-order-item-media .product-fallback,
.checkout-item-media .product-fallback,
.product-row .thumb .product-fallback,
.shop-card .product-fallback {
  position: absolute;
  inset: 0;
}

.badge {
  position: absolute;
  top: 0.55rem;
  inset-inline-end: 0.55rem;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  color: #fff;
}
.badge.popular { background: var(--pink); }
.badge.sale { background: var(--purple); }
.badge.new { background: var(--blue); }

.product-body {
  padding: 0.85rem 0.9rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.product-meta h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.product-meta small {
  color: var(--text-muted);
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.product-foot strong {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 800;
}

.product-price-sale {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.1;
}

.product-price-sale s,
.product-row-price s {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.cart-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--glow-pink);
  flex-shrink: 0;
  transition: transform .15s ease, filter .15s ease;
}

.cart-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.product-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem;
}
.product-row h3 {
  margin: 0;
  font-size: 0.95rem;
}
.product-row small {
  color: var(--text-muted);
  display: block;
}
.product-row-price {
  font-weight: 800;
  margin-top: 0.2rem;
}
.product-row .thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #0d111a;
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
  color: rgba(255, 255, 255, 0.36);
}
.product-row .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-row .thumb img[src$=".svg"] {
  width: 58%;
  height: 58%;
  object-fit: contain;
}

.mobile-cta {
  margin-top: 1rem;
}

/* Promo banner: image + offer content | right features (desktop) */
.promo-banner {
  display: grid;
  gap: 0.85rem;
}

.promo-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  background: #07090f;
  aspect-ratio: 16 / 10;
  min-height: 220px;
}

.promo-banner-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% center;
}

.promo-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  min-height: 220px;
  padding: 1.15rem 1.1rem 1.2rem;
  background: linear-gradient(
    180deg,
    rgba(5, 7, 11, 0.15) 0%,
    rgba(5, 7, 11, 0.35) 45%,
    rgba(5, 7, 11, 0.88) 100%
  );
}

.promo-eyebrow {
  margin: 0 0 0.4rem;
  color: #7dd3fc;
  font-size: 0.84rem;
  font-weight: 600;
}

.promo-title {
  margin: 0;
  font-size: clamp(1.45rem, 6.5vw, 2.3rem);
        line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.promo-accent {
  color: #38bdf8;
  margin-inline-start: 0.25rem;
}

.promo-sub {
  margin: 0.3rem 0 0.9rem;
  color: #fff;
  font-size: clamp(0.95rem, 3.8vw, 1.1rem);
  font-weight: 600;
}

.promo-cta {
  min-width: 120px;
  min-height: 42px;
  padding: 0.65rem 1.1rem;
  border-radius: 12px;
  font-size: 0.92rem;
}

.promo-features {
  display: none;
  gap: 1.15rem;
  align-content: center;
  padding: 1.35rem 1.25rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
}

.promo-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.promo-feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--pink-hot);
  flex-shrink: 0;
}

.promo-feature strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.promo-feature small {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .promo-visual {
    aspect-ratio: 21 / 9;
    min-height: 240px;
  }

  .promo-copy {
    justify-content: center;
    align-items: flex-start;
    min-height: 240px;
    max-width: 55%;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(
      90deg,
      rgba(5, 7, 11, 0.9) 0%,
      rgba(5, 7, 11, 0.55) 55%,
      transparent 100%
    );
  }

  .promo-banner-media {
    object-position: 75% center;
  }
}

/* How It Works — compact mobile-first timeline */
.how-section {
  position: relative;
  padding: 1.1rem 0 1.25rem;
}

.how-section::before {
  content: "";
  position: absolute;
  inset-inline: 8%;
  top: 0;
  height: 88px;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.16), transparent 72%);
}

.how-title {
  position: relative;
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.how-timeline {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.how-rail {
  position: absolute;
  z-index: 0;
  inset-inline-start: 16px;
  top: 1.35rem;
  bottom: 1.35rem;
  width: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.16);
}

.how-rail-glow {
  display: block;
  width: 100%;
  height: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--pink-hot), var(--purple));
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.55);
  transform-origin: top center;
}

.how-steps {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  min-height: 90px;
  max-height: 120px;
}

.how-step-num {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
  box-shadow: 0 0 0 3px var(--bg), 0 4px 12px rgba(var(--accent-rgb), 0.32);
}

.how-step-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 90px;
  max-height: 120px;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--bg-card);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.how-step-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.how-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--pink-hot);
  background: rgba(var(--accent-rgb), 0.1);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.12);
}

.how-icon svg {
  display: block;
}

.how-step h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.how-step p {
  margin: 0.18rem 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.how-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.how-trust li {
  display: inline-flex;
  align-items: center;
}

.how-trust li:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-inline: 0.55rem;
  border-radius: 50%;
  background: var(--pink-hot);
  box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.55);
}

html[data-theme="light"] .how-section::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.1), transparent 72%);
}

html[data-theme="light"] .how-rail {
  background: rgba(225, 29, 102, 0.16);
}

html[data-theme="light"] .how-step-num {
  box-shadow: 0 0 0 3px var(--bg), 0 4px 12px rgba(225, 29, 102, 0.22);
}

html[data-theme="light"] .how-step-body {
  background: #fff;
  border-color: rgba(225, 29, 102, 0.14);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

/* Viewport entrance — only after JS marks the section ready */
.how-section.how-ready:not(.is-inview) .how-step {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}

.how-section.how-ready:not(.is-inview) .how-step-num {
  opacity: 0;
  transform: scale(0.72);
}

.how-section.how-ready.is-inview .how-step {
  animation: howCardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--how-i, 0) * 120ms);
}

.how-section.how-ready.is-inview .how-step-num {
  animation: howNumIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--how-i, 0) * 140ms);
}

.how-section.how-ready.is-inview .how-rail-glow {
  height: 100%;
  transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.how-section.how-ready.is-inview .how-icon {
  animation: howIconGlow 2.4s ease-in-out infinite;
  animation-delay: calc(0.42s + var(--how-i, 0) * 120ms);
}

@keyframes howCardIn {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes howNumIn {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes howIconGlow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.12);
  }
  50% {
    box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.38);
  }
}

@media (min-width: 768px) {
  .how-section {
    padding: 1.35rem 0 1.5rem;
  }

  .how-title {
    margin-bottom: 1.05rem;
    font-size: clamp(1.28rem, 2vw, 1.5rem);
  }

  .how-timeline {
    padding-top: 0.15rem;
  }

  .how-rail {
    inset-inline-start: 8%;
    inset-inline-end: 8%;
    top: 16px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(var(--accent-rgb), 0.18) 12%,
      rgba(139, 92, 246, 0.28) 50%,
      rgba(var(--accent-rgb), 0.18) 88%,
      transparent
    );
  }

  .how-rail-glow {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--pink-hot), var(--purple), var(--pink-hot));
    transform-origin: left center;
  }

  .how-section.how-ready.is-inview .how-rail-glow {
    width: 100%;
    height: 100%;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }

  [dir="rtl"] .how-rail-glow {
    transform-origin: right center;
  }

  .how-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: stretch;
  }

  .how-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    max-height: none;
    gap: 0.7rem;
    text-align: center;
  }

  .how-step-body {
    width: 100%;
    min-height: 0;
    max-height: none;
    padding: 0.85rem 0.8rem 0.9rem;
    align-items: center;
  }

  .how-step-head {
    flex-direction: column;
    gap: 0.35rem;
  }

  .how-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .how-step h3 {
    font-size: 0.98rem;
  }

  .how-step p {
    margin-top: 0.28rem;
    font-size: 0.8rem;
    max-width: 22ch;
  }

  .how-trust {
    margin-top: 1rem;
    font-size: 0.72rem;
  }
}

@media (min-width: 1024px) {
  .how-steps {
    gap: 1rem;
  }

  .how-step:nth-child(even) .how-step-body {
    transform: translateY(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .how-section.how-ready:not(.is-inview) .how-step,
  .how-section.how-ready:not(.is-inview) .how-step-num,
  .how-section.how-ready.is-inview .how-step,
  .how-section.how-ready.is-inview .how-step-num,
  .how-section.how-ready.is-inview .how-icon {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .how-rail-glow,
  .how-section.how-ready.is-inview .how-rail-glow {
    width: 100% !important;
    height: 100% !important;
    transition: none !important;
  }
}

/* Payment methods */
.payments-section {
  padding-top: 0.25rem;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.payment-chip {
        display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 64px;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
}

/* Light mode: dark plates so white logos (Whish/Visa/Binance text) stay visible */
html[data-theme="light"] .payment-chip {
  background: #121826;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .payment-chip strong {
  color: #fff;
}

html[data-theme="light"] .product-media:has(img[src$=".svg"]),
html[data-theme="light"] .product-media:has(img[src*="google-play"]) {
  background: #121826;
}

html[data-theme="light"] .product-fallback {
  color: rgba(15, 23, 42, 0.28);
}

.payment-chip img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 28px;
  object-fit: contain;
  background: transparent;
}

.payment-chip .pay-visa {
  height: 20px;
  width: auto;
}

.payment-chip-usdt img,
.payment-chip-binance img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.payment-chip-mc img {
  height: 34px;
  width: auto;
}

.payment-chip span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: start;
}

.payment-chip strong {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

.payment-chip small {
  margin-top: 0.12rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.payment-chip-binance small {
  color: #f0b90b;
}

.pay-chip-img {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
}

.pay-chip-img img {
  display: block;
  height: 14px;
  width: auto;
  object-fit: contain;
  background: transparent;
}

@media (min-width: 768px) {
  .payment-methods {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .payment-chip {
    min-height: 72px;
    padding: 0.9rem 1.1rem;
  }

  .payment-chip img {
    height: 30px;
  }
}

/* Social proof + reviews */
.social-grid {
  display: grid;
  gap: 0.9rem;
}

.social-stats,
.review-card {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
}

.social-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 0.75rem;
  padding: 1.6rem 1rem;
  place-items: center;
  align-content: center;
  text-align: center;
  min-height: 220px;
}

.social-stat {
  width: auto;
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
}

.social-stat-icon {
  width: 68px;
  height: 68px;
  min-width: 68px;
  min-height: 68px;
  max-width: 68px;
  max-height: 68px;
  flex: 0 0 68px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  margin: 0;
  color: #ff4d8d;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.1);
  box-shadow: none;
  overflow: hidden;
}

.social-stat-icon svg {
  width: 30px !important;
  height: 30px !important;
  display: block;
  color: #ff4d8d;
  stroke: #ff4d8d;
}

.social-stat strong {
  display: block;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

html[data-theme="light"] .social-stats,
html[data-theme="light"] .review-card {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.social-stat > span {
  display: block;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.review-card {
  position: relative;
  padding: 1.4rem 1.25rem 1.2rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.review-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.review-stars {
  display: flex;
  gap: 0.2rem;
  color: #f5c518;
  margin-bottom: 1rem;
}

.review-slides {
  position: relative;
  flex: 1;
  min-height: 110px;
}

.review-slide {
  margin: 0;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
  transition: opacity .35s ease;
}

.review-slide.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.review-slide p {
  margin: 0 0 0.85rem;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.55;
  font-weight: 500;
}

.review-slide cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--text);
  font-size: 0.92rem;
}

.review-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 1rem;
}

.review-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-soft);
  display: grid;
  place-items: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.review-nav-btn:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  color: #fff;
  background: rgba(var(--accent-rgb), 0.12);
}

/* FAQ */
.faq-section {
  padding-top: 0.5rem;
}

.faq-title {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: 980px;
  margin: 0 auto;
}

.faq-item {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
        gap: 1rem;
  padding: 1rem 1.15rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
  text-align: start;
  cursor: pointer;
}

.faq-chevron {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  color: var(--text-muted);
  transition: transform .2s ease, color .2s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--pink-hot);
}

.faq-panel {
  padding: 0 1.15rem 1rem;
}

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

.faq-panel p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 500;
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
}

@media (min-width: 900px) {
  .social-grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 1rem;
    align-items: stretch;
  }

  .social-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 2rem 1.5rem;
    gap: 1rem;
    place-items: center;
    align-content: center;
    min-height: 100%;
  }

  .social-stat {
    width: 100%;
    max-width: none;
  }

  .social-stat strong {
    font-size: 1.55rem;
  }

  .social-stat-icon {
    width: 76px;
    height: 76px;
    min-width: 76px;
    min-height: 76px;
    max-width: 76px;
    max-height: 76px;
    flex-basis: 76px;
  }

  .social-stat-icon svg {
    width: 34px !important;
    height: 34px !important;
  }

  .review-card {
    padding: 1.6rem 1.5rem 1.35rem;
    min-height: 100%;
  }

  .review-card h2 {
    font-size: 1.35rem;
  }
}

/* Why (legacy unused) */
.why-grid {
  display: grid;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.25rem;
}
.why-copy h2 { margin: 0 0 0.6rem; font-size: 1.5rem; }
.why-copy p { margin: 0 0 1rem; color: var(--text-soft); line-height: 1.6; }
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.stat {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.9rem;
}
.stat strong { display: block; font-size: 1.2rem; margin-bottom: 0.2rem; }
.stat span { color: var(--text-muted); font-size: 0.8rem; }

/* Footer */
.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  background: rgba(6, 8, 16, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.75rem 0 2rem;
}

.footer-brand .brand {
  margin-bottom: 0.85rem;
}

.footer-brand p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  max-width: 34ch;
  line-height: 1.65;
  font-size: 0.92rem;
}

.footer-telegram-news {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 1rem;
  padding: 0.62rem 0.75rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  background: rgba(41, 169, 235, 0.08);
  border: 1px solid rgba(41, 169, 235, 0.18);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.footer-telegram-news:hover {
  background: rgba(41, 169, 235, 0.14);
  border-color: rgba(41, 169, 235, 0.28);
  transform: translateY(-1px);
}

.footer-telegram-news-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #29a9eb;
  background: rgba(41, 169, 235, 0.12);
  flex: 0 0 auto;
}

.footer-telegram-news-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.footer-telegram-news-copy strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.footer-telegram-news-copy em {
  display: block;
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--pink-hot);
}

.footer-telegram-news-chevron {
  margin-inline-start: auto;
  display: inline-grid;
  place-items: center;
  color: var(--text-muted);
  opacity: 0.7;
  flex: 0 0 auto;
}

html[dir="rtl"] .footer-telegram-news-chevron {
  transform: scaleX(-1);
}

html[data-theme="light"] .footer-telegram-news {
  background: rgba(41, 169, 235, 0.06);
  border-color: rgba(41, 169, 235, 0.14);
}

html[data-theme="light"] .footer-telegram-news:hover {
  background: rgba(41, 169, 235, 0.1);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ff8fb3;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.social-link:hover {
  color: #fff;
  background: rgba(var(--accent-rgb), 0.28);
  border-color: rgba(var(--accent-rgb), 0.5);
  transform: translateY(-1px);
}

.footer-col h2,
.footer-col h4 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color .15s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  width: 100%;
}

.footer-contact-list li {
  margin: 0;
}

.footer-contact-item {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
        text-decoration: none;
  line-height: 1.3;
}

.footer-contact-item--static {
  cursor: default;
}

a.footer-contact-item:hover {
  color: #fff;
}

a.footer-contact-item:hover .footer-contact-value {
  color: #fff;
}

.footer-contact-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.footer-contact-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  color: #ff4d8d;
}

.footer-contact-label {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
}

.footer-contact-value {
  display: block;
  padding-inline-start: calc(18px + 0.55rem);
  color: var(--text-muted);
  font-size: 0.88rem;
        font-weight: 500;
  line-height: 1.35;
  word-break: break-word;
}

.category-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.category-thumb,
.category-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.category-thumb-fallback,
.shop-category-thumb.category-thumb-fallback {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.12);
  color: #ff4d8d;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.category-icon .category-thumb-fallback {
  width: 52px;
  height: 52px;
  font-size: 0.78rem;
}

.shop-category-thumb {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--surface-soft);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.15rem 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

html[data-theme="light"] .site-footer {
  background:
    linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .footer-col h2,
html[data-theme="light"] .footer-col h4,
html[data-theme="light"] .footer-contact-label {
  color: var(--text);
}

html[data-theme="light"] .footer-col a {
  color: var(--text-soft);
}

html[data-theme="light"] .footer-col a:hover,
html[data-theme="light"] a.footer-contact-item:hover,
html[data-theme="light"] a.footer-contact-item:hover .footer-contact-value {
  color: var(--pink-deep);
}

html[data-theme="light"] .footer-contact-item,
html[data-theme="light"] .footer-contact-value {
  color: var(--text-soft);
}

html[data-theme="light"] .footer-contact-icon {
  color: var(--pink-hot);
}

html[data-theme="light"] .footer-brand p {
  color: var(--text-muted);
}

html[data-theme="light"] .footer-bottom {
  border-top-color: rgba(15, 23, 42, 0.08);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.55);
}

html[data-theme="light"] .social-link {
  color: var(--pink-deep);
  background: rgba(var(--accent-rgb), 0.07);
  border-color: rgba(var(--accent-rgb), 0.16);
}

html[data-theme="light"] .social-link:hover {
  color: #fff;
  background: linear-gradient(160deg, var(--pink-hot), var(--pink-deep));
  border-color: transparent;
}

.footer-mobile-only {
  display: none !important;
}

.footer-accordions,
.footer-trust {
  width: 100%;
}

@media (max-width: 1023px) {
  .footer-desktop-only {
    display: none !important;
  }

  .footer-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 1.35rem 0 0.85rem;
    padding-inline: 1rem;
    text-align: start;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0;
  }

  .footer-brand .brand {
    margin-bottom: 0.45rem;
  }

  .footer-brand .brand img {
    width: auto;
    height: 44px;
    max-width: min(180px, 58vw);
  }

  .footer-brand p {
    max-width: 34ch;
    margin: 0 0 0.7rem;
    margin-inline: auto;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .footer-telegram-news {
    width: 100%;
    max-width: 100%;
    margin: 0 0 0.65rem;
    padding: 0.55rem 0.7rem;
    border-radius: 14px;
    gap: 0.55rem;
    background: rgba(var(--accent-rgb), 0.06);
    border-color: rgba(var(--accent-rgb), 0.12);
  }

  .footer-telegram-news:hover {
    background: rgba(var(--accent-rgb), 0.1);
    border-color: rgba(var(--accent-rgb), 0.2);
    transform: none;
  }

  .footer-telegram-news-icon {
    width: 30px;
    height: 30px;
    color: #fff;
    background: linear-gradient(145deg, var(--pink-hot), var(--pink-deep));
  }

  .footer-telegram-news-copy strong {
    font-size: 0.78rem;
  }

  .footer-telegram-news-copy em {
    font-size: 0.72rem;
  }

  .footer-telegram-news-chevron {
    color: var(--pink-hot);
    opacity: 0.85;
  }

  html[data-theme="light"] .footer-telegram-news {
    background: rgba(var(--accent-rgb), 0.05);
    border-color: rgba(var(--accent-rgb), 0.1);
  }

  .footer-brand .social-links {
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 0.15rem;
  }

  .footer-brand .social-link {
    width: 36px;
    height: 36px;
  }

  .footer-accordions.footer-mobile-only {
    display: flex !important;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.15rem;
  }

  .footer-accordion {
    margin: 0;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface-ghost);
    overflow: hidden;
  }

  html[data-theme="light"] .footer-accordion {
    border-color: rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  }

  .footer-accordion > summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.72rem 0.85rem;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    user-select: none;
  }

  html[data-theme="light"] .footer-accordion > summary {
    color: var(--text);
  }

  .footer-accordion > summary::-webkit-details-marker {
    display: none;
  }

  .footer-accordion-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--pink-hot);
    background: rgba(var(--accent-rgb), 0.1);
  }

  .footer-accordion > summary > span:nth-child(2) {
    flex: 1 1 auto;
    min-width: 0;
    text-align: start;
  }

  .footer-accordion-chevron {
    margin-inline-start: auto;
    display: inline-grid;
    place-items: center;
    color: var(--text-muted);
    transition: transform 0.18s ease;
  }

  .footer-accordion[open] > summary .footer-accordion-chevron {
    transform: rotate(180deg);
  }

  .footer-accordion-panel {
    display: grid;
    gap: 0.15rem;
    padding: 0 0.85rem 0.75rem;
  }

  .footer-accordion-panel a {
    display: block;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
  }

  .footer-accordion-panel a:hover {
    color: #fff;
    background: rgba(var(--accent-rgb), 0.08);
  }

  html[data-theme="light"] .footer-accordion-panel a:hover {
    color: var(--pink-deep);
    background: rgba(var(--accent-rgb), 0.06);
  }

  .footer-contact {
    width: 100%;
    max-width: 100%;
    margin-top: 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .footer-contact h2,
  .footer-contact h4 {
    margin: 0 0 0.55rem;
    font-size: 0.92rem;
    text-align: start;
    width: 100%;
  }

  .footer-contact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    margin: 0;
    padding: 0;
    justify-items: stretch;
  }

  .footer-contact-list li {
    width: 100%;
    display: block;
  }

  .footer-contact-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    width: 100%;
    max-width: none;
    min-height: 100%;
    padding: 0.65rem 0.7rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface-ghost);
    text-align: start;
    box-sizing: border-box;
  }

  html[data-theme="light"] .footer-contact-item {
    border-color: rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  }

  .footer-contact-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    width: 100%;
  }

  .footer-contact-icon {
    width: 16px;
    height: 16px;
  }

  .footer-contact-label {
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    text-transform: none;
  }

  .footer-contact-value {
    padding-inline-start: 0 !important;
    text-align: start;
    width: 100%;
    font-size: 0.74rem;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .footer-trust.footer-mobile-only {
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    margin-top: 0.15rem;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    border: 1px solid rgba(var(--accent-rgb), 0.12);
    background: rgba(var(--accent-rgb), 0.06);
  }

  html[data-theme="light"] .footer-trust.footer-mobile-only {
    background: rgba(var(--accent-rgb), 0.05);
    border-color: rgba(var(--accent-rgb), 0.1);
  }

  .footer-trust-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--pink-hot);
    background: rgba(var(--accent-rgb), 0.12);
  }

  .footer-trust-copy {
    flex: 1 1 auto;
    min-width: 0;
  }

  .footer-trust-copy strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
  }

  html[data-theme="light"] .footer-trust-copy strong {
    color: var(--text);
  }

  .footer-trust-copy p {
    margin: 0.12rem 0 0;
    font-size: 0.72rem;
    line-height: 1.35;
    color: var(--text-muted);
  }

  .footer-trust-lock {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--pink-hot);
    opacity: 0.28;
  }

  .footer-bottom {
    padding: 0.85rem 1rem 1rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 767px) {
  .footer-brand .brand img {
    height: 40px;
  }
}

.sidebar-social {
  display: grid;
  gap: 0.65rem;
  padding: 0.75rem 0 0.35rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
}

.sidebar-social-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-inline: 0.15rem;
}

.sidebar-social-links {
  gap: 0.45rem;
}

@media (max-width: 767px) {
  .header-inner {
    min-height: 56px;
  }

  .news-banner-icon svg {
    width: 14px;
    height: 14px;
  }

  .sidebar-head {
    padding: 0.65rem 0.85rem 0.5rem;
  }

  .sidebar-head-divider {
    margin: 0 0.85rem 0.45rem;
  }

  .sidebar-user-panel {
    gap: 0.45rem;
    padding: 0 0.85rem 0.5rem;
  }

  .sidebar-user-head .profile-menu-avatar,
  .sidebar-user-head .profile-menu-avatar--initials {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }

  .sidebar-user-balance {
    padding: 0.42rem 0.58rem;
  }

  .sidebar-user-balance-copy span {
    font-size: 0.62rem;
  }

  .sidebar-user-balance-copy strong {
    font-size: 0.82rem;
  }

  .sidebar-user-balance-add {
    padding: 0.26rem 0.5rem;
    font-size: 0.66rem;
  }

  .sidebar-user-links {
    gap: 0.35rem;
  }

  .sidebar-user-link {
    padding: 0.4rem 0.35rem;
    font-size: 0.68rem;
    border-radius: 10px;
  }

  .sidebar-guest-panel {
    gap: 0.45rem;
    padding: 0.7rem 0.85rem 0.65rem;
  }

  .sidebar-fund-card {
    margin: 5px 0.85rem 0.45rem;
    padding: 0.8rem 0.85rem 0.75rem;
  }

  .sidebar-fund-amount {
    font-size: 1.3rem;
  }

  .sidebar-quick-actions {
    padding-bottom: 0.4rem;
  }

  .sidebar-quick-actions .nav-tools .icon-btn {
    min-height: 40px;
    border-radius: 12px;
  }

  .sidebar-scroll {
    gap: 0.55rem;
    padding: 0.55rem 0.85rem 0;
  }

  .sidebar-section {
    gap: 0.4rem;
    padding-bottom: 0.45rem;
  }

  .sidebar-section-label {
    font-size: 0.66rem;
    padding: 0.25rem 0.1rem 0.15rem;
  }

  .sidebar-nav {
    gap: 0.32rem;
  }

  .sidebar-nav > a,
  .sidebar-accordion-trigger {
    gap: 0.65rem;
    padding: 0.72rem 0.75rem;
    border-radius: 12px;
    font-size: 0.84rem;
  }

  .sidebar-nav--compact > a {
    padding-block: 0.68rem;
  }

  .nav-link-icon {
    width: 18px;
    height: 18px;
  }

  .sidebar-social {
    display: none;
  }

  .sidebar-footer {
    gap: 0.35rem;
    padding: 0.5rem 0.85rem 0.65rem;
  }

  .sidebar-control-row {
    padding: 0.42rem 0.55rem;
  }

  .sidebar-control-row--theme {
    gap: 0.3rem;
  }

  .sidebar-control-row--theme .theme-selector-btn-text {
    display: none;
  }

  .sidebar-control-row--theme .theme-selector--compact .theme-selector-btn {
    min-height: 30px;
    min-width: 0;
    padding: 0.24rem 0.15rem;
  }

  .sidebar-control-row--theme .theme-selector--compact {
    padding: 0.14rem;
  }

  .sidebar-logout-btn {
    padding: 0.48rem 0.65rem;
    font-size: 0.78rem;
  }
}

/* Logged-in mobile drawer: compact account block, nav scrolls on its own. */
@media (max-width: 1023px) {
  .mobile-sidebar:not(.mobile-sidebar--guest) {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
  }

  .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-head,
  .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-user-head,
  .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-fund-card,
  .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-footer {
    flex-shrink: 0;
  }

  .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-user-head {
    gap: 0.65rem;
    padding: 0.7rem 0.95rem 0.15rem;
  }

  .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-user-head .profile-menu-avatar,
  .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-user-head .profile-menu-avatar--initials {
    width: 42px;
    height: 42px;
    font-size: 0.82rem;
    border: 2px solid rgba(var(--accent-rgb), 0.55);
    box-shadow:
      0 0 0 3px rgba(var(--accent-rgb), 0.12),
      0 6px 16px rgba(var(--accent-rgb), 0.28);
  }

  .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-user-head-meta {
    gap: 0.28rem;
  }

  .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-user-head-meta strong {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
  }

  .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-user-badges {
    gap: 0.35rem;
  }

  .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-user-badges .profile-status-badge {
    padding: 0.12rem 0.48rem;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    line-height: 1.15;
    color: #4ade80;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(74, 222, 128, 0.45);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.18);
  }

  .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-user-badges .account-level-badge {
    padding: 0.12rem 0.48rem;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    line-height: 1.15;
    color: #ff4d8d;
    background: transparent;
    border: 1px solid rgba(255, 77, 141, 0.7);
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.16);
  }

  .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-fund-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "label cta"
      "amount cta"
      "account account";
    align-items: center;
    column-gap: 0.65rem;
    row-gap: 0;
    margin: 0.45rem 0.85rem 0.35rem;
    padding: 0.72rem 0.8rem 0.55rem;
    border-radius: 18px;
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    background:
      radial-gradient(120% 80% at 100% 0%, rgba(var(--accent-rgb), 0.22), transparent 52%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 10px 28px rgba(0, 0, 0, 0.28),
      0 0 24px rgba(var(--accent-rgb), 0.08);
    overflow: hidden;
  }

  .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-fund-label {
    grid-area: label;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    color: rgba(226, 232, 240, 0.62);
    line-height: 1.1;
  }

  .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-fund-amount {
    grid-area: amount;
    margin: 0.08rem 0 0;
    min-width: 0;
    font-size: clamp(1.05rem, 4.7vw, 1.28rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: #fff;
    white-space: nowrap;
  }

  .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-add-funds {
    grid-area: cta;
    width: auto;
    min-height: 36px;
    padding: 0.4rem 0.78rem;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    align-self: center;
    white-space: nowrap;
    background: linear-gradient(180deg, #ff4d93 0%, #ff2d7a 100%);
    box-shadow:
      0 8px 18px rgba(var(--accent-rgb), 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }

  .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-account-no {
    grid-area: account;
    margin-top: 0.55rem;
    padding-top: 0.48rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 0.32rem;
    font-size: 0.74rem;
    line-height: 1.1;
    color: rgba(226, 232, 240, 0.55);
  }

  .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-account-no strong {
    color: rgba(248, 250, 252, 0.92);
    font-weight: 700;
  }

  .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-copy-btn {
    width: 26px;
    height: 26px;
    margin-inline-start: auto;
    border-radius: 8px;
    color: rgba(226, 232, 240, 0.55);
  }

  html[data-theme="light"] .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-fund-card {
    background:
      radial-gradient(120% 80% at 100% 0%, rgba(var(--accent-rgb), 0.16), transparent 54%),
      #fff;
    border-color: rgba(var(--accent-rgb), 0.22);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  }

  html[data-theme="light"] .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-fund-label,
  html[data-theme="light"] .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-account-no {
    color: #64748b;
  }

  html[data-theme="light"] .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-fund-amount,
  html[data-theme="light"] .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-account-no strong,
  html[data-theme="light"] .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-user-head-meta strong {
    color: #0b1220;
  }

  html[data-theme="light"] .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-account-no {
    border-top-color: rgba(15, 23, 42, 0.08);
  }

  .mobile-sidebar:not(.mobile-sidebar--guest) .sidebar-scroll {
    padding-top: 0.35rem;
  }
}

.sidebar-social-links {
  justify-content: flex-start;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse {
  0%, 100% { opacity: .75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes lightShiftA {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
  50% { transform: translate(-18px, 14px) scale(1.15); opacity: 0.85; }
}

@keyframes lightShiftB {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.45; }
  50% { transform: translate(22px, -10px) scale(1.12); opacity: 0.8; }
}

@keyframes lightShiftC {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.4; }
  50% { transform: translateX(-50%) scale(1.2); opacity: 0.75; }
}

@keyframes floorBreathe {
  0%, 100% { opacity: 0.55; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes floorSheen {
  0% { background-position: 120% 0; opacity: 0.25; }
  40% { opacity: 0.9; }
  100% { background-position: -120% 0; opacity: 0.25; }
}

@keyframes floorRing {
  0% { opacity: 0.75; transform: translateX(-50%) scale(0.9); }
  70% { opacity: 0.12; transform: translateX(-50%) scale(1.12); }
  100% { opacity: 0; transform: translateX(-50%) scale(1.18); }
}

@keyframes floorSpark {
  0% { left: 14%; opacity: 0; transform: scale(0.6); }
  15% { opacity: 1; }
  50% { left: 50%; opacity: 0.85; transform: scale(1); }
  85% { opacity: 0.2; }
  100% { left: 86%; opacity: 0; transform: scale(0.5); }
}

@media (min-width: 480px) {
  .trust-inline {
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .trust-inline span,
  .trust-inline span:last-child {
    flex: 1 1 0;
    font-size: 0.78rem;
  }

  .hero-ctas {
    display: flex;
    flex-wrap: wrap;
  }

  .hero-btn {
    width: auto;
    min-width: 0;
    padding: 0.75rem 1.1rem;
    font-size: 0.95rem;
  }
}

@media (min-width: 768px) {
  .product-card-caption {
    padding: 0.55rem 0.55rem 0.62rem;
  }

  .product-card-caption h3 {
    font-size: 0.82rem;
  }

  .product-price-badge strong {
    font-size: 0.78rem;
  }

  .product-price-badge s {
    font-size: 0.62rem;
  }

  .type-card-cta {
    display: block;
  }

  .type-card-body h3 {
    font-size: 0.82rem;
  }
}

@media (min-width: 768px) {
  .features-bar { grid-template-columns: repeat(4, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .type-card-grid--compact { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .mobile-cta { display: none; }
  .stats { grid-template-columns: repeat(4, 1fr); }

  .trust-inline span,
  .trust-inline span:last-child {
    flex: 0 1 auto;
    font-size: 0.9rem;
  }

  .trust-inline svg {
    width: 26px;
    height: 26px;
  }

  .hero-ctas {
    display: flex;
    width: auto;
  }

  .hero-btn {
    width: auto;
  }
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .desktop-only { display: inline-flex; }
  .mobile-only { display: none !important; }
  .header-inner { min-height: 78px; }
  .site-header-spacer { height: var(--store-header-offset); }
  :root,
  [data-theme="dark"],
  html[data-theme="light"] {
    --store-header-offset: calc(4.875rem + var(--safe-top));
  }
  .site-header .brand img {
    height: 70px;
    max-width: 310px;
  }
    .hero {
    min-height: auto;
    padding: 0.75rem 0 0.85rem;
    margin-bottom: 0;
  }

  .hero {
    align-items: center;
    padding: 0.75rem 0 0.85rem;
  }

  .home-search-band {
    margin-top: 1rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 1.5rem;
    align-items: center;
    min-height: auto;
  }

  .hero-copy {
    order: 0;
    padding: 0;
    max-width: 560px;
    justify-self: start;
    margin: 0;
    align-items: start;
    text-align: start;
  }

  .hero-visual {
    order: 0;
  }

  .hero-pill {
    align-self: start;
  }

  .hero h1 {
    max-width: 14ch;
    font-size: clamp(2.15rem, 4.1vw, 3.2rem);
  }

  .hero-lede {
    max-width: 33rem;
  }

  .hero-ctas {
    display: flex;
    width: auto;
    margin: 0 0 1rem;
  }

  .hero-btn {
    width: auto;
    min-height: 48px;
    padding: 0.8rem 1.25rem;
    font-size: 0.98rem;
  }

  .trust-inline {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 1.5rem;
    width: auto;
  }

  .trust-inline span,
  .trust-inline span:last-child {
    flex: 0 0 auto;
    font-size: 0.98rem;
    white-space: nowrap;
  }

  .trust-inline svg {
    width: 32px;
    height: 32px;
  }

  .hero-visual {
    min-height: 420px;
    justify-self: stretch;
    width: 100%;
    padding: 0.25rem 0 1rem;
  }

  .hero-image {
    width: min(100%, 680px);
    max-height: 480px;
  }

  .hero-floor {
    width: min(78%, 480px);
    height: 88px;
    bottom: 0.1rem;
  }

  #categories {
    padding-top: 1.25rem;
  }

  .type-card-grid--compact {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
  }

  .product-grid { grid-template-columns: repeat(6, 1fr); }
  .promo-banner {
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
    gap: 1.15rem;
    align-items: stretch;
  }

  .promo-visual {
    aspect-ratio: auto;
    min-height: 280px;
    height: 100%;
  }

  .promo-banner-media {
    object-position: 78% center;
  }

  .promo-copy {
    justify-content: center;
    min-height: 280px;
    max-width: 340px;
    padding: 2rem 2.1rem;
    background: linear-gradient(
      90deg,
      rgba(5, 7, 11, 0.86) 0%,
      rgba(5, 7, 11, 0.4) 70%,
      transparent 100%
    );
  }

  .promo-title {
    font-size: clamp(1.8rem, 2.4vw, 2.35rem);
  }

  .promo-features {
        display: grid;
    padding: 1.75rem 1.5rem;
  }

  .why-grid { grid-template-columns: 1fr 1.4fr; align-items: center; padding: 1.75rem; }

  .footer-grid {
    grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
    gap: 2rem 1.75rem;
    padding: 3.25rem 0 2.25rem;
  }

  .footer-brand p {
    max-width: 30ch;
  }

  .footer-mobile-only {
    display: none !important;
  }

  .footer-desktop-only {
    display: block;
  }
}

html[data-theme="light"] .theme-moon { display: none !important; }
html[data-theme="light"] .theme-sun { display: inline-grid !important; }
[data-theme="dark"] .theme-sun { display: none !important; }
[data-theme="dark"] .theme-moon { display: inline-grid !important; }
.theme-sun { display: none; }
.theme-moon { display: inline-grid; }

.toast-ok { color: var(--green); font-size: .8rem; font-weight: 700; margin: .35rem 0 0; }

.empty { color: var(--text-muted); }

a.category-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product-card-actions {
  display: inline-flex;
        align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.product-wishlist-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-ghost);
  color: var(--text-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.product-wishlist-btn:hover {
  color: var(--pink);
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.08);
}

.product-wishlist-btn.is-active,
.product-detail-btn-wishlist.is-active {
  color: #e11d48;
  border-color: rgba(225, 29, 72, 0.55);
  background: rgba(225, 29, 72, 0.16);
}

.product-wishlist-btn.is-active svg,
.product-wishlist-btn.is-active svg path,
.product-detail-btn-wishlist.is-active svg,
.product-detail-btn-wishlist.is-active svg path {
  fill: currentColor;
  stroke: currentColor;
}

.product-wishlist-btn svg,
.cart-btn svg {
  display: block;
  width: 16px;
  height: 16px;
}

.cart-btn {
  cursor: pointer;
}

.cart-lines {
  display: grid;
  gap: 0.75rem;
}

/* ——— Professional cart page ——— */
.cart-page-section {
  padding-top: 1.5rem;
}

.cart-page-container,
.checkout-container {
  max-width: 1120px;
}

.cart-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cart-page-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--pink-hot);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.cart-empty-state {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  padding: 3rem 1.5rem;
  border-radius: 20px;
  border: 1px dashed var(--border);
  text-align: center;
}

.cart-empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--pink-hot);
}

.cart-layout {
  display: grid;
  gap: 1.25rem;
}

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

.cart-main {
  display: grid;
  gap: 0;
}

.cart-rows {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-ghost-2);
}

.cart-rows-head,
.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) minmax(112px, 148px) 108px minmax(132px, auto);
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
}

.cart-rows-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface-ghost);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
        text-transform: uppercase;
  color: var(--text-muted);
}

.cart-row + .cart-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-row-product {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.cart-row-media {
  display: block;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  position: relative;
}

.cart-row-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-row-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.cart-row-copy {
  min-width: 0;
}

.cart-row-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-row-title:hover {
  color: var(--pink-hot);
}

.cart-row-meta {
  margin: 0.15rem 0 0;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.cart-row-delivery {
  min-width: 0;
}

.cart-row-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.cart-row-details li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cart-row-details strong {
  color: var(--text);
        font-weight: 700;
}

.cart-row-details-missing {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--pink-hot);
}

.cart-row-no-details {
  color: var(--text-muted);
}

.cart-row-qty {
  justify-self: center;
}

.cart-row-total {
  text-align: end;
}

.cart-row-total strong {
  display: block;
  font-size: 0.95rem;
  color: var(--pink-hot);
}

.cart-row-total small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.cart-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-wrap: nowrap;
}

.cart-row-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding-inline: 0.7rem;
  white-space: nowrap;
}

.cart-row-edit-btn svg {
  display: block;
  flex-shrink: 0;
}

.cart-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding-inline: 0.55rem;
}

.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;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -120px;
  z-index: 10000;
  padding: 0.7rem 1.05rem;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.skip-link:focus {
  top: 0.75rem;
  outline: 3px solid var(--pink);
  outline-offset: 2px;
}

.product-detail-cart-notice {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  background: rgba(var(--accent-rgb), 0.08);
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text);
}

/* ——— Checkout success ——— */
.checkout-success-section {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

.checkout-success-container {
  max-width: 1080px;
}

.checkout-success-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1.35rem 1.5rem;
  border-radius: 22px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  background:
    radial-gradient(circle at top right, rgba(52, 211, 153, 0.12), transparent 42%),
    linear-gradient(135deg, var(--surface-soft), rgba(255, 255, 255, 0.015));
}

.checkout-success-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #34d399;
}

.checkout-success-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.8);
}

.checkout-success-hero-copy h1 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.checkout-success-hero-copy p {
  margin: 0.65rem 0 0;
  max-width: 38rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.checkout-success-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.checkout-success-ref {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.checkout-success-ref span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.checkout-success-ref strong {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.checkout-success-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.8rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: capitalize;
  border: 1px solid transparent;
}

.checkout-success-status.is-pending {
  color: #fcd34d;
  background: rgba(252, 211, 77, 0.12);
  border-color: rgba(252, 211, 77, 0.22);
}

.checkout-success-status.is-complete {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.22);
}

.checkout-success-status.is-cancelled {
  color: var(--pink-hot);
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.22);
}

.checkout-success-status.is-payment {
  color: #93c5fd;
  background: rgba(147, 197, 253, 0.1);
  border-color: rgba(147, 197, 253, 0.18);
}

.checkout-success-layout {
  display: grid;
  gap: 1rem;
}

@media (min-width: 960px) {
  .checkout-success-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: start;
  }
}

.checkout-success-panel {
  padding: 1.15rem 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface-ghost-2);
}

.checkout-success-panel h2 {
        margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 800;
}

.checkout-success-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.checkout-success-steps li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.85rem 0;
  position: relative;
}

.checkout-success-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 2rem;
  bottom: -0.2rem;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.checkout-success-steps li.is-done::after {
  background: rgba(52, 211, 153, 0.35);
}

.checkout-success-step-dot {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: var(--surface-ghost);
}

.checkout-success-steps li.is-done .checkout-success-step-dot {
  border-color: #34d399;
  background: rgba(52, 211, 153, 0.18);
  box-shadow: inset 0 0 0 3px rgba(52, 211, 153, 0.35);
}

.checkout-success-steps li.is-current .checkout-success-step-dot {
  border-color: #fcd34d;
  background: rgba(252, 211, 77, 0.18);
  box-shadow: 0 0 0 4px rgba(252, 211, 77, 0.12);
}

.checkout-success-steps strong {
  display: block;
  font-size: 0.92rem;
}

.checkout-success-steps p {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.checkout-success-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.checkout-success-note p {
  margin: 0;
}

.checkout-success-receipt {
  padding: 1.15rem;
  border-radius: 22px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.07), var(--surface-ghost-2));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.checkout-success-receipt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.checkout-success-receipt-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.checkout-success-receipt-head span {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.checkout-success-meta {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
}

.checkout-success-meta div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
}

.checkout-success-meta dt {
  color: var(--text-muted);
}

.checkout-success-meta dd {
  margin: 0;
  font-weight: 700;
  text-align: end;
}

.checkout-success-items h3 {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.checkout-success-item {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.checkout-success-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.checkout-success-item-head strong {
  font-size: 0.88rem;
  line-height: 1.35;
}

.checkout-success-item-head span {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--pink-hot);
  white-space: nowrap;
}

.checkout-success-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.4rem;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.checkout-success-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}

.checkout-success-total strong {
  font-size: 1.25rem;
  color: var(--pink-hot);
}

.checkout-success-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.checkout-success-btn {
  width: 100%;
  min-height: 46px;
}

@media (max-width: 900px) {
  .cart-rows-head {
    display: none;
  }

  .cart-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "product total"
      "delivery delivery"
      "qty actions";
    gap: 0.65rem;
    padding: 0.9rem;
  }

  .cart-row-product { grid-area: product; }
  .cart-row-delivery { grid-area: delivery; }
  .cart-row-qty { grid-area: qty; justify-self: start; }
  .cart-row-total { grid-area: total; }
  .cart-row-actions { grid-area: actions; justify-content: flex-end; }
}

.cart-card {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-soft) 0%, var(--surface-ghost-2) 100%);
  overflow: hidden;
}

.cart-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1rem;
  align-items: center;
}

.cart-card-media {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  position: relative;
}

.cart-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-card-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
}

.cart-card-title {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  line-height: 1.35;
}

.cart-card-title:hover {
  color: var(--pink-hot);
}

.cart-card-unit-price,
.cart-card-tags {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cart-card-line-total {
  text-align: end;
}

.cart-card-line-total span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cart-card-line-total strong {
  display: block;
  margin-top: 0.15rem;
        font-size: 1.05rem;
  color: var(--pink-hot);
}

.cart-card-delivery {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-card-delivery-head {
  padding-top: 1rem;
}

.cart-card-delivery-head h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.cart-card-delivery-head p {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cart-card-delivery-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.product-customer-fields.is-compact {
  margin-top: 0.85rem;
  padding: 0.85rem;
  border-radius: 14px;
}

.cart-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-qty-control {
  display: grid;
  gap: 0.35rem;
}

.cart-qty-control > span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cart-qty-stepper {
        display: inline-flex;
        align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-ghost-2);
}

.cart-qty-stepper button {
  width: 36px;
  min-height: 36px;
        border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

.cart-qty-stepper button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cart-qty-stepper .cart-qty {
  width: 3.25rem;
  min-height: 36px;
  border: 0;
  border-inline: 1px solid var(--border);
  border-radius: 0;
  text-align: center;
  padding: 0;
}

.cart-qty-stepper.is-input-only {
  width: 100%;
  max-width: 8.5rem;
}

.cart-qty-stepper.is-input-only .cart-qty {
  width: 100%;
  border-inline: 0;
  padding-inline: 0.5rem;
}

.cart-remove-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-summary {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 960px) {
  .cart-summary {
    position: sticky;
    top: 6.5rem;
  }
}

.cart-summary-card {
  padding: 1.15rem;
  border-radius: 20px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background: rgba(var(--accent-rgb), 0.05);
}

.cart-summary-card h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.cart-summary-lines {
  margin: 1rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.cart-summary-lines div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
}

.cart-summary-lines dt {
  color: var(--text-muted);
  font-weight: 600;
}

.cart-summary-lines dd {
  margin: 0;
  font-weight: 700;
}

.cart-summary-total {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-summary-total dd {
  font-size: 1.2rem;
  color: var(--pink-hot);
}

.cart-summary-checkout {
  width: 100%;
  margin-top: 1rem;
  min-height: 48px;
}

.cart-summary-continue {
  width: 100%;
  margin-top: 0.55rem;
}

.cart-summary-note,
.cart-summary-secure {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.cart-summary-secure-inline,
.checkout-summary-secure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin: 0.85rem 0 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.cart-summary-secure-inline svg,
.checkout-summary-secure svg {
  flex-shrink: 0;
  color: var(--pink-hot);
  opacity: 0.9;
}

.cart-summary-note {
  margin-top: 0.65rem;
  text-align: center;
}

.product-detail-actions-primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  margin-top: 0;
}

.product-detail-btn-main {
  min-height: 52px;
}

.product-detail-btn-wishlist {
  min-height: 52px;
  min-width: 52px;
  padding-inline: 0.95rem;
}

.product-detail-btn-wishlist-label {
  display: none;
}

@media (min-width: 640px) {
  .product-detail-btn-wishlist-label {
    display: inline;
  }
}

.cart-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
}

.cart-line-info a {
  display: block;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.cart-line-info a:hover {
  color: var(--pink-hot);
}

.cart-line-info small {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-muted);
}

.cart-line-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-qty {
  width: 4.5rem;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  padding: 0 0.5rem;
  font: inherit;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  font-size: 1.05rem;
}

.cart-total strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--pink-hot);
}

/* Auth screen — 50/50 image + form, no site nav, locked to viewport */
.auth-screen-body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  background: var(--bg, #030305);
  color: var(--text);
  color-scheme: dark;
}
html[data-theme="light"] .auth-screen-body {
  color-scheme: light;
  background: var(--bg, #eef1f6);
}

.auth-screen {
  position: relative;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.auth-back-btn {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  inset-inline-start: max(1rem, env(safe-area-inset-left));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0 0.85rem 0 0.65rem;
        border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: color-mix(in srgb, var(--bg-card) 82%, transparent);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 0.82rem;
        font-weight: 700;
        text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}

html[data-theme="light"] .auth-back-btn {
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  border-color: var(--border);
}

.auth-back-btn:hover {
  border-color: rgba(255, 77, 141, 0.55);
  background: rgba(var(--accent-rgb), 0.12);
}

.auth-split {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

@media (min-width: 900px) {
  .auth-split {
    flex-direction: row;
  }

  [dir="rtl"] .auth-split {
    flex-direction: row-reverse;
  }
}

.auth-visual {
  position: relative;
  flex: 0 0 22%;
  width: 100%;
  min-height: 0;
  max-height: 24%;
  padding: 0;
  background: #05070b;
  overflow: hidden;
  z-index: 1;
}

.auth-visual-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.auth-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 3, 5, 0.08) 0%, rgba(3, 3, 5, 0.45) 100%);
  pointer-events: none;
}

.auth-visual-wave {
  display: none;
}

.auth-visual-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.auth-panel {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: -26px;
  padding: 0.85rem 1rem 0.65rem;
  background: var(--bg);
  border: 1px solid rgba(255, 77, 141, 0.28);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 32px 32px 0 0;
  box-shadow:
    0 -10px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 900px) {
  .auth-visual {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    max-height: none;
    height: 100%;
  }

  .auth-visual-overlay {
    background: linear-gradient(90deg, rgba(3, 3, 5, 0.1) 0%, rgba(3, 3, 5, 0.25) 100%);
  }

  .auth-visual-art {
    object-position: center;
  }

  .auth-panel {
    flex: 0 0 50%;
    max-width: 50%;
    height: 100%;
    align-items: center;
    margin-top: 0;
    padding: 2.5rem 2rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 0;
}

@media (max-width: 899px) {
  .auth-visual {
    display: none;
  }

  .auth-panel {
    flex: 1 1 100%;
    width: 100%;
    height: 100%;
    max-height: 100%;
    margin-top: 0;
    padding:
      max(3.25rem, calc(env(safe-area-inset-top) + 2.25rem))
      max(1rem, env(safe-area-inset-left))
      max(1rem, env(safe-area-inset-bottom))
      max(1rem, env(safe-area-inset-right));
    border: 0;
    border-radius: 0;
    box-shadow: none;
    align-items: center;
    justify-content: center;
  }

  .auth-card {
    max-width: none;
  }

  .auth-heading h1 {
    font-size: 1.15rem;
    text-align: center;
  }

  .auth-heading p {
    display: none;
  }

  .auth-form {
    margin-top: 0.45rem;
    gap: 0.45rem;
  }

  .auth-field {
    gap: 0.2rem;
  }

  .auth-field > span {
    font-size: 0.7rem;
  }

  .auth-input-wrap,
  .auth-input-plain {
    gap: 0.45rem;
    padding: 0.42rem 0.6rem;
    border-radius: 10px;
  }

  .auth-input-wrap input,
  .auth-input-plain {
    font-size: 0.82rem;
  }

  .auth-input-wrap svg {
    width: 16px;
    height: 16px;
  }

  .auth-password-toggle {
    width: 30px;
    height: 30px;
  }

  .auth-name-stack {
    gap: 0.45rem;
  }

  .auth-submit {
    min-height: 38px;
    margin-top: 0;
    font-size: 0.82rem;
    border-radius: 10px;
  }

  .auth-divider {
    margin: 0.45rem 0 0.4rem;
    font-size: 0.62rem;
  }

  .auth-social-stack {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .auth-social-btn {
    min-height: 38px;
    gap: 0.4rem;
    padding: 0 0.55rem;
    font-size: 0.74rem;
    border-radius: 10px;
  }

  .auth-social-btn svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
  }

  .auth-terms {
    font-size: 0.68rem;
    gap: 0.4rem;
  }

  .auth-footnote {
    display: none;
  }

  .auth-switch {
    margin: 0.35rem 0 0;
    font-size: 0.76rem;
  }

  .auth-alt-prompt {
    margin: 0.45rem 0 0;
    font-size: 0.76rem;
  }

  .auth-forgot-link {
    font-size: 0.68rem;
  }

  .auth-alert {
    margin-top: 0.5rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.78rem;
  }

  /* Register: larger fields, fill 100vh evenly */
  .auth-screen[data-auth-mode="register"] .auth-back-btn {
    top: max(0.7rem, env(safe-area-inset-top));
    inset-inline-start: max(0.85rem, env(safe-area-inset-left));
    min-height: 36px;
    padding: 0 0.85rem 0 0.6rem;
    font-size: 0.78rem;
    gap: 0.3rem;
  }

  .auth-screen[data-auth-mode="register"] .auth-theme-toggle {
    top: max(0.7rem, env(safe-area-inset-top));
    inset-inline-end: max(0.85rem, env(safe-area-inset-right));
  }

  .auth-screen[data-auth-mode="register"] .auth-panel {
    justify-content: stretch;
    padding:
      max(3.1rem, calc(env(safe-area-inset-top) + 2.1rem))
      max(1.1rem, env(safe-area-inset-left))
      max(0.85rem, env(safe-area-inset-bottom))
      max(1.1rem, env(safe-area-inset-right));
    overflow: hidden;
  }

  .auth-screen[data-auth-mode="register"] .auth-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    max-height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
  }

  .auth-screen[data-auth-mode="register"] .auth-heading {
    flex: 0 0 auto;
  }

  .auth-screen[data-auth-mode="register"] .auth-heading h1 {
    font-size: clamp(1.28rem, 3.5vh, 1.55rem);
    letter-spacing: -0.03em;
    margin: 0;
  }

  .auth-screen[data-auth-mode="register"] .auth-heading p {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .auth-screen[data-auth-mode="register"] .auth-form--register {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(0.35rem, 1vh, 0.55rem);
    margin-top: clamp(0.45rem, 1.2vh, 0.7rem);
    min-height: 0;
  }

  .auth-screen[data-auth-mode="register"] .auth-name-stack {
    gap: 0.45rem;
  }

  .auth-screen[data-auth-mode="register"] .auth-field {
    gap: 0.22rem;
  }

  .auth-screen[data-auth-mode="register"] .auth-field > span {
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    text-transform: none;
    font-weight: 650;
    color: var(--text-soft);
  }

  .auth-screen[data-auth-mode="register"] .auth-required-mark {
    display: none;
  }

  .auth-screen[data-auth-mode="register"] .auth-input-wrap,
  .auth-screen[data-auth-mode="register"] .auth-input-plain {
    min-height: clamp(44px, 5.6vh, 50px);
    padding: 0.55rem 0.8rem;
    border-radius: 12px;
    gap: 0.45rem;
  }

  .auth-screen[data-auth-mode="register"] .auth-input-wrap input,
  .auth-screen[data-auth-mode="register"] .auth-input-plain,
  .auth-screen[data-auth-mode="register"] .auth-phone-input {
    font-size: 0.95rem;
  }

  .auth-screen[data-auth-mode="register"] .auth-input-wrap svg {
    width: 16px;
    height: 16px;
  }

  .auth-screen[data-auth-mode="register"] .auth-phone-combo {
    min-height: clamp(44px, 5.6vh, 50px);
    border-radius: 12px;
  }

  .auth-screen[data-auth-mode="register"] .auth-country-trigger {
    font-size: 0.86rem;
    padding: 0 0.55rem 0 0.6rem;
  }

  .auth-screen[data-auth-mode="register"] .auth-phone-input {
    padding: 0.55rem 0.85rem;
  }

  .auth-screen[data-auth-mode="register"] .auth-field-hint {
    display: none;
  }

  .auth-screen[data-auth-mode="register"] .auth-terms {
    margin-top: 0.05rem;
    font-size: 0.76rem;
    gap: 0.45rem;
    align-items: center;
  }

  .auth-screen[data-auth-mode="register"] .auth-terms input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 0;
  }

  .auth-screen[data-auth-mode="register"] .auth-submit {
    min-height: clamp(44px, 5.8vh, 50px);
    margin-top: 0.1rem;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    border-radius: 12px;
  }

  .auth-screen[data-auth-mode="register"] .auth-divider {
    flex: 0 0 auto;
    margin: clamp(0.4rem, 1.2vh, 0.7rem) 0 clamp(0.35rem, 1vh, 0.55rem);
    font-size: 0.64rem;
  }

  .auth-screen[data-auth-mode="register"] .auth-social-stack {
    flex: 0 0 auto;
    gap: 0.5rem;
  }

  .auth-screen[data-auth-mode="register"] .auth-social-btn {
    min-height: clamp(42px, 5.4vh, 48px);
    font-size: 0.82rem;
    border-radius: 12px;
  }

  .auth-screen[data-auth-mode="register"] .auth-switch {
    flex: 0 0 auto;
    margin: clamp(0.4rem, 1.1vh, 0.65rem) 0 0;
    font-size: 0.82rem;
    text-align: center;
  }

  .auth-screen[data-auth-mode="register"] .auth-alert {
    margin: 0.5rem 0 0;
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 899px) and (max-height: 780px) {
  .auth-screen[data-auth-mode="register"] .auth-heading p {
    display: none;
  }
}

@media (max-width: 899px) and (max-height: 700px) {
  .auth-screen[data-auth-mode="register"] .auth-field-hint {
    display: none;
  }

  .auth-screen[data-auth-mode="register"] .auth-form--register {
    gap: clamp(0.3rem, 0.9vh, 0.45rem);
  }

  .auth-screen[data-auth-mode="register"] .auth-input-wrap,
  .auth-screen[data-auth-mode="register"] .auth-input-plain,
  .auth-screen[data-auth-mode="register"] .auth-phone-combo {
    min-height: 42px;
  }

  .auth-screen[data-auth-mode="register"] .auth-submit,
  .auth-screen[data-auth-mode="register"] .auth-social-btn {
    min-height: 42px;
  }
}

@media (max-width: 899px) and (max-height: 620px) {
  .auth-screen[data-auth-mode="register"] .auth-divider,
  .auth-screen[data-auth-mode="register"] .auth-social-stack {
    display: none;
  }
}

@media (min-width: 900px) {
  .auth-card {
    max-width: 400px;
    padding: 0.5rem 0;
  }
}

.auth-error-list {
  margin: 0;
  padding-inline-start: 1rem;
}

.auth-heading h1 {
  margin: 0;
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.auth-heading p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.auth-alt-prompt {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.auth-alt-prompt a {
  color: var(--pink-hot);
  font-weight: 700;
  text-decoration: none;
}

.auth-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.auth-field-head > span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
}

.auth-forgot-link {
  margin-inline-start: auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pink-hot);
  text-decoration: none;
  white-space: nowrap;
}

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

@media (min-width: 900px) {
  .auth-heading h1 {
    font-size: 1.75rem;
  }

  .auth-heading p {
    margin: 0.5rem 0 0;
    font-size: 0.92rem;
  }
}

.auth-alert {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--pink-hot);
  font-size: 0.88rem;
}

.auth-alert--success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
}

.otp-input-row {
  display: flex;
}

.otp-boxes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
}

.otp-boxes.is-invalid .otp-box,
.otp-box.is-invalid,
.auth-code-input.is-invalid,
.authenticator-code-input.is-invalid {
  border-color: rgba(248, 113, 113, 0.85);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
}

.otp-boxes.is-valid .otp-box {
  border-color: rgba(34, 197, 94, 0.7);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

@keyframes otp-shake {
  0%, 100% { transform: translateX(0); }
  16% { transform: translateX(-7px); }
  32% { transform: translateX(7px); }
  48% { transform: translateX(-5px); }
  64% { transform: translateX(5px); }
  80% { transform: translateX(-2px); }
}

.otp-boxes.is-shaking,
.otp-box.is-shaking,
.auth-code-input.is-shaking,
.authenticator-code-input.is-shaking,
.auth-alert.is-shaking {
  animation: otp-shake 0.48s ease;
}

.otp-box {
  width: 100%;
  aspect-ratio: 1;
  max-height: 3.35rem;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
  padding: 0;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.otp-box:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
  background: rgba(var(--accent-rgb), 0.08);
}

.otp-box:not(:placeholder-shown),
.otp-box.filled {
  border-color: rgba(var(--accent-rgb), 0.35);
}

.otp-code-input {
  width: 100%;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 12px;
  background: var(--surface-soft);
  color: #fff;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-align: center;
  padding: 0.85rem 1rem;
}

.otp-code-input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.otp-expiry {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  min-height: 1.2em;
}

.otp-expiry.is-expired {
  color: var(--pink-hot);
  font-weight: 600;
}

.otp-email-note {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.otp-resend-form {
  margin-top: 0.85rem;
}

.otp-resend-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-muted);
  transition: color .15s ease, opacity .15s ease;
}

.otp-resend-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.otp-resend-btn.is-ready {
  color: var(--pink-hot);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.otp-resend-btn.is-ready:hover {
  color: var(--pink);
  background: transparent;
}

.auth-link-btn {
  border: 0;
  background: transparent;
  color: var(--pink-hot);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
        cursor: pointer;
  padding: 0;
}

.auth-link-btn:hover {
  color: var(--pink);
}

.auth-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .auth-form {
    margin-top: 1.5rem;
    gap: 1rem;
  }
}

.auth-field {
  display: grid;
  gap: 0.45rem;
}

.auth-field > span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
}

.auth-input-wrap,
.auth-input-plain {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 12px;
  background: var(--input-bg, var(--surface-soft));
  padding: 0.65rem 0.85rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.auth-input-plain {
  width: 100%;
}

.auth-input-wrap:focus-within,
.auth-input-plain:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.auth-input-wrap input,
.auth-input-plain {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  font: inherit;
  font-size: 0.92rem;
}

.auth-input-wrap input::placeholder,
.auth-input-plain::placeholder {
  color: var(--text-faint);
  -webkit-text-fill-color: var(--text-faint);
  opacity: 1;
}

.auth-input-wrap input:-webkit-autofill,
.auth-input-wrap input:-webkit-autofill:hover,
.auth-input-wrap input:-webkit-autofill:focus,
.auth-input-wrap input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
  transition: background-color 9999s ease-out 0s;
}

.auth-password-input {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}

.auth-input-wrap input:focus,
.auth-input-plain:focus {
  outline: none;
  box-shadow: none;
}

.auth-input-wrap--password {
  padding-inline-end: 0.35rem;
}

.auth-password-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin-inline-start: auto;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}

.auth-password-toggle:hover {
  color: var(--pink-hot);
  background: rgba(var(--accent-rgb), 0.1);
}

.auth-password-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-password-toggle-icon--hide {
  display: none;
}

.auth-password-toggle.is-visible .auth-password-toggle-icon--show {
  display: none;
}

.auth-password-toggle.is-visible .auth-password-toggle-icon--hide {
  display: inline-flex;
}

.auth-name-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.auth-name-stack .auth-field {
  min-width: 0;
}

.auth-channel-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  margin: 0;
  padding: 0.22rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
}

.auth-channel-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  padding: 0.55rem 0.65rem;
  border-radius: 9px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.auth-channel-tab.is-active {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.28), rgba(190, 18, 60, 0.22));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 77, 141, 0.28);
}

.auth-channel-panel {
  display: none;
}

.auth-channel-panel.is-active {
  display: block;
}

.auth-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}

.auth-step {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.auth-step.is-active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.28), rgba(190, 18, 60, 0.2));
  border-color: rgba(255, 77, 141, 0.35);
}

.auth-step.is-done {
  color: var(--text-soft);
  border-color: rgba(var(--accent-rgb), 0.22);
}

.auth-required-mark {
  font-style: normal;
  font-weight: 600;
  font-size: 0.72em;
  color: var(--text-muted);
  margin-inline-start: 0.2rem;
}

.auth-change-contact {
  margin-top: 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  padding: 0.15rem 0.75rem 0.75rem;
}

.auth-change-contact summary {
  cursor: pointer;
  list-style: none;
  padding: 0.65rem 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent, #ff4d8d);
}

.auth-change-contact summary::-webkit-details-marker {
  display: none;
}

.auth-form--compact {
  gap: 0.75rem;
}

.auth-submit--secondary {
  background: transparent;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  color: var(--text);
  box-shadow: none;
}

.auth-submit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: 1rem;
}

html[data-theme="light"] .auth-step {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .auth-change-contact {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
}

.auth-phone-combo {
  position: relative;
  display: grid;
  grid-template-columns: auto 1px minmax(0, 1fr);
  align-items: stretch;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  background: var(--surface-soft);
  overflow: visible;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.auth-phone-combo.is-focused,
.auth-phone-combo.is-picker-open {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.auth-phone-combo-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-country-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.65rem 0 0.7rem;
  min-height: 100%;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}

.auth-country-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.auth-country-dial {
  letter-spacing: 0.01em;
}

.auth-country-caret {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-inline-start: 0.05rem;
}

.auth-country-select {
  width: 100%;
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  padding: 0 0.55rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.auth-country-select:focus {
  outline: none;
}

.auth-country-sheet {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

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

.auth-country-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: pointer;
}

.auth-country-sheet-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  max-height: min(78vh, 36rem);
  display: flex;
  flex-direction: column;
  border-radius: 18px 18px 0 0;
  background: #12151c;
  border: 1px solid var(--border);
  border-bottom: 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  padding:
    0.85rem 0.85rem
    max(0.85rem, env(safe-area-inset-bottom));
}

.auth-country-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.auth-country-sheet-head strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.auth-country-sheet-close {
  appearance: none;
  border: 0;
  background: var(--surface-hover);
  color: var(--text);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.auth-country-search {
  display: block;
  margin-bottom: 0.65rem;
}

.auth-country-search input {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: var(--surface-soft);
  color: var(--text);
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.auth-country-search input:focus {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.auth-country-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  min-height: 0;
}

.auth-country-option {
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.55rem;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  text-align: start;
}

.auth-country-option:hover,
.auth-country-option:focus-visible {
  background: rgba(var(--accent-rgb), 0.12);
  outline: none;
}

.auth-country-option.is-selected {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.24), rgba(190, 18, 60, 0.16));
}

.auth-country-option-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
  font-size: 0.92rem;
}

.auth-country-option-dial {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.84rem;
}

.auth-country-empty {
  margin: 0.75rem 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

html.auth-country-open,
html.auth-country-open body {
  overflow: hidden;
}

html[data-theme="light"] .auth-country-sheet-panel {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .auth-country-search input,
html[data-theme="light"] .auth-country-trigger,
html[data-theme="light"] .auth-country-option {
  color: #0f172a;
}

html[data-theme="light"] .auth-country-sheet-close {
  background: rgba(15, 23, 42, 0.06);
}

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

  .auth-country-sheet-panel {
    border-radius: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: min(70vh, 34rem);
  }
}

.is-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;
}

.auth-phone-input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.65rem 0.85rem;
}

.auth-phone-input:focus {
  outline: none;
}

.auth-phone-input::placeholder {
  color: var(--text-faint);
  -webkit-text-fill-color: var(--text-faint);
  opacity: 1;
  font-weight: 500;
  letter-spacing: 0;
}

.auth-field-hint {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

html[data-theme="light"] .auth-channel-tabs {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .auth-channel-tab {
  color: rgba(15, 23, 42, 0.55);
}

html[data-theme="light"] .auth-channel-tab.is-active {
  background: linear-gradient(135deg, rgba(217, 22, 90, 0.16), rgba(190, 18, 60, 0.1));
  color: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(217, 22, 90, 0.18);
}

html[data-theme="light"] .auth-field-hint {
  color: rgba(15, 23, 42, 0.55);
}

html[data-theme="light"] .auth-terms {
  color: rgba(15, 23, 42, 0.68);
}

html[data-theme="light"] .auth-terms a {
  color: var(--pink-deep);
}

html[data-theme="light"] .auth-or-line {
  color: rgba(15, 23, 42, 0.45);
}

html[data-theme="light"] .auth-link-btn {
  color: rgba(15, 23, 42, 0.72);
}

html[data-theme="light"] .auth-link-btn:hover {
  color: #0f172a;
}

html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-field > span,
html[data-theme="light"] .auth-screen[data-auth-mode="login"] .auth-field > span {
  color: rgba(15, 23, 42, 0.72);
}

html[data-theme="light"] .auth-phone-combo {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .auth-phone-combo.is-focused {
  border-color: rgba(217, 22, 90, 0.4);
  box-shadow: 0 0 0 3px rgba(217, 22, 90, 0.1);
}

html[data-theme="light"] .auth-phone-combo-divider {
  background: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .auth-country-select,
html[data-theme="light"] .auth-phone-input {
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
}

html[data-theme="light"] .auth-phone-input::placeholder {
  color: rgba(15, 23, 42, 0.32);
  -webkit-text-fill-color: rgba(15, 23, 42, 0.32);
  opacity: 1;
}

.auth-input-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.auth-grid-2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .auth-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.auth-submit {
  margin-top: 0.25rem;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: var(--glow-pink);
  transition: filter .15s ease, transform .15s ease;
}

.auth-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.auth-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
  transform: none;
  box-shadow: none;
}

.auth-submit.is-busy,
.otp-resend-btn.is-busy {
  opacity: 0.72;
        cursor: wait;
  pointer-events: none;
}

.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.1rem;
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--text-muted);
  cursor: pointer;
}

.auth-terms input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 0.1rem;
  flex-shrink: 0;
  accent-color: var(--pink-hot);
  cursor: pointer;
}

.auth-terms a,
.auth-legal-note a,
.auth-legal-link {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  color: var(--pink-hot);
  font-weight: 700;
  text-decoration: none;
}

.auth-legal-note {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.auth-terms a:hover {
  color: var(--pink);
}

.auth-divider {
        position: relative;
  margin: 1.5rem 0 1.25rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  padding: 0 0.75rem;
  background: #030305;
}

.auth-divider::before {
  content: "";
        position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 1px;
  background: rgba(var(--accent-rgb), 0.15);
}

.auth-social-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.auth-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.auth-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-social-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-social-btn:hover {
  border-color: rgba(255, 77, 141, 0.35);
  background: rgba(var(--accent-rgb), 0.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.auth-social-btn--google {
  border-color: rgba(255, 255, 255, 0.14);
  background: var(--surface-soft);
}

.auth-social-btn--google:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.auth-social-btn--facebook {
  border-color: rgba(24, 119, 242, 0.4);
  background: rgba(24, 119, 242, 0.1);
}

.auth-social-btn--facebook:hover {
  border-color: rgba(24, 119, 242, 0.55);
  background: rgba(24, 119, 242, 0.16);
}

.auth-social-btn--passkey {
  width: 100%;
  cursor: pointer;
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--text);
  font: inherit;
}

.auth-social-btn--passkey:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.16);
}

.auth-passkey-status {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.82rem;
}

[data-login-identity][data-identity-mode="email"] [data-identity-phone],
[data-login-identity][data-identity-mode="phone"] [data-identity-email] {
  display: none;
}

.auth-identity-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 18px;
  flex-shrink: 0;
  color: #ff5a9a;
}

.auth-identity-icon svg:first-child {
  width: 17px;
  height: 17px;
}

.auth-identity-icon svg:last-child {
  position: absolute;
  inset-inline-end: -3px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  padding: 1px;
  border-radius: 3px;
  background: #11131a;
  box-shadow: 0 0 0 1px rgba(255, 90, 154, 0.25);
}

.auth-screen[data-auth-mode="login"] .auth-heading {
  text-align: center;
}

.auth-screen[data-auth-mode="login"] .auth-heading h1 {
  font-size: clamp(1.7rem, 5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.auth-screen[data-auth-mode="login"] .auth-heading p {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.auth-screen[data-auth-mode="login"] .auth-form {
  margin-top: 1.15rem;
  gap: 0.85rem;
}

.auth-screen[data-auth-mode="login"] .auth-field > span,
.auth-screen[data-auth-mode="login"] .auth-field-head > span {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text-soft);
}

.auth-screen[data-auth-mode="login"] .auth-input-wrap,
.auth-screen[data-auth-mode="login"] .auth-phone-combo {
  min-height: 50px;
  border-radius: 14px;
  border-color: rgba(var(--accent-rgb), 0.28);
  background: var(--input-bg, var(--bg-elevated));
}

.auth-screen[data-auth-mode="login"] .auth-input-wrap:focus-within,
.auth-screen[data-auth-mode="login"] .auth-phone-combo.is-focused,
.auth-screen[data-auth-mode="login"] .auth-phone-combo.is-picker-open {
  border-color: rgba(255, 77, 141, 0.55);
  box-shadow:
    0 0 0 3px rgba(var(--accent-rgb), 0.14),
    0 8px 22px rgba(var(--accent-rgb), 0.08);
}

.auth-screen[data-auth-mode="login"] .auth-input-wrap input,
.auth-screen[data-auth-mode="login"] .auth-phone-input {
  font-size: 0.95rem;
}

.auth-screen[data-auth-mode="login"] .auth-input-wrap--password > svg {
  color: #ff5a9a;
  flex-shrink: 0;
}

.auth-screen[data-auth-mode="login"] .auth-forgot-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pink-hot);
}

.auth-screen[data-auth-mode="login"] .auth-terms {
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.auth-screen[data-auth-mode="login"] .auth-terms input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0;
  border-radius: 5px;
  accent-color: var(--pink-hot);
}

.auth-screen[data-auth-mode="login"] .auth-submit {
  min-height: 52px;
  margin-top: 0.15rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #ff6ba8 0%, var(--pink) 52%, #e0126a 100%);
  box-shadow:
    0 10px 28px rgba(var(--accent-rgb), 0.42),
    0 0 0 1px rgba(255, 90, 154, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.auth-screen[data-auth-mode="login"] .auth-submit:hover {
  filter: brightness(1.05);
  box-shadow:
    0 12px 32px rgba(var(--accent-rgb), 0.5),
    0 0 0 1px rgba(255, 90, 154, 0.4);
}

.auth-biometric-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  width: 100%;
  min-height: 58px;
  margin-top: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  background: var(--surface-ghost);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.auth-biometric-btn:hover,
.auth-biometric-btn:focus-visible {
  outline: none;
  border-color: rgba(255, 77, 141, 0.55);
  background: rgba(var(--accent-rgb), 0.08);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.auth-biometric-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.auth-biometric-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-biometric-icon {
  display: inline-flex;
  color: #ff5a9a;
}

.auth-biometric-title {
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.auth-biometric-hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.25;
}

.auth-screen[data-auth-mode="login"] .auth-divider {
  margin: 0.95rem 0 0.8rem;
}

.auth-screen[data-auth-mode="login"] .auth-social-stack {
  grid-template-columns: 1fr;
}

.auth-screen[data-auth-mode="login"] .auth-social-btn {
  min-height: 50px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 700;
}

.auth-screen[data-auth-mode="login"] .auth-switch {
  margin-top: 1.05rem;
  font-size: 0.86rem;
}

.auth-screen[data-auth-mode="login"] .auth-switch-link {
  color: var(--pink-hot);
  font-weight: 800;
}

@media (max-width: 899px) {
  .auth-screen[data-auth-mode="login"] .auth-panel {
    justify-content: center;
    padding:
      max(3.4rem, calc(env(safe-area-inset-top) + 2.5rem))
      max(1.2rem, env(safe-area-inset-left))
      max(1.1rem, env(safe-area-inset-bottom))
      max(1.2rem, env(safe-area-inset-right));
    background:
      radial-gradient(ellipse 90% 38% at 50% -8%, rgba(var(--accent-rgb), 0.12), transparent 58%),
      #030305;
  }

  .auth-screen[data-auth-mode="login"] .auth-card {
    width: 100%;
    max-width: 420px;
  }

  .auth-screen[data-auth-mode="login"] .auth-heading p {
    display: block;
    font-size: 0.84rem;
  }

  .auth-screen[data-auth-mode="login"] .auth-heading h1 {
    font-size: clamp(1.65rem, 7vw, 1.95rem);
    text-align: center;
  }

  .auth-screen[data-auth-mode="login"] .auth-form {
    margin-top: clamp(0.85rem, 2.2vh, 1.2rem);
    gap: clamp(0.65rem, 1.6vh, 0.9rem);
  }

  .auth-screen[data-auth-mode="login"] .auth-input-wrap,
  .auth-screen[data-auth-mode="login"] .auth-phone-combo {
    min-height: 50px;
    padding: 0.55rem 0.85rem;
    border-radius: 14px;
  }

  .auth-screen[data-auth-mode="login"] .auth-country-trigger {
    padding: 0 0.55rem 0 0.1rem;
  }

  .auth-screen[data-auth-mode="login"] .auth-phone-input {
    font-size: 0.95rem;
    padding: 0.2rem 0.15rem 0.2rem 0.6rem;
  }

  .auth-screen[data-auth-mode="login"] .auth-submit {
    min-height: 50px;
    font-size: 0.98rem;
    border-radius: 14px;
  }

  .auth-screen[data-auth-mode="login"] .auth-social-stack {
    grid-template-columns: 1fr;
  }

  .auth-screen[data-auth-mode="login"] .auth-social-btn {
    min-height: 48px;
    border-radius: 14px;
    font-size: 0.9rem;
  }

  .auth-screen[data-auth-mode="login"] .auth-switch {
    margin-top: clamp(0.75rem, 1.8vh, 1.05rem);
  }
}

@media (max-width: 899px) and (max-height: 700px) {
  .auth-screen[data-auth-mode="login"] .auth-heading h1 {
    font-size: 1.45rem;
  }

  .auth-screen[data-auth-mode="login"] .auth-form {
    gap: 0.55rem;
  }

  .auth-screen[data-auth-mode="login"] .auth-input-wrap,
  .auth-screen[data-auth-mode="login"] .auth-phone-combo,
  .auth-screen[data-auth-mode="login"] .auth-submit,
  .auth-screen[data-auth-mode="login"] .auth-social-btn {
    min-height: 44px;
  }

  .auth-biometric-btn {
    min-height: 52px;
    margin-top: 0.55rem;
    padding: 0.5rem 0.75rem;
  }
}

.auth-legal-sep {
  margin-inline: 0.3em;
}

.auth-heading--purchase {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-purchase-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0.7rem;
  border-radius: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  background: rgba(var(--accent-rgb), 0.12);
  color: #ff5a9a;
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.22);
}

.auth-purchase-card {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: var(--surface-ghost);
}

.auth-purchase-eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.auth-purchase-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.auth-purchase-thumb {
  display: inline-flex;
  flex: 0 0 56px;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.1);
  color: #ff5a9a;
}

.auth-purchase-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-purchase-info {
  flex: 1;
  min-width: 0;
}

.auth-purchase-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  overflow-wrap: anywhere;
}

.auth-purchase-package {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.auth-purchase-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.auth-purchase-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  background: rgba(var(--accent-rgb), 0.1);
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--text-soft);
}

.auth-purchase-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(var(--accent-rgb), 0.16);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.auth-purchase-total strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pink-hot);
}

.auth-purchase-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.7rem 0 0;
  font-size: 0.76rem;
  line-height: 1.35;
  text-align: center;
  color: var(--text-muted);
}

.auth-purchase-note svg {
  flex-shrink: 0;
  color: #ff5a9a;
}

.auth-purchase-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.auth-purchase-actions .auth-purchase-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  text-decoration: none;
}

.auth-purchase-secondary {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(255, 77, 141, 0.55);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
}

.auth-purchase-secondary:hover,
.auth-purchase-secondary:focus-visible {
  outline: none;
  background: rgba(var(--accent-rgb), 0.08);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.auth-purchase-secondary[aria-expanded="true"],
.auth-login-panel[hidden] {
  display: none;
}

@media (max-width: 899px) {
  .auth-screen.is-purchase-context .auth-panel {
    justify-content: flex-start;
  }

  .auth-purchase-badge {
    width: 46px;
    height: 46px;
    margin-bottom: 0.55rem;
  }
}

.otp-box {
  overflow: hidden;
}

.auth-social {
  display: grid;
  gap: 0.65rem;
}

.auth-footnote {
  margin: 1.25rem 0 0;
  text-align: center;
        font-size: 0.75rem;
  color: var(--text-muted);
}

.auth-switch {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--pink-hot);
  font-weight: 700;
  text-decoration: none;
  transition: color .15s ease, opacity .15s ease;
}

.auth-switch-link {
  position: relative;
  display: inline-block;
}

.auth-switch-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}

.auth-switch-link:hover::after {
  transform: scaleX(1);
}

.auth-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@keyframes auth-panel-enter-right {
  from {
    opacity: 0;
    transform: translateX(36px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes auth-panel-enter-left {
  from {
    opacity: 0;
    transform: translateX(-36px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes auth-panel-enter-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 899px) {
  .auth-panel--enter-right {
    animation: auth-panel-enter-right 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .auth-panel--enter-left {
    animation: auth-panel-enter-left 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .auth-panel--enter-fade {
    animation: auth-panel-enter-fade 0.35s ease both;
  }

  [dir="rtl"] .auth-panel--enter-right {
    animation-name: auth-panel-enter-left;
  }

  [dir="rtl"] .auth-panel--enter-left {
    animation-name: auth-panel-enter-right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-panel--enter-right,
  .auth-panel--enter-left,
  .auth-panel--enter-fade {
    animation: none;
  }
}

.auth-switch a:hover {
  color: var(--pink);
}

.store-page-head {
        margin-bottom: 1.5rem;
    }

.store-page-head h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.store-page-head p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
}

.store-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-hot);
}

.store-catalog-page {
  padding: 1.5rem 0 3rem;
}

.store-contact-page {
  padding: 1.5rem 0 3rem;
}

.store-content-page {
  padding: 1.5rem 0 3rem;
  max-width: 760px;
}

.store-content-prose {
  display: grid;
  gap: 1.35rem;
}

.store-content-block {
  padding: 1.15rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
}

.store-content-block h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.store-content-block p {
  margin: 0 0 0.65rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.store-content-block p:last-child {
  margin-bottom: 0;
}

.store-content-block ul {
  margin: 0;
  padding-inline-start: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.store-content-block li + li {
  margin-top: 0.35rem;
}

.store-content-prose--rich {
  display: grid;
  gap: 0.15rem;
}

.store-content-prose--rich > h2,
.store-content-prose--rich > h3 {
  margin: 1.15rem 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.store-content-prose--rich > h2:first-child,
.store-content-prose--rich > h3:first-child,
.store-content-prose--rich > p:first-child {
  margin-top: 0;
}

.store-content-prose--rich > h3 {
  font-size: 0.98rem;
}

.store-content-prose--rich p,
.store-content-prose--rich li {
  color: var(--text-muted);
  line-height: 1.7;
}

.store-content-prose--rich p {
  margin: 0 0 0.75rem;
}

.store-content-prose--rich ul,
.store-content-prose--rich ol {
  margin: 0 0 0.85rem;
  padding-inline-start: 1.2rem;
}

.store-content-prose--rich li + li {
  margin-top: 0.35rem;
}

.store-content-prose--rich strong,
.store-content-prose--rich b {
  font-weight: 800;
  color: var(--text);
}

.store-content-prose--rich em,
.store-content-prose--rich i {
  font-style: italic;
}

.store-content-prose--rich u {
  text-underline-offset: 0.18em;
}

.store-content-prose--rich a {
  color: var(--pink-hot);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.store-content-prose--rich blockquote {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.95rem;
  border-inline-start: 3px solid var(--pink-hot);
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.06);
}

.store-content-prose--rich span.color {
  color: var(--dark-color, var(--color));
}

html[data-theme="light"] .store-content-prose--rich span.color {
  color: var(--color);
}

.store-content-prose--rich [style*="text-align:center"] {
  text-align: center;
}

.store-content-prose--rich [style*="text-align:right"] {
  text-align: right;
}

.store-content-prose--after-cards {
  margin-top: 1.5rem;
}

.store-faq-page-grid {
  margin-top: 1.35rem;
}

.faq-answer-prose p,
.faq-panel .faq-answer-prose {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 500;
}

.faq-answer-prose p + p,
.faq-answer-prose ul,
.faq-answer-prose ol {
  margin-top: 0.55rem;
}

.faq-answer-prose strong,
.faq-answer-prose b {
  font-weight: 800;
  color: var(--text);
}

.faq-answer-prose a {
  color: var(--pink-hot);
  font-weight: 700;
}

.faq-answer-prose span.color {
  color: var(--dark-color, var(--color));
}

html[data-theme="light"] .faq-answer-prose span.color {
  color: var(--color);
}

.contact-page-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.85rem;
}

.contact-page-card {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), 0.06), transparent 52%),
    var(--surface-ghost);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.contact-page-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.06);
}

.contact-page-card--static {
  cursor: default;
}

.contact-page-card--static:hover {
  transform: none;
}

.contact-page-card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--pink-hot);
}

.contact-page-card strong {
  font-size: 0.95rem;
}

.contact-page-card span {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  word-break: break-word;
}

.contact-page-card em {
  color: var(--text-muted);
  font-style: normal;
  font-size: 0.8rem;
}

.contact-page-social {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.75rem;
}

.contact-page-social p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .contact-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .contact-page-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.store-page-head--compact {
  margin-bottom: 1.25rem;
}

.store-category-types {
  display: grid;
  gap: 0.5rem;
}

.store-category-types-head h2 {
  margin: 0;
  font-size: clamp(1rem, 3vw, 1.15rem);
}

.catalog-breadcrumb a {
  display: inline-flex;
  margin-bottom: 0.55rem;
  color: var(--pink-hot);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.catalog-breadcrumb a:hover {
  text-decoration: underline;
}

.catalog-controls {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding: 0.95rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), 0.06), transparent 52%),
    var(--surface-ghost);
  position: relative;
  z-index: 25;
  isolation: isolate;
}

.catalog-live {
  position: relative;
  z-index: 4;
  overflow: visible;
}

.catalog-toolbar-pro {
  position: relative;
  z-index: 6;
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  overflow: visible;
}

.catalog-search-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.catalog-search-pill:focus-within {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: var(--input-bg, var(--surface-soft));
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}

html[data-theme="light"] .catalog-search-pill {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] .catalog-search-pill:focus-within {
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.04);
}

.catalog-tool-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  overflow: visible;
  align-items: stretch;
}

.catalog-tool-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: start;
}

.catalog-tool-btn.is-open,
.catalog-tool-btn.has-filters {
  border-color: rgba(var(--accent-rgb), 0.38);
}

.catalog-tool-btn-icon {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.catalog-tool-btn-icon svg {
  display: block;
}

.catalog-tool-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink-hot);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
  flex-shrink: 0;
}

.catalog-tool-chevron {
  margin-inline-start: auto;
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

.catalog-tool-btn.is-open .catalog-tool-chevron {
  transform: rotate(180deg);
}

.catalog-sort {
  position: relative;
  z-index: 7;
  min-width: 0;
  overflow: visible;
}

.catalog-sort-current {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 700;
}

.catalog-sort-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline: 0;
  z-index: 40;
  display: none;
  gap: 0.2rem;
  min-width: 100%;
  padding: 0.4rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #161d2c;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.catalog-sort-menu.is-open {
  display: grid;
}

html[data-theme="light"] .catalog-sort-menu {
  border-color: rgba(15, 23, 42, 0.1);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.catalog-sort-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.8rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: start;
  cursor: pointer;
}

.catalog-sort-option svg {
  flex-shrink: 0;
}

.catalog-sort-option.is-active {
  background: rgba(var(--accent-rgb), 0.16);
  color: #fff;
}

.catalog-sort-option:not(.is-active):hover {
  background: var(--surface-hover);
}

html[data-theme="light"] .catalog-sort-option:not(.is-active):hover {
  background: rgba(15, 23, 42, 0.05);
}

.catalog-tool-btn--sort {
  width: 100%;
}

.catalog-sort-prefix {
  display: none;
}

.catalog-tool-btn--sort .catalog-sort-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 46px;
  padding: 0 2rem 0 0.85rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 46px;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-overflow: ellipsis;
}

.catalog-tool-btn--sort .catalog-sort-select:focus {
  box-shadow: none;
  border: 0;
  outline: none;
}

.catalog-filter-panel {
  display: none;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.catalog-filter-panel.is-open {
  display: grid;
}

html[data-theme="light"] .catalog-tool-btn,
html[data-theme="light"] .catalog-filter-panel {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.88);
}

.catalog-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.catalog-results-bar .catalog-results-meta {
  margin: 0;
}

.catalog-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.catalog-view-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.catalog-view-btn svg {
  display: block;
}

.catalog-view-btn.is-active {
  border-color: rgba(255, 77, 141, 0.7);
  color: var(--pink-hot);
}

.catalog-controls--static {
  margin-bottom: 1rem;
}

.catalog-controls-row {
  display: grid;
  gap: 0.65rem;
}

.catalog-controls-row--primary {
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.catalog-controls-row--filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-search-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  margin: 0;
  padding: 0 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: var(--surface-soft);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.catalog-search-field:focus-within {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.catalog-search-icon {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.catalog-search-icon svg {
  display: block;
}

.catalog-search-input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.2;
  padding: 0;
  margin: 0;
  min-height: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.catalog-search-input::-webkit-search-decoration,
.catalog-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.catalog-search-input::placeholder {
  color: var(--text-muted);
}

.catalog-sort-field,
.catalog-price-field {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.catalog-sort-label,
.catalog-price-field > span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.catalog-sort-select,
.catalog-price-input {
  width: 100%;
  min-height: 36px;
  height: 36px;
  padding: 0 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  outline: none;
}

.catalog-sort-select:focus,
.catalog-price-input:focus {
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.08);
}

.catalog-price-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  grid-column: 1 / -1;
}

.catalog-price-preset,
.catalog-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  background: var(--surface-ghost);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.catalog-price-preset:hover,
.catalog-clear-btn:hover {
  border-color: rgba(var(--accent-rgb), 0.38);
  color: var(--pink-hot);
  background: rgba(var(--accent-rgb), 0.08);
}

.catalog-clear-btn {
  align-self: start;
  justify-self: start;
  white-space: nowrap;
}

[data-filter-label][hidden] {
  display: none !important;
}

@media (max-width: 420px) {
  .catalog-sort-prefix {
    display: none;
  }
}

@media (min-width: 768px) {
  .catalog-controls-row--filters {
    grid-template-columns: 140px 140px minmax(0, 1fr);
    align-items: end;
  }

  .catalog-price-presets {
    grid-column: auto;
    justify-content: flex-end;
  }
}

@media (min-width: 768px) {
  .product-grid--catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .product-card--shop h3 {
    font-size: 0.88rem;
  }

  .product-card-price strong {
    font-size: 1.05rem;
  }

  .product-card-delivery {
    font-size: 0.7rem;
  }

  .product-card-body {
    padding: 0.65rem 0.65rem 0.7rem;
    gap: 0.28rem;
  }

  .product-card-buy {
    min-height: 36px;
    font-size: 0.8rem;
    border-radius: 10px;
  }
}

@media (min-width: 900px) {
  .product-grid--catalog {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .product-grid--catalog {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0;
}

.catalog-filter {
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background: var(--surface-soft);
  color: var(--text);
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, color .15s ease;
}

.catalog-filter:hover {
  border-color: rgba(255, 77, 141, 0.35);
  transform: translateY(-1px);
}

.catalog-filter.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
  color: #fff;
  box-shadow: var(--glow-pink);
}

.catalog-toolbar--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  touch-action: pan-x;
  scrollbar-width: none;
  padding-bottom: 0.2rem;
  -webkit-overflow-scrolling: touch;
}

.catalog-toolbar--scroll::-webkit-scrollbar {
  display: none;
}

.catalog-toolbar--scroll .catalog-filter {
  flex-shrink: 0;
  white-space: nowrap;
}

.catalog-cats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem 0.4rem;
  margin: 0 0 1rem;
  align-items: center;
}

.catalog-cats.is-paged {
  grid-template-columns: 2.55rem minmax(0, 1fr) 2.55rem;
}

.catalog-cats-viewport {
  min-width: 0;
  height: auto;
  overflow: visible;
}

.catalog-cats.is-paged .catalog-cats-viewport {
  height: var(--cat-page-h, 13.25rem);
  overflow: hidden;
}

.catalog-cats-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  transform: translateY(calc(-1 * var(--cat-page, 0) * var(--cat-page-h, 0px)));
  transition: transform 0.32s cubic-bezier(.22, .9, .28, 1);
  will-change: transform;
}

.catalog-cats-inner .catalog-filter {
  flex-shrink: 0;
  white-space: nowrap;
}

.catalog-cats-btn {
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: var(--surface-soft);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  align-self: center;
  transition: border-color .15s ease, background .15s ease, color .15s ease, opacity .15s ease;
}

.catalog-cats-btn svg {
  display: block;
}

.catalog-cats-btn:hover:not(:disabled) {
  border-color: var(--pink-hot);
  background: rgba(var(--accent-rgb), 0.16);
  color: #fff;
}

.catalog-cats-btn:disabled {
  opacity: 0.32;
  cursor: default;
}

.catalog-cats-dots {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.catalog-cats-dot {
  width: 0.42rem;
  height: 0.42rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: width .18s ease, background .18s ease;
}

.catalog-cats-dot.is-active {
  width: 1.1rem;
  background: var(--pink-hot);
}

@media (prefers-reduced-motion: reduce) {
  .catalog-cats-inner,
  .catalog-cats-dot {
    transition: none;
  }
}

html[data-theme="light"] .catalog-cats-dot {
  background: rgba(15, 23, 42, 0.2);
}

html[data-theme="light"] .catalog-cats-dot.is-active {
  background: var(--pink-hot);
}

.catalog-load-sentinel {
  width: 100%;
  height: 1px;
  margin-top: 0.5rem;
  pointer-events: none;
}

.catalog-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.catalog-load-more-spinner {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid rgba(var(--accent-rgb), 0.18);
  border-top-color: var(--pink-hot);
  animation: catalogSpin 0.7s linear infinite;
}

@keyframes catalogSpin {
  to { transform: rotate(360deg); }
}

.product-grid--catalog.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.catalog-results-meta {
  margin: 0 0 1rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.catalog-pagination-nav {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.catalog-pagination-wrap {
  margin-top: 1.5rem;
}

.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.catalog-pagination-item {
  margin: 0;
}

.catalog-pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.catalog-pagination-btn:hover:not(:disabled) {
  border-color: rgba(var(--accent-rgb), 0.35);
  color: var(--pink-hot);
}

a.catalog-pagination-btn {
  text-decoration: none;
}

.catalog-pagination-item.is-disabled .catalog-pagination-btn {
  opacity: 0.45;
  cursor: default;
}

.catalog-pagination-status {
  padding: 0 0.35rem;
}

.catalog-pagination-current {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.store-empty-state {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  padding: 2.5rem 1rem;
  border: 1px dashed rgba(var(--accent-rgb), 0.22);
  border-radius: 16px;
  text-align: center;
  color: var(--text-muted);
}

.product-detail-page {
  padding: 0.7rem 0 2rem;
}

/* Product order: compact premium mobile PDP */
@media (max-width: 767px) {
  body.is-product-order {
    min-height: 100vh;
    min-height: 100dvh;
  }

  body.is-product-order.has-mobile-home-tab #main {
    padding-bottom: calc(1.35rem + var(--safe-bottom) + var(--app-tab-clearance) + var(--app-pwa-clearance));
  }

  body.is-product-order.has-mobile-home-tab .site-footer,
  body.is-product-order .site-footer {
    display: none;
    padding-bottom: 0;
  }

  body.is-product-order .product-detail-page,
  body.is-product-order .product-detail-scroll {
    height: auto;
    min-height: 0;
    max-width: 100%;
    padding-top: 0.35rem;
    padding-bottom: 0.5rem;
    overflow: visible;
  }

  body.is-product-order .product-detail-page .container {
    width: min(1280px, calc(100% - 1rem));
    max-width: 100%;
    padding-bottom: 0.25rem;
  }

  body.is-product-order .product-detail-layout.g4c-pdp,
  body.is-product-order .product-buy-card.g4c-pdp {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    height: auto;
    min-height: 0;
  }

  body.is-product-order .product-breadcrumb--compact {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    overflow: hidden;
    white-space: nowrap;
  }

  body.is-product-order .product-breadcrumb__back {
    flex: 0 0 auto;
    font-weight: 700;
    color: var(--pink);
    text-decoration: none;
  }

  body.is-product-order .product-breadcrumb--compact a,
  body.is-product-order .product-breadcrumb--compact span[aria-current="page"] {
    color: color-mix(in srgb, var(--text) 72%, transparent);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.is-product-order .product-breadcrumb--compact span[aria-current="page"] {
    color: var(--text);
    font-weight: 650;
  }

  body.is-product-order .product-breadcrumb__sep {
    opacity: 0.45;
  }

  /* Hero: compact horizontal card — image LEFT of title (fixes gap before Select amount) */
  body.is-product-order .product-detail-hero {
    display: block;
    padding: 0.75rem;
    margin: 0;
    border-radius: 1rem;
    border: 1px solid color-mix(in srgb, var(--pink) 18%, transparent);
    background:
      radial-gradient(ellipse 90% 80% at 100% 0%, color-mix(in srgb, var(--pink) 10%, transparent), transparent 55%),
      color-mix(in srgb, #12121c 92%, transparent);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  }

  body.is-product-order .product-detail-identity {
    display: grid;
    grid-template-columns: 4.75rem minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
  }

  body.is-product-order .product-detail-media {
    order: 0 !important;
    display: block;
    width: auto;
    justify-content: stretch;
    position: static;
  }

  body.is-product-order .product-detail-media-frame {
    width: 4.75rem;
    height: 4.75rem;
    max-width: 4.75rem;
    padding: 0.2rem;
    border-radius: 0.85rem;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  }

  body.is-product-order .product-detail-image {
    object-fit: cover;
  }

  body.is-product-order .product-detail-intro {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
  }

  body.is-product-order .product-detail-category {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.3;
    color: color-mix(in srgb, var(--text) 55%, transparent);
  }

  body.is-product-order .product-detail-title-row {
    gap: 0.35rem;
  }

  body.is-product-order .product-detail-panel h1,
  body.is-product-order .product-detail-intro h1 {
    margin: 0;
    font-size: clamp(1.02rem, 4.4vw, 1.18rem);
    line-height: 1.25;
  }

  body.is-product-order .product-detail-fav {
    width: 2rem;
    height: 2rem;
    min-height: 2rem;
  }

  body.is-product-order .product-detail-chips {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
  }

  body.is-product-order .product-detail-chip {
    display: inline-flex;
    width: auto;
    flex: 0 0 auto;
    min-height: 1.45rem;
    padding: 0.15rem 0.45rem;
    font-size: 0.68rem;
  }

  body.is-product-order .product-detail-btn-monitor {
    width: auto;
    align-self: flex-start;
    margin-top: 0.15rem;
    min-height: 1.85rem;
    padding: 0.28rem 0.65rem;
    font-size: 0.74rem;
    border-radius: 999px;
  }

  body.is-product-order .product-detail-panel {
    margin: 0;
    padding: 0;
  }

  body.is-product-order .product-group-variants {
    margin: 0;
  }

  body.is-product-order .product-group-variants__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.55rem;
    margin-bottom: 0.55rem;
  }

  body.is-product-order .product-group-variants__title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 780;
  }

  body.is-product-order .product-group-variants__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 650;
    color: color-mix(in srgb, var(--text) 72%, transparent);
    background: color-mix(in srgb, var(--text) 6%, transparent);
    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  }

  body.is-product-order .product-group-variants__badge::before {
    content: "✓";
    color: var(--pink);
    font-weight: 800;
  }

  body.is-product-order .product-group-variants__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  body.is-product-order .product-group-variant {
    position: relative;
    gap: 0.15rem;
    padding: 0.7rem 0.7rem 0.65rem;
    border-radius: 0.9rem;
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    background: var(--nested-surface, var(--surface-soft));
    transition:
      border-color 0.2s ease,
      box-shadow 0.2s ease,
      background 0.2s ease,
      transform 0.16s ease;
  }

  body.is-product-order .product-group-variant:active {
    transform: scale(0.98);
  }

  body.is-product-order .product-group-variant.is-active {
    border-color: var(--pink);
    background: color-mix(in srgb, var(--pink) 10%, transparent);
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--pink) 35%, transparent),
      0 0 18px color-mix(in srgb, var(--pink) 22%, transparent);
  }

  body.is-product-order .product-group-variant__check {
    position: absolute;
    top: 0.4rem;
    inset-inline-end: 0.4rem;
    display: grid;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
    background: var(--pink);
    box-shadow: 0 0 10px color-mix(in srgb, var(--pink) 45%, transparent);
  }

  body.is-product-order .product-group-variant__name {
    font-size: 0.88rem;
    padding-inline-end: 1.2rem;
  }

  body.is-product-order .product-group-variant__price {
    font-size: 0.78rem;
    font-weight: 650;
    opacity: 0.82;
  }

  body.is-product-order .product-info-panel,
  body.is-product-order .product-desc-panel {
    margin-top: 0.65rem;
    border-radius: 0.9rem;
  }

  body.is-product-order .product-info-panel-summary,
  body.is-product-order .product-desc-panel-summary {
    min-height: 0;
    padding: 0.55rem 0.7rem;
    gap: 0.55rem;
    align-items: center;
  }

  body.is-product-order .product-info-panel-copy,
  body.is-product-order .product-desc-panel-copy {
    display: grid;
    gap: 0.1rem;
    flex: 1 1 auto;
    min-width: 0;
    text-align: start;
  }

  body.is-product-order .product-info-panel-hint,
  body.is-product-order .product-desc-panel-hint {
    font-size: 0.68rem;
    font-weight: 500;
    color: color-mix(in srgb, var(--text) 52%, transparent);
  }

  body.is-product-order .product-desc-panel-mark {
    color: var(--pink);
    font-size: 0.95rem;
  }

  body.is-product-order .product-qty-pay {
    margin-top: 0.55rem;
    gap: 0.55rem;
  }

  body.is-product-order .product-qty-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  body.is-product-order .product-qty-option {
    min-width: 0;
    width: 100%;
    padding: 0.48rem 0.3rem;
    font-size: 0.78rem;
  }

  body.is-product-order .product-buy-total {
    padding: 0.7rem 0.8rem;
  }

  body.is-product-order .product-customer-fields {
    padding: 0.75rem 0.8rem 0.8rem;
    border-radius: 0.95rem;
  }

  body.is-product-order .product-customer-fields-grid {
    margin-top: 0.55rem;
    gap: 0.55rem;
  }

  body.is-product-order .product-buy-card .product-customer-secure {
    display: none;
  }

  body.is-product-order .product-detail-secure {
    margin: 0;
    font-size: 0.68rem;
  }

  body.is-product-order .product-detail-actions-primary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  body.is-product-order .product-detail-btn-wishlist {
    display: none;
  }

  body.is-product-order .product-detail-cta {
    padding-inline-end: 0;
    margin-top: 0.15rem;
    margin-bottom: 0.35rem;
  }

  body.is-product-order .product-detail-btn-main {
    width: 100%;
    min-height: 3rem;
    border-radius: 0.95rem;
    font-size: 0.98rem;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--pink) 28%, transparent);
    transition: transform 0.16s ease, box-shadow 0.2s ease;
  }

  body.is-product-order .product-detail-btn-main:active:not(:disabled) {
    transform: scale(0.985);
  }

  body.is-product-order .floating-dock,
  body.is-product-order.has-mobile-home-tab .floating-dock {
    --dock-size: 46px;
    bottom: calc(
      0.7rem + var(--safe-bottom) + var(--app-tab-clearance) + var(--app-pwa-clearance)
    );
  }

  @media (prefers-reduced-motion: reduce) {
    body.is-product-order .product-group-variant,
    body.is-product-order .product-detail-btn-main {
      transition: none;
    }
  }
}

.product-detail-page .container {
  width: min(1280px, calc(100% - 1.5rem));
}

@media (min-width: 1024px) {
  .product-detail-page .container {
    width: min(1280px, calc(100% - 4rem));
  }
}

.product-breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.15rem;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--text-muted);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.product-breadcrumb::-webkit-scrollbar {
  display: none;
}

.product-breadcrumb a,
.product-breadcrumb span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.product-breadcrumb a {
  color: var(--pink-hot);
  font-weight: 600;
}

.product-breadcrumb span:last-child {
  color: var(--text);
}

.product-detail-layout {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-detail-hero {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-detail-identity {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-detail-media {
  order: 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.product-detail-intro {
  min-width: 0;
}

.product-detail-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.product-detail-title-row h1 {
  flex: 1 1 auto;
  min-width: 0;
}

.product-detail-fav {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-detail-fav.is-active {
  color: var(--pink-hot);
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.1);
}

.product-detail-fav.is-active svg,
.product-detail-fav.is-active svg path {
  fill: currentColor;
}

.product-detail-panel {
  order: 2;
  min-width: 0;
}

.product-customer-fields {
  order: 3;
}

.product-detail-secure {
  order: 4;
}

.product-detail-cta {
  order: 5;
}

.product-customer-error {
  order: 6;
}

/* New g4c-pdp structure: hero is identity-only; keep DOM order (amount → details → buy). */
.product-detail-layout.g4c-pdp .product-detail-hero,
.product-detail-layout.g4c-pdp .product-detail-panel,
.product-detail-layout.g4c-pdp .product-customer-fields,
.product-detail-layout.g4c-pdp .g4c-pidv,
.product-detail-layout.g4c-pdp .product-detail-secure,
.product-detail-layout.g4c-pdp .product-insufficient-host,
.product-detail-layout.g4c-pdp .product-detail-cta,
.product-detail-layout.g4c-pdp .product-monitor-panel,
.product-detail-layout.g4c-pdp .product-customer-error {
  order: unset;
}

.product-detail-media-frame {
  position: relative;
  width: 148px;
  height: 148px;
  max-width: 46vw;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  background: rgba(16, 18, 28, 0.92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem;
}

.product-detail-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

.product-detail-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.product-detail-media-frame .product-fallback svg {
  width: 28%;
  height: 28%;
  max-width: 88px;
  max-height: 88px;
}

.product-detail-badge {
  position: absolute;
  z-index: 2;
  top: 0.45rem;
  inset-inline-start: 0.45rem;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  box-shadow: 0 6px 14px rgba(var(--accent-rgb), 0.28);
}

.product-detail-panel h1,
.product-detail-intro h1 {
  margin: 0.22rem 0 0;
  font-size: clamp(1.28rem, 5.4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.product-detail-category {
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-hot);
}

.product-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.product-detail-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--line);
  color: var(--text-muted);
}

.product-detail-chip.is-instant,
.product-detail-chip.is-in-stock {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
}

.product-detail-chip.is-manual {
  color: var(--pink-hot);
  border-color: rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.08);
}

.product-detail-chip.is-out-stock {
  gap: 0.32rem;
  color: #e8eaee;
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(8, 10, 16, 0.55);
}

.product-detail-chip.is-custom,
.product-detail-chip.is-cancel {
  color: var(--pink-hot);
  border-color: rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.08);
}

.product-detail-lead {
  margin: 0;
  padding: 0 0.75rem 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
  font-size: 0.86rem;
}

.product-desc-panel .product-detail-lead[dir="rtl"] {
  text-align: right;
}

.product-info-panel,
.product-desc-panel {
  margin-top: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-ghost);
  overflow: hidden;
}

.product-info-panel-summary,
.product-desc-panel-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  list-style: none;
}

.product-info-panel-summary::-webkit-details-marker,
.product-desc-panel-summary::-webkit-details-marker {
  display: none;
}

.product-info-panel-mark {
  flex-shrink: 0;
  color: var(--pink-hot);
  font-size: 0.95rem;
  line-height: 1;
}

.product-info-panel-copy,
.product-desc-panel-copy {
  display: grid;
  gap: 0.12rem;
  flex: 1 1 auto;
  min-width: 0;
  text-align: start;
}

.product-info-panel-title,
.product-desc-panel-title {
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.product-info-panel-hint,
.product-desc-panel-hint {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
}

.product-desc-panel-mark {
  flex-shrink: 0;
  color: var(--pink-hot);
  font-size: 0.95rem;
  line-height: 1;
}

.product-info-panel-chevron,
.product-desc-panel-chevron {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 0.15s ease;
}

.product-info-panel[open] .product-info-panel-chevron,
.product-desc-panel[open] .product-desc-panel-chevron {
  transform: rotate(180deg);
}

.product-info-list {
  list-style: none;
  margin: 0;
  padding: 0 0.75rem 0.7rem;
  display: grid;
  gap: 0.55rem;
}

.product-info-item {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
}

.product-info-item-icon {
  font-size: 1rem;
  line-height: 1.25;
}

.product-info-item-copy strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.25;
}

.product-info-item-copy p {
  margin: 0.12rem 0 0;
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

html[data-theme="light"] .product-info-panel,
html[data-theme="light"] .product-desc-panel {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.08);
}

.product-buy-card {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: none;
}

.product-buy-card.is-insufficient {
  border-color: rgba(255, 77, 109, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 77, 109, 0.18);
}

.product-insufficient-host:empty {
  display: none;
}

.product-insufficient-host:not(:empty) {
  display: block;
  margin: 0.65rem 0 0.85rem;
}

.product-insufficient {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 77, 109, 0.35);
  background: rgba(255, 77, 109, 0.1);
}

.product-insufficient strong {
  color: #ff8aa0;
  font-size: 0.92rem;
}

.product-insufficient p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.product-insufficient-cta {
  justify-self: start;
  margin-top: 0.2rem;
}

@keyframes buy-now-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.is-shaking {
  animation: buy-now-shake 0.52s ease-in-out;
}

.product-customer-field.is-invalid > span,
.auth-field.product-customer-field.is-invalid > span {
  color: var(--pink-hot, var(--pink));
}

.product-customer-field.is-invalid .product-customer-input,
.product-customer-field.is-invalid .product-customer-select,
.product-customer-field.is-invalid .product-customer-textarea,
.product-customer-field.is-invalid .auth-phone-combo,
.product-customer-field.is-invalid .auth-input-wrap {
  border-color: rgba(var(--accent-rgb), 0.65);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}

.product-customer-fields.is-attention {
  outline: none;
}

.product-buy-unit {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.product-buy-unit strong {
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 800;
  color: var(--pink-hot);
}

.product-buy-unit span,
.product-buy-unit s {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.product-amount-field {
  display: grid;
  gap: 0.4rem;
}

.product-amount-field > label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.product-amount-input {
  width: 100%;
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0 0.95rem;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}

.product-amount-input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.product-amount-wrap {
  position: relative;
}

.product-amount-wrap.is-invalid .product-amount-input,
.product-amount-input[aria-invalid="true"] {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

.product-qty-error {
  margin: 0.35rem 0 0;
  min-height: 1.15em;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f87171;
}

.product-buy-total.is-invalid strong {
  color: var(--text-muted);
}

.product-detail-btn-main[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.product-amount-flash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.94);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.product-amount-wrap.is-flashing .product-amount-input {
  border-color: rgba(var(--accent-rgb), 0.7);
}

.product-qty-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.product-qty-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-qty-option {
  -webkit-appearance: none;
  appearance: none;
  min-width: 4.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  border: 1px solid #ff4d8d;
  background: transparent;
  box-shadow: inset 0 0 0 1px #ff4d8d;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.product-qty-option.is-active {
  border-color: var(--pink);
  background: rgba(var(--accent-rgb), 0.16);
  box-shadow: inset 0 0 0 1px var(--pink);
  color: #ff6b9a;
}

.product-qty-pay {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.product-buy-price--rate {
  display: grid;
  gap: 0.15rem;
}

.product-buy-rate {
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  letter-spacing: -0.02em;
}

.product-buy-per-thousand {
  margin: 0.1rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.product-buy-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
}

.product-buy-total-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.product-buy-total span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-buy-total small {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.product-buy-total strong {
  font-size: clamp(1.28rem, 4vw, 1.7rem);
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.product-buy-price {
  margin-top: 0.7rem;
}

@media (max-width: 359px) {
  .product-buy-total {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .product-buy-total strong {
    white-space: normal;
  }
}

@media (min-width: 768px) {
  .product-detail-page {
    padding: 1rem 0 2.5rem;
  }

  .product-breadcrumb {
    font-size: 0.82rem;
    margin-bottom: 1rem;
  }

  .product-detail-layout,
  .product-buy-card.product-detail-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-areas:
      "media intro"
      "media panel"
      "media cta"
      "fields fields"
      "secure secure";
    align-items: start;
    gap: 1.15rem 1.4rem;
    padding: 1.2rem 1.25rem 1.25rem;
    border-radius: 22px;
    border: 1px solid rgba(var(--accent-rgb), 0.16);
    background:
      radial-gradient(circle at 12% 0%, rgba(var(--accent-rgb), 0.12), transparent 36%),
      radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.10), transparent 42%),
      rgba(16, 18, 28, 0.92);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  }

  /* Unwrap identity so media/intro participate in the layout grid. */
  .product-detail-hero,
  .product-detail-identity {
    display: contents;
  }

  .product-detail-fav--header {
    display: none;
  }

  .product-detail-media {
    order: unset;
    grid-area: media;
    width: auto;
    justify-content: stretch;
    position: static;
    top: auto;
    align-self: start;
  }

  .product-detail-intro {
    grid-area: intro;
  }

  .product-detail-panel {
    order: unset;
    grid-area: panel;
  }

  .product-detail-cta {
    order: unset;
    grid-area: cta;
    align-self: end;
  }

  .product-customer-fields {
    order: unset;
    grid-area: fields;
  }

  .product-detail-secure {
    order: unset;
    grid-area: secure;
  }

  .g4c-pidv,
  .product-insufficient-host,
  .product-monitor-panel,
  .product-customer-error {
    grid-column: 1 / -1;
  }

  .product-detail-media-frame {
    width: 240px;
    height: 240px;
    max-width: 100%;
    padding: 1rem;
    border-radius: 20px;
  }

  .product-detail-badge {
    top: 0.75rem;
    inset-inline-start: 0.75rem;
    font-size: 0.66rem;
    padding: 0.26rem 0.52rem;
  }

  .product-detail-panel h1,
  .product-detail-intro h1 {
    font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  }

  .product-detail-lead {
    font-size: 0.92rem;
  }

  .product-qty-pay {
    margin-top: 0.85rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .product-qty-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .product-customer-fields-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-customer-fields-grid > :only-child,
  .product-customer-field--phone {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .product-detail-layout,
  .product-buy-card.product-detail-layout {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1.35rem 1.75rem;
    padding: 1.45rem 1.5rem 1.5rem;
  }

  .product-detail-media-frame {
    width: 320px;
    height: 320px;
    padding: 1.15rem;
  }

  .product-detail-btn-main,
  .product-detail-btn-wishlist {
    min-height: 54px;
  }
}

@media (min-width: 1280px) {
  .product-detail-layout,
  .product-buy-card.product-detail-layout {
    grid-template-columns: 360px minmax(0, 1fr);
  }

  .product-detail-media-frame {
    width: 360px;
    height: 360px;
  }
}

.product-detail-price-box {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  background: var(--surface-ghost);
}

.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.product-detail-price strong {
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--pink-hot);
}

.product-detail-price s {
  color: var(--text-muted);
  font-size: 1rem;
}

.product-detail-unit-price {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.product-qty-field {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.product-qty-field > label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.product-qty-stepper {
  width: fit-content;
}

.cart-qty-stepper .cart-qty.is-open-qty {
  width: 5.5rem;
}

.product-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin: 1rem 0 0;
}

.product-detail-meta dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.product-detail-meta dd {
  margin: 0.2rem 0 0;
  font-weight: 700;
}

.product-detail-meta .is-in-stock {
  color: #34d399;
}

.product-detail-meta .is-out-stock {
  color: var(--pink-hot);
}

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

.product-buy-card .product-detail-actions-primary {
  margin-top: 0;
}

.product-detail-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.product-detail-btn-main [data-buy-busy] {
  display: none;
}

.product-detail-btn-main.is-buying [data-buy-idle] {
  display: none;
}

.product-detail-btn-main.is-buying [data-buy-busy] {
  display: inline;
}

.product-buy-processing,
.g4c-pp {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  overflow: hidden;
}

.product-buy-processing[hidden],
.g4c-pp[hidden] {
  display: none !important;
}

.g4c-pp__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 18%, color-mix(in srgb, var(--pink) 22%, transparent), transparent 58%),
    radial-gradient(ellipse 70% 50% at 80% 80%, color-mix(in srgb, var(--purple, #7c3aed) 18%, transparent), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 70%, color-mix(in srgb, var(--pink) 10%, transparent), transparent 50%),
    #05050c;
  animation: g4c-pp-bg 8s ease-in-out infinite alternate;
}

.g4c-pp__shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  width: min(100%, 24rem);
  min-height: min(78dvh, 36rem);
  text-align: center;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.g4c-pp.is-open .g4c-pp__shell {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.g4c-pp__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.g4c-pp__logo {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(145deg, var(--pink), color-mix(in srgb, var(--purple, #a855f7) 65%, var(--pink)));
  box-shadow: 0 0 28px color-mix(in srgb, var(--pink) 40%, transparent);
}

.g4c-pp__logo-mark {
  font-size: 0.95rem;
}

.g4c-pp__brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}

.g4c-pp__brand-name span {
  color: var(--pink);
}

.g4c-pp__brand-tag {
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--text) 48%, transparent);
}

.g4c-pp__stage {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  width: 100%;
}

.g4c-pp__orb {
  position: relative;
  width: 7.5rem;
  height: 7.5rem;
  display: grid;
  place-items: center;
}

.g4c-pp__glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--pink) 35%, transparent), transparent 70%);
  filter: blur(8px);
  animation: g4c-pp-glow 2.2s ease-in-out infinite;
}

.g4c-pp__ring {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--pink) 35%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--pink) 25%, transparent);
  animation: g4c-pp-ring 2.8s ease-in-out infinite;
}

.g4c-pp__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--pink) 88%, #fff), var(--pink) 40%, color-mix(in srgb, var(--purple, #c026d3) 55%, var(--pink)));
  box-shadow:
    0 10px 30px color-mix(in srgb, var(--pink) 35%, transparent),
    0 0 0 1px color-mix(in srgb, var(--pink) 30%, transparent);
  animation: g4c-pp-icon-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.g4c-pp__icon[hidden] {
  display: none !important;
}

.g4c-pp__icon svg {
  width: 2.35rem;
  height: 2.35rem;
}

.g4c-pp__icon--shield {
  background: linear-gradient(145deg, color-mix(in srgb, var(--purple, #a855f7) 80%, var(--pink)), var(--pink));
}

.g4c-pp__icon--check {
  background: linear-gradient(145deg, var(--pink), color-mix(in srgb, var(--pink) 70%, #fff));
}

.g4c-pp__icon--error {
  background: linear-gradient(145deg, #ef4444, #fb7185);
  box-shadow: 0 10px 30px color-mix(in srgb, #ef4444 35%, transparent);
}

.g4c-pp__icon--dots {
  background: transparent;
  box-shadow: none;
  gap: 0.45rem;
  grid-auto-flow: column;
}

.g4c-pp__icon--dots span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--pink);
  animation: g4c-pp-bounce 1s ease-in-out infinite;
}

.g4c-pp__icon--dots span:nth-child(2) { animation-delay: 0.12s; }
.g4c-pp__icon--dots span:nth-child(3) { animation-delay: 0.24s; }

.g4c-pp__title {
  margin: 0;
  font-size: clamp(1.2rem, 4.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
}

.g4c-pp__title span {
  color: var(--pink);
}

.g4c-pp__sub {
  margin: 0;
  max-width: 18rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--text) 62%, transparent);
}

.g4c-pp__dots {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.g4c-pp__dots span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 18%, transparent);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.g4c-pp__dots span.is-on {
  background: var(--pink);
  box-shadow: 0 0 10px color-mix(in srgb, var(--pink) 55%, transparent);
  transform: scale(1.12);
}

.g4c-pp__actions {
  display: grid;
  gap: 0.55rem;
  width: min(100%, 16.5rem);
  margin-top: 0.35rem;
}

.g4c-pp__actions[hidden] {
  display: none !important;
}

.g4c-pp__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1rem;
  border-radius: 0.9rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}

.g4c-pp__btn--primary {
  color: #fff;
  background: linear-gradient(120deg, var(--pink), color-mix(in srgb, var(--purple, #c026d3) 55%, var(--pink)));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--pink) 30%, transparent);
}

.g4c-pp__btn--primary:active {
  transform: scale(0.98);
}

.g4c-pp__btn--ghost {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 6%, transparent);
  border-color: color-mix(in srgb, var(--text) 14%, transparent);
}

.g4c-pp__trust {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.7rem;
  line-height: 1.3;
  color: var(--text-soft, var(--text-muted));
  background: var(--nested-surface, var(--surface-soft));
  border: 1px solid var(--border);
}

.g4c-pp__trust[hidden] {
  display: none !important;
}

.g4c-pp__trust-ico {
  color: var(--pink);
  display: inline-grid;
}

.g4c-pp__reduced {
  margin: 0;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  color: color-mix(in srgb, var(--text) 70%, transparent);
  background: color-mix(in srgb, var(--text) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}

.g4c-pp__reduced[hidden] {
  display: none !important;
}

.g4c-pp.is-reduced .g4c-pp__glow,
.g4c-pp.is-reduced .g4c-pp__ring,
.g4c-pp.is-reduced .g4c-pp__bg {
  animation: none;
}

.g4c-pp.is-reduced .g4c-pp__icon {
  animation: none;
}

@keyframes g4c-pp-bg {
  from { filter: hue-rotate(0deg) saturate(1); }
  to { filter: hue-rotate(12deg) saturate(1.08); }
}

@keyframes g4c-pp-glow {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes g4c-pp-ring {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.06); opacity: 0.9; }
}

@keyframes g4c-pp-icon-in {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes g4c-pp-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.55; }
  40% { transform: translateY(-4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .g4c-pp__bg,
  .g4c-pp__glow,
  .g4c-pp__ring,
  .g4c-pp__icon,
  .g4c-pp__icon--dots span,
  .g4c-pp__shell {
    animation: none !important;
    transition: none !important;
  }
}

/* Legacy hooks (old spinner/steps) — keep harmless if referenced elsewhere */
.product-buy-processing__card { display: contents; }
.product-buy-processing__spinner,
.product-buy-processing__steps,
.product-buy-processing__progress,
.product-buy-processing__order,
.product-buy-processing__eta { display: none !important; }

@keyframes product-buy-spin {
  to { transform: rotate(360deg); }
}

.product-buy-confirm,
.g4c-pc {
  position: fixed;
  inset: 0;
  z-index: 125;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding:
    max(0.5rem, env(safe-area-inset-top))
    max(0.65rem, env(safe-area-inset-right))
    max(0.5rem, env(safe-area-inset-bottom))
    max(0.65rem, env(safe-area-inset-left));
  pointer-events: none;
}

@media (min-width: 720px) {
  .product-buy-confirm,
  .g4c-pc {
    align-items: center;
    padding: 1.5rem;
  }
}

.product-buy-confirm[hidden],
.g4c-pc[hidden] {
  display: none !important;
}

.product-buy-confirm:not([hidden]),
.g4c-pc:not([hidden]) {
  pointer-events: auto;
}

.product-buy-confirm__backdrop,
.g4c-pc__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  opacity: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 12%, color-mix(in srgb, var(--pink) 16%, transparent), transparent 58%),
    color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.g4c-pc.is-open .g4c-pc__backdrop {
  opacity: 1;
}

.g4c-pc.is-closing .g4c-pc__backdrop {
  opacity: 0;
}

.g4c-pc__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 26.75rem);
  max-height: min(92dvh, 44rem);
  overflow: hidden;
  border-radius: 1.4rem 1.4rem 1.15rem 1.15rem;
  color: var(--text);
  background: linear-gradient(168deg, var(--bg-card), var(--bg-soft));
  border: 1px solid color-mix(in srgb, var(--pink) 38%, var(--border));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--purple, #7c3aed) 16%, transparent),
    0 28px 70px color-mix(in srgb, #000 58%, transparent),
    0 0 42px color-mix(in srgb, var(--pink) 14%, transparent);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.g4c-pc.is-open .g4c-pc__dialog {
  opacity: 1;
  transform: translateY(0);
}

.g4c-pc.is-closing .g4c-pc__dialog {
  opacity: 0;
  transform: translateY(14px);
}

.g4c-pc__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem 0.65rem;
  flex-shrink: 0;
}

.g4c-pc__header-main {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-width: 0;
}

.g4c-pc__header-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  border-radius: 0.8rem;
  color: #fff;
  background: linear-gradient(145deg, var(--pink), color-mix(in srgb, var(--purple, #a855f7) 68%, var(--pink)));
  box-shadow: 0 0 18px color-mix(in srgb, var(--pink) 38%, transparent);
}

.g4c-pc__title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.g4c-pc__subtitle {
  margin: 0.22rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: color-mix(in srgb, var(--text) 56%, transparent);
}

.g4c-pc__close {
  display: grid;
  place-items: center;
  width: 2.05rem;
  height: 2.05rem;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.g4c-pc__close:hover,
.g4c-pc__close:focus-visible {
  border-color: color-mix(in srgb, var(--pink) 45%, transparent);
  color: var(--pink);
  outline: none;
}

.g4c-pc__scroll {
  display: grid;
  gap: 0.55rem;
  padding: 0 1rem 0.1rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
}

.g4c-pc__product,
.g4c-pc__details,
.g4c-pc__wallet,
.g4c-pc__trust {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--nested-surface, var(--bg-soft));
}

.g4c-pc__product {
  padding: 0.7rem 0.75rem;
}

.g4c-pc__product-top {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.g4c-pc__product-media {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
  border-radius: 0.8rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
}

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

.g4c-pc__product-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--pink);
}

.g4c-pc__product-meta {
  min-width: 0;
  flex: 1;
}

.g4c-pc__product-name {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
  color: var(--text);
}

.g4c-pc__product-sub {
  margin: 0.25rem 0 0;
  font-size: 0.76rem;
  color: color-mix(in srgb, var(--text) 54%, transparent);
}

.g4c-pc__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
}

.g4c-pc__badge {
  font-size: 0.7rem;
  font-weight: 650;
  color: color-mix(in srgb, var(--text) 78%, transparent);
}

.g4c-pc__badge--instant {
  color: #f9a8d4;
}

.g4c-pc__details,
.g4c-pc__wallet {
  padding: 0.7rem 0.8rem 0.75rem;
}

.g4c-pc__details-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.g4c-pc__details-title {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 72%, transparent);
}

.g4c-pc__ref {
  margin-inline-start: auto;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--text) 68%, transparent);
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.g4c-pc__rows {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}

.g4c-pc__fields {
  display: grid;
  gap: 0.4rem;
}

.g4c-pc__fields[hidden] {
  display: none !important;
}

.g4c-pc__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.85rem;
  min-width: 0;
}

.g4c-pc__row dt {
  margin: 0;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--text) 56%, transparent);
  flex-shrink: 0;
}

.g4c-pc__row dd {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: end;
  word-break: break-word;
  min-width: 0;
}

.g4c-pc__row-status {
  display: inline-block;
  margin-inline-start: 0.35rem;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  vertical-align: middle;
  color: #bbf7d0;
  background: color-mix(in srgb, #34d399 18%, transparent);
  border: 1px solid color-mix(in srgb, #34d399 35%, transparent);
}

.g4c-pc__divider {
  height: 1px;
  margin: 0.35rem 0 0.15rem;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--pink) 35%, transparent),
    color-mix(in srgb, var(--text) 14%, transparent),
    transparent
  );
}

.g4c-pc__row--total {
  padding-top: 0.15rem;
}

.g4c-pc__row--total dt {
  font-size: 0.92rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--text) 82%, transparent);
}

.g4c-pc__row--total dd {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  text-shadow: none;
}

.g4c-pc__row--remain dd {
  color: #34d399;
}

.g4c-pc__insufficient {
  margin-top: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, #f87171 34%, transparent);
  background: color-mix(in srgb, #f87171 10%, transparent);
  opacity: 0;
  transform: translateY(6px);
}

.g4c-pc.is-open.is-insufficient .g4c-pc__insufficient:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1) 0.18s,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1) 0.18s;
}

.g4c-pc__insufficient strong {
  display: block;
  font-size: 0.84rem;
  color: #fecaca;
}

.g4c-pc__insufficient p {
  margin: 0.25rem 0 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: color-mix(in srgb, var(--text) 72%, transparent);
}

.g4c-pc__trust {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
}

.g4c-pc__trust-icon {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  color: #fff;
  background: linear-gradient(145deg, var(--pink), color-mix(in srgb, var(--purple, #a855f7) 62%, var(--pink)));
  box-shadow: 0 0 14px color-mix(in srgb, var(--pink) 28%, transparent);
}

.g4c-pc__trust strong {
  display: block;
  font-size: 0.8rem;
}

.g4c-pc__trust p {
  margin: 0.12rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: color-mix(in srgb, var(--text) 56%, transparent);
}

.g4c-pc__footer {
  flex-shrink: 0;
  padding: 0.7rem 1rem calc(0.8rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  background: color-mix(in srgb, #05050c 42%, transparent);
}

.g4c-pc__actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.6rem;
  align-items: stretch;
}

.g4c-pc__primary {
  display: grid;
  min-width: 0;
}

.g4c-pc__primary > .g4c-pc__btn {
  width: 100%;
}

/* Author display rules must never revive hidden CTAs (Safari/WebKit pitfall). */
.g4c-pc [hidden] {
  display: none !important;
}

.g4c-pc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.9rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease,
    opacity 0.15s ease,
    border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.g4c-pc__btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.g4c-pc__btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--pink) 70%, #fff);
  outline-offset: 2px;
}

.g4c-pc__btn--ghost {
  color: var(--text);
  background: transparent;
  border-color: color-mix(in srgb, var(--text) 18%, transparent);
}

.g4c-pc__btn--ghost:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--pink) 40%, transparent);
}

.g4c-pc__btn--primary {
  color: #fff;
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--pink) 92%, #fff),
    var(--pink) 42%,
    color-mix(in srgb, var(--purple, #c026d3) 55%, var(--pink))
  );
  box-shadow:
    0 8px 24px color-mix(in srgb, var(--pink) 30%, transparent),
    0 0 0 1px color-mix(in srgb, var(--pink) 25%, transparent);
}

.g4c-pc__btn--primary:hover:not(:disabled) {
  transform: scale(1.015);
  box-shadow:
    0 10px 28px color-mix(in srgb, var(--pink) 40%, transparent),
    0 0 20px color-mix(in srgb, var(--pink) 22%, transparent);
}

.g4c-pc__btn--primary:active:not(:disabled) {
  transform: scale(0.98);
}

.g4c-pc__legal {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.68rem;
  line-height: 1.4;
  color: color-mix(in srgb, var(--text) 50%, transparent);
}

.g4c-pc__legal a {
  color: var(--pink);
  font-weight: 650;
  text-decoration: none;
}

.g4c-pc__legal a:hover,
.g4c-pc__legal a:focus-visible {
  text-decoration: underline;
}

/* Staggered entrance */
.g4c-pc.is-open [data-confirm-stage] {
  animation: g4c-pc-stage-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.g4c-pc.is-open [data-confirm-stage="header"] { animation-delay: 0ms; }
.g4c-pc.is-open [data-confirm-stage="product"] { animation-delay: 60ms; }
.g4c-pc.is-open [data-confirm-stage="details"] { animation-delay: 120ms; }
.g4c-pc.is-open [data-confirm-stage="wallet"] { animation-delay: 180ms; }
.g4c-pc.is-open [data-confirm-stage="trust"] { animation-delay: 240ms; }
.g4c-pc.is-open [data-confirm-stage="actions"] { animation-delay: 300ms; }

.g4c-pc.is-open .g4c-pc__row--remain dd {
  animation: g4c-pc-remain-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

@keyframes g4c-pc-stage-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes g4c-pc-remain-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .g4c-pc__backdrop,
  .g4c-pc__dialog,
  .g4c-pc__btn,
  .g4c-pc__insufficient {
    transition: none !important;
  }

  .g4c-pc.is-open .g4c-pc__dialog,
  .g4c-pc.is-closing .g4c-pc__dialog {
    transform: none;
  }

  .g4c-pc.is-open [data-confirm-stage],
  .g4c-pc.is-open .g4c-pc__row--remain dd,
  .g4c-pc.is-open.is-insufficient .g4c-pc__insufficient:not([hidden]) {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .g4c-pc__btn--primary:hover:not(:disabled),
  .g4c-pc__btn--primary:active:not(:disabled) {
    transform: none;
  }
}

html[dir="rtl"] .g4c-pc__row dd,
html[dir="rtl"] .g4c-pc__product-name {
  text-align: start;
}

html[dir="rtl"] .g4c-pc__ref {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

html[data-theme="light"] .g4c-pc__dialog {
  background: linear-gradient(168deg, var(--bg-card), var(--bg-soft));
  color: var(--text);
  border-color: color-mix(in srgb, var(--pink) 28%, var(--border));
}

html[data-theme="light"] .g4c-pc__footer {
  background: color-mix(in srgb, var(--bg-soft) 90%, var(--bg-card));
}

/* Legacy class hooks kept for existing body lock / selectors */
.product-buy-confirm__card {
  display: none;
}

.product-buy-confirm__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

body.product-buy-modal-open {
  overflow: hidden;
}

.product-buy-card {
  position: relative;
}

.product-detail-btn.is-active {
  border-color: rgba(255, 77, 141, 0.45);
  color: var(--pink-hot);
}

.product-detail-stock-alert {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  margin: 0;
  font-weight: 700;
  color: #c7cbd3;
}

.product-detail-message {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #34d399;
  animation: product-message-fade 1s ease forwards;
}

@keyframes product-message-fade {
  0%, 70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.product-detail-secure {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.product-detail-secure svg {
  flex: 0 0 auto;
  margin-top: 0.12rem;
  opacity: 0.8;
}

.product-customer-fields {
  margin-top: 0;
  padding: 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background: rgba(var(--accent-rgb), 0.05);
}

.product-customer-fields-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.product-customer-fields-head p {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.product-customer-fields-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.product-customer-field--phone {
  display: grid;
  gap: 0.35rem;
}

.product-customer-field .auth-phone-combo {
  width: 100%;
}

.product-customer-phone-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.product-customer-field > span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
}

.product-customer-input,
.product-customer-select,
.product-customer-textarea {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.product-customer-select {
  cursor: pointer;
}

.product-customer-select option {
  color: #111;
}

.product-customer-textarea {
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 0.65rem 0.85rem;
  resize: vertical;
  min-height: 84px;
}

.product-customer-error {
  color: var(--pink-hot);
  font-size: 0.74rem;
  font-weight: 600;
}

.product-customer-secure {
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.cart-line-details {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.cart-line-details li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.cart-line-details strong {
  color: var(--text);
  font-weight: 700;
}

.sidebar-quick-actions {
  padding: 0 0 0.65rem;
  margin-top: 0;
}

.sidebar-quick-actions .nav-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.sidebar-quick-actions .nav-tools .icon-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveals-ready .reveal:not(.is-revealed),
  .reveals-ready .reveal.is-revealed {
    opacity: 1 !important;
    transform: none !important;
  }

  .floating-contact-btn-icon,
  .floating-cart-btn,
  .ai-agent-panel-sheet {
    transition: none !important;
  }

  .hero-image,
  .hero-light,
  .hero-floor-base,
  .hero-floor-sheen,
  .hero-floor-ring,
  .hero-floor-spark,
  .hero .hero-in,
  .hero .hero-in-visual {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Account hub dashboard ── */
.account-hub {
  padding: 1.5rem 0 3.5rem;
}

@media (max-width: 1023px) {
  body.has-mobile-home-tab .account-hub {
    padding-bottom: calc(1.25rem + var(--app-tab-clearance) + var(--app-pwa-clearance));
  }

  body.has-mobile-home-tab .orders-page,
  body.has-mobile-home-tab .wallet-page,
  body.has-mobile-home-tab .subscriptions-page {
    padding-bottom: calc(1.25rem + var(--app-tab-clearance) + var(--app-pwa-clearance));
  }
}

.account-hub-shell {
  display: grid;
  grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.account-hub-sidebar {
  position: sticky;
  top: calc(5.5rem + var(--safe-top));
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), 0.12), transparent 42%),
    var(--surface-ghost);
  box-shadow: var(--shadow);
}

.account-hub-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.account-hub-avatar,
.account-hub-avatar--initials {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
}

.account-hub-avatar--initials {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.25), rgba(var(--accent-rgb), 0.08));
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  font-weight: 800;
  font-size: 1.1rem;
}

.account-hub-user-meta {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.account-hub-user-name {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.account-hub-user-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
}

.account-hub-user-meta small {
  color: var(--text-muted);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-hub-user-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.account-hub-balance.wallet-balance-inline,
.sidebar-user-balance.wallet-balance-inline,
.profile-balance-row.wallet-balance-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.account-hub-balance {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background: rgba(var(--accent-rgb), 0.06);
}

.account-hub-balance span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: var(--text-muted);
}

.account-hub-balance strong {
  font-size: 1.15rem;
}

.account-hub-balance-link {
  margin-top: 0.15rem;
  color: var(--pink-hot);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.account-hub-nav {
  display: grid;
  gap: 0.25rem;
}

.account-hub-nav-link,
.account-hub-nav-link--logout {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.72rem 0.8rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.account-hub-nav-link span,
.account-hub-nav-link--logout span {
  flex: 1;
  text-align: start;
}

.account-hub-nav-link:hover,
.account-hub-nav-link.is-active {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.22);
  background: rgba(var(--accent-rgb), 0.08);
}

.account-hub-nav-link.is-active {
  color: var(--pink-hot);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.12);
}

.account-hub-nav-link.is-locked {
  opacity: 0.72;
}

.account-hub-nav-link--admin {
  color: var(--code);
}

.account-hub-nav-link--logout {
  color: var(--danger);
}

.account-hub-sidebar-foot {
  display: grid;
  gap: 0.25rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}

.account-hub-main {
  display: grid;
        gap: 1rem;
  min-width: 0;
}

.account-hub-mobile-nav {
  display: none;
  gap: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  /* Allow vertical page scroll even when the finger starts on a nav tile */
  touch-action: pan-x pan-y;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
}

.account-mobile-hero {
  display: none;
}

.account-overview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.account-metric-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 0.65rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  min-width: 0;
}

.account-metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--pink-hot);
}

.account-metric-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
}

.account-metric-value {
  font-size: 1.35rem;
  line-height: 1;
}

.account-hub-mobile-nav::-webkit-scrollbar {
  display: none;
}

.account-hub-mobile-link {
  flex: 0 0 auto;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.account-hub-mobile-link.is-active {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--pink-hot);
}

.account-hub-head {
        display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.account-hub-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-hot);
}

.account-hub-head h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.1;
}

.account-hub-subtitle {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  max-width: 52ch;
}

.account-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.account-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.08);
}

.account-alert-copy strong {
  display: block;
  margin-bottom: 0.2rem;
}

.account-alert-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.account-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.account-stat-card {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  min-height: 132px;
}

.account-stat-card--accent {
  border-color: rgba(var(--accent-rgb), 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), 0.14), transparent 55%),
    var(--surface-ghost);
}

.account-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--pink-hot);
}

.account-stat-copy {
  display: grid;
  gap: 0.15rem;
}

.account-stat-copy span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.account-stat-copy strong {
  font-size: 1.25rem;
  line-height: 1.1;
}

.account-stat-wallet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.wallet-balance-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.wallet-balance-inline__copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

[data-wallet-balance].wallet-balance--updated {
  animation: wallet-balance-pulse 0.7s ease;
}

@keyframes wallet-balance-pulse {
  0% {
    color: inherit;
    transform: scale(1);
  }

  35% {
    color: var(--pink-hot);
    transform: scale(1.04);
  }

  100% {
    color: inherit;
    transform: scale(1);
  }
}

.wallet-balance-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.wallet-funds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--pink), #ff4d8d);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wallet-funds-btn span,
.wallet-funds-btn svg {
  display: block;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.wallet-funds-btn:hover,
.wallet-funds-btn:focus-visible,
.wallet-funds-btn:visited {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(var(--accent-rgb), 0.38);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.account-stat-link {
  color: var(--pink-hot);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.account-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
}

.account-panel {
  padding: 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
}

.account-panel-head {
  margin-bottom: 0.95rem;
}

.account-panel-head h2 {
  margin: 0;
  font-size: 1rem;
}

.account-panel-head--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.child-panel-offer {
  max-width: 36rem;
}

.child-panel-offer__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.child-panel-offer__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.child-panel-offer__copy {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.child-panel-offer__price {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.child-panel-offer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.75rem 1.15rem;
}

.child-panel-offer__cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.child-panel-offer__benefits {
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.child-panel-offer__benefits li {
  position: relative;
  padding-inline-start: 1.35rem;
  font-size: 0.9rem;
}

.child-panel-offer__benefits li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--pink-hot, #be185d);
  font-weight: 800;
}

.child-panel-offer__facts {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.65rem;
}

.child-panel-offer__facts > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
}

.child-panel-offer__facts dt {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.child-panel-offer__facts dd {
  margin: 0;
  font-weight: 700;
  text-align: end;
}

.child-panel-offer__soon {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

@media (max-width: 720px) {
  .child-panel-offer {
    max-width: none;
  }

  .child-panel-offer__cta {
    width: 100%;
  }
}

.subs-welcome {
  margin-bottom: 1rem;
}

.subs-welcome h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.subs-welcome p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.subscriptions-page {
  padding: 1.15rem 0 2.25rem;
  background: transparent;
}

body.is-subscriptions-page,
body.is-subscriptions-page #main {
  background: var(--bg);
}

.subscriptions-page .container {
  width: min(1280px, calc(100% - 1.5rem));
}

.subscriptions-page-shell {
  display: grid;
  gap: 1rem;
}

.subs-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.15rem 0 0.35rem;
}

.subs-metric-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  min-width: 0;
}

.subs-metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--pink-hot);
}

.subs-metric-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.25;
}

.subs-metric-value {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

@media (max-width: 767px) {
  .subscriptions-page .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 16px;
    margin-inline: auto;
    box-sizing: border-box;
  }

  .subscriptions-page {
    padding: 0.85rem 0 calc(5.75rem + env(safe-area-inset-bottom));
    background:
      radial-gradient(120% 70% at 50% -10%, rgba(88, 28, 135, 0.16), transparent 55%),
      var(--bg);
  }

  html[data-theme="light"] .subscriptions-page {
    background:
      radial-gradient(120% 70% at 50% -10%, rgba(var(--accent-rgb), 0.08), transparent 55%),
      var(--bg);
  }

  body.is-subscriptions-page .header-wallet-chip {
    display: none !important;
  }

  .subs-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .subs-metrics::-webkit-scrollbar {
    display: none;
  }

  .subs-metric-card {
    padding: 0.75rem 0.7rem;
    border-radius: 14px;
  }

  .subs-metric-value {
    font-size: 1.05rem;
  }
}

.subs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 1.1rem;
}

.subs-page .subs-toolbar.catalog-toolbar-pro {
  margin: 0 0 1rem;
}

.subs-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.subs-tab span {
  min-width: 1.4rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: var(--surface-hover);
  text-align: center;
  font-size: 0.72rem;
}

.subs-tab.is-active {
  border-color: var(--pink-hot);
  color: #fff;
  background: rgba(var(--accent-rgb), 0.16);
}

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

.sub-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.sub-card__badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sub-card--active .sub-card__badge,
.sub-hero--active .sub-card__badge {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
}

.sub-card--expiring_soon .sub-card__badge,
.sub-hero--expiring_soon .sub-card__badge {
  background: rgba(251, 146, 60, 0.18);
  color: #fb923c;
}

.sub-card--expired .sub-card__badge,
.sub-hero--expired .sub-card__badge {
  background: rgba(248, 113, 113, 0.16);
  color: #f87171;
}

.sub-card__product {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sub-card__product img,
.sub-hero__product img,
.sub-card__logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--surface-soft);
}

.sub-card__logo {
  display: grid;
  place-items: center;
  color: var(--pink-hot);
}

.sub-card__product strong,
.sub-hero__product h2 {
  display: block;
  margin: 0;
}

.sub-card__product span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.sub-card__meta {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.sub-card__meta div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.84rem;
}

.sub-card__meta dt {
  color: var(--text-muted);
}

.sub-card__meta dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sub-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.sub-card--active .sub-dot { color: #4ade80; }
.sub-card--expiring_soon .sub-dot { color: #fb923c; }
.sub-card--expired .sub-dot { color: #f87171; }

.sub-remain {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
  font-size: 0.75rem;
  font-weight: 800;
}

.sub-card--expiring_soon .sub-remain {
  background: rgba(251, 146, 60, 0.16);
  color: #fb923c;
}

.sub-card__alert {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: rgba(251, 146, 60, 0.12);
  color: #fdba74;
  font-size: 0.82rem;
}

.sub-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sub-card__actions .btn {
  flex: 1 1 140px;
  justify-content: center;
}

.subs-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.subs-features article {
  display: grid;
  gap: 0.3rem;
  justify-items: start;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
}

.subs-features svg {
  color: var(--pink-hot);
}

.subs-features strong {
  font-size: 0.88rem;
}

.subs-features span {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.subs-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.subs-crumbs a {
  color: var(--text-soft);
}

.sub-hero {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.sub-hero__overview {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto auto;
  gap: 1rem;
  align-items: center;
}

.sub-hero__product {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sub-hero__status p,
.sub-hero__expiry span,
.sub-hero__billing {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.sub-hero__expiry {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}

.sub-type-pill {
  display: inline-flex;
  margin-top: 0.3rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.16);
  color: #c4b5fd;
  font-size: 0.72rem;
  font-weight: 800;
}

.sub-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.subs-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.subs-detail .account-panel-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subs-detail .account-panel-head svg {
  color: var(--pink-hot);
}

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

.sub-timeline li {
  position: relative;
  padding-left: 1.6rem;
}

.sub-timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #4ade80;
}

.sub-timeline li.is-fail::before {
  background: #f87171;
}

.sub-timeline strong,
.sub-timeline span {
  display: block;
}

.sub-timeline span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.sub-quick-list {
  display: grid;
  gap: 0.45rem;
}

.sub-quick-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.sub-quick-list strong,
.sub-quick-list small {
  display: block;
}

.sub-quick-list small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.sub-device-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.sub-about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.sub-about-pills span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

html[data-theme="light"] .subs-tab span {
  background: rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .subs-tab.is-active {
  color: var(--pink-hot);
}

html[data-theme="light"] .subs-features article,
html[data-theme="light"] .sub-about-pills span {
  background: #fff;
}

@media (max-width: 899px) {
  .subs-features,
  .subs-detail-grid,
  .sub-hero__overview {
    grid-template-columns: 1fr;
  }
}

.account-panel-link {
  color: var(--pink-hot);
  font-size: 0.82rem;
  font-weight: 700;
        text-decoration: none;
}

.account-panel-actions {
  margin-top: 0.95rem;
}

.account-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.account-quick-card {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-ghost-2);
        color: inherit;
  text-decoration: none;
  touch-action: pan-y;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.account-quick-card:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), 0.25);
  background: rgba(var(--accent-rgb), 0.06);
}

.account-quick-card strong {
  font-size: 0.9rem;
}

.account-quick-card span {
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.account-info-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.account-info-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.account-info-list div:last-child {
  border-bottom: 0;
}

.account-info-list dt {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.account-info-list dd {
        margin: 0;
        font-weight: 700;
  text-align: end;
}

.account-empty-state {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
  padding: 0.5rem 0;
}

.account-empty-state.store-empty-state,
.account-empty-state.orders-page-empty {
  justify-items: center;
  justify-content: center;
  align-content: center;
  text-align: center;
  width: 100%;
}

.wishlist-page.is-empty {
  display: flex;
  align-items: center;
  min-height: min(58vh, 520px);
}

.wishlist-page.is-empty .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.wishlist-page.is-empty .store-page-head {
  margin-bottom: 1rem;
}

.store-empty-state .empty {
  margin: 0;
}

.store-empty-state .btn,
.orders-page-empty .btn {
  margin-inline: auto;
}

.orders-board.is-empty .orders-page-empty {
  justify-items: center;
  text-align: center;
  width: 100%;
}

.account-empty-state--large {
  justify-items: center;
  text-align: center;
  padding: 2.5rem 1rem;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: var(--surface-ghost-2);
}

.account-empty-state--large h2 {
  margin: 0;
}

.account-empty-state--large p {
  margin: 0;
  color: var(--text-muted);
  max-width: 36ch;
}

.account-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--pink-hot);
}

.account-orders-toolbar {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.account-order-card {
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
}

.account-order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.account-order-id {
  display: grid;
  gap: 0.15rem;
}

.account-order-id span {
  color: var(--text-muted);
        font-size: 0.78rem;
}

.account-order-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.65rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.account-order-items {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.65rem;
}

.account-order-items > span {
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-soft);
}

.account-order-more {
  color: var(--pink-hot) !important;
}

.account-pagination {
  margin-top: 0.5rem;
}

.account-wallet-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--accent-rgb), 0.16), transparent 48%),
    var(--surface-ghost);
}

.account-wallet-balance span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.account-wallet-balance strong {
  display: block;
  margin-top: 0.2rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1;
}

.account-wallet-balance p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  max-width: 38ch;
}

.wallet-tx-preview {
  margin-top: 2rem;
}

.wallet-tx-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.wallet-tx-preview__head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.wallet-tx-toolbar {
  margin: 1rem 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.wallet-tx-list {
  display: grid;
  gap: 0.75rem;
}

.wallet-tx-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
}

.wallet-tx-card.is-pending {
  border-color: rgba(255, 193, 7, 0.28);
  background: rgba(255, 193, 7, 0.05);
}

.wallet-tx-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.wallet-tx-card__icon img {
  max-width: 3rem;
  max-height: 1.5rem;
  object-fit: contain;
}

.wallet-tx-card__fallback {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--pink-hot);
}

.wallet-tx-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.wallet-tx-card__head strong {
  display: block;
  font-size: 0.95rem;
}

.wallet-tx-card__type {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.wallet-tx-card__amount {
  font-size: 1rem;
  white-space: nowrap;
}

.wallet-tx-card__amount.is-credit {
  color: #4ade80;
}

.wallet-tx-card__amount.is-debit {
  color: #fb7185;
}

.wallet-tx-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.55rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.wallet-tx-card__status {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 700;
}

.wallet-tx-card__status.is-pending {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
}

.wallet-tx-card__status.is-completed {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.35);
}

.wallet-tx-card__status.is-cancelled {
  color: var(--text-muted);
}

.wallet-tx-card__status.is-refunded {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.35);
}

.wallet-tx-card__link,
.wallet-tx-card__ref {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.wallet-tx-card__fee {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.wallet-tx-card__fee span:last-child {
  color: #fb7185;
}

.wallet-tx-card__link {
  color: var(--pink-hot);
}

.account-wallet-actions {
  display: grid;
  gap: 0.45rem;
  justify-items: end;
}

.account-badge-soon {
  display: inline-flex;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-badge-soon--inline {
  margin-bottom: 0.45rem;
}

.account-feature-list,
.account-action-list,
.account-toggle-list {
  display: grid;
  gap: 0.65rem;
}

.account-feature-item,
.account-action-row,
.account-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-ghost-2);
}

.account-feature-item {
  align-items: flex-start;
}

.account-feature-item > div,
.account-action-row > div,
.account-toggle-row > div {
  display: grid;
  gap: 0.12rem;
}

.account-toggle-row span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.account-toggle-input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--pink-hot);
  flex-shrink: 0;
}

label.account-toggle-row {
  cursor: pointer;
}

.account-muted-copy {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.account-coming-soon-card {
  margin-top: 0.95rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: var(--surface-ghost-2);
}

.account-coming-soon-card p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.account-order-items {
  display: grid;
  gap: 0.75rem;
}

.account-order-item-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.account-order-item-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.25rem;
}

.account-order-item-media {
  display: block;
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  position: relative;
}

.account-order-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-order-item-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.account-order-reseller-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.12);
  color: var(--warn);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.account-order-expiry {
  color: var(--warn);
  font-size: 0.78rem;
}

.account-order-delivery-link {
  color: var(--code);
  font-size: 0.8rem;
        font-weight: 600;
  text-decoration: none;
}

.account-order-delivery-link:hover {
  text-decoration: underline;
}

.account-order-card-foot {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.account-order-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--pink-hot);
  font-size: 0.72rem;
  font-weight: 700;
}

.account-order-type-badge.is-muted {
  background: var(--surface-hover);
  color: var(--text-muted);
}

.account-order-detail {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.1rem;
  background: var(--surface-ghost-2);
}

.account-order-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.account-order-detail-meta div {
  padding: 0.75rem;
  border-radius: 12px;
  background: var(--surface-ghost);
}

.account-order-detail-meta dt {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-order-detail-meta dd {
  margin: 0.25rem 0 0;
  font-weight: 700;
}

.account-order-detail-items {
  margin-top: 1.25rem;
}

.account-order-detail-items h2 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.account-order-detail-item {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.account-order-detail-item-main {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.account-order-detail-item-content {
  flex: 1;
  min-width: 0;
}

.account-order-detail-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.account-order-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.account-order-detail-fields {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.account-order-detail-fields li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.78rem;
}

.account-order-detail-fields strong {
  color: var(--text);
}

.account-toggle {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.account-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .15s ease;
}

.account-toggle--on {
  background: rgba(var(--accent-rgb), 0.35);
  border-color: rgba(var(--accent-rgb), 0.45);
}

.account-toggle--on::after {
  transform: translateX(18px);
}

[dir="rtl"] .account-toggle--on::after {
  transform: translateX(-18px);
}

.account-api-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 20px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.12), transparent 45%),
    var(--surface-ghost);
}

.account-api-copy h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.account-api-copy p {
  margin: 0;
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.5;
}

.account-api-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
  justify-content: flex-end;
}

.account-code-block {
  display: grid;
  gap: 0.35rem;
  margin: 0.85rem 0;
  padding: 0.85rem;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.account-code-block span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.account-code-block code,
.account-endpoint-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--code);
  word-break: break-all;
}

.account-endpoint-list {
  display: grid;
  gap: 0.65rem;
}

.account-endpoint-row {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-ghost-2);
}

.account-endpoint-method {
  display: inline-flex;
  width: fit-content;
  padding: 0.18rem 0.45rem;
        border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: var(--ok);
  font-size: 0.68rem;
  font-weight: 800;
}

.account-endpoint-row p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.account-security-grid {
  display: grid;
  gap: 0.65rem;
}

.account-security-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.8rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-ghost-2);
}

.account-security-item span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.account-security-item--ok {
  border-color: rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.06);
}

.account-security-item--ok svg {
  color: var(--ok);
}

.account-security-item--warn {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.07);
}

.account-security-item--warn svg {
  color: #d97706;
}

@media (max-width: 1080px) {
  .account-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .account-hub-shell {
    grid-template-columns: 1fr;
  }

  .account-hub-sidebar {
    display: none;
  }

  .account-mobile-hero {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    background:
      radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), 0.16), transparent 52%),
      var(--surface-ghost);
    box-shadow: var(--shadow);
  }

  .account-mobile-hero-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
  }

  .account-mobile-hero-avatar,
  .account-mobile-hero-avatar--initials {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
  }

  .account-mobile-hero-avatar--initials {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.25), rgba(var(--accent-rgb), 0.08));
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    font-weight: 800;
    font-size: 0.95rem;
  }

  .account-mobile-hero-meta {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
  }

  .account-mobile-hero-name {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
  }

  .account-mobile-hero-name strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.98rem;
  }

  .account-mobile-hero-meta small {
    color: var(--text-muted);
    font-size: 0.76rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account-mobile-hero-wallet {
    display: grid;
    gap: 0.55rem;
    padding: 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    background: rgba(var(--accent-rgb), 0.06);
  }

  .account-mobile-hero-wallet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .account-mobile-hero-wallet-copy {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
  }

  .account-mobile-hero-wallet-copy span {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
    color: var(--text-muted);
  }

  .account-mobile-hero-wallet-copy strong {
    font-size: 1.35rem;
    line-height: 1.05;
  }

  .account-mobile-hero-wallet-link {
    color: var(--pink-hot);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
  }

  .account-hub-mobile-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    overflow: visible;
    padding-bottom: 0;
    touch-action: pan-y;
  }

  .account-hub-mobile-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 78px;
    padding: 0.65rem 0.35rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface-ghost);
    color: var(--text-soft);
    text-decoration: none;
    text-align: center;
    /* Critical: pan-x alone blocked phone page scroll when finger was on these buttons */
    touch-action: pan-y;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  }

  .account-hub-mobile-tile-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--surface-soft);
    color: inherit;
  }

  .account-hub-mobile-tile-label {
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .account-hub-mobile-tile.is-active {
    border-color: rgba(var(--accent-rgb), 0.35);
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--pink-hot);
  }

  .account-hub-mobile-tile.is-active .account-hub-mobile-tile-icon {
    background: var(--surface-soft);
    color: var(--nav-icon, var(--pink-hot));
  }

  .account-hub-mobile-tile.is-locked {
    opacity: 0.72;
  }

  .account-hub-mobile-link {
    display: none;
  }

  .account-hub-eyebrow,
  .account-hub-subtitle {
    display: none;
  }

  .account-hub-head {
    margin-bottom: 0.15rem;
  }

  .account-hub-head h1 {
    font-size: 1.2rem;
  }

  .account-panel-grid,
  .account-quick-grid {
    grid-template-columns: 1fr;
  }

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

  .account-quick-card {
    min-height: 92px;
    align-content: start;
  }

  .account-info-list div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.85rem 0;
  }

  .account-info-list dd {
    text-align: start;
    font-size: 0.92rem;
  }

  .account-wallet-hero,
  .account-api-hero,
  .account-hub-head,
  .account-alert {
    flex-direction: column;
    align-items: stretch;
  }

  .account-wallet-actions,
  .account-api-actions,
  .account-hub-actions {
    justify-content: stretch;
  }

  .account-wallet-actions .btn,
  .account-api-actions .btn {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .site-header .header-inner {
    gap: 0.28rem;
    width: min(1200px, calc(100% - 1.5rem));
  }

  .brand img {
    height: clamp(28px, 7.5vw, 38px);
    max-width: min(148px, 40vw);
  }

  .header-actions {
    max-width: 56%;
  }

  .header-actions .icon-btn,
  .header-actions .lang-btn,
  .header-left .icon-btn {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }
}

@media (max-width: 560px) {
  .account-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .brand img {
    max-width: min(120px, 36vw);
    height: 28px;
  }

  .header-wallet-chip {
    max-width: 5.2rem;
    padding: 0.15rem 0.35rem;
  }

  .header-actions .icon-btn,
  .header-actions .lang-btn,
  .header-left .icon-btn {
    width: 32px;
    height: 32px;
    min-height: 32px;
  }
}

/* ── Mobile header + account fixes (portrait phones, e.g. Galaxy S8 360px) ── */
@media (max-width: 767px) {
  .container {
    width: min(1200px, calc(100% - 1rem));
  }

  .site-header .header-inner {
    gap: 0.35rem;
    min-height: 56px;
    min-width: 0;
    width: min(1200px, calc(100% - 1.75rem));
    max-width: 100%;
    box-sizing: border-box;
    padding-inline: 0.15rem;
  }

  .header-left {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    overflow: hidden;
  }

  .header-left .icon-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .brand {
    min-width: 0;
    gap: 0.4rem;
    overflow: hidden;
    flex: 1 1 auto;
    flex-shrink: 1;
  }

  .brand picture {
    display: block;
    min-width: 0;
    max-width: 100%;
  }

  .brand img {
    display: block;
    width: auto;
    height: clamp(30px, 8vw, 42px);
    max-width: min(168px, 44vw);
    object-fit: contain;
    object-position: left center;
    flex-shrink: 1;
  }

  [dir="rtl"] .brand img {
    object-position: right center;
  }

  .site-header .brand-text {
    display: none !important;
  }

  .site-header .header-actions .nav-tools {
    display: none;
  }

  .brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    min-width: 0;
    overflow: visible;
    flex-shrink: 1;
  }

  .brand-text strong {
    display: block;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }

  .brand-text small {
    display: block;
    font-size: 0.56rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
    line-height: 1.15;
  }

  .header-actions {
    gap: 0.2rem;
    flex: 0 0 auto;
    flex-shrink: 0;
    min-width: 0;
    max-width: none;
  }

  .header-wallet-chip {
    min-height: 36px;
    max-width: 6.4rem;
    padding: 0.2rem 0.48rem;
    border-radius: 10px;
  }

  .header-wallet-chip-label {
    display: none;
  }

  .header-wallet-chip [data-wallet-balance] {
    font-size: 0.68rem;
  }

  .header-actions .icon-btn,
  .header-actions .lang-btn {
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
  }

  .header-actions .lang-btn span,
  .header-actions .lang-btn svg:last-child {
    display: none;
  }

  .header-actions .lang-btn {
    justify-content: center;
    gap: 0;
  }

  .profile-trigger-avatar,
  .profile-trigger-avatar--initials {
    width: 34px;
    height: 34px;
    font-size: 0.72rem;
  }

  .nav-tools {
    gap: 0.15rem;
  }

  .account-hub {
    padding: 1rem 0 5.5rem;
  }

  .account-hub-head {
    text-align: start;
    align-items: flex-start;
  }

  .account-hub-head h1 {
    font-size: 1.15rem;
  }

  .account-overview-metrics {
    gap: 0.5rem;
  }

  .account-metric-card {
    padding: 0.75rem 0.5rem;
    border-radius: 14px;
  }

  .account-metric-label {
    font-size: 0.66rem;
  }

  .account-metric-value {
    font-size: 1.2rem;
  }

  .account-hub-mobile-tile {
    min-height: 72px;
    padding: 0.55rem 0.25rem;
  }

  .account-hub-mobile-tile-label {
    font-size: 0.62rem;
  }

  .account-quick-grid {
    grid-template-columns: 1fr;
  }

  .account-quick-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    row-gap: 0.1rem;
    align-items: center;
    min-height: 0;
    padding: 0.9rem 1rem;
  }

  .account-quick-card > svg,
  .account-quick-card > .icon,
  .account-quick-card svg:first-child {
    grid-row: 1 / span 2;
  }

  .account-alert {
    flex-direction: column;
    align-items: stretch;
  }

  .account-wallet-hero,
  .account-api-hero {
    padding: 1rem;
  }

  .account-endpoint-row code {
    font-size: 0.72rem;
  }
}

@media (max-width: 767px) and (orientation: portrait) {
  /* Cart lives in floating dock + mobile sidebar — hide from top navbar on portrait phones */
  .site-header .nav-tool-cart {
    display: none !important;
  }
}

/* Account API portal */
.account-api-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.account-api-subnav-link {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.account-api-subnav-link.is-active,
.account-api-subnav-link:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--pink-hot);
}

.account-panel--highlight {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.06);
}

.account-alert--success {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.08);
}

.account-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.account-field span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.account-field input,
.account-field select {
  width: 100%;
  min-height: 42px;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
}

.account-field-error {
  margin: -0.45rem 0 0.65rem;
  color: var(--danger);
  font-size: 0.82rem;
}

.account-token-list {
  display: grid;
  gap: 0.65rem;
}

.account-token-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-ghost-2);
}

.account-token-main {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.account-token-main code {
  font-size: 0.78rem;
  color: var(--code);
}

.account-token-main span {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.account-playground-grid {
  display: grid;
  gap: 0.65rem;
}

.account-playground-response pre,
.account-playground-request pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.account-playground-response__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.account-playground-response__status {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ok);
}

.account-playground-response__preview-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--warn);
}

.account-playground-see-more {
  align-self: flex-start;
}

.account-info-list--icons dt {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.account-toggle-row-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.account-toggle-row-head svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--pink-hot);
}

.account-hub-nav-link svg {
  flex-shrink: 0;
}

.account-hub-nav-link.is-icon-pink,
.account-hub-mobile-tile.is-icon-pink,
.profile-menu-link.is-icon-pink { --nav-icon: #ff2d83; }
.account-hub-nav-link.is-icon-pink-hot,
.account-hub-mobile-tile.is-icon-pink-hot,
.profile-menu-link.is-icon-pink-hot { --nav-icon: #ff3b8d; }
.account-hub-nav-link.is-icon-blue,
.account-hub-mobile-tile.is-icon-blue,
.profile-menu-link.is-icon-blue { --nav-icon: #3b82f6; }
.account-hub-nav-link.is-icon-amber,
.account-hub-mobile-tile.is-icon-amber,
.profile-menu-link.is-icon-amber { --nav-icon: #f59e0b; }
.account-hub-nav-link.is-icon-cyan,
.account-hub-mobile-tile.is-icon-cyan,
.profile-menu-link.is-icon-cyan { --nav-icon: #22d3ee; }
.account-hub-nav-link.is-icon-green,
.account-hub-mobile-tile.is-icon-green,
.profile-menu-link.is-icon-green { --nav-icon: #22c55e; }
.account-hub-nav-link.is-icon-violet,
.account-hub-mobile-tile.is-icon-violet,
.profile-menu-link.is-icon-violet { --nav-icon: #8b5cf6; }
.account-hub-nav-link.is-icon-gold,
.account-hub-mobile-tile.is-icon-gold,
.profile-menu-link.is-icon-gold { --nav-icon: #fbbf24; }
.account-hub-nav-link.is-icon-blue-soft,
.account-hub-mobile-tile.is-icon-blue-soft,
.profile-menu-link.is-icon-blue-soft { --nav-icon: #60a5fa; }
.account-hub-nav-link.is-icon-purple,
.account-hub-mobile-tile.is-icon-purple,
.profile-menu-link.is-icon-purple { --nav-icon: #a855f7; }
.account-hub-nav-link.is-icon-cyan-deep,
.account-hub-mobile-tile.is-icon-cyan-deep,
.profile-menu-link.is-icon-cyan-deep { --nav-icon: #06b6d4; }
.account-hub-nav-link.is-icon-orange,
.account-hub-mobile-tile.is-icon-orange,
.profile-menu-link.is-icon-orange { --nav-icon: #f97316; }

.account-hub-nav-link[class*="is-icon-"] > svg,
.profile-menu-link[class*="is-icon-"] > svg {
  color: var(--nav-icon);
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--nav-icon) 46%, transparent));
}

.account-hub-mobile-tile[class*="is-icon-"] .account-hub-mobile-tile-icon {
  color: var(--nav-icon);
}

.account-hub-mobile-tile[class*="is-icon-"] .account-hub-mobile-tile-icon svg {
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--nav-icon) 46%, transparent));
}

.account-api-details {
  display: grid;
  gap: 0.65rem;
}

.account-api-detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-ghost-2);
}

.account-api-detail-row--token {
  align-items: center;
}

.account-api-detail-copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.account-api-detail-copy span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.account-api-detail-copy code,
.account-api-detail-copy pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--code);
  word-break: break-all;
  white-space: pre-wrap;
}

.account-api-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex-shrink: 0;
}

.account-token-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex-shrink: 0;
}

.account-btn-danger {
  border-color: rgba(248, 113, 113, 0.35);
  color: var(--danger);
}

.account-btn-danger:hover {
  background: rgba(248, 113, 113, 0.08);
}

.account-btn-danger-solid {
  background: #dc2626;
  border-color: #dc2626;
}

.account-btn-danger-solid:hover {
  background: #b91c1c;
}

#new-api-token.is-masked {
  filter: blur(6px);
  user-select: none;
}

.account-token-detail-meta {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.account-token-detail-meta code {
  font-size: 0.82rem;
  color: var(--code);
}

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

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

.account-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.account-modal-dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.account-modal-dialog--danger {
  border-color: rgba(248, 113, 113, 0.25);
}

.account-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.account-modal-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.account-modal-close {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.account-modal-warning {
  color: var(--danger);
        font-size: 0.85rem;
  margin: 0.65rem 0;
}

.account-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

body.account-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .account-api-detail-row,
  .account-token-row {
    flex-direction: column;
    align-items: stretch;
  }

  .account-token-actions,
  .account-api-detail-actions,
  .account-modal-actions {
    width: 100%;
  }

  .account-token-actions .btn,
  .account-api-detail-actions .btn,
  .account-modal-actions .btn {
    flex: 1;
  }
}

/* API Hub — redesigned keys page */
.api-hub {
  display: grid;
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
}

.api-hub-alert {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.08);
  color: var(--ok);
        font-size: 0.9rem;
    }

.api-hub-alert--success {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.08);
  color: var(--ok);
}

.api-hub-alert--warning {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
  color: var(--warn);
}

.api-hub-stat__hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.api-hub-stat__count.is-full {
  color: var(--warn);
}

.api-hub-limit-badge {
  display: inline-flex;
  margin-top: 0.45rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--pink-hot);
  font-size: 0.72rem;
  font-weight: 800;
}

.api-hub-banner {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-ghost-2);
}

.api-hub-banner--success {
  border-color: rgba(34, 197, 94, 0.3);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(var(--accent-rgb), 0.04));
}

.api-hub-banner--connector {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), rgba(34, 197, 94, 0.04));
}

.api-hub-banner--connector .api-hub-banner__eyebrow {
  color: var(--pink-hot);
}

.api-hub-banner--connector .api-copy-grid {
  margin-bottom: 0.75rem;
}

.api-hub-banner--connector .api-hub-banner__text + .api-hub-banner__text {
  margin-top: 0.5rem;
}

.api-hub-banner__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.api-hub-banner__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ok);
}

.api-hub-banner__text {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.api-hub-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  touch-action: pan-x;
  padding-bottom: 0.15rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.api-hub-tabs::-webkit-scrollbar {
  display: none;
}

.api-hub-tabs__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.api-hub-tabs__link.is-active,
.api-hub-tabs__link:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--pink-hot);
}

.api-hub-stats {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.api-hub-stat {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.api-hub-stat__label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.api-hub-stat__value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--code);
  word-break: break-all;
}

.api-hub-stat__count {
  font-size: 1.35rem;
  color: var(--text);
}

.api-hub-stat--action {
  display: flex;
  align-items: center;
}

.api-hub-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1rem;
}

.api-hub-card {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-ghost-2);
}

.api-hub-card--tokens {
  grid-column: 1 / -1;
}

.api-hub-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.api-hub-card__head svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--pink-hot);
}

.api-hub-card__head h2 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.api-hub-card__head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.api-hub-form {
  display: grid;
  gap: 0.75rem;
}

.api-hub-form__field {
  display: grid;
  gap: 0.35rem;
}

.api-hub-form__field span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.api-hub-form__field input:not([type="checkbox"]):not([type="radio"]),
.api-hub-form__field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
}

.api-webhook-events {
  display: grid;
  gap: 0.45rem;
}

.api-webhook-events > span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.api-webhook-events__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.api-webhook-event {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  cursor: pointer;
}

.api-webhook-event code {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text);
  background: transparent;
  padding: 0;
}

.api-webhook-event input,
.api-webhook-rotate input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1.5px solid rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.08);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.api-webhook-event input:checked,
.api-webhook-rotate input:checked {
  background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
  border-color: transparent;
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.28);
}

.api-webhook-event input:checked::after,
.api-webhook-rotate input:checked::after {
  content: "";
  width: 4px;
  height: 8px;
  margin-top: -1px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.api-webhook-event:has(input:checked) {
  border-color: rgba(var(--accent-rgb), 0.38);
  background: rgba(var(--accent-rgb), 0.08);
}

.api-webhook-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.api-webhook-rotate {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.api-webhook-actions .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .api-webhook-events__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-webhook-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .api-webhook-actions .btn {
    width: auto;
    min-width: 168px;
  }
}

html[data-theme="light"] .api-webhook-event {
  background: #fff;
}

html[data-theme="light"] .api-webhook-event:has(input:checked) {
  background: rgba(var(--accent-rgb), 0.06);
}

.api-hub-form__error {
  margin: 0;
  color: var(--danger);
  font-size: 0.82rem;
}

.api-hub-form__hint {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.api-endpoints-table {
  display: grid;
  gap: 0.45rem;
}

.api-endpoints-table__head {
  display: none;
}

.api-endpoint-badge {
  display: inline-flex;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: var(--ok);
  font-size: 0.72rem;
  font-weight: 800;
}

.api-endpoints-table__row {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.api-endpoints-table__row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--code);
}

.api-endpoints-table__row p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.4;
}

.api-docs-endpoint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0.75rem 0 0.85rem;
}

.api-docs-endpoint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--code);
  word-break: break-all;
}

.api-docs-h3 {
  margin: 1.25rem 0 0.45rem;
  font-size: 1rem;
}

.api-docs-label {
  margin: 0.85rem 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.api-docs-note,
.api-docs-callout p,
.api-docs-list {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.api-docs-callout {
  display: grid;
  gap: 0.45rem;
  margin: 0.35rem 0 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.api-docs-list {
  margin: 0.35rem 0 0.75rem;
  padding-left: 1.2rem;
}

.api-docs-table-wrap {
  overflow-x: auto;
  margin: 0.65rem 0 0.85rem;
}

.api-docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.api-docs-table th,
.api-docs-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.api-docs-table th {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.api-docs-table td:first-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: nowrap;
  color: var(--code);
}

.api-hub-empty {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
}

.api-token-cards {
  display: grid;
  gap: 1rem;
}

.api-token-card {
  border-radius: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  background: var(--bg-card);
  overflow: hidden;
}

.api-token-card__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(var(--accent-rgb), 0.04);
}

.api-token-card__identity {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.api-token-card__identity strong {
  font-size: 1rem;
}

.api-token-card__identity code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--code);
  word-break: break-all;
}

.api-token-card__meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.api-token-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.api-token-card__revoke {
  align-self: start;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: transparent;
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.api-token-card__revoke:hover {
  background: rgba(248, 113, 113, 0.1);
}

.api-token-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
}

.api-copy-grid {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
}

.api-copy-grid--highlight {
  padding: 0;
}

.api-copy-field {
  display: grid;
  gap: 0.35rem;
}

.api-copy-field--full {
  grid-column: 1 / -1;
}

.api-copy-field__label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.api-copy-btn.is-copied {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
  color: var(--ok);
}

.api-copy-source {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: pre-wrap;
  border: 0;
}

.api-copy-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 1400;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: var(--bg-elevated);
  color: var(--ok);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.api-copy-field__row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.api-copy-field__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex-shrink: 0;
}

.api-copy-field__value {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--code);
  word-break: break-all;
  white-space: pre-wrap;
}

.api-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--pink-hot);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.api-copy-btn:hover {
  background: rgba(var(--accent-rgb), 0.14);
}

.api-copy-btn--ghost {
  border-color: var(--border);
  background: var(--surface-ghost);
  color: var(--text-soft);
}

.api-copy-btn--compact {
  width: fit-content;
  margin-top: 0.25rem;
}

#new-api-token.is-masked,
.api-secret-field__value.is-hidden {
  filter: blur(5px);
  user-select: none;
}

.api-token-card--legacy {
  border-color: rgba(251, 191, 36, 0.25);
}

.api-token-card__title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.api-token-card__preview {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--code);
}

.api-token-badge {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.api-token-badge--active {
  background: rgba(34, 197, 94, 0.12);
  color: var(--ok);
}

.api-token-badge--legacy {
  background: rgba(251, 191, 36, 0.12);
  color: var(--warn);
}

.api-token-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.api-token-card__legacy-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.08);
  color: var(--warn);
}

.api-token-card__legacy-banner p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.api-legacy-copy-note {
  color: var(--warn);
  font-size: 0.78rem;
  line-height: 1.4;
}

.api-copy-field__row--token {
  flex-direction: column;
  align-items: stretch;
}

@media (min-width: 640px) {
  .api-copy-field__row--token {
    flex-direction: row;
    align-items: flex-start;
  }
}

.api-token-card__legacy {
  display: block;
  margin-top: 0.25rem;
  color: var(--warn);
  font-size: 0.76rem;
  line-height: 1.4;
}

.api-secret-field {
  grid-column: 1 / -1;
}

.api-revoke-modal .account-modal-dialog {
  width: min(100%, 420px);
}

.api-copy-grid--flush {
  padding: 0;
}

.api-hub-card > .api-copy-grid {
  padding: 0;
}

.api-token-card > .api-copy-grid {
  padding: 0.85rem;
}

.api-token-card .api-hub-fold {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
}

.api-token-card__secret-note {
  margin: 0;
  padding: 0 1rem 0.9rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.api-dash {
  gap: 0.85rem;
}

.api-dash-kpis {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.api-dash-kpi {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.api-dash-kpi span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.api-dash-kpi strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  word-break: break-word;
}

.api-dash-kpi strong.is-full {
  color: var(--warn);
}

.api-hub-fold {
  margin-top: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-ghost);
  overflow: hidden;
}

.api-hub-fold > summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.api-hub-fold > summary::-webkit-details-marker {
  display: none;
}

.api-hub-fold > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-inline-end: 2px solid var(--pink-hot);
  border-bottom: 2px solid var(--pink-hot);
  transform: rotate(45deg);
  margin-top: -3px;
}

.api-hub-fold[open] > summary::after {
  transform: rotate(225deg);
  margin-top: 3px;
}

.api-hub-fold > *:not(summary) {
  padding-inline: 0.9rem;
  padding-bottom: 0.9rem;
}

.api-hub-fold .api-hub-form,
.api-hub-fold .api-copy-field {
  padding-bottom: 0;
}

.api-security-list {
  display: grid;
  gap: 0.55rem;
}

.api-security-list .api-hub-fold {
  margin-top: 0;
}

.api-docs-fold > .api-docs-fold__summary {
  list-style: none;
  cursor: pointer;
  margin-bottom: 0;
}

.api-docs-fold > .api-docs-fold__summary::-webkit-details-marker {
  display: none;
}

.api-docs-fold[open] > .api-docs-fold__summary {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.api-docs-fold:not([open]) {
  padding-bottom: 0.85rem;
}

.api-dash-create .btn {
  min-height: 44px;
}

.api-token-card__actions .btn,
.api-token-card__revoke {
  min-height: 44px;
}

.api-copy-field__value,
.api-docs-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.account-code-block,
.account-code-block pre {
  max-width: 100%;
  overflow-x: auto;
}

@media (min-width: 640px) {
  .api-dash-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .api-dash-create {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .api-dash-create .api-hub-form__error {
    grid-column: 1 / -1;
  }

  .api-dash-create .btn {
    min-width: 168px;
  }

  .api-webhook-events__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .api-endpoints-table__head {
    display: grid;
    grid-template-columns: 5rem 10rem 1fr;
    gap: 0.75rem;
    padding: 0 0.75rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
  }

  .api-endpoints-table__row {
    grid-template-columns: 5rem 10rem 1fr;
    align-items: center;
    gap: 0.75rem;
  }

  .api-endpoints-table__row p {
    font-size: 0.82rem;
  }
}

@media (max-width: 899px) {
  .api-hub-layout {
    grid-template-columns: 1fr;
  }

  .api-hub-stats {
    grid-template-columns: 1fr;
  }

  .api-hub-stat--action .btn {
    width: 100%;
  }

  .api-hub-banner__head {
    flex-direction: column;
  }

  .api-hub-banner__head .btn,
  .api-dash-create .btn,
  .api-token-card__actions,
  .api-token-card__actions form,
  .api-token-card__actions .btn,
  .api-token-card__revoke {
    width: 100%;
  }

  .api-copy-field__row {
    flex-direction: column;
  }

  .api-copy-field__actions,
  .api-copy-btn {
    width: 100%;
    justify-content: center;
  }

  .api-token-card__head {
    grid-template-columns: 1fr;
  }

  .api-token-card__foot .btn {
    flex: 1;
  }

  .account-hub-actions .api-hub-head-btn {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .api-hub-tabs__link span,
  .api-copy-btn span {
    font-size: 0.72rem;
  }

  .api-hub-card,
  .api-hub-banner,
  .api-hub-stats {
    padding: 0.85rem;
  }
}

@media (max-width: 1023px) {
  body.has-mobile-home-tab .api-hub {
    padding-bottom: 0.5rem;
  }

  body.has-mobile-home-tab .api-copy-toast {
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Whish / payment pages */
.payment-section { padding-top: 1.5rem; padding-bottom: 3rem; }
.payment-container { max-width: 1120px; }
.payment-page-head { margin-bottom: 1rem; }
.payment-page-eyebrow { display: inline-block; margin-bottom: 0.35rem; color: var(--pink-hot); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.payment-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr); gap: 1rem; align-items: start; }
.payment-whish-card, .payment-sidebar-card, .payment-topup-form { border: 1px solid var(--border); border-radius: 18px; background: var(--surface-ghost-2); padding: 1.1rem; }
.payment-whish-head { display: flex; gap: 0.85rem; align-items: center; margin-bottom: 1rem; }
.payment-whish-logo { border-radius: 14px; background: #fff; padding: 0.35rem; }
.payment-whish-eyebrow { display: block; color: var(--text-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.payment-whish-head h2 { margin: 0.15rem 0 0; font-size: 1.15rem; }
.payment-whish-amount, .payment-whish-ref { padding: 0.85rem; border-radius: 14px; background: rgba(var(--accent-rgb), 0.08); border: 1px solid rgba(var(--accent-rgb), 0.18); margin-bottom: 0.85rem; }
.payment-whish-amount strong, .payment-ref-copy code { display: block; font-size: 1.35rem; font-weight: 800; margin-top: 0.25rem; }
.payment-ref-copy { display: flex; align-items: center; gap: 0.65rem; margin-top: 0.35rem; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.payment-ref-copy.is-copied span { color: var(--ok); }
.payment-whish-steps { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.45rem; color: var(--text-muted); font-size: 0.88rem; }
.payment-whish-meta { display: grid; gap: 0.25rem; margin-top: 0.85rem; font-size: 0.78rem; color: var(--text-muted); }
.payment-sidebar { display: grid; gap: 0.75rem; }
.payment-sidebar-items { list-style: none; margin: 0.75rem 0; padding: 0; display: grid; gap: 0.45rem; }
.payment-sidebar-items li { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.84rem; }
.payment-sidebar-total { display: flex; justify-content: space-between; padding-top: 0.75rem; border-top: 1px solid rgba(255, 255, 255, 0.08); font-weight: 800; }
.payment-wallet-form, .payment-account-foot { margin-top: 0.75rem; }
.btn-block { width: 100%; }
@media (max-width: 900px) { .payment-layout { grid-template-columns: minmax(0, 1fr); } }

/* Wallet — pro mobile accordion */
.wallet-pay {
  display: grid;
  gap: 1rem;
}

.account-wallet-hero--pro {
  margin-bottom: 0.25rem;
}

.account-wallet-hero--pro .account-wallet-balance p {
  display: none;
}

.wallet-pay-id {
  padding: 1.15rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), 0.18), transparent 52%),
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.1), var(--surface-ghost-2));
  box-shadow: 0 12px 40px rgba(var(--accent-rgb), 0.08);
}

.wallet-pay-id-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wallet-pay-id-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.wallet-pay-id-number {
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.wallet-pay-id-copy {
  flex-shrink: 0;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--pink-hot);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wallet-pay-id-value.is-copied .wallet-pay-id-copy,
.wallet-pay-detail-value.is-copied span:last-child {
  color: var(--ok);
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
}

.wallet-pay-id-hint {
  margin: 0.7rem 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.wallet-pay-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.wallet-pay-head p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.wallet-pay-list {
  display: grid;
  gap: 0.65rem;
}

.wallet-pay-item {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-ghost-2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="light"] .wallet-pay-item {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.wallet-pay-item.is-open,
.wallet-pay-item[open] {
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 14px 36px rgba(var(--accent-rgb), 0.1);
}

.wallet-pay-trigger {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  list-style: none;
}

.wallet-pay-trigger::-webkit-details-marker,
.wallet-pay-trigger::marker {
  display: none;
}

.wallet-pay-trigger-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 44px;
  border-radius: 12px;
  background: #121826;
  padding: 0.35rem 0.45rem;
}

html[data-theme="light"] .wallet-pay-trigger-logo {
  background: #121826;
}

.wallet-pay-trigger-logo img {
  display: block;
  max-width: 100%;
  max-height: 24px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.wallet-pay-trigger-meta strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.2;
}

.wallet-pay-trigger-meta small {
  display: block;
  margin-top: 0.12rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html[data-theme="light"] .wallet-pay-trigger-meta strong {
  color: var(--text);
}

.wallet-pay-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.wallet-pay-badge {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-hover);
  white-space: nowrap;
}

.wallet-pay-badge.is-auto {
  color: var(--ok);
  background: rgba(34, 197, 94, 0.14);
}

.wallet-pay-badge.is-fee {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.16);
}

.wallet-pay-chevron {
  display: flex;
  color: var(--text-muted);
  transition: transform 0.22s ease;
}

.wallet-pay-item.is-open .wallet-pay-chevron,
.wallet-pay-item[open] .wallet-pay-chevron {
  transform: rotate(180deg);
  color: var(--pink-hot);
}

.wallet-pay-panel {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .wallet-pay-panel {
  border-top-color: rgba(15, 23, 42, 0.08);
}

.wallet-pay-detail {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wallet-pay-detail:last-of-type {
  border-bottom: 0;
}

.wallet-pay-detail--highlight {
  margin-top: 0.15rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: rgba(var(--accent-rgb), 0.08);
}

.wallet-pay-detail--fee {
  margin-top: 0.15rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.1);
}

.wallet-pay-note {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.wallet-pay-detail-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wallet-pay-detail-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.wallet-pay-detail-value code,
.wallet-pay-detail-static {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.wallet-pay-detail-value span:last-child {
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wallet-pay-detail-hint {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.wallet-pay-steps {
  margin: 0.85rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.wallet-pay-auto-note {
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--ok);
  font-size: 0.78rem;
  line-height: 1.4;
}

.wallet-pay-manual {
  padding: 0.85rem 0 0.25rem;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.wallet-pay-manual p {
  margin: 0 0 0.5rem;
}

@media (min-width: 768px) {
  .wallet-pay-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .wallet-pay-item.is-open,
  .wallet-pay-item[open] {
    grid-column: 1 / -1;
  }
}

.auth-honeypot label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.checkout-container {
  max-width: 1120px;
}

.checkout-section {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.co-steps {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-ghost-2);
}

.co-step {
  display: flex;
  align-items: center;
  min-width: 0;
}

.co-step:not(:last-child) {
  flex: 1;
}

.co-step:not(:last-child)::after {
  content: "";
  flex: 1 1 auto;
  min-width: 1.25rem;
  height: 2px;
  margin-inline: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.co-step.is-done:not(:last-child)::after,
.co-step.is-current:not(:last-child)::after {
  background: rgba(var(--accent-rgb), 0.45);
}

.co-step-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

a.co-step-inner:hover .co-step-label {
  color: var(--text);
}

.co-step-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.co-step-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.co-step.is-current .co-step-index {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: var(--pink-hot);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.16);
}

.co-step.is-current .co-step-label {
  color: var(--text);
}

.co-step.is-done .co-step-index {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.16);
  color: #34d399;
}

.co-step.is-done .co-step-label {
  color: var(--text);
}

.checkout-layout,
.checkout-main {
  display: grid;
  gap: 1rem;
}

.checkout-items-card,
.checkout-promo-card,
.checkout-summary-card {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
}

.checkout-items-card {
  overflow: hidden;
  background: var(--surface-ghost-2);
}

.checkout-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

.checkout-items-head h2 {
  margin: 0;
  font-size: 1rem;
}

.checkout-items-head span {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.checkout-edit-cart {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pink-hot);
  text-decoration: none;
  white-space: nowrap;
}

.checkout-edit-cart:hover {
  text-decoration: underline;
}

.checkout-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.15rem;
}

.checkout-item + .checkout-item {
  border-top: 1px solid var(--border);
}

.checkout-item-media {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-soft);
  position: relative;
}

.checkout-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-item-copy {
  min-width: 0;
}

.checkout-item-copy strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.3;
}

.checkout-item-copy > p {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.checkout-item-details {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}

.checkout-item-details li {
  color: var(--text-muted);
  font-size: 0.74rem;
}

.checkout-item-total {
  text-align: end;
}

.checkout-item-total strong {
  display: block;
  font-size: 1rem;
  color: var(--pink-hot);
}

.checkout-item-total small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.checkout-promo-card,
.checkout-summary-card {
  padding: 1.15rem;
}

.checkout-summary-card {
  border-color: rgba(var(--accent-rgb), 0.18);
  background: rgba(var(--accent-rgb), 0.05);
}

.checkout-promo-head h2,
.checkout-summary-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.checkout-promo-head p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.checkout-promo-form {
  display: grid;
  gap: 0.75rem;
}

.checkout-promo-field {
  display: grid;
  gap: 0.35rem;
}

.checkout-promo-field span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.checkout-promo-field input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
}

.checkout-promo-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: rgba(var(--accent-rgb), 0.06);
}

.checkout-promo-applied-copy {
  display: grid;
  gap: 0.15rem;
}

.checkout-promo-applied-copy span,
.checkout-promo-applied-copy small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.checkout-summary-row,
.checkout-summary-total,
.payment-sidebar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
}

.checkout-summary-row--discount,
.payment-sidebar-row--discount {
  color: var(--ok);
}

.checkout-summary-total,
.payment-sidebar-total {
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 1.05rem;
  font-weight: 800;
}

.checkout-summary-total strong,
.payment-sidebar-total strong {
  color: var(--pink-hot);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.checkout-summary-total small {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.checkout-summary-card form {
  margin-top: 0.9rem;
}

.checkout-place-btn {
  min-height: 48px;
  font-weight: 800;
}

.checkout-back-btn {
  margin-top: 0.5rem;
}

.payment-sidebar .checkout-summary-secure {
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .co-step-label {
    font-size: 0.72rem;
  }

  .co-step:not(:last-child)::after {
    margin-inline: 0.45rem;
    min-width: 0.65rem;
  }

  .checkout-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .checkout-item-media {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .checkout-item-total {
    grid-column: 2;
    text-align: start;
  }
}

@media (min-width: 900px) {
  .checkout-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    align-items: start;
  }

  .checkout-summary-card {
    position: sticky;
    top: 6.5rem;
  }

  .checkout-promo-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

/* Mobile touch scroll — avoid card lift/reveal jank when swiping up/down */
@media (max-width: 767px), (hover: none), (pointer: coarse) {
  html {
    scroll-behavior: auto;
  }

  body {
    background-attachment: scroll;
  }

  .reveals-ready .reveal:not(.is-revealed),
  .reveals-ready .reveal.is-revealed {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  #offer,
  #how,
  #payments,
  #faq,
  .site-footer {
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }

  .product-card,
  .category-card,
  .type-card,
  .product-card-link,
  .product-grid,
  .product-grid--catalog,
  .type-card-grid,
  .type-card-grid--compact,
  .type-card-grid--filter {
    transition: border-color 0.18s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
    transform: none !important;
  }

  .product-card:hover,
  .category-card:hover,
  .type-card:hover,
  .product-card:active,
  .type-card:active,
  .catalog-filter:hover,
  .cart-btn:hover {
    transform: none !important;
  }

  .product-card {
    border-radius: 12px;
    backdrop-filter: none;
  }

  .product-card--shop {
    border-radius: 12px;
  }

  .product-price-badge {
    top: 0.25rem;
    inset-inline-end: 0.25rem;
    padding: 0.18rem 0.32rem;
    border-radius: 6px;
  }

  .product-price-badge strong {
    font-size: 0.62rem;
  }

  .product-price-badge s {
    font-size: 0.52rem;
  }

  .product-card-caption {
    padding: 0.38rem 0.32rem 0.42rem;
  }

  .product-card-caption h3 {
    font-size: 0.6rem;
    line-height: 1.2;
  }

  .product-grid,
  .product-grid--catalog {
    gap: 0.42rem;
  }

  .type-card-grid,
  .type-card-grid--compact,
  .type-card-grid--filter {
    gap: 0.42rem;
  }

  .catalog-toolbar--scroll {
    overscroll-behavior-x: contain;
  }
}

/* Mobile bottom tab bar (logged-in customers) — floating glass dock */
.mobile-home-tab-bar {
  position: fixed;
  inset-inline: max(0.85rem, var(--safe-left));
  bottom: max(0.65rem, calc(0.4rem + var(--safe-bottom)));
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 0.1rem;
  min-height: 4.35rem;
  max-width: calc(100% - 1.7rem);
  margin-inline: auto;
  padding: 0.4rem 0.35rem;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--pink-hot) 22%, var(--border));
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--purple) 10%, transparent),
      transparent 42%
    ),
    color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.38),
    0 0 0 1px color-mix(in srgb, #fff 4%, transparent),
    0 0 28px color-mix(in srgb, var(--pink-hot) 12%, transparent);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

html[data-theme="light"] .mobile-home-tab-bar {
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--purple) 6%, transparent),
      transparent 40%
    ),
    color-mix(in srgb, #fff 92%, transparent);
  border-color: color-mix(in srgb, var(--pink) 18%, var(--border));
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.12),
    0 0 0 1px color-mix(in srgb, #fff 70%, transparent),
    0 0 20px color-mix(in srgb, var(--pink) 8%, transparent);
}

/* While the mobile keyboard is open, free space above the focused field. */
html.is-keyboard-open .mobile-home-tab-bar,
body.is-keyboard-open .mobile-home-tab-bar,
html.is-keyboard-open .floating-dock,
body.is-keyboard-open .floating-dock,
html.is-keyboard-open .pwa-install,
body.is-keyboard-open .pwa-install,
html.is-keyboard-open .push-prompt,
body.is-keyboard-open .push-prompt {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(110%);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.mobile-home-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  min-width: 0;
  min-height: 3.45rem;
  padding: 0.35rem 0.2rem 0.4rem;
  border-radius: 16px;
  color: var(--text-muted);
  text-decoration: none;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.18s ease;
}

.mobile-home-tab:hover {
  color: var(--text-soft);
}

.mobile-home-tab:active {
  transform: scale(1.02);
}

.mobile-home-tab.is-active {
  color: #fff;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--pink-hot) 82%, var(--purple)),
    color-mix(in srgb, var(--pink-deep) 78%, var(--purple))
  );
  box-shadow:
    0 6px 16px color-mix(in srgb, var(--pink-hot) 28%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 22%, transparent);
}

.mobile-home-tab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.18rem;
  width: 0.85rem;
  height: 0.16rem;
  border-radius: 999px;
  background: color-mix(in srgb, #fff 78%, var(--pink-hot));
  transform: translateX(-50%);
  box-shadow: 0 0 8px color-mix(in srgb, var(--pink-hot) 40%, transparent);
}

.mobile-home-tab-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: inherit;
  transition: color 0.2s ease, transform 0.18s ease;
}

.mobile-home-tab-icon svg {
  width: 1.4rem;
  height: 1.4rem;
  transition: transform 0.18s ease, filter 0.2s ease;
}

.mobile-home-tab.is-active .mobile-home-tab-icon {
  color: #fff;
}

.mobile-home-tab.is-active .mobile-home-tab-icon svg {
  width: 1.4rem;
  height: 1.4rem;
  transform: none;
  filter: drop-shadow(0 0 4px color-mix(in srgb, #fff 28%, transparent));
}

.mobile-home-tab-label {
  max-width: 100%;
  font-size: 0.58rem;
  font-weight: 650;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

/* Longer label — keep single line without shrinking siblings */
.mobile-home-tab:nth-child(4) .mobile-home-tab-label {
  font-size: 0.5rem;
  letter-spacing: -0.01em;
}

.mobile-home-tab.is-active .mobile-home-tab-label {
  color: #fff;
  font-weight: 750;
}

.mobile-home-tab-balance {
  display: block;
  max-width: 4.6rem;
  margin-top: -0.08rem;
  color: var(--pink-hot);
  font-size: 0.52rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-home-tab--fab .mobile-home-tab-balance {
  max-width: 5.2rem;
}

.mobile-home-tab--fab:has(.mobile-home-tab-balance) .mobile-home-tab-label {
  display: none;
}

/* Wallet: keep markup, drop the oversized raised circle */
.mobile-home-tab--fab {
  position: relative;
  padding-bottom: 0.4rem;
}

.mobile-home-tab--fab .mobile-home-tab-label {
  margin-top: 0;
}

.mobile-home-tab-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin-top: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  transition: color 0.2s ease, transform 0.18s ease;
}

.mobile-home-tab-fab svg {
  width: 1.4rem;
  height: 1.4rem;
}

.mobile-home-tab--fab.is-active .mobile-home-tab-fab {
  transform: none;
  box-shadow: none;
  color: #fff;
  background: transparent;
}

.mobile-home-tab--fab.is-active .mobile-home-tab-label {
  color: #fff;
  font-weight: 750;
}

.mobile-home-tab-count {
  position: absolute;
  top: -0.35rem;
  inset-inline-end: -0.45rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
  box-shadow: 0 2px 8px color-mix(in srgb, var(--pink-hot) 35%, transparent);
  border: 1px solid color-mix(in srgb, #fff 18%, transparent);
}

@media (max-width: 1023px) {
  body.has-mobile-home-tab #main {
    padding-bottom: calc(
      var(--mobile-home-tab-space, 5.85rem) + var(--safe-bottom) + var(--app-pwa-clearance)
    );
  }

  body.has-mobile-home-tab .site-footer {
    padding-bottom: calc(
      var(--mobile-home-tab-space, 5.85rem) + var(--safe-bottom) + var(--app-pwa-clearance)
    );
  }

  body.has-mobile-home-tab .floating-dock {
    --dock-size: 48px;
    /* Sit clearly above the floating tab bar */
    --app-dock-gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .mobile-home-tab-bar {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-home-tab-bar,
  .mobile-home-tab,
  .mobile-home-tab-icon,
  .mobile-home-tab-icon svg,
  .mobile-home-tab-fab,
  .mobile-home-tab-label {
    transition: none !important;
  }

  .mobile-home-tab:active {
    transform: none;
  }
}

/* Dedicated customer orders page */
.orders-page {
  padding: 1.15rem 0 2.25rem;
  background: transparent;
}

body.is-orders-page,
body.is-orders-page #main {
  background: var(--bg);
}

.orders-page .container {
  width: min(1280px, calc(100% - 1.5rem));
}

@media (max-width: 767px) {
  .orders-page .container {
    width: min(1280px, calc(100% - 1rem));
  }
}

.orders-page-shell {
  display: grid;
  gap: 1rem;
}

.orders-crumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.orders-crumb a:hover {
  color: var(--text);
}

.orders-crumb span:last-child {
  color: var(--pink-hot);
}

.orders-page-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.orders-page-head h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.orders-page-subtitle {
  margin: 0.28rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.orders-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.orders-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0 0.95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-ghost);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.orders-export-btn:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--surface-hover);
}

.orders-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.15rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  touch-action: pan-x;
  border-bottom: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.orders-tabs::-webkit-scrollbar {
  display: none;
}

.orders-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding: 0.7rem 0.85rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}

.orders-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--pink-hot);
}

.orders-tab-count {
  min-width: 1.5rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.orders-tab-count.is-pink {
  background: var(--pink-hot);
  color: #fff;
}

.orders-tab-count.is-success {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}

.orders-tab-count.is-warning {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

.orders-tab-count.is-info {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
}

.orders-tab-count.is-muted {
  background: rgba(148, 163, 184, 0.16);
  color: #94a3b8;
}

.orders-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(160px, 0.8fr) minmax(220px, 1fr) auto;
  gap: 0.55rem;
  align-items: stretch;
}

.orders-toolbar-panel {
  display: contents;
}

.orders-filter-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  min-width: 46px;
  padding: 0 0.95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.orders-filter-toggle.is-open,
.orders-filter-toggle:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.1);
}

.orders-filter-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink-hot);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}

.orders-search,
.orders-select,
.orders-dates {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text-muted);
}

.orders-search input,
.orders-select select,
.orders-dates input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
}

.orders-search input {
  text-overflow: ellipsis;
}

.orders-search input:focus,
.orders-select select:focus,
.orders-dates input:focus {
  outline: none;
}

.orders-search input::placeholder {
  color: var(--text-muted);
}

.orders-select {
  position: relative;
  padding-inline-end: 2rem;
}

.orders-select select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.orders-select svg {
  position: absolute;
  inset-inline-end: 0.7rem;
  pointer-events: none;
}

.orders-dates {
  color: var(--text-muted);
  min-width: 0;
}

.orders-dates-fields {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 1;
}

.orders-dates input {
  color-scheme: dark;
  flex: 1 1 0;
  min-width: 0;
}

.orders-dates-sep {
  color: var(--text-muted);
  flex-shrink: 0;
}

.orders-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0 1rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--pink), #ff4d8d);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.orders-filter-btn:hover {
  filter: brightness(1.06);
}

.orders-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-ghost-2);
}

.orders-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.orders-table th {
  padding: 0.85rem 1rem;
  text-align: start;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.orders-th-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: inherit;
}

.orders-table td {
  padding: 1.05rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.orders-table tr:last-child td {
  border-bottom: 0;
}

.orders-id {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.orders-id-num {
  font-weight: 800;
  font-size: 0.95rem;
}

.orders-id-uuid {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.orders-id-uuid span {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 148px;
  white-space: nowrap;
}

.orders-copy {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
}

.orders-copy:hover,
.orders-copy.is-copied {
  color: var(--pink-hot);
  background: rgba(var(--accent-rgb), 0.1);
}

.orders-m-id-row .orders-copy .orders-copy-done {
  display: none;
}

.orders-m-id-row .orders-copy.is-copied {
  width: auto;
  height: auto;
  min-height: 28px;
  padding: 0 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.orders-m-id-row .orders-copy.is-copied .orders-copy-icon {
  display: none;
}

.orders-m-id-row .orders-copy.is-copied .orders-copy-done {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.orders-product {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.orders-product .account-order-item-media {
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #111827;
}

.orders-product-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.orders-product-copy strong,
.orders-product-copy span {
  overflow-wrap: anywhere;
}

.orders-product-copy strong {
  font-size: 0.92rem;
}

.orders-product-copy span,
.orders-more,
.orders-muted {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.orders-more {
  color: var(--pink-hot) !important;
}

.orders-detail {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.orders-amount {
  display: grid;
  gap: 0.18rem;
}

.orders-gold {
  width: fit-content;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  font-size: 0.68rem;
  font-weight: 800;
}

.orders-amount strong {
  font-size: 0.98rem;
}

.orders-amount s {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.orders-status {
  display: grid;
  gap: 0.22rem;
}

.orders-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  width: fit-content;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.orders-status small {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.orders-status.is-success .orders-status-pill {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
}

.orders-status.is-warning .orders-status-pill {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
}

.orders-status.is-info .orders-status-pill {
  background: rgba(59, 130, 246, 0.14);
  color: #60a5fa;
}

.orders-status.is-danger .orders-status-pill {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
}

.orders-date {
  display: grid;
  gap: 0.15rem;
}

.orders-date strong {
  font-size: 0.86rem;
}

.orders-date span {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.orders-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0 0.75rem;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--badge-text, var(--pink-hot));
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

[dir="rtl"] .orders-view-btn svg:last-child {
  transform: scaleX(-1);
}

.orders-mobile-list {
  display: none;
}

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

.orders-pager-meta,
.orders-per-page {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.orders-pager-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.orders-page-num,
.orders-page-btn {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.4rem;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.orders-page-num.is-active {
  background: var(--pink-hot);
  color: #fff;
}

.orders-page-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.orders-page-ellipsis {
  color: var(--text-muted);
  padding: 0 0.2rem;
}

.orders-per-page label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.orders-per-page select {
  min-height: 34px;
  padding: 0 0.45rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
}

.orders-page-empty {
  justify-items: center;
  align-content: center;
  text-align: center;
  min-height: min(46vh, 320px);
  padding: 1.5rem 1rem;
}

.orders-page-empty h2 {
  margin: 0;
  font-size: 1.05rem;
}

.orders-page-empty p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  max-width: 32ch;
}

.orders-page-empty .btn {
  margin-top: 0.25rem;
}

html[data-theme="light"] .orders-search,
html[data-theme="light"] .orders-select,
html[data-theme="light"] .orders-dates,
html[data-theme="light"] .orders-export-btn,
html[data-theme="light"] .orders-table-wrap {
  background: var(--bg-card);
  border-color: var(--border);
}

html[data-theme="light"] .orders-date-chip {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-muted);
}

html[data-theme="light"] .orders-date-chip.is-active {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--pink-deep);
}

html[data-theme="light"] .orders-dates input {
  color-scheme: light;
}

html[data-theme="light"] .orders-view-btn {
  color: var(--badge-text, var(--pink-hot));
  background: var(--badge-fee-bg, rgba(var(--accent-rgb), 0.12));
}

.orders-date-presets {
  display: flex;
  grid-column: 1 / -1;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.orders-date-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-ghost);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.orders-date-chip.is-active {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--text);
}

.orders-dates--labeled {
  align-items: stretch;
  min-height: auto;
  padding: 0.55rem 0.85rem;
}

.orders-dates--labeled .orders-dates-fields {
  flex-wrap: wrap;
  gap: 0.55rem;
  width: 100%;
}

.orders-date-field {
  display: grid;
  gap: 0.28rem;
  flex: 1 1 9rem;
  min-width: 0;
}

.orders-date-field > span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.orders-date-field input {
  min-height: 40px;
  padding: 0 0.55rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
  color-scheme: light dark;
}

@media (max-width: 1100px) {
  .orders-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .orders-search {
    min-width: 0;
  }

  .orders-filter-toggle {
    display: inline-flex;
  }

  .orders-date-presets {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: none;
    touch-action: pan-x;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .orders-date-presets::-webkit-scrollbar {
    display: none;
  }

  .orders-toolbar-panel {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .orders-toolbar-panel.is-open {
    display: grid;
  }

  .orders-select,
  .orders-dates,
  .orders-filter-btn {
    width: 100%;
  }
}

/* Order cards. Shared by mobile and desktop; visibility is set per breakpoint. */
.orders-m-card {
    display: grid;
    gap: 0.65rem;
    padding: 0.8rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-card);
    box-shadow: none;
  }

  .orders-m-main {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
  }

  .orders-m-media {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-soft);
  }

  .orders-m-media .account-order-item-media,
  .orders-m-media img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
  }

  .orders-m-media-fallback {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--text-muted);
  }

  .orders-m-body {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 0.28rem;
  }

  .orders-m-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
  }

  .orders-m-variant {
    margin: 0.1rem 0 0;
    color: var(--text-muted);
    font-size: 0.74rem;
    line-height: 1.3;
  }

  .orders-m-aside {
    display: grid;
    gap: 0.28rem;
    justify-items: end;
    flex-shrink: 0;
    text-align: end;
  }

  .orders-m-amount {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  .orders-m-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
  }

  .orders-m-status.is-success {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
  }

  /* processing */
  .orders-m-status.is-warning {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
  }

  /* pending */
  .orders-m-status.is-info {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
  }

  .orders-m-status.is-danger,
  .orders-m-status.is-muted {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
  }

  .orders-m-id-row {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
    color: var(--text-muted);
    font-size: 0.72rem;
  }

  .orders-m-id-row .orders-copy {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
  }

  .orders-m-id-label {
    flex-shrink: 0;
    font-weight: 600;
  }

  .orders-m-id {
    min-width: 0;
    overflow: visible;
    white-space: normal;
    word-break: break-all;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.7rem;
    color: #cbd5e1;
  }

  .orders-m-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.45rem 0.65rem;
    margin-top: 0.15rem;
    min-width: 0;
  }

  .orders-m-when {
    display: block;
    min-width: 0;
    flex: 1 1 8rem;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.35;
  }

  .orders-m-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    gap: 0.35rem;
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    border-radius: 12px;
    background: rgba(var(--accent-rgb), 0.08);
    color: #ff7ab2;
    font-size: 0.84rem;
    font-weight: 800;
  }

  .orders-m-view:hover {
    background: rgba(var(--accent-rgb), 0.14);
    color: #ff7ab2;
  }

[dir="rtl"] .orders-m-view svg:last-child {
  transform: scaleX(-1);
}

@media (max-width: 1023px) {
  .orders-table-wrap {
    display: none;
  }

  .orders-mobile-list {
    display: grid;
    gap: 0.65rem;
  }

  .orders-pager {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .orders-pager-meta,
  .orders-per-page {
    width: 100%;
    text-align: center;
  }

  .orders-per-page label {
    justify-content: center;
  }

  .orders-search input,
  .orders-dates input,
  .ui-select-trigger {
    font-size: 16px;
  }
}

/* Desktop shell starts at 1024px. Order cards were display:none above 1023px
   after the table markup was removed, so the list vanished on desktop. */
@media (min-width: 1024px) {
  .orders-mobile-list {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
  }

  html[data-theme="light"] .orders-m-id {
    color: #475569;
  }
}

/* Above 1100px the filter drawer is not used. display:contents was promoting
   the drawer backdrop into the toolbar grid — that was the gray block. */
@media (min-width: 1101px) {
  .orders-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    column-gap: 1.15rem;
    row-gap: 0.85rem;
    align-items: start;
  }

  .orders-tabs,
  .orders-toolbar-row,
  .orders-date-presets {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .orders-toolbar {
    display: contents;
  }

  .orders-toolbar-row .orders-search {
    width: 100%;
  }

  .orders-toolbar-panel,
  .orders-toolbar-panel.is-open {
    display: block;
    grid-column: 2;
    grid-row: 4;
    position: sticky;
    top: calc(var(--store-header-offset, 4.2rem) + 0.75rem);
    align-self: start;
    min-width: 0;
    width: auto;
    height: auto;
  }

  .orders-filter-backdrop {
    display: none;
  }

  .orders-filter-sheet {
    display: grid;
    gap: 0.75rem;
    padding: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-card);
    color: var(--text);
    box-shadow: none;
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    max-height: none;
    inset: auto;
    transform: none;
    overflow: visible;
  }

  .orders-filter-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .orders-filter-sheet-head h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
  }

  .orders-filter-close {
    display: none;
  }

  .orders-filter-sheet .orders-select {
    display: grid;
    gap: 0.35rem;
    align-items: stretch;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .orders-filter-sheet .orders-select > span {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .orders-filter-sheet .orders-select select {
    min-height: 44px;
    padding: 0 2rem 0 0.8rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--text);
  }

  .orders-filter-sheet .orders-dates,
  .orders-filter-actions {
    width: 100%;
  }

  .orders-filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }

  .orders-filter-sheet .orders-filter-btn {
    flex: 1 1 auto;
  }

  .orders-mobile-list,
  .orders-page-empty,
  .orders-error,
  .orders-skel,
  .orders-pager {
    grid-column: 1;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  body.is-orders-page .header-wallet-chip {
    display: none !important;
  }

  .orders-page {
    padding: 0.85rem 0 calc(5.75rem + env(safe-area-inset-bottom));
    background:
      radial-gradient(120% 70% at 50% -10%, rgba(88, 28, 135, 0.16), transparent 55%),
      var(--bg);
  }

  html[data-theme="light"] .orders-page {
    background:
      radial-gradient(120% 70% at 50% -10%, rgba(var(--accent-rgb), 0.08), transparent 55%),
      var(--bg);
  }

  html[data-theme="light"] .orders-m-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.10);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    color: #0b1220;
  }

  html[data-theme="light"] .orders-m-media {
    background: #f1f5f9;
  }

  html[data-theme="light"] .orders-m-id {
    color: #475569;
  }

  html[data-theme="light"] .orders-m-status.is-success {
    background: #dcfce7;
    color: #166534;
  }

  html[data-theme="light"] .orders-m-status.is-warning {
    background: #dbeafe;
    color: #1e40af;
  }

  html[data-theme="light"] .orders-m-status.is-info {
    background: #fef3c7;
    color: #92400e;
  }

  html[data-theme="light"] .orders-m-status.is-danger,
  html[data-theme="light"] .orders-m-status.is-muted {
    background: #fee2e2;
    color: #991b1b;
  }

  html[data-theme="light"] .orders-date-field input {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    color: #0b1220;
  }

  html[data-theme="light"] .orders-page-head h1,
  html[data-theme="light"] .orders-m-title,
  html[data-theme="light"] .orders-m-amount {
    color: #0b1220;
  }

  .orders-page .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 16px;
    margin-inline: auto;
    box-sizing: border-box;
  }

  .orders-page-shell,
  .orders-board,
  .orders-m-card,
  .od-page {
    max-width: 100%;
    min-width: 0;
  }

  .orders-page-shell {
    gap: 0.85rem;
    overflow-x: clip;
  }

  .orders-page-head-row {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .orders-page-head-row > div:first-child {
    min-width: 0;
    flex: 1;
  }

  .orders-page-head h1 {
    font-size: 1.55rem;
    line-height: 1.15;
  }

  .orders-page-subtitle {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .orders-page-actions {
    width: auto;
    flex-shrink: 0;
  }

  .orders-export-btn {
    min-height: 38px;
    padding: 0 0.7rem;
    justify-content: center;
    border-color: var(--border);
    background: var(--surface-ghost);
    font-size: 0.78rem;
  }

  .orders-export-btn span {
    display: none;
  }

  .orders-tabs {
    margin-inline: -16px;
    padding-inline: 16px;
    gap: 0.1rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: none;
    touch-action: pan-x;
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }

  .orders-tab {
    padding: 0.65rem 0.7rem 0.7rem;
    font-size: 0.84rem;
  }

  .orders-tab.is-active {
    color: var(--text);
    border-bottom-color: var(--pink-hot);
  }

  .orders-tab-count.is-pink {
    background: var(--pink-hot);
  }

  .orders-toolbar {
    gap: 0.5rem;
  }

  .orders-search,
  .orders-filter-toggle {
    min-height: 44px;
    border-color: var(--border);
    background: var(--surface-ghost);
  }

  .orders-filter-toggle {
    padding: 0 0.8rem;
    min-width: auto;
  }

  .orders-filter-toggle span {
    display: inline;
  }

  .orders-date-presets {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .orders-dates {
    border-color: var(--border);
    background: var(--surface-ghost);
  }

  .orders-dates > svg {
    display: none;
  }

  body.is-orders-page .pwa-install {
    inset-inline: 16px;
    padding: 0.55rem 0.65rem;
    gap: 0.55rem;
    border-radius: 14px;
  }

  body.is-orders-page .pwa-install img {
    width: 34px;
    height: 34px;
  }

  body.is-orders-page .pwa-install__copy span {
    display: none;
  }
}

.od-page {
  display: grid;
  gap: 1rem;
  max-width: 820px;
  margin-inline: auto;
  width: 100%;
}

.od-mobile-bar.mobile-only {
  display: flex;
  width: 100%;
}

.od-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.od-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.od-head-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.od-head-title h1 {
  margin: 0;
  font-size: clamp(1.35rem, 3.4vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.od-head-meta {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.od-top-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.od-top-actions .od-btn {
  min-height: 48px;
  width: 100%;
}

.od-price-toggle {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
  padding: 0.2rem;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
}

.od-price-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.od-price-toggle button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #ff4d8d, #d9165a);
  box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.24);
}

.od-price-toggle.is-compact {
  grid-column: auto;
  min-width: min(100%, 220px);
}

.od-price-toggle.is-compact button {
  min-height: 34px;
  font-size: 0.74rem;
  padding: 0 0.55rem;
}

.od-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.od-card-title-row .od-card-title {
  margin: 0;
}

body.is-od-prices-hidden [data-od-price] {
  display: none !important;
}

.od-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-height: 28px;
  padding: 0 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.od-status-pill.is-success {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(74, 222, 128, 0.35);
}

.od-status-pill.is-warning {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(251, 191, 36, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.od-status-pill.is-info {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(96, 165, 250, 0.3);
}

.od-status-pill.is-danger {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(248, 113, 113, 0.3);
}

.od-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  background: transparent;
}

.od-btn-ghost {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
}

.od-btn-ghost:hover {
  border-color: rgba(196, 181, 253, 0.7);
  background: rgba(139, 92, 246, 0.12);
}

.od-btn-gradient {
  color: #fff;
  background: linear-gradient(135deg, #ff4d8d, #d9165a);
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.28);
}

.od-btn-gradient:hover {
  filter: brightness(1.06);
}

.od-card {
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow);
}

.od-summary {
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.08), 0 18px 40px rgba(var(--accent-rgb), 0.08);
}

.od-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.od-summary-row + .od-summary-row {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.od-summary-product {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.od-summary-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.od-summary-copy strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.od-summary-price {
  display: grid;
  justify-items: end;
  text-align: end;
  gap: 0.18rem;
  flex-shrink: 0;
}

.od-summary-price strong {
  color: #ff4d8d;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.od-summary-price span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.od-summary-copy span {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.od-type-badge {
  display: inline-flex;
  width: max-content;
  margin-top: 0.15rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e9d5ff;
  background: rgba(139, 92, 246, 0.22);
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.od-summary-metric,
.od-summary-total {
  display: grid;
  gap: 0.28rem;
}

.od-summary-metric span,
.od-summary-total span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.od-summary-metric strong {
  font-size: 1.05rem;
}

.od-summary-total {
  text-align: end;
}

.od-summary-total span {
  color: #ff6b9d;
}

.od-summary-total strong {
  color: #ff4d8d;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.od-discount {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: flex-start;
}

.od-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: #fbbf24;
  font-size: 0.92rem;
}

.od-discount small {
  color: #4ade80;
  font-size: 0.82rem;
  font-weight: 700;
}

.od-muted {
  color: var(--text-muted);
}

.od-card-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-size: 1.02rem;
  font-weight: 800;
}

.od-card-title svg {
  color: #c4b5fd;
}

.od-info-list {
  display: grid;
  gap: 0.85rem;
}

.od-info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.od-info-row span {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  flex-shrink: 0;
}

.od-info-row strong {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  text-align: end;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
  min-width: 0;
}

.od-info-total {
  margin-top: 0.35rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.od-info-total span,
.od-info-total strong {
  color: #ff4d8d;
  font-weight: 800;
}

.od-info-total strong {
  font-size: 1.12rem;
}

.od-info-grid,
.od-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.od-result-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.od-info-grid > div,
.od-result-grid > div {
  min-width: 0;
}

.od-info-grid span,
.od-result-grid span {
  display: block;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 0.28rem;
}

.od-info-grid strong,
.od-result-grid strong {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.95rem;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.od-result-grid .is-otp {
  grid-column: 1 / -1;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
}

.od-result-grid .is-otp strong {
  font-size: 1.45rem;
  letter-spacing: 0.08em;
}

.od-copy {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 7px;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
}

.od-copy:hover,
.od-copy.is-copied {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.od-stepper {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.od-step {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.45rem;
  z-index: 1;
}

.od-step-rail {
  position: absolute;
  top: 19px;
  inset-inline-start: calc(50% + 22px);
  width: calc(100% - 44px);
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
  pointer-events: none;
}

.od-step:last-child .od-step-rail {
  display: none;
}

.od-step.is-done .od-step-rail {
  background: #22c55e;
}

.od-step-icon {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #86efac;
  background: #14532d;
  border: 2px solid #22c55e;
}

.od-step.is-wait .od-step-icon {
  color: #94a3b8;
  background: var(--surface-soft);
  border-color: rgba(255, 255, 255, 0.14);
}

.od-step.is-current .od-step-icon {
  color: #c4b5fd;
  background: rgba(76, 29, 149, 0.55);
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.16);
}

.od-step.is-current strong {
  color: #c4b5fd;
}

.od-step.is-fail .od-step-icon {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.8);
  border-color: #ef4444;
}

.od-step strong {
  font-size: 0.86rem;
}

.od-step small {
  color: var(--text-muted);
  font-size: 0.74rem;
}

.od-result-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(74, 222, 128, 0.28);
  background: rgba(20, 83, 45, 0.35);
}

.od-result-alert.is-fail {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(127, 29, 29, 0.28);
}

.od-result-alert.is-wait,
.od-result-alert.is-progress {
  border-color: rgba(129, 140, 248, 0.32);
  background: rgba(49, 46, 129, 0.28);
}

.od-result-alert.is-wait .od-result-icon,
.od-result-alert.is-progress .od-result-icon {
  color: #c4b5fd;
  background: rgba(99, 102, 241, 0.2);
}

.od-result-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.18);
}

.od-result-alert.is-fail .od-result-icon {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.18);
}

.od-result-alert.is-wait .od-result-icon,
.od-result-alert.is-progress .od-result-icon {
  color: #c4b5fd;
  background: rgba(99, 102, 241, 0.2);
}

.od-result-alert strong {
  display: block;
  color: #86efac;
  font-size: 1.02rem;
}

.od-result-alert.is-fail strong {
  color: #fecaca;
}

.od-result-alert.is-wait strong,
.od-result-alert.is-progress strong {
  color: #ddd6fe;
}

.od-result-eta {
  margin-top: 0.45rem !important;
  color: var(--text-muted) !important;
  font-size: 0.82rem !important;
}

.od-result-alert p {
  margin: 0.2rem 0 0;
  color: var(--text);
  font-size: 0.9rem;
}

.od-result-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.od-result-foot .od-btn,
.od-copy-all {
  flex-shrink: 0;
  white-space: nowrap;
}

.od-delivery-details {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
}

.od-delivery-details-title {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.od-delivery-details-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
}

.od-delivery-detail {
  min-width: 0;
  display: grid;
  gap: 0.28rem;
}

.od-delivery-detail dt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.od-delivery-detail dd {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.od-delivery-detail dd span,
.od-delivery-value {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #22c55e;
}

.od-result-grid .is-otp strong,
.od-result-grid > div:has(.od-copy) strong {
  color: #22c55e;
}

.od-delivery-files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.od-receipt-stage {
  background: #10121c;
  border-radius: 16px;
  padding: 1.15rem 0.9rem 1.35rem;
}

.od-receipt-paper {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: #111827;
  padding: 1.4rem 1.25rem 1.55rem;
}

.od-receipt-paper::before,
.od-receipt-paper::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 16px;
  pointer-events: none;
}

.od-receipt-paper::before {
  top: -8px;
  background: radial-gradient(circle, #10121c 8px, transparent 8.5px);
  background-size: 16px 16px;
  background-position: -8px -8px;
}

.od-receipt-paper::after {
  bottom: -8px;
  background: radial-gradient(circle, #10121c 8px, transparent 8.5px);
  background-size: 16px 16px;
  background-position: -8px 8px;
}

.od-stamp {
  position: absolute;
  inset-inline-end: 18%;
  top: 38%;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(var(--accent-rgb), 0.38);
  border-radius: 50%;
  color: rgba(var(--accent-rgb), 0.42);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-18deg);
  pointer-events: none;
}

.od-stamp::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(var(--accent-rgb), 0.32);
  border-radius: 50%;
}

.od-receipt-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1.15fr 0.9fr;
  gap: 1rem;
  align-items: start;
}

.od-receipt-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}

.od-receipt-logo img {
  width: auto;
  height: 36px;
  object-fit: contain;
}

.od-receipt-logo strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.od-receipt-logo em {
  font-style: normal;
  color: var(--pink);
}

.od-receipt-socials .od-receipt-social {
  gap: 0.4rem;
}

.od-receipt-social .social-link {
  width: 30px;
  height: 30px;
  color: var(--pink);
  background: rgba(var(--accent-rgb), 0.08);
}

.od-receipt-brand p {
  margin: 0.75rem 0 0;
  color: #6b7280;
  font-size: 0.82rem;
  max-width: 22ch;
}

.od-receipt-meta {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.od-receipt-meta div {
  display: grid;
  gap: 0.12rem;
}

.od-receipt-meta dt {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #9ca3af;
  font-size: 0.74rem;
  font-weight: 700;
}

.od-receipt-meta dd {
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
}

.od-receipt-totals {
  display: grid;
  gap: 0.45rem;
  justify-items: end;
  text-align: end;
}

.od-receipt-totals div {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  width: 100%;
  color: #6b7280;
  font-size: 0.84rem;
}

.od-receipt-totals strong {
  color: #111827;
}

.od-receipt-totals .is-discount strong {
  color: #16a34a;
}

.od-receipt-totals .is-total {
  margin-top: 0.2rem;
  padding-top: 0.45rem;
  border-top: 1px dashed #e5e7eb;
}

.od-receipt-totals .is-total span {
  color: var(--pink);
  font-weight: 700;
}

.od-receipt-totals .is-total strong {
  color: var(--pink);
  font-size: 1.2rem;
}

.od-receipt-totals .od-status-pill {
  margin-top: 0.35rem;
}

.od-flash {
  margin: 0;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  font-size: 0.86rem;
  font-weight: 700;
}

.od-flash.is-success {
  color: #bbf7d0;
  background: rgba(20, 83, 45, 0.4);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.od-flash.is-error {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(248, 113, 113, 0.32);
}

.od-share-hint {
  margin: -0.15rem 0 0.15rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.od-cancel-form {
  display: grid;
  gap: 0.4rem;
}

.od-cancel-form .od-action {
  width: 100%;
}

.od-cancel-remaining {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.od-cancel-note {
  margin: 0;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(167, 139, 250, 0.45);
  background: rgba(139, 92, 246, 0.12);
  color: #ddd6fe;
  font-size: 0.82rem;
  font-weight: 600;
}

.od-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.od-actions.is-progress {
  grid-template-columns: 1fr;
}

.od-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--surface-ghost);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.od-action.is-pink {
  border: 0;
  background: linear-gradient(135deg, #ff4d8d, #d9165a);
  color: #fff;
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.28);
}

.od-action.is-purple {
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(139, 92, 246, 0.16);
  color: #ddd6fe;
}

.od-action.is-neutral {
  border-color: rgba(255, 255, 255, 0.14);
  background: var(--surface-soft);
  color: #e2e8f0;
}

.od-action.is-danger {
  border-color: rgba(248, 113, 113, 0.38);
  background: transparent;
  color: #fca5a5;
}

.od-action:hover {
  background: var(--surface-hover);
}

.od-action.is-pink:hover {
  background: linear-gradient(135deg, #ff4d8d, #d9165a);
  filter: brightness(1.06);
}

.od-receipt-viewer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(7, 6, 14, 0.96);
  padding:
    max(0.75rem, env(safe-area-inset-top))
    max(0.85rem, env(safe-area-inset-right))
    max(5.5rem, env(safe-area-inset-bottom))
    max(0.85rem, env(safe-area-inset-left));
}

.od-receipt-viewer.is-open {
  display: grid;
}

.od-receipt-viewer-head,
.od-receipt-viewer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.35rem 0 0.75rem;
}

.od-receipt-viewer-body {
  overflow: auto;
  min-height: 0;
}

.od-receipt-viewer-foot {
  justify-content: stretch;
}

.od-receipt-viewer-foot .od-btn {
  width: 100%;
}

.od-help {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
}

.od-help-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(167, 139, 250, 0.28);
}

.od-help strong {
  display: block;
  font-size: 1.05rem;
}

.od-help p {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

@media (max-width: 1023px) {
  .od-head,
  .od-summary-row,
  .od-result-grid,
  .od-delivery-details-list,
  .od-receipt-grid,
  .od-actions,
  .od-help,
  .od-result-foot {
    display: grid;
    grid-template-columns: 1fr;
  }

  .od-top-actions {
    grid-template-columns: 1fr 1fr;
  }

  .od-summary-product,
  .od-receipt-brand,
  .od-help {
    grid-column: 1 / -1;
  }

  .od-action,
  .od-help .od-btn {
    width: 100%;
  }

  .od-summary-price,
  .od-receipt-totals {
    text-align: end;
    justify-items: end;
  }

  .od-stepper {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .od-step {
    grid-template-columns: 40px minmax(0, 1fr);
    justify-items: start;
    text-align: start;
    column-gap: 0.85rem;
    padding-bottom: 1.15rem;
  }

  .od-step:last-child {
    padding-bottom: 0;
  }

  .od-step-icon {
    grid-row: 1 / span 2;
  }

  .od-step-rail {
    inset-inline-start: 18px;
    top: 40px;
    width: 3px;
    height: calc(100% - 40px);
  }

  .od-receipt-paper {
    padding: 1.15rem 0.9rem 1.35rem;
  }

  .od-stamp {
    width: 84px;
    height: 84px;
    font-size: 0.62rem;
    inset-inline-end: 8%;
  }

  .ui-select-menu {
    max-height: min(240px, 50dvh);
  }
}

@media (max-width: 430px) {
  .od-top-actions .od-btn {
    font-size: 0.78rem;
    padding: 0 0.5rem;
    min-height: 46px;
  }

  .od-head-title h1 {
    font-size: 1.28rem;
  }

  .od-card {
    padding: 1rem 0.9rem 1.1rem;
  }

  .orders-export-btn {
    font-size: 0.78rem;
    padding: 0 0.6rem;
  }

  .home-auth-welcome-user {
    min-width: 0;
  }
}

@media print {
  header,
  footer,
  .floating-dock,
  .ai-agent-panel,
  .mobile-sidebar,
  .od-head-actions,
  .od-top-actions,
  .od-price-toggle,
  .od-actions,
  .od-help,
  .od-receipt-viewer,
  .orders-crumb {
    display: none !important;
  }

  body.od-printing .orders-page-head {
    display: none !important;
  }

  body.od-printing {
    background: #fff !important;
  }

  body.od-printing .od-page > *:not(.od-receipt-card) {
    display: none !important;
  }

  .od-receipt-card,
  .od-receipt-stage,
  .od-receipt-paper {
    background: #fff !important;
    box-shadow: none !important;
    border: 0 !important;
    color: #111 !important;
  }

  .od-receipt-paper::before,
  .od-receipt-paper::after {
    display: none;
  }
}

[dir="rtl"] .od-summary-total,
[dir="rtl"] .od-receipt-totals {
  text-align: start;
}

[dir="rtl"] .od-stamp {
  transform: rotate(18deg);
}

.ui-select {
  position: relative;
  width: 100%;
  min-width: 0;
  z-index: 1;
}

.ui-select.is-open {
  z-index: 60;
}

.ui-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ui-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  width: 100%;
  min-height: 42px;
  padding: 0 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg, var(--surface-soft));
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}

.ui-select-trigger:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.ui-select.is-open .ui-select-trigger,
.ui-select-trigger:focus-visible {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.ui-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-select-value.is-placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

.ui-select-chevron {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform .15s ease;
}

.ui-select.is-open .ui-select-chevron {
  transform: rotate(180deg);
}

.ui-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline: 0;
  min-width: 100%;
  max-height: min(280px, 55vh);
  overflow: auto;
  padding: 0.4rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--dropdown-bg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  display: grid;
  gap: 0.15rem;
  z-index: 70;
  overscroll-behavior: contain;
}

.ui-select-menu[hidden] {
  display: none;
}

.ui-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}

.ui-select-option:hover,
.ui-select-option:focus-visible {
  outline: none;
  background: var(--surface-hover);
}

.ui-select-option.is-active {
  background: rgba(var(--accent-rgb), 0.16);
  color: #fff;
}

.ui-select-option.is-active svg {
  color: var(--pink-hot);
  flex-shrink: 0;
}

.ui-select-option:disabled {
  opacity: 0.45;
  cursor: default;
}

.ui-select--compact {
  width: auto;
  min-width: 4.75rem;
}

.ui-select--compact .ui-select-menu {
  min-width: 5.5rem;
  inset-inline-end: auto;
}

.ui-select--compact .ui-select-trigger {
  min-height: 34px;
  padding: 0 0.45rem;
  border-radius: 8px;
}

.orders-select:has(.ui-select) > svg,
.orders-per-page:has(.ui-select) select {
  display: none;
}

.orders-select:has(.ui-select) {
  padding-inline-end: 0.85rem;
}

.orders-select .ui-select-trigger,
.auth-input-wrap .ui-select-trigger,
.orders-per-page .ui-select-trigger {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.orders-select .ui-select.is-open .ui-select-trigger,
.auth-input-wrap .ui-select.is-open .ui-select-trigger,
.orders-per-page .ui-select.is-open .ui-select-trigger,
.orders-select .ui-select-trigger:focus-visible,
.auth-input-wrap .ui-select-trigger:focus-visible,
.orders-per-page .ui-select-trigger:focus-visible {
  box-shadow: none;
  border: 0;
}

.orders-toolbar,
.orders-select,
.orders-per-page,
.auth-input-wrap,
.account-field {
  overflow: visible;
}

.account-field .ui-select-trigger {
  background: rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .ui-select-menu {
  border-color: rgba(15, 23, 42, 0.1);
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

html[data-theme="light"] .ui-select-option:hover,
html[data-theme="light"] .ui-select-option:focus-visible {
  background: rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .ui-select-option.is-active {
  background: rgba(var(--accent-rgb), 0.12);
  color: #111827;
}

.wallet-page {
  padding: 1.15rem 0 2.25rem;
}

.wallet-page .container {
  width: min(920px, calc(100% - 1.5rem));
}

.wallet-page-shell {
  display: grid;
  gap: 1rem;
}

.wallet-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  padding: 1.25rem 1.3rem;
  border-radius: 22px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--accent-rgb), 0.2), transparent 46%),
    radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.12), transparent 42%),
    var(--surface-ghost);
}

.wallet-hero-balance,
.wallet-hero-id {
  display: grid;
  gap: 0.35rem;
  align-content: center;
}

.wallet-hero-balance span,
.wallet-hero-id span {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wallet-hero-balance strong {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.wallet-hero-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: max-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: start;
}

.wallet-hero-copy strong {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.wallet-hero-copy svg {
  color: var(--text-muted);
}

.wallet-hero-copy:hover svg,
.wallet-hero-copy.is-copied svg {
  color: var(--pink-hot);
}

.wallet-tx-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

.wallet-page .wallet-pay-head {
  margin-top: 0.35rem;
}

@media (max-width: 767px) {
  .wallet-page {
    padding: 0.7rem 0 1.4rem;
  }

  .wallet-page .container {
    width: min(920px, calc(100% - 1rem));
  }

  .wallet-hero {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .wallet-page .orders-page-head-row {
    flex-direction: column;
  }

  .wallet-page .orders-export-btn,
  .wallet-page .od-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Purchase complete overlay */
body.is-purchase-complete {
  background: #05070b;
  background-image:
    radial-gradient(circle at 80% 12%, rgba(var(--accent-rgb), 0.18), transparent 32%),
    radial-gradient(circle at 18% 88%, rgba(139, 92, 246, 0.16), transparent 36%);
}

body.is-purchase-complete #main {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
}

.purchase-complete {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 4.5rem 1.1rem 1.4rem;
}

.purchase-complete-close {
  position: fixed;
  top: calc(0.85rem + env(safe-area-inset-top, 0px));
  inset-inline-end: calc(0.85rem + env(safe-area-inset-right, 0px));
  z-index: 20;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 16, 24, 0.82);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.purchase-complete-close:hover,
.purchase-complete-close:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.5);
  color: var(--pink-hot);
  outline: none;
}

.purchase-complete-card {
  width: min(440px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.7rem;
  padding: 1.6rem 1.2rem 1.25rem;
  border-radius: 26px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.1), rgba(12, 16, 24, 0.92) 38%),
    rgba(10, 13, 20, 0.92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  animation: purchase-complete-card 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.purchase-complete-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
}

.purchase-complete-ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid rgba(52, 211, 153, 0.45);
  animation: purchase-complete-ring 1.15s ease-out both;
}

.purchase-complete-ring.is-late {
  inset: 0;
  animation-delay: 0.14s;
}

.purchase-complete-mark.is-pending .purchase-complete-ring {
  border-color: rgba(245, 158, 11, 0.4);
}

.purchase-complete-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.12);
  box-shadow: 0 0 28px rgba(52, 211, 153, 0.22);
  animation: purchase-complete-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.purchase-complete-icon svg {
  animation: purchase-complete-check 0.45s 0.18s ease-out both;
}

.purchase-complete-icon.is-pending {
  color: var(--gold);
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.18);
}

.purchase-complete-eyebrow {
  margin: 0.35rem 0 0;
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.purchase-complete-card h1 {
  margin: 0;
  font-size: clamp(1.55rem, 5vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.purchase-complete-copy {
  margin: 0;
  max-width: 28ch;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.purchase-complete-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  animation: purchase-complete-up 0.45s 0.18s ease-out both;
}

.purchase-complete-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.purchase-complete-pill.is-paid {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.1);
}

.purchase-complete-pill.is-pending {
  color: var(--gold);
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.1);
}

.purchase-complete-result {
  width: 100%;
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  text-align: start;
  animation: purchase-complete-up 0.45s 0.26s ease-out both;
}

.purchase-complete-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.purchase-complete-result-head span {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.purchase-complete-result-head strong {
  font-size: 0.95rem;
}

.purchase-complete-result-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.purchase-complete-result-list > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.purchase-complete-result-list dt {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.purchase-complete-result-list dd {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: end;
  word-break: break-word;
}

.purchase-complete-result-list .is-replay dd {
  color: #34d399;
}

.purchase-complete-ref {
  display: grid;
  gap: 0.12rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

.purchase-complete-ref span {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.purchase-complete-ref strong {
  font-size: 1.05rem;
}

.purchase-complete-items {
  width: 100%;
  display: grid;
  gap: 0.55rem;
  text-align: start;
  animation: purchase-complete-up 0.45s 0.34s ease-out both;
}

.purchase-complete-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.purchase-complete-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.purchase-complete-item strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.3;
}

.purchase-complete-item small {
  color: var(--text-muted);
}

.purchase-complete-item span {
  flex-shrink: 0;
  color: var(--pink-hot);
  font-weight: 800;
}

.purchase-complete-total {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding-top: 0.35rem;
  font-weight: 800;
  animation: purchase-complete-up 0.45s 0.4s ease-out both;
}

.purchase-complete-total strong {
  color: var(--pink-hot);
}

.purchase-complete-actions {
  display: grid;
  gap: 0.55rem;
  width: 100%;
  margin-top: 0.35rem;
  animation: purchase-complete-up 0.45s 0.46s ease-out both;
}

@keyframes purchase-complete-card {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes purchase-complete-pop {
  from {
    opacity: 0;
    transform: scale(0.45);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes purchase-complete-check {
  from {
    opacity: 0;
    transform: scale(0.55);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes purchase-complete-ring {
  from {
    opacity: 0.65;
    transform: scale(0.72);
  }
  to {
    opacity: 0;
    transform: scale(1.2);
  }
}

@keyframes purchase-complete-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .purchase-complete-card,
  .purchase-complete-icon,
  .purchase-complete-icon svg,
  .purchase-complete-ring,
  .purchase-complete-status,
  .purchase-complete-result,
  .purchase-complete-items,
  .purchase-complete-total,
  .purchase-complete-actions {
    animation: none;
  }
}

.purchase-complete-actions .btn {
  width: 100%;
  min-height: 46px;
  justify-content: center;
}


/* GET4CARD marketplace home */
.home-market,
.home-auth {
  padding: 0.85rem 0 calc(6.4rem + env(safe-area-inset-bottom, 0px));
}

.home-market-shell,
.home-auth-shell {
  display: grid;
  gap: 1.15rem;
  min-width: 0;
}

.market-welcome {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.market-welcome--auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.market-welcome-copy {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.market-welcome-eyebrow {
  margin: 0;
  color: var(--pink-hot);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.market-welcome-name {
  margin: 0;
  font-size: clamp(1.45rem, 6.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-welcome-summary {
  margin: 0.08rem 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.35;
}

.market-welcome-email {
  margin: 0.08rem 0 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.market-welcome-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.28rem 0 0;
}

.market-tier-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.4rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--tier-color, var(--pink)) 45%, transparent);
  background: color-mix(in srgb, var(--tier-color, var(--pink)) 16%, transparent);
  color: var(--tier-color, var(--pink-hot));
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-balance-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: rgba(8, 11, 18, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.market-balance-pane {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.95rem 1.05rem 0.85rem;
}

.market-balance-pane--action {
  align-items: flex-end;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
  padding-inline: 1.15rem 1.05rem;
}

.market-balance-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.market-balance-label {
  color: rgba(215, 220, 230, 0.58);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.market-balance-amount {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.38rem;
  margin: 0;
  min-width: 0;
  white-space: nowrap;
}

.market-balance-figure {
  color: #fff;
  font-size: clamp(1.45rem, 6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}

.market-balance-figure [data-wallet-balance] {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

.market-balance-ccy {
  color: rgba(215, 220, 230, 0.52);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.market-add-balance {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 0;
  padding: 0.52rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.28);
}

.market-add-balance:hover,
.market-add-balance:focus-visible {
  color: #fff;
  background: var(--pink-hot);
  outline: none;
}

.market-add-balance--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

.market-balance-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.market-balance-chip-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--pink-hot);
  flex-shrink: 0;
}

.market-balance-chip svg {
  display: block;
}

html[data-theme="light"] .market-balance-card {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .market-balance-pane--action {
  border-inline-start-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .market-balance-label,
html[data-theme="light"] .market-balance-chip,
html[data-theme="light"] .market-balance-ccy {
  color: rgba(15, 23, 42, 0.5);
}

html[data-theme="light"] .market-balance-figure {
  color: #0f172a;
}

html[data-theme="light"] .market-balance-chip-icon {
  background: rgba(var(--accent-rgb), 0.1);
}

.market-welcome--guest {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0.62rem 0.58rem 0.85rem;
  border-radius: 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background:
    linear-gradient(160deg, rgba(90, 18, 48, 0.55), rgba(18, 8, 22, 0.92) 48%, rgba(5, 7, 11, 0.95)),
    rgba(10, 8, 14, 0.92);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.08),
    0 0 28px rgba(var(--accent-rgb), 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.market-welcome--guest .market-welcome-eyebrow {
  color: rgba(215, 220, 230, 0.62);
}

.market-welcome--guest .market-welcome-name {
  font-size: clamp(1.22rem, 4.2vw, 1.5rem);
  color: #fff;
}

.market-welcome--guest .market-welcome-summary {
  color: rgba(215, 220, 230, 0.72);
  font-size: 0.82rem;
}

.market-guest-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.market-hero {
  min-width: 0;
}

.market-search {
  position: relative;
  z-index: 40;
  min-width: 0;
  overflow: visible;
}

.market-search:focus-within,
.market-search:has(.product-search-dropdown:not([hidden])) {
  z-index: 70;
}

.home-market .product-search--home .product-search-field {
  min-height: 52px;
  border-radius: 18px;
  border-color: rgba(var(--accent-rgb), 0.2);
  background: rgba(12, 16, 24, 0.78);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.home-market .category-chip {
  width: 5.5rem;
  min-width: 5.5rem;
  max-width: 6.6rem;
}

.home-market .category-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-category-products .home-auth-block-head {
  margin-bottom: 0.55rem;
}

.market-category-products .home-auth-product-grid {
  gap: 0.45rem;
}

.product-card--market,
.product-card--shop {
  border-color: rgba(var(--accent-rgb), 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), var(--surface-ghost-2));
}

.product-card-fav {
  position: absolute;
  top: 0.4rem;
  inset-inline-end: 0.4rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.28rem;
}

.product-card-fav .product-wishlist-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(5, 7, 11, 0.62);
  backdrop-filter: blur(10px);
  color: #fff;
}

.product-card-fav .product-wishlist-btn.is-active,
.product-wishlist-btn.is-active {
  color: #e11d48;
  border-color: rgba(225, 29, 72, 0.55);
  background: rgba(225, 29, 72, 0.2);
  box-shadow: 0 0 14px rgba(225, 29, 72, 0.35);
}

.product-card-fav .product-wishlist-btn.is-active svg,
.product-card-fav .product-wishlist-btn.is-active svg path {
  fill: currentColor;
  stroke: currentColor;
}

.product-card-package {
  margin: 0.12rem 0 0;
  color: var(--text-muted);
  font-size: 0.68rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card--market .product-card-caption {
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.55rem 0.55rem 0.65rem;
}

.product-card--market .product-card-caption h3 {
  font-size: 0.78rem;
}

.product-card--market .product-card-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: 0.12rem;
}

.product-card--market .product-card-price strong {
  color: var(--pink-hot);
  font-size: 0.82rem;
  font-weight: 800;
}

.product-card--market .product-card-price s {
  color: var(--text-muted);
  font-size: 0.68rem;
}

.product-card--market .product-card-price.is-custom strong {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-card--market .product-card-price.is-rate strong {
  font-size: 0.84rem;
  letter-spacing: -0.03em;
  text-transform: none;
  white-space: nowrap;
}

.product-card--market .product-card-qty {
  font-size: 0.48rem;
}

.product-card--shop .product-card-buy {
  display: none;
}

.market-offers,
.market-trust {
  min-width: 0;
}

.market-offers-grid {
  display: grid;
  gap: 0.85rem;
}

.market-offer-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 156px;
  border-radius: 22px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  text-decoration: none;
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

a.market-offer-card:hover,
a.market-offer-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.38);
}

.market-offer-card.is-media-only {
  aspect-ratio: 21 / 8;
  min-height: 132px;
}

.market-offer-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

a.market-offer-card:hover .market-offer-media,
a.market-offer-card:focus-visible .market-offer-media {
  transform: scale(1.045);
}

.market-offer-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(105deg, rgba(5, 7, 11, 0.9) 0%, rgba(5, 7, 11, 0.46) 48%, rgba(139, 92, 246, 0.22) 100%),
    linear-gradient(180deg, rgba(5, 7, 11, 0.18) 0%, transparent 34%, rgba(5, 7, 11, 0.62) 100%);
}

.market-offer-card.has-overlay::after {
  opacity: calc(var(--offer-overlay, 62) / 100);
}

.market-offer-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.22rem;
  max-width: 22rem;
  padding: 1.15rem 1.2rem 1.25rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.market-offer-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.market-offer-copy h3 {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  font-size: clamp(1.25rem, 4vw, 1.85rem);
  line-height: 1.1;
}

.market-offer-accent {
  color: var(--pink-hot);
  text-shadow: 0 0 18px rgba(var(--accent-rgb), 0.45);
}

.market-offer-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.market-offer-cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.5rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(var(--accent-rgb), 0.94);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: none;
}

.market-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.market-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.85rem 0.85rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
}

.market-trust-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 11px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  color: var(--pink-hot);
  background: rgba(var(--accent-rgb), 0.08);
}

.market-trust-item strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.2;
}

.market-trust-item small {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.market-empty {
  padding: 1.4rem 1rem;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  text-align: center;
}

.market-faq .faq-item {
  border-color: rgba(var(--accent-rgb), 0.12);
  background: var(--surface-ghost);
}

@media (max-width: 767px) {
  .market-welcome--guest {
    grid-template-columns: 1fr;
  }

  .market-welcome--auth {
    gap: 0.75rem;
    padding: 0;
  }

  .market-welcome--auth .market-welcome-name {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }

  .market-welcome--auth .market-welcome-summary {
    font-size: 0.84rem;
  }

  .market-balance-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .market-balance-pane {
    gap: 0.7rem;
    padding: 0.82rem 0.8rem 0.72rem;
  }

  .market-balance-pane--action {
    padding-inline: 0.9rem 0.8rem;
  }

  .market-balance-figure {
    font-size: clamp(1.28rem, 6.2vw, 1.55rem);
  }

  .market-add-balance {
    min-height: 38px;
    padding: 0.44rem 0.9rem;
    font-size: 0.76rem;
  }

  .market-guest-ctas {
    justify-content: stretch;
    min-width: 0;
  }

  .market-guest-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .home-banner-track {
    aspect-ratio: 16 / 7;
    min-height: 100px;
    max-height: 140px;
  }

  .home-banner-copy {
    padding: 0.75rem 0.85rem 0.9rem;
  }

  .home-banner-title {
    font-size: 1.05rem;
  }

  .market-offer-card {
    min-height: 140px;
  }

  .market-offer-copy {
    max-width: 18rem;
    padding: 0.95rem 0.95rem 1.05rem;
  }

  .market-trust-item {
    padding: 0.7rem 0.7rem;
  }
}

@media (max-width: 360px) {
  .market-welcome--auth {
    gap: 0.7rem;
    padding: 0;
  }

  .market-balance-pane {
    gap: 0.55rem;
    padding: 0.72rem 0.65rem 0.62rem;
  }

  .market-balance-pane--action {
    padding-inline: 0.7rem 0.62rem;
  }

  .market-balance-figure {
    font-size: 1.18rem;
  }

  .market-add-balance {
    min-height: 34px;
    padding: 0.36rem 0.62rem;
    font-size: 0.68rem;
  }

  .market-balance-chip {
    font-size: 0.64rem;
  }

  .market-balance-chip-icon {
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 768px) {
  .market-trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .market-offers-grid.is-multi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-offers-grid:not(.is-multi) .market-offer-card {
    min-height: 228px;
  }

  .market-offers-grid.is-multi .market-offer-card {
    min-height: 196px;
  }
}

html[dir="rtl"] .market-offer-card::after {
  background:
    linear-gradient(255deg, rgba(5, 7, 11, 0.9) 0%, rgba(5, 7, 11, 0.46) 48%, rgba(139, 92, 246, 0.22) 100%),
    linear-gradient(180deg, rgba(5, 7, 11, 0.18) 0%, transparent 34%, rgba(5, 7, 11, 0.62) 100%);
}

html[dir="rtl"] .market-offer-copy {
  margin-inline-start: auto;
}

html[data-theme="light"] .market-offer-card {
  border-color: rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

@media (max-width: 1023px) {
  .header-prefs .theme-icon-btn,
  .header-prefs .lang-btn {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .header-prefs .theme-menu {
    min-width: min(13.5rem, calc(100vw - 1rem));
  }

  .header-prefs .theme-selector--menu .theme-selector-btn {
    min-height: 44px;
    width: 100%;
  }
}

.header-settings-btn.is-active {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--pink-hot);
}

.settings-hub {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem 0 2.4rem;
  max-width: 720px;
}

.settings-hub-head h1 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 800;
}

.settings-hub-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.settings-hub-card {
  padding: 0.7rem 0.7rem 0.55rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.settings-hub-heading {
  margin: 0 0.35rem 0.45rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-hub-nav {
  display: grid;
  gap: 0.12rem;
}

.settings-hub-link,
.settings-hub-block {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 48px;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

.settings-hub-block {
  flex-wrap: wrap;
  background: var(--surface-ghost-2);
}

.settings-hub-link.is-active {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.48) 0%, rgba(var(--accent-rgb), 0.12) 58%, transparent 100%);
  color: #fff;
}

[dir="rtl"] .settings-hub-link.is-active {
  background: linear-gradient(270deg, rgba(var(--accent-rgb), 0.48) 0%, rgba(var(--accent-rgb), 0.12) 58%, transparent 100%);
}

.settings-hub-link.is-locked {
  opacity: 0.72;
}

.settings-hub-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text-soft);
}

.settings-hub-icon.is-teal { color: #2dd4bf; }
.settings-hub-icon.is-gold { color: #fbbf24; }
.settings-hub-icon.is-blue { color: #60a5fa; }
.settings-hub-icon.is-pink { color: #ff4d8d; }

.settings-hub-link.is-active .settings-hub-icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.settings-hub-label {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.settings-hub-meta {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
}

.settings-hub-meta.is-accent {
  color: var(--pink-hot);
}

.settings-hub-chevron {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.settings-hub-block-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
}

.settings-hub-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  width: 100%;
  padding: 0 0 0.15rem 2.7rem;
}

.settings-hub-langs a {
  min-width: 2.6rem;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.settings-hub-langs a:hover,
.settings-hub-langs a.is-active {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--pink-hot);
}

.settings-hub-block .theme-selector {
  width: 100%;
  padding: 0 0 0.2rem 2.7rem;
}

.settings-hub-logout {
  margin-top: 0.2rem;
}

.settings-hub-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 77, 109, 0.28);
  border-radius: 14px;
  background: rgba(255, 77, 109, 0.08);
  color: #ff8da1;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.profile-avatar-card {
  margin-bottom: 0.85rem;
}

.profile-avatar-form {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-avatar-picker {
  position: relative;
  display: block;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  cursor: pointer;
}

.profile-avatar-preview,
.profile-avatar-preview--initials {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  object-fit: cover;
  display: grid;
  place-items: center;
  border: 2px solid rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08);
}

.profile-avatar-preview--initials {
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.28), rgba(var(--accent-rgb), 0.08));
  font-weight: 800;
  font-size: 1.7rem;
}

.profile-avatar-camera {
  position: absolute;
  inset-inline-end: -2px;
  bottom: -2px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--pink);
  color: #fff;
  border: 2px solid var(--bg-card);
}

.profile-avatar-copy {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.profile-avatar-copy strong {
  font-size: 0.98rem;
}

.profile-avatar-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.profile-avatar-copy .btn {
  justify-self: start;
  margin-top: 0.35rem;
  cursor: pointer;
}

.profile-avatar-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.account-panel .profile-avatar-form {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.profile-avatar-card .profile-avatar-form {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.pwa-install {
  position: fixed;
  inset-inline: max(0.85rem, calc(0.5rem + var(--safe-left))) max(0.85rem, calc(0.5rem + var(--safe-right)));
  bottom: calc(0.85rem + var(--safe-bottom) + var(--app-tab-clearance));
  z-index: 65;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: 1.1rem;
  background: #111827;
  color: #f8fafc;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
}

.pwa-install[hidden] {
  display: none !important;
}

.pwa-install img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: #05070b;
}

.pwa-install__copy {
  min-width: 0;
  flex: 1;
}

.pwa-install__copy strong,
.pwa-install__copy span {
  display: block;
}

.pwa-install__copy strong {
  font-size: 0.82rem;
  font-weight: 800;
}

.pwa-install__copy span {
  font-size: 0.72rem;
  color: #94a3b8;
}

.pwa-install__go {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: #be185d;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.pwa-install__close {
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

body.has-mobile-home-tab .pwa-install {
  bottom: calc(0.85rem + var(--safe-bottom) + var(--app-tab-clearance));
}

/* iOS PWA install instructions modal */
.pwa-ios-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding:
    max(1rem, var(--safe-top))
    max(1rem, var(--safe-right))
    max(1rem, var(--safe-bottom))
    max(1rem, var(--safe-left));
  box-sizing: border-box;
}

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

.pwa-ios-modal.is-open {
  display: grid;
}

.pwa-ios-modal.is-safari {
  place-items: start center;
  padding-bottom: calc(5.75rem + var(--safe-bottom));
}

.pwa-ios-modal.is-safari .pwa-ios-modal__backdrop {
  bottom: calc(4.85rem + var(--safe-bottom));
}

.pwa-ios-modal.is-safari .pwa-ios-modal__dialog {
  margin-top: max(0.75rem, var(--safe-top));
  max-height: min(62dvh, 28rem);
}

.pwa-share-nudge {
  position: fixed;
  z-index: 121;
  left: 50%;
  bottom: calc(0.35rem + var(--safe-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.35);
  animation: pwa-share-bounce 1.15s ease-in-out infinite;
  pointer-events: none;
}

.pwa-share-nudge[hidden] {
  display: none !important;
}

.pwa-share-nudge span {
  display: grid;
  line-height: 1.15;
}

.pwa-share-nudge strong,
.pwa-share-nudge small {
  display: block;
}

.pwa-share-nudge strong {
  font-size: 0.78rem;
  font-weight: 800;
}

.pwa-share-nudge small {
  font-size: 0.68rem;
  opacity: 0.92;
}

.pwa-share-nudge__icon {
  display: grid;
  place-items: center;
}

@keyframes pwa-share-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.pwa-ios-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pwa-ios-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 22.5rem);
  max-height: min(90dvh, 36rem);
  overflow: auto;
  padding: 1.15rem 1.1rem 1.1rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(var(--accent-rgb), 0.16), transparent 55%),
    #0b0f16;
  color: var(--text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  -webkit-overflow-scrolling: touch;
}

.pwa-ios-modal__x {
  position: absolute;
  top: 0.65rem;
  inset-inline-end: 0.65rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-hover);
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.pwa-ios-modal__x:hover {
  color: #fff;
  background: rgba(var(--accent-rgb), 0.14);
}

.pwa-ios-modal__hero {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  text-align: center;
  padding: 0.35rem 1.5rem 0.85rem;
}

.pwa-ios-modal__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: contain;
  background: #05070b;
  border: 1px solid var(--border);
}

.pwa-ios-modal__hero h2 {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pwa-ios-modal__hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.4;
  max-width: 28ch;
}

.pwa-ios-modal__steps {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.pwa-ios-modal__steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--surface-ghost);
}

.pwa-ios-modal__step-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #ff7ab2;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
}

.pwa-ios-modal__step-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  padding-top: 0.1rem;
}

.pwa-ios-modal__step-copy strong {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
}

.pwa-ios-modal__step-copy span {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.pwa-ios-modal__gotit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.28);
}

.pwa-ios-modal__gotit:hover {
  filter: brightness(1.05);
}

body.pwa-ios-modal-open {
  overflow: hidden;
}

html[data-theme="light"] .pwa-ios-modal__dialog {
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(var(--accent-rgb), 0.1), transparent 55%),
    #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
}

html[data-theme="light"] .pwa-ios-modal__icon {
  background: #f4f6fb;
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .pwa-ios-modal__x {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-muted);
}

html[data-theme="light"] .pwa-ios-modal__steps li {
  background: #f7f8fb;
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .pwa-ios-modal__step-icon {
  background: rgba(var(--accent-rgb), 0.1);
}

/* ==========================================================================
   Light mode — solid surfaces, readable text, no ghost cards
   ========================================================================== */
html[data-theme="light"],
html[data-theme="light"] body {
  background-color: var(--bg);
  color: var(--text);
}

html[data-theme="light"] .mobile-sidebar {
  background: #ffffff;
  color: var(--text);
}

html[data-theme="light"] .sidebar-head,
html[data-theme="light"] .sidebar-scroll,
html[data-theme="light"] .sidebar-user-panel,
html[data-theme="light"] .sidebar-guest-panel {
  background: transparent;
  color: inherit;
}

html[data-theme="light"] .sidebar-dash-section {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.10);
}

html[data-theme="light"] .sidebar-dash-link.is-active {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.14) 0%, rgba(var(--accent-rgb), 0.04) 72%, transparent 100%);
  color: #0b1220;
  box-shadow: inset 3px 0 0 var(--pink);
}

html[data-theme="light"][dir="rtl"] .sidebar-dash-link.is-active {
  background: linear-gradient(270deg, rgba(var(--accent-rgb), 0.14) 0%, rgba(var(--accent-rgb), 0.04) 72%, transparent 100%);
  box-shadow: inset -3px 0 0 var(--pink);
}

html[data-theme="light"] .sidebar-dash-link.is-active .sidebar-dash-icon {
  color: var(--nav-icon, #be185d);
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.10);
}

html[data-theme="light"] .sidebar-dash-link.is-active .sidebar-dash-chevron,
html[data-theme="light"] .sidebar-dash-link.is-active .sidebar-dash-label {
  color: #0b1220;
}

html[data-theme="light"] .sidebar-dash-icon {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.10);
}

html[data-theme="light"] .sidebar-dash-icon:not([class*="is-"]) {
  color: #334155;
}

html[data-theme="light"] .account-modal-dialog,
html[data-theme="light"] .ui-select-menu,
html[data-theme="light"] .nav-dropdown-menu,
html[data-theme="light"] .product-search-dropdown,
html[data-theme="light"] .catalog-sort-menu {
  background: #ffffff;
  color: #0b1220;
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .account-modal-warning {
  color: #b91c1c;
}

html[data-theme="light"] main,
html[data-theme="light"] .site-header,
html[data-theme="light"] .site-footer {
  color: #0b1220;
}
html[data-theme="light"] .product-search--home .product-search-field,
html[data-theme="light"] .home-auth-search-card,
html[data-theme="light"] .home-auth-orders-panel,
html[data-theme="light"] .home-order-row,
html[data-theme="light"] .home-order-row-icon,
html[data-theme="light"] .home-auth-orders-empty,
html[data-theme="light"] .profile-sidebar-card,
html[data-theme="light"] .account-card,
html[data-theme="light"] .account-order-card,
html[data-theme="light"] .category-card,
html[data-theme="light"] .category-icon,
html[data-theme="light"] .type-card,
html[data-theme="light"] .type-card-media,
html[data-theme="light"] .type-card-icon-wrap,
html[data-theme="light"] .product-card,
html[data-theme="light"] .product-row,
html[data-theme="light"] .product-media,
html[data-theme="light"] .product-card--shop,
html[data-theme="light"] .product-card--market,
html[data-theme="light"] .promo-features,
html[data-theme="light"] .payment-chip,
html[data-theme="light"] .social-stats,
html[data-theme="light"] .review-card,
html[data-theme="light"] .faq-item,
html[data-theme="light"] .shop-category-thumb,
html[data-theme="light"] .cart-rows,
html[data-theme="light"] .cart-rows-head,
html[data-theme="light"] .cart-row-media,
html[data-theme="light"] .checkout-success-hero,
html[data-theme="light"] .checkout-success-panel,
html[data-theme="light"] .checkout-success-receipt,
html[data-theme="light"] .cart-card,
html[data-theme="light"] .cart-card-media,
html[data-theme="light"] .cart-qty-stepper,
html[data-theme="light"] .cart-line,
html[data-theme="light"] .cart-total,
html[data-theme="light"] .store-content-block,
html[data-theme="light"] .contact-page-card,
html[data-theme="light"] .catalog-controls,
html[data-theme="light"] .catalog-search-pill,
html[data-theme="light"] .catalog-tool-btn,
html[data-theme="light"] .catalog-filter-panel,
html[data-theme="light"] .catalog-search-field,
html[data-theme="light"] .catalog-sort-select,
html[data-theme="light"] .catalog-price-input,
html[data-theme="light"] .catalog-price-preset,
html[data-theme="light"] .catalog-clear-btn,
html[data-theme="light"] .catalog-filter,
html[data-theme="light"] .catalog-cats-btn,
html[data-theme="light"] .catalog-pagination-btn,
html[data-theme="light"] .product-detail-media-frame,
html[data-theme="light"] .product-detail-hero,
html[data-theme="light"] .product-amount-input,
html[data-theme="light"] .product-detail-price-box,
html[data-theme="light"] .product-customer-textarea,
html[data-theme="light"] .account-hub-sidebar,
html[data-theme="light"] .account-metric-card,
html[data-theme="light"] .account-metric-icon,
html[data-theme="light"] .account-hub-mobile-link,
html[data-theme="light"] .account-stat-card,
html[data-theme="light"] .account-stat-icon,
html[data-theme="light"] .account-panel,
html[data-theme="light"] .account-quick-card,
html[data-theme="light"] .account-empty-state--large,
html[data-theme="light"] .account-order-items > span,
html[data-theme="light"] .account-wallet-hero,
html[data-theme="light"] .wallet-tx-card,
html[data-theme="light"] .wallet-tx-card__icon,
html[data-theme="light"] .account-feature-item,
html[data-theme="light"] .account-action-row,
html[data-theme="light"] .account-toggle-row,
html[data-theme="light"] .account-coming-soon-card,
html[data-theme="light"] .account-order-item-media,
html[data-theme="light"] .account-order-detail,
html[data-theme="light"] .account-order-detail-meta div,
html[data-theme="light"] .account-api-hero,
html[data-theme="light"] .account-endpoint-row,
html[data-theme="light"] .account-security-item,
html[data-theme="light"] .account-mobile-hero,
html[data-theme="light"] .account-hub-mobile-tile,
html[data-theme="light"] .account-hub-mobile-tile-icon,
html[data-theme="light"] .account-api-subnav-link,
html[data-theme="light"] .account-token-row,
html[data-theme="light"] .account-api-detail-row,
html[data-theme="light"] .api-hub-banner,
html[data-theme="light"] .api-hub-tabs__link,
html[data-theme="light"] .api-hub-card,
html[data-theme="light"] .payment-whish-card,
html[data-theme="light"] .payment-sidebar-card,
html[data-theme="light"] .payment-topup-form,
html[data-theme="light"] .wallet-pay-id,
html[data-theme="light"] .wallet-pay-item,
html[data-theme="light"] .co-steps,
html[data-theme="light"] .checkout-items-card,
html[data-theme="light"] .checkout-promo-card,
html[data-theme="light"] .checkout-summary-card,
html[data-theme="light"] .checkout-item-media,
html[data-theme="light"] .checkout-promo-field input,
html[data-theme="light"] .orders-export-btn,
html[data-theme="light"] .orders-filter-toggle,
html[data-theme="light"] .orders-search,
html[data-theme="light"] .orders-select,
html[data-theme="light"] .orders-dates,
html[data-theme="light"] .orders-table-wrap,
html[data-theme="light"] .orders-m-card,
html[data-theme="light"] .od-action,
html[data-theme="light"] .od-help,
html[data-theme="light"] .ui-select-trigger,
html[data-theme="light"] .wallet-hero,
html[data-theme="light"] .market-trust-item,
html[data-theme="light"] .market-faq .faq-item,
html[data-theme="light"] .settings-hub-block,
html[data-theme="light"] .settings-hub-icon,
html[data-theme="light"] .cart-empty-state {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .account-hub-nav-link[class*="is-icon-"] > svg,
html[data-theme="light"] .profile-menu-link[class*="is-icon-"] > svg,
html[data-theme="light"] .account-hub-mobile-tile[class*="is-icon-"] .account-hub-mobile-tile-icon {
  color: var(--nav-icon);
}

html[data-theme="light"] .account-stat-card--accent,
html[data-theme="light"] .account-wallet-hero,
html[data-theme="light"] .account-api-hero,
html[data-theme="light"] .wallet-hero {
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.07), #ffffff 58%);
  border-color: rgba(var(--accent-rgb), 0.18);
}

html[data-theme="light"] .icon-btn:hover,
html[data-theme="light"] .theme-selector-btn:hover,
html[data-theme="light"] .catalog-sort-option:not(.is-active):hover,
html[data-theme="light"] .ui-select-option:hover,
html[data-theme="light"] .ui-select-option:focus-visible,
html[data-theme="light"] .orders-export-btn:hover,
html[data-theme="light"] .od-copy:hover,
html[data-theme="light"] .od-copy.is-copied,
html[data-theme="light"] .od-action:hover,
html[data-theme="light"] .api-copy-btn--ghost,
html[data-theme="light"] .product-wishlist-btn {
  background: var(--bg-soft);
  color: var(--text);
}

html[data-theme="light"] .account-details div,
html[data-theme="light"] .account-info-list div,
html[data-theme="light"] .cart-row + .cart-row,
html[data-theme="light"] .cart-card-delivery,
html[data-theme="light"] .cart-card-foot,
html[data-theme="light"] .cart-summary-total,
html[data-theme="light"] .checkout-items-head,
html[data-theme="light"] .checkout-item + .checkout-item,
html[data-theme="light"] .checkout-success-item,
html[data-theme="light"] .checkout-success-total,
html[data-theme="light"] .account-order-card-foot,
html[data-theme="light"] .account-order-detail-item,
html[data-theme="light"] .payment-sidebar-total,
html[data-theme="light"] .od-summary-row + .od-summary-row,
html[data-theme="light"] .od-info-total,
html[data-theme="light"] .od-result-foot {
  border-color: var(--border);
}

@media (hover: hover) and (pointer: fine) {
  html[data-theme="light"] .product-card:hover,
  html[data-theme="light"] .category-card:hover,
  html[data-theme="light"] .type-card:hover {
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
  }

  html[data-theme="light"] .product-card--out:hover {
    transform: none;
  }
}

html[data-theme="light"] .product-search-dropdown {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .home-market .product-search--home .product-search-field {
  background: #ffffff;
  border-color: rgba(var(--accent-rgb), 0.22);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  color: var(--text);
}

html[data-theme="light"] .market-welcome--guest {
  background:
    linear-gradient(160deg, rgba(var(--accent-rgb), 0.08), #ffffff 46%),
    #ffffff;
  border-color: rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .market-welcome--guest .market-welcome-eyebrow,
html[data-theme="light"] .market-welcome--guest .market-welcome-summary {
  color: var(--text-muted);
}

html[data-theme="light"] .market-welcome--guest .market-welcome-name {
  color: var(--text);
}

html[data-theme="light"] .profile-trigger-avatar--initials,
html[data-theme="light"] .profile-menu-avatar--initials {
  background: linear-gradient(135deg, var(--pink), #be185d);
  color: #fff;
}

/* Auth + OTP */
html[data-theme="light"] .auth-screen-body,
html[data-theme="light"] .auth-panel,
html[data-theme="light"] .auth-divider span {
  background: var(--bg);
  color: var(--text);
  color-scheme: light;
}

html[data-theme="light"] .auth-panel {
  border-color: rgba(var(--accent-rgb), 0.16);
  box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .auth-visual {
  background: #e8eef6;
}

html[data-theme="light"] .auth-back-btn {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.22);
}

html[data-theme="light"] .auth-heading h1,
html[data-theme="light"] .otp-box,
html[data-theme="light"] .otp-code-input,
html[data-theme="light"] .auth-social-btn {
  color: var(--text);
}

html[data-theme="light"] .auth-heading p,
html[data-theme="light"] .auth-alt-prompt,
html[data-theme="light"] .auth-field > span,
html[data-theme="light"] .auth-field-head > span {
  color: var(--text-muted);
}

html[data-theme="light"] .auth-input-wrap,
html[data-theme="light"] .auth-input-plain,
html[data-theme="light"] .otp-box,
html[data-theme="light"] .otp-code-input {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .auth-input-wrap input,
html[data-theme="light"] .auth-input-plain,
html[data-theme="light"] .auth-password-input,
html[data-theme="light"] .otp-code-input {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
}

html[data-theme="light"] .auth-input-wrap input::placeholder,
html[data-theme="light"] .auth-input-plain::placeholder,
html[data-theme="light"] .otp-code-input::placeholder {
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
}

html[data-theme="light"] .auth-input-wrap input:-webkit-autofill,
html[data-theme="light"] .auth-input-wrap input:-webkit-autofill:hover,
html[data-theme="light"] .auth-input-wrap input:-webkit-autofill:focus,
html[data-theme="light"] .auth-input-wrap input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px #ffffff inset !important;
}

html[data-theme="light"] .auth-password-toggle {
  color: var(--text-muted);
}

html[data-theme="light"] .auth-social-btn,
html[data-theme="light"] .auth-social-btn--google,
html[data-theme="light"] .auth-social-btn--google:hover {
  background: #ffffff;
  border-color: var(--border-strong);
  color: var(--text);
}

html[data-theme="light"] .auth-alert--success {
  color: #047857;
}

html[data-theme="light"] .auth-error-secondary {
  color: var(--pink-deep);
}

/* Product buy form */
html[data-theme="light"] .product-customer-field > span {
  color: var(--text-soft);
}

html[data-theme="light"] .product-customer-input,
html[data-theme="light"] .product-customer-select,
html[data-theme="light"] .product-customer-textarea,
html[data-theme="light"] .product-amount-input,
html[data-theme="light"] .ai-agent-panel-compose input[type="text"] {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
}

html[data-theme="light"] .product-customer-input::placeholder,
html[data-theme="light"] .product-customer-textarea::placeholder,
html[data-theme="light"] .ai-agent-panel-compose input[type="text"]::placeholder {
  color: var(--text-muted);
}

html[data-theme="light"] .product-customer-fields {
  background: #ffffff;
  border-color: rgba(var(--accent-rgb), 0.16);
}

html[data-theme="light"] .product-buy-card {
  background: transparent;
  border: 0;
  box-shadow: none;
}

html[data-theme="light"] .product-detail-media-frame {
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

@media (min-width: 768px) {
  html[data-theme="light"] .product-detail-layout,
  html[data-theme="light"] .product-buy-card.product-detail-layout {
    background:
      radial-gradient(circle at 12% 0%, rgba(var(--accent-rgb), 0.08), transparent 36%),
      radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.06), transparent 42%),
      #ffffff;
    border-color: rgba(var(--accent-rgb), 0.16);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  }
}

html[data-theme="light"] .product-customer-fields-head h2 {
  color: #0f172a;
}

html[data-theme="light"] .product-customer-fields-head p,
html[data-theme="light"] .product-customer-secure {
  color: rgba(15, 23, 42, 0.58);
}

html[data-theme="light"] .product-customer-error {
  color: #b91c1c;
}

/* Chat / floating tools */
html[data-theme="light"] .ai-agent-panel-close,
html[data-theme="light"] .ai-agent-attach,
html[data-theme="light"] .ai-agent-message p,
html[data-theme="light"] .review-nav-btn {
  background: var(--bg-soft);
  color: var(--text);
}

html[data-theme="light"] .ai-agent-message--admin p {
  background: var(--bg-soft);
  color: var(--text);
}

html[data-theme="light"] .floating-contact-option {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}

html[data-theme="light"] .wallet-funds-btn:hover,
html[data-theme="light"] .wallet-funds-btn:focus-visible,
html[data-theme="light"] .wallet-funds-btn:visited {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html[data-theme="light"] .od-back {
  background: transparent;
  box-shadow: none;
  border: 0;
  color: #0b1220;
}

html[data-theme="light"] .od-btn-ghost,
html[data-theme="light"] .od-action.is-neutral {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}

html[data-theme="light"] .catalog-sort-menu {
  background: #ffffff;
  border-color: var(--border);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .account-modal-dialog {
  background: #ffffff;
  color: var(--text);
}

html[data-theme="light"] .wallet-pay-trigger-logo,
html[data-theme="light"] .orders-product .account-order-item-media {
  background: var(--bg-soft);
}

html[data-theme="light"] .od-receipt-stage,
html[data-theme="light"] .od-receipt-paper::before,
html[data-theme="light"] .od-receipt-paper::after {
  background: #ffffff;
}

html[data-theme="light"] body.is-purchase-complete {
  background: var(--bg);
  background-image: var(--hero-spot);
}

html[data-theme="light"] .purchase-complete-close {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .purchase-complete-card {
  background: #ffffff;
  border-color: rgba(var(--accent-rgb), 0.18);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  color: var(--text);
}

html[data-theme="light"] .purchase-complete-result,
html[data-theme="light"] .purchase-complete-ref {
  background: var(--bg-soft);
  border-color: var(--border);
}

html[data-theme="light"] .purchase-complete-pill {
  background: var(--bg-soft);
  border-color: var(--border);
  color: var(--text);
}

html[data-theme="light"] .pwa-install {
  background: #ffffff;
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.22);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .pwa-install img {
  background: var(--bg-soft);
}

html[data-theme="light"] .pwa-install__copy span,
html[data-theme="light"] .pwa-install__close {
  color: var(--text-muted);
}

html[data-theme="light"] .product-row .thumb,
html[data-theme="light"] .promo-visual {
  background: var(--bg-soft);
}

html[data-theme="light"] .sidebar-fund-card {
  background: #ffffff;
  border-color: rgba(var(--accent-rgb), 0.16);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  color: var(--text);
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: var(--text-muted);
}

html[data-theme="light"] .catalog-filter {
  background: #ffffff;
  color: #0b1220;
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: none;
}

html[data-theme="light"] .catalog-filter.is-active {
  background: linear-gradient(135deg, var(--pink), #be185d);
  color: #fff;
  -webkit-text-fill-color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.22);
}

html[data-theme="light"] .catalog-filter.is-active,
html[data-theme="light"] .catalog-sort-option.is-active,
html[data-theme="light"] .od-action.is-pink,
html[data-theme="light"] .od-btn-gradient,
html[data-theme="light"] .settings-hub-link.is-active,
html[data-theme="light"] .settings-hub-link.is-active .settings-hub-icon,
html[data-theme="light"] .theme-selector-btn.is-active,
html[data-theme="light"] .ui-select-option.is-active,
html[data-theme="light"] .orders-page-num.is-active,
html[data-theme="light"] .co-step.is-current .co-step-index,
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .auth-submit,
html[data-theme="light"] .cart-btn,
html[data-theme="light"] .product-card-buy,
html[data-theme="light"] .pwa-install__go {
  color: #fff;
}

html[data-theme="light"] .od-page,
html[data-theme="light"] .od-card,
html[data-theme="light"] .od-summary {
  color: #0b1220;
}

html[data-theme="light"] .od-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .od-status-pill.is-success {
  color: #166534;
  background: #dcfce7;
  border-color: #86efac;
}

html[data-theme="light"] .od-status-pill.is-warning {
  color: #92400e;
  background: #fef3c7;
  border-color: #fcd34d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

html[data-theme="light"] .od-status-pill.is-info {
  color: #1e40af;
  background: #dbeafe;
  border-color: #93c5fd;
}

html[data-theme="light"] .od-status-pill.is-danger {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fca5a5;
}

html[data-theme="light"] .od-type-badge {
  color: #5b21b6;
  background: #ede9fe;
  border-color: #c4b5fd;
}

html[data-theme="light"] .od-cancel-note {
  color: #5b21b6;
  background: #f5f3ff;
  border-color: #c4b5fd;
}

html[data-theme="light"] .od-price-toggle {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .od-price-toggle button {
  color: #64748b;
}

html[data-theme="light"] .od-price-toggle button.is-active {
  color: #fff;
}

html[data-theme="light"] .od-card-title svg {
  color: #7c3aed;
}

html[data-theme="light"] .od-info-row span,
html[data-theme="light"] .od-info-grid span,
html[data-theme="light"] .od-result-grid span,
html[data-theme="light"] .od-summary-copy span,
html[data-theme="light"] .od-summary-price span,
html[data-theme="light"] .od-muted,
html[data-theme="light"] .od-step small {
  color: #5b6b82;
}

html[data-theme="light"] .od-info-row strong,
html[data-theme="light"] .od-info-grid strong,
html[data-theme="light"] .od-result-grid strong,
html[data-theme="light"] .od-summary-copy strong,
html[data-theme="light"] .od-step strong {
  color: #0b1220;
}

html[data-theme="light"] .od-delivery-detail dd span,
html[data-theme="light"] .od-delivery-value,
html[data-theme="light"] .od-result-grid .is-otp strong,
html[data-theme="light"] .od-result-grid > div:has(.od-copy) strong {
  color: #16a34a;
}

html[data-theme="light"] .od-delivery-details {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.10);
}

html[data-theme="light"] .od-delivery-details-title,
html[data-theme="light"] .od-delivery-detail dt {
  color: #5b6b82;
}

html[data-theme="light"] .od-step-rail {
  background: rgba(15, 23, 42, 0.10);
}

html[data-theme="light"] .od-step.is-wait .od-step-icon {
  color: #64748b;
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.14);
}

html[data-theme="light"] .od-step.is-current .od-step-icon {
  color: #5b21b6;
  background: #ede9fe;
  border-color: #8b5cf6;
}

html[data-theme="light"] .od-step.is-current strong {
  color: #5b21b6;
}

html[data-theme="light"] .od-result-alert {
  background: #ecfdf5;
  border-color: #6ee7b7;
}

html[data-theme="light"] .od-result-alert strong {
  color: #047857;
}

html[data-theme="light"] .od-result-alert.is-fail {
  background: #fef2f2;
  border-color: #fca5a5;
}

html[data-theme="light"] .od-result-alert.is-fail strong {
  color: #991b1b;
}

html[data-theme="light"] .od-result-alert.is-wait,
html[data-theme="light"] .od-result-alert.is-progress {
  background: #eef2ff;
  border-color: #c7d2fe;
}

html[data-theme="light"] .od-result-alert.is-wait strong,
html[data-theme="light"] .od-result-alert.is-progress strong {
  color: #3730a3;
}

html[data-theme="light"] .od-copy:hover,
html[data-theme="light"] .od-copy.is-copied {
  color: #be185d;
  background: rgba(var(--accent-rgb), 0.08);
}

html[data-theme="light"] .od-receipt-stage {
  background: #e8eef6;
}

html[data-theme="light"] .od-receipt-paper::before,
html[data-theme="light"] .od-receipt-paper::after {
  background: radial-gradient(circle, #e8eef6 8px, transparent 8.5px);
}

html[data-theme="light"] .api-copy-toast {
  background: #ecfdf5;
  color: #047857;
  border-color: #6ee7b7;
}

html[data-theme="light"] .api-hub-banner,
html[data-theme="light"] .api-hub-stats,
html[data-theme="light"] .api-copy-field__row,
html[data-theme="light"] .api-token-card,
html[data-theme="light"] .api-endpoints-table__row,
html[data-theme="light"] .account-code-block {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.10);
  color: #0b1220;
}

html[data-theme="light"] .api-hub-stats,
html[data-theme="light"] .api-copy-field__row,
html[data-theme="light"] .account-code-block,
html[data-theme="light"] .api-endpoints-table__row {
  background: #f1f5f9;
}

.account-panel-lead {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.authenticator-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.authenticator-head-copy {
  min-width: 0;
}

.authenticator-lead {
  margin: 0.35rem 0 0;
}

.authenticator-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.authenticator-badge.is-on {
  color: #047857;
  background: rgba(16, 185, 129, 0.14);
}

.authenticator-badge.is-off {
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.authenticator-idle {
  display: grid;
  gap: 0.9rem;
}

.authenticator-intro {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
}

.authenticator-benefits {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.authenticator-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.4;
}

.authenticator-benefits svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--pink-hot);
}

.authenticator-apps-label {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.authenticator-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.authenticator-apps li {
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
}

.authenticator-start {
  margin: 0.35rem 0 0;
}

.authenticator-start .btn,
.authenticator-actions .btn,
.authenticator-form .btn {
  min-height: 44px;
  padding-inline: 1.15rem;
}

.authenticator-steps {
  display: grid;
  gap: 0.85rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.authenticator-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-ghost-2);
}

.authenticator-step.is-current {
  border-color: rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.05);
}

.authenticator-step.is-done {
  border-color: rgba(34, 197, 94, 0.22);
}

.authenticator-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: var(--pink-hot);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.authenticator-step.is-done .authenticator-step-num {
  background: #059669;
}

.authenticator-step strong {
  display: block;
  margin-bottom: 0.2rem;
}

.authenticator-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.authenticator-setup {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
  margin-top: 0.85rem;
}

.authenticator-qr {
  padding: 1.1rem;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.authenticator-qr img {
  display: block;
  width: 220px;
  height: 220px;
}

.authenticator-secret-row {
  display: grid;
  gap: 0.4rem;
  width: 100%;
}

.authenticator-manual {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.authenticator-secret-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.authenticator-secret {
  display: inline-block;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.98rem;
  letter-spacing: 0.1em;
  word-break: break-all;
}

.authenticator-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.authenticator-form {
  display: grid;
  gap: 0.75rem;
  margin: 0.85rem 0 0.65rem;
}

.authenticator-form--confirm {
  margin-bottom: 0.55rem;
}

.authenticator-field {
  display: grid;
  gap: 0.4rem;
}

.authenticator-field > span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.authenticator-code-input {
  width: 100%;
  max-width: 18rem;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 1.15rem;
  letter-spacing: 0.28em;
  text-align: center;
}

.authenticator-code-input--lg {
  max-width: 16rem;
  min-height: 56px;
  font-size: 1.35rem;
  letter-spacing: 0.36em;
}

.authenticator-code-input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

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

.authenticator-on {
  display: grid;
  gap: 0.75rem;
}

.authenticator-on-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(34, 197, 94, 0.24);
  background: rgba(34, 197, 94, 0.08);
  margin-bottom: 0.9rem;
}

.authenticator-on-banner svg {
  flex-shrink: 0;
  color: var(--ok);
}

.authenticator-on-banner p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.authenticator-on-since {
  font-size: 0.78rem !important;
}

.authenticator-more {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-ghost-2);
  padding: 0.95rem 1rem 1rem;
}

.authenticator-more-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.5rem;
  font-weight: 700;
}

.authenticator-more-title svg {
  color: var(--text-muted);
}

.authenticator-more-help {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.authenticator-more--danger .authenticator-more-title {
  color: var(--danger);
}

.authenticator-more--danger .authenticator-more-title svg {
  color: var(--danger);
}

.authenticator-recovery {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.1);
}

.authenticator-recovery-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.authenticator-recovery-head svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #d97706;
}

.authenticator-recovery p {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.authenticator-recovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.authenticator-recovery-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
}

.authenticator-recovery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.authenticator-recovery-grid code {
  display: block;
  padding: 0.6rem 0.55rem;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  text-align: center;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
}

html[data-theme="light"] .authenticator-qr {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .authenticator-secret,
html[data-theme="light"] .authenticator-code-input,
html[data-theme="light"] .authenticator-recovery-grid code,
html[data-theme="light"] .authenticator-apps li,
html[data-theme="light"] .authenticator-step,
html[data-theme="light"] .authenticator-more {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0b1220;
}

html[data-theme="light"] .authenticator-step.is-current {
  background: #fff1f5;
  border-color: rgba(219, 39, 119, 0.22);
}

html[data-theme="light"] .authenticator-on-banner {
  background: #ecfdf5;
  border-color: #6ee7b7;
}

html[data-theme="light"] .authenticator-recovery {
  background: #fffbeb;
  border-color: #fcd34d;
}

html[data-theme="light"] .account-security-item--warn {
  background: #fffbeb;
  border-color: #fcd34d;
}

html[data-theme="light"] .authenticator-badge.is-on {
  background: #d1fae5;
  color: #047857;
}

.two-step-methods {
  display: grid;
  gap: 0.85rem;
}

.two-step-method {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-ghost-2);
}

.two-step-method.is-on {
  border-color: rgba(34, 197, 94, 0.22);
}

.two-step-method-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: flex-start;
}

.two-step-method-head p {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.two-step-or,
.auth-or-line {
  margin: 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-alt-methods {
  margin-top: 1rem;
  display: grid;
  gap: 0.55rem;
}

.auth-alt-method-list {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
}

.auth-resend-form {
  margin-top: 0.75rem;
  text-align: center;
}

.tf-hero {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 0.7rem;
}

.tf-hero-glow {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.32), rgba(var(--accent-rgb), 0.04) 62%, transparent 72%);
  filter: blur(6px);
}

.tf-hero-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #ff5a9a;
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.06));
  border: 1px solid rgba(255, 77, 141, 0.38);
  box-shadow:
    0 8px 22px rgba(var(--accent-rgb), 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tf-hero-lock {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ff6ba8, var(--pink));
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.4);
}

.tf-hero-lock svg {
  width: 11px;
  height: 11px;
}

.auth-screen[data-auth-mode="verify"] .auth-heading {
  text-align: center;
}

.auth-screen[data-auth-mode="verify"] .auth-heading h1 {
  font-size: clamp(1.35rem, 5vw, 1.65rem);
  letter-spacing: -0.03em;
}

.auth-screen[data-auth-mode="verify"] .auth-heading p {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  line-height: 1.4;
}

.auth-screen[data-auth-mode="verify"] .auth-form--otp {
  margin-top: 0.85rem;
  gap: 0.85rem;
}

.auth-screen[data-auth-mode="verify"] .otp-boxes {
  gap: clamp(0.28rem, 1.8vw, 0.5rem);
}

.auth-screen[data-auth-mode="verify"] .otp-box {
  max-height: 3.1rem;
  border-radius: 12px;
  font-size: clamp(1.05rem, 4.4vw, 1.3rem);
}

.auth-screen[data-auth-mode="verify"] .auth-submit {
  min-height: 48px;
  border-radius: 14px;
  font-size: 0.98rem;
  background: linear-gradient(135deg, #ff6ba8 0%, var(--pink) 52%, #e0126a 100%);
  box-shadow:
    0 10px 24px rgba(var(--accent-rgb), 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.auth-screen[data-auth-mode="verify"] .auth-submit:disabled {
  opacity: 0.42;
  filter: grayscale(0.12);
  box-shadow: none;
}

.tf-dest {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.85rem auto 0;
  max-width: 100%;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tf-dest--whatsapp .tf-dest-icon {
  color: #25d366;
}

.tf-dest--email .tf-dest-icon {
  color: #ff5a9a;
}

.auth-card > .tf-dest {
  display: flex;
  width: fit-content;
}

.tf-dest-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tf-alts {
  margin-top: 1.05rem;
  display: grid;
  gap: 0.55rem;
}

.tf-alts-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.tf-alt-list {
  display: grid;
  gap: 0.45rem;
}

.tf-alt-list form {
  margin: 0;
}

.tf-alt-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 62px;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.tf-alt-card:hover,
.tf-alt-card:focus-visible {
  outline: none;
  border-color: rgba(255, 77, 141, 0.45);
  background: rgba(var(--accent-rgb), 0.08);
}

.tf-alt-card:active {
  transform: scale(0.99);
}

.tf-alt-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #ff5a9a;
  background: rgba(var(--accent-rgb), 0.12);
  flex-shrink: 0;
}

.tf-alt-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.tf-alt-copy strong {
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.25;
}

.tf-alt-copy span {
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-muted);
}

.tf-alt-chevron {
  display: inline-flex;
  color: var(--text-muted);
}

[dir="rtl"] .tf-alt-chevron {
  transform: scaleX(-1);
}

.auth-screen[data-auth-mode="verify"] .auth-resend-form {
  margin-top: 0.55rem;
}

.auth-screen[data-auth-mode="verify"] .auth-resend-form .auth-link-btn {
  font-size: 0.82rem;
}

.auth-screen[data-auth-mode="verify"] .auth-switch {
  margin-top: 0.9rem;
}

@media (max-width: 899px) {
  .auth-screen[data-auth-mode="verify"] .auth-panel {
    justify-content: flex-start;
    padding:
      max(3.2rem, calc(env(safe-area-inset-top) + 2.35rem))
      max(1.1rem, env(safe-area-inset-left))
      max(1rem, env(safe-area-inset-bottom))
      max(1.1rem, env(safe-area-inset-right));
  }

  .auth-screen[data-auth-mode="verify"] .auth-heading p {
    display: block;
    font-size: 0.82rem;
  }

  .auth-screen[data-auth-mode="verify"] .auth-heading h1 {
    font-size: 1.38rem;
    text-align: center;
  }

  .auth-screen[data-auth-mode="verify"] .otp-box {
    max-height: 2.85rem;
  }

  .tf-hero {
    width: 64px;
    height: 64px;
    margin-bottom: 0.55rem;
  }

  .tf-hero-icon {
    width: 52px;
    height: 52px;
  }

  .tf-alt-card {
    min-height: 58px;
    padding: 0.62rem 0.7rem;
  }
}

@media (max-width: 360px) {
  .auth-screen[data-auth-mode="verify"] .otp-boxes {
    gap: 0.22rem;
  }

  .auth-screen[data-auth-mode="verify"] .otp-box {
    max-height: 2.55rem;
    border-radius: 10px;
    font-size: 1rem;
  }

  .tf-dest {
    font-size: 0.78rem;
    padding: 0.36rem 0.6rem;
  }
}

html[data-theme="light"] .tf-hero-icon {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), #fff);
  border-color: rgba(225, 29, 102, 0.28);
  color: #e11d66;
}

html[data-theme="light"] .tf-dest,
html[data-theme="light"] .tf-alt-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .tf-alt-card:hover,
html[data-theme="light"] .tf-alt-card:focus-visible {
  border-color: rgba(225, 29, 102, 0.35);
  background: rgba(var(--accent-rgb), 0.06);
}

html[data-theme="light"] .tf-alt-icon {
  background: rgba(var(--accent-rgb), 0.1);
}

.security-form {
  display: grid;
  gap: 0.85rem;
}

.security-form .auth-input-wrap {
  max-width: 24rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.security-form .authenticator-actions {
  margin-top: 0.2rem;
}

html[data-theme="light"] .two-step-method {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .security-form .auth-input-wrap {
  background: #ffffff;
}

@media (max-width: 640px) {
  .authenticator-recovery-grid {
    grid-template-columns: 1fr;
  }

  .authenticator-secret-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .authenticator-code-input,
  .authenticator-code-input--lg {
    max-width: none;
  }
}

/* Security hub — compact accordion dashboard */
.sec-hub {
  display: grid;
  gap: 0.75rem;
  max-width: 720px;
}

.sec-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  overflow: hidden;
}

.sec-card.is-static .sec-card-summary {
  cursor: default;
}

.sec-card-summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  cursor: pointer;
}

.sec-card-summary::-webkit-details-marker {
  display: none;
}

.sec-card-summary-copy {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.sec-card-summary-copy h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.sec-card-summary-copy p,
.sec-muted {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.sec-card[open] > .sec-card-summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sec-card-body {
  padding: 0.95rem 1.05rem 1.05rem;
  display: grid;
  gap: 0.85rem;
}

.sec-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 26px;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sec-badge.is-sm {
  min-height: 22px;
  padding: 0.12rem 0.5rem;
  font-size: 0.66rem;
}

.sec-badge.is-on {
  color: #166534;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.sec-badge.is-off {
  color: var(--text-muted);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.sec-badge.is-neutral {
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
}

.sec-banner {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
}

.sec-banner.is-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.sec-banner strong {
  display: block;
  margin-bottom: 0.15rem;
}

.sec-banner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.sec-method-list {
  display: grid;
  gap: 0.65rem;
}

.sec-method {
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-ghost-2);
}

.sec-method-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.sec-method-copy {
  min-width: 0;
  display: grid;
  gap: 0.25rem;
}

.sec-method-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.sec-method-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.sec-method-title strong {
  font-size: 0.94rem;
}

.sec-method-panel {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 0.75rem;
}

.sec-method-panel[hidden] {
  display: none !important;
}

.sec-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.sec-danger {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.06);
}

.sec-danger-copy strong {
  color: #f87171;
}

.sec-danger-copy p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.sec-overview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.sec-overview-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-ghost-2);
  font-size: 0.88rem;
}

.sec-overview-list li span {
  color: var(--text-muted);
}

.sec-overview-list li.is-ok strong {
  color: #22c55e;
}

.sec-overview-list li.is-warn strong {
  color: #f59e0b;
}

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

.sec-session {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.sec-session.is-current {
  border-color: rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.05);
}

.sec-session-copy {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.sec-session-copy strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.sec-session-copy p {
  margin: 0;
  font-size: 0.82rem;
}

.sec-sessions-foot {
  margin-top: 0.35rem;
}

.sec-card--soon {
  opacity: 0.92;
}

html[data-theme="light"] .sec-card,
html[data-theme="light"] .sec-method,
html[data-theme="light"] .sec-overview-list li,
html[data-theme="light"] .sec-session {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .sec-card[open] > .sec-card-summary,
html[data-theme="light"] .sec-method-panel {
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .sec-badge.is-off {
  background: #f8fafc;
}

html[data-theme="light"] .sec-banner.is-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

html[data-theme="light"] .sec-danger {
  background: #fef2f2;
  border-color: #fecaca;
}

html[data-theme="light"] .sec-danger-copy strong {
  color: #b91c1c;
}

html[data-theme="light"] .sec-overview-list li.is-ok strong {
  color: #15803d;
}

.account-settings-links {
  display: grid;
  gap: 0.55rem;
}

.account-settings-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  text-decoration: none;
  color: inherit;
}

.account-settings-link:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.06);
}

.account-settings-link-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--pink-hot);
}

.account-settings-link span {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.account-settings-link strong {
  font-size: 0.92rem;
}

.account-settings-link small {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.account-settings-link > svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

html[data-theme="light"] .account-settings-link {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
}

@media (max-width: 640px) {
  .sec-method-row,
  .sec-card-summary,
  .sec-session {
    flex-direction: column;
    align-items: stretch;
  }

  .sec-inline-actions,
  .sec-method-row > .btn,
  .sec-session form .btn {
    width: 100%;
  }

  .sec-inline-actions .btn {
    flex: 1 1 auto;
  }
}

/* ── Account Overview (premium mobile dashboard) ── */
.profile-status-badge.is-processing {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.profile-status-badge.is-refunded {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.28);
}

.profile-trigger {
  position: relative;
}

.profile-trigger > .profile-status-dot {
  position: absolute;
  inset-inline-end: 0;
  bottom: 1px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--bg, #05070b);
  box-shadow: none;
  z-index: 1;
}

.profile-trigger > .profile-status-dot::after {
  display: none;
}

html[data-theme="light"] .profile-trigger > .profile-status-dot {
  border-color: #fff;
}

.header-overview-tools {
  display: none;
  align-items: center;
  gap: 0.28rem;
  flex: 0 0 auto;
  min-width: 0;
}

.header-add-funds-btn {
  color: #fff;
  background: linear-gradient(145deg, var(--pink-hot), var(--pink-deep));
  border: 1px solid transparent;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.28);
}

.header-add-funds-btn:hover {
  color: #fff;
  filter: brightness(1.05);
}

.account-overview-balance {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  box-shadow: var(--shadow);
  min-width: 0;
}

.account-overview-balance__copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.account-overview-balance__copy span {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.account-overview-balance__copy [data-wallet-balance] {
  color: var(--pink-hot);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.account-overview {
  display: grid;
  gap: 0.85rem;
}

.account-welcome-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.account-welcome-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 220px;
  color: inherit;
  text-decoration: none;
}

.account-welcome-email {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.account-level-badge {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.18rem 0.5rem;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.16);
  color: #ff8ab8;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease;
}

button.account-level-badge:hover,
button.account-level-badge:focus-visible {
  filter: brightness(1.12);
  outline: none;
}

button.account-level-badge:active {
  transform: scale(0.96);
}

.account-mobile-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.membership-sheet {
  width: min(28rem, calc(100% - 1.5rem));
  max-height: min(86vh, 40rem);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: inherit;
}

.membership-sheet::backdrop {
  background: rgba(5, 7, 11, 0.72);
  backdrop-filter: blur(8px);
}

.membership-sheet__panel {
  max-height: min(86vh, 40rem);
  overflow: auto;
  padding: 1.15rem 1.1rem 1.25rem;
  border-radius: 22px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(var(--accent-rgb), 0.2), transparent 46%),
    #12141c;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.membership-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.membership-sheet__head h2 {
  margin: 0;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}

.membership-sheet__close {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 640px) {
  .membership-sheet {
    width: 100%;
    max-width: none;
    max-height: none;
    margin: auto 0 0;
  }

  .membership-sheet__panel {
    max-height: min(88vh, 40rem);
    border-radius: 22px 22px 0 0;
  }
}

.account-membership-kicker {
  display: block;
  color: #ff8ab8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-membership-head strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.account-membership-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0.85rem 0 0;
}

.account-membership-stats dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.account-membership-stats dd {
  margin: 0.15rem 0 0;
  font-size: 0.98rem;
  font-weight: 800;
}

.account-membership-progress {
  height: 0.55rem;
  margin: 0.85rem 0 0.4rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.account-membership-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), #ff7ab0);
}

.account-membership-meter,
.account-membership-unlock,
.account-membership-hint,
.account-membership-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.account-membership-unlock {
  color: #fff;
  font-weight: 700;
}

.product-buy-unit--member em {
  display: block;
  margin-top: 0.25rem;
  color: #4ade80;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
}

.product-price-label {
  display: block;
  margin-bottom: 0.2rem;
  color: #ff8ab8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html[data-theme="light"] .membership-sheet__panel {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(var(--accent-rgb), 0.1), transparent 46%),
    #fff;
  border-color: rgba(var(--accent-rgb), 0.18);
}

html[data-theme="light"] .membership-sheet__close {
  background: rgba(17, 24, 39, 0.08);
  color: #111827;
}

html[data-theme="light"] .account-membership-unlock {
  color: #111827;
}

.account-welcome-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.account-welcome-avatar,
.account-welcome-avatar--initials {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  display: grid;
  place-items: center;
}

.account-welcome-avatar--initials {
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.28), rgba(var(--accent-rgb), 0.08));
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  font-weight: 800;
  font-size: 0.95rem;
}

.account-welcome-avatar-wrap .profile-status-dot {
  position: absolute;
  inset-inline-end: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--bg, #05070b);
  box-shadow: none;
}

.account-welcome-avatar-wrap .profile-status-dot::after {
  display: none;
}

html[data-theme="light"] .account-welcome-avatar-wrap .profile-status-dot {
  border-color: #fff;
}

.account-welcome-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  flex: 1 1 auto;
}

.account-welcome-eyebrow {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
}

.account-welcome-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.2;
}

.account-welcome-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  min-width: 0;
  flex: 1 1 100%;
}

.account-welcome-meta .profile-status-badge {
  padding: 0.18rem 0.5rem;
  font-size: 0.64rem;
}

.account-welcome-since {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.account-welcome-chevron {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--text-muted);
  opacity: 0.75;
}

html[dir="rtl"] .account-welcome-chevron {
  transform: scaleX(-1);
}

.account-quick-grid--overview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.account-quick-card--compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 78px;
  padding: 0.7rem 0.35rem;
  text-align: center;
}

.account-quick-card--compact strong {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.account-quick-card--compact.is-locked {
  opacity: 0.72;
}

.account-quick-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--pink-hot);
  background: rgba(var(--accent-rgb), 0.1);
}

.account-info-list--compact div {
  padding: 0.62rem 0;
}

.account-info-list--compact dd {
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 62%;
}

.account-order-compact {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  overflow: hidden;
}

.account-orders-list--overview {
  display: grid;
  gap: 0.65rem;
}

.account-order-compact-link {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem 0.55rem;
  color: inherit;
  text-decoration: none;
}

.account-order-compact-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.account-order-compact-id {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.account-order-compact-id span {
  color: var(--text-muted);
  font-size: 0.74rem;
}

.account-order-compact-body {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.account-order-compact-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  flex: 1 1 auto;
}

.account-order-compact-product {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 700;
}

.account-order-compact-product em {
  font-style: normal;
  color: var(--text-muted);
  font-weight: 600;
}

.account-order-compact-meta {
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-order-compact-amount {
  display: grid;
  justify-items: end;
  gap: 0.05rem;
  flex: 0 0 auto;
}

.account-order-compact-amount strong {
  font-size: 0.9rem;
}

.account-order-compact-amount small {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.account-order-compact-foot {
  padding: 0 0.9rem 0.85rem;
}

html[data-theme="light"] .account-welcome-card,
html[data-theme="light"] .account-overview-balance,
html[data-theme="light"] .account-order-compact,
html[data-theme="light"] .account-hub--overview .account-panel,
html[data-theme="light"] .account-hub--overview .account-metric-card {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

@media (max-width: 920px) {
  .account-hub--overview {
    padding-top: 0.85rem;
  }

  .account-hub--overview .account-hub-main {
    gap: 0.75rem;
  }

  .account-hub--overview .account-hub-head {
    margin: 0;
  }

  .account-hub--overview .account-hub-head h1 {
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .account-hub--overview .account-panel {
    padding: 0.85rem 0.9rem;
    border-radius: 18px;
  }

  .account-hub--overview .account-panel-head h2 {
    font-size: 0.95rem;
  }

  .account-hub--overview .account-overview-metrics {
    gap: 0.45rem;
  }

  .account-hub--overview .account-metric-card {
    padding: 0.7rem 0.45rem;
    border-radius: 14px;
    justify-items: center;
    text-align: center;
    gap: 0.28rem;
  }

  .account-hub--overview .account-metric-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .account-hub--overview .account-metric-label {
    font-size: 0.62rem;
  }

  .account-hub--overview .account-metric-value {
    font-size: 1.15rem;
  }

  .account-quick-grid--overview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .account-quick-card--compact {
    min-height: 74px;
    padding: 0.55rem 0.2rem;
  }

  .account-quick-card--compact strong {
    font-size: 0.66rem;
  }

  .account-info-list--compact div {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.58rem 0;
  }

  .account-info-list--compact dd {
    text-align: end;
    font-size: 0.8rem;
    max-width: 58%;
  }

  html[data-theme="light"] .account-hub--overview {
    background:
      radial-gradient(circle at 12% 0%, rgba(var(--accent-rgb), 0.08), transparent 42%),
      radial-gradient(circle at 88% 8%, rgba(167, 139, 250, 0.08), transparent 38%),
      linear-gradient(180deg, #f7f4fb 0%, #f3f6fb 100%);
  }
}

@media (max-width: 1023px) {
  body.is-account-overview .account-overview-balance {
    display: flex;
  }
}

@media (max-width: 380px) {
  .account-quick-grid--overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-quick-card--compact {
    min-height: 68px;
  }

  .account-hub--overview .account-metric-label {
    font-size: 0.58rem;
  }

  .account-hub--overview .account-metric-value {
    font-size: 1.05rem;
  }

  .account-order-compact-meta {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

.account-overview-avatar-editor {
  display: none;
}

@media (min-width: 921px) {
  .account-overview-avatar-editor {
    display: block;
  }

  .account-overview {
    gap: 1rem;
  }

  .account-welcome-card {
    padding: 1rem 1.1rem;
  }

  .account-quick-grid--overview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.account-telegram-card {
  display: grid;
  gap: 0.85rem;
}

.account-telegram-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.account-telegram-card__title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.account-telegram-card__title-row h2 {
  margin: 0;
  font-size: 1.05rem;
}

.account-telegram-card__icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  flex-shrink: 0;
}

.account-telegram-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.account-telegram-card__badge.is-connected {
  color: #86efac;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.account-telegram-card__badge.is-disconnected {
  color: var(--text-muted);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.account-telegram-card__intro,
.account-telegram-card__handle {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.45;
}

.account-telegram-card__handle {
  color: var(--text);
  font-weight: 700;
}

.account-telegram-card__state,
.account-telegram-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.account-telegram-card__actions {
  flex-direction: column;
  align-items: stretch;
}

.account-telegram-card__waiting {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.45;
  font-size: 0.9rem;
}

.account-telegram-card__state[hidden],
.account-telegram-card__waiting[hidden] {
  display: none !important;
}

html[data-theme="light"] .account-telegram-card__icon {
  background: rgba(14, 165, 233, 0.1);
}

html[data-theme="light"] .account-telegram-card__badge.is-disconnected {
  background: #f8fafc;
}

html[data-theme="light"] .account-telegram-card__badge.is-connected {
  color: #047857;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.28);
}

/* Account contact linking */
.account-contact-anchor {
  scroll-margin-top: 5.5rem;
}
.account-contact-card {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 77, 141, 0.22);
  background: var(--surface-ghost);
}
.account-contact-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--text);
}
.account-contact-card > p {
  margin: 0.35rem 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.account-contact-form {
  display: grid;
  gap: 0.75rem;
}
.account-contact-field {
  display: grid;
  gap: 0.35rem;
}
.account-contact-field > span {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text-soft);
}
.account-contact-field input[type="email"],
.account-contact-field input[type="text"],
.account-contact-field input[type="tel"] {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  background: rgba(255, 255, 255, 0.015);
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  padding: 0.65rem 0.85rem;
  font: inherit;
}
.account-contact-field input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
  background: var(--surface-ghost);
}
.account-phone-combo {
  min-height: 44px;
  background: transparent !important;
  border-color: var(--border) !important;
  box-shadow: none !important;
}
.account-phone-combo.is-focused {
  background: transparent !important;
  border-color: rgba(var(--accent-rgb), 0.35) !important;
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.08) !important;
}
.account-phone-combo .auth-phone-combo-divider {
  background: rgba(255, 255, 255, 0.08) !important;
}
.account-phone-combo .auth-country-select,
.account-phone-combo .auth-phone-input {
  background: transparent !important;
  box-shadow: none !important;
  -webkit-text-fill-color: var(--text);
  color: var(--text);
}
.account-phone-combo .auth-phone-input::placeholder {
  color: var(--text-faint);
  -webkit-text-fill-color: var(--text-faint);
  opacity: 1;
}
html[data-theme="light"] .account-phone-combo {
  background: transparent !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}
html[data-theme="light"] .account-phone-combo .auth-country-select,
html[data-theme="light"] .account-phone-combo .auth-phone-input {
  -webkit-text-fill-color: #0f172a;
  color: #0f172a;
}
html[data-theme="light"] .account-phone-combo .auth-phone-input::placeholder {
  color: rgba(15, 23, 42, 0.28);
  -webkit-text-fill-color: rgba(15, 23, 42, 0.28);
}
.account-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.account-contact-badge {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 0.4rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  font-size: 0.68rem;
  font-weight: 700;
}
.account-contact-muted {
  color: var(--text-muted);
}
.account-error-list {
  margin: 0;
  padding-inline-start: 1.1rem;
}
.is-hidden {
  display: none !important;
}
html[data-theme="light"] .account-contact-card {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
}
html[data-theme="light"] .account-contact-card h3 {
  color: #0f172a;
}
html[data-theme="light"] .account-contact-card > p,
html[data-theme="light"] .account-contact-muted {
  color: rgba(15, 23, 42, 0.55);
}
html[data-theme="light"] .account-contact-field > span {
  color: rgba(15, 23, 42, 0.72);
}
html[data-theme="light"] .account-contact-field input[type="email"],
html[data-theme="light"] .account-contact-field input[type="text"],
html[data-theme="light"] .account-contact-field input[type="tel"] {
  background: #fff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .account-phone-combo {
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}
html[data-theme="light"] .account-phone-combo.is-focused {
  border-color: rgba(217, 22, 90, 0.4) !important;
  box-shadow: 0 0 0 2px rgba(217, 22, 90, 0.1) !important;
}
html[data-theme="light"] .account-phone-combo .auth-phone-combo-divider {
  background: rgba(15, 23, 42, 0.1) !important;
}
html[data-theme="light"] .account-contact-badge {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

/* ==========================================================================
   Light mode — final contrast safety net (ghost text / white-on-white)
   ========================================================================== */
html[data-theme="light"] .auth-footnote,
html[data-theme="light"] .auth-switch,
html[data-theme="light"] .auth-or-line,
html[data-theme="light"] .auth-link-btn,
html[data-theme="light"] .auth-field-hint,
html[data-theme="light"] .auth-terms,
html[data-theme="light"] .auth-alt-prompt,
html[data-theme="light"] .auth-heading p,
html[data-theme="light"] .account-contact-muted,
html[data-theme="light"] .otp-expiry,
html[data-theme="light"] .otp-email-note {
  color: var(--text-muted) !important;
}

html[data-theme="light"] .auth-heading h1,
html[data-theme="light"] .account-contact-card h3,
html[data-theme="light"] .product-customer-fields-head h2 {
  color: var(--text) !important;
}

html[data-theme="light"] .auth-field > span,
html[data-theme="light"] .auth-field-head > span,
html[data-theme="light"] .account-contact-field > span,
html[data-theme="light"] .product-customer-field > span,
html[data-theme="light"] .product-customer-fields-head p,
html[data-theme="light"] .product-customer-secure {
  color: var(--text-soft) !important;
}

html[data-theme="light"] .auth-input-wrap input,
html[data-theme="light"] .auth-input-plain,
html[data-theme="light"] .auth-password-input,
html[data-theme="light"] .auth-phone-input,
html[data-theme="light"] .auth-country-select,
html[data-theme="light"] .otp-box,
html[data-theme="light"] .otp-code-input,
html[data-theme="light"] .product-customer-input,
html[data-theme="light"] .product-customer-select,
html[data-theme="light"] .product-customer-textarea,
html[data-theme="light"] .product-amount-input,
html[data-theme="light"] .account-contact-field input,
html[data-theme="light"] .account-phone-combo .auth-country-select,
html[data-theme="light"] .account-phone-combo .auth-phone-input,
html[data-theme="light"] .ai-agent-panel-compose input[type="text"],
html[data-theme="light"] .catalog-search-field input,
html[data-theme="light"] .catalog-price-input,
html[data-theme="light"] .product-search-field input,
html[data-theme="light"] .orders-search input,
html[data-theme="light"] .checkout-promo-field input,
html[data-theme="light"] .ui-select-trigger {
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text) !important;
}

html[data-theme="light"] .auth-input-wrap input::placeholder,
html[data-theme="light"] .auth-input-plain::placeholder,
html[data-theme="light"] .auth-phone-input::placeholder,
html[data-theme="light"] .otp-code-input::placeholder,
html[data-theme="light"] .product-customer-input::placeholder,
html[data-theme="light"] .product-customer-textarea::placeholder,
html[data-theme="light"] .account-phone-combo .auth-phone-input::placeholder,
html[data-theme="light"] .ai-agent-panel-compose input::placeholder,
html[data-theme="light"] .catalog-search-field input::placeholder,
html[data-theme="light"] .product-search-field input::placeholder,
html[data-theme="light"] .orders-search input::placeholder {
  color: var(--text-faint) !important;
  -webkit-text-fill-color: var(--text-faint) !important;
  opacity: 1;
}

html[data-theme="light"] .auth-channel-tab:not(.is-active),
html[data-theme="light"] .auth-password-toggle {
  color: var(--text-muted) !important;
}

html[data-theme="light"] .auth-channel-tab.is-active,
html[data-theme="light"] .auth-back-btn {
  color: var(--text) !important;
}

html[data-theme="light"] .auth-back-btn {
  background: rgba(255, 255, 255, 0.92) !important;
}

/* Keep primary / accent CTAs readable (white on pink) */
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .auth-submit,
html[data-theme="light"] .product-card-buy:not(.is-disabled),
html[data-theme="light"] .header-add-funds-btn,
html[data-theme="light"] .sidebar-add-funds,
html[data-theme="light"] .wallet-funds-btn,
html[data-theme="light"] .wallet-funds-btn span,
html[data-theme="light"] .wallet-funds-btn svg,
html[data-theme="light"] .market-add-balance,
html[data-theme="light"] .badge,
html[data-theme="light"] .ai-agent-panel-send,
html[data-theme="light"] .otp-resend-btn.is-ready {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* ==========================================================================
   Light mode — auth / signup / country picker polish
   ========================================================================== */
html[data-theme="light"] .auth-screen-body,
html[data-theme="light"] .auth-screen,
html[data-theme="light"] .auth-panel {
  background: var(--bg) !important;
  color: var(--text) !important;
  color-scheme: light !important;
}

html[data-theme="light"] .auth-divider span {
  background: var(--bg) !important;
  color: var(--text-muted) !important;
}

html[data-theme="light"] .auth-divider::before {
  background: rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .auth-input-wrap,
html[data-theme="light"] .auth-input-plain,
html[data-theme="light"] .auth-phone-combo,
html[data-theme="light"] .otp-box,
html[data-theme="light"] .otp-code-input {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
}

html[data-theme="light"] .auth-input-wrap svg,
html[data-theme="light"] .auth-input-icon,
html[data-theme="light"] .auth-password-toggle,
html[data-theme="light"] .auth-country-caret {
  color: var(--text-muted) !important;
}

html[data-theme="light"] .auth-country-trigger,
html[data-theme="light"] .auth-country-dial,
html[data-theme="light"] .auth-country-option-name,
html[data-theme="light"] .auth-country-sheet-head strong {
  color: var(--text) !important;
}

html[data-theme="light"] .auth-country-option-dial,
html[data-theme="light"] .auth-country-empty,
html[data-theme="light"] .auth-required-mark {
  color: var(--text-muted) !important;
}

html[data-theme="light"] .auth-country-sheet-panel {
  background: #ffffff !important;
  color: var(--text) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 -16px 40px rgba(15, 23, 42, 0.18) !important;
}

html[data-theme="light"] .auth-country-sheet-backdrop {
  background: rgba(15, 23, 42, 0.42) !important;
}

html[data-theme="light"] .auth-country-search input {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text) !important;
}

html[data-theme="light"] .auth-country-search input::placeholder {
  color: var(--text-faint) !important;
  -webkit-text-fill-color: var(--text-faint) !important;
}

html[data-theme="light"] .auth-country-search input:focus {
  border-color: rgba(217, 22, 90, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(217, 22, 90, 0.12) !important;
  background: #ffffff !important;
}

html[data-theme="light"] .auth-country-option:hover,
html[data-theme="light"] .auth-country-option:focus-visible {
  background: rgba(var(--accent-rgb), 0.08) !important;
}

html[data-theme="light"] .auth-country-option.is-selected {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.14), rgba(190, 18, 60, 0.08)) !important;
  color: var(--text) !important;
}

html[data-theme="light"] .auth-country-sheet-close {
  background: rgba(15, 23, 42, 0.06) !important;
  color: var(--text) !important;
}

html[data-theme="light"] .auth-social-btn,
html[data-theme="light"] .auth-social-btn--google,
html[data-theme="light"] .auth-social-btn--facebook {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}

html[data-theme="light"] .auth-social-btn:hover,
html[data-theme="light"] .auth-social-btn--google:hover,
html[data-theme="light"] .auth-social-btn--facebook:hover {
  background: #fff5f8 !important;
  border-color: rgba(var(--accent-rgb), 0.28) !important;
  color: var(--text) !important;
}

html[data-theme="light"] .auth-alert {
  background: #fff5f8 !important;
  border-color: rgba(var(--accent-rgb), 0.28) !important;
  color: var(--pink-deep) !important;
}

html[data-theme="light"] .auth-alert--success {
  background: #ecfdf5 !important;
  border-color: rgba(4, 120, 87, 0.28) !important;
  color: #047857 !important;
}

html[data-theme="light"] .auth-change-contact {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .auth-change-contact summary,
html[data-theme="light"] .auth-switch a,
html[data-theme="light"] .auth-switch-link,
html[data-theme="light"] .auth-terms a,
html[data-theme="light"] .auth-forgot-link {
  color: var(--pink-deep) !important;
}

html[data-theme="light"] .auth-submit--secondary {
  background: #ffffff !important;
  border-color: rgba(var(--accent-rgb), 0.35) !important;
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
}

html[data-theme="light"] .otp-resend-btn:not(.is-ready),
html[data-theme="light"] .auth-link-btn {
  color: var(--text-muted) !important;
  -webkit-text-fill-color: var(--text-muted) !important;
}

html[data-theme="light"] .otp-box,
html[data-theme="light"] .otp-code-input {
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
}

/* Light mode — links stay readable after tap / visit (no white-on-white) */
html[data-theme="light"] a:visited {
  color: inherit;
}

html[data-theme="light"] .orders-tab,
html[data-theme="light"] .orders-tab:visited,
html[data-theme="light"] .orders-tab:hover,
html[data-theme="light"] .orders-tab:active,
html[data-theme="light"] .orders-tab:focus {
  color: var(--text-muted) !important;
  -webkit-text-fill-color: var(--text-muted) !important;
}

html[data-theme="light"] .orders-tab.is-active,
html[data-theme="light"] .orders-tab.is-active:visited,
html[data-theme="light"] .orders-tab.is-active:hover,
html[data-theme="light"] .orders-tab.is-active:active,
html[data-theme="light"] .orders-tab.is-active:focus {
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
}

html[data-theme="light"] .orders-date-chip,
html[data-theme="light"] .orders-date-chip:visited,
html[data-theme="light"] .orders-date-chip:hover,
html[data-theme="light"] .orders-date-chip:active {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
}

html[data-theme="light"] .orders-date-chip.is-active,
html[data-theme="light"] .orders-date-chip.is-active:visited,
html[data-theme="light"] .orders-date-chip.is-active:hover,
html[data-theme="light"] .orders-date-chip.is-active:active {
  color: #9d174d !important;
  -webkit-text-fill-color: #9d174d !important;
}

html[data-theme="light"] .orders-crumb a,
html[data-theme="light"] .orders-crumb a:visited,
html[data-theme="light"] .orders-crumb a:hover,
html[data-theme="light"] .orders-th-sort,
html[data-theme="light"] .orders-th-sort:visited,
html[data-theme="light"] .orders-export-btn,
html[data-theme="light"] .orders-export-btn:visited,
html[data-theme="light"] .orders-page-btn,
html[data-theme="light"] .orders-page-btn:visited,
html[data-theme="light"] .od-back,
html[data-theme="light"] .od-back:visited,
html[data-theme="light"] .account-settings-link,
html[data-theme="light"] .account-settings-link:visited,
html[data-theme="light"] .account-order-compact-link,
html[data-theme="light"] .account-order-compact-link:visited,
html[data-theme="light"] .api-hub-tabs__link,
html[data-theme="light"] .api-hub-tabs__link:visited,
html[data-theme="light"] .footer-col a:visited,
html[data-theme="light"] .footer-accordion-panel a,
html[data-theme="light"] .footer-accordion-panel a:visited,
html[data-theme="light"] .catalog-breadcrumb a,
html[data-theme="light"] .catalog-breadcrumb a:visited,
html[data-theme="light"] .sidebar-dash-link:visited {
  color: inherit;
  -webkit-text-fill-color: inherit;
}

html[data-theme="light"] .orders-view-btn,
html[data-theme="light"] .orders-view-btn:visited,
html[data-theme="light"] .orders-view-btn:hover,
html[data-theme="light"] .orders-view-btn:active {
  color: var(--badge-text, var(--pink-hot)) !important;
  -webkit-text-fill-color: var(--badge-text, var(--pink-hot)) !important;
}

html[data-theme="light"] .orders-m-view,
html[data-theme="light"] .orders-m-view:visited,
html[data-theme="light"] .orders-m-view:hover,
html[data-theme="light"] .orders-m-view:active {
  color: #be185d !important;
  -webkit-text-fill-color: #be185d !important;
}

html[data-theme="light"] .settings-hub-link.is-active,
html[data-theme="light"] .settings-hub-link.is-active:visited,
html[data-theme="light"] .settings-hub-link.is-active .settings-hub-icon {
  color: #0b1220 !important;
  -webkit-text-fill-color: #0b1220 !important;
}

html[data-theme="light"] .settings-hub-link.is-active {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.14) 0%, rgba(var(--accent-rgb), 0.04) 72%, transparent 100%);
}

html[data-theme="light"][dir="rtl"] .settings-hub-link.is-active {
  background: linear-gradient(270deg, rgba(var(--accent-rgb), 0.14) 0%, rgba(var(--accent-rgb), 0.04) 72%, transparent 100%);
}

html[data-theme="light"] .btn-primary:visited,
html[data-theme="light"] .btn-primary:hover,
html[data-theme="light"] .product-card-buy:visited,
html[data-theme="light"] .cart-btn:visited,
html[data-theme="light"] .od-btn-gradient:visited,
html[data-theme="light"] .header-add-funds-btn:visited,
html[data-theme="light"] .catalog-filter.is-active:visited {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}


/* Passkeys */
.sec-passkey-list{list-style:none;margin:0 0 1rem;padding:0;display:grid;gap:.75rem}
.sec-passkey-item{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:.75rem;padding:.85rem 0;border-bottom:1px solid color-mix(in srgb, var(--border, #ddd) 80%, transparent)}
.sec-passkey-item:last-child{border-bottom:0}
.sec-passkey-remove{display:grid;gap:.5rem;justify-items:end}
.sec-passkey-actions{display:grid;gap:.5rem;justify-items:start}

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

.sec-pk-card {
    display: grid;
    gap: 0.9rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.95rem 0.95rem 1rem;
    border: 1px solid color-mix(in srgb, var(--pink) 22%, rgba(255, 255, 255, 0.08));
    border-radius: 1.05rem;
    background: color-mix(in srgb, #12121a 88%, #1c1230);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.sec-pk-card.is-current {
    border-color: color-mix(in srgb, var(--pink) 38%, rgba(255, 255, 255, 0.1));
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.22),
        0 0 0 1px color-mix(in srgb, var(--pink) 12%, transparent);
}

.sec-pk-card__top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem 0.75rem;
    align-items: start;
    width: 100%;
}

.sec-pk-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 0.85rem;
    background: color-mix(in srgb, var(--pink) 14%, transparent);
    color: var(--pink);
    flex-shrink: 0;
}

.sec-pk-card__head {
    min-width: 0;
    max-width: 100%;
}

.sec-pk-card__title {
    margin: 0;
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.sec-pk-card__meta,
.sec-pk-card__added {
    margin: 0.28rem 0 0;
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.35;
}

.sec-pk-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.28rem 0.35rem;
    color: #cbd5e1;
    font-weight: 650;
}

.sec-pk-card__live {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
    flex-shrink: 0;
}

.sec-pk-card__dot {
    opacity: 0.55;
}

.sec-pk-card__remove {
    display: grid;
    gap: 0.45rem;
    justify-items: end;
    min-width: 0;
}

.sec-pk-card__remove-btn {
    min-height: 2.35rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid color-mix(in srgb, #fb7185 55%, transparent);
    border-radius: 0.7rem;
    background: transparent;
    color: #fda4af;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.sec-pk-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 0.85rem;
    margin: 0;
    padding-top: 0.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sec-pk-card__fact {
    min-width: 0;
}

.sec-pk-card__fact dt {
    margin: 0 0 0.18rem;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.sec-pk-card__fact dd {
    margin: 0;
    color: #f1f5f9;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: break-word;
}

html[data-theme="light"] .sec-pk-card {
    background: #fff;
    border-color: color-mix(in srgb, var(--pink) 18%, #e2e8f0);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .sec-pk-card__title,
html[data-theme="light"] .sec-pk-card__fact dd {
    color: #0f172a;
}

html[data-theme="light"] .sec-pk-card__meta,
html[data-theme="light"] .sec-pk-card__added,
html[data-theme="light"] .sec-pk-card__fact dt {
    color: #64748b;
}

html[data-theme="light"] .sec-pk-card__grid {
    border-top-color: rgba(15, 23, 42, 0.08);
}

@media (max-width: 767px) {
    .sec-pk-list,
    .sec-pk-card,
    .sec-pk-card__top,
    .sec-pk-card__grid {
        width: 100%;
        max-width: 100%;
    }

    .sec-pk-card {
        padding: 0.85rem 0.8rem 0.9rem;
    }

    .sec-pk-card__top {
        grid-template-columns: 2.55rem minmax(0, 1fr);
    }

    .sec-pk-card__remove {
        grid-column: 1 / -1;
        justify-items: start;
    }

    .sec-pk-card__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem 0.7rem;
    }

    .sec-pk-card__title,
    .sec-pk-card__meta,
    .sec-pk-card__added,
    .sec-pk-card__fact dd {
        overflow-wrap: break-word;
        word-break: normal;
    }
}

@media (max-width: 359px) {
    .sec-pk-card__top {
        grid-template-columns: 2.35rem minmax(0, 1fr);
    }

    .sec-pk-card__title {
        font-size: 0.98rem;
    }
}

.account-hub--api-docs .account-hub-head {
    margin-bottom: 0.85rem;
}

.api-docs-page {
    display: grid;
    gap: 0.85rem;
}

.api-docs-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    position: sticky;
    top: calc(var(--header-height, 3.5rem) + 0.35rem);
    z-index: 4;
    padding: 0.45rem 0.15rem 0.55rem;
    background: color-mix(in srgb, var(--bg, #0b1018) 92%, transparent);
    backdrop-filter: blur(8px);
}

.api-docs-toc a {
    display: inline-flex;
    align-items: center;
    min-height: 2.2rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}

.api-docs-toc a:hover,
.api-docs-toc a:focus-visible {
    border-color: rgba(var(--accent-rgb), 0.4);
    color: var(--pink-hot);
}

.api-docs-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 280px;
    scroll-margin-top: 5.5rem;
}

@media (max-width: 430px) {
    .api-docs-toc {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .api-docs-toc::-webkit-scrollbar {
        display: none;
    }

    .api-docs-toc a {
        flex-shrink: 0;
    }

    .api-docs-section .account-code-block,
    .api-docs-section .api-docs-table-wrap {
        max-width: 100%;
        overflow-x: auto;
    }
}

/* API docs: keep wide tables and code inside the page on small screens. */
.api-docs,
.api-docs .api-hub-tabs,
.api-docs .api-hub-card,
.api-docs .api-docs-fold,
.api-docs .api-hub-card__head,
.api-docs .api-hub-card__head > div,
.api-docs .api-docs-callout,
.api-docs .api-docs-endpoint,
.api-docs .api-docs-table-wrap,
.api-docs .account-code-block {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.api-docs .api-hub-card__head > div,
.api-docs .api-docs-callout,
.api-docs .api-docs-note {
  overflow-wrap: anywhere;
}

.api-docs .account-code-block {
  grid-template-columns: minmax(0, 1fr);
}

.api-docs .account-code-block pre {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.api-docs .account-code-block pre code {
  word-break: normal;
  overflow-wrap: normal;
  white-space: pre;
}

.api-docs .api-docs-table-wrap {
  display: block;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1023px) {
  .api-docs .api-docs-table {
    width: 100%;
    table-layout: fixed;
  }

  .api-docs .api-docs-table th:first-child,
  .api-docs .api-docs-table td:first-child {
    width: 38%;
    white-space: normal;
  }

  .api-docs .api-docs-table th,
  .api-docs .api-docs-table td {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.has-mobile-home-tab .account-hub--api-docs {
    padding-bottom: calc(1.75rem + var(--app-tab-clearance) + var(--app-pwa-clearance) + var(--safe-bottom));
  }
}

/* ── Customer wallet / transactions (UI only) ── */
@keyframes ht-wallet-sheen {
  from { background-position: 120% 0; }
  to { background-position: -20% 0; }
}

.ht-wallet-page {
  overflow-x: clip;
}

.ht-wallet {
  display: grid;
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
}

.ht-wallet-head {
  align-items: center;
}

.ht-wallet-head__eyebrow {
  margin: 0 0 0.28rem;
  color: var(--pink-hot);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ht-wallet-head h1 {
  font-size: clamp(1.45rem, 5.2vw, 2.15rem);
  letter-spacing: -0.03em;
}

.ht-wallet-head .od-btn {
  flex-shrink: 0;
  min-height: 44px;
  white-space: nowrap;
}

.ht-wallet-summary {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.ht-wallet-summary__side {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.ht-wallet-balance {
  position: relative;
  display: grid;
  gap: 0.4rem;
  padding: 1.25rem 1.2rem 1.3rem;
  border-radius: 24px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(var(--accent-rgb), 0.28), transparent 46%),
    radial-gradient(circle at 100% 100%, rgba(var(--accent-rgb), 0.1), transparent 42%),
    linear-gradient(155deg, color-mix(in srgb, var(--surface-ghost) 88%, #1a0f16), var(--surface-ghost));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.ht-wallet-balance::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--pink-hot), transparent 78%);
}

.ht-wallet-balance > span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ht-wallet-balance strong {
  font-size: clamp(1.95rem, 7.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  overflow-wrap: anywhere;
  background: linear-gradient(90deg, var(--text) 0%, var(--text) 42%, var(--pink-hot) 78%, var(--text) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ht-wallet-sheen 4.8s ease-in-out infinite;
}

.ht-wallet-last,
.ht-wallet-stats,
.ht-wallet-tx {
  min-width: 0;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
}

.ht-wallet-last {
  padding: 0.95rem 1rem 1.05rem;
}

.ht-wallet-last h2 {
  margin: 0 0 0.7rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ht-wallet-last__empty,
.ht-wallet-last__single {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.ht-wallet-last__single {
  display: grid;
  gap: 0.15rem;
}

.ht-wallet-last__single strong {
  color: #4ade80;
  font-size: 1.08rem;
}

.ht-wallet-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.ht-wallet-stat {
  display: grid;
  justify-items: center;
  gap: 0.18rem;
  min-width: 0;
  padding: 0.8rem 0.4rem 0.85rem;
  text-align: center;
}

.ht-wallet-stat + .ht-wallet-stat {
  border-inline-start: 1px solid var(--border);
}

.ht-wallet-stat__icon {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  color: var(--pink-hot);
}

.ht-wallet-stat > span:not(.ht-wallet-stat__icon) {
  color: var(--text-muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ht-wallet-stat strong {
  font-size: clamp(0.86rem, 3.4vw, 1.02rem);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.ht-wallet-activity {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.ht-wallet-activity__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.ht-wallet-activity__head h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ht-wallet-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.ht-wallet-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  padding: 0 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  color: var(--text-muted);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ht-wallet-search:focus-within {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}

.ht-wallet-search input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  outline: none;
}

.ht-wallet-filter {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-ghost);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.ht-wallet-filter:active {
  transform: scale(0.96);
}

.ht-wallet-filter[aria-expanded="true"] {
  border-color: rgba(var(--accent-rgb), 0.45);
  color: var(--pink-hot);
}

.ht-wallet-chips {
  display: flex;
  gap: 0.45rem;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
  padding: 0.05rem 0.1rem 0.2rem;
  /* Keep last chips clear of the floating support dock on mobile. */
  padding-inline-end: calc(0.35rem + var(--dock-size, 48px) + 0.85rem);
}

/* Class display:flex/grid must not defeat the HTML hidden attribute (filters). */
.ht-wallet-chips[hidden],
.ht-wallet-empty--filter[hidden],
.ht-wallet-tx[hidden],
[data-wallet-tx-card][hidden] {
  display: none !important;
}

.ht-wallet-chips::-webkit-scrollbar {
  display: none;
}

.ht-wallet-chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.ht-wallet-chip:active {
  transform: scale(0.97);
}

.ht-wallet-chip.is-active {
  border-color: transparent;
  background: var(--pink-hot);
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--pink-hot) 28%, transparent);
}

.ht-wallet-list {
  display: grid;
  gap: 0.75rem;
  padding-bottom: 0.35rem;
}

@media (max-width: 1023px) {
  body.has-mobile-home-tab .ht-wallet-page .ht-wallet-list {
    padding-bottom: calc(0.75rem + var(--app-dock-gap) + var(--dock-size, 48px));
  }

  /*
   * Fixed bottom tab bar (z-index 70) and support dock (z-index 60) sit above
   * in-flow content. Elevate tappable wallet actions so mobile taps are not
   * stolen when a control sits in the translucent chrome band.
   */
  body.has-mobile-home-tab .ht-wallet-tx__copy,
  body.has-mobile-home-tab .ht-wallet-tx__order {
    position: relative;
    z-index: 80;
    scroll-margin-bottom: calc(1rem + var(--app-tab-clearance) + var(--safe-bottom));
  }
}

.ht-wallet-tx {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1rem 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .ht-wallet-tx:hover {
    border-color: rgba(var(--accent-rgb), 0.28);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  }
}

.ht-wallet-tx.is-pending {
  border-color: rgba(255, 193, 7, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 193, 7, 0.08), transparent 58%),
    var(--surface-ghost);
}

.ht-wallet-tx.is-cancelled {
  opacity: 0.92;
}

.ht-wallet-tx__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: start;
}

.ht-wallet-tx__icon {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.ht-wallet-tx__icon img {
  max-width: 2.4rem;
  max-height: 1.3rem;
  object-fit: contain;
}

.ht-wallet-tx__icon span {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--pink-hot);
}

.ht-wallet-tx__who {
  min-width: 0;
}

.ht-wallet-tx__who strong,
.ht-wallet-tx__who span {
  display: block;
  overflow-wrap: anywhere;
}

.ht-wallet-tx__who strong {
  font-size: 0.95rem;
  line-height: 1.25;
}

.ht-wallet-tx__who span {
  margin-top: 0.14rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.ht-wallet-tx__amount {
  font-size: 1.02rem;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.ht-wallet-tx__amount.is-credit {
  color: #4ade80;
}

.ht-wallet-tx__amount.is-debit {
  color: #fb7185;
}

.ht-wallet-tx__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.65rem;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.ht-wallet-tx__status {
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.ht-wallet-tx__status.is-completed {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
}

.ht-wallet-tx__status.is-pending {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

.ht-wallet-tx__status.is-cancelled {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.28);
  background: rgba(251, 113, 133, 0.08);
}

.ht-wallet-tx__status.is-refunded {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.08);
}

.ht-wallet-calc {
  display: flex;
  align-items: stretch;
  gap: 0.28rem;
  min-width: 0;
}

.ht-wallet-calc__box {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  gap: 0.12rem;
  padding: 0.5rem 0.28rem 0.48rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-ghost) 70%, transparent);
  text-align: center;
}

.ht-wallet-calc__box strong {
  font-size: clamp(0.78rem, 3.5vw, 0.92rem);
  font-weight: 800;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.ht-wallet-calc__box span {
  color: var(--text-muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ht-wallet-calc__box--fee strong {
  color: #fb7185;
}

.ht-wallet-calc__box--got strong {
  color: #4ade80;
}

.ht-wallet-calc__arrow {
  flex: 0 0 auto;
  align-self: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

html[dir="rtl"] .ht-wallet-calc__arrow {
  transform: scaleX(-1);
}

.ht-wallet-tx__foot {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  padding-top: 0.15rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
}

.ht-wallet-tx__refs {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.74rem;
}

.ht-wallet-tx__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  min-width: 0;
}

.ht-wallet-tx__ref-label {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--text-muted);
}

.ht-wallet-tx__ref-value,
.ht-wallet-tx__id {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--text-soft);
}

.ht-wallet-tx__row--id {
  align-items: center;
}

.ht-wallet-tx__copy {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin: 0;
  margin-inline-end: -0.35rem;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 0.16s ease, background 0.16s ease;
}

.ht-wallet-tx__copy:hover,
.ht-wallet-tx__copy:focus-visible,
.ht-wallet-tx__copy.is-copied {
  color: var(--pink-hot);
  background: rgba(var(--accent-rgb), 0.1);
}

.ht-wallet-tx__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ht-wallet-tx__order,
.ht-wallet-tx__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: color-mix(in srgb, var(--pink-hot) 14%, transparent);
  color: var(--pink-hot);
  font-weight: 800;
  font-size: 0.86rem;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.ht-wallet-tx__action:active {
  transform: scale(0.98);
}

.ht-wallet-tx__action--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-soft);
}

.ht-wallet-tx__action--ghost:hover,
.ht-wallet-tx__action--ghost:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.4);
  color: var(--pink-hot);
}

.ht-wallet-empty {
  margin-top: 0.2rem;
}

.ht-wallet-empty--filter {
  justify-items: center;
  text-align: center;
  padding: 1.4rem 0.75rem;
  border-radius: 18px;
  border: 1px dashed var(--border);
}

.wallet-tx-meta {
  margin: 0.15rem 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: center;
}

@media (max-width: 767px) {
  .ht-wallet-page.wallet-page .orders-page-head-row {
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
  }

  .ht-wallet-page.wallet-page .od-btn {
    width: auto;
    justify-content: center;
  }

  .ht-wallet-head .orders-page-subtitle {
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .ht-wallet-calc {
    gap: 0.18rem;
  }

  .ht-wallet-calc__arrow {
    font-size: 0.7rem;
  }

  .ht-wallet-calc__box {
    padding: 0.42rem 0.15rem 0.4rem;
  }
}

@media (max-width: 320px) {
  .ht-wallet-calc {
    flex-wrap: wrap;
    justify-content: center;
  }

  .ht-wallet-calc__box {
    flex: 1 1 calc(33% - 0.4rem);
  }
}

@media (min-width: 768px) {
  .ht-wallet-summary {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 0.9rem;
  }

  .ht-wallet-summary__side {
    gap: 0.9rem;
  }

  .ht-wallet-balance {
    height: 100%;
    align-content: center;
    padding: 1.45rem 1.5rem;
  }

  .ht-wallet-tx__foot {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1rem;
  }

  .ht-wallet-tx__actions {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ht-wallet-balance strong {
    animation: none !important;
  }
}

html[data-theme="light"] .ht-wallet-balance {
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--accent-rgb), 0.14), transparent 46%),
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.06), #ffffff 62%);
  border-color: rgba(var(--accent-rgb), 0.18);
  color: var(--text);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .ht-wallet-balance strong {
  background: none;
  color: var(--text);
  -webkit-background-clip: unset;
  background-clip: unset;
  animation: none;
}

html[data-theme="light"] .ht-wallet-last,
html[data-theme="light"] .ht-wallet-stats,
html[data-theme="light"] .ht-wallet-tx,
html[data-theme="light"] .ht-wallet-search,
html[data-theme="light"] .ht-wallet-filter,
html[data-theme="light"] .ht-wallet-calc__box,
html[data-theme="light"] .ht-wallet-tx__icon,
html[data-theme="light"] .ht-wallet-empty--filter {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}

html[data-theme="light"] .ht-wallet-tx.is-pending {
  background:
    linear-gradient(180deg, rgba(180, 83, 9, 0.06), transparent 58%),
    var(--bg-card);
}

html[data-theme="light"] .ht-wallet-chip:not(.is-active) {
  background: #fff;
  color: var(--text-muted);
}

html[data-theme="light"] .ht-wallet-tx__amount.is-credit,
html[data-theme="light"] .ht-wallet-calc__box--got strong,
html[data-theme="light"] .ht-wallet-last__single strong {
  color: #15803d;
}

html[data-theme="light"] .ht-wallet-tx__amount.is-debit,
html[data-theme="light"] .ht-wallet-calc__box--fee strong {
  color: #be123c;
}

html[data-theme="light"] .ht-wallet-tx__status.is-completed {
  color: #15803d;
  background: rgba(21, 128, 61, 0.08);
}

html[data-theme="light"] .ht-wallet-tx__status.is-pending {
  color: #b45309;
  background: rgba(180, 83, 9, 0.08);
}

html[data-theme="light"] .ht-wallet-tx__status.is-cancelled {
  color: #be123c;
  background: rgba(190, 18, 60, 0.08);
}

html[data-theme="light"] .ht-wallet-tx__action {
  background: rgba(var(--accent-rgb), 0.08);
}

html[data-theme="light"] .ht-wallet-tx__ref-value,
html[data-theme="light"] .ht-wallet-tx__id {
  color: var(--text);
}

/* Register page — premium dark card, scoped so login is unchanged */
body.auth-screen-body.is-register-auth {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
}

.auth-screen[data-auth-mode="register"] {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(var(--accent-rgb), 0.14), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(139, 92, 246, 0.12), transparent 36%),
    radial-gradient(circle at 50% 100%, rgba(var(--accent-rgb), 0.06), transparent 42%),
    #070912;
}

.auth-screen[data-auth-mode="register"]::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 0.6px, transparent 0.6px);
  background-size: 18px 18px;
}

.auth-screen[data-auth-mode="register"] .auth-visual {
  display: none !important;
}

.auth-screen[data-auth-mode="register"] .auth-split,
.auth-screen[data-auth-mode="register"] .auth-panel {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.auth-screen[data-auth-mode="register"] .auth-back-btn {
  min-height: 44px;
  padding: 0 1rem 0 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  background: rgba(11, 13, 22, 0.72);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 650;
}

.auth-screen[data-auth-mode="register"] .auth-theme-toggle {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  inset-inline-end: max(1rem, env(safe-area-inset-right));
  z-index: 30;
}

.auth-screen[data-auth-mode="register"] .auth-theme-toggle .theme-selector {
  gap: 0.12rem;
  padding: 0.18rem;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  background: rgba(11, 13, 22, 0.72);
  backdrop-filter: blur(10px);
}

.auth-screen[data-auth-mode="register"] .auth-theme-toggle .theme-selector--compact .theme-selector-btn {
  flex: 0 0 auto;
  flex-direction: row;
  min-height: 36px;
  min-width: 36px;
  padding: 0.28rem;
  gap: 0;
}

.auth-screen[data-auth-mode="register"] .auth-theme-toggle .theme-selector-btn-text {
  display: none;
}

.auth-screen[data-auth-mode="register"] .auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding:
    max(4.6rem, calc(env(safe-area-inset-top, 0px) + 3.4rem))
    max(1rem, env(safe-area-inset-right, 0px))
    max(1.1rem, env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
}

.auth-screen[data-auth-mode="register"] .auth-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 440px;
  max-height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 1.15rem 1.1rem 1.2rem;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-radius: 1.15rem;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background: rgba(16, 18, 28, 0.92);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(139, 92, 246, 0.08);
}

.auth-screen[data-auth-mode="register"] .auth-brand {
  display: flex;
  justify-content: center;
  margin: 0 0 0.85rem;
}

.auth-screen[data-auth-mode="register"] .auth-brand-logo,
.auth-screen[data-auth-mode="register"] .auth-brand img {
  width: 148px;
  height: auto;
  max-width: 42vw;
}

.auth-screen[data-auth-mode="register"] .auth-heading {
  text-align: center;
}

.auth-screen[data-auth-mode="register"] .auth-heading h1 {
  margin: 0;
  font-size: clamp(1.45rem, 6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #fff;
}

.auth-screen[data-auth-mode="register"] .auth-title-accent {
  color: var(--pink);
}

.auth-screen[data-auth-mode="register"] .auth-heading p {
  display: block !important;
  margin: 0.4rem 0 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #94a3b8;
}

.auth-screen[data-auth-mode="register"] .auth-form--register {
  margin-top: 1rem;
  gap: 0.72rem;
}

.auth-screen[data-auth-mode="register"] .auth-field > span {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.auth-screen[data-auth-mode="register"] .auth-required-mark {
  display: none;
}

.auth-screen[data-auth-mode="register"] .auth-input-wrap,
.auth-screen[data-auth-mode="register"] .auth-phone-combo {
  min-height: 48px;
  border-radius: 12px;
  border-color: var(--border);
  background: rgba(7, 9, 18, 0.72);
}

.auth-screen[data-auth-mode="register"] .auth-input-wrap:focus-within,
.auth-screen[data-auth-mode="register"] .auth-phone-combo:focus-within {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}

.auth-screen[data-auth-mode="register"] .auth-input-wrap:focus-within svg {
  color: var(--pink);
}

.auth-screen[data-auth-mode="register"] .auth-input-wrap input,
.auth-screen[data-auth-mode="register"] .auth-phone-input {
  font-size: 0.95rem;
}

.auth-screen[data-auth-mode="register"] .auth-name-stack {
  gap: 0.65rem;
}

.auth-screen[data-auth-mode="register"] .auth-terms {
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

.auth-screen[data-auth-mode="register"] .auth-terms input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--pink);
}

.auth-screen[data-auth-mode="register"] .auth-terms a {
  color: var(--pink);
}

.auth-screen[data-auth-mode="register"] .auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 50px;
  margin-top: 0.15rem;
  border-radius: 13px;
  background: linear-gradient(135deg, #ff4d8d, var(--pink) 55%, #d9165a);
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.28);
  font-size: 0.98rem;
}

.auth-screen[data-auth-mode="register"] .auth-submit svg {
  width: 18px;
  height: 18px;
}

.auth-screen[data-auth-mode="register"] .auth-divider {
  display: flex !important;
  margin: 1rem 0 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.auth-screen[data-auth-mode="register"] .auth-social-stack {
  display: grid !important;
  grid-template-columns: 1fr !important;
}

.auth-screen[data-auth-mode="register"] .auth-social-btn {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(7, 9, 18, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-screen[data-auth-mode="register"] .auth-switch {
  margin: 0.95rem 0 0;
  text-align: center;
  font-size: 0.86rem;
  color: #94a3b8;
}

.auth-screen[data-auth-mode="register"] .auth-switch-link,
.auth-screen[data-auth-mode="register"] .auth-switch a {
  color: var(--pink);
  font-weight: 800;
}

[dir="rtl"] .auth-screen[data-auth-mode="register"] .auth-submit svg,
[dir="rtl"] .auth-screen[data-auth-mode="register"] .auth-back-btn svg {
  transform: scaleX(-1);
}

@media (max-width: 359px) {
  .auth-screen[data-auth-mode="register"] .auth-name-stack {
    grid-template-columns: 1fr;
  }

  .auth-screen[data-auth-mode="register"] .auth-card {
    padding: 0.95rem 0.85rem 1rem;
  }

  .auth-screen[data-auth-mode="register"] .auth-heading h1 {
    font-size: 1.32rem;
  }
}

@media (max-width: 899px) and (max-height: 780px) {
  .auth-screen[data-auth-mode="register"] .auth-heading p {
    display: block !important;
  }
}

@media (max-width: 899px) and (max-height: 620px) {
  .auth-screen[data-auth-mode="register"] .auth-divider,
  .auth-screen[data-auth-mode="register"] .auth-social-stack {
    display: flex !important;
  }

  .auth-screen[data-auth-mode="register"] .auth-social-stack {
    display: grid !important;
  }
}

@media (min-width: 900px) {
  .auth-screen[data-auth-mode="register"] .auth-card {
    padding: 1.45rem 1.4rem 1.5rem;
  }
}

/* Register page — premium light card (follows site theme, logos swap via brand-logo rules) */
html[data-theme="light"] body.is-register-auth.auth-screen-body,
html[data-theme="light"] .auth-screen[data-auth-mode="register"],
html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-panel,
html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-split {
  background:
    radial-gradient(circle at 18% 8%, rgba(var(--accent-rgb), 0.10), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(139, 92, 246, 0.08), transparent 36%),
    radial-gradient(circle at 50% 100%, rgba(var(--accent-rgb), 0.05), transparent 42%),
    #f4f6fb !important;
  color: var(--text) !important;
  color-scheme: light !important;
}

html[data-theme="light"] .auth-screen[data-auth-mode="register"]::before {
  opacity: 0.4;
  background-image: radial-gradient(rgba(15, 23, 42, 0.06) 0.6px, transparent 0.6px);
}

html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-card {
  background: #ffffff !important;
  border-color: rgba(var(--accent-rgb), 0.14) !important;
  color: var(--text) !important;
  box-shadow:
    0 18px 48px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(139, 92, 246, 0.06) !important;
}

html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-heading h1 {
  color: var(--text) !important;
}

html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-heading p,
html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-field > span,
html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-terms,
html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-switch {
  color: var(--text-muted) !important;
}

html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-divider span {
  color: var(--text-muted) !important;
  background: #ffffff !important;
}

html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-title-accent,
html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-terms a,
html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-switch-link,
html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-switch a {
  color: var(--pink) !important;
}

html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-input-wrap,
html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-phone-combo,
html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-social-btn {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
}

html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-input-wrap input,
html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-phone-input,
html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-password-input,
html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-country-dial,
html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-social-btn {
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
}

html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-back-btn {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(var(--accent-rgb), 0.22) !important;
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
}

html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-theme-toggle .theme-selector {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(var(--accent-rgb), 0.22);
}

html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-theme-toggle .theme-selector-btn {
  color: var(--text-muted);
}

html[data-theme="light"] .auth-screen[data-auth-mode="register"] .auth-theme-toggle .theme-selector-btn.is-active {
  background: var(--pink);
  color: #fff;
}

/* Compact phones: keep 3 product/category tiles per row on every phone. */
@media (max-width: 414px) {
  .product-grid,
  .product-grid--catalog:not(.is-list),
  .home-auth-product-grid:not(.home-auth-product-grid--single-row),
  .home-auth .type-card-grid--compact,
  .type-card-grid,
  .type-card-grid--compact,
  .type-card-grid--filter,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.42rem;
  }

  .product-card--shop h3,
  .product-card-caption h3 {
    font-size: 0.68rem;
    -webkit-line-clamp: 2;
  }

  .product-card-price,
  .product-buy-unit {
    flex-wrap: wrap;
  }

  .product-card-price strong {
    font-size: 0.78rem;
  }

  .product-card-price.is-rate strong {
    font-size: 0.72rem;
  }

  .product-card-delivery,
  .product-price-badge strong,
  .product-price-badge s {
    white-space: normal;
  }

  .type-card-grid--compact .type-card-body h3,
  .type-card-body h3 {
    max-width: none;
  }
}

@media (max-width: 390px) {
  .container,
  .site-header .header-inner {
    width: min(1200px, calc(100% - 0.9rem));
  }

  .orders-page .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 14px;
  }

  .orders-m-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .orders-m-aside {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    justify-items: unset;
    text-align: start;
  }

  .orders-m-when {
    flex: 0 0 auto;
  }

  .product-detail-page .container {
    width: min(1280px, calc(100% - 0.9rem));
  }

  .header-left,
  .brand,
  .brand picture {
    min-width: 0;
  }

  .brand picture {
    flex-shrink: 1;
    max-width: 100%;
  }

  .brand img {
    height: clamp(26px, 7vw, 34px);
    max-width: min(132px, 38vw);
  }

  .header-actions {
    max-width: none;
    gap: 0.12rem;
  }

  .header-actions .icon-btn,
  .header-actions .lang-btn,
  .header-left .icon-btn {
    width: 32px;
    height: 32px;
    min-height: 32px;
  }

  .mobile-home-tab-label {
    white-space: nowrap;
    max-width: 100%;
    font-size: 0.52rem;
    line-height: 1.05;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-home-tab:nth-child(4) .mobile-home-tab-label {
    font-size: 0.46rem;
  }

  .mobile-home-tab-fab {
    width: auto;
    height: auto;
    margin-top: 0;
  }

  .product-detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .product-detail-btn {
    width: 100%;
  }

  body.is-product-order .product-detail-actions-primary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    align-items: stretch;
  }

  body.is-product-order .product-detail-btn-main {
    width: auto;
  }

  body.is-product-order .product-detail-btn-wishlist {
    width: 48px;
    min-width: 48px;
    min-height: 48px;
    padding-inline: 0;
  }

  body.is-product-order .product-amount-input {
    min-height: 46px;
    font-size: 1.05rem;
  }

  .product-buy-total {
    flex-wrap: wrap;
  }

  .product-buy-total strong {
    white-space: normal;
  }

  .product-detail-chip {
    font-size: 0.68rem;
    min-height: 26px;
    padding: 0.16rem 0.5rem;
  }

  .product-detail-media-frame {
    width: 132px;
    height: 132px;
  }

  .product-breadcrumb {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .product-breadcrumb a,
  .product-breadcrumb span {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.has-mobile-home-tab #main,
  body.has-mobile-home-tab .site-footer {
    padding-bottom: calc(var(--mobile-home-tab-space, 5.85rem) + var(--safe-bottom) + var(--app-pwa-clearance));
  }

  body.is-product-order.has-mobile-home-tab .site-footer {
    padding-bottom: 0;
  }
}

@media (max-width: 360px) {
  .brand img {
    height: 26px;
    max-width: min(112px, 34vw);
  }

  .header-actions .icon-btn,
  .header-actions .lang-btn,
  .header-left .icon-btn {
    width: 30px;
    height: 30px;
    min-height: 30px;
  }

  .mobile-home-tab-label {
    font-size: 0.48rem;
  }

  .product-detail-media-frame {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 320px) {
  .brand img {
    height: 24px;
    max-width: min(96px, 32vw);
  }

  .container,
  .site-header .header-inner,
  .product-detail-page .container {
    width: min(1200px, calc(100% - 0.7rem));
  }

  .orders-page .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 12px;
  }
}

@media (max-width: 767px) {
  .product-detail-hero {
    padding: 0.75rem 0.85rem 0.85rem;
    border-radius: 20px;
    border: 1px solid rgba(var(--accent-rgb), 0.16);
    background:
      radial-gradient(circle at 12% 0%, rgba(var(--accent-rgb), 0.12), transparent 36%),
      radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.10), transparent 42%),
      rgba(16, 18, 28, 0.92);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  }

  html[data-theme="light"] .product-detail-hero {
    background:
      radial-gradient(circle at 12% 0%, rgba(var(--accent-rgb), 0.08), transparent 36%),
      radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.06), transparent 42%),
      #ffffff;
    border-color: rgba(var(--accent-rgb), 0.16);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  }

  .product-customer-fields {
    padding: 0.8rem 0.85rem 0.85rem;
  }

  .sec-hub,
  .sec-pk-list,
  .sec-pk-card {
    width: 100%;
    max-width: 100%;
  }

  .sec-pk-card__top {
    width: 100%;
    grid-template-columns: 2.55rem minmax(0, 1fr);
  }

  .sec-pk-card__grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sec-pk-card__title,
  .sec-pk-card__added,
  .sec-pk-card__fact dd {
    overflow-wrap: break-word;
    word-break: normal;
  }
}

/* Phone: keep the document from panning sideways */
@media (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  #main,
  .container,
  .site-header,
  .site-footer,
  .store-catalog-page,
  .store-category-show,
  .catalog-live,
  .catalog-toolbar-pro,
  .catalog-tool-row,
  .product-grid,
  .product-grid--catalog,
  .type-card-grid,
  .type-card-grid--compact,
  .type-card-grid--filter,
  .category-grid,
  .category-slider-shell,
  .home-categories-section,
  .section,
  .payments-section,
  .payments-section .container {
    max-width: 100%;
    min-width: 0;
  }

  .section,
  .product-grid,
  .product-grid--catalog,
  .type-card-grid,
  .category-grid,
  .catalog-live {
    overflow-x: clip;
  }

  .product-card,
  .product-card--shop,
  .type-card,
  .category-card,
  .catalog-tool-btn,
  .catalog-sort {
    min-width: 0;
    max-width: 100%;
  }

  .product-card--shop h3,
  .product-card-package,
  .product-card-price,
  .product-card-price strong,
  .type-card-body h3,
  .catalog-tool-btn span {
    overflow-wrap: anywhere;
  }

  .category-slider {
    scroll-padding-inline: 0.5rem;
    padding-inline: 0.5rem;
    margin-inline: 0;
  }

  .home-auth-category-scroll,
  .home-auth-product-scroll {
    overflow-x: clip;
    max-width: 100%;
  }
}

/* iPhone: fields under 16px auto-zoom the page */
@media (max-width: 767px) {
  input,
  select,
  textarea,
  .product-search-input,
  .product-search--home .product-search-input,
  .home-auth-search-card .product-search--home .product-search-input,
  .catalog-search-input,
  .catalog-search-field input,
  .catalog-search-pill input,
  .catalog-price-input,
  .orders-search input {
    font-size: 16px;
  }
}

/* All Products: one swipeable category row + compact 3-col grid on phones */
.catalog-cats--scroll {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.7rem;
  padding: 0 0 0.2rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.catalog-cats--scroll::-webkit-scrollbar {
  display: none;
}

.catalog-cats--scroll .catalog-filter {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.4rem 0.78rem;
  font-size: 0.78rem;
}

.catalog-grid-skeleton {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
  margin-top: 0.45rem;
}

.catalog-skel-card {
  display: block;
  aspect-ratio: 0.72;
  border-radius: 12px;
  background: var(--surface-hover);
  animation: catalogPulse 1.1s ease-in-out infinite;
}

html[data-theme="light"] .catalog-skel-card {
  background: rgba(15, 23, 42, 0.06);
}

@keyframes catalogPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}

@media (min-width: 768px) {
  /* Laptop/desktop: exactly 2 horizontal slider rows (scroll sideways together) */
  .catalog-cats--scroll {
    display: grid;
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-items: center;
    justify-content: start;
    gap: 0.45rem 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--accent-rgb), 0.45) transparent;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    padding: 0.1rem 0 0.45rem;
    margin-bottom: 0.85rem;
  }

  .catalog-cats--scroll::-webkit-scrollbar {
    display: block;
    height: 4px;
  }

  .catalog-cats--scroll::-webkit-scrollbar-thumb {
    background: rgba(var(--accent-rgb), 0.45);
    border-radius: 999px;
  }

  .catalog-cats--scroll::-webkit-scrollbar-track {
    background: transparent;
  }

  .catalog-cats--scroll .catalog-filter {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .store-catalog-page--products {
    padding-top: 0.85rem;
    padding-bottom: 5.75rem;
  }

  body.has-mobile-home-tab .store-catalog-page--products {
    padding-bottom: 6.75rem;
  }

  .store-catalog-page--products .store-page-head {
    margin-bottom: 0.65rem;
  }

  .store-catalog-page--products .store-page-head h1 {
    font-size: 1.55rem;
    line-height: 1.15;
  }

  .store-catalog-page--products .store-page-head p {
    display: none;
  }

  .store-catalog-page--products .catalog-toolbar-pro {
    gap: 0.5rem;
    margin-bottom: 0.65rem;
  }

  .store-catalog-page--products .catalog-tool-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .store-catalog-page--products .catalog-cats-btn,
  .store-catalog-page--products .catalog-cats-dots {
    display: none !important;
  }

  .store-catalog-page--products .catalog-results-bar {
    margin: 0 0 0.65rem;
  }

  .store-catalog-page--products .catalog-results-meta {
    margin: 0;
    font-size: 0.8rem;
  }

  .store-catalog-page--products .product-grid--catalog:not(.is-list) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.42rem;
  }

  .store-catalog-page--products .product-grid--catalog:not(.is-list) .product-card--shop .product-media {
    aspect-ratio: 1 / 1;
  }

  .store-catalog-page--products .product-grid--catalog.is-list {
    gap: 0.5rem;
  }

  .store-catalog-page--products .product-grid--catalog.is-list .product-card--shop,
  .store-catalog-page--products .product-grid--catalog.is-list .product-card-link,
  .store-catalog-page--products .product-grid--catalog.is-list .product-card-link--static {
    min-height: 110px;
    max-height: 140px;
  }

  .store-catalog-page--products .product-grid--catalog.is-list .product-card-link,
  .store-catalog-page--products .product-grid--catalog.is-list .product-card-link--static {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .store-catalog-page--products .product-grid--catalog.is-list .product-card--shop .product-media {
    aspect-ratio: auto;
    width: 100px;
    min-width: 90px;
    max-width: 110px;
    height: 100%;
    min-height: 110px;
    max-height: 140px;
  }

  .store-catalog-page--products .floating-dock {
    inset-inline-end: max(0.85rem, var(--safe-right));
  }
}

.product-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.28rem;
}

.product-monitor-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-ghost);
  color: var(--text-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.product-card-fav .product-monitor-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(5, 7, 11, 0.62);
  backdrop-filter: blur(10px);
  color: #fff;
}

.product-monitor-btn:hover,
.product-monitor-btn.is-active,
.product-detail-btn-monitor.is-active {
  color: #3ddc84;
  border-color: rgba(61, 220, 132, 0.4);
  background: rgba(61, 220, 132, 0.12);
}

.product-detail-btn-monitor {
  margin-top: 0;
  width: auto;
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
}

/* Add Funds — Whish top-up */
.add-funds-page .wallet-page-shell {
  gap: 0.75rem;
  padding-bottom: 1.25rem;
}

.add-funds-head {
  display: grid;
  gap: 0.7rem;
  align-items: start;
}

.add-funds-head-copy {
  min-width: 0;
}

.add-funds-head-copy h1 {
  margin: 0;
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.add-funds-head-copy p {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 36rem;
}

.add-funds-history-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 0.45rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.36);
  background: color-mix(in srgb, var(--surface-ghost) 88%, transparent);
  color: var(--text);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.2;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.05);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.add-funds-history-link__icon,
.add-funds-history-link__chevron {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--pink-hot);
}

.add-funds-history-link__label {
  min-width: 0;
}

.add-funds-history-link:hover,
.add-funds-history-link:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
  color: var(--text);
  outline: none;
}

.add-funds-history-link:active {
  transform: scale(0.985);
}

html[dir="rtl"] .add-funds-history-link__chevron {
  transform: scaleX(-1);
}

@media (min-width: 768px) {
  .add-funds-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 1rem;
  }

  .add-funds-history-link {
    margin-bottom: 0.1rem;
  }
}

html[data-theme="light"] .add-funds-history-link {
  background: var(--bg-card, #fff);
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.04);
  color: var(--text);
}

.add-funds-crumb {
  margin-bottom: 0.35rem;
}

.add-funds {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  animation: add-funds-enter 0.45s ease both;
}

@keyframes add-funds-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .add-funds,
  .add-funds-copy-row,
  .add-funds-support-btn,
  .add-funds .wallet-pay-chevron,
  .add-funds .wallet-pay-trigger-logo {
    animation: none !important;
    transition: none !important;
  }

  .add-funds .wallet-pay-trigger-logo {
    transform: none !important;
  }
}

.add-funds-field {
  display: grid;
  gap: 0.4rem;
}

.add-funds-field-label {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.add-funds-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 52px;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: rgba(5, 7, 11, 0.45);
  font: inherit;
  color: inherit;
  text-align: start;
  appearance: none;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.add-funds-copy-row:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.08);
}

.add-funds-copy-row:active {
  transform: scale(0.985);
}

.add-funds-value {
  font-family: inherit;
  font-size: clamp(1.2rem, 5.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: transparent;
}

.add-funds-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0.1));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.add-funds-copy-idle,
.add-funds-copy-done {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.add-funds-copy-done {
  display: none;
}

.add-funds-copy-row.is-copied .add-funds-copy {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.14);
  color: #86efac;
  transform: scale(0.96);
}

.add-funds-copy-row.is-copied .add-funds-copy-idle {
  display: none;
}

.add-funds-copy-row.is-copied .add-funds-copy-done {
  display: inline-flex;
}

.add-funds-hint {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.add-funds-limits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
}

.add-funds-limits div {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.55rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(12, 16, 24, 0.55);
  text-align: center;
}

.add-funds-limits dt {
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.add-funds-limits dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.add-funds-important {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
}

.add-funds-important-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: #f59e0b;
  font-size: 0.82rem;
}

.add-funds-important p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.add-funds-support {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(12, 16, 24, 0.55);
}

.add-funds-support h2 {
  margin: 0;
  font-size: 0.98rem;
}

.add-funds-support p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.add-funds-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  background: linear-gradient(180deg, var(--pink), #d9165a);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: var(--glow-pink);
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.add-funds-support-btn:hover,
.add-funds-support-btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.add-funds-support-btn:active {
  transform: scale(0.98);
}

.cryptomus-topup-form {
  display: grid;
  gap: 0.75rem;
}

.cryptomus-topup-form .add-funds-input {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(8, 12, 20, 0.72);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cryptomus-topup-form .add-funds-input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}

.cryptomus-topup-form .add-funds-input.is-invalid {
  border-color: rgba(255, 92, 122, 0.7);
}

.cryptomus-topup-form .add-funds-error {
  margin: 0;
  color: #ff8aa0;
  font-size: 0.84rem;
  line-height: 1.35;
}

.cryptomus-pay-btn {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.cryptomus-status {
  display: grid;
  gap: 0.75rem;
  max-width: 34rem;
  margin-inline: auto;
  min-width: 0;
}

.cryptomus-status-head {
  display: block;
  margin-bottom: 0;
}

.cryptomus-status-head h1 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--text);
}

.cryptomus-status-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem 1rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(12, 16, 24, 0.72);
  min-width: 0;
  overflow: hidden;
  color: var(--text);
}

.cryptomus-status-intro {
  display: grid;
  gap: 0.35rem;
}

.cryptomus-status-card h2,
.cryptomus-status-intro h2 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--text);
}

.cryptomus-status-card p,
.cryptomus-status-intro p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.cryptomus-status-meta {
  display: grid;
  gap: 0.7rem;
  padding: 0.75rem 0 0.15rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0.1rem 0 0.15rem;
  min-width: 0;
}

.cryptomus-status-amount {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.cryptomus-status-label,
.cryptomus-status-ref .add-funds-field-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.cryptomus-status-amount strong {
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.cryptomus-status-ref {
  min-width: 0;
}

.cryptomus-ref-copy {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow: hidden;
}

.cryptomus-ref-value {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
}

.cryptomus-ref-copy .add-funds-copy {
  flex: 0 0 auto;
}

.cryptomus-status-hint {
  margin: 0;
}

.cryptomus-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 0.15rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-soft, var(--text-muted));
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.cryptomus-secondary-link:hover,
.cryptomus-secondary-link:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--text);
  outline: none;
}

.cryptomus-pay-btn.is-pulse {
  animation: g4c-pay-logo-glow 1.2s ease-in-out infinite;
}

.cryptomus-pending-banner {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(44, 230, 168, 0.35);
  background: rgba(12, 28, 24, 0.72);
  color: var(--text);
  min-width: 0;
  overflow: hidden;
}

.cryptomus-pending-banner__copy strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.cryptomus-pending-banner__copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.cryptomus-pending-banner__actions {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

@media (min-width: 640px) {
  .cryptomus-pending-banner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .cryptomus-pending-banner__actions {
    justify-items: stretch;
    min-width: 220px;
  }

  .cryptomus-ref-value {
    font-size: 0.9rem;
  }
}

html[data-theme="light"] .cryptomus-pending-banner,
html.theme-light .cryptomus-pending-banner,
body.light .cryptomus-pending-banner,
html[data-theme="light"] .cryptomus-status-card,
html.theme-light .cryptomus-status-card,
body.light .cryptomus-status-card {
  background: var(--bg-card);
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow: var(--shadow);
  color: var(--text);
}

html[data-theme="light"] .cryptomus-pending-banner__copy strong,
html.theme-light .cryptomus-pending-banner__copy strong,
body.light .cryptomus-pending-banner__copy strong,
html[data-theme="light"] .cryptomus-status-head h1,
html.theme-light .cryptomus-status-head h1,
body.light .cryptomus-status-head h1,
html[data-theme="light"] .cryptomus-status-card h2,
html.theme-light .cryptomus-status-card h2,
body.light .cryptomus-status-card h2,
html[data-theme="light"] .cryptomus-status-amount strong,
html.theme-light .cryptomus-status-amount strong,
body.light .cryptomus-status-amount strong,
html[data-theme="light"] .cryptomus-ref-value,
html.theme-light .cryptomus-ref-value,
body.light .cryptomus-ref-value {
  color: var(--text);
}

html[data-theme="light"] .cryptomus-pending-banner__copy p,
html.theme-light .cryptomus-pending-banner__copy p,
body.light .cryptomus-pending-banner__copy p,
html[data-theme="light"] .cryptomus-status-card p,
html.theme-light .cryptomus-status-card p,
body.light .cryptomus-status-card p,
html[data-theme="light"] .cryptomus-status-label,
html.theme-light .cryptomus-status-label,
body.light .cryptomus-status-label,
html[data-theme="light"] .cryptomus-status-ref .add-funds-field-label,
html.theme-light .cryptomus-status-ref .add-funds-field-label,
body.light .cryptomus-status-ref .add-funds-field-label,
html[data-theme="light"] .cryptomus-status-hint,
html.theme-light .cryptomus-status-hint,
body.light .cryptomus-status-hint {
  color: var(--text-muted);
}

html[data-theme="light"] .cryptomus-secondary-link,
html.theme-light .cryptomus-secondary-link,
body.light .cryptomus-secondary-link {
  color: var(--text-muted);
  border-color: rgba(15, 23, 42, 0.14);
  background: #fff;
}

html[data-theme="light"] .cryptomus-secondary-link:hover,
html.theme-light .cryptomus-secondary-link:hover,
body.light .cryptomus-secondary-link:hover,
html[data-theme="light"] .cryptomus-secondary-link:focus-visible,
html.theme-light .cryptomus-secondary-link:focus-visible,
body.light .cryptomus-secondary-link:focus-visible {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.35);
  background: #fff;
}

html[data-theme="light"] .cryptomus-status-meta,
html.theme-light .cryptomus-status-meta,
body.light .cryptomus-status-meta {
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .cryptomus-ref-copy,
html.theme-light .cryptomus-ref-copy,
body.light .cryptomus-ref-copy {
  background: #f5f7fa;
  border-color: rgba(190, 24, 93, 0.28);
}

body.has-mobile-home-tab.is-cryptomus-status .floating-dock {
  bottom: calc(
    1.15rem + var(--safe-bottom) + var(--app-tab-clearance) + var(--app-pwa-clearance)
  );
}

/* Heleket — mirror Cryptomus payment UI */
.heleket-topup-form {
  display: grid;
  gap: 0.75rem;
}

.heleket-topup-form .add-funds-input {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(8, 12, 20, 0.72);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.heleket-topup-form .add-funds-input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}

.heleket-topup-form .add-funds-input.is-invalid {
  border-color: rgba(255, 92, 122, 0.7);
}

.heleket-topup-form .add-funds-error {
  margin: 0;
  color: #ff8aa0;
  font-size: 0.84rem;
  line-height: 1.35;
}

.heleket-pay-btn {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.heleket-status {
  display: grid;
  gap: 0.75rem;
  max-width: 34rem;
  margin-inline: auto;
  min-width: 0;
}

.heleket-status-head {
  display: block;
  margin-bottom: 0;
}

.heleket-status-head h1 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--text);
}

.heleket-status-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem 1rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(12, 16, 24, 0.72);
  min-width: 0;
  overflow: hidden;
  color: var(--text);
}

.heleket-status-intro {
  display: grid;
  gap: 0.35rem;
}

.heleket-status-card h2,
.heleket-status-intro h2 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--text);
}

.heleket-status-card p,
.heleket-status-intro p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.heleket-status-meta {
  display: grid;
  gap: 0.7rem;
  padding: 0.75rem 0 0.15rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0.1rem 0 0.15rem;
  min-width: 0;
}

.heleket-status-amount {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.heleket-status-label,
.heleket-status-ref .add-funds-field-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.heleket-status-amount strong {
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.heleket-status-ref {
  min-width: 0;
}

.heleket-ref-copy {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow: hidden;
}

.heleket-ref-value {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
}

.heleket-ref-copy .add-funds-copy {
  flex: 0 0 auto;
}

.heleket-status-hint {
  margin: 0;
}

.heleket-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 0.15rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-soft, var(--text-muted));
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.heleket-secondary-link:hover,
.heleket-secondary-link:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--text);
  outline: none;
}

.heleket-pay-btn.is-pulse {
  animation: g4c-pay-logo-glow 1.2s ease-in-out infinite;
}

.heleket-pending-banner {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(44, 230, 168, 0.35);
  background: rgba(12, 28, 24, 0.72);
  color: var(--text);
  min-width: 0;
  overflow: hidden;
}

.heleket-pending-banner__copy strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.heleket-pending-banner__copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.heleket-pending-banner__actions {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

@media (min-width: 640px) {
  .heleket-pending-banner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .heleket-pending-banner__actions {
    justify-items: stretch;
    min-width: 220px;
  }

  .heleket-ref-value {
    font-size: 0.9rem;
  }
}

html[data-theme="light"] .heleket-pending-banner,
html.theme-light .heleket-pending-banner,
body.light .heleket-pending-banner,
html[data-theme="light"] .heleket-status-card,
html.theme-light .heleket-status-card,
body.light .heleket-status-card {
  background: var(--bg-card);
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow: var(--shadow);
  color: var(--text);
}

html[data-theme="light"] .heleket-pending-banner__copy strong,
html.theme-light .heleket-pending-banner__copy strong,
body.light .heleket-pending-banner__copy strong,
html[data-theme="light"] .heleket-status-head h1,
html.theme-light .heleket-status-head h1,
body.light .heleket-status-head h1,
html[data-theme="light"] .heleket-status-card h2,
html.theme-light .heleket-status-card h2,
body.light .heleket-status-card h2,
html[data-theme="light"] .heleket-status-amount strong,
html.theme-light .heleket-status-amount strong,
body.light .heleket-status-amount strong,
html[data-theme="light"] .heleket-ref-value,
html.theme-light .heleket-ref-value,
body.light .heleket-ref-value {
  color: var(--text);
}

html[data-theme="light"] .heleket-pending-banner__copy p,
html.theme-light .heleket-pending-banner__copy p,
body.light .heleket-pending-banner__copy p,
html[data-theme="light"] .heleket-status-card p,
html.theme-light .heleket-status-card p,
body.light .heleket-status-card p,
html[data-theme="light"] .heleket-status-label,
html.theme-light .heleket-status-label,
body.light .heleket-status-label,
html[data-theme="light"] .heleket-status-ref .add-funds-field-label,
html.theme-light .heleket-status-ref .add-funds-field-label,
body.light .heleket-status-ref .add-funds-field-label,
html[data-theme="light"] .heleket-status-hint,
html.theme-light .heleket-status-hint,
body.light .heleket-status-hint {
  color: var(--text-muted);
}

html[data-theme="light"] .heleket-secondary-link,
html.theme-light .heleket-secondary-link,
body.light .heleket-secondary-link {
  color: var(--text-muted);
  border-color: rgba(15, 23, 42, 0.14);
  background: #fff;
}

html[data-theme="light"] .heleket-secondary-link:hover,
html.theme-light .heleket-secondary-link:hover,
body.light .heleket-secondary-link:hover,
html[data-theme="light"] .heleket-secondary-link:focus-visible,
html.theme-light .heleket-secondary-link:focus-visible,
body.light .heleket-secondary-link:focus-visible {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.35);
  background: #fff;
}

html[data-theme="light"] .heleket-status-meta,
html.theme-light .heleket-status-meta,
body.light .heleket-status-meta {
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .heleket-ref-copy,
html.theme-light .heleket-ref-copy,
body.light .heleket-ref-copy {
  background: #f5f7fa;
  border-color: rgba(190, 24, 93, 0.28);
}

body.has-mobile-home-tab.is-cryptomus-status .floating-dock {
  bottom: calc(
    1.15rem + var(--safe-bottom) + var(--app-tab-clearance) + var(--app-pwa-clearance)
  );
}


@media (max-width: 1023px) {
  .cryptomus-status {
    padding-bottom: 0.35rem;
  }
}

.add-funds-others {
  display: grid;
  gap: 0.65rem;
  padding: 0.95rem 1rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-card, var(--surface));
}

.add-funds-others h2 {
  margin: 0;
  font-size: 0.92rem;
}

.add-funds-others .wallet-pay-list {
  gap: 0.55rem;
}

.add-funds .wallet-pay-list {
  gap: 0.65rem;
  min-width: 0;
}

.add-funds .wallet-pay-item {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-card, var(--surface));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.add-funds .wallet-pay-item.is-featured {
  border-color: rgba(var(--accent-rgb), 0.32);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.08),
    0 14px 34px rgba(var(--accent-rgb), 0.08);
}

.add-funds .wallet-pay-item.is-open,
.add-funds .wallet-pay-item[open] {
  border-color: rgba(var(--accent-rgb), 0.4);
}

.add-funds .wallet-pay-trigger {
  display: grid;
  padding: 0.85rem 0.9rem;
  gap: 0.35rem 0.7rem;
  grid-template-columns: auto minmax(0, 1fr) 32px;
  grid-template-areas:
    "logo meta chevron"
    "logo badges chevron";
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.add-funds .wallet-pay-trigger::-webkit-details-marker,
.add-funds .wallet-pay-trigger::marker {
  display: none;
}

.add-funds .wallet-pay-trigger:focus {
  outline: none;
}

.add-funds .wallet-pay-trigger:focus-visible {
  outline: 2px solid var(--pink-hot);
  outline-offset: -2px;
  border-radius: 16px;
}

.add-funds .wallet-pay-trigger-logo {
  grid-area: logo;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: auto;
  min-height: 44px;
  padding: 0.32rem 0.38rem;
  border-radius: 14px;
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  background: rgba(8, 12, 20, 0.28);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.1),
    0 0 10px rgba(56, 189, 248, 0.18),
    0 0 18px rgba(236, 72, 153, 0.08);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background-color 0.2s ease;
  will-change: box-shadow, border-color;
}

.add-funds .wallet-pay-trigger-logo img {
  display: block;
  max-width: 96px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  transform: none;
}

@keyframes g4c-pay-logo-glow {
  0%,
  100% {
    border-color: rgba(56, 189, 248, 0.34);
    box-shadow:
      0 0 0 1px rgba(56, 189, 248, 0.08),
      0 0 8px rgba(56, 189, 248, 0.14),
      0 0 16px rgba(236, 72, 153, 0.06);
  }
  50% {
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow:
      0 0 0 1px rgba(125, 211, 252, 0.16),
      0 0 14px rgba(56, 189, 248, 0.3),
      0 0 22px rgba(236, 72, 153, 0.14);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .add-funds .wallet-pay-trigger-logo {
    animation: g4c-pay-logo-glow 3s ease-in-out infinite;
  }
}

@media (hover: hover) and (pointer: fine) {
  .add-funds .wallet-pay-trigger:hover .wallet-pay-trigger-logo {
    animation: none;
    border-color: rgba(125, 211, 252, 0.72);
    background: rgba(8, 12, 20, 0.4);
    box-shadow:
      0 0 0 1px rgba(125, 211, 252, 0.22),
      0 0 16px rgba(56, 189, 248, 0.38),
      0 0 26px rgba(236, 72, 153, 0.18);
    transform: scale(1.02);
  }
}

.add-funds .wallet-pay-trigger-meta {
  grid-area: meta;
  min-width: 0;
}

.add-funds .wallet-pay-trigger-meta strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.2;
}

.add-funds .wallet-pay-badges {
  grid-area: badges;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: flex-start;
}

.add-funds .wallet-pay-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.add-funds .wallet-pay-badge.is-auto {
  color: #86efac;
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
}

.add-funds .wallet-pay-badge.is-fee {
  color: var(--pink-hot);
  border-color: rgba(var(--accent-rgb), 0.32);
  background: rgba(var(--accent-rgb), 0.1);
}

.add-funds .wallet-pay-badge.is-instant {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.1);
}

.add-funds .wallet-pay-chevron {
  grid-area: chevron;
  align-self: center;
  justify-self: end;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--pink-hot);
  transition: transform 0.28s ease;
}

.add-funds .wallet-pay-item.is-open .wallet-pay-chevron,
.add-funds .wallet-pay-item[open] .wallet-pay-chevron {
  transform: rotate(180deg);
}

.add-funds .wallet-pay-panel {
  display: grid;
  gap: 0.7rem;
  padding: 0 0.9rem 0.95rem;
}

.add-funds .wallet-pay-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

@media (min-width: 720px) {
  .add-funds-support {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .add-funds-support-btn {
    width: auto;
  }
}

@media (max-width: 719px) {
  .add-funds-support-btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .add-funds-limits {
    grid-template-columns: 1fr;
  }

  .add-funds-copy-row {
    flex-wrap: wrap;
  }

  .add-funds-copy {
    margin-inline-start: auto;
  }
}

html[data-theme="light"] .add-funds .wallet-pay-item,
html[data-theme="light"] .add-funds-support,
html[data-theme="light"] .add-funds-others,
html[data-theme="light"] .add-funds-limits div {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

html[data-theme="light"] .add-funds .wallet-pay-item.is-featured {
  border-color: rgba(var(--accent-rgb), 0.34);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.1),
    0 14px 34px rgba(var(--accent-rgb), 0.1);
}

html[data-theme="light"] .add-funds-copy-row {
  background: #f5f7fa;
  border-color: rgba(190, 24, 93, 0.28);
}

html[data-theme="light"] .add-funds-value,
html[data-theme="light"] .add-funds-limits dd,
html[data-theme="light"] .add-funds-head-copy h1 {
  color: var(--text);
}

html[data-theme="light"] .add-funds-hint {
  background: var(--info-accent-bg);
  border-color: var(--info-accent-border);
  color: var(--text-soft);
}

html[data-theme="light"] .add-funds-important {
  background: var(--warn-bg);
  border-color: var(--warn-border);
}

html[data-theme="light"] .add-funds-important-head {
  color: var(--warn);
}

html[data-theme="light"] .add-funds-important p,
html[data-theme="light"] .add-funds-support p,
html[data-theme="light"] .add-funds-head-copy p,
html[data-theme="light"] .add-funds-field-label,
html[data-theme="light"] .add-funds-limits dt {
  color: var(--text-muted);
}

html[data-theme="light"] .add-funds-copy {
  color: var(--on-accent);
  border-color: transparent;
  background: linear-gradient(180deg, var(--pink), var(--pink-deep));
  box-shadow: 0 6px 14px rgba(var(--accent-rgb), 0.22);
}

html[data-theme="light"] .add-funds-copy:hover {
  filter: brightness(1.04);
}

html[data-theme="light"] .add-funds-copy-row.is-copied .add-funds-copy {
  color: var(--ok);
  border-color: rgba(4, 120, 87, 0.28);
  background: #ecfdf5;
  box-shadow: none;
  filter: none;
}

html[data-theme="light"] .add-funds .wallet-pay-badge.is-auto {
  color: var(--badge-ok-text);
  background: var(--badge-ok-bg);
  border-color: var(--badge-ok-border);
}

html[data-theme="light"] .add-funds .wallet-pay-badge.is-fee {
  color: var(--badge-fee-text);
  background: var(--badge-fee-bg);
  border-color: var(--badge-fee-border);
}

html[data-theme="light"] .add-funds .wallet-pay-badge.is-instant {
  color: var(--badge-info-text);
  background: var(--badge-info-bg);
  border-color: var(--badge-info-border);
}

html[data-theme="light"] .add-funds .wallet-pay-trigger-logo {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(14, 165, 233, 0.42);
  box-shadow:
    0 0 0 1px rgba(14, 165, 233, 0.08),
    0 0 10px rgba(14, 165, 233, 0.14),
    0 0 18px rgba(236, 72, 153, 0.07);
}

@media (hover: hover) and (pointer: fine) {
  html[data-theme="light"] .add-funds .wallet-pay-trigger:hover .wallet-pay-trigger-logo {
    background: rgba(15, 23, 42, 0.08);
    border-color: rgba(2, 132, 199, 0.65);
    box-shadow:
      0 0 0 1px rgba(14, 165, 233, 0.18),
      0 0 16px rgba(14, 165, 233, 0.28),
      0 0 24px rgba(236, 72, 153, 0.14);
  }
}

html[data-theme="light"] .add-funds .wallet-pay-chevron {
  color: var(--pink);
}

html[dir="rtl"] .add-funds .wallet-pay-trigger {
  text-align: right;
}

html[dir="rtl"] .add-funds-copy-row {
  text-align: right;
}

.add-funds-fee {
  display: none !important;
}

@supports selector(::details-content) {
  .add-funds .wallet-pay-item::details-content {
    display: block !important;
    overflow: hidden;
    block-size: 0;
    opacity: 0;
    interpolate-size: allow-keywords;
    transition: block-size 0.32s ease, opacity 0.24s ease;
  }

  .add-funds .wallet-pay-item[open]::details-content,
  .add-funds .wallet-pay-item.is-open::details-content {
    block-size: auto;
    opacity: 1;
  }
}

.add-funds .wallet-pay-panel {
  min-width: 0;
}

.add-funds-copy-row {
  min-width: 0;
  max-width: 100%;
}

.add-funds-value {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 719px) {
  .add-funds .wallet-pay-trigger {
    padding: 0.7rem 0.75rem;
  }

  .add-funds .wallet-pay-trigger-logo {
    width: auto;
    max-width: 104px;
    min-height: 0;
  }

  .add-funds .wallet-pay-trigger-logo img {
    max-width: 104px;
    max-height: 62px;
  }

  .add-funds .wallet-pay-panel {
    padding: 0 0.75rem 0.85rem;
  }

  .add-funds-limits div {
    padding: 0.65rem 0.35rem;
  }

  .add-funds-limits dd {
    font-size: 0.92rem;
  }
}

/* Product monitoring / restock notifications */
.product-monitor-panel {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0.04));
  animation: g4c-monitor-in 0.35s ease;
}
.product-monitor-panel__status {
  margin: 0 0 0.65rem;
  font-weight: 700;
  color: #ff6b9d;
}
.product-monitor-panel__title {
  margin: 0 0 0.35rem;
  font-weight: 700;
}
.product-monitor-panel__hint {
  margin: 0 0 0.85rem;
  opacity: 0.88;
  font-size: 0.92rem;
  line-height: 1.45;
}
.product-monitor-panel__cta {
  width: 100%;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.35);
  transition: transform 0.18s ease, box-shadow 0.22s ease;
}
.product-monitor-panel__cta:hover,
.product-monitor-panel__cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.28);
}
.product-monitor-panel__cta:active {
  transform: translateY(0) scale(0.99);
}
.product-monitor-panel__remove {
  width: 100%;
  border-radius: 999px;
}
.product-card-link--unavailable {
  opacity: 0.92;
}
@keyframes g4c-monitor-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .product-monitor-panel,
  .product-monitor-panel__cta {
    animation: none;
    transition: none;
  }
}

.account-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.account-filter-tabs__item {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.86rem;
  text-decoration: none;
  color: inherit;
  opacity: 0.8;
}
.account-filter-tabs__item.is-active {
  opacity: 1;
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.14);
  font-weight: 650;
}
.account-filter-tabs--scroll {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.15rem;
}
.account-filter-tabs--scroll::-webkit-scrollbar { display: none; }
.account-filter-tabs--scroll .account-filter-tabs__item {
  flex: 0 0 auto;
  white-space: nowrap;
}
.account-notif-center {
  display: grid;
  gap: 0.9rem;
}
.account-notif-center__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.account-notif-center__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.account-notif-center__unread {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.12);
  color: #ffd0e2;
  font-size: 0.82rem;
  font-weight: 650;
  animation: g4c-notif-fade 0.35s ease;
}
.account-notif-center__unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.45);
  animation: g4c-notif-pulse 1.8s ease infinite;
}
.account-notif-list,
.account-monitor-grid {
  display: grid;
  gap: 0.75rem;
}
.account-notif-card,
.account-monitor-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  position: relative;
  animation: g4c-monitor-in 0.3s ease;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.account-notif-card.is-unread {
  border-color: rgba(var(--accent-rgb), 0.42);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), rgba(124, 58, 237, 0.08));
}
.account-notif-card__dot {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.5);
  animation: g4c-notif-pulse 1.8s ease infinite;
}
.account-notif-card__main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.account-notif-card__glyph {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--icon);
  font-size: 1.1rem;
  line-height: 1;
}
.account-notif-card__body h2,
.account-monitor-card__body h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  padding-inline-end: 1.2rem;
}
.account-notif-card__body p,
.account-monitor-card__body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-line;
}
.account-notif-card__body time,
.account-monitor-card__body time {
  display: inline-block;
  margin-top: 0.45rem;
  color: var(--text-faint);
  font-size: 0.75rem;
}
.account-notif-card__actions,
.account-monitor-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.account-notif-empty {
  text-align: center;
  padding: 2.2rem 1rem;
}
.account-notif-empty__glyph {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 0.55rem;
}
@keyframes g4c-notif-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
@keyframes g4c-notif-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0); }
}
@media (prefers-reduced-motion: reduce) {
  .account-notif-card,
  .account-notif-center__unread,
  .account-notif-card__dot,
  .account-notif-center__unread-dot {
    animation: none !important;
  }
}
.account-monitor-card__body p {
  margin: 0.2rem 0;
  white-space: pre-wrap;
  line-height: 1.4;
}
.account-notif-card__body time,
.account-monitor-card__date {
  opacity: 0.65;
  font-size: 0.8rem;
}
.account-notif-card__actions,
.account-monitor-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.account-monitor-card {
  grid-template-columns: 88px 1fr;
  align-items: start;
  /* Theme tokens — readable in light + dark (override hardcoded near-white shared rules) */
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  min-width: 0;
}
.account-monitor-card.is-unavailable {
  opacity: 0.95;
}
.account-monitor-card__media {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  width: 88px;
  max-width: 100%;
}
.account-monitor-card__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.account-monitor-card__body {
  min-width: 0;
}
.account-monitor-card__body h2,
.account-monitor-card__body h2 a {
  color: var(--text);
  text-decoration: none;
}
.account-monitor-card__body p,
.account-monitor-card__cat,
.account-monitor-card__price {
  color: var(--text-muted);
}
.account-monitor-card__date {
  color: var(--text-muted);
  opacity: 1;
}
.account-monitor-card__body p.account-monitor-card__status {
  color: var(--green);
  font-weight: 650;
}
.account-monitor-card__body p.account-monitor-card__status.is-out {
  color: var(--pink-hot);
  font-weight: 650;
}
.account-monitor-card__actions .btn {
  color: inherit;
}
.account-monitor-card__actions .btn-outline {
  color: var(--text);
  border-color: var(--border-strong);
}
.account-hub-main .account-filter-tabs__item {
  border-color: var(--border);
  color: var(--text);
}
@media (max-width: 560px) {
  .account-monitor-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0.55rem;
    padding: 0.7rem 0.75rem;
  }
  .account-monitor-card__media {
    width: 64px;
  }
  .account-monitor-card__body h2 {
    font-size: 0.92rem;
    margin: 0 0 0.12rem;
    padding-inline-end: 0;
    line-height: 1.25;
  }
  .account-monitor-card__body p {
    font-size: 0.8rem;
    margin: 0.08rem 0;
    line-height: 1.3;
  }
  .account-monitor-card__actions {
    gap: 0.35rem;
    margin-top: 0.2rem;
  }
  .account-monitor-card__actions .btn-sm {
    min-height: 2rem;
    padding: 0.28rem 0.65rem;
    font-size: 0.78rem;
  }
  .product-monitor-panel__cta {
    min-height: 48px;
  }
}

/* Floating storefront toasts */
.g4c-toast-host {
  position: fixed;
  z-index: 240;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  inset-inline: 12px;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  max-width: 100%;
}
body:not(.has-mobile-home-tab) .g4c-toast-host {
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 900px) {
  .g4c-toast-host {
    inset-inline: auto 24px;
    bottom: 24px;
    width: 400px;
    max-width: calc(100vw - 48px);
  }
}
.g4c-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: linear-gradient(165deg, rgba(18, 22, 32, 0.92), rgba(10, 12, 18, 0.88));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  color: #f5f7fb;
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(0.98);
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  backdrop-filter: saturate(1.1);
}
.g4c-toast.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.g4c-toast.is-out {
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.98);
  transition-duration: 0.25s;
}
.g4c-toast__icon {
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.14);
  font-size: 0.92rem;
  line-height: 1;
}
.g4c-toast--success .g4c-toast__icon { background: rgba(16, 185, 129, 0.18); }
.g4c-toast--danger .g4c-toast__icon { background: rgba(239, 68, 68, 0.18); }
.g4c-toast--warning .g4c-toast__icon { background: rgba(245, 158, 11, 0.18); }
.g4c-toast--wallet .g4c-toast__icon { background: rgba(56, 189, 248, 0.16); }
.g4c-toast--product .g4c-toast__icon { background: rgba(34, 197, 94, 0.16); }
.g4c-toast__copy {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}
.g4c-toast__title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}
.g4c-toast__body {
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 0.86;
  white-space: pre-wrap;
}
.g4c-toast__close {
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.55;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0.1rem;
  cursor: pointer;
}
.g4c-toast__close:hover,
.g4c-toast__close:focus-visible {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .g4c-toast {
    transition: opacity 0.15s ease;
    transform: none;
  }
  .g4c-toast.is-in,
  .g4c-toast.is-out {
    transform: none;
  }
}

/* Thin app-shell navigation progress — always mounted; never display:none; iOS PWA safe */
.g4c-nav-progress {
  position: fixed;
  left: 0;
  right: 0;
  /* Under fixed navbar (safe-area included in --store-header-offset) */
  top: var(--store-header-offset, calc(4rem + env(safe-area-inset-top, 0px)));
  height: 3px;
  z-index: 400;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: transparent;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  transition: opacity 0.12s ease, visibility 0.12s ease;
  /* Never clip the indeterminate pulse */
  overflow: visible;
}

body.is-purchase-complete .g4c-nav-progress,
body.is-support-chat-page .g4c-nav-progress,
body:not(:has(.site-header)) .g4c-nav-progress {
  top: max(0px, env(safe-area-inset-top, 0px));
}

/* Standalone / iOS PWA: same component, reinforced paint layer */
@media (display-mode: standalone), (display-mode: fullscreen) {
  .g4c-nav-progress {
    z-index: 400;
  }
}

html.g4c-nav-loading .g4c-nav-progress,
.g4c-nav-progress.is-active {
  opacity: 1;
  visibility: visible;
}

.g4c-nav-progress.is-out {
  opacity: 0;
  visibility: hidden;
  transition-duration: 0.16s;
}

.g4c-nav-progress__track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: rgba(var(--accent-rgb), 0.18);
}

html[data-theme="light"] .g4c-nav-progress__track {
  background: rgba(var(--accent-rgb), 0.22);
}

.g4c-nav-progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  height: 100%;
  transform: scaleX(0.12);
  transform-origin: left center;
  background: linear-gradient(
    90deg,
    var(--pink) 0%,
    #ff7eab 45%,
    var(--pink) 100%
  );
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.65);
  will-change: transform;
  transition: transform 0.2s linear;
}

html[dir="rtl"] .g4c-nav-progress__fill {
  transform-origin: right center;
  inset: 0 0 0 auto;
}

.g4c-nav-progress.is-done .g4c-nav-progress__fill {
  transform: scaleX(1) !important;
  transition: transform 0.14s ease-out;
}

/* Indeterminate shimmer — visible without faking a percentage */
.g4c-nav-progress__pulse {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 38%;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 45%,
    transparent 100%
  );
  opacity: 0;
  transform: translate3d(-120%, 0, 0);
}

html.g4c-nav-loading .g4c-nav-progress.is-active:not(.is-done) .g4c-nav-progress__pulse,
.g4c-nav-progress.is-active:not(.is-done) .g4c-nav-progress__pulse {
  opacity: 1;
  animation: g4c-nav-progress-pulse 0.95s ease-in-out infinite;
}

@keyframes g4c-nav-progress-pulse {
  0% { transform: translate3d(-120%, 0, 0); }
  100% { transform: translate3d(320%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .g4c-nav-progress__pulse {
    animation: none !important;
    opacity: 0 !important;
  }
  .g4c-nav-progress,
  .g4c-nav-progress__fill {
    transition: none !important;
  }
}

/* Premium loading overlay */
.g4c-loader {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  pointer-events: none;
  /* Light dim only — no backdrop-filter (expensive on mobile scroll/composite) */
  background: rgba(5, 7, 11, 0.34);
  opacity: 0;
  transition: opacity 0.16s ease;
  overscroll-behavior: none;
  touch-action: none;
}
.g4c-loader[hidden] {
  display: none !important;
}
.g4c-loader.is-on {
  display: grid !important;
  opacity: 1;
  pointer-events: auto;
}
.g4c-loader.is-out {
  opacity: 0;
  transition-duration: 0.16s;
}
html.g4c-loader-lock,
html.g4c-loader-lock body {
  overflow: hidden !important;
  overscroll-behavior: none;
}
.g4c-loader__panel {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  padding: 1.1rem 1.25rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: linear-gradient(165deg, rgba(18, 22, 32, 0.92), rgba(10, 12, 18, 0.88));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
  transform: translate3d(0, 6px, 0) scale(0.98);
  transition: transform 0.2s ease;
}
.g4c-loader.is-on .g4c-loader__panel {
  transform: translate3d(0, 0, 0) scale(1);
}
.g4c-loader__orb {
  position: relative;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.g4c-loader__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(var(--accent-rgb), 0.18);
  border-top-color: rgba(var(--accent-rgb), 0.95);
  border-right-color: rgba(168, 85, 247, 0.55);
  animation: g4c-loader-spin 0.7s linear infinite;
  will-change: transform;
  z-index: 2;
}
.g4c-loader__icon {
  width: 58px;
  height: 58px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 2px rgba(5, 7, 11, 0.55), 0 0 18px rgba(var(--accent-rgb), 0.28);
  transform: scale(0.96);
  transition: transform 0.2s ease;
  background: #05070b;
}
.g4c-loader.is-on .g4c-loader__icon {
  transform: scale(1);
}
.g4c-loader__dots {
  display: flex;
  gap: 0.28rem;
}
.g4c-loader__dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.75);
  opacity: 0.35;
  animation: g4c-loader-dot 0.9s ease-in-out infinite;
}
.g4c-loader__dots span:nth-child(2) { animation-delay: 0.12s; }
.g4c-loader__dots span:nth-child(3) { animation-delay: 0.24s; }
.g4c-loader__text {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--text);
}
@keyframes g4c-loader-spin {
  to { transform: rotate(360deg); }
}
@keyframes g4c-loader-dot {
  0%, 100% { opacity: 0.3; transform: translate3d(0, 0, 0); }
  50% { opacity: 1; transform: translate3d(0, -2px, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .g4c-loader__ring,
  .g4c-loader__dots span {
    animation: none;
  }
  .g4c-loader,
  .g4c-loader__panel,
  .g4c-loader__icon {
    transition: opacity 0.15s ease;
  }
}

/* ==========================================================================
   Light mode — global contrast safety net (token-driven, no redesign)
   ========================================================================== */
html[data-theme="light"] .mobile-sidebar {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  border-color: var(--border);
}

html[data-theme="light"] .mobile-home-tab {
  color: var(--text-muted);
}

html[data-theme="light"] .mobile-home-tab.is-active {
  color: #fff;
}

html[data-theme="light"] .mobile-home-tab.is-active .mobile-home-tab-label {
  color: #fff;
}

html[data-theme="light"] .mobile-home-tab:not(.is-active) .mobile-home-tab-icon,
html[data-theme="light"] .icon-btn,
html[data-theme="light"] .nav-tool,
html[data-theme="light"] .theme-selector-btn:not(.is-active),
html[data-theme="light"] .account-hub-nav-link,
html[data-theme="light"] .profile-menu-link,
html[data-theme="light"] .sidebar-dash-link {
  color: var(--icon);
}

html[data-theme="light"] .account-hub-eyebrow,
html[data-theme="light"] .account-hub-subtitle,
html[data-theme="light"] .account-hub-user-meta small,
html[data-theme="light"] .orders-crumb,
html[data-theme="light"] .text-muted,
html[data-theme="light"] .muted {
  color: var(--text-muted);
}

html[data-theme="light"] .account-notif-card,
html[data-theme="light"] .account-monitor-card,
html[data-theme="light"] .product-monitor-panel,
html[data-theme="light"] .account-filter-tabs,
html[data-theme="light"] .account-filter-tabs__item,
html[data-theme="light"] .account-empty-state,
html[data-theme="light"] .account-empty-state--large,
html[data-theme="light"] .g4c-toast,
html[data-theme="light"] .store-toast,
html[data-theme="light"] .auth-alert {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

html[data-theme="light"] .product-monitor-panel {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.08), #ffffff 62%);
  border-color: rgba(var(--accent-rgb), 0.22);
}

html[data-theme="light"] .product-monitor-panel__status {
  color: var(--pink-deep);
}

html[data-theme="light"] .product-monitor-panel__hint,
html[data-theme="light"] .account-notif-card__body p,
html[data-theme="light"] .account-monitor-card__body p,
html[data-theme="light"] .account-notif-card__body time,
html[data-theme="light"] .account-monitor-card__date {
  color: var(--text-muted);
  opacity: 1;
}

html[data-theme="light"] .account-monitor-card__status {
  color: var(--green) !important;
}

html[data-theme="light"] .account-monitor-card__status.is-out {
  color: var(--pink-hot) !important;
}

html[data-theme="light"] .account-filter-tabs__item.is-active,
html[data-theme="light"] .ht-wallet-chip.is-active {
  color: #fff;
  background: linear-gradient(180deg, var(--pink), var(--pink-deep));
  border-color: transparent;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder,
html[data-theme="light"] .auth-input-wrap input::placeholder,
html[data-theme="light"] .product-search-input::placeholder,
html[data-theme="light"] .catalog-search-input::placeholder,
html[data-theme="light"] .ht-wallet-search input::placeholder {
  color: var(--placeholder) !important;
  -webkit-text-fill-color: var(--placeholder) !important;
  opacity: 1;
}

html[data-theme="light"] .g4c-loader__panel {
  background: #ffffff;
  border-color: rgba(var(--accent-rgb), 0.22);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
  color: var(--text);
}

html[data-theme="light"] .g4c-loader__icon {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.06), 0 0 18px rgba(var(--accent-rgb), 0.18);
}

html[data-theme="light"] .g4c-loader__text {
  color: var(--text);
}

html[data-theme="light"] .add-funds .wallet-pay-item,
html[data-theme="light"] .add-funds-support,
html[data-theme="light"] .add-funds-others,
html[data-theme="light"] .add-funds-limits div,
html[data-theme="light"] .add-funds-copy-row,
html[data-theme="light"] .add-funds-important,
html[data-theme="light"] .add-funds-hint {
  color: var(--text);
}

html[data-theme="light"] .add-funds-field-label,
html[data-theme="light"] .add-funds-limits dt,
html[data-theme="light"] .add-funds-support p,
html[data-theme="light"] .add-funds-head-copy p {
  color: var(--text-muted);
}

html[data-theme="light"] .add-funds-value,
html[data-theme="light"] .add-funds-limits dd,
html[data-theme="light"] .add-funds-head-copy h1 {
  color: var(--text);
}

html[data-theme="light"] .add-funds-copy {
  color: var(--on-accent) !important;
  -webkit-text-fill-color: var(--on-accent) !important;
}

html[data-theme="light"] .btn-outline,
html[data-theme="light"] .od-action.is-neutral,
html[data-theme="light"] .catalog-tool-btn,
html[data-theme="light"] .orders-export-btn,
html[data-theme="light"] .orders-filter-toggle {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-card);
}

html[data-theme="light"] .floating-contact-btn,
html[data-theme="light"] .floating-cart-btn {
  color: var(--on-accent);
}

html[data-theme="light"] .status-pill.is-success,
html[data-theme="light"] .badge.is-success,
html[data-theme="light"] .account-monitor-card__body p.account-monitor-card__status:not(.is-out) {
  color: #166534;
}

html[data-theme="light"] .status-pill.is-danger,
html[data-theme="light"] .badge.is-danger,
html[data-theme="light"] .account-monitor-card__body p.account-monitor-card__status.is-out {
  color: #be185d;
}

/* —— Order Details premium cleanup (v417) —— */
.od-page--premium {
  gap: 0.9rem;
}

.od-page--premium .od-head {
  margin-bottom: 0.15rem;
}

.od-page--premium .od-head-title h1 {
  font-size: clamp(1.2rem, 4vw, 1.45rem);
  letter-spacing: -0.02em;
}

.od-page--premium .od-card {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.04), transparent 42%),
    rgba(18, 14, 28, 0.72);
  box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.04), 0 12px 28px rgba(0, 0, 0, 0.22);
}

.od-page--premium .od-card-title {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.od-page--premium .od-summary-row {
  align-items: center;
  gap: 0.85rem;
}

.od-page--premium .od-summary-copy strong {
  font-size: 1.02rem;
  line-height: 1.3;
}

.od-page--premium .od-summary-copy span {
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.od-page--premium .od-summary-price strong {
  font-size: 1.08rem;
  color: #f9a8d4;
}

.od-page--premium .od-status-card {
  padding: 0.85rem;
}

.od-page--premium .od-status-card .od-result-alert {
  margin: 0;
  border-radius: 16px;
}

.od-page--premium .od-support-note {
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.od-page--premium .od-support-note strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

.od-page--premium .od-support-note p {
  margin: 0;
  white-space: pre-wrap;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.od-page--premium .od-support-note.is-fail {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(127, 29, 29, 0.2);
}

.od-page--premium .od-info-row {
  padding: 0.7rem 0;
  gap: 1rem;
}

.od-page--premium .od-info-row + .od-info-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.od-page--premium .od-delivery-details-list--clean {
  display: grid;
  gap: 0;
  margin: 0;
}

.od-page--premium .od-delivery-details-list--clean .od-delivery-detail {
  display: grid;
  grid-template-columns: minmax(5.5rem, 34%) 1fr;
  gap: 0.65rem 1rem;
  align-items: start;
  padding: 0.72rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.od-page--premium .od-delivery-details-list--clean .od-delivery-detail:first-child {
  border-top: 0;
  padding-top: 0.15rem;
}

.od-page--premium .od-delivery-details-list--clean dt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.od-page--premium .od-delivery-details-list--clean dd {
  margin: 0;
}

.od-page--premium .od-delivery-details-list--clean .od-delivery-value {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}

.od-page--premium .od-delivery-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.od-page--premium .od-result-foot {
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.od-page--premium .od-copy-all {
  width: 100%;
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  border-color: rgba(236, 72, 153, 0.35);
  background: rgba(236, 72, 153, 0.1);
  font-weight: 800;
}

.od-page--premium .od-copy-all.is-copied,
.od-page--premium .od-copy-all:hover {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(34, 197, 94, 0.12);
}

.od-page--premium .od-receipt-card .od-receipt-paper {
  border-radius: 16px;
}

.od-page--premium .od-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.od-page--premium .od-action {
  min-height: 48px;
  border-radius: 14px;
  justify-content: center;
}

@media (max-width: 640px) {
  .od-page--premium .od-delivery-details-list--clean .od-delivery-detail {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .od-page--premium .od-summary-row {
    flex-wrap: wrap;
  }

  .od-page--premium .od-summary-price {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    text-align: start;
  }
}

html[data-theme="light"] .od-page--premium .od-card {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.9), transparent 50%),
    var(--bg-card);
  border-color: var(--border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .od-page--premium .od-copy-all {
  background: rgba(236, 72, 153, 0.08);
}

/* —— Order Details v2 premium (v418) —— */
.od-page--v2 {
  --od-gap: 0.9rem;
  --od-radius: 18px;
  --od-pad: 1.05rem;
  display: grid;
  gap: var(--od-gap);
  max-width: 1080px;
  margin-inline: auto;
  width: 100%;
}

.od-page--v2 .od-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.35rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.od-page--v2 .od-crumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.od-page--v2 .od-crumb-current {
  color: #f472b6;
  font-weight: 700;
}

.od-page--v2 .od-head {
  margin-bottom: 0.15rem;
}

.od-page--v2 .od-head-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}

.od-page--v2 .od-head-title h1 {
  margin: 0;
  font-size: clamp(1.2rem, 4.2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.od-page--v2 .od-head-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.od-page--v2 .od-status-pill.is-success {
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.35), 0 0 18px rgba(34, 197, 94, 0.28);
}

.od-page--v2 .od-layout {
  display: grid;
  gap: var(--od-gap);
}

.od-page--v2 .od-col {
  display: grid;
  gap: var(--od-gap);
  align-content: start;
}

.od-page--v2 .od-card {
  padding: var(--od-pad);
  border-radius: var(--od-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.035), transparent 45%),
    rgba(14, 12, 24, 0.82);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.od-page--v2 .od-card-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
}

.od-page--v2 .od-card-title svg {
  color: #f472b6;
}

.od-page--v2 .od-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.od-page--v2 .od-summary-copy {
  display: grid;
  gap: 0.2rem;
}

.od-page--v2 .od-summary-copy strong {
  font-size: 1.02rem;
  line-height: 1.3;
}

.od-page--v2 .od-summary-copy span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.od-page--v2 .od-type-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.25rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.18);
  color: #e9d5ff;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.od-page--v2 .od-summary-price {
  display: grid;
  justify-items: end;
  gap: 0.15rem;
  text-align: end;
}

.od-page--v2 .od-summary-price strong {
  color: #f9a8d4;
  font-size: 1.15rem;
  font-weight: 800;
}

.od-page--v2 .od-summary-price span {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.od-page--v2 .od-status-card {
  padding: 0.85rem;
}

.od-page--v2 .od-result-alert {
  margin: 0;
  border-radius: 16px;
}

.od-page--v2 .od-result-copy strong {
  font-size: 1.05rem;
}

.od-page--v2 .od-support-note {
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.od-page--v2 .od-support-note strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

.od-page--v2 .od-support-note p {
  margin: 0;
  white-space: pre-wrap;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.od-page--v2 .od-support-note.is-fail {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(127, 29, 29, 0.2);
}

.od-page--v2 .od-info-list {
  display: grid;
  gap: 0;
}

.od-page--v2 .od-info-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.od-page--v2 .od-info-row:first-child {
  border-top: 0;
  padding-top: 0.1rem;
}

.od-page--v2 .od-info-row span {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.od-page--v2 .od-info-row strong {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 750;
  text-align: end;
  word-break: break-word;
}

.od-page--v2 .od-info-total strong {
  color: #f9a8d4;
  font-size: 1.05rem;
}

.od-page--v2 .od-delivery-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.od-page--v2 .od-delivery-row {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.72rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.od-page--v2 .od-delivery-row:first-child {
  border-top: 0;
  padding-top: 0.1rem;
}

.od-page--v2 .od-delivery-emoji {
  line-height: 1.4;
  font-size: 1rem;
}

.od-page--v2 .od-delivery-body {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.od-page--v2 .od-delivery-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.od-page--v2 .od-delivery-value {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.35;
  word-break: break-word;
}

.od-page--v2 a.od-open-sub {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.2rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.16);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.od-page--v2 a.od-open-sub:hover,
.od-page--v2 a.od-open-sub:focus-visible {
  background: rgba(var(--accent-rgb), 0.28);
  text-decoration: underline;
}

.od-page--v2 .od-mini-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.od-page--v2 .od-mini-pill.is-success {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

.od-page--v2 .od-delivery-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.od-page--v2 .od-result-foot {
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.od-page--v2 .od-copy-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(236, 72, 153, 0.28);
  cursor: pointer;
}

.od-page--v2 .od-copy-all .od-copy-done {
  display: none;
}

.od-page--v2 .od-copy-all.is-copied {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 8px 22px rgba(34, 197, 94, 0.28);
}

.od-page--v2 .od-copy-all.is-copied .od-copy-idle {
  display: none;
}

.od-page--v2 .od-copy-all.is-copied .od-copy-done {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.od-page--v2 .od-copy-idle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.od-page--v2 .od-receipt-paper {
  padding: 1rem 1.05rem 1.15rem;
  border-radius: 14px;
  background: #f8fafc;
  color: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.od-page--v2 .od-receipt-brand {
  text-align: center;
  margin-bottom: 0.85rem;
}

.od-page--v2 .od-receipt-thanks {
  margin: 0.45rem 0 0;
  color: #db2777;
  font-size: 0.88rem;
  font-weight: 700;
}

.od-page--v2 .od-receipt-meta {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}

.od-page--v2 .od-receipt-meta div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.12);
}

.od-page--v2 .od-receipt-meta dt {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 650;
}

.od-page--v2 .od-receipt-meta dd {
  margin: 0;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 750;
  text-align: end;
}

.od-page--v2 .od-receipt-totals .is-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.od-page--v2 .od-receipt-totals .is-total span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.od-page--v2 .od-receipt-totals .is-total strong {
  color: #db2777;
  font-size: 1.15rem;
  font-weight: 850;
}

.od-page--v2 .od-actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.15rem;
}

.od-page--v2 .od-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.od-page--v2 .od-action.is-primary {
  background: linear-gradient(135deg, #ec4899, #db2777 55%, #a855f7);
  color: #fff;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.3);
}

.od-page--v2 .od-actions-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.od-page--v2 .od-action.is-secondary,
.od-page--v2 .od-action.is-ghost {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  min-height: 44px;
  font-size: 0.9rem;
}

.od-page--v2 .od-brand-foot {
  margin: 0.35rem 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

@media (min-width: 900px) {
  .od-page--v2 {
    --od-gap: 1rem;
    --od-pad: 1.15rem;
  }

  .od-page--v2 .od-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }

  .od-page--v2 .od-actions-secondary {
    grid-template-columns: 1fr 1fr;
    max-width: 520px;
  }

  .od-page--v2 .od-action.is-primary {
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  .od-page--v2 {
    --od-gap: 0.8rem;
    --od-pad: 0.95rem;
  }

  .od-page--v2 .od-summary-row {
    flex-wrap: wrap;
  }

  .od-page--v2 .od-summary-price {
    width: 100%;
    grid-template-columns: 1fr auto;
    justify-items: stretch;
    align-items: baseline;
    text-align: start;
  }

  .od-page--v2 .od-summary-price span {
    justify-self: end;
  }

  .od-page--v2 .od-actions-secondary {
    grid-template-columns: 1fr 1fr;
  }
}

html[data-theme="light"] .od-page--v2 .od-card {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.92), transparent 48%),
    var(--bg-card);
  border-color: var(--border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .od-page--v2 .od-action.is-secondary,
html[data-theme="light"] .od-page--v2 .od-action.is-ghost {
  background: var(--bg-card);
  border-color: var(--border-strong);
}

/* What's New / version updates */
@keyframes wn-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.wn-page {
  --wn-radius: 1.35rem;
  padding-block: 1.6rem calc(2.75rem + var(--app-tab-clearance) + var(--safe-bottom));
  max-width: 46rem;
}

.wn-page-head {
  margin-bottom: 1.25rem;
}

.wn-page-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
}

.wn-page-title-row h1 {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

.wn-page-head > p {
  margin: 0;
  color: var(--text-muted);
  max-width: 36rem;
}

.wn-hero {
  margin-bottom: 1.6rem;
  animation: wn-rise 0.38s ease both;
}

.wn-hero-label,
.wn-release-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
  color: var(--pink-hot);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wn-hero h1 {
  margin: 0;
  font-size: clamp(1.85rem, 5vw, 2.45rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.wn-hero-copy {
  margin: 0.55rem 0 0;
  max-width: 28rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.wn-version-chip,
.wn-pill,
.wn-menu-version,
.wn-chip,
.wn-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.wn-version-chip,
.wn-chip {
  padding: 0.32rem 0.55rem;
  background: color-mix(in srgb, var(--pink) 12%, transparent);
  color: var(--pink-hot);
  border: 1px solid color-mix(in srgb, var(--pink) 28%, transparent);
}

.wn-pill {
  padding: 0.22rem 0.45rem;
  background: var(--pink);
  color: #fff;
}

.wn-pill--glow {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pink) 18%, transparent), 0 8px 18px rgba(var(--accent-rgb), 0.28);
}

.wn-pill--menu,
.wn-menu-version {
  margin-inline-start: auto;
}

.wn-menu-version {
  color: var(--text-muted);
  font-weight: 700;
}

.wn-nav-dot {
  min-width: 8px;
  width: 8px;
  height: 8px;
  padding: 0;
}

.wn-list,
.wn-empty {
  display: grid;
  gap: 0.85rem;
}

.wn-empty {
  place-items: center;
  text-align: center;
  padding: 2.6rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--wn-radius);
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--pink) 10%, transparent), transparent 46%),
    var(--bg-card);
  box-shadow: var(--shadow);
  animation: wn-rise 0.38s ease both;
}

.wn-empty-icon {
  font-size: 1.7rem;
}

.wn-empty h2 {
  margin: 0.45rem 0 0;
  font-size: 1.15rem;
}

.wn-empty p {
  margin: 0.4rem 0 0;
  max-width: 22rem;
  color: var(--text-muted);
}

.wn-featured-wrap {
  position: relative;
  isolation: isolate;
}

.wn-featured-wrap::before {
  content: "";
  position: absolute;
  inset: -12% 8% auto;
  height: 11rem;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--pink) 20%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wn-release,
.wn-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem 1.25rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--wn-radius, 1.35rem);
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--pink) 8%, transparent), transparent 42%),
    color-mix(in srgb, var(--bg-card) 88%, transparent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  animation: wn-rise 0.4s ease both;
}

.wn-release.is-featured,
.wn-card.is-unread,
.wn-release.is-unread {
  border-color: color-mix(in srgb, var(--pink) 36%, var(--border));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--pink) 18%, transparent),
    0 18px 44px rgba(0, 0, 0, 0.24);
}

.wn-release-top,
.wn-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.wn-release-version,
.wn-card-version {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.wn-release-title,
.wn-card-title {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.wn-release-date,
.wn-release-lede,
.wn-card-date,
.wn-card-lede {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.wn-release-lede,
.wn-card-lede {
  max-width: 38rem;
}

.wn-release-items,
.wn-changes {
  display: grid;
  gap: 0;
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
}

.wn-release-item,
.wn-change {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 0.95rem 0;
  border-top: 1px solid var(--border);
}

.wn-release-item-icon,
.wn-change-icon {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--pink) 10%, var(--bg-elevated));
  font-size: 1rem;
}

.wn-release-item.is-improvement .wn-release-item-icon { background: color-mix(in srgb, var(--gold) 14%, var(--bg-elevated)); }
.wn-release-item.is-fix .wn-release-item-icon { background: color-mix(in srgb, var(--blue) 14%, var(--bg-elevated)); }
.wn-release-item.is-security .wn-release-item-icon { background: color-mix(in srgb, var(--green) 14%, var(--bg-elevated)); }
.wn-release-item.is-announcement .wn-release-item-icon { background: color-mix(in srgb, var(--purple) 14%, var(--bg-elevated)); }

.wn-release-item-type {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--pink-hot);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wn-release-item.is-improvement .wn-release-item-type { color: var(--gold); }
.wn-release-item.is-fix .wn-release-item-type { color: var(--blue); }
.wn-release-item.is-security .wn-release-item-type { color: var(--green); }
.wn-release-item.is-announcement .wn-release-item-type { color: var(--purple); }

.wn-release-item-copy strong,
.wn-change-body strong {
  display: block;
  font-size: 0.98rem;
}

.wn-release-item-copy p,
.wn-change-body p {
  margin: 0.22rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.wn-release-thanks {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.15rem 0 0;
  padding-top: 0.95rem;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 650;
}

.wn-release-thanks span {
  color: var(--pink-hot);
}

.wn-release-link,
.wn-card-link,
.wn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--pink-hot);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.wn-release-link span[aria-hidden],
.wn-card-link span[aria-hidden],
.wn-back span[aria-hidden] {
  transition: transform 0.16s ease;
}

.wn-release-link:hover span[aria-hidden],
.wn-card-link:hover span[aria-hidden] {
  transform: translateX(3px);
}

.wn-back {
  margin-bottom: 0.9rem;
}

.wn-back:hover span[aria-hidden] {
  transform: translateX(-3px);
}

[dir="rtl"] .wn-release-link:hover span[aria-hidden],
[dir="rtl"] .wn-card-link:hover span[aria-hidden] {
  transform: translateX(-3px);
}

[dir="rtl"] .wn-back:hover span[aria-hidden] {
  transform: translateX(3px);
}

.wn-history {
  margin-top: 2rem;
}

.wn-history h2 {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wn-timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wn-timeline::before {
  content: "";
  position: absolute;
  inset-block: 0.35rem 0.35rem;
  inset-inline-start: 0.42rem;
  width: 1px;
  background: var(--border-strong);
}

.wn-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 0.9rem 1fr;
  gap: 0.85rem;
  padding-bottom: 0.85rem;
  animation: wn-rise 0.4s ease both;
  animation-delay: calc(var(--wn-i, 0) * 50ms);
}

.wn-timeline-dot {
  position: relative;
  z-index: 1;
  width: 0.85rem;
  height: 0.85rem;
  margin-top: 1.05rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 2px solid color-mix(in srgb, var(--pink) 40%, var(--border-strong));
  box-shadow: 0 0 0 4px var(--bg);
}

.wn-timeline-item.is-latest .wn-timeline-dot {
  background: var(--pink);
  border-color: var(--pink);
  box-shadow: 0 0 0 4px var(--bg), 0 0 16px rgba(var(--accent-rgb), 0.35);
}

.wn-timeline-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1.05rem;
  background: var(--bg-card);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.wn-timeline-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--pink) 28%, var(--border));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.wn-timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.wn-timeline-head strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.wn-timeline-title {
  color: var(--text);
  font-size: 0.92rem;
}

.wn-timeline-card time {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.wn-pager {
  margin-top: 1.25rem;
}

html[data-theme="light"] .wn-release,
html[data-theme="light"] .wn-card,
html[data-theme="light"] .wn-empty,
html[data-theme="light"] .wn-timeline-card {
  background:
    linear-gradient(165deg, rgba(var(--accent-rgb), 0.04), transparent 48%),
    #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .wn-release.is-featured,
html[data-theme="light"] .wn-release.is-unread {
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.12),
    0 16px 32px rgba(15, 23, 42, 0.07);
}

html[data-theme="light"] .wn-timeline-dot {
  box-shadow: 0 0 0 4px var(--bg);
}

@media (max-width: 640px) {
  .wn-page {
    padding-block: 1.15rem calc(5.75rem + var(--safe-bottom));
  }

  .wn-release,
  .wn-card {
    padding: 1.05rem 1rem 1.1rem;
  }

  .wn-release-version,
  .wn-card-version {
    font-size: 1.3rem;
  }
}

/* ===== Wallet funding center + voucher ===== */
.ht-funding {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
  padding-bottom: calc(0.75rem + var(--app-tab-clearance, 0px) + var(--safe-bottom, 0px));
}
.ht-funding-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  padding: 0.28rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--pink, #ff007a) 28%, transparent);
  background: color-mix(in srgb, var(--surface-2, #16161f) 88%, transparent);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.ht-funding-tab {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted, #9ca3af);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.ht-funding-tab__icon { display: inline-flex; opacity: 0.9; }
.ht-funding-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #ff007a, #c026d3 70%);
  box-shadow: 0 6px 16px rgba(255, 0, 122, 0.22);
}
.ht-funding-tab:not(.is-active):hover {
  color: var(--text, #fff);
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}
.ht-funding-panel.is-hidden { display: none !important; }
.ht-voucher--embedded { max-width: none; margin: 0; }
.ht-voucher-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(160px, 0.7fr);
  gap: 0.75rem;
  align-items: stretch;
}
.ht-voucher-panel {
  padding: 0.85rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--pink, #ff007a) 22%, transparent);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 0, 122, 0.08), transparent 55%),
    linear-gradient(160deg, rgba(20, 16, 28, 0.9), rgba(12, 12, 18, 0.94));
}
.ht-voucher-panel__head h2 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.ht-voucher-panel__head p {
  margin: 0 0 0.7rem;
  color: var(--text-muted, #9ca3af);
  font-size: 0.84rem;
  line-height: 1.4;
}
.ht-voucher-form { display: grid; gap: 0.45rem; }
.ht-voucher-label { font-size: 0.8rem; font-weight: 650; }
.ht-voucher-input-wrap { position: relative; }
.ht-voucher-input-icon {
  position: absolute;
  inset-inline-start: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pink, #ff007a);
  pointer-events: none;
  display: inline-flex;
}
.ht-voucher-input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  padding-inline-start: 2.4rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.22);
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}
.ht-voucher-hint {
  margin: 0;
  font-size: 0.76rem;
  color: #60a5fa;
  line-height: 1.35;
}
.ht-voucher-submit {
  min-height: 2.7rem;
  justify-content: center;
  margin-top: 0.1rem;
}
.ht-voucher-submit:disabled { opacity: 0.72; cursor: wait; }
.ht-voucher-aside { display: grid; align-content: start; }
.ht-voucher-card {
  padding: 0.85rem 0.9rem;
  border-radius: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, #ff007a, #7c3aed 55%, #0ea5e9);
  box-shadow: 0 8px 18px rgba(255, 0, 122, 0.16);
  display: grid;
  gap: 0.12rem;
  min-height: 0;
}
.ht-voucher-card__brand { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.12em; }
.ht-voucher-card__label { font-size: 0.72rem; opacity: 0.92; }
.ht-voucher-card__amount { font-size: 1.45rem; font-weight: 800; line-height: 1; }
.ht-voucher-card__hint { font-size: 0.7rem; opacity: 0.88; }
.ht-voucher-success {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background:
    radial-gradient(80% 80% at 50% 0%, rgba(34, 197, 94, 0.14), transparent 60%),
    rgba(12, 16, 14, 0.88);
}
.ht-voucher-success__icon {
  width: 2.85rem;
  height: 2.85rem;
  margin: 0 auto 0.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  background: #22c55e;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.32);
}
.ht-voucher-success h2 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.ht-voucher-success__amount {
  margin: 0.2rem 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: #4ade80;
}
.ht-voucher-success__balance {
  display: grid;
  gap: 0.12rem;
  margin: 0.75rem auto;
  max-width: 210px;
  padding: 0.7rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.05);
}
.ht-voucher-success__balance strong { font-size: 1.15rem; }
.ht-voucher-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.7rem;
}
.ht-voucher-error {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.15rem;
  padding: 0.95rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(248, 113, 113, 0.38);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(248, 113, 113, 0.1), transparent 55%),
    linear-gradient(160deg, rgba(36, 18, 22, 0.96), rgba(16, 12, 14, 0.96));
  box-shadow: 0 0 0 1px rgba(255, 0, 122, 0.05), 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* Author `display: grid` must not override the HTML hidden attribute. */
.ht-voucher-error[hidden] {
  display: none !important;
}

body.has-mobile-home-tab .ht-voucher--embedded {
  padding-bottom: calc(0.75rem + var(--mobile-home-tab-space, 5.5rem));
}

body.has-mobile-home-tab .ht-voucher-error:not([hidden]) {
  margin-bottom: 0.5rem;
}
.ht-voucher-error__icon {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #ef4444, #f97316);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.28);
}
.ht-voucher-error__copy h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fb7185;
  letter-spacing: -0.01em;
}
.ht-voucher-error__copy p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted, #9ca3af);
}
.ht-voucher-error__retry {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 2.55rem;
  margin-top: 0.15rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(251, 113, 133, 0.45);
  background: transparent;
  color: #fda4af;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.ht-voucher-error__retry:hover {
  background: rgba(251, 113, 133, 0.08);
  color: #ffe4e6;
}
.ht-voucher-error--used {
  border-color: rgba(248, 113, 113, 0.42);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(248, 113, 113, 0.14), transparent 55%),
    linear-gradient(160deg, rgba(42, 16, 20, 0.96), rgba(16, 12, 14, 0.96));
}
.ht-voucher-error--used .ht-voucher-error__copy h3 {
  color: #fb7185;
}
.ht-voucher-error--used .ht-voucher-error__icon {
  background: linear-gradient(145deg, #ef4444, #f97316);
}
.ht-voucher-error--expired,
.ht-voucher-error--disabled {
  border-color: rgba(251, 146, 60, 0.4);
}
.ht-voucher-error--expired .ht-voucher-error__copy h3,
.ht-voucher-error--disabled .ht-voucher-error__copy h3 {
  color: #fb923c;
}
.ht-voucher-error--expired .ht-voucher-error__icon,
.ht-voucher-error--disabled .ht-voucher-error__icon {
  background: linear-gradient(145deg, #f97316, #ea580c);
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.28);
}
.ht-voucher-error--missing,
.ht-voucher-error--invalid,
.ht-voucher-error--failed {
  border-color: rgba(244, 114, 182, 0.35);
}
html[data-theme="light"] .ht-voucher-error,
html.theme-light .ht-voucher-error,
body.light .ht-voucher-error {
  background: linear-gradient(160deg, #fff7f7, #fff);
  border-color: #fecaca;
}
html[data-theme="light"] .ht-voucher-error__copy h3,
html.theme-light .ht-voucher-error__copy h3,
body.light .ht-voucher-error__copy h3 {
  color: #e11d48;
}
html[data-theme="light"] .ht-voucher-error__copy p,
html.theme-light .ht-voucher-error__copy p,
body.light .ht-voucher-error__copy p {
  color: #6b7280;
}
html[data-theme="light"] .ht-voucher-error__retry,
html.theme-light .ht-voucher-error__retry,
body.light .ht-voucher-error__retry {
  border-color: #fda4af;
  color: #be123c;
}


/* Keep floating chat clear of redeem CTA / support on Add Funds */
body.has-mobile-home-tab .add-funds-page .floating-dock {
  bottom: calc(
    1.15rem + var(--safe-bottom) + var(--app-tab-clearance) + var(--app-pwa-clearance)
  );
}
.add-funds-page .ht-voucher-submit,
.add-funds-page .add-funds-support {
  position: relative;
  z-index: 1;
}
.add-funds-page .add-funds-support {
  margin-bottom: 0.35rem;
  padding-bottom: 0.25rem;
}

html[data-theme="light"] .ht-funding-tabs,
html.theme-light .ht-funding-tabs,
body.light .ht-funding-tabs {
  background: #f7f5fb;
  border-color: #ecd9e6;
}
html[data-theme="light"] .ht-funding-tab:not(.is-active),
html.theme-light .ht-funding-tab:not(.is-active),
body.light .ht-funding-tab:not(.is-active) {
  color: #6b7280;
}
html[data-theme="light"] .ht-voucher-panel,
html.theme-light .ht-voucher-panel,
body.light .ht-voucher-panel {
  background: linear-gradient(160deg, #fff, #f8f5fb);
  border-color: #ecd9e6;
}
html[data-theme="light"] .ht-voucher-input,
html.theme-light .ht-voucher-input,
body.light .ht-voucher-input {
  background: #fff;
  border-color: #e5e7eb;
}
html[data-theme="light"] .ht-voucher-success,
html.theme-light .ht-voucher-success,
body.light .ht-voucher-success {
  background: #f3fbf6;
}

@media (max-width: 800px) {
  .ht-voucher-layout { grid-template-columns: 1fr; }
  .ht-voucher-aside { display: none; }
  .ht-funding-tab { font-size: 0.82rem; min-height: 2.45rem; padding-inline: 0.55rem; }
  .ht-voucher-panel { padding: 0.75rem 0.8rem; }
  .ht-funding {
    padding-bottom: calc(1.25rem + var(--app-tab-clearance, 0px) + var(--safe-bottom, 0px));
  }
}

/* Storefront rate-limit / soft notices (never a raw 429 page) */
.ht-store-notice-host {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.65rem 0.85rem 0;
}
.ht-store-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  max-width: 42rem;
  margin: 0 auto 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(248, 113, 113, 0.38);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(248, 113, 113, 0.12), transparent 55%),
    linear-gradient(160deg, rgba(36, 18, 22, 0.96), rgba(16, 12, 14, 0.96));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  color: var(--text, #f3f4f6);
}
.ht-store-notice--info {
  border-color: rgba(96, 165, 250, 0.4);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(59, 130, 246, 0.14), transparent 55%),
    linear-gradient(160deg, rgba(15, 23, 42, 0.96), rgba(12, 16, 28, 0.96));
}
.ht-store-notice__icon {
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
  margin-top: 0.05rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #ef4444, #f97316);
}
.ht-store-notice--info .ht-store-notice__icon {
  background: linear-gradient(145deg, #3b82f6, #60a5fa);
}
.ht-store-notice__copy {
  flex: 1 1 auto;
  min-width: 0;
}
.ht-store-notice__copy strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: #fda4af;
}
.ht-store-notice--info .ht-store-notice__copy strong {
  color: #93c5fd;
}
.ht-store-notice__copy p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-muted, #9ca3af);
}
.ht-store-notice__close {
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--text-muted, #9ca3af);
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.ht-store-notice__close:hover {
  color: var(--text, #f3f4f6);
  background: rgba(255, 255, 255, 0.06);
}
#main > .ht-store-notice {
  margin: 0.85rem auto 0;
  max-width: min(42rem, calc(100% - 1.5rem));
}
html[data-theme="light"] .ht-store-notice,
html.theme-light .ht-store-notice,
body.light .ht-store-notice {
  background: linear-gradient(160deg, #fff7f7, #fff);
  border-color: rgba(248, 113, 113, 0.35);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .ht-store-notice__copy strong,
html.theme-light .ht-store-notice__copy strong,
body.light .ht-store-notice__copy strong {
  color: #dc2626;
}
html[data-theme="light"] .ht-store-notice--info,
html.theme-light .ht-store-notice--info,
body.light .ht-store-notice--info {
  background: linear-gradient(160deg, #f0f7ff, #fff);
  border-color: rgba(59, 130, 246, 0.3);
}
html[data-theme="light"] .ht-store-notice--info .ht-store-notice__copy strong,
html.theme-light .ht-store-notice--info .ht-store-notice__copy strong,
body.light .ht-store-notice--info .ht-store-notice__copy strong {
  color: #2563eb;
}

.support-chat-online {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-inline-end: 0.35rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
  vertical-align: middle;
}
.ai-agent-typing p {
  opacity: 0.78;
  font-style: italic;
}
.ai-agent-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 1.2em;
}
.ai-agent-typing-dots span {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.45;
  animation: g4c-ai-typing 1.1s infinite ease-in-out;
}
.ai-agent-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.ai-agent-typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes g4c-ai-typing {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-2px); opacity: 0.95; }
}
.ai-agent-typing::after {
  content: '';
}

/* Player ID verification — mockup states: idle / loading / success / error */
.g4c-pidv {
  margin: 1rem 0 1.35rem;
}
.g4c-pidv__card {
  border: 1px solid #dbe3f0;
  border-radius: 16px;
  background: #fff;
  padding: 1.1rem 1.15rem 1.15rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
[data-theme="dark"] .g4c-pidv__card {
  background: color-mix(in srgb, var(--surface, #111) 92%, #1e3a5f 8%);
  border-color: color-mix(in srgb, #64748b 40%, transparent);
  box-shadow: none;
}
.g4c-pidv__head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.95rem;
}
.g4c-pidv__badge {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.g4c-pidv__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}
[data-theme="dark"] .g4c-pidv__title { color: inherit; }
.g4c-pidv__hint,
.g4c-pidv__notes {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.4;
}
.g4c-pidv__fields {
  display: grid;
  gap: 0.75rem;
}
.g4c-pidv__field {
  display: grid;
  gap: 0.35rem;
}
.g4c-pidv__label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
}
[data-theme="dark"] .g4c-pidv__label { color: inherit; opacity: 0.9; }
.g4c-pidv__input {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.78rem 0.9rem;
  font-size: 1rem;
  background: #f8fafc;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.g4c-pidv__input:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.g4c-pidv__input.is-invalid,
.g4c-pidv[data-state="error"] .g4c-pidv__input {
  border-color: #ef4444;
  background: #fef2f2;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.g4c-pidv__input:read-only {
  opacity: 0.92;
}
.g4c-pidv__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.95rem;
}
.g4c-pidv__btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 0.78rem 1.15rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.75rem;
}
.g4c-pidv__btn--primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}
.g4c-pidv__btn--primary:disabled {
  opacity: 0.8;
  cursor: wait;
}
.g4c-pidv__btn--ghost {
  background: transparent;
  color: #2563eb;
  border: 1.5px solid #bfdbfe;
}
.g4c-pidv__spinner {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: g4c-pidv-spin 0.7s linear infinite;
}
@keyframes g4c-pidv-spin {
  to { transform: rotate(360deg); }
}
.g4c-pidv__result {
  margin-top: 0.9rem;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font-size: 0.94rem;
}
.g4c-pidv__result.is-success {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #166534;
}
.g4c-pidv__result.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.g4c-pidv__success-icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #22c55e;
  color: #fff;
  font-weight: 800;
  flex: 0 0 auto;
}
.g4c-pidv__success-copy {
  display: grid;
  gap: 0.15rem;
}
.g4c-pidv__success-copy strong {
  font-size: 1rem;
}
.g4c-pidv__success-copy em {
  font-style: normal;
  font-weight: 700;
}
[data-theme="dark"] .g4c-pidv__result.is-success {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
}
[data-theme="dark"] .g4c-pidv__result.is-error {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}
@media (max-width: 640px) {
  .g4c-pidv__actions .g4c-pidv__btn {
    width: 100%;
  }
}

/* —— Product Groups / Variants —— */
.product-group-variants {
  margin: 0 0 1rem;
}
.product-group-variants__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.65rem;
}
.product-group-variants__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}
.product-group-variants__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--text) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}
.product-group-variants__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
@media (min-width: 640px) {
  .product-group-variants__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.product-group-variant {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: var(--nested-surface, var(--surface-soft));
  color: inherit;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
[data-theme="dark"] .product-group-variant {
  background: var(--nested-surface, var(--bg-card-hover));
  border-color: var(--border-strong, rgba(255, 255, 255, 0.14));
}
.product-group-variant.is-active {
  border-color: #ec4899;
  box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.18);
  background: rgba(236, 72, 153, 0.08);
}
.product-group-variant.is-unavailable {
  opacity: 0.55;
}
.product-group-variant__check {
  position: absolute;
  top: 0.45rem;
  inset-inline-end: 0.45rem;
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  background: #ec4899;
}
.product-group-variant__name {
  font-size: 0.86rem;
  font-weight: 700;
  padding-inline-end: 1.15rem;
}
.product-group-variant__price {
  font-size: 0.78rem;
  opacity: 0.78;
}

.product-inline-verify {
  margin-top: 0.45rem;
  display: grid;
  gap: 0.35rem;
}
.product-inline-verify__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: fit-content;
  min-height: 2.1rem;
  padding: 0.35rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: #ec4899;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.product-inline-verify__btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
.product-inline-verify__spinner {
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: g4c-pidv-spin 0.7s linear infinite;
}
.product-inline-verify__name {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
}
.product-inline-verify__name.is-ok {
  color: #15803d;
}
.product-inline-verify__name.is-error {
  color: #b91c1c;
}
.product-customer-input.is-invalid {
  border-color: #ef4444 !important;
}

/* Generic payment receipt upload */
.manual-receipt-form {
  display: grid;
  gap: 0.85rem;
}
.manual-receipt-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}
.manual-receipt-quick__btn {
  min-height: 40px;
  min-width: 44px;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ht-accent, #ec4899) 35%, transparent);
  background: transparent;
  color: inherit;
  font-weight: 650;
  font-size: 0.9rem;
  cursor: pointer;
}
.manual-receipt-quick__btn.is-active,
.manual-receipt-quick__btn:hover,
.manual-receipt-quick__btn:focus-visible {
  background: color-mix(in srgb, var(--ht-accent, #ec4899) 14%, transparent);
  border-color: var(--ht-accent, #ec4899);
  color: var(--ht-accent, #ec4899);
  outline: none;
}
.payment-receipt {
  border: 1px solid color-mix(in srgb, var(--ht-accent, #ec4899) 28%, transparent);
  background: color-mix(in srgb, var(--ht-accent, #ec4899) 6%, transparent);
  border-radius: 14px;
  padding: 0.85rem;
  display: grid;
  gap: 0.7rem;
}
.payment-receipt__head p {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  opacity: 0.85;
}
.payment-receipt__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.payment-receipt__required {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #be123c;
  background: color-mix(in srgb, #fb7185 18%, transparent);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.payment-receipt__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.payment-receipt__drop {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  min-height: 132px;
  padding: 1rem;
  border: 1.5px dashed color-mix(in srgb, var(--ht-accent, #ec4899) 55%, transparent);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  color: var(--ht-accent, #ec4899);
  background: color-mix(in srgb, var(--ht-surface, #fff) 70%, transparent);
}
.payment-receipt__drop:hover,
.payment-receipt__drop:focus-within {
  border-color: var(--ht-accent, #ec4899);
  background: color-mix(in srgb, var(--ht-accent, #ec4899) 8%, transparent);
}
.payment-receipt__icon {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}
.payment-receipt__drop strong {
  font-size: 0.95rem;
}
.payment-receipt__drop small {
  color: inherit;
  opacity: 0.75;
  font-size: 0.78rem;
}
.payment-receipt__preview {
  display: grid;
  gap: 0.65rem;
}
.payment-receipt__preview[hidden] {
  display: none !important;
}
.payment-receipt__frame {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  min-height: 120px;
  max-height: 280px;
  padding: 0.55rem;
  overflow: hidden;
  border-radius: 12px;
  border: 1.5px dashed color-mix(in srgb, var(--ht-accent, #ec4899) 55%, transparent);
  background: color-mix(in srgb, var(--ht-surface, #fff) 88%, transparent);
  box-sizing: border-box;
}
.payment-receipt__preview img,
.payment-receipt__frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 250px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  border: 0;
  background: transparent;
}
.payment-receipt__meta {
  display: grid;
  gap: 0.45rem;
}
.payment-receipt__meta > span {
  font-size: 0.86rem;
  word-break: break-all;
}
.payment-receipt__hint {
  display: block;
  font-size: 0.78rem;
  opacity: 0.72;
  text-align: center;
}
.payment-receipt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.payment-receipt__btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--ht-accent, #ec4899) 40%, transparent);
  background: color-mix(in srgb, var(--ht-accent, #ec4899) 12%, transparent);
  color: var(--ht-accent, #ec4899);
  font-weight: 650;
  font-size: 0.88rem;
  cursor: pointer;
}
.payment-receipt__btn--ghost {
  background: transparent;
}
.manual-receipt-submit {
  min-height: 48px;
  position: relative;
  z-index: 1;
}
.manual-receipt-foot {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  position: relative;
  z-index: 1;
}

/* Keep support FAB clear of OMT receipt controls / submit on mobile */
@media (max-width: 1023px) {
  body.has-mobile-home-tab .add-funds-page .manual-receipt-form {
    /* Equal insets — do NOT pad only one side (that caused left-edge clipping look). */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-inline: 0;
    /* Scroll room so submit + note clear the FAB above the tab bar */
    padding-bottom: calc(var(--dock-size, 48px) + 1.35rem);
  }
  body.has-mobile-home-tab .add-funds-page .manual-receipt-form--premium .mrp-submit {
    /* Reserve a right lane only for the CTA row, not the whole form */
    padding-inline-end: calc(var(--dock-size, 48px) + 0.55rem);
    box-sizing: border-box;
  }
  body.has-mobile-home-tab .add-funds-page .manual-receipt-submit,
  body.has-mobile-home-tab .add-funds-page .manual-receipt-foot {
    max-width: 100%;
  }
  body.has-mobile-home-tab .add-funds-page .floating-dock {
    bottom: calc(
      1.35rem + var(--safe-bottom) + var(--app-tab-clearance) + var(--app-pwa-clearance)
    );
  }
  .payment-receipt__frame {
    max-height: 260px;
  }
  .payment-receipt__preview img,
  .payment-receipt__frame img {
    max-height: 230px;
  }
}
html[data-theme="light"] .payment-receipt,
html.theme-light .payment-receipt,
body.light .payment-receipt {
  background: #fff1f5;
}
html[data-theme="light"] .payment-receipt__drop,
html.theme-light .payment-receipt__drop,
body.light .payment-receipt__drop {
  background: #fff;
}

/* Premium manual receipt / OMT presentation */
.manual-receipt-form--premium {
  gap: 0.95rem;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
  min-width: 0;
}
@media (min-width: 900px) {
  .manual-receipt-form--premium {
    max-width: 560px;
    margin-inline: auto;
    gap: 1.05rem;
  }
}

/* Open OMT panel: full content width, no accidental side clip from details overflow */
.add-funds .wallet-pay-item:has(.manual-receipt-form--premium) {
  overflow-x: clip;
  overflow-y: visible;
}
.add-funds .wallet-pay-item:has(.manual-receipt-form--premium) .wallet-pay-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: visible;
}
.add-funds .wallet-pay-item:has(.manual-receipt-form--premium) .manual-receipt-form--premium {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
}
@media (min-width: 900px) {
  .add-funds .wallet-pay-item:has(.manual-receipt-form--premium) .manual-receipt-form--premium {
    max-width: 560px;
    margin-inline: auto;
  }
}
.mrp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}
.mrp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 28px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ht-accent, #ec4899);
  background: color-mix(in srgb, var(--ht-accent, #ec4899) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ht-accent, #ec4899) 22%, transparent);
}
.mrp-support {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 100%, transparent);
  background: color-mix(in srgb, var(--ht-surface, #fff) 88%, transparent);
  color: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}
.mrp-support:hover,
.mrp-support:focus-visible {
  border-color: var(--ht-accent, #ec4899);
  color: var(--ht-accent, #ec4899);
  outline: none;
}
.mrp-howto,
.mrp-amount,
.mrp-receive,
.mrp-transfer,
.manual-receipt-form--premium .payment-receipt {
  border: 1px solid color-mix(in srgb, var(--ht-accent, #ec4899) 22%, transparent);
  border-radius: 18px;
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--ht-accent, #ec4899) 7%, transparent),
      color-mix(in srgb, var(--ht-surface, #fff) 92%, transparent)
    );
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ht-accent, #ec4899) 6%, transparent);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.mrp-howto {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem 0.95rem;
}
.mrp-howto__icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--ht-accent, #ec4899);
  background: color-mix(in srgb, var(--ht-accent, #ec4899) 14%, transparent);
}
.mrp-howto__copy {
  min-width: 0;
}
.mrp-howto__copy strong {
  display: block;
  color: var(--ht-accent, #ec4899);
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}
.mrp-howto__copy p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-muted, #6b7280);
}
.mrp-amount {
  padding: 0.95rem;
  display: grid;
  gap: 0.7rem;
}
.mrp-amount__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.mrp-amount__label {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mrp-amount__limits {
  font-size: 0.74rem;
  color: var(--text-muted, #6b7280);
  font-weight: 600;
  white-space: nowrap;
}
.mrp-amount__field {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 58px;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  border: 1.5px solid color-mix(in srgb, var(--ht-accent, #ec4899) 35%, transparent);
  background: color-mix(in srgb, var(--ht-surface, #fff) 96%, transparent);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.mrp-amount__field:focus-within {
  border-color: var(--ht-accent, #ec4899);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ht-accent, #ec4899) 18%, transparent);
}
.mrp-amount__field.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px color-mix(in srgb, #ef4444 16%, transparent);
}
.mrp-amount__currency {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ht-accent, #ec4899);
  line-height: 1;
}
.mrp-amount__input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: inherit;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  appearance: textfield;
  -moz-appearance: textfield;
}
.mrp-amount__input::-webkit-outer-spin-button,
.mrp-amount__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.mrp-amount__clear {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: color-mix(in srgb, var(--text-muted, #6b7280) 12%, transparent);
  color: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}
.mrp-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.mrp-quick__btn {
  min-height: 44px;
  min-width: 52px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ht-accent, #ec4899) 35%, transparent);
  background: color-mix(in srgb, var(--ht-surface, #fff) 90%, transparent);
  color: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.mrp-quick__btn.is-active,
.mrp-quick__btn:hover,
.mrp-quick__btn:focus-visible {
  background: var(--ht-accent, #ec4899);
  border-color: var(--ht-accent, #ec4899);
  color: #fff;
  outline: none;
}
.mrp-receive {
  padding: 0.95rem 1rem;
  display: grid;
  gap: 0.35rem;
}
.mrp-receive[hidden] {
  display: none !important;
}
.mrp-receive__top {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.mrp-receive__icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--ht-accent, #ec4899);
  background: color-mix(in srgb, var(--ht-accent, #ec4899) 14%, transparent);
  flex: 0 0 auto;
}
.mrp-receive__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  min-width: 0;
}
.mrp-receive__title strong {
  font-size: 0.9rem;
}
.mrp-receive__fee-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ht-accent, #ec4899);
}
.mrp-receive__value {
  margin: 0.15rem 0 0;
  font-size: clamp(1.65rem, 5vw, 2rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  color: #16a34a;
  line-height: 1.1;
}
.mrp-receive__value [data-fee-net].is-updating {
  animation: mrp-net-pop 0.22s ease;
}
@keyframes mrp-net-pop {
  from { opacity: 0.45; transform: translateY(2px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mrp-receive__value [data-fee-net].is-updating {
    animation: none;
  }
}
.mrp-receive__breakdown {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted, #6b7280);
  font-weight: 600;
}
.mrp-transfer {
  padding: 0.95rem;
  display: grid;
  gap: 0.75rem;
}
.mrp-transfer__head {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.mrp-transfer__icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--ht-accent, #ec4899);
  background: color-mix(in srgb, var(--ht-accent, #ec4899) 14%, transparent);
  flex: 0 0 auto;
}
.mrp-transfer__head strong {
  display: block;
  font-size: 0.95rem;
}
.mrp-transfer__head p {
  margin: 0.15rem 0 0;
  font-size: 0.84rem;
  color: var(--text-muted, #6b7280);
}
.mrp-transfer__rows {
  display: grid;
  gap: 0.55rem;
}
.mrp-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.65rem 0.7rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--ht-surface, #fff) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--ht-accent, #ec4899) 14%, transparent);
}
.mrp-row__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ht-accent, #ec4899);
  background: color-mix(in srgb, var(--ht-accent, #ec4899) 10%, transparent);
}
.mrp-row__copy {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}
.mrp-row__label {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #6b7280);
}
.mrp-row__value {
  font-size: 0.92rem;
  font-weight: 750;
  word-break: break-word;
  color: inherit;
  background: transparent;
}
.mrp-copy {
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.75rem;
  border-radius: 12px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background: var(--ht-accent, #ec4899);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}
.mrp-copy.is-copied,
.mrp-copy:hover,
.mrp-copy:focus-visible {
  filter: brightness(1.05);
  outline: none;
}
.manual-receipt-form--premium .payment-receipt {
  padding: 0.95rem;
}
.manual-receipt-form--premium .payment-receipt__drop {
  min-height: 118px;
  border-radius: 14px;
}
.mrp-submit {
  display: grid;
  gap: 0.55rem;
}
.mrp-submit__btn {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, var(--ht-accent, #ec4899), color-mix(in srgb, var(--ht-accent, #ec4899) 70%, #db2777));
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--ht-accent, #ec4899) 22%, transparent);
}
.mrp-submit__btn:hover,
.mrp-submit__btn:focus-visible {
  filter: brightness(1.04);
  outline: none;
}
.mrp-submit__btn:disabled,
.mrp-submit__btn[aria-disabled="true"] {
  opacity: 0.48;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
}
.mrp-submit__btn.is-loading {
  opacity: 0.72;
  pointer-events: none;
}
.mrp-submit__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted, #6b7280);
}
.mrp-submit__note svg {
  color: #16a34a;
  flex: 0 0 auto;
}

html[data-theme="light"] .mrp-howto,
html[data-theme="light"] .mrp-amount,
html[data-theme="light"] .mrp-receive,
html[data-theme="light"] .mrp-transfer,
html[data-theme="light"] .manual-receipt-form--premium .payment-receipt,
html.theme-light .mrp-howto,
html.theme-light .mrp-amount,
html.theme-light .mrp-receive,
html.theme-light .mrp-transfer,
html.theme-light .manual-receipt-form--premium .payment-receipt,
body.light .mrp-howto,
body.light .mrp-amount,
body.light .mrp-receive,
body.light .mrp-transfer,
body.light .manual-receipt-form--premium .payment-receipt {
  background: linear-gradient(165deg, #fff7fb, #fff);
  border-color: #f9c2d5;
}
html[data-theme="light"] .mrp-row,
html.theme-light .mrp-row,
body.light .mrp-row,
html[data-theme="light"] .mrp-amount__field,
html.theme-light .mrp-amount__field,
body.light .mrp-amount__field {
  background: #fff;
}

/* Dark Mode — solid surfaces (no washed glass overlays) */
html[data-theme="dark"] .mrp-howto,
html[data-theme="dark"] .mrp-amount,
html[data-theme="dark"] .mrp-receive,
html[data-theme="dark"] .mrp-transfer,
html[data-theme="dark"] .manual-receipt-form--premium .payment-receipt,
html.theme-dark .mrp-howto,
html.theme-dark .mrp-amount,
html.theme-dark .mrp-receive,
html.theme-dark .mrp-transfer,
html.theme-dark .manual-receipt-form--premium .payment-receipt,
body.dark .mrp-howto,
body.dark .mrp-amount,
body.dark .mrp-receive,
body.dark .mrp-transfer,
body.dark .manual-receipt-form--premium .payment-receipt {
  background: var(--bg-card, #151520);
  border-color: color-mix(in srgb, var(--pink, #ff2d78) 34%, transparent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  color: var(--text, #f4f7fb);
}
html[data-theme="dark"] .mrp-support,
html.theme-dark .mrp-support,
body.dark .mrp-support {
  background: var(--bg-elevated, #0c1018);
  border-color: color-mix(in srgb, var(--pink, #ff2d78) 28%, transparent);
  color: var(--text, #f4f7fb);
}
html[data-theme="dark"] .mrp-chip,
html.theme-dark .mrp-chip,
body.dark .mrp-chip {
  color: var(--pink-hot, #ff7eab);
  background: color-mix(in srgb, var(--pink, #ff2d78) 16%, transparent);
  border-color: color-mix(in srgb, var(--pink, #ff2d78) 32%, transparent);
}
html[data-theme="dark"] .mrp-howto__copy strong,
html.theme-dark .mrp-howto__copy strong,
body.dark .mrp-howto__copy strong,
html[data-theme="dark"] .mrp-amount__label,
html.theme-dark .mrp-amount__label,
body.dark .mrp-amount__label,
html[data-theme="dark"] .mrp-receive__title strong,
html.theme-dark .mrp-receive__title strong,
body.dark .mrp-receive__title strong,
html[data-theme="dark"] .mrp-transfer__head strong,
html.theme-dark .mrp-transfer__head strong,
body.dark .mrp-transfer__head strong,
html[data-theme="dark"] .manual-receipt-form--premium .payment-receipt__title strong,
html.theme-dark .manual-receipt-form--premium .payment-receipt__title strong,
body.dark .manual-receipt-form--premium .payment-receipt__title strong,
html[data-theme="dark"] .mrp-row__value,
html.theme-dark .mrp-row__value,
body.dark .mrp-row__value {
  color: var(--text, #f4f7fb);
}
html[data-theme="dark"] .mrp-howto__copy p,
html.theme-dark .mrp-howto__copy p,
body.dark .mrp-howto__copy p,
html[data-theme="dark"] .mrp-amount__limits,
html.theme-dark .mrp-amount__limits,
body.dark .mrp-amount__limits,
html[data-theme="dark"] .mrp-receive__breakdown,
html.theme-dark .mrp-receive__breakdown,
body.dark .mrp-receive__breakdown,
html[data-theme="dark"] .mrp-transfer__head p,
html.theme-dark .mrp-transfer__head p,
body.dark .mrp-transfer__head p,
html[data-theme="dark"] .mrp-row__label,
html.theme-dark .mrp-row__label,
body.dark .mrp-row__label,
html[data-theme="dark"] .mrp-submit__note,
html.theme-dark .mrp-submit__note,
body.dark .mrp-submit__note,
html[data-theme="dark"] .manual-receipt-form--premium .payment-receipt__head p,
html.theme-dark .manual-receipt-form--premium .payment-receipt__head p,
body.dark .manual-receipt-form--premium .payment-receipt__head p,
html[data-theme="dark"] .manual-receipt-form--premium .payment-receipt__hint,
html.theme-dark .manual-receipt-form--premium .payment-receipt__hint,
body.dark .manual-receipt-form--premium .payment-receipt__hint,
html[data-theme="dark"] .manual-receipt-form--premium .payment-receipt__drop small,
html.theme-dark .manual-receipt-form--premium .payment-receipt__drop small,
body.dark .manual-receipt-form--premium .payment-receipt__drop small {
  color: var(--text-soft, #a7b0c0);
  opacity: 1;
}
html[data-theme="dark"] .mrp-amount__field,
html.theme-dark .mrp-amount__field,
body.dark .mrp-amount__field {
  background: var(--input-bg, #101019);
  border-color: color-mix(in srgb, var(--pink, #ff2d78) 42%, transparent);
  color: var(--text, #f4f7fb);
}
html[data-theme="dark"] .mrp-amount__input,
html.theme-dark .mrp-amount__input,
body.dark .mrp-amount__input {
  color: var(--text, #f4f7fb);
  background: transparent;
}
html[data-theme="dark"] .mrp-amount__input::placeholder,
html.theme-dark .mrp-amount__input::placeholder,
body.dark .mrp-amount__input::placeholder {
  color: var(--placeholder, rgba(255, 255, 255, 0.45));
  opacity: 1;
}
html[data-theme="dark"] .mrp-amount__currency,
html.theme-dark .mrp-amount__currency,
body.dark .mrp-amount__currency {
  color: var(--pink-hot, #ff7eab);
}
html[data-theme="dark"] .mrp-amount__clear,
html.theme-dark .mrp-amount__clear,
body.dark .mrp-amount__clear {
  background: color-mix(in srgb, var(--text-soft, #a7b0c0) 18%, transparent);
  color: var(--text, #f4f7fb);
}
html[data-theme="dark"] .mrp-quick__btn,
html.theme-dark .mrp-quick__btn,
body.dark .mrp-quick__btn {
  background: var(--bg-elevated, #0c1018);
  border-color: color-mix(in srgb, var(--pink, #ff2d78) 36%, transparent);
  color: var(--text, #f4f7fb);
}
html[data-theme="dark"] .mrp-quick__btn.is-active,
html[data-theme="dark"] .mrp-quick__btn:hover,
html[data-theme="dark"] .mrp-quick__btn:focus-visible,
html.theme-dark .mrp-quick__btn.is-active,
html.theme-dark .mrp-quick__btn:hover,
html.theme-dark .mrp-quick__btn:focus-visible,
body.dark .mrp-quick__btn.is-active,
body.dark .mrp-quick__btn:hover,
body.dark .mrp-quick__btn:focus-visible {
  background: var(--pink, #ff2d78);
  border-color: var(--pink, #ff2d78);
  color: #fff;
}
html[data-theme="dark"] .mrp-receive,
html.theme-dark .mrp-receive,
body.dark .mrp-receive {
  background: var(--bg-card-hover, #1b1b28);
  border-color: color-mix(in srgb, var(--green, #34d399) 28%, var(--pink, #ff2d78) 18%);
}
html[data-theme="dark"] .mrp-receive__value,
html.theme-dark .mrp-receive__value,
body.dark .mrp-receive__value {
  color: #4ade80;
}
html[data-theme="dark"] .mrp-receive__fee-tag,
html.theme-dark .mrp-receive__fee-tag,
body.dark .mrp-receive__fee-tag {
  color: var(--pink-hot, #ff7eab);
}
html[data-theme="dark"] .mrp-row,
html.theme-dark .mrp-row,
body.dark .mrp-row {
  background: var(--bg-elevated, #1b1b28);
  border-color: color-mix(in srgb, var(--pink, #ff2d78) 22%, transparent);
}
html[data-theme="dark"] .manual-receipt-form--premium .payment-receipt__drop,
html.theme-dark .manual-receipt-form--premium .payment-receipt__drop,
body.dark .manual-receipt-form--premium .payment-receipt__drop {
  background: var(--input-bg, #101019);
  border-color: color-mix(in srgb, var(--pink, #ff2d78) 55%, transparent);
  color: var(--text, #f4f7fb);
}
html[data-theme="dark"] .manual-receipt-form--premium .payment-receipt__drop strong,
html.theme-dark .manual-receipt-form--premium .payment-receipt__drop strong,
body.dark .manual-receipt-form--premium .payment-receipt__drop strong {
  color: var(--text, #f4f7fb);
}
html[data-theme="dark"] .manual-receipt-form--premium .payment-receipt__frame,
html.theme-dark .manual-receipt-form--premium .payment-receipt__frame,
body.dark .manual-receipt-form--premium .payment-receipt__frame {
  background: var(--input-bg, #101019);
  border-color: color-mix(in srgb, var(--pink, #ff2d78) 48%, transparent);
}
html[data-theme="dark"] .manual-receipt-form--premium .payment-receipt__required,
html.theme-dark .manual-receipt-form--premium .payment-receipt__required,
body.dark .manual-receipt-form--premium .payment-receipt__required {
  color: var(--pink-hot, #ff7eab);
  background: color-mix(in srgb, var(--pink, #ff2d78) 18%, transparent);
  border-color: color-mix(in srgb, var(--pink, #ff2d78) 40%, transparent);
}
html[data-theme="dark"] .manual-receipt-form--premium .payment-receipt__btn,
html.theme-dark .manual-receipt-form--premium .payment-receipt__btn,
body.dark .manual-receipt-form--premium .payment-receipt__btn {
  background: color-mix(in srgb, var(--pink, #ff2d78) 16%, transparent);
  border-color: color-mix(in srgb, var(--pink, #ff2d78) 42%, transparent);
  color: var(--pink-hot, #ff7eab);
}
html[data-theme="dark"] .manual-receipt-form--premium .payment-receipt__btn--ghost,
html.theme-dark .manual-receipt-form--premium .payment-receipt__btn--ghost,
body.dark .manual-receipt-form--premium .payment-receipt__btn--ghost {
  background: transparent;
  color: var(--text-soft, #a7b0c0);
}

/* Theme QA — checkout / auth / orders / confirm purchase */
html[data-theme="light"] .auth-panel {
  background: var(--bg);
  border-color: var(--border);
  box-shadow: inset 0 1px 0 var(--overlay-02);
}

.orders-error[hidden] {
  display: none !important;
}

.orders-error {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
  padding: 1rem 1.1rem;
  margin-top: 0.5rem;
  border-radius: 16px;
  border: 1px solid var(--warn-border);
  background: var(--warn-bg);
  color: var(--text);
}

.orders-error h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.orders-error p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 42ch;
}

.orders-skel {
  display: none;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.orders-board[aria-busy="true"] .orders-skel {
  display: grid;
}

.orders-skel-card {
  min-height: 5.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(
    90deg,
    var(--bg-card) 0%,
    var(--nested-surface, var(--bg-soft)) 45%,
    var(--bg-card) 90%
  );
  background-size: 200% 100%;
  animation: orders-skel-shimmer 1.2s ease-in-out infinite;
}

@keyframes orders-skel-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

html[data-theme="light"] .orders-date-field input {
  color-scheme: light;
}

.home-sub-reminder {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.72rem 0.8rem;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), transparent 42%),
    var(--bg-card);
  color: var(--text);
  box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.12);
}

.home-sub-reminder__mark {
  position: absolute;
  top: 0.35rem;
  inset-inline-end: 0.55rem;
  color: rgba(var(--accent-rgb), 0.16);
  pointer-events: none;
}

.home-sub-reminder__main {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex: 1;
}

.home-sub-reminder__icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border-radius: 12px;
  color: var(--pink);
  background: rgba(var(--accent-rgb), 0.14);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.18);
}

.home-sub-reminder__copy {
  min-width: 0;
}

.home-sub-reminder strong {
  display: block;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}

.home-sub-reminder p {
  margin: 0.12rem 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.home-sub-reminder__when {
  color: var(--pink);
  font-weight: 800;
}

.home-sub-reminder__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 2.75rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--glow-pink);
}

.home-sub-reminder__cta:hover {
  color: #fff;
  filter: brightness(1.05);
}

html[data-theme="dark"] .home-sub-reminder {
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.2), transparent 46%),
    var(--bg-card);
  border-color: rgba(var(--accent-rgb), 0.42);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(var(--accent-rgb), 0.08);
}

html[data-theme="light"] .home-sub-reminder {
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), transparent 48%),
    var(--bg-card);
  border-color: rgba(var(--accent-rgb), 0.22);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .home-sub-reminder__mark {
  color: rgba(var(--accent-rgb), 0.12);
}

@media (prefers-reduced-motion: no-preference) {
  .home-sub-reminder {
    animation: home-sub-reminder-in 200ms ease;
  }
}

@keyframes home-sub-reminder-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .home-sub-reminder {
    align-items: stretch;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.7rem 0.75rem 0.75rem;
  }

  .home-sub-reminder__cta {
    width: 100%;
    min-height: 44px;
  }
}



/* USDT deposit — compact premium checkout */
.usdt-deposit {
  width: min(100%, 44rem);
  margin: 0 auto;
  padding: 0.75rem 1rem calc(5.25rem + var(--safe-bottom) + var(--app-tab-clearance, 0px) + var(--app-pwa-clearance, 0px));
}

/* Keep support FAB clear of TxID / Verify / Back to Wallet on USDT deposit */
body.has-mobile-home-tab.is-cryptomus-status:has(.usdt-deposit) .floating-dock,
body.has-mobile-home-tab:has(.usdt-deposit) .floating-dock {
  bottom: calc(
    1.65rem + var(--safe-bottom) + var(--app-tab-clearance) + var(--app-pwa-clearance) + 3.25rem
  );
}

.usdt-deposit-shell {
  display: grid;
  gap: 0.75rem;
}

.usdt-deposit-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.usdt-deposit-nav-back,
.usdt-deposit-cancel {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.usdt-deposit-nav-back:hover,
.usdt-deposit-nav-back:focus-visible {
  color: var(--text);
}

.usdt-deposit-cancel {
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.35);
  padding-inline: 0.75rem;
}

.usdt-deposit-cancel:hover,
.usdt-deposit-cancel:focus-visible {
  background: rgba(248, 113, 113, 0.1);
}

.usdt-deposit-cancel-form {
  margin: 0;
}

@media (max-width: 640px) {
  .usdt-deposit-cancel {
    min-height: 36px;
    padding: 0.25rem 0.55rem;
    font-size: 0.78rem;
  }

  .usdt-deposit-nav-back {
    min-height: 36px;
    font-size: 0.8rem;
    padding-inline: 0.25rem;
  }
}

.usdt-deposit-hero {
  display: grid;
  gap: 0.65rem;
  padding: 0.15rem 0.1rem 0.25rem;
}

.usdt-deposit-hero-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.usdt-deposit-hero-icon {
  position: relative;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--bg-card) 88%, #26a17b 12%);
  border: 1px solid var(--border);
  flex: 0 0 auto;
}

.usdt-deposit-hero-icon img {
  width: 1.85rem;
  height: 1.85rem;
}

.usdt-deposit-hero-network-dot {
  position: absolute;
  right: -0.1rem;
  bottom: -0.05rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  border: 2px solid var(--bg);
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35);
}

.usdt-deposit--trc20 .usdt-deposit-hero-network-dot {
  background: #ef4444;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35);
}

.usdt-deposit-hero-copy h1 {
  margin: 0;
  font-size: clamp(1.2rem, 3.4vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.usdt-deposit-subtitle {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.usdt-deposit-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.usdt-deposit-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 600;
}

.usdt-deposit-badge--network {
  color: #065f46;
  background: rgba(52, 211, 153, 0.18);
  border-color: rgba(52, 211, 153, 0.4);
}

.usdt-deposit--trc20 .usdt-deposit-badge--network {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.4);
}

[data-theme="light"] .usdt-deposit-badge--network {
  color: #047857;
}

.usdt-deposit-flash {
  margin: 0;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--info-accent-border);
  background: var(--info-accent-bg);
  color: var(--text);
  font-size: 0.88rem;
}

.usdt-deposit-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 860px) {
  .usdt-deposit-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    align-items: start;
  }
}

.usdt-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-card) 94%, transparent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  padding: 0.9rem 0.95rem;
  animation: usdt-card-in 200ms ease both;
}

[data-theme="light"] .usdt-card,
html.theme-light .usdt-card,
body.light .usdt-card {
  border-color: color-mix(in srgb, var(--border) 70%, transparent);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  background: color-mix(in srgb, var(--bg-card) 96%, #fff 4%);
}

[data-theme="light"] .usdt-amount-row,
[data-theme="light"] .usdt-address-row,
[data-theme="light"] .usdt-txid-input,
html.theme-light .usdt-amount-row,
html.theme-light .usdt-address-row,
html.theme-light .usdt-txid-input,
body.light .usdt-amount-row,
body.light .usdt-address-row,
body.light .usdt-txid-input {
  border-color: color-mix(in srgb, var(--border-strong) 55%, transparent);
}

[data-theme="light"] .usdt-deposit-cancel,
html.theme-light .usdt-deposit-cancel,
body.light .usdt-deposit-cancel {
  border-color: rgba(248, 113, 113, 0.28);
}

[data-theme="light"] .usdt-back-wallet,
html.theme-light .usdt-back-wallet,
body.light .usdt-back-wallet {
  border-color: rgba(var(--accent-rgb), 0.24);
}

@media (prefers-reduced-motion: reduce) {
  .usdt-card {
    animation: none;
  }
}

@keyframes usdt-card-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.usdt-card-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.usdt-card-label-icon {
  opacity: 0.8;
}

.usdt-amount-row,
.usdt-address-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 48px;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--input-bg);
  color: var(--text);
  cursor: pointer;
  text-align: start;
}

.usdt-address-row {
  align-items: flex-start;
  gap: 0.55rem;
}

.usdt-address-value {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  line-height: 1.45;
  word-break: normal;
  overflow-wrap: anywhere;
  color: var(--text);
}

@media (max-width: 640px) {
  .usdt-address-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.65rem;
  }

  .usdt-address-value {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .usdt-address-row .usdt-copy-chip {
    align-self: flex-end;
  }
}

.usdt-amount-row:focus-visible,
.usdt-address-row:focus-visible,
.usdt-txid-submit:focus-visible,
.usdt-back-wallet:focus-visible,
.usdt-deposit-cancel:focus-visible,
.usdt-deposit-nav-back:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.usdt-amount-value {
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.usdt-amount-value span {
  font-size: 0.72em;
  font-weight: 700;
  color: var(--text-soft);
}

.usdt-copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  color: var(--pink-hot);
  background: rgba(var(--accent-rgb), 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.usdt-copy-done {
  display: none;
}

.usdt-amount-row.is-copied .usdt-copy-idle,
.usdt-address-row.is-copied .usdt-copy-idle {
  display: none;
}

.usdt-amount-row.is-copied .usdt-copy-done,
.usdt-address-row.is-copied .usdt-copy-done {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.usdt-amount-hint,
.usdt-address-help,
.usdt-exact-why,
.usdt-txid-help {
  margin: 0.55rem 0 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.4;
}

.usdt-exact-why {
  padding: 0 0.15rem;
}

.usdt-address-layout {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .usdt-address-layout {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }
}

.usdt-qr {
  width: 9.25rem;
  height: 9.25rem;
  margin: 0 auto;
  padding: 0.45rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
}

@media (max-width: 640px) {
  .usdt-qr {
    width: 7.5rem;
    height: 7.5rem;
    padding: 0.35rem;
  }
}

.usdt-qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.usdt-address-body {
  min-width: 0;
}

.usdt-network-warn {
  margin-top: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.1);
}

.usdt-network-warn--trc20 {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.1);
}

.usdt-network-warn strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.84rem;
  color: var(--text);
}

.usdt-network-warn p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.4;
}

.usdt-status-main {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.usdt-status-indicator {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  flex: 0 0 auto;
  border: 2px solid rgba(245, 158, 11, 0.55);
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.35) 0 42%, transparent 43%),
    color-mix(in srgb, var(--bg-card) 80%, transparent);
}

.usdt-status-indicator[data-step="detecting"],
.usdt-status-indicator[data-step="confirming"] {
  border-color: rgba(59, 130, 246, 0.55);
  background:
    radial-gradient(circle at center, rgba(59, 130, 246, 0.35) 0 42%, transparent 43%),
    color-mix(in srgb, var(--bg-card) 80%, transparent);
}

.usdt-status-indicator[data-step="completed"] {
  border-color: rgba(52, 211, 153, 0.55);
  background:
    radial-gradient(circle at center, rgba(52, 211, 153, 0.4) 0 42%, transparent 43%),
    color-mix(in srgb, var(--bg-card) 80%, transparent);
}

.usdt-status-indicator[data-step="waiting"] {
  animation: usdt-pulse 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .usdt-status-indicator[data-step="waiting"] {
    animation: none;
  }
}

@keyframes usdt-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.28); }
  50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

.usdt-status-copy h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.usdt-status-copy p {
  margin: 0.3rem 0 0;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.usdt-confirmations {
  margin-top: 0.35rem !important;
  font-weight: 700;
  color: var(--text) !important;
  font-variant-numeric: tabular-nums;
}

.usdt-steps {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}

.usdt-step {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  text-align: center;
  opacity: 0.55;
}

.usdt-step.is-active,
.usdt-step.is-done {
  opacity: 1;
}

.usdt-step-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-soft) 45%, transparent);
  border: 1px solid var(--border-strong);
}

.usdt-step.is-active .usdt-step-dot {
  background: var(--gold);
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.usdt-step.is-done .usdt-step-dot {
  background: var(--green);
  border-color: rgba(52, 211, 153, 0.7);
}

.usdt-step-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
}

.usdt-step-sub {
  font-size: 0.66rem;
  color: var(--text-soft);
  line-height: 1.2;
}

.usdt-txid-accordion {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  padding: 0.15rem 0.85rem;
  /* Keep Verify / inputs clear of the floating chat FAB on mobile */
  padding-inline-end: max(0.85rem, calc(0.5rem + var(--dock-size, 52px) * 0.15));
}

@media (max-width: 640px) {
  .usdt-txid-accordion,
  .usdt-back-wallet {
    margin-inline-end: 0;
    max-width: calc(100% - 0.25rem);
  }

  .usdt-txid-submit,
  .usdt-back-wallet {
    width: calc(100% - 3.75rem);
    max-width: 100%;
  }

  .usdt-deposit-shell {
    padding-bottom: 0.35rem;
  }
}

.usdt-txid-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 48px;
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.usdt-txid-accordion summary::-webkit-details-marker {
  display: none;
}

.usdt-txid-chevron {
  color: var(--text-soft);
  transition: transform 160ms ease;
}

.usdt-txid-accordion[open] .usdt-txid-chevron {
  transform: rotate(180deg);
}

.usdt-txid-panel {
  padding: 0 0 0.85rem;
}

.usdt-txid-field {
  display: grid;
  gap: 0.35rem;
}

.usdt-txid-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.usdt-txid-input {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--input-bg);
  color: var(--text);
  padding: 0.65rem 0.8rem;
  font-size: 0.92rem;
}

.usdt-txid-input.is-invalid {
  border-color: rgba(248, 113, 113, 0.7);
}

.usdt-txid-error {
  margin: 0.45rem 0 0;
  color: #f87171;
  font-size: 0.82rem;
}

.usdt-txid-submit,
.usdt-back-wallet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 48px;
  margin-top: 0.7rem;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.usdt-txid-submit {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  box-shadow: var(--glow-pink);
}

.usdt-back-wallet {
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  color: var(--pink-hot);
  background: transparent;
}

.usdt-back-wallet:hover,
.usdt-back-wallet:focus-visible {
  background: rgba(var(--accent-rgb), 0.08);
}

[data-theme="light"] .usdt-card {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .usdt-deposit-badge {
  background: color-mix(in srgb, #fff 88%, var(--bg-soft));
  border-color: color-mix(in srgb, var(--border) 80%, transparent);
}

html[dir="rtl"] .usdt-deposit-nav-back span[aria-hidden="true"],
html[dir="rtl"] .usdt-back-wallet span[aria-hidden="true"] {
  display: inline-block;
  transform: scaleX(-1);
}

html[dir="rtl"] .usdt-address-value,
html[dir="rtl"] .usdt-txid-input,
html[dir="rtl"] .usdt-amount-value,
html[dir="rtl"] [data-usdt-timer],
html[dir="rtl"] .usdt-confirmations {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Neon text that is readable on dark cards is too faint on light surfaces. */
html[data-theme="light"] .product-card-qty-min,
html[data-theme="light"] .product-card-delivery.is-instant {
  color: #047857;
}

html[data-theme="light"] .product-card-delivery.is-average {
  color: #b45309;
}

html[data-theme="light"] .account-level-badge {
  color: #9d174d;
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.28);
}
