/* ============================================================
   Pages: layout for specific route views.
   Loads after animations.css. Paired with SPA page templates.
   ============================================================ */

/* ================================================================
   HOME (Browse / Feed)
   ================================================================ */

.page-home { }

/* Hero strip */
.home-hero {
  position: relative;
  /* Cream → pink only. Yellow removed — it muddied text contrast. */
  background:
    radial-gradient(80% 62% at 100% 100%, rgba(255,179,209,0.55) 0%, transparent 62%),
    radial-gradient(55% 45% at 0% 0%, rgba(255,255,255,0.7) 0%, transparent 58%),
    linear-gradient(135deg, var(--c-primary-soft) 0%, #FFF3F7 100%);
  border-radius: 28px;
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
  margin-bottom: -22px;       /* trust strip overlaps upward */
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-3);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 8px 28px -10px rgba(181,0,92,0.18);
}
@media (max-width: 600px) {
  .home-hero {
    padding: var(--sp-5) var(--sp-4);
    grid-template-columns: 1fr;   /* single column — sock becomes background character */
    grid-template-rows: 1fr;
    align-items: center;
    text-align: left;
    position: relative;
  }
  /* Sock floats behind text, low opacity, large blurred */
  .home-hero__art {
    position: absolute;
    right: -20px; bottom: -10px;
    margin: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.32;
    filter: blur(0.4px);
  }
  .home-hero__art .sock-mascot { width: 180px; height: 180px; }
  .home-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
  }
  .home-hero__title { max-width: 100%; }
  .home-hero__sub   { max-width: 100%; }
}

/* Decorative blob behind sock (depth) */
.home-hero::before {
  content: '';
  position: absolute;
  right: -10%; bottom: -25%;
  width: 70%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,107,163,0.25) 0%, rgba(255,107,163,0) 70%);
  z-index: 0;
  pointer-events: none;
}

/* Subtle dot pattern, masked to fade out toward bottom-left */
.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(181,0,92,0.16) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  background-position: 6px 6px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(135deg, black 0%, transparent 70%);
          mask-image: linear-gradient(135deg, black 0%, transparent 70%);
}

.home-hero__content { position: relative; z-index: 1; }
.home-hero__art     { position: relative; z-index: 1; }
/* Removed ghost sock — replaced by proper hero SVG mascot in markup */
.home-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--sp-2);
  min-width: 0;
}
.home-hero__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  font-family: var(--font-display);
  color: var(--c-text);
  line-height: 1.15;
  margin: 0;
}
.home-hero__sub {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  line-height: 1.45;
  margin: 0;
}
@media (min-width: 768px) {
  .home-hero__title { font-size: var(--fs-2xl); }
  .home-hero__sub   { font-size: var(--fs-sm); }
}
/* Hero kicker pill */
.home-hero__kicker {
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: var(--fw-bold);
  letter-spacing: .13em; text-transform: uppercase;
  color: #fff;
  background: var(--c-primary, #FF6BA3);
  padding: 5px 12px; border-radius: 999px;
  margin-bottom: 4px;
  box-shadow: 0 2px 8px -2px rgba(255,107,163,0.5);
}
.home-hero__title em { font-style: normal; color: var(--c-primary-strong, #FF6BA3); }
.home-hero__cta {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin-top: var(--sp-3);
}
/* High-contrast text link — was nearly invisible on the pale hero */
.home-hero__link {
  font-size: var(--fs-xs); font-weight: var(--fw-bold);
  color: var(--c-primary-strong, #D63A7E); white-space: nowrap;
  align-self: center; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1.5px;
}
.home-hero__link:hover { color: var(--c-text); }
.home-hero__content .btn { padding: 6px 14px; font-size: var(--fs-xs); white-space: nowrap; }
@media (min-width: 768px) {
  .home-hero__content .btn { padding: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); }
  .home-hero__link { font-size: var(--fs-sm); }
}

@media (min-width: 768px) {
  .home-hero {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: var(--sp-7) var(--sp-7);
  }
}

/* Category chips row */
.category-row {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: var(--sp-1);
  margin-bottom: var(--sp-5);
}
.category-row::-webkit-scrollbar { display: none; }

/* Listing grid */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
@media (min-width: 480px) {
  .listing-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .listing-grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
}
@media (min-width: 1024px) {
  .listing-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Load more trigger */
.load-more-trigger {
  display: flex;
  justify-content: center;
  padding: var(--sp-6) 0;
}


/* ================================================================
   LISTING DETAIL
   ================================================================ */

.page-listing {
  display: grid;
  gap: var(--sp-6);
}
@media (min-width: 768px) {
  .page-listing {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
@media (min-width: 1024px) {
  .page-listing {
    grid-template-columns: 5fr 4fr;
    gap: var(--sp-7);
  }
}

/* Photo carousel / viewer */
.listing-photos {
  position: relative;
}
.listing-photos__main {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--c-surface-2);
  cursor: zoom-in;
}
.listing-photos__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.listing-photos__thumbs {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.listing-photos__thumbs::-webkit-scrollbar { display: none; }
.listing-photos__thumb {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--t-fast);
}
.listing-photos__thumb.is-active { border-color: var(--c-primary-strong); }
.listing-photos__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info panel */
.listing-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.listing-info__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  font-family: var(--font-display);
  line-height: 1.25;
}
.listing-info__price-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
/* Price-drop: struck-through previous price + green discount pill */
.price-was {
  font-size: var(--fs-md);
  color: var(--c-text-soft);
  text-decoration: line-through;
  font-weight: var(--fw-semibold);
}
.price-drop-pill {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 999px;
  background: #1E7F4F; color: #fff;
  font-size: var(--fs-xs); font-weight: var(--fw-bold);
}

/* Scarcity + social-proof strip on the listing page */
.listing-trust-strip {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-top: -2px;
}
.ltrust {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  line-height: 1.2;
}
.ltrust--unique { background: var(--c-primary-soft); color: var(--c-primary-strong, #D63A7E); }
.ltrust--watch  { background: #FDE8EF; color: #D6336C; }
.ltrust--drop   { background: #E3F6EC; color: #1E7F4F; }

/* Loss-aversion line under the buy button */
.buy-urgency {
  margin: 2px 0 0;
  font-size: var(--fs-xs); line-height: 1.5;
  color: var(--c-text-muted, #6B5E64);
  text-align: center;
}
.listing-info__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
@media (min-width: 480px) {
  .listing-info__actions { flex-direction: row; }
}
/* Report-listing button — clear, tappable, centered (was an invisible text link) */
.listing-report-btn {
  align-self: center;
  margin-top: var(--sp-1);
  color: var(--c-text-soft);
  min-height: 40px;
}

/* Specs list */
.listing-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2) var(--sp-4);
}
.listing-specs__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.listing-specs__key {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-weight: var(--fw-semibold);
}
.listing-specs__val {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
}


/* ================================================================
   CREATE / EDIT LISTING
   ================================================================ */

.page-create {
  max-width: var(--container-sm);
  margin-inline: auto;
}
.create-section {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--c-surface);
  border-radius: var(--r-xl);
  border: 1.5px solid var(--c-border);
  margin-bottom: var(--sp-4);
}
.create-section__title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}


/* ================================================================
   BROWSE / SEARCH RESULTS
   ================================================================ */

.page-browse {
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 768px) {
  .page-browse {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
}

/* Filter sidebar */
.filters {
  background: var(--c-surface);
  border-radius: var(--r-xl);
  border: 1.5px solid var(--c-border);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.filters__title {
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  font-family: var(--font-display);
}
.filters__group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.filters__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--c-text-soft);
}

/* Mobile filters toggle */
@media (max-width: 767px) {
  .filters {
    display: none;
  }
  .filters.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    border-radius: 0;
    overflow-y: auto;
    padding: var(--sp-5);
  }
}

/* Results header */
.browse-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}
.browse-count {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.browse-sort {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
}


/* ================================================================
   USER PROFILE / STOREFRONT
   ================================================================ */

.page-profile { }

.profile-cover {
  height: 160px;
  background: linear-gradient(135deg, var(--c-primary-soft), var(--c-secondary-soft));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  position: relative;
}
@media (min-width: 768px) { .profile-cover { height: 220px; } }

.profile-header {
  background: var(--c-surface);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  border: 1.5px solid var(--c-border);
  border-top: none;
  padding: 0 var(--sp-5) var(--sp-5);
  margin-bottom: var(--sp-5);
}
.profile-avatar-wrap {
  margin-top: -2.5rem;
  margin-bottom: var(--sp-3);
}
.profile-header .avatar-xl {
  border: 4px solid var(--c-surface);
  box-shadow: var(--sh-md);
}
.profile-info__name {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  font-family: var(--font-display);
  color: var(--c-text);
}
.profile-info__handle {
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
}
.profile-stats {
  display: flex;
  gap: var(--sp-5);
  margin-top: var(--sp-3);
}
.profile-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.profile-stats__num {
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  color: var(--c-text);
}
.profile-stats__label {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
}


/* ================================================================
   AUTH (Login / Register)
   ================================================================ */

.page-auth {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5) var(--sp-4);
  background: linear-gradient(160deg, var(--c-primary-soft) 0%, var(--c-bg) 50%, var(--c-secondary-soft) 100%);
}

/* 18+ age gate checkbox (register step 1) */
.age-gate {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  margin-top: var(--sp-2);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--c-primary-soft) 60%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--c-primary) 30%, transparent);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
  user-select: none;
}
.age-gate:hover { background: color-mix(in srgb, var(--c-primary-soft) 80%, transparent); }
.age-gate input { position: absolute; opacity: 0; pointer-events: none; }
.age-gate__box {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--c-surface);
  border: 2px solid var(--c-border-strong);
  display: flex; align-items: center; justify-content: center;
  color: transparent;
  transition: all var(--t-fast) var(--ease-out);
  margin-top: 1px;
}
.age-gate input:checked ~ .age-gate__box {
  background: var(--c-primary-strong);
  border-color: var(--c-primary-strong);
  color: white;
}
.age-gate input:focus-visible ~ .age-gate__box {
  outline: 2px solid var(--c-primary-strong);
  outline-offset: 2px;
}
.age-gate__text {
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--c-text);
}
.age-gate__text strong { color: var(--c-primary-strong); }
.age-gate--soft {
  background: var(--c-surface-2);
  border-color: var(--c-border);
  border-style: solid;
}
.age-gate--soft:hover { background: color-mix(in srgb, var(--c-surface-2) 90%, var(--c-primary-soft)); }
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--c-surface);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-xl);
  padding: var(--sp-6) var(--sp-6) var(--sp-7);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.auth-logo {
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  letter-spacing: var(--ls-tight);
}
.auth-logo span { color: var(--c-primary-strong); }
.auth-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
}
.auth-sub {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin-top: calc(-1 * var(--sp-4));
}


/* ================================================================
   ACCOUNT PAGE — mobile-first tab layout
   ================================================================ */

/* Root: single scroll column, max-width constrained */
.account-page-root {
  background: var(--c-bg);
}
.acc-shell {
  max-width: 640px;
  margin-inline: auto;
  padding: var(--sp-4) var(--sp-4) var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

/* ── Profile card ── */
.acc-profile-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: var(--c-surface);
  border-radius: var(--r-2xl);
  border: 1.5px solid var(--c-border);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--sh-sm);
}

/* Avatar */
.acc-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.acc-avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--r-circle);
  background: var(--c-primary-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--c-surface);
  box-shadow: var(--sh-sm);
}
.acc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acc-avatar__initials {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--c-primary-strong);
}
.acc-avatar__spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
/* Tier ring variants */
.acc-avatar--plus  { box-shadow: 0 0 0 3px var(--c-primary-strong), var(--sh-sm); }
.acc-avatar--elite { box-shadow: 0 0 0 3px gold, var(--sh-sm); }

/* Camera button — always visible, never relies on CSS hover */
.acc-avatar-btn {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--r-circle);
  background: var(--c-primary-strong);
  color: #fff;
  border: 2px solid var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast);
  z-index: 1;
}
.acc-avatar-btn:hover { transform: scale(1.1); }
.acc-avatar-btn:active { transform: scale(0.95); }

/* Profile info (name, email, tier) */
.acc-profile-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.acc-profile-name {
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc-profile-email {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  padding: 4px 10px 4px 8px;
  border-radius: var(--r-pill);
  align-self: flex-start;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
}
.acc-tier-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--c-primary) 30%, transparent);
}
.acc-tier-badge svg { display: block; opacity: 0.7; }
.acc-tier-badge--free  { background: var(--c-surface-2); color: var(--c-text-muted); }
.acc-tier-badge--plus,
.acc-tier-badge--pro   { background: var(--c-primary-soft); color: var(--c-primary-strong); }
.acc-tier-badge--elite { background: #1F1410; color: #FFD79D; }

/* ─────────────────────────────────────────────────────────────────
   Consolidated tier upsell card — clickable, single source of truth
   ───────────────────────────────────────────────────────────────── */
.tier-upsell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--sp-3);
  align-items: center;
  text-decoration: none;
  background: linear-gradient(135deg, var(--c-primary-soft) 0%, var(--c-secondary-soft) 100%);
  border: 1.5px solid var(--c-primary);
  border-radius: var(--r-xl);
  padding: var(--sp-4) var(--sp-4);
  color: var(--c-text);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out);
}
.tier-upsell::before {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,163,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.tier-upsell:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--c-primary) 40%, transparent);
  border-color: var(--c-primary-strong);
}

.tier-upsell--free .tier-upsell__art   { color: var(--c-text-soft); }
.tier-upsell--plus .tier-upsell__art,
.tier-upsell--pro  .tier-upsell__art   { color: var(--c-primary-strong); }
.tier-upsell--elite                    {
  background: linear-gradient(135deg, #2A1F1A 0%, #3D2B23 100%);
  border-color: #FFD79D;
  color: #FFF;
}
.tier-upsell--elite::before { background: radial-gradient(circle, rgba(255,215,157,0.25) 0%, transparent 70%); }
.tier-upsell--elite .tier-upsell__art      { color: #FFD79D; }
.tier-upsell--elite .tier-upsell__current  { background: rgba(255,215,157,0.18); color: #FFD79D; }
.tier-upsell--elite .tier-upsell__headline { color: #FFF; }
.tier-upsell--elite .tier-upsell__sub      { color: rgba(255,255,255,0.7); }
.tier-upsell--elite .tier-upsell__cta      { background: #FFD79D; color: #2A1F1A; }
.tier-upsell--elite .tier-upsell__free-pill { display: none; }

.tier-upsell__art {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.tier-upsell__art svg { width: 100%; height: 100%; }
.tier-upsell__body { min-width: 0; position: relative; z-index: 1; }
.tier-upsell__top {
  display: flex; gap: 6px; align-items: center; margin-bottom: 4px;
  flex-wrap: wrap;
}
.tier-upsell__current {
  font-size: 10px; font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--c-surface); color: var(--c-primary-strong);
  padding: 2px 8px; border-radius: 999px;
}
.tier-upsell__free-pill {
  font-size: 10px; font-weight: var(--fw-medium);
  background: rgba(255,255,255,0.6); color: var(--c-text-soft);
  padding: 2px 7px; border-radius: 999px;
}
.tier-upsell__headline {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  margin-bottom: 4px;
}
.tier-upsell__sub {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  line-height: 1.4;
}
.tier-upsell__cta {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--c-primary-strong);
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease-out);
}
.tier-upsell:hover .tier-upsell__cta { transform: translateX(2px); }

@media (max-width: 480px) {
  .tier-upsell {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: var(--sp-3);
  }
  .tier-upsell__art { grid-row: 1; }
  .tier-upsell__body { grid-row: 1; grid-column: 2; }
  .tier-upsell__cta {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: center;
    padding: 10px;
  }
}

/* Sign out button (top-right of card) */
.acc-signout-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  border-radius: var(--r-md);
  transition: color var(--t-fast), background var(--t-fast);
  flex-shrink: 0;
}
.acc-signout-btn:hover { color: var(--c-danger); background: var(--c-surface-2); }

/* ── Tabs ── */
.acc-tabs {
  display: flex;
  gap: var(--sp-1);
  background: var(--c-surface);
  border-radius: var(--r-xl);
  border: 1.5px solid var(--c-border);
  padding: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.acc-tabs::-webkit-scrollbar { display: none; }

.acc-tab {
  flex: 1;
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: var(--r-lg);
  color: var(--c-text-soft);
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
  position: relative;
}
.acc-tab svg { width: 22px; height: 22px; display: block; }
.acc-tab:hover { color: var(--c-text); background: var(--c-surface-2); }
.acc-tab.is-active {
  background: var(--c-primary-soft);
  color: var(--c-primary-strong);
}
.acc-tab.is-active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px;
  background: var(--c-primary-strong);
  border-radius: 2px;
}
.acc-tab:focus-visible { outline: 2px solid var(--c-primary-strong); outline-offset: 2px; }

/* ── Tab panel ── */
.acc-panel {
  background: var(--c-surface);
  border-radius: var(--r-2xl);
  border: 1.5px solid var(--c-border);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.acc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.acc-panel-title {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
}

/* ── Profile form ── */
.acc-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.acc-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.acc-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
}
.acc-hint {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  line-height: 1.4;
}
.acc-input-prefix-wrap {
  display: flex;
  align-items: stretch;
}
.acc-input-prefix {
  display: flex;
  align-items: center;
  padding: 0 var(--sp-3);
  background: var(--c-surface-2);
  border: 1.5px solid var(--c-border);
  border-right: none;
  border-radius: var(--r-md) 0 0 var(--r-md);
  font-weight: var(--fw-semibold);
  color: var(--c-text-soft);
  font-size: var(--fs-sm);
}
.acc-input--prefixed {
  border-radius: 0 var(--r-md) var(--r-md) 0 !important;
  flex: 1;
}

/* ── Stats row ── */
.acc-stats-row {
  display: flex;
  gap: var(--sp-1);
}
.acc-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--c-surface-2);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-2);
}
.acc-stat__val {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--c-text);
}
.acc-stat__lbl {
  font-size: var(--fs-2xs);
  color: var(--c-text-soft);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

/* ── Tier card ── */
.acc-tier-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  border: 2px solid var(--c-border);
}
.acc-tier-card--free  { background: var(--c-surface-2); }
.acc-tier-card--plus  { background: var(--c-primary-soft); border-color: var(--c-primary-strong); }
.acc-tier-card--elite { background: #fef3c7; border-color: gold; }
.acc-tier-card__emoji {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-primary-strong);
}
.acc-tier-card__emoji svg { width: 100%; height: 100%; }
.acc-tier-card__name  { font-family: var(--font-display); font-size: var(--fs-base); font-weight: var(--fw-bold); }
.acc-tier-card__perks { font-size: var(--fs-xs); color: var(--c-text-muted); line-height: 1.5; margin-top: 2px; }

/* ── Listings grid in account ── */
.acc-listings-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.acc-listing-card {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-xl);
  background: var(--c-bg);
  transition: box-shadow var(--t-fast);
}
.acc-listing-card:hover { box-shadow: var(--sh-sm); }
.acc-listing-thumb {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.acc-listing-thumb img { width: 100%; height: 100%; object-fit: cover; }
.acc-listing-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.acc-listing-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc-listing-actions {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
}

/* ── Wallet panel ── */
.acc-wallet-card {
  background: linear-gradient(135deg, var(--c-primary-soft) 0%, var(--c-secondary-soft) 100%);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
}
.acc-wallet-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--c-text-muted);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-2);
}
.acc-wallet-balance {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  line-height: 1;
}
.acc-wallet-currency {
  font-size: var(--fs-lg);
  margin-right: var(--sp-1);
}

/* Keep old .wallet-card / .tier-card / .account-nav for any page that still uses them */
.wallet-card {
  background: linear-gradient(135deg, var(--c-primary-soft) 0%, var(--c-secondary-soft) 100%);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.wallet-card__label { font-size:var(--fs-xs);font-weight:var(--fw-semibold);text-transform:uppercase;letter-spacing:var(--ls-wide);color:var(--c-text-muted); }
.wallet-card__balance { font-family:var(--font-display);font-size:var(--fs-3xl);font-weight:var(--fw-bold);color:var(--c-text);line-height:1; }
.wallet-card__currency { font-size:var(--fs-lg);font-weight:var(--fw-medium);margin-right:var(--sp-1); }
.tier-card { border-radius:var(--r-xl);padding:var(--sp-5);display:flex;align-items:center;gap:var(--sp-4);border:2px solid var(--c-border); }
.tier-card--free { background:var(--c-surface-2); }
.tier-card--plus { background:var(--c-primary-soft);border-color:var(--c-primary-strong); }
.tier-card--elite { background:#fef3c7;border-color:gold; }
.tier-card__name { font-family:var(--font-display);font-size:var(--fs-lg);font-weight:var(--fw-bold); }
.tier-card__perks { font-size:var(--fs-xs);color:var(--c-text-muted);line-height:1.5; }
.account-nav { display:flex;flex-direction:column;gap:var(--sp-1);background:var(--c-surface);border-radius:var(--r-xl);border:1.5px solid var(--c-border);padding:var(--sp-3); }
@media (min-width:768px) { .account-nav { position:sticky;top:calc(var(--header-h) + var(--sp-4)); } }
.account-nav__item { display:flex;align-items:center;gap:var(--sp-3);padding:var(--sp-3) var(--sp-4);border-radius:var(--r-lg);font-size:var(--fs-sm);font-weight:var(--fw-medium);color:var(--c-text-muted);transition:background var(--t-fast),color var(--t-fast); }
.account-nav__item:hover { background:var(--c-surface-2);color:var(--c-text);text-decoration:none; }
.account-nav__item.is-active { background:var(--c-primary-soft);color:var(--c-text);font-weight:var(--fw-semibold); }


/* ================================================================
   MESSAGES / CHAT
   ================================================================ */

.page-messages {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--header-h));
  overflow: hidden;
}
@media (min-width: 768px) {
  .page-messages {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
  }
}

/* Thread list */
.thread-list {
  overflow-y: auto;
  border-right: 1.5px solid var(--c-border);
}
.thread-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  border-bottom: 1px solid var(--c-border);
  transition: background var(--t-fast);
  text-decoration: none;
  color: inherit;
}
.thread-item:hover { background: var(--c-surface-2); text-decoration: none; }
.thread-item.is-active { background: var(--c-primary-soft); }
.thread-item__info { flex: 1; min-width: 0; }
.thread-item__name {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.thread-item__preview {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.thread-item__time {
  font-size: var(--fs-2xs);
  color: var(--c-text-soft);
  flex-shrink: 0;
}
.thread-item__unread {
  min-width: 1.25rem;
  height: 1.25rem;
  background: var(--c-primary-strong);
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  flex-shrink: 0;
}

/* Chat panel */
.chat-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.message {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-2);
  max-width: 75%;
}
.message--mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.message__bubble {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-xl);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  max-width: 100%;
  word-break: break-word;
}
.message--theirs .message__bubble {
  background: var(--c-surface-2);
  color: var(--c-text);
  border-bottom-left-radius: var(--r-sm);
}
.message--mine .message__bubble {
  background: var(--c-primary);
  color: var(--c-text);
  border-bottom-right-radius: var(--r-sm);
}
.message__time {
  font-size: var(--fs-2xs);
  color: var(--c-text-soft);
  flex-shrink: 0;
}
.chat-input-bar {
  padding: var(--sp-3) var(--sp-4);
  border-top: 1.5px solid var(--c-border);
  display: flex;
  gap: var(--sp-2);
  align-items: flex-end;
  background: var(--c-surface);
  padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom));
}
.chat-input-bar .form-input {
  border-radius: var(--r-xl);
  resize: none;
  min-height: 2.5rem;
  max-height: 7rem;
  overflow-y: auto;
  line-height: var(--lh-normal);
}


/* ================================================================
   CHECKOUT
   ================================================================ */

.page-checkout {
  max-width: var(--container-md);
  margin-inline: auto;
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 768px) {
  .page-checkout {
    grid-template-columns: 1fr 380px;
    align-items: start;
  }
}

.checkout-summary {
  background: var(--c-surface);
  border-radius: var(--r-xl);
  border: 1.5px solid var(--c-border);
  padding: var(--sp-5);
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.checkout-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.checkout-line--total {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--c-text);
}


/* ================================================================
   ADMIN PANEL
   ================================================================ */

.page-admin {
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 1024px) {
  .page-admin { grid-template-columns: 220px 1fr; }
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.admin-nav__section {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--c-text-soft);
  padding: var(--sp-3) var(--sp-3) var(--sp-1);
}
.admin-nav__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-text-muted);
  transition: background var(--t-fast), color var(--t-fast);
}
.admin-nav__item:hover { background: var(--c-surface-2); color: var(--c-text); text-decoration: none; }
.admin-nav__item.is-active { background: var(--c-primary-soft); color: var(--c-text); }

/* Stat cards row */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.stat-card {
  background: var(--c-surface);
  border-radius: var(--r-xl);
  border: 1.5px solid var(--c-border);
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.stat-card__label {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-weight: var(--fw-semibold);
}
.stat-card__value {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  line-height: 1;
}
.stat-card__delta {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}
.stat-card__delta--up   { color: var(--c-success); }
.stat-card__delta--down { color: var(--c-danger); }

/* Data table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.data-table th {
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--c-text-soft);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 2px solid var(--c-border);
}
.data-table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--c-surface-2); }


/* ================================================================
   404 / ERROR PAGES
   ================================================================ */

.page-error {
  min-height: 60dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--sp-5);
  padding: var(--sp-7) var(--sp-4);
}
.page-error__code {
  font-family: var(--font-display);
  font-size: var(--fs-5xl);
  font-weight: var(--fw-bold);
  color: var(--c-primary-strong);
  line-height: 1;
}
.page-error__title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
}
.page-error__text {
  font-size: var(--fs-base);
  color: var(--c-text-muted);
  max-width: 36ch;
  line-height: var(--lh-loose);
}


/* ================================================================
   WIZARD (3-step create listing)
   ================================================================ */

.wizard-wrap {
  max-width: var(--container-sm);
  margin-inline: auto;
  padding-bottom: var(--sp-8);
}
.wizard-header {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.wizard-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
}
.wizard-steps {
  display: flex;
  align-items: center;
  gap: 0;
}
.wizard-step-dot {
  width: 2rem;
  height: 2rem;
  border-radius: var(--r-circle);
  background: var(--c-surface-2);
  border: 2px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--c-text-soft);
  transition: background var(--t-base), border-color var(--t-base), color var(--t-base);
  flex-shrink: 0;
}
.wizard-step-dot.is-active {
  background: var(--c-primary);
  border-color: var(--c-primary-strong);
  color: var(--c-text);
}
.wizard-step-dot.is-done {
  background: var(--c-primary-strong);
  border-color: var(--c-primary-strong);
  color: #fff;
}
.wizard-step-line {
  flex: 1;
  height: 2px;
  background: var(--c-border);
  min-width: var(--sp-4);
}
.wizard-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
/* Sticky action bar — always visible, no scrolling to reach the buttons. */
.wizard-nav {
  display: flex;
  gap: var(--sp-3);
  position: sticky;
  bottom: calc(var(--tabbar-h, 64px) + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  margin: var(--sp-4) calc(-1 * var(--sp-4)) 0;
  padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--c-bg, #FFF7FB) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--c-border);
}
.wizard-nav .btn { flex: 1; }
@media (min-width: 768px) {
  /* Desktop has no bottom tabbar */
  .wizard-nav { bottom: 0; }
}

/* Create section cards within wizard */
.create-section__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  margin-bottom: var(--sp-1);
}
.create-section__ic {
  flex: none;
  color: var(--c-primary-strong, #FF6BA3);
}
.create-section__hint {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  margin-top: calc(-1 * var(--sp-2));
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-4);
}
@media (max-width: 480px) {
  .form-row-2 { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr 1fr; }
}

/* Input with inline suffix/prefix (RON, @ etc.) */
.input-addon {
  position: relative;
  display: flex;
  align-items: stretch;
}
.input-addon .form-input {
  flex: 1;
}
.input-addon__prefix,
.input-addon__suffix {
  display: flex;
  align-items: center;
  padding: 0 var(--sp-3);
  background: var(--c-surface-2);
  border: 1.5px solid var(--c-border);
  color: var(--c-text-soft);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}
.input-addon__prefix {
  border-right: none;
  border-radius: var(--r-md) 0 0 var(--r-md);
}
.input-addon__suffix {
  border-left: none;
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.input-addon--has-prefix {
  border-radius: 0 var(--r-md) var(--r-md) 0 !important;
  border-left: none !important;
}

/* Photo grid improvements */
.photo-grid__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  padding: 0;
  background: rgba(0,0,0,.55);
  color: #fff;
  border-radius: var(--r-circle);
  font-size: 11px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}
.photo-grid__badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: var(--c-primary-strong);
  color: #fff;
  font-size: 9px;
  font-weight: var(--fw-bold);
  padding: 1px 6px;
  border-radius: var(--r-pill);
  pointer-events: none;
}

/* Success splash */
.success-splash {
  min-height: calc(100dvh - var(--header-h) - var(--tabbar-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  padding: var(--sp-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.success-splash__circle {
  width: 6rem;
  height: 6rem;
  border-radius: var(--r-circle);
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-strong));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 12px var(--c-primary-soft), var(--sh-lg);
}
.success-splash__check {
  font-size: 2.5rem;
  color: #fff;
  animation: checkPop .4s cubic-bezier(.34,1.56,.64,1) .15s both;
}
@keyframes checkPop {
  from { transform: scale(0) rotate(-20deg); opacity: 0; }
  to   { transform: scale(1) rotate(0);      opacity: 1; }
}
.success-splash__title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
}
.success-splash__sub {
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
}
.success-splash__confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.confetti-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: hsl(calc(var(--i) * 20deg), 80%, 65%);
  animation: confettiFly .9s cubic-bezier(.22,.61,.36,1) calc(var(--i) * 30ms) both;
  transform-origin: center;
}
@keyframes confettiFly {
  from { transform: translate(-50%,-50%) scale(0); opacity: 1; }
  to   {
    transform: translate(
      calc(-50% + (cos(calc(var(--i) * 20deg)) * 120px)),
      calc(-50% + (sin(calc(var(--i) * 20deg)) * 120px))
    ) scale(1);
    opacity: 0;
  }
}


/* ================================================================
   BROWSE TOPBAR (search + sort + filter toggle)
   ================================================================ */

.browse-topbar {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}
.browse-topbar__search {
  flex: 1;
  min-width: 180px;
}
.browse-topbar__sort {
  width: auto;
  min-width: 160px;
  flex-shrink: 0;
}
.browse-topbar__filter-btn {
  position: relative;
  flex-shrink: 0;
  gap: var(--sp-2);
}
.filter-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--c-primary-strong);
  color: #fff;
  font-size: 9px;
  font-weight: var(--fw-bold);
  min-width: 16px;
  height: 16px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
@media (min-width: 768px) {
  .browse-topbar__filter-btn { display: none; }
}

/* Filter sidebar mobile toggle */
@media (max-width: 767px) {
  .filters {
    display: none;
  }
  .filters[data-open="true"] {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    border-radius: 0;
    overflow-y: auto;
    padding: var(--sp-6) var(--sp-5);
    padding-top: calc(var(--sp-6) + env(safe-area-inset-top));
  }
}

/* Radio chips (category filter) */
.radio-chip {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.radio-chip input { display: none; }
.radio-chip span {
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  background: var(--c-surface-2);
  border: 1.5px solid var(--c-border);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.radio-chip input:checked + span {
  background: var(--c-primary-soft);
  border-color: var(--c-primary-strong);
  color: var(--c-text);
  font-weight: var(--fw-semibold);
}
.filter-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.price-range-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.price-range-row .form-input {
  width: 80px;
}

/* Browse results column */
.browse-results {
  min-width: 0;
}
.browse-header__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  font-family: var(--font-display);
}


/* ================================================================
   MESSAGES REDESIGN
   ================================================================ */

.page-messages {
  /* override legacy stub (display/height/position all reset here) */
  /* Fixed so the panel sits exactly between the sticky header and fixed
     tabbar, independent of #js-main padding. Without this the panel
     height calc assumed top=var(--header-h) but the parent added 20px
     padding-top, pushing the chat-input-bar below the tabbar on mobile. */
  display: block;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  height: auto;
  /* Push content above the fixed tabbar + notch safe area */
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}
@media (min-width: 768px) {
  .page-messages {
    /* On desktop the tabbar is hidden — use normal flow again */
    display: block;
    position: static;
    padding-bottom: 0;
    margin-top: calc(-1 * var(--sp-5)); /* cancel #js-main padding-top */
    height: calc(100dvh - var(--header-h));
    overflow: hidden;
  }
}
.messages-layout {
  display: grid;
  grid-template-columns: 1fr;
  height: 100%;
}
@media (min-width: 768px) {
  .messages-layout {
    grid-template-columns: 320px 1fr;
  }
}
.messages-layout--split {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .messages-layout--split {
    grid-template-columns: 320px 1fr;
  }
}

.thread-list-panel {
  display: flex;
  flex-direction: column;
  border-right: 1.5px solid var(--c-border);
  overflow: hidden;
}
.thread-list-panel--sidebar {
  display: none;
}
@media (min-width: 768px) {
  .thread-list-panel--sidebar { display: flex; }
  .messages-layout--split .thread-list-panel { display: flex; }
}

.thread-list-header {
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
  border-bottom: 1.5px solid var(--c-border);
}
.thread-list-header__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
}
.thread-list {
  flex: 1;
  overflow-y: auto;
}
.thread-list__loading {
  display: flex;
  justify-content: center;
  padding: var(--sp-6);
}

/* Thread items */
.thread-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--c-border);
  cursor: pointer;
  transition: background var(--t-fast);
  position: relative;
}
.thread-item:hover { background: var(--c-surface-2); }
.thread-item--unread { background: var(--c-primary-soft); }
.thread-item__avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-circle);
  background: var(--c-primary-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--c-primary-strong);
  flex-shrink: 0;
  position: relative;
}
.thread-item__avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.thread-item__dot {
  position: absolute;
  top: 0; right: 0;
  width: 10px; height: 10px;
  background: var(--c-primary-strong);
  border-radius: var(--r-circle);
  border: 2px solid var(--c-surface);
}
.thread-item__body {
  min-width: 0;
}
.thread-item__name {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.thread-item__preview {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.thread-item__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-1);
  flex-shrink: 0;
}
.thread-item__time {
  font-size: 10px;
  color: var(--c-text-soft);
}
.thread-item__badge {
  background: var(--c-primary-strong);
  color: #fff;
  font-size: 9px;
  font-weight: var(--fw-bold);
  min-width: 16px;
  height: 16px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* Chat panel */
.chat-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--c-bg);
  height: 100%;
}
.chat-panel--empty {
  align-items: center;
  justify-content: center;
}
.chat-empty {
  text-align: center;
  color: var(--c-text-soft);
}
.chat-empty__icon {
  font-size: 3rem;
  margin-bottom: var(--sp-3);
}
.chat-empty__text {
  font-size: var(--fs-sm);
}
.chat-header {
  display: flex;
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1.5px solid var(--c-border);
  background: var(--c-surface);
  gap: var(--sp-2);
}
.chat-header__name {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

/* Message row — wraps a bubble + (for incoming) the partner avatar */
.msg-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  max-width: 90%;
}
.msg-row--mine   { align-self: flex-end; }
.msg-row--theirs { align-self: flex-start; }
.msg-avatar {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--c-primary-soft);
  color: var(--c-primary-strong);
  font-weight: var(--fw-bold);
  font-size: var(--fs-xs);
  text-decoration: none;
  border: 1.5px solid var(--c-border);
  transition: transform .15s ease, box-shadow .15s ease;
}
.msg-avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--c-primary-strong) 35%, transparent);
}
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Bubbles */
.msg-bubble {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.msg-bubble--mine {
  align-items: flex-end;
}
.msg-bubble--theirs {
  align-items: flex-start;
}
.msg-bubble__text {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-xl);
  font-size: var(--fs-sm);
  line-height: var(--lh-loose);
  word-break: break-word;
}
.msg-bubble--mine .msg-bubble__text {
  background: var(--c-primary);
  border-bottom-right-radius: var(--r-sm);
}
.msg-bubble--theirs .msg-bubble__text {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-bottom-left-radius: var(--r-sm);
}
.msg-bubble__time {
  font-size: 10px;
  color: var(--c-text-soft);
  padding: 0 var(--sp-2);
}
.msg-bubble--pending {
  opacity: 0.55;
  pointer-events: none;
}
.msg-bubble--pending .msg-bubble__time {
  font-style: italic;
}

/* Chat input bar */
.chat-input-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
  border-top: 1.5px solid var(--c-border);
  background: var(--c-surface);
}
.chat-input-bar__input {
  flex: 1;
  border-radius: var(--r-xl) !important;
}
.chat-input-bar__send {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: var(--r-circle) !important;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ================================================================
   PROFILE EDIT PANEL (account.js)
   ================================================================ */

.profile-panel {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.profile-panel__avatar-wrap {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-3);
  position: relative;
}
.profile-panel__avatar {
  width: 5rem;
  height: 5rem;
  border-radius: var(--r-circle);
  overflow: hidden;
  background: var(--c-primary-soft);
  border: 3px solid var(--c-surface);
  box-shadow: var(--sh-md);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-panel__avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.profile-panel__avatar-initials {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--c-primary-strong);
}
.profile-panel__avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-fast);
  color: #fff;
  font-size: var(--fs-2xs);
  gap: 2px;
  border-radius: var(--r-circle);
}
.profile-panel__avatar:hover .profile-panel__avatar-overlay { opacity: 1; }

/* ================================================================
   TRUST STRIP — social-proof row below hero
   ================================================================ */
.trust-strip {
  position: relative;
  z-index: 2;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-3) 0;
  margin: 0 var(--sp-3) var(--sp-4);
  box-shadow: 0 6px 18px -8px rgba(181,0,92,0.18);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.trust-track {
  display: flex;
  gap: var(--sp-5);
  width: max-content;
  animation: trustScroll 38s linear infinite;
}
.trust-strip:hover .trust-track,
.trust-strip:focus-within .trust-track { animation-play-state: paused; }

@keyframes trustScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.trust-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.trust-item__num { font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--c-primary-strong); }
.trust-item__lbl { font-size: var(--fs-xs); color: var(--c-text); font-weight: var(--fw-medium); text-transform: none; letter-spacing: 0; }
.trust-item__icon--svg { color: var(--c-primary-strong); display: inline-flex; }
.trust-item__icon--svg svg { width: 18px; height: 18px; }
@media (max-width: 600px) {
  /* Mobile: no auto-marquee (felt chaotic) — calm, manual horizontal scroll. */
  .trust-strip {
    margin: 0 var(--sp-2) var(--sp-3);
    border-radius: 999px;
    padding: var(--sp-2) 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .trust-strip::-webkit-scrollbar { display: none; }
  .trust-track {
    gap: var(--sp-4);
    animation: none;
    padding: 0 var(--sp-4);
  }
  /* Drop the seamless-loop duplicate set — only needed for the marquee. */
  .trust-track > [aria-hidden="true"] { display: none; }
  .trust-item__num { font-size: var(--fs-sm); }
  .trust-item__lbl { font-size: 11px; }
  .trust-item__icon--svg svg { width: 16px; height: 16px; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .trust-track { animation: none; transform: translateX(0); }
}
.trust-item__num {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  font-family: var(--font-display);
  color: var(--c-primary-strong);
  line-height: 1;
}
.trust-item__icon { font-size: var(--fs-xl); line-height: 1; }
.trust-item__lbl {
  font-size: var(--fs-2xs);
  color: var(--c-text-soft);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-weight: var(--fw-semibold);
}
.trust-divider {
  display: none; /* grid layout — dividers no longer needed */
}

/* ================================================================
   HEADER AVATAR — larger, vertically centred
   ================================================================ */
.header-avatar.avatar-md {
  width: 38px;
  height: 38px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--c-primary-soft);
  transition: box-shadow var(--t-fast);
}
.header-avatar.avatar-md:hover { box-shadow: 0 0 0 3px var(--c-primary); }
.header-avatar.avatar-md img { width:100%;height:100%;object-fit:cover;border-radius:50%; }

/* ================================================================
   VIEW TRANSITION — smooth fade-slide between routes
   ================================================================ */
#js-main { view-transition-name: main-content; }

@keyframes _vt-slide-in  { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
@keyframes _vt-slide-out { from { opacity:1; transform:translateY(0); }   to { opacity:0; transform:translateY(-4px); } }

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(main-content) { animation: 120ms ease-in  _vt-slide-out both; }
  ::view-transition-new(main-content) { animation: 180ms ease-out _vt-slide-in  both; }
}

/* ================================================================
   BROWSE — new filter elements
   ================================================================ */

/* Radio chip group (replaces old .filter-category-list) */
.filter-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}

/* Seller filter toggle row */
.filter-toggle-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--c-text);
  padding: var(--sp-1) 0;
}
.filter-toggle-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--c-primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* Card gender badge */
.card-badge-gender {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(4px);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: var(--fw-bold);
  padding: 1px 5px;
  color: var(--c-text);
  pointer-events: none;
}

/* Verified badge on card */
.card-verified-badge {
  position: absolute;
  bottom: var(--sp-2);
  right: var(--sp-2);
  width: 20px;
  height: 20px;
  background: var(--c-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* ================================================================
   SKELETON CARD (browse loading state)
   ================================================================ */
.skeleton-card .card-listing__thumb {
  aspect-ratio: 1;
  border-radius: var(--r-xl);
}
.skeleton {
  background: linear-gradient(90deg, var(--c-surface-2) 25%, var(--c-border) 50%, var(--c-surface-2) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* ================================================================
   EMAIL VERIFICATION BANNER
   ================================================================ */
#js-verify-banner { position: sticky; top: var(--header-h); z-index: calc(var(--z-header) - 1); }
.verify-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  background: var(--c-secondary-soft);
  border-bottom: 1.5px solid var(--c-primary);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--c-text);
}
.verify-banner__actions {
  display: flex;
  gap: var(--sp-1);
  align-items: center;
  flex-shrink: 0;
}


/* ================================================================
   HEART / FAVORITE BUTTON (card overlay + detail page)
   ================================================================ */
.btn-heart {
  position: absolute;
  bottom: var(--sp-2);
  left: var(--sp-2);
  width: 28px;
  height: 28px;
  border-radius: var(--r-circle);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-soft);
  transition: color var(--t-fast), background var(--t-fast), transform var(--t-fast);
  z-index: 1;
  padding: 0;
}
.btn-heart:hover { color: var(--c-primary-strong); transform: scale(1.12); }
.btn-heart:active { transform: scale(0.92); }
.btn-heart.is-faved {
  color: #e53e3e;
}
.btn-heart.is-faved svg {
  fill: #e53e3e;
  stroke: #e53e3e;
}

/* Larger variant for listing detail page */
.btn-heart--lg {
  position: static;
  width: 40px;
  height: 40px;
  background: var(--c-surface-2);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  flex-shrink: 0;
}
.btn-heart--lg.is-faved {
  background: #fff5f5;
  border-color: #feb2b2;
}
.btn-heart--lg svg { width: 20px; height: 20px; }

/* Heart pop animation on toggle */
@keyframes heartPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}
.btn-heart.is-faved { animation: heartPop .3s cubic-bezier(.34,1.56,.64,1) both; }
.btn-heart--lg.is-faved { animation: heartPop .3s cubic-bezier(.34,1.56,.64,1) both; }

/* ================================================================
   LISTING OFFER ROW (detail page — below buy button)
   ================================================================ */
.listing-offer-row {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}
.listing-offer-row .btn { flex: 1; }

/* ================================================================
   OFFER CARD BUBBLE (in messages)
   ================================================================ */
.msg-bubble--offer {
  max-width: 300px;
}
.offer-card {
  background: linear-gradient(135deg, var(--c-surface), var(--c-surface-2));
  border: 1.5px solid color-mix(in srgb, var(--c-primary) 30%, transparent);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.offer-card__label {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.offer-card__amount {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1.1;
}
.offer-card__listing {
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  width: fit-content;
  margin-top: var(--sp-1);
}
.offer-badge--accepted { background: #dcfce7; color: #15803d; }
.offer-badge--declined  { background: #fee2e2; color: #dc2626; }
.offer-actions {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}
.offer-actions .btn { flex: 1; }

/* ================================================================
   TRUST STRIP SVG ICONS
   ================================================================ */
.trust-item__icon--svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--c-primary) 12%, transparent),
    color-mix(in srgb, var(--c-primary) 6%,  transparent));
}
.trust-svg { display: block; }
.trust-svg--lock  { width: 20px; height: 24px; }
.trust-svg--bolt  { width: 16px; height: 24px; }

/* Lock parts */
.trust-svg__body    { fill: var(--c-primary); }
.trust-svg__shackle { stroke: var(--c-primary); fill: none; }
.trust-svg__keyhole-bg { fill: white; opacity: .9; }

/* Bolt */
.trust-svg__bolt {
  fill: url(#bolt-grad-css);
}
/* inline gradient trick via stop-color CSS vars */
.trust-svg--bolt {
  --bolt-a: #fbbf24;
  --bolt-b: #f97316;
}
/* Fallback solid for browsers without color-mix */
.trust-svg__bolt { fill: var(--c-primary); }
/* Override with gradient if SVG linearGradient present */
.trust-svg--bolt .trust-svg__bolt {
  fill: #f97316;
}

/* ================================================================
   ADDRESS PRIVACY NOTE (create wizard step 3)
   ================================================================ */
.addr-privacy-note {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  background: var(--c-surface-2);
  border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-3);
  margin-top: var(--sp-3);
}
.addr-privacy-note svg { flex-shrink: 0; opacity: .6; }

/* Optional label suffix */
.form-label__opt {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  font-weight: 400;
  margin-left: var(--sp-1);
}

/* ================================================================
   INBOX TABS (messages page)
   ================================================================ */
.inbox-tabs {
  display: flex;
  border-bottom: 1.5px solid var(--c-border);
  padding: 0 var(--sp-2);
  gap: var(--sp-1);
  flex-shrink: 0;
}
.inbox-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text-soft);
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.inbox-tab:hover { color: var(--c-text); }
.inbox-tab.is-active {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
}

/* Notification item in thread list */
.notif-item { cursor: pointer; }
.notif-item__icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ================================================================
   IMAGE FADE-IN (card thumbnails load smoothly)
   ================================================================ */
.card-listing__thumb img {
  animation: imgFadeIn .3s ease both;
}
@keyframes imgFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Skeleton shimmer for card thumb before image loads */
.card-listing__thumb {
  background: var(--c-surface-2);
  position: relative;
  overflow: hidden;
}
.card-listing__thumb::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    transparent 0%, color-mix(in srgb, white 40%, transparent) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  pointer-events: none;
  z-index: 0;
}
.card-listing__thumb img { position: relative; z-index: 1; }
.card-listing__thumb img[src] { --loaded: 1; }

/* ================================================================
   LIGHTBOX (full-screen photo viewer)
   ================================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  animation: lbFadeIn .18s ease;
}
@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 3.5rem 3rem;
  box-sizing: border-box;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--r-lg);
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox__close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  background: rgba(255,255,255,.12);
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background .15s;
  z-index: 1;
}
.lightbox__close:hover { background: rgba(255,255,255,.22); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background .15s;
  z-index: 1;
}
.lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__nav--prev { left: var(--sp-3); }
.lightbox__nav--next { right: var(--sp-3); }
.lightbox__counter {
  position: absolute;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: var(--fs-sm);
  font-weight: 600;
  background: rgba(0,0,0,.35);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  pointer-events: none;
}
@media (max-width: 480px) {
  .lightbox__nav { display: none; }
  .lightbox__img-wrap { padding: 3.5rem 0.5rem 2rem; }
}

/* ================================================================
   WALLET TAB (account page)
   ================================================================ */
.acc-wallet-card {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary, var(--c-primary-strong)) 100%);
  border-radius: var(--r-2xl);
  padding: var(--sp-6) var(--sp-5);
  color: #fff;
  margin-bottom: var(--sp-5);
}
.acc-wallet-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  opacity: .75;
  margin-bottom: var(--sp-1);
}
.acc-wallet-balance {
  font-size: 2.5rem;
  font-weight: var(--fw-bold);
  font-family: var(--font-display);
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  line-height: 1;
  margin-bottom: var(--sp-4);
}
.acc-wallet-currency {
  font-size: var(--fs-lg);
  opacity: .8;
}
.acc-wallet-actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.acc-wallet-actions .btn {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.35);
  color: #fff;
  font-size: var(--fs-sm);
  padding: var(--sp-2) var(--sp-4);
  display: flex; align-items: center; gap: var(--sp-1);
}
.acc-wallet-actions .btn:hover {
  background: rgba(255,255,255,.28);
}
.acc-wallet-section { margin-bottom: var(--sp-5); }
.acc-wallet-section-title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--c-text-soft);
  margin-bottom: var(--sp-3);
}
.acc-wallet-pending {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--c-surface-2);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
}
.acc-wallet-pending-val {
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  white-space: nowrap;
}
.acc-wallet-pending-lbl {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
}
.acc-wallet-coming {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--c-surface-2);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
}
.acc-wallet-coming__icon { font-size: 1.5rem; flex-shrink: 0; }

/* Transaction rows */
.acc-wallet-txns { display: flex; flex-direction: column; gap: var(--sp-2); }
.acc-txn {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
}
.acc-txn__icon {
  font-size: 1.25rem;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-surface-2);
  border-radius: 50%;
  flex-shrink: 0;
}
.acc-txn__info { flex: 1; min-width: 0; }
.acc-txn__title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acc-txn__meta {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
}
.acc-txn__amount {
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  white-space: nowrap;
}
.acc-txn--credit .acc-txn__amount { color: #22c55e; }
.acc-txn--debit  .acc-txn__amount { color: var(--c-text); }

/* ================================================================
   REGISTRATION FLOW (multi-step)
   ================================================================ */
.auth-card--wide { max-width: 500px; }
.auth-card--plans { max-width: 860px; padding: var(--sp-5); }

/* Progress bar */
.reg-progress {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.reg-progress__bar {
  flex: 1;
  height: 4px;
  background: var(--c-border);
  border-radius: var(--r-full);
  overflow: hidden;
}
.reg-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-primary-strong) 100%);
  border-radius: var(--r-full);
  transition: width .4s ease;
}
.reg-progress__label {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  white-space: nowrap;
}

/* Account type cards */
.acct-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
@media (max-width: 500px) {
  .acct-type-grid { grid-template-columns: 1fr; }
}
.acct-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-3);
  background: var(--c-surface);
  border: 2px solid var(--c-border);
  border-radius: var(--r-xl);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .1s;
  text-align: center;
}
.acct-type-card:hover {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-soft);
  transform: translateY(-2px);
}
.acct-type-card.is-active {
  border-color: var(--c-primary-strong);
  background: var(--c-primary-soft);
}
.acct-type-card__icon { font-size: 2rem; line-height: 1; }
.acct-type-card__name {
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  color: var(--c-text);
}
.acct-type-card__desc {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  line-height: 1.4;
}

/* Plan cards grid */
.plan-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  align-items: stretch;
}
@media (max-width: 640px) {
  .plan-cards-grid { grid-template-columns: 1fr; }
}

/* Individual plan card */
.plan-card {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--c-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-5) var(--sp-4);
  background: var(--c-surface);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .2s, transform .15s, border-color .15s;
}
.plan-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  transform: translateY(-3px);
}
.plan-card.is-selected {
  border-color: var(--c-primary-strong);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 25%, transparent);
}

/* Popular plan - pink to purple gradient */
.plan-card--popular {
  background: linear-gradient(145deg, hsl(340,80%,58%) 0%, hsl(280,70%,52%) 100%);
  border-color: transparent;
  color: #fff;
}
.plan-card--popular .plan-card__desc { opacity: .85; }
.plan-card--popular .plan-card__feature { color: rgba(255,255,255,.9); }
.plan-card--popular .plan-card__check { stroke: #fff; }
.plan-card--popular .plan-card__badge {
  background: rgba(255,255,255,.22);
  color: #fff;
}
.plan-card--popular .plan-card__cta {
  background: rgba(255,255,255,.2);
  border: 1.5px solid rgba(255,255,255,.4);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--sp-2) var(--sp-4);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: background .15s;
}
.plan-card--popular .plan-card__cta:hover {
  background: rgba(255,255,255,.32);
}
.plan-card--popular.is-selected {
  box-shadow: 0 0 0 3px rgba(255,255,255,.5), 0 8px 32px rgba(0,0,0,.25);
}

/* Elite plan - dark */
.plan-card--elite {
  background: var(--c-surface-2);
  border-color: var(--c-border-strong);
}

.plan-card__badge {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  background: var(--c-text);
  color: var(--c-surface);
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--r-full);
}
.plan-card--popular .plan-card__badge { background: var(--c-primary-strong); color: white; }
.plan-card--elite   .plan-card__badge { background: var(--c-surface); color: var(--c-text); }

.plan-card__header {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-bottom: var(--sp-4);
}
.plan-card__art {
  width: 56px; height: 56px;
  margin-bottom: var(--sp-2);
  color: var(--c-primary-strong);
  display: flex; align-items: center; justify-content: center;
}
.plan-card__art svg { width: 100%; height: 100%; display: block; }
.plan-card--popular .plan-card__art { color: var(--c-primary-strong); }
.plan-card--elite .plan-card__art { color: var(--c-text); }
.plan-card__name {
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  font-family: var(--font-display);
}
.plan-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-1);
  margin-top: var(--sp-1);
}
.plan-card__price-num {
  font-size: 1.875rem;
  font-weight: var(--fw-bold);
  font-family: var(--font-display);
  line-height: 1;
}
.plan-card__price-per {
  font-size: var(--fs-sm);
  opacity: .7;
}
.plan-card__desc {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  margin-top: 2px;
}
.plan-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-4);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.plan-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  line-height: 1.4;
}
.plan-card__check {
  flex-shrink: 0;
  margin-top: 1px;
  stroke: var(--c-primary);
}
.plan-card__cta { margin-top: auto; }

/* Mixed plan notice */
.plan-type-notice {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--c-primary-soft);
  border: 1.5px solid var(--c-primary);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--c-text);
  margin-bottom: var(--sp-4);
}

/* ================================================================
   PLANS PAGE (/abonament) — standalone
   ================================================================ */
.page-plans {
  max-width: 960px;
  margin-inline: auto;
  padding: var(--sp-6) 0 var(--sp-8);
}
.plans-header {
  text-align: center;
  margin-bottom: var(--sp-6);
}
.plans-header__title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  font-family: var(--font-display);
  margin-bottom: var(--sp-2);
}
.plans-header__sub {
  color: var(--c-text-muted);
  font-size: var(--fs-base);
  max-width: 40ch;
  margin-inline: auto;
}
.plans-toggle {
  position: relative;
  display: flex;
  background: var(--c-surface-2);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-full);
  padding: 6px;
  gap: 4px;
  margin: 0 auto var(--sp-8);
  max-width: 480px;
  width: 100%;
  box-shadow: inset 0 2px 6px rgba(42, 31, 26, 0.05),
              0 2px 8px rgba(42, 31, 26, 0.04);
  isolation: isolate;
}
.plans-toggle__pill {
  position: absolute;
  top: 6px; left: 0;
  height: calc(100% - 12px);
  background: linear-gradient(135deg, var(--c-primary-strong) 0%, #FF6BA3 50%, #FF8FB8 100%);
  border-radius: var(--r-full);
  box-shadow: 0 6px 18px -4px color-mix(in srgb, var(--c-primary-strong) 55%, transparent),
              0 2px 6px color-mix(in srgb, var(--c-primary-strong) 30%, transparent),
              inset 0 1px 0 rgba(255,255,255,0.35),
              inset 0 -1px 0 rgba(0,0,0,0.08);
  transform: translateX(0);
  transition: transform 0.48s cubic-bezier(.34,1.4,.64,1),
              width    0.48s cubic-bezier(.34,1.4,.64,1);
  pointer-events: none;
  z-index: 1;
}
.plans-toggle__btn {
  position: relative;
  z-index: 2;
  flex: 1 1 0;
  background: none;
  border: none;
  border-radius: var(--r-full);
  padding: 12px 18px;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--c-text-soft);
  cursor: pointer;
  transition: color 0.28s ease, transform 0.18s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.01em;
}
.plans-toggle__btn svg {
  width: 20px; height: 20px;
  opacity: 0.55;
  transition: opacity 0.28s, transform 0.28s cubic-bezier(.34,1.4,.64,1);
}
.plans-toggle__btn:hover:not(.is-active) {
  color: var(--c-text);
}
.plans-toggle__btn:hover:not(.is-active) svg {
  opacity: 0.9;
  transform: scale(1.08);
}
.plans-toggle__btn:active { transform: scale(0.97); }
.plans-toggle__btn.is-active {
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}
.plans-toggle__btn.is-active svg {
  opacity: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.18));
}
@media (max-width: 520px) {
  .plans-toggle__btn { padding: 10px 12px; font-size: var(--fs-sm); }
  .plans-toggle__btn svg { width: 16px; height: 16px; }
}

/* Plan grid: fade-swap when switching account-type */
.plan-cards-grid {
  transition: opacity 0.18s ease, transform 0.22s ease;
}
.plan-cards-grid.is-switching {
  opacity: 0;
  transform: translateY(6px);
}

/* Plan cards: premium feel — animated entry + hover lift + popular shine */
.plan-card {
  animation: planCardIn 0.42s cubic-bezier(.34,1.3,.64,1) both;
  transition: transform 0.28s cubic-bezier(.34,1.3,.64,1),
              box-shadow 0.28s ease,
              border-color 0.2s ease;
}
.plan-card:nth-child(2) { animation-delay: 0.06s; }
.plan-card:nth-child(3) { animation-delay: 0.12s; }
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -16px color-mix(in srgb, var(--c-primary-strong) 35%, transparent);
}
.plan-card--popular {
  animation: planCardIn 0.42s cubic-bezier(.34,1.3,.64,1) both, popularGlow 3.5s ease-in-out infinite;
}
.plan-card--popular::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  background-size: 200% 200%;
  pointer-events: none;
  animation: popularShine 3.5s ease-in-out infinite;
  mix-blend-mode: overlay;
}
@keyframes planCardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes popularGlow {
  0%, 100% { box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--c-primary-strong) 60%, transparent); }
  50%      { box-shadow: 0 14px 40px -8px color-mix(in srgb, var(--c-primary-strong) 80%, transparent); }
}
@keyframes popularShine {
  0%, 100% { background-position: 200% 200%; }
  50%      { background-position: 0% 0%; }
}

/* Plan card art icon (sprout/star/crown) — subtle floating animation */
.plan-card__art {
  animation: planArtFloat 4.5s ease-in-out infinite;
}
@keyframes planArtFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.plan-card--popular .plan-card__art { animation-duration: 3s; }
.plan-card--elite   .plan-card__art { animation-duration: 5s; }

/* Plan card CTA: small arrow on hover */
.plan-card__cta {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.plan-card:hover .plan-card__cta:not([disabled]) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--c-primary-strong) 35%, transparent);
}

/* ================================================================
   UPGRADE MODAL — 3 payment method picker
   ================================================================ */
.upgrade-modal { display: flex; flex-direction: column; gap: var(--sp-4); }
.upgrade-modal__summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-4);
  background: linear-gradient(135deg, var(--c-primary-soft) 0%, color-mix(in srgb, var(--c-primary-soft) 50%, var(--c-surface)) 100%);
  border-radius: var(--r-xl);
  border: 1.5px solid color-mix(in srgb, var(--c-primary) 30%, transparent);
}
.upgrade-modal__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: var(--fw-bold);
}
.upgrade-modal__price-num { font-size: 2.5rem; color: var(--c-primary-strong); line-height: 1; }
.upgrade-modal__price-per { font-size: var(--fs-sm); color: var(--c-text-muted); font-weight: var(--fw-medium); }
.upgrade-modal__sub { font-size: var(--fs-xs); color: var(--c-text-soft); }

.upgrade-modal__methods { display: flex; flex-direction: column; gap: var(--sp-2); }
.upgrade-method {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: transform .18s cubic-bezier(.34,1.3,.64,1), border-color .18s, box-shadow .18s, background .18s;
  color: inherit;
  font-family: inherit;
}
.upgrade-method:hover:not(.is-disabled):not([disabled]) {
  transform: translateY(-2px);
  border-color: var(--c-primary);
  box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--c-primary-strong) 50%, transparent);
  background: color-mix(in srgb, var(--c-primary-soft) 35%, var(--c-surface));
}
.upgrade-method.is-disabled,
.upgrade-method[disabled] { opacity: 0.55; cursor: not-allowed; }
.upgrade-method__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--c-primary-soft);
  color: var(--c-primary-strong);
}
.upgrade-method__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.upgrade-method__title { font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.upgrade-method__sub { font-size: var(--fs-xs); color: var(--c-text-soft); line-height: 1.4; }
.upgrade-method__chev {
  flex-shrink: 0;
  color: var(--c-text-soft);
  font-size: 1.2rem;
  transition: transform .2s ease, color .2s ease;
}
.upgrade-method:hover:not(.is-disabled):not([disabled]) .upgrade-method__chev {
  transform: translateX(4px);
  color: var(--c-primary-strong);
}
.upgrade-method.is-loading {
  pointer-events: none;
  opacity: 0.7;
}
.upgrade-method.is-loading .upgrade-method__chev::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.upgrade-method.is-loading .upgrade-method__chev { font-size: 0; }
.upgrade-modal__note {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  margin: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   RENEWAL NUDGE — bottom banner for expiring plans
   ================================================================ */
.renewal-nudge {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-height, 60px) + 16px);
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: linear-gradient(135deg, #FFF1E0 0%, #FFE0EC 100%);
  border: 1.5px solid color-mix(in srgb, var(--c-primary-strong) 50%, transparent);
  border-radius: var(--r-xl);
  box-shadow: 0 12px 32px -10px color-mix(in srgb, var(--c-primary-strong) 35%, transparent),
              0 4px 12px rgba(42, 31, 26, 0.08);
  max-width: 560px;
  width: calc(100% - 24px);
  animation: nudgeSlideUp 0.35s cubic-bezier(.34,1.4,.64,1) both;
}
.renewal-nudge.is-closing { animation: nudgeSlideDown 0.22s ease both; }
@keyframes nudgeSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(40px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes nudgeSlideDown {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to   { opacity: 0; transform: translateX(-50%) translateY(40px); }
}
.renewal-nudge__icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--c-primary-strong);
  color: white;
}
.renewal-nudge__body { flex: 1; min-width: 0; }
.renewal-nudge__title { font-weight: var(--fw-bold); font-size: var(--fs-sm); color: var(--c-text); }
.renewal-nudge__sub   { font-size: var(--fs-xs); color: var(--c-text-soft); margin-top: 2px; }
.renewal-nudge__cta {
  flex-shrink: 0;
  padding: 8px 14px;
  background: var(--c-primary-strong);
  color: white;
  border: none;
  border-radius: var(--r-full);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.renewal-nudge__cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px color-mix(in srgb, var(--c-primary-strong) 40%, transparent); }
.renewal-nudge__close {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--c-text-soft);
  cursor: pointer;
  border-radius: 50%;
  transition: background .15s, color .15s;
}
.renewal-nudge__close:hover { background: rgba(0,0,0,0.06); color: var(--c-text); }
@media (max-width: 480px) {
  .renewal-nudge { gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); }
  .renewal-nudge__sub { display: none; }
}

/* ================================================================
   ACCOUNT — TIER PANEL + VERIFIED BADGE
   ================================================================ */
.acc-tier-upgrade {
  margin-top: var(--sp-4);
  background: var(--c-primary-soft);
  border: 1.5px solid var(--c-primary);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
  color: inherit;
}
.acc-tier-upgrade:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.acc-tier-upgrade__icon { font-size: 1.75rem; flex-shrink: 0; }
.acc-tier-upgrade__text { flex: 1; }
.acc-tier-upgrade__title { font-weight: var(--fw-bold); font-size: var(--fs-base); }
.acc-tier-upgrade__sub { font-size: var(--fs-xs); color: var(--c-text-soft); }
.acc-tier-upgrade__arrow { color: var(--c-primary-strong); font-size: 1.25rem; flex-shrink: 0; }

.acc-verify-card {
  margin-top: var(--sp-3);
  border: 1.5px dashed var(--c-border-strong);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: none;
  text-align: left;
  width: 100%;
}
.acc-verify-card:hover {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
}
.acc-verify-card__icon { font-size: 1.5rem; flex-shrink: 0; }
.acc-verify-card__text { flex: 1; }
.acc-verify-card__title { font-weight: var(--fw-semibold); font-size: var(--fs-sm); }

/* ================================================================
   NOTIFICATION BELL (header)
   ================================================================ */

.header-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-lg);
  color: var(--c-text-soft);
  transition: background var(--t-fast), color var(--t-fast);
  flex-shrink: 0;
  text-decoration: none;
}
.header-bell:hover {
  background: var(--c-surface-2);
  color: var(--c-text);
}
.header-bell__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--c-primary);
  color: #fff;
  font-size: 10px;
  font-weight: var(--fw-bold);
  line-height: 16px;
  border-radius: 999px;
  text-align: center;
}

/* ── Notification list (account page) ── */
.acc-notif-list {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--c-surface);
}
.notif-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--c-border);
  text-decoration: none;
  color: inherit;
  transition: background .16s ease;
  animation: notifRowIn .4s cubic-bezier(.34,1.2,.64,1) both;
  animation-delay: calc(var(--i, 0) * 0.045s);
}
.notif-row:last-child { border-bottom: none; }
.notif-row:hover { background: var(--c-surface-2); }
a.notif-row:active { background: color-mix(in srgb, var(--c-primary-soft) 50%, var(--c-surface)); }

/* Unread: tinted background + accent left rail */
.notif-row.is-unread { background: color-mix(in srgb, var(--c-primary-soft) 45%, var(--c-surface)); }
.notif-row.is-unread::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--c-primary-strong);
}
.notif-row.is-unread:hover { background: color-mix(in srgb, var(--c-primary-soft) 65%, var(--c-surface)); }

/* Icon chip — colour-coded per notification tone */
.notif-row__icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: var(--r-lg);
}
.notif-row__icon svg { width: 22px; height: 22px; }
.notif-row--pink    .notif-row__icon { background: var(--c-primary-soft); color: var(--c-primary-strong); }
.notif-row--indigo  .notif-row__icon { background: #E8EAFF; color: #5B5BD6; }
.notif-row--green   .notif-row__icon { background: #DEF4E9; color: #1F8F63; }
.notif-row--amber   .notif-row__icon { background: #FFEDD2; color: #B9751A; }
.notif-row--danger  .notif-row__icon { background: #FCE2E2; color: #D2433D; }
.notif-row--neutral .notif-row__icon { background: var(--c-surface-2); color: var(--c-text-soft); }

.notif-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.notif-row__title {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--c-text);
  line-height: 1.3;
}
.notif-row__body {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notif-row__meta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.notif-row__time {
  font-size: 11px;
  color: var(--c-text-soft);
  white-space: nowrap;
}
.notif-row__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-primary-strong);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 22%, transparent);
}
@keyframes notifRowIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 460px) {
  .notif-row { padding: var(--sp-3); gap: var(--sp-2); }
  .notif-row__icon { width: 38px; height: 38px; }
}
.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: var(--sp-8) var(--sp-4);
}
.notif-empty__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary-strong);
  margin-bottom: var(--sp-2);
}
.notif-empty__icon svg { width: 28px; height: 28px; }
.notif-empty__title { font-weight: var(--fw-semibold); font-size: var(--fs-base); color: var(--c-text); margin: 0; }
.notif-empty__sub { font-size: var(--fs-sm); color: var(--c-text-soft); margin: 0; max-width: 30ch; }

/* ================================================================
   ADMIN PANEL
   ================================================================ */

.admin-tabs {
  display: flex;
  gap: var(--sp-1);
  background: var(--c-surface-2);
  border-radius: var(--r-xl);
  padding: var(--sp-1);
  width: fit-content;
}
.admin-tab {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-lg);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.admin-tab:hover { background: var(--c-surface); color: var(--c-text); }
.admin-tab.is-active {
  background: var(--c-surface);
  color: var(--c-text);
  font-weight: var(--fw-semibold);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.admin-loading {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  padding: var(--sp-6) 0;
}
.admin-loading__spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--c-border);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── COD reconciliation panel ── */
.cod-recon { display: flex; flex-direction: column; gap: var(--sp-4); }
.cod-recon__intro {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin: 0;
}
.cod-queue {
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-surface);
}
.cod-queue__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}
.cod-queue__title { font-weight: var(--fw-bold); font-size: var(--fs-sm); }
.cod-queue__count {
  background: var(--c-primary-soft);
  color: var(--c-primary-strong);
  font-weight: var(--fw-bold);
  font-size: var(--fs-xs);
  min-width: 22px;
  text-align: center;
  padding: 2px 8px;
  border-radius: var(--r-full);
}
.cod-queue__hint {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  margin: 4px 0 var(--sp-3);
}
.cod-queue__list { display: flex; flex-direction: column; gap: var(--sp-2); }
.cod-queue__empty { font-size: var(--fs-xs); color: var(--c-text-soft); padding: var(--sp-2) 0; }
.cod-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface-2);
}
.cod-row__title { font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.cod-row__meta,
.cod-row__people { font-size: var(--fs-xs); color: var(--c-text-soft); margin-top: 2px; }
.cod-row__action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}
.cod-row__awb,
.cod-row__split { font-size: var(--fs-xs); color: var(--c-text-muted); }
.form-input--sm {
  padding: 6px 10px;
  font-size: var(--fs-xs);
  max-width: 150px;
}

/* ── Fiscal reports panel ── */
.fiscal-panel__intro {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin: 0 0 var(--sp-3);
}
.fiscal-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.fiscal-controls .form-group { margin: 0; }
.fiscal-result__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-3);
}
.fiscal-result__head h3 { font-size: var(--fs-base); margin: 0; }
.fiscal-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.fiscal-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface-2);
}
.fiscal-stat span { font-size: var(--fs-xs); color: var(--c-text-soft); }
.fiscal-stat strong { font-size: var(--fs-base); }
.fiscal-stat--hl {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
}
.fiscal-stat--hl strong { color: var(--c-primary-strong); }
.fiscal-note {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  margin: 0 0 var(--sp-3);
  line-height: 1.5;
}
.fiscal-table-wrap { overflow-x: auto; }
.fiscal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-xs);
}
.fiscal-table th,
.fiscal-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}
.fiscal-table th {
  background: var(--c-surface-2);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
}
.fiscal-table tbody tr:hover { background: var(--c-surface-2); }

.admin-section-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.admin-badge {
  background: var(--c-primary);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.4;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.admin-card {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: box-shadow var(--t-fast);
}
.admin-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.06); }

.admin-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}
.admin-card__tag {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: 3px 10px;
  border-radius: 999px;
}
.admin-card__tag--pending {
  background: #fef3c7;
  color: #92400e;
}
.admin-card__tag--report {
  background: #fee2e2;
  color: #991b1b;
}
.admin-card__time {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

.admin-card__body {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
@media (max-width: 600px) {
  .admin-card__body { flex-direction: column; }
}

.admin-card__user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.admin-card__name {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
}
.admin-card__meta-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.admin-card__chip {
  font-size: var(--fs-xs);
  background: var(--c-surface-2);
  color: var(--c-text-soft);
  padding: 2px 8px;
  border-radius: 999px;
}
.admin-card__uid {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  font-family: monospace;
}

/* ID document preview */
.admin-id-wrap {
  flex-shrink: 0;
  width: 160px;
}
@media (max-width: 600px) {
  .admin-id-wrap { width: 100%; }
}
.admin-id-link {
  display: block;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1.5px solid var(--c-border);
  cursor: pointer;
  text-decoration: none;
}
.admin-id-img {
  width: 100%;
  display: block;
  max-height: 120px;
  object-fit: cover;
}
.admin-id-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.admin-id-link:hover .admin-id-overlay { opacity: 1; }

.admin-card__actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  padding-top: var(--sp-1);
  border-top: 1px solid var(--c-border);
}
.admin-btn-reject {
  color: var(--c-error) !important;
}
.admin-btn-danger {
  background: var(--c-error) !important;
  color: #fff !important;
  border-color: var(--c-error) !important;
  border-radius: var(--r-lg);
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  cursor: pointer;
}
.admin-btn-danger:hover { filter: brightness(.92); }

/* Stats grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--sp-3);
}
.admin-stat-card {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  text-align: center;
}
.admin-stat-card--alert {
  border-color: #f59e0b;
  background: #fef9ee;
}
.admin-stat-card__value {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  line-height: 1;
  margin-bottom: var(--sp-1);
}
.admin-stat-card--alert .admin-stat-card__value { color: #92400e; }
.admin-stat-card__label {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  line-height: 1.3;
}

/* ================================================================
   CHAT ATTACH BUTTON
   ================================================================ */

.chat-attach-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-lg);
  background: none;
  border: 1.5px solid var(--c-border);
  color: var(--c-text-muted);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chat-attach-btn:hover {
  background: var(--c-primary-soft);
  border-color: var(--c-primary);
  color: var(--c-primary-strong);
}

/* ================================================================
   PRIVATE OFFER BOTTOM SHEET
   ================================================================ */

.offer-sheet {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
}
.offer-sheet.is-open {
  pointer-events: auto;
  opacity: 1;
}
.offer-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.48);
}
.offer-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  background: var(--c-surface);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  max-height: 92dvh;
  overflow-y: auto;
  transform: translateY(60px);
  transition: transform .28s cubic-bezier(.32,.72,0,1);
}
.offer-sheet.is-open .offer-sheet__panel { transform: translateY(0); }

.offer-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5) var(--sp-3);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  background: var(--c-surface);
  z-index: 1;
}
.offer-sheet__title {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
}
.offer-sheet__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--c-surface-2);
  cursor: pointer;
  font-size: var(--fs-base);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast);
}
.offer-sheet__close:hover { background: var(--c-border); }

.offer-sheet__body {
  padding: var(--sp-4) var(--sp-5) var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.offer-sheet__section-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--c-text-muted);
  margin-bottom: calc(-1 * var(--sp-1));
}

/* Photo slots */
.offer-photo-slots {
  display: flex;
  gap: var(--sp-2);
}
.offer-photo-slot {
  flex: 1;
  aspect-ratio: 1;
  border: 2px dashed var(--c-border);
  border-radius: var(--r-lg);
  cursor: pointer;
  overflow: hidden;
  background: var(--c-surface-2);
  transition: border-color var(--t-fast), background var(--t-fast);
  padding: 0;
}
.offer-photo-slot:hover { border-color: var(--c-primary); background: var(--c-primary-soft); }
.offer-photo-slot__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  color: var(--c-text-muted);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}
.offer-photo-slot__preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Private offer bubble in chat ── */
.msg-bubble--private-listing { max-width: 88%; }

.prv-offer-card {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.prv-offer-card__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--c-primary-strong);
  background: var(--c-primary-soft);
  padding: var(--sp-2) var(--sp-3);
}

.prv-offer-photos {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--c-surface-2);
  overflow: hidden;
}
.prv-offer-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .2s;
  cursor: pointer;
}
.prv-offer-photo.is-active { opacity: 1; }

.prv-offer-dots {
  position: absolute;
  bottom: var(--sp-2);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
.prv-offer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background .15s;
}
.prv-offer-dot.is-active { background: #fff; }

.prv-offer-card__price {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  padding: var(--sp-3) var(--sp-3) var(--sp-1);
}
.prv-offer-card__desc {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  padding: 0 var(--sp-3) var(--sp-2);
  line-height: 1.4;
}
.prv-offer-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  padding: 0 var(--sp-3) var(--sp-3);
}
.prv-offer-tag {
  font-size: var(--fs-xs);
  background: var(--c-surface-2);
  color: var(--c-text-soft);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
}

/* ================================================================
   PUSH NOTIFICATION PROMPT CARD
   ================================================================ */

.notif-prompt {
  position: fixed;
  bottom: calc(var(--tabbar-h, 64px) + var(--sp-3));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: calc(100% - var(--sp-6));
  max-width: 420px;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-2xl);
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  padding: var(--sp-4);
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  z-index: 700;
  opacity: 0;
  transition: opacity .25s, transform .28s cubic-bezier(.32,.72,0,1);
  pointer-events: none;
}
.notif-prompt.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.notif-prompt__icon { font-size: 1.75rem; flex-shrink: 0; }
.notif-prompt__body { flex: 1; }
.notif-prompt__title {
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  margin-bottom: 2px;
}
.notif-prompt__text {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  line-height: 1.4;
}
.notif-prompt__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  flex-shrink: 0;
}
.acc-verify-card__sub { font-size: var(--fs-xs); color: var(--c-text-soft); }

/* ================================================================
   ORDER STATUS PAGE  (/comanda/:id)
   ================================================================ */
.page-order { background: var(--c-bg); }

.order-header {
  background: linear-gradient(135deg, var(--c-primary-soft) 0%, color-mix(in srgb, var(--c-secondary-soft) 70%, transparent) 100%);
  padding: var(--sp-5) var(--sp-5);
  border-radius: var(--r-2xl);
  margin-bottom: var(--sp-4);
}
.order-header__top {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  flex-wrap: wrap;
}
.order-header__title { font-size: var(--fs-xl); font-weight: var(--fw-bold); margin: 0; }
.order-header__sub   { font-size: var(--fs-xs); color: var(--c-text-soft); margin: var(--sp-2) 0 0; }
.order-header__status {
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  padding: 4px 12px; border-radius: 999px;
  background: var(--c-surface); color: var(--c-text);
  border: 1.5px solid var(--c-border);
}
.order-status--paid              { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
.order-status--in_transit        { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.order-status--delivered         { background: #F0FDF4; color: #15803D; border-color: #BBF7D0; }
.order-status--completed         { background: var(--c-primary-soft); color: var(--c-primary-strong); border-color: var(--c-primary); }
.order-status--cancelled         { background: #FEF2F2; color: #B91C1C; border-color: #FCA5A5; }
.order-status--ready_for_pickup  { background: #FEF3C7; color: #92400E; border-color: #FCD34D; }
.order-status--pending_payment   { background: #FFF7ED; color: #C2410C; border-color: #FDBA74; }

.order-card { padding: var(--sp-5); margin-bottom: var(--sp-3); }
.order-card__title {
  font-size: var(--fs-md); font-weight: var(--fw-semibold);
  margin: 0 0 var(--sp-3); color: var(--c-text);
}

.order-timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.order-timeline__item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) 0;
  position: relative;
}
.order-timeline__item:not(:last-child)::after {
  content: '';
  position: absolute; left: 16px; top: 36px; width: 2px; height: 24px;
  background: var(--c-border);
  transition: background var(--t-slow) var(--ease-out);
}
.order-timeline__item--done:not(:last-child)::after { background: var(--c-primary); }
.order-timeline__dot {
  flex: 0 0 32px; width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: var(--fw-bold);
  border: 2px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text-soft);
  transition: all var(--t-slow) var(--ease-out);
}
.order-timeline__item--active .order-timeline__dot {
  background: var(--c-primary); border-color: var(--c-primary-strong);
  color: var(--c-primary-strong);
  animation: pulseRing 2s infinite;
}
.order-timeline__item--done .order-timeline__dot {
  background: var(--c-primary-strong); border-color: var(--c-primary-strong);
  color: white;
}
.order-timeline__label { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--c-text-soft); }
.order-timeline__item--active .order-timeline__label,
.order-timeline__item--done   .order-timeline__label { color: var(--c-text); }
.order-timeline__item--active .order-timeline__label { font-weight: var(--fw-semibold); }

/* COD orders fully cancelled — dim the whole timeline */
.order-timeline--cancelled { opacity: .5; }

/* Contextual note under the timeline (next-step hint) */
.order-timeline-note {
  margin: var(--sp-3) 0 0;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: #C2410C;
  background: #FFF7ED;
  border: 1.5px solid #FDBA74;
  border-radius: var(--r-md);
}
.order-timeline-note--bad {
  color: #B91C1C;
  background: #FEF2F2;
  border-color: #FCA5A5;
}

/* ── Route widget — animated sender → receiver progress track ────────────── */
.route-map {
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-2) var(--sp-2);
}
.route-map__ends {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--sp-2); margin-bottom: var(--sp-3);
}
.route-map__end {
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  color: var(--c-text-soft); max-width: 46%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.route-map__end--to { text-align: right; color: var(--c-primary-strong); }
.route-map__track {
  position: relative; height: 8px; border-radius: 999px;
  background: var(--c-primary-soft);
  margin: 0 6px;
}
.route-map__fill {
  position: absolute; inset: 0 auto 0 0; width: var(--route-pct, 0%);
  border-radius: 999px;
  background: linear-gradient(90deg, #F9A8D4, var(--c-primary));
  transition: width .7s cubic-bezier(.4, 0, .2, 1);
}
.route-map__pin {
  position: absolute; top: 50%; width: 14px; height: 14px;
  border-radius: 50%; transform: translate(-50%, -50%);
  border: 2.5px solid #fff; box-sizing: border-box;
}
.route-map__pin--a { left: 0;   background: var(--c-primary); }
.route-map__pin--b { left: 100%; background: var(--c-border); }
.route-map__pin--b.is-reached { background: var(--c-primary); }
.route-map__parcel {
  position: absolute; top: 50%; left: var(--route-pct, 0%);
  transform: translate(-50%, -50%);
  font-size: 1.15rem; line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25));
  transition: left .7s cubic-bezier(.4, 0, .2, 1);
  animation: routeParcelBob 1.6s ease-in-out infinite;
}
@keyframes routeParcelBob {
  0%, 100% { margin-top: 0; }
  50%      { margin-top: -4px; }
}

/* ── Seller pack & send card ─────────────────────────────────────────────── */
.pack-card {
  border: 2px solid var(--c-primary);
  background: linear-gradient(160deg, var(--c-primary-soft), var(--c-surface) 70%);
}
.pack-card__badge {
  display: inline-block;
  font-size: var(--fs-sm); font-weight: var(--fw-bold);
  color: var(--c-primary-strong);
  margin-bottom: var(--sp-2);
}
.pack-card__lead {
  font-size: var(--fs-sm); line-height: 1.55; color: var(--c-text);
  margin: 0 0 var(--sp-3);
}
.pack-card__awb {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-2); flex-wrap: wrap;
  padding: var(--sp-2) var(--sp-3); margin-bottom: var(--sp-3);
  background: var(--c-surface); border: 1.5px dashed var(--c-primary);
  border-radius: var(--r-md);
}
.pack-card__awb-label {
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  color: var(--c-text-soft); text-transform: uppercase; letter-spacing: .5px;
}
.pack-card__awb-code {
  font-family: monospace; font-size: var(--fs-md); font-weight: var(--fw-bold);
  letter-spacing: 1.5px; color: var(--c-primary-strong);
}
.pack-card__hint {
  font-size: var(--fs-xs); color: var(--c-text-muted);
  margin: 0 0 var(--sp-3); font-style: italic;
}
.pack-card__note {
  font-size: var(--fs-xs); color: var(--c-text-soft);
  margin: var(--sp-2) 0 0; text-align: center;
}

/* ── Admin: per-order stage override ─────────────────────────────────────── */
.ord-ovr { font-size: var(--fs-xs); }
.ord-ovr > summary {
  cursor: pointer; color: var(--c-text-soft);
  user-select: none; list-style: none;
}
.ord-ovr > summary::-webkit-details-marker { display: none; }
.ord-ovr[open] > summary { color: var(--c-text); font-weight: var(--fw-semibold); }
.ord-ovr__body {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-end;
  margin-top: 6px; padding: var(--sp-2);
  background: var(--c-primary-soft); border-radius: var(--r-sm);
}
.ord-ovr__field {
  display: flex; flex-direction: column; gap: 2px;
  font-size: 10px; color: var(--c-text-soft); text-transform: uppercase;
}

@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-primary) 60%, transparent); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.order-listing {
  display: flex; gap: var(--sp-3); align-items: center;
  padding: var(--sp-3); border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-3);
}
.order-listing__photo {
  width: 64px; height: 64px; border-radius: var(--r-md);
  object-fit: cover; background: var(--c-surface-2);
}
.order-listing__photo--placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.order-listing__title {
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  color: var(--c-text); text-decoration: none;
  display: block;
}
.order-listing__title:hover { color: var(--c-primary-strong); text-decoration: underline; }
.order-listing__price {
  font-size: var(--fs-md); font-weight: var(--fw-bold);
  color: var(--c-primary-strong); margin-top: 2px;
}

.order-meta { margin: 0; padding: 0; }
.order-meta__row {
  display: flex; gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--c-border-soft);
  font-size: var(--fs-sm);
}
.order-meta__row:first-child { border-top: 0; }
.order-meta__row dt { flex: 0 0 140px; color: var(--c-text-soft); font-weight: var(--fw-medium); }
.order-meta__row dd { margin: 0; flex: 1; color: var(--c-text); line-height: 1.5; }

.locker-card {
  background: linear-gradient(135deg, #FFF7ED 0%, var(--c-primary-soft) 100%);
  border: 2px dashed var(--c-primary);
  text-align: center;
}
.locker-card__icon { font-size: 36px; margin-bottom: var(--sp-2); }
.locker-card__title {
  font-size: var(--fs-md); font-weight: var(--fw-bold);
  margin-bottom: var(--sp-2); color: var(--c-text);
}
.locker-card__code-wrap {
  display: flex; align-items: center; gap: var(--sp-3);
  justify-content: center; flex-wrap: wrap; margin: var(--sp-3) 0;
}
.locker-card__code {
  font-family: 'Courier New', monospace;
  font-size: 28px; font-weight: var(--fw-bold);
  background: var(--c-surface);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--c-primary);
  letter-spacing: 4px;
  color: var(--c-primary-strong);
}
.locker-card__sub { font-size: var(--fs-xs); color: var(--c-text-soft); margin: var(--sp-2) 0 0; }
.locker-card--empty {
  background: color-mix(in srgb, var(--c-surface-2) 60%, var(--c-primary-soft));
  border-style: dashed;
}

/* Locker pickup — rich instructions (code, QR, location, how-to-pay, steps) */
.locker-card--ready { text-align: left; border-style: solid; }
.locker-ready {
  display: flex; gap: var(--sp-4); flex-wrap: wrap; align-items: center;
  justify-content: center; margin: var(--sp-3) 0;
}
.locker-pin {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.locker-pin__label {
  font-size: var(--fs-xs); font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-soft);
}
.locker-pin__code {
  font-family: 'Courier New', monospace;
  font-size: 30px; font-weight: var(--fw-bold);
  background: var(--c-surface); padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-lg); border: 2px solid var(--c-primary);
  letter-spacing: 5px; color: var(--c-primary-strong);
}
.locker-qr {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.locker-qr img {
  border-radius: var(--r-md, 12px); background: #fff;
  border: 1px solid var(--c-border);
}
.locker-qr__hint { font-size: var(--fs-xs); color: var(--c-text-soft); }

.locker-loc {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--r-md, 12px);
  background: var(--c-surface); border: 1px solid var(--c-border);
  text-decoration: none; color: inherit; margin-bottom: var(--sp-3);
  transition: border-color .12s ease;
}
.locker-loc:hover { border-color: var(--c-primary); }
.locker-loc__ic { font-size: 1.3rem; flex: none; }
.locker-loc__txt { font-size: var(--fs-sm); line-height: 1.4; }
.locker-loc__sub { font-size: var(--fs-xs); color: var(--c-primary-strong, #D63A7E); font-weight: var(--fw-semibold); }

.locker-pay {
  font-size: var(--fs-sm); line-height: 1.5;
  padding: 11px 14px; border-radius: var(--r-md, 12px);
  margin-bottom: var(--sp-3);
}
.locker-pay--cod  { background: #FFF4E0; color: #8A5A12; }
.locker-pay--paid { background: #E3F6EC; color: #1E7F4F; }

.locker-steps {
  margin: 0; padding-left: 20px;
  font-size: var(--fs-sm); line-height: 1.7; color: var(--c-text-muted);
}
.locker-steps li { margin-bottom: 2px; }

/* Order page — buyer rating prompt */
.rate-card {
  background: linear-gradient(135deg, #FFF7E0 0%, var(--c-primary-soft) 100%);
}
.rate-card__sub { font-size: var(--fs-sm); color: var(--c-text-muted); margin: 0 0 var(--sp-3); }
.rate-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3); padding: 10px 0;
}
.rate-row + .rate-row { border-top: 1px solid var(--c-border); }
.rate-row__label { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-text); }
.rate-stars { display: flex; gap: 2px; }
.rate-star {
  border: none; background: none; cursor: pointer; padding: 2px;
  font-size: 1.7rem; line-height: 1; color: var(--c-border);
  transition: color .1s ease, transform .1s ease;
}
.rate-star:hover { transform: scale(1.15); }
.rate-star.is-on { color: #FFB400; }
#js-rate-submit { margin-top: var(--sp-3); }

.rate-done {
  display: flex; align-items: center; gap: 12px;
  background: #E3F6EC; border: 1px solid #BEEAD0;
}
.rate-done__ic { font-size: 1.8rem; flex: none; }
.rate-done__title { font-weight: var(--fw-bold); color: #1E7F4F; }
.rate-done__sub { font-size: var(--fs-sm); color: #2A6F58; margin-top: 2px; letter-spacing: 1px; }

.notify-toggles { display: flex; flex-direction: column; gap: var(--sp-2); }
.notify-toggle {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
}
.notify-toggle:hover { border-color: var(--c-primary); background: var(--c-primary-soft); }
.notify-toggle:has(input:disabled) { opacity: 0.55; cursor: not-allowed; background: var(--c-surface-2); }
.notify-toggle__icon { font-size: 20px; flex: 0 0 28px; text-align: center; }
.notify-toggle__body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.notify-toggle__title { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-text); }
.notify-toggle__sub   { font-size: var(--fs-xs); color: var(--c-text-soft); }
.notify-toggle input { width: 18px; height: 18px; accent-color: var(--c-primary-strong); cursor: pointer; }

/* ================================================================
   CHECKOUT PAGE  (/checkout/:id)
   ================================================================ */
.checkout-wrap { max-width: 1100px; }
.checkout-title { font-size: var(--fs-xl); font-weight: var(--fw-bold); margin: 0 0 var(--sp-4); }
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sp-5);
  align-items: start;
}
@media (max-width: 768px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { order: -1; position: static !important; top: auto !important; }
  /* Make sure PayPal SDK button container can't overflow the step card */
  #js-paypal-btn { position: relative; z-index: 1; max-width: 100%; overflow: hidden; }
}
.checkout-summary {
  padding: var(--sp-4);
  position: sticky;
  top: calc(var(--header-h, 64px) + var(--sp-3));
}
.checkout-summary__photo {
  width: 100%; aspect-ratio: 1/1;
  border-radius: var(--r-lg);
  overflow: hidden; background: var(--c-surface-2);
  margin-bottom: var(--sp-3);
}
.checkout-summary__photo img { width: 100%; height: 100%; object-fit: cover; }
.checkout-summary__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
}
.checkout-summary__title {
  font-size: var(--fs-md); font-weight: var(--fw-semibold);
  color: var(--c-text); line-height: 1.4;
  margin-bottom: var(--sp-2);
}
.checkout-summary__seller {
  font-size: var(--fs-xs); color: var(--c-text-soft);
  text-decoration: none; display: block;
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border-soft);
}
.checkout-summary__seller strong { color: var(--c-text); }
.checkout-summary__row {
  display: flex; justify-content: space-between;
  font-size: var(--fs-sm); padding: var(--sp-1) 0;
  color: var(--c-text-soft);
}
.checkout-summary__row--total {
  border-top: 1.5px solid var(--c-border);
  margin-top: var(--sp-2); padding-top: var(--sp-3);
  font-size: var(--fs-md); font-weight: var(--fw-bold);
  color: var(--c-text);
}

.checkout-steps { display: flex; flex-direction: column; gap: var(--sp-3); }

.checkout-step {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.checkout-step.is-open {
  border-color: var(--c-primary);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--c-primary) 12%, transparent);
}
.checkout-step.is-skipped { opacity: 0.55; }
.checkout-step__header {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  cursor: pointer;
  user-select: none;
}
.checkout-step.is-open .checkout-step__header { cursor: default; }
.checkout-step__num {
  flex: 0 0 32px; width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-surface-2); color: var(--c-text-soft);
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--fw-bold);
  transition: all var(--t-fast) var(--ease-out);
}
.checkout-step.is-open  .checkout-step__num { background: var(--c-primary); color: var(--c-primary-strong); }
.checkout-step.is-done  .checkout-step__num { background: var(--c-primary-strong); color: white; }
.checkout-step__title { flex: 1; font-weight: var(--fw-semibold); color: var(--c-text); }
.checkout-step__sub   { font-size: var(--fs-xs); color: var(--c-text-soft); }
.checkout-step__body {
  padding: 0 var(--sp-5) var(--sp-5);
  display: none;
  animation: slideDown var(--t-slow) var(--ease-out);
}
.checkout-step.is-open .checkout-step__body { display: block; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.checkout-step__nav { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }

.shipping-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.shipping-cards--multi { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.shipping-card {
  position: relative;
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding: var(--sp-4);
  border: 2px solid var(--c-border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
  background: var(--c-surface);
}
.shipping-card:hover {
  border-color: var(--c-primary);
  background: color-mix(in srgb, var(--c-primary-soft) 30%, var(--c-surface));
}
.shipping-card.is-selected {
  border-color: var(--c-primary-strong);
  background: var(--c-primary-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 25%, transparent);
}
/* ================================================================
   CREATE WIZARD — "Cum livrezi" shipping method step
   ================================================================ */
.ship-step { display: flex; flex-direction: column; gap: var(--sp-4); }
.ship-step__head { text-align: center; }
.ship-step__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin: 0;
}
.ship-step__sub {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin: 4px 0 0;
}
.ship-explain {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--c-primary-soft) 80%, transparent) 0%,
    color-mix(in srgb, #FFE9D6 60%, transparent) 100%);
  border: 1.5px solid color-mix(in srgb, var(--c-primary) 35%, transparent);
  border-radius: var(--r-xl);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--c-text-muted);
  animation: shipFadeIn 0.4s ease both;
}
.ship-explain__icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--c-primary-strong);
  color: #fff;
}
.ship-explain__body strong { color: var(--c-text); }

.ship-method-list { display: flex; flex-direction: column; gap: var(--sp-3); }

.ship-method {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border: 2px solid var(--c-border);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  cursor: pointer;
  transition: transform .22s cubic-bezier(.34,1.35,.64,1),
              border-color .2s ease, box-shadow .22s ease, background .2s ease;
  animation: shipCardIn 0.46s cubic-bezier(.34,1.3,.64,1) both;
  animation-delay: calc(var(--i, 0) * 0.08s);
}
.ship-method__input { position: absolute; opacity: 0; pointer-events: none; }
.ship-method:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--c-primary) 55%, transparent);
  box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--c-primary-strong) 50%, transparent);
}
.ship-method.is-selected {
  border-color: var(--c-primary-strong);
  background: color-mix(in srgb, var(--c-primary-soft) 55%, var(--c-surface));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primary) 18%, transparent);
}
.ship-method--rec { border-color: color-mix(in srgb, var(--c-primary) 40%, transparent); }

.ship-method__badge {
  position: absolute;
  top: -10px; right: 16px;
  padding: 3px 11px;
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--c-primary-strong), #FF6BA3);
  border-radius: var(--r-full);
  box-shadow: 0 4px 10px -3px color-mix(in srgb, var(--c-primary-strong) 60%, transparent);
}
.ship-method__art {
  flex-shrink: 0;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--c-primary-soft) 60%, transparent);
  color: var(--c-primary-strong);
  transition: transform .3s cubic-bezier(.34,1.4,.64,1);
}
.ship-method__art svg { width: 38px; height: 38px; }
.ship-method:hover .ship-method__art { transform: scale(1.08) rotate(-3deg); }
.ship-method--rec .ship-method__art { animation: shipArtFloat 4s ease-in-out infinite; }

.ship-method__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ship-method__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap; }
.ship-method__name { font-weight: var(--fw-bold); font-size: var(--fs-base); }
.ship-method__price {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--c-primary-strong);
  background: color-mix(in srgb, var(--c-primary-soft) 70%, transparent);
  padding: 2px 9px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.ship-method__tagline { font-size: var(--fs-sm); color: var(--c-text-muted); }
.ship-method__perks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.ship-perk {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
}
.ship-perk svg { color: var(--c-success, #2B9B6E); flex-shrink: 0; }
.ship-perk--warn svg { color: var(--c-text-soft); }

.ship-method__check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 2px solid var(--c-border-strong);
  border-radius: 50%;
  color: transparent;
  transition: all .22s cubic-bezier(.34,1.4,.64,1);
}
.ship-method.is-selected .ship-method__check {
  background: var(--c-primary-strong);
  border-color: var(--c-primary-strong);
  color: #fff;
  transform: scale(1.1);
}
@keyframes shipCardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes shipFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shipArtFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@media (max-width: 480px) {
  .ship-method { padding: var(--sp-3); gap: var(--sp-2); }
  .ship-method__art { width: 48px; height: 48px; }
  .ship-method__art svg { width: 30px; height: 30px; }
}

/* ── Auto-Acceptor (create wizard, price step) ── */
.auto-accept {
  margin-top: var(--sp-4);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-surface-2);
  transition: border-color .2s ease, background .2s ease;
}
.auto-accept.is-on {
  border-color: var(--c-primary);
  background: color-mix(in srgb, var(--c-primary-soft) 45%, var(--c-surface));
}
.auto-accept__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
}
.auto-accept__title { display: flex; gap: var(--sp-2); align-items: flex-start; }
.auto-accept__bolt {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--c-primary-soft);
  color: var(--c-primary-strong);
}
.auto-accept__name {
  display: block;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--c-text);
}
.auto-accept__chip {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: .02em;
  color: var(--c-primary-strong);
  background: color-mix(in srgb, var(--c-primary-soft) 80%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-primary) 35%, transparent);
  border-radius: var(--r-full);
  cursor: help;
  vertical-align: middle;
}
.auto-accept__sub {
  display: block;
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  margin-top: 2px;
  line-height: 1.45;
}
/* iOS-style switch */
.auto-accept__switch { flex-shrink: 0; cursor: pointer; }
.auto-accept__switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.auto-accept__track {
  display: block;
  width: 46px; height: 26px;
  border-radius: var(--r-full);
  background: var(--c-border-strong);
  transition: background .22s ease;
  position: relative;
}
.auto-accept__thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.25);
  transition: transform .24s cubic-bezier(.34,1.5,.64,1);
}
.auto-accept__switch input:checked + .auto-accept__track {
  background: var(--c-primary-strong);
}
.auto-accept__switch input:checked + .auto-accept__track .auto-accept__thumb {
  transform: translateX(20px);
}
.auto-accept__switch input:focus-visible + .auto-accept__track {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}
.auto-accept__body {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--c-border);
  animation: autoAcceptIn .26s ease both;
}
@keyframes autoAcceptIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.shipping-card.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.6);
}
.shipping-card.is-disabled:hover {
  border-color: var(--c-border);
  background: var(--c-surface);
}
.pay-soon-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  vertical-align: middle;
}
.shipping-card__input { position: absolute; opacity: 0; pointer-events: none; }
.shipping-card__icon  { font-size: 28px; }
.shipping-card__title { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-text); }
.shipping-card__desc  { font-size: var(--fs-xs); color: var(--c-text-soft); line-height: 1.5; }
.shipping-card__price {
  font-size: var(--fs-xs); font-weight: var(--fw-medium);
  color: var(--c-primary-strong);
  margin-top: auto;
  padding-top: var(--sp-2);
  border-top: 1px dashed var(--c-border);
}
.shipping-card__check {
  position: absolute; top: var(--sp-2); right: var(--sp-2);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-primary-strong); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: bold;
  opacity: 0; transform: scale(0.5);
  transition: all var(--t-fast) var(--ease-out);
}
.shipping-card.is-selected .shipping-card__check { opacity: 1; transform: scale(1); }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
@media (max-width: 480px) { .form-row-2 { grid-template-columns: 1fr; } }

.confirm-list { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.confirm-row {
  display: flex; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--c-border-soft);
  font-size: var(--fs-sm);
}
.confirm-row__key { color: var(--c-text-soft); flex: 0 0 130px; }
.confirm-row__val { color: var(--c-text); text-align: right; }
.confirm-row--total {
  font-size: var(--fs-md); font-weight: var(--fw-bold);
  border-bottom: 0; padding-top: var(--sp-3);
  border-top: 2px solid var(--c-border);
  margin-top: var(--sp-2);
}
.confirm-row--total .confirm-row__val { color: var(--c-primary-strong); }
.checkout-note {
  background: color-mix(in srgb, var(--c-primary-soft) 60%, transparent);
  border: 1.5px solid var(--c-primary);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-lg);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--c-text);
}

/* Address autofill confirmation — shown when the device remembered an address */
.checkout-prefill-note {
  display: flex; align-items: center; gap: 9px;
  background: var(--c-success-bg, #E3F6EC);
  border: 1px solid color-mix(in srgb, #3A8A6F 35%, transparent);
  padding: 10px 13px; border-radius: var(--r-md, 12px);
  font-size: var(--fs-xs); line-height: 1.45; color: #2A6F58;
  margin-bottom: var(--sp-3);
}
.checkout-prefill-note__ic {
  flex: none; width: 19px; height: 19px; border-radius: 50%;
  background: #3A8A6F; color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* Listing detail: shipping option pills */
.listing-shipping-pills {
  display: flex; gap: var(--sp-2); flex-wrap: wrap;
  margin-top: var(--sp-2);
}
.listing-shipping-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--c-primary-soft) 55%, transparent);
  color: var(--c-primary-strong);
  font-size: var(--fs-xs); font-weight: var(--fw-medium);
  border-radius: 999px;
  border: 1px solid var(--c-primary);
}

/* ================================================================
   V2 — Listing card hover (tilt + lift + heart pop)
   ================================================================ */
.card-listing.card-hover {
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
  will-change: transform;
}
.card-listing.card-hover:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 14px 28px -10px color-mix(in srgb, var(--c-primary) 40%, transparent), var(--sh-md);
}
.card-listing .btn-heart { transition: transform var(--t-fast) var(--ease-out); }
.card-listing .btn-heart.is-faved { animation: heartPop 0.45s var(--ease-out); }
@keyframes heartPop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* V6 — Confetti pieces */
.confetti-piece {
  position: fixed;
  top: -10px;
  width: 10px; height: 14px;
  border-radius: 2px;
  opacity: 0.9;
  z-index: 9999;
  pointer-events: none;
  animation: confettiFall 2.4s cubic-bezier(.4, .15, .6, .95) forwards;
}
@keyframes confettiFall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(108vh) rotate(720deg); opacity: 0.3; }
}

/* V6 — Sock walking between timeline dots (subtle) */
.order-timeline__item--active .order-timeline__dot::after {
  content: '🧦';
  position: absolute;
  font-size: 14px;
  left: -22px; top: 50%; transform: translateY(-50%);
  animation: sockWalk 1.4s ease-in-out infinite;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}
@keyframes sockWalk {
  0%, 100% { transform: translate(0, -50%) rotate(-8deg); }
  50%      { transform: translate(0, -55%) rotate(8deg); }
}

/* V7 — Payment-method icons in shipping-cards */
.shipping-card[data-pay] .shipping-card__icon { font-size: 28px; }
.payment-brand-row {
  display: flex; gap: 6px; margin-top: var(--sp-2);
  font-size: 14px; color: var(--c-text-soft);
}
.payment-brand-row svg { width: 26px; height: 18px; }

/* V3 — Empty state with sock mascot */
.empty-state__sock {
  width: 96px; height: 96px;
  margin: 0 auto var(--sp-3);
  animation: emptyFloat 3s ease-in-out infinite;
}
@keyframes emptyFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-6px) rotate(3deg); }
}

/* V5 — Cute loading state */
.cute-loading {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-4);
  color: var(--c-text-muted);
}
.cute-loading__sock {
  animation: cuteSpin 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--c-primary) 40%, transparent));
}
@keyframes cuteSpin {
  0%, 100% { transform: rotate(-12deg) scale(1); }
  50%      { transform: rotate(12deg)  scale(1.06); }
}
.cute-loading__msg {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-align: center;
}

/* T5 — Buyer protection guarantee badge */
.guarantee-badge {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c-success) 18%, var(--c-surface)) 0%, var(--c-surface) 100%);
  border: 1.5px solid color-mix(in srgb, var(--c-success) 35%, var(--c-border));
  border-radius: var(--r-lg);
  margin: var(--sp-2) 0;
}
.guarantee-badge__icon { font-size: 24px; flex: 0 0 auto; }
.guarantee-badge__body { font-size: var(--fs-xs); line-height: 1.5; color: var(--c-text); display: flex; flex-direction: column; gap: 2px; }
.guarantee-badge__body strong { color: var(--c-text); font-weight: var(--fw-semibold); }
.guarantee-badge__body span    { color: var(--c-text-soft); }

/* T6 — Verified ribbon (more prominent) */
.verified-ribbon {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  background: linear-gradient(135deg, var(--c-accent-strong) 0%, var(--c-accent) 100%);
  color: white;
  font-size: var(--fs-2xs); font-weight: var(--fw-bold);
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 2px 4px color-mix(in srgb, var(--c-accent-strong) 40%, transparent);
}

/* btn-icon — square icon-only button */
.btn-icon {
  width: 40px; height: 40px;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}

/* U10 — Sticky header shrink on scroll */
.app-header {
  transition: padding 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.app-header.is-shrunk {
  padding-top: 6px; padding-bottom: 6px;
  box-shadow: 0 4px 16px rgba(42, 31, 26, 0.08);
}
.app-header.is-shrunk .app-header__logo { font-size: 1.2rem; }

/* U5 — Typing indicator */
.typing-indicator {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 14px 6px;
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
}
.typing-dot {
  width: 6px; height: 6px;
  background: var(--c-primary-strong);
  border-radius: 50%;
  animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }
.typing-label { margin-left: 4px; font-style: italic; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.45; }
  40%           { transform: scale(1);   opacity: 1; }
}

/* U4 — Tracking card */
.tracking-card { background: linear-gradient(135deg, var(--c-info-bg) 0%, var(--c-surface) 100%); border-color: var(--c-info); }
.tracking-row {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
}
.tracking-code {
  font-family: 'Courier New', monospace; font-size: var(--fs-md); font-weight: var(--fw-bold);
  background: var(--c-surface); padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md); border: 1.5px solid var(--c-border);
  letter-spacing: 1.5px; color: var(--c-text);
}

/* C2 — Sock of the Week banner */
.sotw {
  display: block; text-decoration: none;
  margin: var(--sp-3) 0 var(--sp-5);
  padding: 0;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: linear-gradient(135deg, #FFF4A3 0%, #FFB3D1 60%, #F88AB8 100%);
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--c-primary-strong) 50%, transparent);
  transform: translateZ(0);
  transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out);
}
.sotw:hover { transform: translateY(-3px); box-shadow: 0 14px 32px -8px color-mix(in srgb, var(--c-primary-strong) 60%, transparent); }
.sotw__badge {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-xs); font-weight: var(--fw-bold); color: white;
  background: rgba(123, 0, 54, 0.92);
  display: inline-block; border-bottom-right-radius: var(--r-lg);
}
.sotw__inner { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); }
.sotw__photo {
  flex: 0 0 90px; width: 90px; height: 90px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center;
}
.sotw__photo img { width: 100%; height: 100%; object-fit: cover; }
.sotw__body { flex: 1; min-width: 0; color: #2A1F1A; }
.sotw__title { font-size: var(--fs-md); font-weight: var(--fw-bold); line-height: 1.3; }
.sotw__note  { font-size: var(--fs-sm); margin-top: 4px; opacity: 0.85; }
.sotw__cta   { font-size: var(--fs-sm); font-weight: var(--fw-semibold); margin-top: var(--sp-2); color: #7B0036; }

/* C3 — Achievement badges */
.achievements {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: var(--sp-3);
}
.achievement {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--c-secondary-soft) 0%, var(--c-primary-soft) 100%);
  border: 1px solid color-mix(in srgb, var(--c-primary) 50%, var(--c-border));
  border-radius: 999px;
  font-size: var(--fs-2xs); font-weight: var(--fw-semibold);
  color: var(--c-text);
  cursor: help;
  transition: transform var(--t-fast) var(--ease-out);
}
.achievement:hover { transform: translateY(-2px) scale(1.04); }
.achievement__icon { font-size: 14px; }

/* Invite (account tab) */
.invite-card {
  background: linear-gradient(135deg, var(--c-primary-soft) 0%, var(--c-secondary-soft) 100%);
  border-radius: var(--r-2xl);
  padding: var(--sp-5);
  text-align: center;
  border: 1.5px dashed var(--c-primary);
}
.invite-card__icon { font-size: 40px; margin-bottom: var(--sp-2); }
.invite-card__title { font-size: var(--fs-md); font-weight: var(--fw-bold); margin-bottom: var(--sp-2); }
.invite-card__sub { font-size: var(--fs-sm); color: var(--c-text-muted); margin-bottom: var(--sp-3); line-height: 1.5; }
.invite-code {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-2); flex-wrap: wrap;
  margin-top: var(--sp-3);
}
.invite-code__val {
  font-family: 'Courier New', monospace;
  font-size: 22px; font-weight: var(--fw-bold);
  background: var(--c-surface); padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-lg); border: 2px solid var(--c-primary-strong);
  letter-spacing: 4px; color: var(--c-primary-strong);
}
.invite-apply {
  margin-top: var(--sp-5);
  padding: var(--sp-4);
  background: var(--c-surface); border-radius: var(--r-lg); border: 1.5px solid var(--c-border);
}

/* ================================================================
   Walkthrough modal (U1)
   ================================================================ */
.walkthrough-overlay {
  position: fixed; inset: 0;
  background: rgba(42, 31, 26, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-4);
  animation: walkthroughIn 0.32s var(--ease-out);
}
.walkthrough-overlay.is-closing { animation: walkthroughOut 0.22s var(--ease-out) forwards; }
@keyframes walkthroughIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes walkthroughOut { from { opacity: 1; } to { opacity: 0; } }

.walkthrough-card {
  width: 100%; max-width: 460px;
  background: var(--c-surface);
  border-radius: var(--r-2xl);
  padding: var(--sp-7) var(--sp-6) var(--sp-5);
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.walkthrough-close {
  position: absolute; top: var(--sp-3); right: var(--sp-3);
  width: 32px; height: 32px;
  border: 0; background: transparent;
  font-size: 22px; cursor: pointer;
  color: var(--c-text-soft);
  border-radius: 50%;
  transition: background var(--t-fast);
}
.walkthrough-close:hover { background: var(--c-surface-2); color: var(--c-text); }
.walkthrough-icon {
  display: flex; justify-content: center;
  color: var(--c-primary-strong);
  margin-bottom: var(--sp-3);
}
.walkthrough-title { font-size: var(--fs-xl); font-weight: var(--fw-bold); margin-bottom: var(--sp-3); color: var(--c-text); }
.walkthrough-body  { font-size: var(--fs-sm); color: var(--c-text-muted); line-height: 1.6; margin-bottom: var(--sp-5); }
.walkthrough-actions { display: flex; gap: var(--sp-3); justify-content: space-between; margin-bottom: var(--sp-4); }
.walkthrough-actions .btn { flex: 1; }
.walkthrough-dots { display: flex; gap: 6px; justify-content: center; }
.walkthrough-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-border-strong);
  transition: all var(--t-fast) var(--ease-out);
}
.walkthrough-dot.is-active {
  background: var(--c-primary-strong);
  width: 24px; border-radius: 4px;
}
.walkthrough-card--final .walkthrough-roles {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-2);
  margin: var(--sp-4) 0;
}
@media (min-width: 480px) {
  .walkthrough-card--final .walkthrough-roles { grid-template-columns: repeat(3, 1fr); }
}
.walkthrough-role {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: var(--sp-4) var(--sp-3);
  border: 2px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
}
.walkthrough-role:hover {
  border-color: var(--c-primary-strong);
  background: var(--c-primary-soft);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--c-primary) 25%, transparent);
}
.walkthrough-role__icon  {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  color: var(--c-primary-strong);
}
.walkthrough-role__icon svg { width: 100%; height: 100%; }
.walkthrough-role__title { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--c-text); }
.walkthrough-role__sub   { font-size: var(--fs-2xs); color: var(--c-text-soft); }

/* anim-pop helper (used by walkthrough card) */
.anim-pop { animation: animPop 0.4s var(--ease-out); }
@keyframes animPop {
  0% { opacity: 0; transform: scale(0.92) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ================================================================
   Pull-to-refresh indicator
   ================================================================ */
.ptr-indicator {
  position: fixed; top: -50px; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 48px;
  background: var(--c-surface);
  border-radius: 50%;
  box-shadow: var(--sh-md);
  display: flex; align-items: center; justify-content: center;
  z-index: 8000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, top 0.2s;
  color: var(--c-primary-strong);
}
.ptr-indicator__inner { transition: transform 0.2s var(--ease-out); }
.ptr-indicator.is-ready .ptr-indicator__inner { transform: rotate(180deg); }
.ptr-indicator.is-loading .ptr-indicator__inner { animation: ptrSpin 0.9s linear infinite; }
@keyframes ptrSpin { to { transform: rotate(360deg); } }

/* ================================================================
   PWA install banner
   ================================================================ */
.install-banner {
  position: fixed;
  bottom: calc(var(--tabbar-h, 64px) + var(--sp-3));
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: calc(100% - var(--sp-6));
  max-width: 420px;
  background: var(--c-surface);
  border: 1.5px solid var(--c-primary);
  border-radius: var(--r-2xl);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  display: flex; align-items: center; gap: var(--sp-3);
  z-index: 700;
  transition: transform 0.35s var(--ease-out);
}
.install-banner.is-visible { transform: translateX(-50%) translateY(0); }
.install-banner__icon { font-size: 28px; }
.install-banner__body { flex: 1; min-width: 0; }
.install-banner__title { font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.install-banner__sub { font-size: var(--fs-xs); color: var(--c-text-soft); margin-top: 2px; }
.install-banner__actions { display: flex; gap: 4px; align-items: center; }

/* ================================================================
   Home hero — added illustration
   ================================================================ */
.home-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  align-items: center;
}
@media (min-width: 768px) {
  .home-hero { grid-template-columns: 1fr auto; }
}
.home-hero__art {
  display: flex; justify-content: center;
  align-self: center;
  flex-shrink: 0;
  position: relative;
  margin-right: -8px;
}
.home-hero__art .sock-mascot {
  width: 150px; height: 150px;
  animation: sockBob 3.2s ease-in-out infinite;
  transform-origin: 50% 80%;
}
@media (max-width: 600px) {
  .home-hero__art { margin-right: -10px; }
  .home-hero__art .sock-mascot { width: 105px; height: 105px; }
}

/* Mascot animation — bob + gentle rotation */
@keyframes sockBob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-7px) rotate(3deg); }
}

/* Mascot eyes blink */
.sm-eyes {
  animation: blink 5s ease-in-out infinite;
  transform-origin: -3px 36px;
}
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95%, 97%      { transform: scaleY(0.1); }
}

/* Sparkles fade in/out at different times */
.sm-sp { animation: spTwinkle 2.4s ease-in-out infinite; transform-origin: center; }
.sm-sp--1 { animation-delay: 0s; }
.sm-sp--2 { animation-delay: 0.6s; }
.sm-sp--3 { animation-delay: 1.2s; }
.sm-sp--4 { animation-delay: 1.8s; }
@keyframes spTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.6); }
  50%      { opacity: 1;   transform: scale(1.3); }
}

/* Cute heart pop on body */
.sm-body > g[transform*="-12,-18"] {
  animation: heartPulse 2.4s ease-in-out infinite;
  transform-origin: -4px -8px;
}
@keyframes heartPulse {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; transform: translate(-12px, -18px) scale(1.08); }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-8px) rotate(2deg); }
}

/* ================================================================
   INFO PAGES (How it works / FAQ / About)
   ================================================================ */
.info-page { max-width: 760px; padding-top: var(--sp-6); padding-bottom: var(--sp-10); }
.info-page__title { font-size: var(--fs-2xl); font-weight: var(--fw-bold); margin-bottom: var(--sp-3); }
.info-page__lead  { font-size: var(--fs-md); color: var(--c-text-muted); line-height: 1.6; margin-bottom: var(--sp-6); }

.info-section { margin: var(--sp-7) 0; }
.info-section h2 { font-size: var(--fs-lg); font-weight: var(--fw-bold); margin-bottom: var(--sp-3); }
.info-section h3 { font-size: var(--fs-md); font-weight: var(--fw-semibold); margin: 0 0 var(--sp-1); }
.info-section p  { font-size: var(--fs-sm); color: var(--c-text-muted); line-height: 1.6; }

.info-section__head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.info-section__head h2 { margin: 0; }
.info-section__badge {
  display: inline-flex; padding: 4px 12px;
  background: var(--c-primary-soft); color: var(--c-primary-strong);
  border-radius: 999px; font-size: var(--fs-xs); font-weight: var(--fw-semibold);
}
.info-section__badge--alt { background: var(--c-accent-soft); color: var(--c-accent-strong); }

.info-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-4); }
.info-step { display: flex; gap: var(--sp-4); align-items: flex-start; }
.info-step__num {
  flex: 0 0 40px; width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-strong) 100%);
  color: var(--c-primary-strong);
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--fw-bold); font-size: var(--fs-md);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--c-primary-strong) 35%, transparent);
}
.info-step__body { flex: 1; }

.info-section--trust { background: var(--c-surface-2); padding: var(--sp-6); border-radius: var(--r-2xl); }
.info-trust-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); margin-top: var(--sp-4); }
@media (min-width: 600px) { .info-trust-grid { grid-template-columns: repeat(2, 1fr); } }
.info-trust-card {
  background: var(--c-surface);
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--c-border);
}
.info-trust-card__icon { display: block; font-size: 28px; margin-bottom: var(--sp-2); }
.info-trust-card h3 { font-size: var(--fs-sm); font-weight: var(--fw-bold); margin-bottom: 4px; }
.info-trust-card p { font-size: var(--fs-xs); color: var(--c-text-muted); line-height: 1.5; }

.info-cta {
  margin-top: var(--sp-8);
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
  background: linear-gradient(135deg, var(--c-primary-soft) 0%, var(--c-secondary-soft) 100%);
  border-radius: var(--r-2xl);
}
.info-cta h2 { font-size: var(--fs-xl); margin-bottom: var(--sp-4); }
.info-cta__buttons { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

.info-contact { display: grid; grid-template-columns: 1fr; gap: var(--sp-2); margin-top: var(--sp-4); }
@media (min-width: 600px) { .info-contact { grid-template-columns: repeat(3, 1fr); } }
.info-contact__item {
  display: flex; gap: var(--sp-3); align-items: center;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-surface);
  border-radius: var(--r-lg); border: 1.5px solid var(--c-border);
  text-decoration: none; color: var(--c-text);
  font-size: var(--fs-sm);
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.info-contact__item:hover { border-color: var(--c-primary-strong); transform: translateY(-2px); }

/* FAQ */
.faq-group { margin: var(--sp-6) 0; }
.faq-group__title { font-size: var(--fs-lg); font-weight: var(--fw-bold); margin-bottom: var(--sp-3); }
.faq-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.faq-item {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-fast);
}
.faq-item[open] { border-color: var(--c-primary); }
.faq-item__q {
  list-style: none;
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--c-text);
  position: relative;
  padding-right: var(--sp-7);
  user-select: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  content: '+';
  position: absolute; right: var(--sp-4); top: 50%;
  transform: translateY(-50%);
  font-size: 22px; font-weight: 300;
  color: var(--c-primary-strong);
  transition: transform var(--t-fast);
}
.faq-item[open] .faq-item__q::after { transform: translateY(-50%) rotate(45deg); }
.faq-item__a {
  padding: 0 var(--sp-4) var(--sp-4);
  font-size: var(--fs-sm); color: var(--c-text-muted); line-height: 1.6;
}
.faq-item__a a { color: var(--c-primary-strong); }

/* Admin user-row banned variant */
.admin-list-row--banned {
  background: color-mix(in srgb, var(--c-danger-bg) 60%, var(--c-surface));
  border-left: 3px solid var(--c-danger);
}
.admin-list-row--banned .user-row__avatar { opacity: 0.5; filter: grayscale(0.6); }

/* Admin tab count badge */
.admin-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--c-danger);
  color: white;
  font-size: 10px;
  font-weight: var(--fw-bold);
  vertical-align: middle;
}

/* ================================================================
   TICKETS KANBAN (admin)
   ================================================================ */
.tickets-toolbar {
  display: flex; gap: var(--sp-3); align-items: center;
  margin-bottom: var(--sp-4); flex-wrap: wrap;
}
.tickets-toolbar__filters {
  display: flex; gap: var(--sp-2); flex: 1; flex-wrap: wrap;
}
.tickets-toolbar__filters .form-input { flex: 2; min-width: 180px; }
.tickets-toolbar__filters .form-select { flex: 1; min-width: 140px; }

.tickets-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
}
@media (max-width: 900px) { .tickets-board { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tickets-board { grid-template-columns: 1fr; } }

.tk-col {
  background: var(--c-surface-2);
  border-radius: var(--r-lg);
  padding: var(--sp-3);
  min-height: 200px;
}
.tk-col__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-3);
}
.tk-col__label { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.tk-col__count {
  font-size: var(--fs-2xs);
  background: var(--c-surface);
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--c-text-soft);
  font-weight: var(--fw-bold);
}
.tk-col__body { display: flex; flex-direction: column; gap: var(--sp-2); }
.tk-col__empty {
  text-align: center; padding: var(--sp-4) var(--sp-2);
  color: var(--c-text-soft); font-size: var(--fs-xs);
}

.tk-card {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
  border-left-width: 4px;
}
.tk-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--c-primary); }
.tk-card--urgent { border-left-color: #DC2626; }
.tk-card--high   { border-left-color: #F59E0B; }
.tk-card--normal { border-left-color: #3B82F6; }
.tk-card--low    { border-left-color: #9CA3AF; }
.tk-card--overdue {
  background: color-mix(in srgb, var(--c-danger-bg) 50%, var(--c-surface));
  border-color: var(--c-danger);
}
.tk-card__head { display: flex; gap: 6px; align-items: flex-start; margin-bottom: 6px; }
.tk-card__prio { flex: 0 0 auto; font-size: 14px; line-height: 1.2; }
.tk-card__title { font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: 1.3; flex: 1; }
.tk-card__desc { font-size: var(--fs-xs); color: var(--c-text-soft); line-height: 1.4; margin: 0 0 var(--sp-2); }
.tk-card__meta { display: flex; gap: 4px; flex-wrap: wrap; font-size: var(--fs-2xs); }
.tk-card__due {
  background: var(--c-surface-2); color: var(--c-text-soft);
  padding: 2px 6px; border-radius: 6px;
}
.tk-card__due--overdue { background: var(--c-danger-bg); color: var(--c-danger); font-weight: var(--fw-semibold); }
.tk-card__tag {
  background: var(--c-primary-soft); color: var(--c-primary-strong);
  padding: 2px 6px; border-radius: 6px; font-weight: var(--fw-medium);
}

/* Plans admin grid */
.plans-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-3);
}
.plan-admin-card {
  position: relative;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.plan-admin-card:hover { border-color: var(--c-primary); transform: translateY(-2px); }
.plan-admin-card.is-popular { border-color: var(--c-primary-strong); box-shadow: 0 4px 14px color-mix(in srgb, var(--c-primary) 25%, transparent); }
.plan-admin-card.is-disabled { opacity: 0.6; background: var(--c-surface-2); }
.plan-admin-card__badge {
  position: absolute; top: -8px; left: var(--sp-3);
  background: var(--c-primary-strong); color: white;
  font-size: 10px; font-weight: var(--fw-bold);
  padding: 3px 8px; border-radius: 999px;
}
.plan-admin-card__off {
  position: absolute; top: -8px; right: var(--sp-3);
  background: var(--c-text-soft); color: white;
  font-size: 10px; font-weight: var(--fw-bold);
  padding: 3px 8px; border-radius: 999px;
}
.plans-admin-add {
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 2px dashed var(--c-border-strong);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  color: var(--c-text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
  min-height: 200px;
}
.plans-admin-add:hover { border-color: var(--c-primary-strong); color: var(--c-primary-strong); background: var(--c-primary-soft); }

/* ================================================================
   ADMIN MONEY STATS
   ================================================================ */
.period-toolbar {
  display: flex; gap: 4px; flex-wrap: wrap;
  background: var(--c-surface);
  padding: 4px;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
}
.period-btn {
  background: none; border: 0;
  padding: 6px 12px;
  font-size: var(--fs-xs); font-weight: var(--fw-medium);
  border-radius: var(--r-md);
  color: var(--c-text-soft);
  cursor: pointer;
  transition: all var(--t-fast);
}
.period-btn:hover { background: var(--c-surface-2); color: var(--c-text); }
.period-btn.is-active { background: var(--c-primary); color: var(--c-primary-strong); font-weight: var(--fw-semibold); }

.money-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.money-grid--snap {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: var(--sp-4);
}
.money-kpi {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  border-left-width: 4px;
}
.money-kpi--primary { border-left-color: var(--c-primary-strong); }
.money-kpi--success { border-left-color: var(--c-success); background: linear-gradient(135deg, var(--c-success-bg) 0%, var(--c-surface) 50%); }
.money-kpi--info    { border-left-color: var(--c-info); }
.money-kpi--warning { border-left-color: var(--c-warning); background: linear-gradient(135deg, var(--c-warning-bg) 0%, var(--c-surface) 50%); }
.money-kpi--cost    { border-left-color: var(--c-danger); }
.money-kpi__label { font-size: var(--fs-xs); color: var(--c-text-soft); font-weight: var(--fw-medium); }
.money-kpi__value { font-size: var(--fs-xl); font-weight: var(--fw-bold); color: var(--c-text); margin: 4px 0 2px; font-family: var(--font-display); letter-spacing: -0.01em; }
.money-kpi__sub   { font-size: 11px; color: var(--c-text-soft); }

.money-twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
@media (max-width: 700px) { .money-twocol { grid-template-columns: 1fr; } }

.status-bars { display: flex; flex-direction: column; gap: var(--sp-2); }
.status-bar__row { display: flex; justify-content: space-between; font-size: var(--fs-xs); margin-bottom: 4px; }
.status-bar__lbl { color: var(--c-text); font-weight: var(--fw-medium); text-transform: capitalize; }
.status-bar__val { color: var(--c-text-soft); font-variant-numeric: tabular-nums; }
.status-bar__track { height: 6px; background: var(--c-surface-2); border-radius: 3px; overflow: hidden; }
.status-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-primary-strong) 0%, var(--c-primary) 100%);
  border-radius: 3px;
  transition: width var(--t-slow) var(--ease-out);
}
.status-bar__fill--alt { background: linear-gradient(90deg, var(--c-info) 0%, color-mix(in srgb, var(--c-info) 60%, var(--c-primary)) 100%); }

.top-sellers-list { display: flex; flex-direction: column; gap: var(--sp-1); }
.top-seller {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  transition: background var(--t-fast);
}
.top-seller:hover { background: var(--c-surface-2); }
.top-seller__rank { font-weight: var(--fw-bold); color: var(--c-primary-strong); font-family: var(--font-display); }
.top-seller__name { color: var(--c-text); text-decoration: none; font-weight: var(--fw-semibold); }
.top-seller__name:hover { color: var(--c-primary-strong); }
.top-seller__count { font-size: var(--fs-xs); color: var(--c-text-soft); }
.top-seller__gmv { color: var(--c-text); font-variant-numeric: tabular-nums; }

/* ================================================================
   PROFILE COMPLETENESS GATE (forced fill modal)
   ================================================================ */
.profile-gate-overlay {
  position: fixed; inset: 0;
  background: rgba(42, 31, 26, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10001;
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-4);
  animation: walkthroughIn 0.3s var(--ease-out);
}
.profile-gate-overlay.is-closing { animation: walkthroughOut 0.22s var(--ease-out) forwards; }

.profile-gate-card {
  width: 100%; max-width: 480px;
  background: var(--c-surface);
  border-radius: var(--r-2xl);
  padding: var(--sp-6) var(--sp-5);
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  max-height: 90vh;
  overflow-y: auto;
}
.pg-back {
  position: absolute; top: var(--sp-3); left: var(--sp-3);
  width: 32px; height: 32px;
  border: 0; background: transparent;
  font-size: 18px; cursor: pointer;
  color: var(--c-text-soft);
  border-radius: 50%;
  transition: background var(--t-fast);
}
.pg-back:hover { background: var(--c-surface-2); color: var(--c-text); }
.pg-icon {
  display: flex; justify-content: center;
  color: var(--c-primary-strong);
  margin-bottom: var(--sp-3);
}
.pg-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  text-align: center;
  margin: 0 0 var(--sp-2);
}
.pg-body {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  text-align: center;
  margin: 0 0 var(--sp-4);
  line-height: 1.5;
}
.pg-err {
  background: var(--c-danger-bg);
  color: var(--c-danger);
  padding: 8px 12px;
  border-radius: var(--r-md);
  font-size: var(--fs-xs);
  margin-top: var(--sp-2);
}
.pg-actions { margin-top: var(--sp-4); }
.pg-progress {
  display: flex; gap: 6px; justify-content: center;
  margin-top: var(--sp-4);
}
.pg-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-border-strong);
  transition: all var(--t-fast) var(--ease-out);
}
.pg-dot.is-active { background: var(--c-primary-strong); width: 24px; border-radius: 4px; }

.pg-role-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
  margin: var(--sp-3) 0;
}
@media (min-width: 480px) {
  .pg-role-grid { grid-template-columns: repeat(3, 1fr); }
}
.pg-role {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  padding: var(--sp-4) var(--sp-3);
  border: 2px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
}
.pg-role:hover { border-color: var(--c-primary-strong); background: var(--c-primary-soft); transform: translateY(-2px); }
.pg-role.is-selected {
  border-color: var(--c-primary-strong);
  background: var(--c-primary-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 30%, transparent);
}
.pg-role__icon  {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  color: var(--c-primary-strong);
}
.pg-role__icon svg { width: 100%; height: 100%; }

/* ─────────────────────────────────────────────────────────────────
   Profile completion nudge — non-blocking bottom banner
   ───────────────────────────────────────────────────────────────── */
.profile-nudge {
  position: fixed;
  bottom: calc(var(--tabbar-h, 64px) + var(--sp-3));
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  width: calc(100% - var(--sp-4));
  max-width: 440px;
  background: linear-gradient(135deg, var(--c-primary-strong) 0%, #FF6BA3 100%);
  color: white;
  border-radius: var(--r-2xl);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: 0 12px 32px rgba(181, 0, 92, 0.35);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: var(--sp-3);
  align-items: center;
  z-index: 800;
  transition: transform 0.35s cubic-bezier(.34,1.3,.64,1);
}
.profile-nudge.is-visible { transform: translateX(-50%) translateY(0); }
@media (min-width: 768px) {
  .profile-nudge { bottom: var(--sp-4); }
}
.profile-nudge__icon { display: flex; align-items: center; justify-content: center; }
.profile-nudge__body { min-width: 0; }
.profile-nudge__title { font-size: var(--fs-sm); font-weight: var(--fw-bold); line-height: 1.2; }
.profile-nudge__sub   { font-size: 11px; opacity: 0.85; margin-top: 2px; line-height: 1.3; }
.profile-nudge__cta {
  background: white;
  color: var(--c-primary-strong);
  border: 0;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t-fast);
}
.profile-nudge__cta:hover { transform: scale(1.05); }
.profile-nudge__close {
  background: transparent; border: 0;
  color: white; opacity: 0.65;
  cursor: pointer;
  font-size: 20px;
  width: 28px; height: 28px;
  padding: 0;
  border-radius: 50%;
  transition: opacity var(--t-fast), background var(--t-fast);
}
.profile-nudge__close:hover { opacity: 1; background: rgba(255,255,255,0.15); }

/* Profile form 2-col row helper */
.acc-form-row {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.acc-form-row .acc-form-group { min-width: 140px; }
.pg-role__title { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--c-text); }
.pg-role__sub   { font-size: var(--fs-2xs); color: var(--c-text-soft); }

/* ================================================================
   Listing freshness badges + counter offer + chat photo + shipping
   ================================================================ */
.card-listing__top-badges {
  position: absolute; top: var(--sp-2); right: var(--sp-2);
  display: flex; flex-direction: column; gap: 4px;
  align-items: flex-end;
  z-index: 2;
}
.listing-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px; font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.listing-tag--new {
  background: rgba(220, 38, 38, 0.92);
  color: white;
  animation: tagPulse 2.2s ease-in-out infinite;
}
.listing-tag--hot {
  background: rgba(245, 158, 11, 0.92);
  color: white;
}
.listing-tag--drop {
  background: rgba(30, 127, 79, 0.94);
  color: white;
}
@keyframes tagPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(220,38,38,0); }
}

/* Counter-offer badge styling */
.offer-badge--countered { background: #FEF3C7; color: #92400E; }
.offer-badge--reserved {
  background: #FEF3C7; color: #92400E;
  animation: tagPulse 2.5s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(245,158,11,0.5);
}
.offer-card--counter { border-left: 4px solid var(--c-warning); }
.offer-card--reserved { background: linear-gradient(135deg, #FFFBEB 0%, var(--c-surface) 100%); }

/* Chat photo bubble */
.msg-bubble--photo .msg-bubble__photo {
  max-width: 240px;
  max-height: 320px;
  border-radius: var(--r-lg);
  display: block;
  object-fit: cover;
  cursor: zoom-in;
  border: 1.5px solid var(--c-border);
}

/* Shipping info box (in create wizard) */
.shipping-info-box {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-3) var(--sp-4);
  margin-top: var(--sp-3);
  background: var(--c-info-bg);
  border: 1.5px solid color-mix(in srgb, var(--c-info) 50%, var(--c-border));
  border-radius: var(--r-lg);
  font-size: var(--fs-xs);
  line-height: 1.5;
}
.shipping-info-box__icon { font-size: 20px; flex: 0 0 auto; }
.shipping-info-box__body { color: var(--c-text); }
.shipping-info-box__body strong { color: var(--c-info); }

/* Fast-reply badge on profile */
.fast-reply-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  background: var(--c-success-bg);
  color: var(--c-success);
  font-size: 10px; font-weight: var(--fw-bold);
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c-success) 40%, var(--c-border));
}

/* ================================================================
   UI POLISH — skeletons · empty states · micro-interactions
   ================================================================ */

/* ── Skeleton loaders ── */
.skel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--sp-3);
}
.skel-card { display: flex; flex-direction: column; gap: 8px; }
.skel-card__img { width: 100%; aspect-ratio: 1; border-radius: var(--r-lg); }
.skel-line { height: 12px; border-radius: var(--r-sm); }
.skel-line--title { height: 13px; width: 85%; }
.skel-line--price { height: 15px; width: 45%; }
.skel-line--sub   { height: 10px; width: 100%; }
.skel-list { display: flex; flex-direction: column; gap: 2px; }
.skel-row {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
}
.skel-row__avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.skel-row__lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.skel-detail { display: flex; flex-direction: column; gap: var(--sp-4); }
.skel-detail__img { width: 100%; aspect-ratio: 1; border-radius: var(--r-xl); max-width: 460px; }
.skel-detail__info { display: flex; flex-direction: column; gap: var(--sp-3); }
.skel-detail__cta { height: 48px; border-radius: var(--r-full); width: 100%; margin-top: var(--sp-2); }
@media (min-width: 720px) {
  .skel-detail { flex-direction: row; align-items: flex-start; }
  .skel-detail__img  { flex: 1; }
  .skel-detail__info { flex: 1; }
}

/* ── Empty states v2 ── */
.empty-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: var(--sp-8) var(--sp-4);
  animation: emptyV2In .4s ease both;
}
.empty-v2__art {
  width: 96px; height: 96px;
  display: grid; place-items: center;
  color: var(--c-primary-strong);
  margin-bottom: var(--sp-2);
}
.empty-v2__art svg { width: 100%; height: 100%; }
.empty-v2__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--c-text);
}
.empty-v2__sub {
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  max-width: 34ch;
  line-height: 1.5;
}
.empty-v2__cta { margin-top: var(--sp-3); }
@keyframes emptyV2In {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Image fade-in (blur-up) ── */
img.fade-img {
  opacity: 0;
  filter: blur(8px);
  transition: opacity .45s ease, filter .45s ease;
}
img.fade-img.is-loaded {
  opacity: 1;
  filter: blur(0);
}

/* ── Favorite heart pop ── */
@keyframes heartPop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.4); }
  60%  { transform: scale(0.85); }
  100% { transform: scale(1); }
}
.fav-pop { animation: heartPop .42s cubic-bezier(.34,1.6,.64,1); }

/* ── Page transition (route change) ── */
.app-main.page-enter {
  animation: pageEnter .32s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-error__art {
  width: 84px; height: 84px;
  margin: 0 auto var(--sp-2);
  color: var(--c-primary-strong);
}
.page-error__art svg { width: 100%; height: 100%; }

/* ── Invite / promo panel v2 ── */
.inv2-hero {
  position: relative;
  text-align: center;
  padding: var(--sp-6) var(--sp-4) var(--sp-5);
  border-radius: var(--r-2xl);
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--c-primary-soft) 90%, transparent) 0%,
    color-mix(in srgb, #FFE7CF 70%, transparent) 100%);
  border: 1.5px solid color-mix(in srgb, var(--c-primary) 30%, transparent);
  overflow: hidden;
}
.inv2-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb,var(--c-primary) 22%,transparent), transparent 70%);
  pointer-events: none;
}
.inv2-hero__art {
  width: 72px; height: 72px;
  margin: 0 auto var(--sp-2);
  color: var(--c-primary-strong);
  animation: inv2Float 3.6s ease-in-out infinite;
}
.inv2-hero__art svg { width: 100%; height: 100%; }
@keyframes inv2Float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-7px) rotate(3deg); }
}
.inv2-hero__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--c-text);
}
.inv2-hero__sub {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  max-width: 36ch;
  margin: 4px auto var(--sp-4);
  line-height: 1.5;
}
.inv2-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: var(--c-surface);
  border: 1.5px dashed var(--c-primary);
  border-radius: var(--r-xl);
  padding: var(--sp-3) var(--sp-5);
  width: fit-content;
  margin: 0 auto var(--sp-3);
}
.inv2-code__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-text-soft);
  font-weight: var(--fw-semibold);
}
.inv2-code__val {
  font-family: var(--font-mono, monospace);
  font-size: 1.7rem;
  font-weight: var(--fw-bold);
  letter-spacing: .18em;
  color: var(--c-primary-strong);
}
.inv2-actions {
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
}
.inv2-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.inv2-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-top: var(--sp-4);
  padding: 5px 14px;
  background: var(--c-surface);
  border-radius: var(--r-full);
  border: 1px solid var(--c-border);
}
.inv2-stat__num { font-size: var(--fs-base); font-weight: var(--fw-bold); color: var(--c-primary-strong); }
.inv2-stat__lbl { font-size: var(--fs-xs); color: var(--c-text-soft); }

.inv2-apply {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
  padding: var(--sp-4);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-xl);
  background: var(--c-surface);
}
.inv2-apply__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
}
.inv2-apply__icon svg { width: 24px; height: 24px; }
.inv2-apply__icon--ticket { background: var(--c-primary-soft); color: var(--c-primary-strong); }
.inv2-apply__icon--promo  { background: #FFEDD2; color: #B9751A; }
.inv2-apply__body { flex: 1; min-width: 0; }
.inv2-apply__title { font-size: var(--fs-base); font-weight: var(--fw-bold); }
.inv2-apply__sub {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  margin: 3px 0 0;
  line-height: 1.5;
}
.inv2-input-row {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}
.inv2-input-row .form-input { flex: 1; }
.inv2-applied { color: var(--c-success); font-size: var(--fs-sm); margin-top: 4px; }
.inv2-used {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  margin-top: var(--sp-2);
}
.inv2-used code {
  background: var(--c-surface-2);
  padding: 1px 6px;
  border-radius: var(--r-sm);
}

/* ── Limit-reached modal ── */
.limit-modal { display: flex; flex-direction: column; gap: var(--sp-3); text-align: center; }
.limit-modal__art {
  width: 60px; height: 60px;
  margin: 0 auto;
  color: var(--c-primary-strong);
}
.limit-modal__art svg { width: 100%; height: 100%; }
.limit-modal__msg  { font-size: var(--fs-sm); color: var(--c-text); margin: 0; }
.limit-modal__next { font-size: var(--fs-sm); color: var(--c-text-muted); margin: 0; }
.limit-invite {
  margin-top: var(--sp-2);
  padding: var(--sp-3);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--c-primary-soft) 0%, color-mix(in srgb,#FFE7CF 60%,transparent) 100%);
  border: 1px solid color-mix(in srgb, var(--c-primary) 25%, transparent);
}
.limit-invite__head {
  display: flex; align-items: center; gap: 8px;
  justify-content: center;
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  line-height: 1.45;
}
.limit-invite__head svg { flex-shrink: 0; color: var(--c-primary-strong); }
.limit-invite__code {
  display: flex; align-items: center; gap: var(--sp-2);
  justify-content: center;
  margin-top: var(--sp-2);
}
.limit-invite__code code {
  font-family: var(--font-mono, monospace);
  font-size: 1.1rem;
  font-weight: var(--fw-bold);
  letter-spacing: .12em;
  color: var(--c-primary-strong);
  background: var(--c-surface);
  padding: 4px 12px;
  border-radius: var(--r-md);
  border: 1px dashed var(--c-primary);
}

/* ── Seller stats modal ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: var(--sp-4) var(--sp-2);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--c-border);
  background: var(--c-surface);
  animation: statCardIn .4s cubic-bezier(.34,1.3,.64,1) both;
}
.stats-grid .stat-card:nth-child(2) { animation-delay: .05s; }
.stats-grid .stat-card:nth-child(3) { animation-delay: .10s; }
.stats-grid .stat-card:nth-child(4) { animation-delay: .15s; }
.stats-grid .stat-card:nth-child(5) { animation-delay: .20s; }
.stats-grid .stat-card:nth-child(6) { animation-delay: .25s; }
@keyframes statCardIn {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.stat-card__icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  margin-bottom: 2px;
}
.stat-card__icon svg { width: 20px; height: 20px; }
.stat-card__val {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  line-height: 1.1;
}
.stat-card__lbl {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  line-height: 1.35;
}
.stat-card--pink   .stat-card__icon { background: var(--c-primary-soft); color: var(--c-primary-strong); }
.stat-card--indigo .stat-card__icon { background: #E8EAFF; color: #5B5BD6; }
.stat-card--rose   .stat-card__icon { background: #FCE2EC; color: #D6457E; }
.stat-card--green  .stat-card__icon { background: #DEF4E9; color: #1F8F63; }
.stat-card--amber  .stat-card__icon { background: #FFEDD2; color: #B9751A; }
.stat-card--gold   .stat-card__icon { background: #FFF1C9; color: #C79A12; }
.stats-note {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  text-align: center;
  margin: var(--sp-4) 0 0;
}
/* ── Discount code in upgrade modal ── */
.upgrade-disc {
  display: flex;
  gap: var(--sp-2);
}
.upgrade-disc .form-input { flex: 1; }
.upgrade-disc__msg {
  font-size: var(--fs-xs);
  margin: 6px 0 0;
  text-align: center;
}
.upgrade-disc__msg.is-ok  { color: var(--c-success, #1F8F63); }
.upgrade-disc__msg.is-err { color: var(--c-danger, #D2433D); }
.upgrade-modal__price-orig {
  text-decoration: line-through;
  color: var(--c-text-soft);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  margin-right: 6px;
}

/* Stats+ per-listing button — premium accent */
.btn.acc-statsplus-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--c-primary-strong);
  border-color: color-mix(in srgb, var(--c-primary) 35%, transparent);
  background: color-mix(in srgb, var(--c-primary-soft) 45%, transparent);
}
.btn.acc-statsplus-btn:hover {
  background: var(--c-primary-soft);
}

/* ── Seller "sold" strip on My Listings ── */
.acc-listing-card--sold {
  border-color: color-mix(in srgb, var(--c-success, #1F8F63) 45%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-success, #1F8F63) 12%, transparent);
}
.sale-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin: var(--sp-2) 0;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  background: linear-gradient(135deg,
    color-mix(in srgb, #DEF4E9 80%, transparent) 0%,
    color-mix(in srgb, var(--c-primary-soft) 50%, transparent) 100%);
  border: 1px solid color-mix(in srgb, var(--c-success, #1F8F63) 30%, transparent);
}
.sale-strip__info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sale-strip__buyer  { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--c-text); }
.sale-strip__status { font-size: 11px; color: var(--c-text-soft); }
.sale-strip__btn { flex-shrink: 0; }

/* ── Seller order-fulfillment modal ── */
.ford { display: flex; flex-direction: column; gap: var(--sp-3); }
.ford-head { display: flex; align-items: center; gap: var(--sp-3); }
.ford-head__img {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  object-fit: cover;
  flex-shrink: 0;
}
.ford-head__title { font-weight: var(--fw-bold); font-size: var(--fs-sm); }
.ford-head__meta  { font-size: var(--fs-xs); color: var(--c-text-soft); margin-top: 2px; }
.ford-banner {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  line-height: 1.5;
  background: var(--c-surface-2);
  border-radius: var(--r-md);
  padding: var(--sp-3);
}
.ford-track { display: flex; flex-direction: column; }
.ford-step {
  position: relative;
  display: flex;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
}
.ford-step:last-child { padding-bottom: 0; }
.ford-step::before {
  content: '';
  position: absolute;
  left: 13px; top: 28px; bottom: 0;
  width: 2px;
  background: var(--c-border);
}
.ford-step:last-child::before { display: none; }
.ford-step.is-done::before { background: var(--c-success, #1F8F63); }
.ford-step__dot {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  background: var(--c-surface-2);
  color: var(--c-text-soft);
  border: 2px solid var(--c-border);
  z-index: 1;
}
.ford-step.is-done .ford-step__dot {
  background: var(--c-success, #1F8F63); color: #fff; border-color: var(--c-success, #1F8F63);
}
.ford-step.is-active .ford-step__dot {
  background: var(--c-primary-strong); color: #fff; border-color: var(--c-primary-strong);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primary) 20%, transparent);
}
.ford-step__main { flex: 1; min-width: 0; padding-top: 3px; }
.ford-step__label { display: block; font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.ford-step.is-active .ford-step__label { color: var(--c-primary-strong); }
.ford-step.is-done .ford-step__label  { color: var(--c-text-soft); }
.ford-step__detail {
  display: block;
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  line-height: 1.5;
  margin-top: 4px;
}
.ford-hist {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-2);
}
.ford-hist summary { cursor: pointer; font-weight: var(--fw-semibold); }
.ford-hist__row { padding: 3px 0 3px var(--sp-3); }
.ford-note {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

/* ── Verification 3-step wizard ── */
.vw-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: var(--sp-4) 0;
}
.vw-step { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.vw-step__dot {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  background: var(--c-surface-2);
  color: var(--c-text-soft);
  border: 1.5px solid var(--c-border);
  transition: all .25s ease;
}
.vw-step__label { font-size: 10px; color: var(--c-text-soft); font-weight: var(--fw-semibold); }
.vw-step.is-active .vw-step__dot {
  background: var(--c-primary-strong); color: #fff; border-color: var(--c-primary-strong);
  transform: scale(1.1);
}
.vw-step.is-active .vw-step__label { color: var(--c-primary-strong); }
.vw-step.is-done .vw-step__dot {
  background: var(--c-success, #1F8F63); color: #fff; border-color: var(--c-success, #1F8F63);
}
.vw-step__line {
  flex: 0 0 32px;
  height: 2px;
  background: var(--c-border);
  margin-bottom: 16px;
}
.vw-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  margin: var(--sp-3) 0 4px;
}
.vw-desc {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  line-height: 1.5;
  margin: 0 0 var(--sp-3);
}
.vw-nav {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.vw-review { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vw-review__icon {
  width: 64px; height: 64px;
  color: var(--c-primary-strong);
  margin-bottom: var(--sp-2);
}
.vw-review__icon svg { width: 100%; height: 100%; }
.vw-notice {
  background: linear-gradient(135deg, var(--c-primary-soft) 0%, color-mix(in srgb,#FFE7CF 60%,transparent) 100%);
  border: 1px solid color-mix(in srgb, var(--c-primary) 28%, transparent);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  line-height: 1.5;
  margin: var(--sp-3) 0;
}

@media (prefers-reduced-motion: reduce) {
  .app-main.page-enter { animation: none; }
  img.fade-img { transition: opacity .2s ease; filter: none; }
}

/* ── Button loading visualizer (utils/btn-loading.js) ─────────────────────── */
@keyframes btnSpin { to { transform: rotate(360deg); } }
.btn-spin {
  flex: none;
  animation: btnSpin .65s linear infinite;
}
.btn--busy {
  /* `flex` (not inline-flex) + no !important — keeps a flex:1 / block button at
     its own width. Width is JS-locked at click time, so cycling text never
     reflows the page. overflow:hidden clips an over-long message gracefully. */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  cursor: progress;
  overflow: hidden;
}
.btn-busy-txt {
  font-size: inherit;
  font-weight: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: btnTxtIn .3s ease;
}
@keyframes btnTxtIn { from { opacity: 0; } to { opacity: 1; } }

/* Snappier instant press feedback — fires on :active before any JS runs */
.btn:active:not(:disabled) { transform: scale(.97); }
.btn { transition: transform .06s ease, background-color .12s ease, box-shadow .12s ease; }

@media (prefers-reduced-motion: reduce) {
  .btn-spin { animation-duration: 1.2s; }
  .btn:active:not(:disabled) { transform: none; }
}

/* ── Order timeline SVG icons ─────────────────────────────────────────────── */
.order-timeline__dot svg { display: block; }
/* Active step icon gently breathes to draw the eye */
.order-timeline__item--active .order-timeline__dot svg {
  animation: stepBreathe 1.9s ease-in-out infinite;
}
@keyframes stepBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.16); }
}
/* Pack & send card box icon — eager little wiggle */
.pack-card__badge { display: inline-flex; align-items: center; gap: 8px; }
.pack-card__box { animation: boxWiggle 2.4s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes boxWiggle {
  0%, 88%, 100% { transform: rotate(0deg); }
  91% { transform: rotate(-9deg); }
  94% { transform: rotate(7deg); }
  97% { transform: rotate(-4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .order-timeline__item--active .order-timeline__dot svg,
  .pack-card__box { animation: none; }
}

/* ── Sock mascot placeholder (utils/icons.js SOCK_SVG) ────────────────────── */
.sock-art {
  width: 34%; height: 34%; max-width: 96px; min-width: 40px;
  color: var(--c-primary); opacity: .42;
}
.empty-state__icon .sock-art { width: 60px; height: 60px; opacity: .55; }
.checkout-summary__placeholder .sock-art,
.order-listing__photo--placeholder .sock-art { width: 46%; height: 46%; }

/* Notification list — SVG icons */
.notif-item__icon svg { width: 20px; height: 20px; display: block; }

/* ── Account panels — swipe / tab transition ──────────────────────────────── */
.acc-panel--in-right { animation: accPanelInR .26s cubic-bezier(.4, 0, .2, 1); }
.acc-panel--in-left  { animation: accPanelInL .26s cubic-bezier(.4, 0, .2, 1); }
@keyframes accPanelInR {
  from { opacity: 0; transform: translateX(34px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes accPanelInL {
  from { opacity: 0; transform: translateX(-34px); }
  to   { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .acc-panel--in-right, .acc-panel--in-left { animation: none; }
}

/* ── Chat empty state — floating speech bubble ────────────────────────────── */
.chat-empty__icon--art { color: var(--c-primary); }
.chat-empty__icon--art svg {
  width: 88px; height: 88px;
  animation: chatFloat 3.2s ease-in-out infinite;
}
@keyframes chatFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-8px) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-empty__icon--art svg { animation: none; }
}

/* ── Boot splash — animated, fades out when the app is ready ──────────────── */
.page-loading {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  background:
    radial-gradient(60% 50% at 50% 38%, color-mix(in srgb, var(--c-primary) 16%, transparent), transparent 70%),
    var(--c-bg, #FFF7FB);
  transition: opacity .45s ease, visibility .45s ease;
}
.page-loading--out { opacity: 0; visibility: hidden; pointer-events: none; }

.page-loading__art {
  width: 78px; height: 78px;
  display: flex; align-items: center; justify-content: center;
}
.page-loading__sock {
  width: 64px; height: 64px;
  color: var(--c-primary);
  filter: drop-shadow(0 8px 16px color-mix(in srgb, var(--c-primary) 38%, transparent));
  animation: splashBob 1.5s ease-in-out infinite;
}
@keyframes splashBob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-12px) rotate(5deg); }
}
.page-loading__logo {
  font-family: var(--ff-display, 'Raleway', sans-serif);
  font-weight: 700; font-size: 30px; letter-spacing: .02em;
  background: linear-gradient(100deg,
    var(--c-primary-strong, #FF6BA3) 0%,
    var(--c-primary, #FFB3D1) 40%,
    #fff 50%,
    var(--c-primary, #FFB3D1) 60%,
    var(--c-primary-strong, #FF6BA3) 100%);
  background-size: 280% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: splashShimmer 2.4s linear infinite;
}
@keyframes splashShimmer {
  from { background-position: 140% 0; }
  to   { background-position: -140% 0; }
}
.page-loading__bar {
  width: 148px; height: 4px; border-radius: 999px;
  background: color-mix(in srgb, var(--c-primary) 22%, transparent);
  overflow: hidden;
}
.page-loading__bar span {
  display: block; height: 100%; width: 42%; border-radius: 999px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-strong, #FF6BA3));
  animation: splashBar 1.15s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes splashBar {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(360%); }
}
@media (prefers-reduced-motion: reduce) {
  .page-loading__sock { animation: none; }
  .page-loading__logo { animation: none; color: var(--c-primary-strong, #FF6BA3); -webkit-text-fill-color: currentColor; }
  .page-loading__bar span { animation: splashBarRM 1.2s ease-in-out infinite alternate; }
}
@keyframes splashBarRM { from { opacity: .4; } to { opacity: 1; } }

/* ── Header Add button — hidden on mobile (tabbar already has "+ Adaugă") ─── */
@media (max-width: 767px) {
  .header-add-btn { display: none !important; }
}

/* ── Strict square listing thumbnails — no stretch, no cut-off ────────────── */
.card-listing__thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background: var(--c-surface-2);
}
.card-listing__thumb > img,
.card-listing__thumb .fade-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ── Offer-commitment gate modal ──────────────────────────────────────────── */
.offer-gate { display: flex; flex-direction: column; gap: var(--sp-2); }
.offer-gate__item {
  display: flex; gap: var(--sp-3); align-items: center;
  padding: var(--sp-2) var(--sp-3);
  background: var(--c-surface-2); border-radius: var(--r-lg);
}
.offer-gate__photo {
  width: 56px; height: 56px; flex: none;
  border-radius: var(--r-md); object-fit: cover;
}
.offer-gate__photo--ph { display: flex; align-items: center; justify-content: center; }
.offer-gate__photo--ph .sock-art { width: 30px; height: 30px; }
.offer-gate__title {
  font-weight: var(--fw-semibold); font-size: var(--fs-sm);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.offer-gate__listprice { font-size: var(--fs-xs); color: var(--c-text-soft); }
.offer-gate__hint { font-size: var(--fs-xs); color: var(--c-text-soft); margin: -2px 0 4px; }
.offer-gate__ship { display: flex; flex-direction: column; gap: 6px; }
.og-ship {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border: 1.5px solid var(--c-border);
  border-radius: var(--r-md); cursor: pointer; font-size: var(--fs-sm);
  transition: border-color .12s ease, background-color .12s ease;
}
.og-ship:has(input:checked) {
  border-color: var(--c-primary); background: var(--c-primary-soft);
}
.og-ship input { accent-color: var(--c-primary); flex: none; }
.og-ship__ic { display: inline-flex; color: var(--c-text-soft); }
.offer-gate__addr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.offer-gate__addr-wide { grid-column: 1 / -1; }
.offer-gate__agree {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: var(--fs-xs); line-height: 1.5; color: var(--c-text);
  background: var(--c-primary-soft); padding: 10px 12px;
  border-radius: var(--r-md); margin-top: var(--sp-2); cursor: pointer;
}
.offer-gate__agree input {
  margin-top: 1px; flex: none; width: 17px; height: 17px;
  accent-color: var(--c-primary);
}

/* ══ Account hub — profile card + menu (Vinted-style) ════════════════════════ */
.acc-hub, .acc-sub {
  max-width: 620px;
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-8);
}

/* Profile summary card */
.acc-hero {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl, 22px);
  padding: var(--sp-5) var(--sp-4);
  box-shadow: 0 8px 26px -14px rgba(181,0,92,0.22);
}
.acc-hero__top {
  display: flex; align-items: center; gap: var(--sp-4);
}
.acc-hero__id { min-width: 0; flex: 1; }
.acc-hero__name {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-size: var(--fs-lg, 1.25rem); font-weight: var(--fw-bold);
  color: var(--c-text); line-height: 1.2;
}
.acc-hero__verified { display: inline-flex; color: var(--c-primary-strong, #FF6BA3); flex: none; }
.acc-hero__handle {
  font-size: var(--fs-sm); color: var(--c-text-soft); margin-top: 2px;
}
.acc-hero .acc-tier-badge { margin-top: 8px; }
.acc-hero__stats {
  display: flex; margin: var(--sp-4) 0 var(--sp-3);
  border: 1px solid var(--c-border); border-radius: var(--r-lg, 16px);
  overflow: hidden;
}
.acc-hero__stats .acc-stat {
  flex: 1; text-align: center;
  padding: var(--sp-3) var(--sp-1);
}
.acc-hero__stats .acc-stat + .acc-stat { border-left: 1px solid var(--c-border); }
.acc-hero__stats .acc-stat__val {
  display: block; font-family: var(--font-display);
  font-size: var(--fs-lg, 1.25rem); font-weight: var(--fw-bold); color: var(--c-text);
}
.acc-hero__stats .acc-stat__lbl {
  display: block; font-size: 11px; color: var(--c-text-soft); margin-top: 2px;
}

/* Menu */
.acc-menu { margin-top: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-4); }
.acc-menu-group__title {
  font-size: 11px; font-weight: var(--fw-bold);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-text-soft); margin: 0 0 6px var(--sp-2);
}
.acc-menu-group__rows {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg, 16px);
  overflow: hidden;
}
.acc-menu-row {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 14px var(--sp-3);
  color: var(--c-text); text-decoration: none;
  transition: background-color .12s ease;
}
.acc-menu-row + .acc-menu-row { border-top: 1px solid var(--c-border); }
.acc-menu-row:active { background: var(--c-primary-soft); }
@media (hover: hover) { .acc-menu-row:hover { background: var(--c-bg, #FFF7FB); } }
.acc-menu-row__ic {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-primary-soft); color: var(--c-primary-strong, #FF6BA3);
}
.acc-menu-row__ic svg { width: 19px; height: 19px; }
.acc-menu-row__lbl { flex: 1; font-size: var(--fs-md); font-weight: var(--fw-medium); }
.acc-menu-row__badge {
  flex: none; min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-primary); color: #fff;
  font-size: 11px; font-weight: var(--fw-bold); border-radius: 999px;
}
.acc-menu-row__chev { flex: none; color: var(--c-text-soft); }

/* Sign out */
.acc-signout {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: var(--sp-5);
  padding: 13px; border: 1px solid var(--c-border);
  border-radius: var(--r-lg, 16px); background: var(--c-surface);
  color: var(--c-danger, #D6336C); font-weight: var(--fw-semibold);
  font-size: var(--fs-sm); cursor: pointer;
  transition: background-color .12s ease;
}
.acc-signout:active { background: #FEF2F2; }

/* Sub-page shell */
.acc-sub__head {
  display: flex; align-items: center; gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.acc-sub__back {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-surface); border: 1px solid var(--c-border);
  color: var(--c-text); cursor: pointer;
  transition: background-color .12s ease;
}
.acc-sub__back:active { background: var(--c-primary-soft); }
.acc-sub__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl); font-weight: var(--fw-bold);
  color: var(--c-text); margin: 0;
}

/* ── Admin growth-settings cards + toggle switch ──────────────────────────── */
.cfg-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg, 16px); padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-2);
}
.cfg-card__head { display: flex; align-items: center; gap: var(--sp-3); cursor: pointer; }
.cfg-card__text { flex: 1; min-width: 0; }
.cfg-card__title { font-weight: var(--fw-semibold); font-size: var(--fs-sm); color: var(--c-text); }
.cfg-card__sub { font-size: var(--fs-xs); color: var(--c-text-soft); margin-top: 2px; line-height: 1.4; }
.cfg-toggle { flex: none; position: relative; display: inline-block; width: 44px; height: 26px; }
.cfg-toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cfg-toggle__track {
  display: block; width: 44px; height: 26px; border-radius: 999px;
  background: var(--c-border); transition: background-color .15s ease;
}
.cfg-toggle__track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s ease;
}
.cfg-toggle input:checked ~ .cfg-toggle__track { background: var(--c-primary); }
.cfg-toggle input:checked ~ .cfg-toggle__track::after { transform: translateX(18px); }
.cfg-sub-field {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3); margin-top: var(--sp-3); padding-top: var(--sp-3);
  border-top: 1px dashed var(--c-border);
  font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--c-text);
}
.cfg-sub-input { display: inline-flex; align-items: center; gap: 4px; color: var(--c-text-soft); }
.cfg-sub-input input {
  width: 84px; padding: 6px 10px; text-align: right;
  border: 1.5px solid var(--c-border); border-radius: var(--r-sm, 8px);
  font-size: var(--fs-sm); font-family: var(--ff-mono, monospace);
  background: var(--c-bg, #fff); color: var(--c-text);
}

/* ── Checkout — premium order summary (confirm step) ─────────────────────── */
.checkout-wrap { padding-bottom: var(--sp-8); }

.osum { display: flex; flex-direction: column; gap: var(--sp-3); }

/* Product recap */
.osum__product {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--c-surface-2); border-radius: var(--r-lg, 16px);
}
.osum__photo {
  width: 62px; height: 62px; flex: none; border-radius: var(--r-md, 12px);
  overflow: hidden; background: var(--c-surface);
  display: flex; align-items: center; justify-content: center;
}
.osum__photo img { width: 100%; height: 100%; object-fit: cover; }
.osum__photo .sock-art { width: 30px; height: 30px; }
.osum__product-info { flex: 1; min-width: 0; }
.osum__product-title {
  font-weight: var(--fw-semibold); font-size: var(--fs-sm); color: var(--c-text);
  line-height: 1.35;
}
.osum__product-seller { font-size: var(--fs-xs); color: var(--c-text-soft); margin-top: 3px; }
.osum__product-price {
  flex: none; font-weight: var(--fw-bold); font-size: var(--fs-md); color: var(--c-text);
}

/* Delivery / payment details */
.osum__section {
  border: 1px solid var(--c-border); border-radius: var(--r-lg, 16px);
  overflow: hidden;
}
.osum-line { display: flex; gap: var(--sp-3); padding: 12px var(--sp-3); font-size: var(--fs-sm); }
.osum-line + .osum-line { border-top: 1px solid var(--c-border); }
.osum-line__k { flex: 0 0 80px; color: var(--c-text-soft); }
.osum-line__v { flex: 1; color: var(--c-text); text-align: right; line-height: 1.5; }

/* Price breakdown */
.osum__price {
  background: var(--c-surface-2); border-radius: var(--r-lg, 16px);
  padding: var(--sp-3) var(--sp-4);
}
.osum-price {
  display: flex; justify-content: space-between;
  font-size: var(--fs-sm); color: var(--c-text-soft); padding: 5px 0;
}
.osum-price--total {
  margin-top: 4px; padding-top: var(--sp-3);
  border-top: 1.5px solid var(--c-border);
  font-size: var(--fs-lg, 1.15rem); font-weight: var(--fw-bold); color: var(--c-text);
}
.osum-price--total span:last-child { color: var(--c-primary-strong, #FF6BA3); }

/* Actions — full-width primary, never clipped by the tabbar */
.osum__actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-2); }
.osum__submit { flex: 1; }
.osum__safe {
  text-align: center; font-size: var(--fs-xs);
  color: var(--c-text-soft); margin: var(--sp-2) 0 var(--sp-2);
}

/* ── Wear-time slider (create wizard) ─────────────────────────────────────── */
.wear-slider { padding-top: 4px; }
.wear-slider__val {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  color: var(--c-primary-strong, #FF6BA3);
  background: var(--c-primary-soft);
  padding: 3px 12px; border-radius: 999px;
  margin-bottom: 10px;
  transition: transform .12s ease;
}
.wear-slider__range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-strong, #FF6BA3));
  outline: none; cursor: pointer;
}
.wear-slider__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 3px solid var(--c-primary-strong, #FF6BA3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
  cursor: grab; transition: transform .12s ease;
}
.wear-slider__range::-webkit-slider-thumb:active { transform: scale(1.18); cursor: grabbing; }
.wear-slider__range::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 3px solid var(--c-primary-strong, #FF6BA3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22); cursor: grab;
}
.wear-slider__ends {
  display: flex; justify-content: space-between;
  margin-top: 7px;
  font-size: var(--fs-xs); color: var(--c-text-soft);
}

/* ── Animated wizard step progress ────────────────────────────────────────── */
.wizard-step-dot.is-active {
  animation: wizDotPulse 1.8s ease-in-out infinite;
}
@keyframes wizDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-primary) 55%, transparent); }
  60%      { box-shadow: 0 0 0 9px transparent; }
}
.wizard-step-dot.is-done,
.wizard-step-dot.is-active { transition: background-color .35s ease, color .35s ease; }
@media (prefers-reduced-motion: reduce) {
  .wizard-step-dot.is-active { animation: none; }
}

/* ── Buyer orders — /cont/comenzi (AliExpress/Vinted-style tracking) ───────── */
.bord-list { display: flex; flex-direction: column; gap: var(--sp-3); }

.bord-hero {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--r-lg, 16px);
  background: var(--c-primary-soft); color: var(--c-primary-strong);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
}
.bord-hero__ic { font-size: 1.2rem; }
.bord-hero strong { font-weight: var(--fw-bold); }

.bord-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px; border: 1px solid var(--c-border);
  border-radius: var(--r-xl, 20px); background: var(--c-surface);
  text-decoration: none; color: inherit;
  transition: box-shadow .14s ease, transform .14s ease, border-color .14s ease;
}
.bord-card:hover { box-shadow: var(--sh-md, 0 6px 22px rgba(0,0,0,.08)); transform: translateY(-2px); border-color: var(--c-primary); }
.bord-card:active { transform: translateY(0); }
.bord-card--cancelled { opacity: .72; }

.bord-card__head { display: flex; align-items: flex-start; gap: 12px; }
.bord-card__thumb {
  flex: none; width: 60px; height: 60px; border-radius: var(--r-md, 12px);
  overflow: hidden; background: var(--c-bg-soft, #F6F4F2);
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
}
.bord-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.bord-card__id { flex: 1; min-width: 0; }
.bord-card__title {
  font-weight: var(--fw-semibold); font-size: var(--fs-sm); color: var(--c-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bord-card__meta { font-size: var(--fs-xs); color: var(--c-text-soft); margin-top: 2px; }
.bord-card__price { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--c-primary-strong); margin-top: 3px; }

.bord-pill {
  flex: none; align-self: flex-start;
  padding: 4px 10px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: var(--fw-bold); white-space: nowrap;
}
.bord-pill--wait { background: #FFF4E0; color: #B7791F; }
.bord-pill--go   { background: var(--c-primary-soft); color: var(--c-primary-strong); }
.bord-pill--done { background: #E3F6EC; color: #1E7F4F; }
.bord-pill--bad  { background: #FDE8EF; color: var(--c-danger, #D6336C); }

/* Progress track */
.bord-track { padding: 0 2px; }
.bord-track__bar {
  position: relative; height: 4px; border-radius: 999px;
  background: var(--c-border); margin: 0 8px 8px;
}
.bord-track__fill {
  position: absolute; inset: 0 auto 0 0; height: 100%;
  border-radius: 999px; background: linear-gradient(90deg, var(--c-primary), var(--c-primary-strong));
  transition: width .5s cubic-bezier(.4,0,.2,1);
}
.bord-track__steps { display: flex; }
.bord-step {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.bord-step__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--c-border); transition: background-color .3s ease, transform .3s ease;
}
.bord-step__lbl {
  font-size: 9.5px; color: var(--c-text-soft); font-weight: var(--fw-semibold);
  letter-spacing: .01em;
}
.bord-step.is-done .bord-step__dot   { background: var(--c-primary); }
.bord-step.is-done .bord-step__lbl   { color: var(--c-text-muted); }
.bord-step.is-active .bord-step__dot {
  background: var(--c-primary-strong); transform: scale(1.45);
  box-shadow: 0 0 0 4px var(--c-primary-soft);
}
.bord-step.is-active .bord-step__lbl { color: var(--c-primary-strong); font-weight: var(--fw-bold); }

/* Dynamic update banner */
.bord-update {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: var(--r-md, 12px);
  font-size: var(--fs-xs); line-height: 1.45; font-weight: var(--fw-medium);
}
.bord-update__ic  { font-size: 1.05rem; flex: none; }
.bord-update__txt { min-width: 0; }
.bord-update--wait { background: #FFF4E0; color: #8A5A12; }
.bord-update--go   { background: var(--c-primary-soft); color: var(--c-primary-strong); }
.bord-update--done { background: #E3F6EC; color: #1E7F4F; }
.bord-update--bad  { background: #FDE8EF; color: var(--c-danger, #D6336C); }

.bord-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--fs-xs);
}
.bord-card__fresh {
  display: flex; align-items: center; gap: 6px;
  color: var(--c-text-soft);
}
.bord-card__cta { color: var(--c-primary-strong); font-weight: var(--fw-bold); }
.bord-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2BB673; box-shadow: 0 0 0 0 rgba(43,182,115,.55);
  animation: bordPulse 2s ease-out infinite;
}
@keyframes bordPulse {
  0%   { box-shadow: 0 0 0 0 rgba(43,182,115,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(43,182,115,0); }
  100% { box-shadow: 0 0 0 0 rgba(43,182,115,0); }
}
@media (prefers-reduced-motion: reduce) {
  .bord-pulse { animation: none; }
  .bord-card:hover { transform: none; }
}

/* ── Checkout bundle upsell ──────────────────────────────────────────────── */
.bundle-up {
  border: 1.5px solid var(--c-primary);
  background: linear-gradient(135deg, var(--c-primary-soft) 0%, #FFF6FA 100%);
  border-radius: var(--r-xl, 20px);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.bundle-up__head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: var(--sp-3); }
.bundle-up__gift { font-size: 1.55rem; flex: none; line-height: 1.1; }
.bundle-up__title { font-weight: var(--fw-bold); font-size: var(--fs-md); color: var(--c-text); line-height: 1.32; }
.bundle-up__sub { font-size: var(--fs-xs); color: var(--c-text-muted); margin-top: 3px; line-height: 1.45; }
.bundle-up__sub strong { color: var(--c-primary-strong); font-weight: var(--fw-bold); }
.bundle-up__items { display: flex; flex-direction: column; gap: 8px; }

.bundle-row {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  background: var(--c-surface); border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg, 16px); padding: 9px 11px; cursor: pointer;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.bundle-row:hover { border-color: var(--c-primary); }
.bundle-row.is-on { border-color: var(--c-primary-strong); box-shadow: 0 0 0 3px var(--c-primary-soft); }
.bundle-row__cb { position: absolute; opacity: 0; pointer-events: none; }
.bundle-row__check {
  flex: none; width: 22px; height: 22px; border-radius: 7px;
  border: 2px solid var(--c-border); background: var(--c-surface);
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background-color .14s ease, border-color .14s ease;
}
.bundle-row__check svg { opacity: 0; transition: opacity .12s ease; }
.bundle-row.is-on .bundle-row__check { background: var(--c-primary-strong); border-color: var(--c-primary-strong); }
.bundle-row.is-on .bundle-row__check svg { opacity: 1; }
.bundle-row__thumb {
  flex: none; width: 46px; height: 46px; border-radius: var(--r-md, 12px);
  overflow: hidden; background: var(--c-bg-soft, #F6F4F2);
  display: flex; align-items: center; justify-content: center;
}
.bundle-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.bundle-row__thumb svg { width: 24px; height: 24px; }
.bundle-row__info { flex: 1; min-width: 0; }
.bundle-row__title {
  display: block; font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bundle-row__price { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.bundle-row__price s { font-size: var(--fs-xs); color: var(--c-text-soft); }
.bundle-row__price strong { font-size: var(--fs-sm); color: var(--c-primary-strong); font-weight: var(--fw-bold); }
.bundle-row__off {
  font-size: 10px; font-weight: var(--fw-bold); color: #1E7F4F;
  background: #E3F6EC; padding: 1px 6px; border-radius: 999px;
}
.bundle-up__savings {
  margin-top: var(--sp-3); padding: 9px 12px;
  background: #E3F6EC; color: #1E7F4F; border-radius: var(--r-md, 12px);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); text-align: center;
}
.bundle-up__savings strong { font-weight: var(--fw-bold); }
.bundle-up__hint {
  margin-top: var(--sp-3); font-size: var(--fs-xs);
  color: var(--c-text-muted); text-align: center;
}

/* Bundle block inside the confirm-step order summary */
.osum__bundle {
  margin: var(--sp-2) 0; padding: 10px 12px;
  background: var(--c-primary-soft); border-radius: var(--r-md, 12px);
}
.osum__bundle-tag {
  font-size: var(--fs-xs); font-weight: var(--fw-bold);
  color: var(--c-primary-strong); margin-bottom: 5px;
}
.osum__bundle-item {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: var(--fs-xs); color: var(--c-text); padding: 2px 0;
}

/* Bundle rows on the order page */
.order-bundle-head {
  font-size: var(--fs-sm); font-weight: var(--fw-bold);
  color: var(--c-primary-strong); margin-bottom: var(--sp-2);
}
.order-bundle-off {
  font-size: 10px; font-weight: var(--fw-bold); color: #1E7F4F;
  background: #E3F6EC; padding: 1px 6px; border-radius: 999px; margin-left: 4px;
}

/* ═══ Admin panel — grouped sidebar shell ════════════════════════════════════ */
.admin-shell { padding: 0; }
.adm {
  display: flex; align-items: flex-start;
  max-width: 1320px; margin: 0 auto;
  padding: var(--sp-4) var(--sp-4) var(--sp-10);
  min-height: 72vh;
}
.adm-side {
  flex: none; width: 238px;
  position: sticky; top: 76px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl, 20px);
  padding: var(--sp-3);
  max-height: calc(100dvh - 92px);
  overflow-y: auto;
}
.adm-side__brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 6px var(--sp-3);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--sp-2);
}
.adm-side__logo {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--c-primary-strong, #FF6BA3), #FF8FB8);
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.adm-side__name { font-weight: var(--fw-bold); font-size: var(--fs-md); color: var(--c-text); line-height: 1.1; }
.adm-side__sub { font-size: var(--fs-xs); color: var(--c-text-soft); }

.adm-nav__group { margin-bottom: var(--sp-3); }
.adm-nav__label {
  font-size: 10px; font-weight: var(--fw-bold); text-transform: uppercase;
  letter-spacing: .08em; color: var(--c-text-soft);
  padding: 4px 10px; margin-top: 2px;
}
.adm-nav__item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border: none; background: transparent;
  border-radius: 10px; cursor: pointer; text-align: left;
  font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--c-text-muted);
  transition: background-color .12s ease, color .12s ease;
}
.adm-nav__item:hover { background: var(--c-bg-soft, #F6F4F2); color: var(--c-text); }
.adm-nav__item.is-active {
  background: var(--c-primary-soft); color: var(--c-primary-strong, #D63A7E);
  font-weight: var(--fw-bold);
}
.adm-nav__ic { flex: none; display: flex; }
.adm-nav__txt { flex: 1; min-width: 0; }
.adm-nav__badge {
  flex: none; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--c-danger, #D6336C); color: #fff;
  font-size: 10px; font-weight: var(--fw-bold);
  display: flex; align-items: center; justify-content: center;
}

.adm-main { flex: 1; min-width: 0; padding-left: var(--sp-4); }
.adm-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3); margin-bottom: var(--sp-4);
}
.adm-top__title {
  font-family: var(--font-display, inherit); font-size: var(--fs-2xl);
  font-weight: var(--fw-bold); color: var(--c-text); margin: 0;
}
.adm-top__tag {
  flex: none; font-size: var(--fs-xs); color: var(--c-text-soft);
  background: var(--c-bg-soft, #F6F4F2); padding: 5px 10px; border-radius: 999px;
}
.adm-content { min-height: 300px; }

/* Dashboard — action queue */
.adm-dash__hero {
  display: flex; align-items: center; gap: 14px;
  padding: var(--sp-4); border-radius: var(--r-xl, 20px);
  background: linear-gradient(135deg, #FFF4E0 0%, #FFEAF2 100%);
  border: 1px solid #FFD9B0;
}
.adm-dash__hero.is-clear {
  background: linear-gradient(135deg, #E3F6EC 0%, #EAF7FF 100%);
  border-color: #BEEAD0;
}
.adm-dash__hero-ic { font-size: 2rem; flex: none; line-height: 1; }
.adm-dash__hero-title { font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--c-text); }
.adm-dash__hero-sub { font-size: var(--fs-sm); color: var(--c-text-muted); margin-top: 2px; }
.adm-dash__sec {
  font-size: var(--fs-xs); font-weight: var(--fw-bold); text-transform: uppercase;
  letter-spacing: .06em; color: var(--c-text-soft);
  margin: var(--sp-5) 0 var(--sp-2);
}
.adm-queue {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
  gap: var(--sp-3);
}
.adm-qcard {
  display: flex; flex-direction: column; gap: 3px;
  padding: var(--sp-4); border-radius: var(--r-lg, 16px);
  border: 1px solid var(--c-border); background: var(--c-surface);
  cursor: pointer; text-align: left;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.adm-qcard:hover { transform: translateY(-2px); box-shadow: var(--sh-md, 0 6px 20px rgba(0,0,0,.08)); }
.adm-qcard__ic { color: var(--c-text-soft); }
.adm-qcard__n { font-size: 1.9rem; font-weight: var(--fw-bold); color: var(--c-text); line-height: 1.15; }
.adm-qcard__label { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-text); }
.adm-qcard__desc { font-size: var(--fs-xs); color: var(--c-text-soft); line-height: 1.4; }
.adm-qcard__cta { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--c-text-soft); margin-top: 6px; }
.adm-qcard.is-hot { border-color: #F4B5C9; background: linear-gradient(135deg, #FFF6FA, #FFEAF2); }
.adm-qcard.is-hot .adm-qcard__ic,
.adm-qcard.is-hot .adm-qcard__n,
.adm-qcard.is-hot .adm-qcard__cta { color: var(--c-primary-strong, #D63A7E); }

.adm-short-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: var(--sp-2);
}
.adm-short {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 13px; border-radius: var(--r-md, 12px);
  border: 1px solid var(--c-border); background: var(--c-surface);
  cursor: pointer; font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  color: var(--c-text); text-align: left;
  transition: border-color .12s ease, background-color .12s ease;
}
.adm-short:hover { border-color: var(--c-primary); background: var(--c-primary-soft); }
.adm-short__ic { flex: none; color: var(--c-text-soft); display: flex; }

/* Mobile — sidebar becomes a horizontal scroller */
@media (max-width: 880px) {
  .adm { flex-direction: column; padding: var(--sp-3); }
  .adm-side {
    width: 100%; position: static; max-height: none;
    margin-bottom: var(--sp-3); padding: var(--sp-2);
  }
  .adm-side__brand { display: none; }
  .adm-nav { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .adm-nav__group { margin: 0; display: flex; gap: 6px; }
  .adm-nav__label { display: none; }
  .adm-nav__item { white-space: nowrap; padding: 7px 12px; }
  .adm-main { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .adm-qcard:hover { transform: none; }
}

/* Admin — "what is this tab" explainer + processed-history rows */
.adm-explain {
  font-size: var(--fs-sm); line-height: 1.55; color: var(--c-text-muted);
  background: var(--c-primary-soft); border: 1px solid var(--c-primary);
  border-radius: var(--r-lg, 16px); padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
}
.adm-explain strong { color: var(--c-primary-strong, #D63A7E); }

.adm-hist { display: flex; flex-direction: column; gap: 6px; }
.adm-histrow {
  display: flex; align-items: center; gap: var(--sp-3);
  width: 100%; padding: 10px 13px;
  border: 1px solid var(--c-border); border-radius: var(--r-md, 12px);
  background: var(--c-surface); cursor: pointer; text-align: left;
  text-decoration: none; color: inherit;
  transition: border-color .12s ease, background-color .12s ease;
}
.adm-histrow:hover { border-color: var(--c-primary); background: var(--c-bg-soft, #F6F4F2); }
.adm-histrow--static,
.adm-histrow--static:hover { cursor: default; border-color: var(--c-border); background: var(--c-surface); }
.adm-histrow__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.adm-histrow__title {
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.adm-histrow__sub {
  font-size: var(--fs-xs); color: var(--c-text-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.adm-pill {
  flex: none; font-size: var(--fs-xs); font-weight: var(--fw-bold);
  padding: 4px 10px; border-radius: 999px;
}
.adm-pill--ok      { background: #E3F6EC; color: #1E7F4F; }
.adm-pill--bad     { background: #FDE8EF; color: var(--c-danger, #D6336C); }
.adm-pill--neutral { background: var(--c-bg-soft, #F1EEF0); color: var(--c-text-muted); }

/* Admin — listings moderation: filters + bulk select */
.lst-bar { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; margin-bottom: var(--sp-3); }
.lst-bar .form-input { flex: 1; min-width: 220px; }
.lst-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.lst-chip {
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--c-border); background: var(--c-surface);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--c-text-muted);
  transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}
.lst-chip:hover { border-color: var(--c-primary); }
.lst-chip.is-active { background: var(--c-primary-strong, #D63A7E); border-color: var(--c-primary-strong, #D63A7E); color: #fff; }

.lst-bulkbar {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 9px 13px; margin-bottom: var(--sp-3);
  background: var(--c-primary-soft); border: 1px solid var(--c-primary);
  border-radius: var(--r-md, 12px);
}
.lst-bulkbar__count { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--c-primary-strong, #D63A7E); flex: 1; }
.lst-bulkbar__del { background: var(--c-danger, #D6336C); color: #fff; border-color: var(--c-danger, #D6336C); }

.lst-cb { flex: none; display: flex; align-items: center; }
.lst-cb input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--c-primary-strong, #D63A7E); }
.lst-row__actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.admin-list-row.is-sel { background: var(--c-primary-soft); }
.lst-reason {
  margin-top: 5px; font-size: var(--fs-xs); color: var(--c-danger, #D6336C);
  background: #FDE8EF; padding: 4px 8px; border-radius: 8px; display: inline-block;
}

/* Admin — clickable COD / AWB order row */
.cod-row__info { display: block; text-decoration: none; color: inherit; flex: 1; min-width: 0; }
.cod-row__info:hover .cod-row__title { color: var(--c-primary-strong, #D63A7E); }
.cod-row__open { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--c-primary-strong, #D63A7E); }

/* Admin — rich order cards (Comenzi tab) */
.aord-list { display: flex; flex-direction: column; gap: var(--sp-3); }

/* ── Orders & shipping — master-detail layout ────────────────────────────── */
.aord-shell { display: flex; gap: var(--sp-3); height: calc(100dvh - 210px); min-height: 460px; }
.aord-listcol {
  flex: 0 0 340px; display: flex; flex-direction: column;
  border: 1px solid var(--c-border); border-radius: var(--r-lg, 16px);
  background: var(--c-surface); overflow: hidden;
}
.aord-searchbar {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-bottom: 1px solid var(--c-border); color: var(--c-text-soft);
}
.aord-searchbar input {
  flex: 1; border: none; background: none; outline: none;
  font-size: var(--fs-sm); color: var(--c-text); min-width: 0;
}
.aord-chips {
  display: flex; gap: 5px; padding: 8px 10px; overflow-x: auto;
  border-bottom: 1px solid var(--c-border); scrollbar-width: none;
}
.aord-chips::-webkit-scrollbar { display: none; }
.aord-chip {
  flex: none; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--c-border); background: var(--c-surface);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  color: var(--c-text-muted); cursor: pointer; white-space: nowrap;
  transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}
.aord-chip.is-active { background: var(--c-primary-strong, #D63A7E); border-color: var(--c-primary-strong, #D63A7E); color: #fff; }
.aord-rows { flex: 1; overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 3px; }
.aord-rows__empty { padding: var(--sp-6); text-align: center; color: var(--c-text-soft); font-size: var(--fs-sm); }
.aord-row {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 9px 10px; border-radius: 10px; border: 1px solid transparent;
  background: none; cursor: pointer; text-align: left;
  transition: background-color .1s ease, border-color .1s ease;
}
.aord-row:hover { background: var(--c-bg-soft, #F6F4F2); }
.aord-row.is-sel { background: var(--c-primary-soft); border-color: var(--c-primary); }
.aord-row__l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.aord-row__head { display: flex; align-items: center; gap: 6px; }
.aord-row__id { font-family: 'Courier New', monospace; font-size: 11px; font-weight: var(--fw-bold); color: var(--c-text-muted); }
.aord-row__status { font-size: 9px !important; padding: 1px 6px !important; }
.aord-row__flag { font-size: 11px; line-height: 1; }
.aord-row__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-danger, #D6336C); margin-left: auto; flex: none; }
.aord-row__title {
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.aord-row__parties {
  font-size: 11px; color: var(--c-text-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.aord-row__amt { flex: none; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--c-text); white-space: nowrap; }
.aord-row__amt small { font-size: 9px; color: var(--c-text-soft); margin-left: 2px; }

.aord-detail {
  flex: 1; min-width: 0; overflow-y: auto;
  border: 1px solid var(--c-border); border-radius: var(--r-lg, 16px);
  background: var(--c-surface); padding: var(--sp-4);
}
.aord-detail__empty {
  height: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; color: var(--c-text-soft); text-align: center;
}
.aord-detail__empty-ic { font-size: 2.6rem; }
.aord-detail__empty-sub { font-size: var(--fs-xs); max-width: 260px; }
.aord-detail__back { display: none; }
/* Detail reuses .aord-card markup but the panel supplies the frame. */
.aord-detail .aord-card { border: none; background: none; padding: 0; }
.aord-detail .aord-card--dispute { background: none; }

/* ── Audit log tab ── */
.aud-filters { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.aud-dates { display: flex; gap: var(--sp-2); }
.aud-dates .form-input { flex: 1; min-width: 0; }
.aud-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.aud-chip {
  border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text-soft);
  border-radius: 999px; padding: 4px 11px; font-size: var(--fs-xs); cursor: pointer; text-transform: capitalize;
}
.aud-chip.is-active { background: var(--c-primary-soft, #FFEAF2); border-color: var(--c-primary, #F4B5C9); color: var(--c-primary-strong, #D63A7E); font-weight: var(--fw-semibold); }
.aud-more { padding: var(--sp-2); text-align: center; }
.aud-row {
  width: 100%; display: flex; align-items: center; gap: 9px; text-align: left;
  background: none; border: none; border-bottom: 1px solid var(--c-border-soft, #F0ECEA);
  padding: 9px 8px; cursor: pointer;
}
.aud-row:hover { background: var(--c-bg-soft, #F6F4F2); }
.aud-row.is-sel { background: var(--c-primary-soft, #FFEAF2); }
.aud-row__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.aud-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.aud-row__type { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-text); }
.aud-row__meta { font-size: var(--fs-xs); color: var(--c-text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aud-row__when { flex: none; font-size: var(--fs-xs); color: var(--c-text-soft); }
.aud-detail__head { display: flex; align-items: center; gap: 8px; margin-bottom: var(--sp-3); }
.aud-detail__head h3 { margin: 0; font-size: var(--fs-md); word-break: break-all; }
.aud-kv { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.aud-kv td { padding: 5px 8px; border-bottom: 1px solid var(--c-border-soft, #F0ECEA); vertical-align: top; word-break: break-all; }
.aud-kv td:first-child { color: var(--c-text-soft); width: 110px; white-space: nowrap; }
.aud-detail__links { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--sp-3) 0; }
.aud-detail__metahead { font-size: var(--fs-xs); color: var(--c-text-soft); text-transform: uppercase; letter-spacing: .04em; margin-top: var(--sp-2); }
.aud-meta {
  background: var(--c-bg-soft, #F6F4F2); border: 1px solid var(--c-border); border-radius: var(--r-md, 10px);
  padding: var(--sp-2); font-size: var(--fs-xs); overflow-x: auto; white-space: pre-wrap; word-break: break-word; margin-top: 4px;
}

/* ── Refund / report-problem form (buyer + admin modals) ── */
.rf-form { display: flex; flex-direction: column; gap: var(--sp-3); }
.rf-intro { font-size: var(--fs-sm); color: var(--c-text-muted); margin: 0; }
.rf-opt { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); cursor: pointer; }
.rf-opt input { flex: none; }
.rf-lbl { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.rf-hint { font-size: var(--fs-xs); color: var(--c-text-soft); margin: 4px 0 0; }
.order-window-note { font-size: var(--fs-sm); color: var(--c-text-soft); align-self: center; }

/* ── Shared admin list toolkit (pagination / bulk / density) ── */
.adm-loadmore { text-align: center; padding: var(--sp-3) 0; }
.adm-bulkbar {
  display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap;
  background: var(--c-primary-soft, #FFEAF2); border: 1px solid var(--c-primary, #F4B5C9);
  border-radius: var(--r-md, 10px); padding: 8px 12px; margin-bottom: var(--sp-3);
}
.adm-bulkbar__count { font-weight: var(--fw-semibold); font-size: var(--fs-sm); margin-right: auto; }
.adm-bulkbar__del { color: var(--c-danger, #D6336C); }
.adm-cb { flex: 0 0 auto; display: flex; align-items: center; padding-right: 4px; }
.adm-cb input { width: 17px; height: 17px; cursor: pointer; }
.adm-density-toggle {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--c-border);
  background: var(--c-surface); border-radius: 999px; padding: 5px 11px; font-size: var(--fs-xs);
  color: var(--c-text-soft); cursor: pointer;
}
.adm-density-toggle[aria-pressed="true"] {
  background: var(--c-primary-soft, #FFEAF2); border-color: var(--c-primary, #F4B5C9); color: var(--c-primary-strong, #D63A7E);
}
.adm-dense .admin-list-row { padding: 6px 8px; gap: 7px; }
.adm-dense .admin-list-row .avatar-md { width: 30px; height: 30px; }
.adm-dense .admin-list-row [style*="font-size:var(--fs-sm)"] { font-size: var(--fs-xs) !important; }

/* ── Admin top-bar search trigger ── */
.adm-top__search {
  display: inline-flex; align-items: center; gap: 7px; margin-left: var(--sp-3);
  border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text-soft);
  border-radius: 999px; padding: 6px 12px; font-size: var(--fs-sm); cursor: pointer;
}
.adm-top__search:hover { border-color: var(--c-primary, #F4B5C9); color: var(--c-text); }
.adm-top__search kbd {
  font-family: inherit; font-size: var(--fs-xs); background: var(--c-bg-soft, #F6F4F2);
  border: 1px solid var(--c-border); border-radius: 5px; padding: 1px 5px;
}

/* ── Command palette (Cmd/Ctrl+K) ── */
.cmdk-backdrop {
  position: fixed; inset: 0; z-index: 4000; display: flex; align-items: flex-start;
  justify-content: center; padding-top: 12vh; background: rgba(20,12,18,.42);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.cmdk-panel {
  width: min(620px, 92vw); max-height: 70vh; display: flex; flex-direction: column;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg, 16px);
  box-shadow: 0 24px 64px rgba(0,0,0,.28); overflow: hidden;
}
.cmdk-input {
  border: none; border-bottom: 1px solid var(--c-border); padding: 16px 18px;
  font-size: var(--fs-lg); background: none; color: var(--c-text); outline: none; width: 100%;
}
.cmdk-results { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.cmdk-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: var(--r-md, 10px);
  cursor: pointer;
}
.cmdk-item.is-active { background: var(--c-primary-soft, #FFEAF2); }
.cmdk-item__kind {
  flex: none; font-size: 10px; font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: .03em;
  padding: 2px 7px; border-radius: 999px; background: var(--c-bg-soft, #F6F4F2); color: var(--c-text-soft);
}
.cmdk-item__kind--order   { background: #E0EDFF; color: #2563EB; }
.cmdk-item__kind--user    { background: #EFE6FF; color: #7C3AED; }
.cmdk-item__kind--listing { background: #FFF1D9; color: #B45309; }
.cmdk-item__main { display: flex; flex-direction: column; min-width: 0; }
.cmdk-item__label { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-item__sub { font-size: var(--fs-xs); color: var(--c-text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-empty { padding: 18px; text-align: center; color: var(--c-text-soft); font-size: var(--fs-sm); }
@media (max-width: 600px) { .adm-top__search span { display: none; } }

/* ── Campaigns tab ── */
.camp { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 760px) { .camp { grid-template-columns: 1fr; } }
.camp__col { display: flex; flex-direction: column; gap: var(--sp-2); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg, 16px); padding: var(--sp-4); }
.camp__h { margin: 0 0 4px; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .04em; color: var(--c-text-soft); }
.camp__f { display: flex; flex-direction: column; gap: 3px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--c-text-soft); }
.camp__chk { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); }
.camp__count, .camp__result { font-size: var(--fs-sm); color: var(--c-text); padding: 6px 0; min-height: 20px; }

/* ── Checkout coupon ── */
.osum-coupon { padding: 6px 0; }
.osum-coupon__input { display: flex; gap: 8px; }
.osum-coupon__input .form-input { flex: 1; }
.osum-price--discount { color: var(--c-success, #16A34A); font-weight: var(--fw-semibold); }
.osum-coupon__rm { background: none; border: none; color: var(--c-text-soft); cursor: pointer; font-size: 12px; padding: 0 2px; }

/* ── Dashboard KPIs + chart ── */
.adm-dash__kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-3); }
.adm-kpi { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg, 16px); padding: var(--sp-3) var(--sp-4); }
.adm-kpi__val { font-size: 1.4rem; font-weight: var(--fw-bold); color: var(--c-text); line-height: 1.1; }
.adm-kpi__lbl { font-size: var(--fs-xs); color: var(--c-text-soft); margin-top: 3px; }
.adm-dash__chartwrap { margin-bottom: var(--sp-4); }
.adm-chart { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg, 16px); padding: var(--sp-3) var(--sp-4); }
.adm-chart__head { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--c-text-soft); margin-bottom: 8px; }
.adm-chart__svg { width: 100%; height: 64px; display: block; }
.adm-chart__svg rect { fill: var(--c-primary, #F4B5C9); }

/* ── Trust & Safety ── */
.ts { display: flex; flex-direction: column; gap: var(--sp-5); }
.ts__sec { }
.ts__h { display: flex; align-items: center; font-size: var(--fs-md); margin: 0 0 var(--sp-3); }
.ts__hint { font-size: var(--fs-xs); color: var(--c-text-soft); font-weight: 400; margin-left: 8px; }

/* ── Garanția Sosetto badge (premium, shiny) ── */
.gar-badge {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  border: 1px solid var(--c-primary, #F4B5C9); border-radius: var(--r-lg, 16px);
  background: linear-gradient(135deg, #FFF6FA 0%, #FFEAF2 100%);
  padding: 11px 16px; color: var(--c-text); transition: box-shadow .2s, transform .2s;
}
.gar-badge:hover { box-shadow: 0 8px 26px rgba(214,58,126,.18); transform: translateY(-1px); }
.gar-badge--block { display: flex; }
.gar-badge__shield { position: relative; flex: none; width: 34px; height: 40px; overflow: hidden; border-radius: 6px; }
.gar-shield { width: 34px; height: 40px; display: block; filter: drop-shadow(0 2px 4px rgba(200,52,122,.35)); }
/* sweeping gloss */
.gar-badge__shield::after {
  content: ''; position: absolute; top: -40%; left: -60%; width: 40%; height: 180%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.85), transparent);
  transform: rotate(18deg); pointer-events: none;
}
.gar-badge__txt { display: flex; flex-direction: column; line-height: 1.2; }
.gar-badge__txt strong { font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--c-primary-strong, #C8347A); }
.gar-badge__sub { font-size: var(--fs-xs); color: var(--c-text-soft); margin-top: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .gar-badge__shield::after { animation: garGloss 3.4s ease-in-out infinite; }
}
@keyframes garGloss {
  0%, 100% { left: -60%; }
  45%, 55% { left: 130%; }
}
/* Policy page hero */
.gar-hero { display: flex; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.gar-hero__shield { flex: none; position: relative; width: 56px; height: 66px; display: block; }
.gar-hero__shield .gar-shield { width: 56px; height: 66px; }

.acc-wallet-pending {
  margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--c-text-soft);
  background: rgba(0,0,0,.04); border-radius: var(--r-md, 10px); padding: 7px 10px;
}

/* ── SOTW 3-slot row + admin slot picker ── */
.sotw-row { display: grid; gap: var(--sp-3); }
.sotw-row--1 { grid-template-columns: 1fr; }
.sotw-row--2 { grid-template-columns: 1fr 1fr; }
.sotw-row--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 720px) { .sotw-row--2, .sotw-row--3 { grid-template-columns: 1fr; } }
.sotw-slot { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--c-border-soft, #F0ECEA); }
.sotw-slot__n { font-weight: var(--fw-bold); font-size: var(--fs-xs); color: var(--c-text-soft); flex: none; width: 54px; }
.sotw-slot__occ { flex: 1; min-width: 0; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Cookie consent bar (lightweight, bottom) ── */
.consent-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h, 56px) + 10px);
  z-index: 3500; display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; justify-content: center;
  width: min(640px, calc(100vw - 24px));
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg, 16px);
  box-shadow: 0 10px 34px rgba(0,0,0,.16); padding: 12px 16px;
}
.consent-bar__txt { font-size: var(--fs-xs); color: var(--c-text-muted); flex: 1; min-width: 200px; }
.consent-bar__txt a { color: var(--c-primary, #D63A7E); }
.consent-bar__actions { display: flex; gap: 8px; flex: none; }
@media (min-width: 768px) { .consent-bar { bottom: 16px; } }

@media (max-width: 860px) {
  .aord-shell { flex-direction: column; height: auto; }
  .aord-listcol { flex: none; width: 100%; max-height: 65vh; }
  .aord-detail { display: none; }
  .aord-detail.is-open { display: block; }
  .aord-detail__back {
    display: inline-flex; align-items: center; margin-bottom: var(--sp-3);
    background: none; border: none; color: var(--c-primary-strong, #D63A7E);
    font-weight: var(--fw-semibold); font-size: var(--fs-sm); cursor: pointer; padding: 0;
  }
}
.aord-card {
  border: 1px solid var(--c-border); border-radius: var(--r-lg, 16px);
  background: var(--c-surface); padding: var(--sp-4);
  display: flex; flex-direction: column; gap: 10px;
}
.aord-card--dispute { border-color: var(--c-danger, #D6336C); background: #FFF8FA; }
.aord-card__head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.aord-card__id {
  font-family: 'Courier New', monospace; font-weight: var(--fw-bold);
  font-size: var(--fs-sm); color: var(--c-primary-strong, #D63A7E); text-decoration: none;
}
.aord-card__id:hover { text-decoration: underline; }
.aord-chip {
  font-size: 11px; font-weight: var(--fw-semibold);
  padding: 3px 9px; border-radius: 999px;
  background: var(--c-bg-soft, #F1EEF0); color: var(--c-text-muted);
}
.aord-chip--bundle { background: var(--c-primary-soft); color: var(--c-primary-strong, #D63A7E); }
.aord-chip--danger { background: #FDE8EF; color: var(--c-danger, #D6336C); }

.aord-prod { display: flex; align-items: center; gap: 11px; }
.aord-prod__thumb {
  flex: none; width: 50px; height: 50px; border-radius: var(--r-md, 12px);
  overflow: hidden; background: var(--c-bg-soft, #F6F4F2);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.aord-prod__thumb img { width: 100%; height: 100%; object-fit: cover; }
.aord-prod__info { flex: 1; min-width: 0; }
.aord-prod__title {
  font-weight: var(--fw-semibold); font-size: var(--fs-sm); color: var(--c-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.aord-prod__parties { font-size: var(--fs-xs); color: var(--c-text-soft); margin-top: 2px; }
.aord-prod__parties a { color: var(--c-text-muted); text-decoration: none; }
.aord-prod__parties a:hover { text-decoration: underline; }
.aord-prod__total { flex: none; font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--c-text); }
.aord-prod__total span { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--c-text-soft); }

.aord-breakdown { font-size: var(--fs-xs); color: var(--c-text-soft); }

.aord-timeline { display: flex; flex-wrap: wrap; gap: 6px; }
.aord-ts {
  display: flex; flex-direction: column; gap: 1px;
  font-size: 11px; color: var(--c-text-muted);
  background: var(--c-bg-soft, #F6F4F2); border-radius: 8px; padding: 5px 9px;
}
.aord-ts b {
  font-size: 10px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--c-text-soft); font-weight: var(--fw-bold);
}

.aord-note {
  font-size: var(--fs-xs); color: var(--c-text-muted);
  background: var(--c-bg-soft, #F6F4F2); border-radius: 8px; padding: 6px 10px;
}
.aord-note--danger { background: #FDE8EF; color: var(--c-danger, #D6336C); }
.aord-note code { font-family: 'Courier New', monospace; font-weight: var(--fw-bold); }

.aord-hist > summary {
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  color: var(--c-primary-strong, #D63A7E); cursor: pointer; padding: 2px 0;
}
.aord-hist__list { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.aord-hist__row {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline;
  font-size: 11px; padding: 5px 9px;
  background: var(--c-bg-soft, #F6F4F2); border-radius: 8px;
}
.aord-hist__st { font-weight: var(--fw-bold); color: var(--c-text); }
.aord-hist__at { color: var(--c-text-soft); font-family: 'Courier New', monospace; }
.aord-hist__note { color: var(--c-text-muted); flex: 1; min-width: 120px; }

.aord-card__foot {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--sp-2); flex-wrap: wrap;
  border-top: 1px solid var(--c-border); padding-top: 10px;
}
.aord-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.aord-codnote { font-size: var(--fs-xs); color: var(--c-text-soft); align-self: center; }
.aord-stage {
  width: 100%; font-size: var(--fs-xs); color: var(--c-text-soft);
}
.aord-stage strong { color: var(--c-primary-strong, #D63A7E); }
.aord-inputs {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center; width: 100%;
}
.aord-inputs .form-input { flex: 1; min-width: 110px; }
.aord-inputs .btn { flex: none; }
.aord-section-label {
  width: 100%; font-size: 11px; font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--c-primary-strong, #D63A7E); margin-top: 4px;
}
.aord-hint { width: 100%; font-size: var(--fs-xs); color: var(--c-text-soft); margin: 0; }
.aord-summary {
  width: 100%; font-size: var(--fs-xs); color: var(--c-text-muted); line-height: 1.55;
  background: var(--c-bg-soft, #F6F4F2); border-radius: 8px; padding: 7px 10px;
}
.aord-summary code { font-family: 'Courier New', monospace; font-weight: var(--fw-bold); color: var(--c-text); }
.aord-file {
  display: inline-flex; align-items: center; flex: none;
  padding: 7px 12px; border-radius: 999px;
  border: 1.5px solid var(--c-border); background: var(--c-surface);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  color: var(--c-text-muted); cursor: pointer; white-space: nowrap;
  transition: border-color .12s ease;
}
.aord-file:hover { border-color: var(--c-primary); }
.aord-qrlink {
  display: inline-block; font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  color: #1E7F4F; text-decoration: none;
}
.aord-qrlink:hover { text-decoration: underline; }

/* Seller pack card — AWB QR + drop-off credentials */
.pack-qr { text-align: center; margin: var(--sp-3) 0; }
.pack-qr img {
  width: 160px; height: 160px; object-fit: contain;
  border-radius: var(--r-md, 12px); border: 1px solid var(--c-border); background: #fff;
}
.pack-qr__hint { display: block; font-size: var(--fs-xs); color: var(--c-text-soft); margin-top: 5px; }
.pack-drop {
  margin: var(--sp-3) 0; padding: var(--sp-3);
  border: 1.5px dashed var(--c-primary); border-radius: var(--r-md, 12px);
  text-align: center; background: var(--c-primary-soft);
}
.pack-drop__title { font-weight: var(--fw-bold); font-size: var(--fs-sm); margin-bottom: 6px; }
.pack-drop img {
  width: 150px; height: 150px; object-fit: contain;
  border-radius: 10px; background: #fff; margin-top: 8px;
}
.pack-drop__hint { font-size: var(--fs-xs); color: var(--c-text-muted); margin: 8px 0 0; }

/* Order page — embedded Google map + directions button */
.omap {
  margin: var(--sp-3) 0; border-radius: var(--r-md, 12px); overflow: hidden;
  border: 1px solid var(--c-border); background: var(--c-surface);
}
.omap__frame { display: block; width: 100%; height: 210px; border: 0; }
.omap__dir { border-radius: 0; margin: 0; }

/* Homepage perks strip — shown when no Sock of the Week is set */
.home-perks {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-3); margin: var(--sp-4) 0;
}
.home-perk {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px; border-radius: var(--r-lg, 16px);
  background: var(--c-surface); border: 1px solid var(--c-border);
}
.home-perk__ic {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-primary-soft); font-size: 1.15rem;
}
.home-perk__title { font-weight: var(--fw-bold); font-size: var(--fs-sm); color: var(--c-text); }
.home-perk__sub { font-size: var(--fs-xs); color: var(--c-text-muted); line-height: 1.45; margin-top: 2px; }

