/* ===================================================
   GLOBAL RESET & BASE
   =================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===================================================
   ANNOUNCEMENT MODAL (every Mini App open)
   =================================================== */
.announce-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.announce-overlay.hidden { display: none !important; }

.boot-error-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 11000;
  padding: 12px 16px;
  background: #c0392b;
  color: #fff;
  font-size: 14px;
  text-align: center;
  line-height: 1.35;
}
.boot-error-banner.hidden { display: none !important; }

.announce-modal {
  width: 100%;
  max-width: 360px;
  background: #1c1c1e;
  border-radius: 18px;
  padding: 22px 22px 20px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 20px 48px rgba(0,0,0,.55),
    0 0 80px rgba(255,95,77,.12);
}

.announce-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d4a373;
  margin-bottom: 16px;
}

.announce-body {
  color: #fff;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 22px;
}

.announce-body p { margin: 0; }

.announce-link {
  color: #6ab7ff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.announce-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #ff5f4d, #ff8066);
  box-shadow: 0 4px 16px rgba(255,95,77,.35);
  transition: transform .1s, opacity .15s;
}

.announce-btn:hover { opacity: .95; }
.announce-btn:active { transform: scale(.98); }

:root {
  --orange:      #f47920;
  --orange-dark: #c85e0a;
  --orange-light:#fde8d0;
  --grey-bg:     #ebebeb;
  --white:       #ffffff;
  --card-bg:     #f9f9f9;
  --border:      #d0d0d0;
  --text:        #2e2e2e;
  --text-muted:  #777777;
  --sidebar-w:   220px;
  --radius:      4px;
  --shadow:      0 1px 4px rgba(0,0,0,.12);
}

/* ── DARK THEME (soft charcoal + orange) ── */
body.dark {
  --grey-bg:   #121212;
  --white:     #1a1a1d;
  --card-bg:   #1a1a1d;
  --border:    #2a2a2e;
  --text:      #ececec;
  --text-muted:#9a9a9a;
  --shadow:    0 1px 4px rgba(0,0,0,.45);
  --orange:    #f47920;
  background: #121212 !important;
  color: var(--text);
  padding-bottom: 0;
}
body.dark .site-main       { background: var(--grey-bg); }
body.dark .welcome-banner  { background: #1c1c2e; border-color: #2e2e4a; }
body.dark .product-card    { background: #1c1c2e; border-color: #2e2e4a; }
body.dark .product-card:hover { box-shadow: 0 3px 10px rgba(244,121,32,.2); }
body.dark .product-card--row {
  background:
    linear-gradient(165deg, rgba(36, 40, 58, 0.98) 0%, rgba(22, 24, 36, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}
body.dark .product-card--row:hover {
  border-color: rgba(244, 121, 32, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(244, 121, 32, 0.18),
    0 6px 18px rgba(0, 0, 0, 0.28);
}
body.dark .search-input    { background: #1c1c2e; border-color: #2e2e4a; color: #e0e0e0; }
body.dark .card            { background: #1c1c2e; border-color: #2e2e4a; }
body.dark .cart-item-row   { background: #1c1c2e; border-color: #2e2e4a; }
body.dark .cart-total      { background: #1c1c2e; border-color: #2e2e4a; }
body.dark .modal           { background: #1c1c2e; }
body.dark .site-footer     { background: #121212; border-color: transparent; color: #666; }
body.dark .qty-btn         { background: #111; border-color: #2e2e4a; color: #e0e0e0; }
body.dark .profile-detail-card { background: #1c1c2e; }
body.dark .filter-wrap     { background: #12122a !important; }
body.dark .fp-option       {
  background: #2a2a2e !important;
  border-color: #3d3d42 !important;
  color: #e8e8e8 !important;
}
body.dark .fp-option.active { background: var(--orange) !important; color: #fff !important; border-color: var(--orange) !important; }
body.dark .fp-search-input { background: #111 !important; color: #e0e0e0 !important; }

html {
  background: #121212 !important;
}
html, body {
  height: auto;
  min-height: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  background: #121212;
  color: var(--text);
  overflow-x: hidden;
}

a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.hidden { display: none !important; }

/* ===================================================
   LANGUAGE BAR
   =================================================== */
.lang-bar {
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 6px 14px;
  border-bottom: 1px solid rgba(244,121,32,.25);
}

.lang-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.konkursai-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 4px;
  border: 1px solid rgba(244, 121, 32, 0.55);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(244,121,32,0.22), rgba(0,0,0,0.35));
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.konkursai-btn:hover {
  background: linear-gradient(135deg, rgba(244,121,32,0.4), rgba(0,0,0,0.4));
  border-color: var(--orange);
}
.konkursai-btn:active { transform: scale(0.97); }
.konkursai-btn.active {
  background: var(--orange);
  border-color: #fff;
}
.konkursai-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 1.5px rgba(255,140,0,0.9);
}
.konkursai-lbl {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.lang-btns {
  display: flex;
  gap: 6px;
}

/* Theme toggle removed — app is always dark */
.theme-toggle { display: none !important; }

.lang-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #ccc;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
  letter-spacing: .3px;
}

.lang-btn:hover {
  background: rgba(244,121,32,.3);
  border-color: var(--orange);
  color: #fff;
}

.lang-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ===================================================
   HEADER / BANNER — dragon / ALPHABAY LTU brand style
   =================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 120, 20, 0.35);
  box-shadow: 0 4px 22px rgba(0,0,0,.75);
  background:
    radial-gradient(ellipse 80% 120% at 15% 40%, rgba(255,90,20,0.18), transparent 55%),
    radial-gradient(ellipse 60% 100% at 85% 60%, rgba(180,40,0,0.12), transparent 50%),
    linear-gradient(180deg, #0c0c10 0%, #16151a 45%, #0a0a0d 100%);
  overflow: hidden;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 2px,
      rgba(255,255,255,0.015) 2px,
      rgba(255,255,255,0.015) 3px
    );
  pointer-events: none;
  opacity: 0.7;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff6a1a 20%, #ffb347 50%, #ff6a1a 80%, transparent);
  opacity: 0.85;
  pointer-events: none;
}

.site-banner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 12px;
}

.banner-dragon-logo {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow:
    0 0 0 2px rgba(255, 120, 20, 0.85),
    0 0 16px rgba(255, 80, 0, 0.45),
    0 4px 12px rgba(0,0,0,0.55);
}

.banner-text {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.banner-aside {
  margin-left: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.banner-aside .konkursai-btn {
  padding: 3px 9px 3px 3px;
}
.banner-aside .konkursai-logo {
  width: 20px;
  height: 20px;
}
.banner-aside .konkursai-lbl {
  font-size: 10px;
  letter-spacing: 0.5px;
}

.banner-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 140, 40, 0.45);
  background: linear-gradient(135deg, rgba(255,120,20,0.18), rgba(0,0,0,0.45));
  box-shadow: 0 0 12px rgba(255, 90, 0, 0.18), inset 0 1px 0 rgba(255,255,255,0.08);
  color: #ffe0b0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.1px;
  line-height: 1;
  white-space: nowrap;
}
.banner-chip--city {
  border-color: rgba(255, 90, 60, 0.55);
  color: #ffd4a8;
}
.banner-chip--live {
  border-color: rgba(46, 204, 113, 0.45);
  background: linear-gradient(135deg, rgba(46,204,113,0.16), rgba(0,0,0,0.45));
  color: #d8ffe8;
}
.banner-chip-ico {
  display: inline-flex;
  color: #ff6a2a;
}
.banner-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 2px rgba(46,204,113,0.25), 0 0 8px rgba(46,204,113,0.8);
  animation: bannerLivePulse 1.6s ease-in-out infinite;
}
@keyframes bannerLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.85); }
}

.banner-brand-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1.2px;
  line-height: 1.05;
  text-transform: uppercase;
  background: linear-gradient(
    180deg,
    #fff3c4 0%,
    #ffe066 18%,
    #ffb020 42%,
    #ff7a00 68%,
    #ff4d00 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(255, 200, 80, 0.55))
    drop-shadow(0 2px 0 rgba(120, 30, 0, 0.65))
    drop-shadow(0 0 12px rgba(255, 140, 0, 0.75))
    drop-shadow(0 0 22px rgba(255, 90, 0, 0.4));
}

.banner-brand-ltu {
  display: flex;
  gap: 3px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1.15;
  margin-top: 1px;
  text-shadow: 0 2px 0 rgba(0,0,0,0.55);
}
.ltu-l { color: #f1c40f; }
.ltu-t { color: #2ecc71; }
.ltu-u { color: #e74c3c; }

.banner-city-hint {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 200, 140, 0.45);
}

/* Legacy class hooks kept inert if referenced */
.banner-logo-svg { display: none; }
.banner-alpha, .banner-bay, .banner-ltu, .banner-divider, .banner-subtitle { display: none; }

/* Header meta (cart + user) */
.header-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  flex-shrink: 0;
}

.balance-label { color: #aaa; }

.balance-value, .user-name {
  font-weight: 700;
  color: var(--orange);
}

@media (max-width: 420px) {
  .banner-dragon-logo { width: 50px; height: 50px; }
  .banner-brand-name { font-size: 18px; letter-spacing: 0.8px; }
  .banner-brand-ltu { font-size: 13px; letter-spacing: 2.5px; }
  .banner-brand-sub { font-size: 9px; letter-spacing: 2.8px; }
  .site-banner { padding: 8px 12px; gap: 10px; }
  .banner-chip { padding: 4px 8px; font-size: 9px; letter-spacing: 0.8px; }
  .banner-aside { gap: 5px; }
}

/* ===================================================
   NAVIGATION
   =================================================== */
.site-nav {
  background: var(--orange);
  display: flex;
  align-items: center;
  gap: 0;
  padding: 3px 4px 2px;
  position: sticky;
  top: 84px;
  z-index: 99;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }

.nav-link {
  display: inline-block;
  padding: 10px 12px;
  color: var(--white);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .4px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: background .15s, border-color .15s;
  text-decoration: none;
}

.nav-link--icon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  padding: 4px 1px 3px;
  position: relative;
  font-size: initial;
  line-height: 1.05;
  text-align: center;
}

.nav-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 26px;
}

.nav-lbl {
  display: block;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.05px;
  line-height: 1.05;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-link--icon.active .nav-lbl,
.nav-link--icon:hover .nav-lbl {
  color: #fff;
}

.nav-icon {
  width: 26px;
  height: 26px;
  display: block;
  flex-shrink: 0;
  color: var(--white);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  transition: transform 0.15s ease, filter 0.15s ease;
}

.nav-link--icon:hover .nav-icon,
.nav-link--icon.active .nav-icon {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transform: translateY(-1px) scale(1.06);
}

.nav-icon-wrap .nav-badge {
  position: absolute;
  top: -4px;
  right: -7px;
  margin-left: 0;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  font-size: 9px;
  line-height: 15px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}

.nav-link:hover,
.nav-link.active {
  background: rgba(0,0,0,.18);
  border-bottom-color: var(--white);
  text-decoration: none;
  border-radius: 8px 8px 0 0;
}

.nav-badge {
  display: inline-block;
  background: var(--white);
  color: var(--orange);
  border-radius: 10px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
  line-height: 16px;
}

/* Nav EUR balance — dark navy + amber (matches orange brand, not mint green) */
.nav-wallet {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  margin: 0 2px 0 1px;
  border: 1.5px solid rgba(255, 196, 86, 0.85);
  border-radius: 16px;
  background: linear-gradient(180deg, #2a3344 0%, #151b28 100%);
  color: #ffc856;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 2px 6px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  flex: 0 0 auto;
  font-family: inherit;
  transition: filter 0.15s, transform 0.1s, border-color 0.15s, box-shadow 0.15s;
}
.nav-wallet:hover {
  filter: brightness(1.08);
  border-color: #ffd78a;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 3px 8px rgba(0, 0, 0, 0.4);
}
.nav-wallet:active {
  transform: scale(0.97);
}
.nav-wallet-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #ffc856;
}
.nav-wallet-text {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #ffe09a;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

/* More menu (⋯) */
.nav-more-wrap {
  position: relative;
  flex-shrink: 0;
}
.nav-more-btn.active {
  background: rgba(0, 0, 0, 0.22);
  border-bottom-color: var(--white);
}
.nav-more-menu {
  position: fixed;
  min-width: 180px;
  background: #1e2a3a;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 9999;
  overflow: hidden;
}
.nav-more-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.25);
}
.nav-more-backdrop.hidden {
  display: none;
}
.nav-more-menu.hidden {
  display: none;
}
.nav-more-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--text, #e8ecf1);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.nav-more-item:hover,
.nav-more-item.active {
  background: rgba(255, 140, 0, 0.2);
}
.nav-more-item + .nav-more-item {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Contacts / Support */
.contacts-list {
  padding: 18px 20px;
  margin-top: 8px;
}
.contacts-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.contacts-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.contacts-row:first-child {
  padding-top: 0;
}
.contacts-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text, #e8edf4);
  min-width: 6.5em;
}
.contacts-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--orange, #ff8c00);
  word-break: break-all;
}
a.contacts-link {
  text-decoration: none;
  cursor: pointer;
}
a.contacts-link:hover,
a.contacts-link:active {
  text-decoration: underline;
  color: #ffb347;
}
.contacts-value--empty {
  color: var(--muted, #8b9cb3);
  font-weight: 400;
  pointer-events: none;
  text-decoration: none;
}

.terms-panel {
  padding: 16px 18px 20px;
  margin-top: 8px;
}
.terms-block + .terms-block {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 140, 0, 0.22);
}
.terms-block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.terms-block-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  background: rgba(255, 140, 0, 0.18);
  border: 1px solid rgba(255, 140, 0, 0.35);
  border-radius: 12px;
}
.terms-block-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--orange, #ff8c00);
  text-transform: uppercase;
}
.terms-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.terms-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 12px 12px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}
body.dark .terms-item {
  background: rgba(0, 0, 0, 0.2);
}
.terms-item-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  background: rgba(255, 140, 0, 0.12);
  border-radius: 10px;
}
.terms-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text, #e8edf4);
}
.terms-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--orange, #ff8c00);
}
.terms-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 14px 14px 14px 12px;
  background: rgba(255, 140, 0, 0.14);
  border: 1px solid rgba(255, 140, 0, 0.45);
  border-radius: 12px;
}
.terms-notice-icon {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
}
.terms-notice p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.3px;
  color: var(--text, #e8edf4);
}
.contacts-intro {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted, #8b9cb3);
  line-height: 1.5;
}
.contact-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  margin-bottom: 12px;
  background: var(--card-bg, #1a2332);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
.contact-card-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.contact-card-body {
  flex: 1;
  min-width: 0;
}
.contact-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted, #8b9cb3);
  margin-bottom: 6px;
}
.contact-link {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--orange, #ff8c00);
  text-decoration: none;
  word-break: break-all;
}
.contact-link:hover {
  text-decoration: underline;
}
.contact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text, #e8ecf1);
}
.contact-open-btn {
  margin-top: 10px;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: var(--orange, #ff8c00);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.contact-open-btn:hover {
  filter: brightness(1.08);
}

.wallet-modal {
  max-height: 92vh;
  overflow-y: auto;
}
.wallet-balance-hero {
  text-align: center;
  padding: 16px 12px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(153, 69, 255, 0.25), rgba(20, 241, 149, 0.12));
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.wallet-balance-sol {
  font-size: 22px;
  font-weight: 800;
  color: #14f195;
  letter-spacing: 0.5px;
}
.wallet-balance-eur {
  font-size: 13px;
  color: #aaa;
  margin-top: 6px;
}
.wallet-hint {
  font-size: 12px;
  color: #999;
  line-height: 1.45;
  margin-bottom: 14px;
  text-align: center;
}
.wallet-refresh-btn {
  margin-top: 8px;
  background: linear-gradient(135deg, #9945ff, #14f195) !important;
}

/* Nav profile pill */
.nav-spacer { display: none; }

.nav-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  margin: 0 1px 0 0;
  background: transparent;
  border-radius: 50%;
  flex: 0 0 auto;
  cursor: pointer;
}
.nav-profile:hover { background: rgba(0,0,0,.18); }

.nav-avatar {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #111;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-profile-info,
.nav-trust {
  display: none !important;
}

@media (max-width: 360px) {
  .nav-lbl { font-size: 6.5px; }
  .nav-wallet { padding: 4px 6px; }
  .nav-wallet-text { font-size: 10px; }
  .nav-icon { width: 20px; height: 20px; }
  .nav-avatar { width: 24px; height: 24px; }
}

/* ===================================================
   MAIN LAYOUT
   =================================================== */
.site-main {
  max-width: 960px;
  margin: 10px auto 0;
  padding: 0 12px;
  min-height: 0;
  height: auto;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
}

.card-title {
  font-weight: 700;
  font-size: 13px;
  background: var(--orange);
  color: var(--white);
  margin: -10px -10px 10px;
  padding: 7px 10px;
  border-radius: var(--radius) var(--radius) 0 0;
  letter-spacing: .3px;
}

/* Avatar */
.avatar-wrap {
  text-align: center;
  margin: 8px 0 10px;
}
.avatar-svg { width: 60px; height: 60px; }

/* Profile table */
.profile-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.profile-table tr + tr td { border-top: 1px solid #eee; }
.pt-label { color: var(--text-muted); padding: 4px 4px 4px 0; width: 60px; }
.pt-value { font-weight: 600; padding: 4px 0; word-break: break-all; }
.profile-orders-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 2px 8px 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(244, 121, 32, 0.45);
  background: rgba(244, 121, 32, 0.12);
  color: var(--orange, #f47920);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.profile-orders-link:hover {
  background: rgba(244, 121, 32, 0.22);
  border-color: var(--orange, #f47920);
}
.profile-orders-chevron {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1;
}

.trust-badge {
  display: inline-block;
  background: #27ae60;
  color: #fff;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

/* Category list */
.cat-list { list-style: none; }
.cat-item {
  padding: 6px 8px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  font-size: 13px;
  transition: background .1s, color .1s;
  border-radius: 2px;
}
.cat-item:last-child { border-bottom: none; }
.cat-item:hover { background: var(--orange-light); color: var(--orange-dark); }
.cat-item.active {
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
}

/* ===================================================
   CONTENT AREA
   =================================================== */
.content {
  width: 100%;
}

.section-block { }

/* Search bar */
.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.search-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  background: var(--white);
  transition: border-color .2s;
}
.search-input:focus { border-color: var(--orange); }
.search-btn {
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.search-btn:hover { background: var(--orange-dark); }

/* Welcome banner */
.welcome-banner {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.welcome-banner--compact {
  padding: 7px 12px;
  margin-bottom: 8px;
}
.welcome-title { font-size: 17px; font-weight: 700; color: var(--text); }
.welcome-banner--compact .welcome-title { font-size: 14px; }
.welcome-title span { color: var(--orange); }
.welcome-sub { color: var(--text-muted); margin-top: 4px; font-size: 13px; }

/* Section heading */
.section-heading {
  font-size: 14px;
  font-weight: 700;
  background: var(--orange);
  color: var(--white);
  padding: 7px 12px;
  border-radius: var(--radius);
  margin-bottom: 10px;
  letter-spacing: .3px;
}
.section-heading--city {
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  margin-bottom: 8px;
}

/* ===================================================
   FILTER TABS
   =================================================== */
.filter-wrap {
  background: #1c1c2e;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 14px;
}
.filter-wrap--compact {
  padding: 7px 8px 8px;
  margin-bottom: 8px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.filter-wrap--compact .filter-tabs {
  gap: 5px;
  margin-bottom: 7px;
}

.filter-tab {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: #aaa;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.filter-wrap--compact .filter-tab {
  padding: 4px 11px;
  font-size: 12px;
}
.filter-tab:hover {
  background: rgba(244,121,32,.2);
  border-color: var(--orange);
  color: #fff;
}
.filter-tab.active {
  background: linear-gradient(180deg, #348c4e 0%, #256338 100%);
  border-color: rgba(124, 255, 178, 0.45);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(124, 255, 178, 0.15),
    0 0 12px rgba(42, 107, 60, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Filter panel */
.filter-panel { }

.fp-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: .8px;
  margin-bottom: 8px;
}
.fp-label-inline {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.6px;
}
.fp-dist-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.fp-dist-city {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 180, 100, 0.75);
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 140, 40, 0.3);
  background: rgba(255, 120, 20, 0.1);
}

.fp-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fp-option {
  background: #2a2a3e;
  border: 1px solid rgba(255,255,255,.1);
  color: #ccc;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  min-width: 100px;
  text-align: center;
}
.fp-option:hover {
  background: rgba(244,121,32,.2);
  border-color: var(--orange);
  color: #fff;
}
.fp-option.active {
  background: #2a2a3e;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 700;
}

.fp-city-districts {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.fp-label-sub {
  margin-top: 0;
}
.fp-dists-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted, #8b9cb3);
  line-height: 1.35;
}
.fp-dists-options {
  margin-bottom: 2px;
  gap: 5px !important;
}
.fp-dists-options .fp-option,
.fp-dists-options .fp-dist-chip,
#fp-district .fp-options .fp-option {
  flex: 0 0 auto !important;
  min-width: max-content !important;
  max-width: none !important;
  padding: 5px 10px !important;
  font-size: 11px !important;
  border-radius: 6px !important;
  line-height: 1.2;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
#fp-category .fp-options { gap: 5px; }
#fp-category .fp-option {
  min-width: 0;
  padding: 6px 10px;
  font-size: 12px;
}
.fp-dists-empty {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted, #8b9cb3);
}

/* Search input inside filter */
.fp-search-row { display: flex; }
.fp-search-input {
  width: 100%;
  background: #2a2a3e;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
}
.fp-search-input::placeholder { color: #666; }
.fp-search-input:focus { border-color: var(--orange); }

/* City label + district chips — wrap so all districts visible (no side-scroll) */
.filter-city-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.filter-city-label {
  /* City heading — not a selectable chip (avoids looking “active” like Visi) */
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 8px 0 2px;
  margin-right: 0;
  margin-top: 1px;
  border-radius: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8e8e9a;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
  white-space: nowrap;
  line-height: 1.2;
  pointer-events: none;
  user-select: none;
}
.filter-city-row #fp-district {
  flex: 1 1 auto;
  min-width: 0;
}
.filter-city-row .fp-dists-options {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  gap: 6px;
  width: 100%;
}
.filter-city-row .fp-dists-options .fp-option,
.filter-city-row .fp-dists-options .fp-dist-chip {
  flex: 0 0 auto;
  max-width: none !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  padding: 5px 8px !important;
  font-size: 10.5px !important;
  line-height: 1.2;
}

/* Emoji category filter (legacy / unused on home) */
.emoji-cat-bar {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
  padding: 0;
}
.emoji-cat-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, transform 0.1s;
  padding: 0;
}
.emoji-cat-btn:hover:not(:disabled) {
  border-color: rgba(244, 121, 32, 0.55);
  background: rgba(244, 121, 32, 0.15);
  transform: scale(1.05);
}
.emoji-cat-btn.active {
  border-color: var(--orange) !important;
  background: var(--orange) !important;
  box-shadow: 0 0 12px rgba(244, 121, 32, 0.4);
  color: #111;
}
.emoji-cat-btn.hidden {
  display: none;
}
.emoji-cat-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.emoji-cat-btn--all {
  font-size: 17px;
}

/* ===================================================
   PRODUCT GRID / DISTRICT MENU — grid lines per district
   =================================================== */
.catalog-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.catalog-menu--stack {
  flex-direction: column;
  gap: 10px;
}

.catalog-dist-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.catalog-dist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 6px 2px 4px;
  border: none;
  border-bottom: 1px solid #333333;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #e8e8e8;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.catalog-dist-head:hover {
  border-bottom-color: rgba(244, 121, 32, 0.55);
  background: transparent;
  color: #fff;
}

.catalog-dist-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #f0f0f0;
}

.catalog-dist-meta {
  font-size: 11px;
  font-weight: 700;
  color: #9a9a9a;
  white-space: nowrap;
}

/* Vertical product list — one full-width card per row */
.product-grid,
.catalog-dist-grid,
.catalog-menu--stack .catalog-dist-grid {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  gap: 0;
  margin-bottom: 12px;
}

.product-grid > .product-card,
.catalog-dist-grid > .product-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 12px;
  flex: 0 0 auto;
}

.product-grid > .product-card:last-child,
.catalog-dist-grid > .product-card:last-child {
  margin-bottom: 0;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 10px 14px;
  box-shadow: none;
  cursor: pointer;
  transition: border-color .12s, background .12s, box-shadow .12s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.product-card:hover {
  border-color: rgba(244, 121, 32, 0.55);
}

/* Dense mini tile for catalog */
.product-card--tile {
  align-items: stretch;
  text-align: left;
  padding: 10px 14px;
  gap: 4px;
  min-height: 0;
}

/* Compact horizontal card content; parent list stays vertical */
.product-card--row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  width: 100%;
  min-height: 0;
  border-radius: 10px;
  background:
    linear-gradient(165deg, rgba(36, 40, 58, 0.98) 0%, rgba(22, 24, 36, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 3px 10px rgba(0, 0, 0, 0.2);
}
.product-card--row .product-row-main {
  justify-content: center;
  gap: 2px;
}
.product-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 600;
  color: #c9a227;
  line-height: 1;
  margin: 0;
  flex-shrink: 0;
  white-space: nowrap;
}
.product-rating-n {
  color: #888888;
  font-weight: 500;
  margin-left: 1px;
}
.product-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  flex-shrink: 0;
  min-width: 0;
  align-self: center;
}
.product-add-btn {
  width: auto;
  min-height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(244, 121, 32, 0.65);
  background: rgba(244, 121, 32, 0.88);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 5px 12px;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none;
  font: inherit;
}
.product-add-lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  white-space: nowrap;
  text-transform: uppercase;
  opacity: 1;
}
.product-buy-btn {
  min-width: 0;
}
.product-add-btn:hover,
.product-add-btn:active {
  background: var(--orange, #f47920);
  border-color: var(--orange, #f47920);
  color: #fff;
}
.product-card--row:hover {
  border-color: rgba(244, 121, 32, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(244, 121, 32, 0.18),
    0 6px 18px rgba(0, 0, 0, 0.28);
}
.product-card--out {
  opacity: 0.72;
}

.product-card--row .product-emoji {
  font-size: 18px;
  min-height: 0;
  margin: 0;
  flex-shrink: 0;
  width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card--row .product-emoji .product-icon-img {
  width: 20px;
  height: 20px;
}

.product-card--row .product-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.product-card--row .product-name {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  -webkit-line-clamp: unset;
  color: #f4f4f8;
  text-decoration: none;
  text-shadow: none;
  -webkit-text-fill-color: #f4f4f8;
}

.product-card--row .product-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px 6px;
  min-width: 0;
  overflow: hidden;
}

.product-card--grouped {
  align-items: flex-start;
  padding-top: 8px;
  padding-bottom: 8px;
}
.product-card--grouped .product-emoji {
  margin-top: 4px;
}
.product-card--grouped .product-card-actions {
  align-self: center;
}
.product-row-top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.product-row-top .product-name {
  flex: 1;
  min-width: 0;
}
.product-row-top .product-stock {
  margin-left: auto;
}
/* Size/weight listings stacked; districts as chips beside each size */
.var-packs {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 3px 0 0;
  max-width: 100%;
}
.var-pack {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 3px 0;
}
.var-pack--split + .var-pack--split {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2px;
  padding-top: 5px;
}
.var-pack-size {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4em;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
  color: #ffc090;
  background: rgba(244, 121, 32, 0.14);
  border: 1px solid rgba(244, 121, 32, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.var-pack--active .var-pack-size {
  color: #fff;
  background: rgba(244, 121, 32, 0.42);
  border-color: rgba(244, 121, 32, 0.85);
  box-shadow: 0 0 0 1px rgba(244, 121, 32, 0.25);
}
.var-pack-dists {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.qty-pill-row {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  gap: 5px;
  margin: 2px 0 0;
  max-width: 100%;
}
.qty-pill {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex: 0 0 auto;
  gap: 0;
  padding: 4px 8px;
  border-radius: 7px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #a8a8b4;
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .12s, background .12s, color .12s, box-shadow .12s;
  opacity: 0.78;
  white-space: nowrap;
}
.qty-pill-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
}
.qty-pill-dist {
  display: none;
}
.product-opt-dist {
  display: none;
}
.qty-pill.is-active {
  border-color: var(--orange, #f47920) !important;
  background: rgba(244, 121, 32, 0.28) !important;
  color: #fff !important;
  box-shadow:
    0 0 0 1.5px rgba(244, 121, 32, 0.55),
    0 0 8px rgba(244, 121, 32, 0.2);
  opacity: 1;
}
.qty-pill.is-active .qty-pill-label {
  color: #fff;
}
.product-card--grouped .product-meta {
  margin-top: 2px;
}
.catalog-menu--grouped {
  gap: 0;
}
.catalog-grouped-list {
  width: 100%;
}

.product-card--row .product-amount-sep {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 200, 140, 0.55);
  opacity: 1;
  margin: 0;
}

.product-card--row .product-size {
  font-size: 11px;
  font-weight: 800;
  color: #ffc078;
  margin: 0;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.product-card--row .product-price {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  margin: 0;
}

.product-card--row .product-stock {
  margin: 0;
  width: auto;
  height: auto;
  min-width: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.stock-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.stock-badge--avail {
  background: rgba(76, 175, 80, 0.2);
  color: #81C784;
  border: none;
}
.stock-badge--out {
  background: rgba(231, 76, 60, 0.14);
  color: #ef9a9a;
  border: none;
}

.product-card--tile .product-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.product-card--tile:not(.product-card--row) .product-emoji {
  font-size: 20px;
  min-height: 22px;
  margin: 0;
  justify-content: flex-start;
}

.product-card--tile:not(.product-card--row) .product-emoji .product-icon-img {
  width: 22px;
  height: 22px;
}

.product-card--tile:not(.product-card--row) .product-name {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card--tile:not(.product-card--row) .product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

.product-card--tile:not(.product-card--row) .product-amount-sep {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  opacity: .7;
  margin: 0;
}

.product-card--tile:not(.product-card--row) .product-size {
  font-size: 12px;
  font-weight: 800;
  color: var(--orange);
  margin: 0;
  letter-spacing: .2px;
  text-transform: uppercase;
}

.product-card--tile:not(.product-card--row) .product-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--orange);
  margin: 0;
}

.product-card--tile:not(.product-card--row) .product-stock {
  margin: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3dcf7a;
  box-shadow: 0 0 0 2px rgba(61, 207, 122, 0.25);
  flex-shrink: 0;
}

/* Tighten home chrome so catalog fits first screen */
#section-home .welcome-banner--compact {
  padding: 0 2px 2px;
  margin-bottom: 2px;
  border: none !important;
  border-left: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
#section-home .welcome-banner--compact .welcome-title {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  color: #a0a0a0;
}
#section-home .welcome-banner--compact .welcome-title span {
  color: #a0a0a0;
}
body.dark .welcome-banner--compact {
  background: transparent !important;
  border-color: transparent !important;
}
#section-home .filter-wrap--compact {
  padding: 3px 4px 3px;
  margin-bottom: 2px;
  background: transparent !important;
  border-radius: 0;
}
#section-home .filter-city-row {
  margin-bottom: 2px;
}
#section-home .fp-dists-options {
  gap: 6px;
  flex-wrap: wrap;
  overflow: visible;
}
#section-home .section-heading--city {
  display: none !important;
}

/* Wholesale / Didmenos + Delivery */
.home-actions {
  margin: 0 0 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.home-actions--bottom {
  margin: 8px 0 4px;
}
.home-actions--bottom .btn-delivery {
  box-shadow: 0 0 14px rgba(244, 121, 32, 0.28);
}
.btn-delivery {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(244, 121, 32, 0.65);
  background: linear-gradient(180deg, rgba(244, 121, 32, 0.32), rgba(244, 121, 32, 0.12));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.btn-delivery:hover {
  border-color: var(--orange);
  background: rgba(244, 121, 32, 0.42);
}
.btn-wholesale {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 7px;
  border: 1px solid rgba(244, 121, 32, 0.55);
  background: linear-gradient(180deg, rgba(244, 121, 32, 0.28), rgba(244, 121, 32, 0.12));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.btn-wholesale:hover {
  border-color: var(--orange);
  background: rgba(244, 121, 32, 0.35);
}
.delivery-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.delivery-tier-row:last-child { border-bottom: none; }
.delivery-tier-info {
  font-size: 13px;
  font-weight: 600;
  color: #e8edf4;
  flex: 1;
  min-width: 0;
}
.btn-delivery-order {
  flex-shrink: 0;
  appearance: none;
  border: 1px solid rgba(46, 204, 113, 0.55);
  background: rgba(46, 204, 113, 0.22);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
}
.btn-delivery-order:hover {
  background: rgba(46, 204, 113, 0.4);
}

.wholesale-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}
.wholesale-overlay.hidden { display: none; }
.wholesale-sheet {
  width: 100%;
  max-width: 440px;
  max-height: min(88vh, 720px);
  overflow: auto;
  background: #161625;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px 14px 10px 10px;
  padding: 14px 14px 12px;
  box-sizing: border-box;
}
.wholesale-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.wholesale-title {
  margin: 0;
  font-size: 17px;
  color: var(--orange);
  font-weight: 800;
}
.wholesale-close {
  background: none;
  border: none;
  color: #9aa3b5;
  font-size: 18px;
  cursor: pointer;
}
.wholesale-sub {
  margin: 0 0 12px;
  font-size: 12px;
  color: #8b9cb3;
}
.wholesale-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.wholesale-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 10px 8px;
}
.wholesale-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.wholesale-card-title .product-icon-img {
  width: 22px;
  height: 22px;
}
.wholesale-tiers {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wholesale-tier {
  font-size: 13px;
  font-weight: 600;
  color: #e8edf4;
  letter-spacing: 0.01em;
  padding: 3px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.wholesale-tier:last-child { border-bottom: none; }
.wholesale-empty {
  margin: 8px 0;
  text-align: center;
  color: #8b9cb3;
  font-size: 13px;
}
.wholesale-done {
  width: 100%;
}

.product-emoji {
  font-size: 34px;
  margin-bottom: 6px;
  line-height: 1;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-icon-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}
.var-card-emoji .product-icon-img,
.ci-emoji .product-icon-img,
.pay-product-emoji .product-icon-img,
.modal-img-placeholder .product-icon-img {
  width: 36px;
  height: 36px;
}
.pay-product-emoji .product-icon-img {
  width: 40px;
  height: 40px;
}

.product-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.3;
  text-decoration: none;
  text-shadow: none;
}

/* Price framing: compare-at + live price + pts / badges */
.price-tag {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 7px;
  max-width: 100%;
}
.price-tag--compact {
  gap: 4px 6px;
}
.price-was {
  font-size: 11px;
  font-weight: 500;
  color: #888888;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: #888888;
  opacity: 1;
}
.price-now {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.product-card--row .price-now {
  color: var(--orange);
  font-size: 14px;
}
.product-card--row .price-was {
  font-size: 11px;
  color: #888888;
}
.price-pts {
  font-size: 10px;
  font-weight: 700;
  color: #ffc078;
  background: rgba(244, 121, 32, 0.16);
  border: 1px solid rgba(244, 121, 32, 0.35);
  border-radius: 999px;
  padding: 2px 7px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.price-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 3px 7px;
  white-space: nowrap;
  line-height: 1.1;
}
.price-badge--save {
  color: #7CFFB2;
  background: rgba(61, 207, 122, 0.14);
  border: 1px solid rgba(61, 207, 122, 0.35);
}
.price-badge--best {
  color: #1a1a12;
  background: linear-gradient(135deg, #ffe08a, #f47920);
  border: none;
  box-shadow: 0 2px 8px rgba(244, 121, 32, 0.35);
}
.stock-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 3px 7px;
}
.stock-badge--out {
  color: #ff8e8e;
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.35);
}
.product-stock--out {
  background: #e74c3c !important;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.25) !important;
}

.product-size {
  font-size: 15px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
  line-height: 1.2;
}

.product-district {
  font-size: 11px;
  font-weight: 600;
  color: #6ab7ff;
  margin-bottom: 4px;
  line-height: 1.2;
}

.product-cat-tag {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.product-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  margin-top: auto;
}

.product-stock {
  margin-top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #27ae60;
  flex-shrink: 0;
}
.product-stock--avail {
  background: transparent;
  box-shadow: none;
}
.product-stock--out {
  background: transparent !important;
  box-shadow: none !important;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.btn-primary:hover { background: var(--orange-dark); }

/* ===================================================
   CART
   =================================================== */
.cart-item-row {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.ci-emoji { font-size: 22px; }
.ci-info { flex: 1; }
.ci-name { font-weight: 700; font-size: 13px; }
.ci-qty  { font-size: 12px; color: var(--text-muted); }
.ci-price { font-weight: 700; color: var(--orange); }
.ci-remove {
  background: none;
  border: none;
  color: #c0392b;
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
}

.cart-total {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  font-size: 15px;
  margin-top: 8px;
}
#totalPrice { font-size: 18px; color: var(--orange); margin-right: auto; }

.empty-msg {
  color: var(--text-muted);
  padding: 20px;
  text-align: center;
  font-style: italic;
}

/* ===================================================
   PROFILE DETAIL
   =================================================== */
.profile-detail-card {
  max-width: 400px;
}
.profile-detail-card .profile-table td { font-size: 13px; padding: 8px 6px; }
.profile-rules-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 140, 0, 0.35);
  border-radius: 8px;
  background: rgba(255, 140, 0, 0.08);
  color: var(--orange, #ff8c00);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.profile-rules-btn:hover {
  background: rgba(255, 140, 0, 0.16);
}
.profile-rules-icon { font-size: 16px; }
.profile-rules-chevron {
  margin-left: auto;
  font-size: 20px;
  font-weight: 400;
  opacity: 0.7;
}
.profile-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--orange, #ff8c00);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.profile-back-btn:hover {
  background: rgba(255, 140, 0, 0.1);
}
body.dark .profile-rules-btn {
  background: rgba(255, 140, 0, 0.12);
  border-color: rgba(255, 140, 0, 0.4);
}

/* ===================================================
   KONKURSAI / CONTESTS
   =================================================== */
.contests-card {
  max-width: 420px;
  padding: 18px 16px 20px;
}
.contests-heading-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  vertical-align: -5px;
  margin-right: 6px;
  box-shadow: 0 0 0 1.5px rgba(255,140,0,0.7);
}
.contests-hero {
  text-align: center;
  margin-bottom: 14px;
}
.contests-hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 10px;
  box-shadow: 0 0 0 3px rgba(244,121,32,0.85), 0 8px 20px rgba(0,0,0,0.35);
}
.contests-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--orange);
}
.contests-sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}
.contests-live-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(231, 76, 60, 0.18);
  border: 1px solid rgba(231, 76, 60, 0.55);
  color: #ff6b5a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.contests-prizes,
.contests-results {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #ddd;
  line-height: 1.35;
}
.contests-results { color: var(--orange, #f47920); }
.contests-steps {
  margin: 0 0 12px;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}
.contests-steps li + li { margin-top: 4px; }
.contests-steps li.contests-step-required {
  color: #ffb020;
  font-weight: 700;
}
.contests-meta {
  font-size: 12px;
  color: #ffb86a;
  font-weight: 600;
  margin: 0 0 14px;
  text-align: center;
}
.contests-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.contests-dalyvauti-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(180deg, #2ecc71, #27ae60);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(46, 204, 113, 0.35);
}
.contests-dalyvauti-btn:hover { filter: brightness(1.06); }
.contests-dalyvauti-btn.is-disabled,
.contests-dalyvauti-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
}
.contests-join-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}
.contests-watch-channel-btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  padding: 13px 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(180deg, #f47920, #d96512);
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 10px rgba(244, 121, 32, 0.35);
  box-sizing: border-box;
}
.contests-watch-channel-btn:hover {
  filter: brightness(1.06);
  text-decoration: none;
}
.contests-wheel-link { display: none !important; }
.contests-join-msg {
  margin: 0;
  font-size: 12px;
  text-align: center;
  color: #aaa;
}
.contests-join-msg.ok { color: #2ecc71; }
.contests-join-msg.err { color: #e74c3c; }
.contests-wheel-link {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
}
.contests-wheel-link:hover { text-decoration: underline; }

@media (max-width: 380px) {
  .konkursai-lbl { font-size: 10px; letter-spacing: 0.3px; }
  .konkursai-btn { padding: 3px 8px 3px 3px; gap: 5px; }
}

.mystery-open-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(180deg, #2ecc71, #27ae60);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(46, 204, 113, 0.4);
  letter-spacing: 0.02em;
}
.mystery-open-btn:hover { filter: brightness(1.06); }
.contests-watch-channel-btn.btn-secondary,
a.contests-watch-channel-btn {
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  color: #ddd !important;
  box-shadow: none !important;
  font-size: 13px !important;
  padding: 11px 14px !important;
}

.mystery-overlay {
  position: fixed;
  inset: 0;
  z-index: 9200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}
.mystery-overlay.hidden { display: none !important; }

.mystery-panel {
  width: 100%;
  max-width: 400px;
  max-height: min(92vh, 720px);
  overflow-y: auto;
  background:
    linear-gradient(165deg, #161920 0%, #0d0f12 100%);
  border: 1px solid rgba(255, 120, 0, 0.22);
  border-radius: 18px;
  padding: 16px 16px 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 24px rgba(255, 120, 0, 0.12),
    0 20px 48px rgba(0, 0, 0, 0.55);
  position: relative;
}
.mystery-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.mystery-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}
.mystery-close {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
}
.mystery-sub {
  margin: 0 0 12px;
  font-size: 13px;
  color: #aaa;
  line-height: 1.4;
}
.mystery-keys-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.mystery-keys {
  font-size: 15px;
  font-weight: 800;
  color: #ffc078;
}
.mystery-daily-btn {
  border: 1px solid rgba(124, 255, 178, 0.4);
  background: rgba(42, 107, 60, 0.35);
  color: #7CFFB2;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.mystery-daily-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.mystery-hint {
  margin: 0 0 14px;
  font-size: 11px;
  color: #888;
  line-height: 1.35;
}
.mystery-safes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.mystery-safe {
  appearance: none;
  border: 2px solid rgba(255, 196, 86, 0.28);
  background:
    linear-gradient(165deg, #2c303c 0%, #151820 55%, #0e1016 100%);
  border-radius: 14px;
  padding: 14px 8px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.35);
}
.mystery-safe:hover:not(:disabled) {
  border-color: rgba(244, 121, 32, 0.85);
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(244, 121, 32, 0.25),
    0 8px 18px rgba(244, 121, 32, 0.22);
}
.mystery-safe:disabled { cursor: default; opacity: 0.75; }
.mystery-safe.is-opening {
  animation: mysteryShake 0.45s ease-in-out;
  border-color: #f47920;
}
.mystery-safe.is-denied {
  animation: mysteryShake 0.4s ease-in-out;
  border-color: #e74c3c;
}
.mystery-safe.is-open {
  border-color: #7CFFB2;
  box-shadow:
    inset 0 0 18px rgba(61, 207, 122, 0.15),
    0 0 16px rgba(61, 207, 122, 0.2);
}
.mystery-safe-door {
  position: relative;
  width: 52px;
  height: 62px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #3a3f4f 0%, #1c202b 100%);
  border: 2px solid rgba(255, 200, 120, 0.35);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.45),
    inset 0 8px 12px rgba(255, 255, 255, 0.04),
    0 0 10px rgba(244, 121, 32, 0.15);
}
.mystery-safe-lock {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #ffc078;
  box-shadow: 0 0 8px rgba(255, 192, 120, 0.65);
}
.mystery-safe-lock::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffc078;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px #ffc078;
}
.mystery-safe-pad {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: 28px;
  height: 22px;
  border-radius: 4px;
  background: #0a0c12;
  border: 1px solid rgba(124, 255, 178, 0.35);
  box-shadow: inset 0 0 8px rgba(124, 255, 178, 0.15);
}
.mystery-safe-pad::before {
  content: "";
  position: absolute;
  inset: 4px 5px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(124, 255, 178, 0.55) 0 3px,
      transparent 3px 6px
    );
  opacity: 0.85;
  border-radius: 2px;
}
.mystery-safe.is-open .mystery-safe-door {
  border-color: rgba(124, 255, 178, 0.7);
  box-shadow: 0 0 14px rgba(61, 207, 122, 0.35);
}
.mystery-safe.is-open .mystery-safe-lock {
  border-color: #7CFFB2;
  box-shadow: 0 0 10px rgba(124, 255, 178, 0.8);
}
.mystery-safe-lbl {
  font-size: 12px;
  font-weight: 800;
  color: #ffc078;
  letter-spacing: 0.08em;
}
@keyframes mysteryShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px) rotate(-2deg); }
  75% { transform: translateX(5px) rotate(2deg); }
}
.mystery-status {
  min-height: 0;
  margin: 0 0 8px;
  text-align: center;
  font-size: 12px;
  color: #aaa;
}
.mystery-status.hidden { display: none !important; }
.mystery-ref-btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
.mystery-result {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 18px;
}
.mystery-result.hidden { display: none !important; }
.mystery-result-card {
  width: 100%;
  max-width: 300px;
  background: #1c1c2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 22px 18px 16px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.mystery-result-emoji { font-size: 42px; margin-bottom: 10px; }
.mystery-result-text {
  margin: 0 0 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.mystery-result-ok {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(180deg, #f47920, #d96512);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 120, 0, 0.3);
}

.mystery-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.mystery-hud-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0d0f12;
}
.mystery-hud-keys {
  color: #ffc078;
  box-shadow: 0 0 12px rgba(255, 120, 0, 0.18);
  border-color: rgba(255, 120, 0, 0.35);
}
.mystery-hud-plus {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: none;
  background: linear-gradient(180deg, #ff8a2b, #ff6b00);
  color: #111;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 0 10px rgba(255, 120, 0, 0.4);
}
.mystery-hud-gold { color: #ffd700; border-color: rgba(255, 215, 0, 0.35); }
.mystery-hud-bal {
  color: #7CFFB2;
  border-color: rgba(124, 255, 178, 0.35);
  box-shadow: 0 0 14px rgba(61, 207, 122, 0.28);
  margin-left: auto;
}

.mystery-flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 0 0 10px;
  border-radius: 12px;
  background: linear-gradient(105deg, rgba(255, 180, 0, 0.2), rgba(255, 80, 0, 0.12));
  border: 1px solid rgba(255, 180, 0, 0.55);
  box-shadow: 0 0 18px rgba(255, 140, 0, 0.25);
  animation: mysteryFlashPulse 1.6s ease-in-out infinite;
}
.mystery-flash.hidden { display: none !important; }
.mystery-flash-ico { font-size: 22px; }
.mystery-flash strong { display: block; font-size: 12px; color: #ffd27a; letter-spacing: 0.06em; }
.mystery-flash span { font-size: 11px; color: #eee; font-variant-numeric: tabular-nums; }
.mystery-flash-btn {
  margin-left: auto;
  border: none;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
  background: linear-gradient(180deg, #ffd700, #ff8a00);
  color: #111;
  cursor: pointer;
  white-space: nowrap;
}
@keyframes mysteryFlashPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 140, 0, 0.2); }
  50% { box-shadow: 0 0 22px rgba(255, 180, 0, 0.45); }
}

.mystery-streak {
  margin: 0 0 12px;
  padding: 10px 8px 8px;
  border-radius: 12px;
  background: #0d0f12;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.mystery-streak-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 6px;
}
.mystery-streak-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #888;
  background: #161920;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.mystery-streak-step.is-done {
  color: #111;
  background: linear-gradient(180deg, #ff8a2b, #ff6b00);
  border-color: #ff8a2b;
  box-shadow: 0 0 12px rgba(255, 120, 0, 0.4);
}
.mystery-streak-step.is-now {
  box-shadow: 0 0 0 2px rgba(255, 120, 0, 0.55);
  color: #ffc078;
}
.mystery-streak-gold.is-done,
.mystery-streak-gold.is-now {
  background: linear-gradient(180deg, #ffe566, #ffb000);
  color: #111;
  box-shadow: 0 0 16px rgba(255, 200, 0, 0.5);
}
.mystery-streak-line {
  flex: 1;
  height: 2px;
  max-width: 28px;
  background: rgba(255, 255, 255, 0.12);
}
.mystery-streak-line.is-done { background: rgba(255, 120, 0, 0.7); }
.mystery-streak-lbl {
  margin: 0;
  text-align: center;
  font-size: 10px;
  color: #999;
  line-height: 1.35;
}

.mystery-tier-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0 0 10px;
}
.mystery-tier-tab {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d0f12;
  color: #bbb;
  border-radius: 10px;
  padding: 8px 4px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.mystery-tier-tab.active {
  color: #111;
  background: linear-gradient(180deg, #ff8a2b, #ff6b00);
  border-color: #ff8a2b;
  box-shadow: 0 0 15px rgba(255, 120, 0, 0.3);
}
.mystery-tier-tab.is-locked { opacity: 0.55; }

.mystery-safe.tier-bronze { border-color: rgba(205, 127, 50, 0.45); }
.mystery-safe.tier-silver { border-color: rgba(192, 192, 220, 0.5); }
.mystery-safe.tier-gold {
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow: 0 0 14px rgba(255, 200, 0, 0.2);
}
.mystery-safe.tier-flash {
  border-color: rgba(255, 80, 0, 0.7);
  box-shadow: 0 0 18px rgba(255, 100, 0, 0.35);
}
.mystery-safe.is-selected {
  box-shadow: 0 0 15px rgba(255, 120, 0, 0.45);
  border-color: #ff7800;
}

.mystery-ref-stats {
  margin: 0 0 8px;
  text-align: center;
  font-size: 11px;
  color: #ffc078;
  font-weight: 700;
}

.mystery-spin-lock {
  font-size: 48px;
  margin-bottom: 8px;
  animation: mysteryLockSpin 2s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 0 12px rgba(255, 180, 0, 0.7));
}
.mystery-spin-lock.is-done { display: none; }
.mystery-result-emoji { opacity: 0; transform: scale(0.6); transition: opacity 0.25s, transform 0.25s; }
.mystery-result-emoji.is-shown { opacity: 1; transform: scale(1); }
@keyframes mysteryLockSpin {
  0% { transform: rotate(0deg) scale(1); }
  40% { transform: rotate(540deg) scale(1.15); }
  70% { transform: rotate(720deg) scale(0.95); }
  100% { transform: rotate(720deg) scale(1.2); opacity: 0.2; }
}
.mystery-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 16px;
}
.mystery-burst i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff8a00;
  box-shadow: 0 0 8px #ff8a00;
  animation: mysteryBurstFly 0.9s ease-out forwards;
}
@keyframes mysteryBurstFly {
  to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

/* ===================================================
   MODAL
   =================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal {
  background: var(--white);
  border-radius: 6px;
  padding: 20px;
  width: 100%;
  max-width: 360px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}

.modal-close {
  position: absolute;
  top: 10px; right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.modal-close:hover { color: var(--text); }

.modal-img-wrap { text-align: center; margin-bottom: 12px; }
.modal-img-placeholder { font-size: 64px; line-height: 1; }

.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.modal-cat { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.modal-desc { font-size: 13px; color: #555; margin-bottom: 14px; line-height: 1.5; }

.modal-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.modal-price { font-size: 20px; font-weight: 700; color: var(--orange); }

.qty-row { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 28px; height: 28px;
  background: var(--grey-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  transition: background .1s;
}
.qty-btn:hover { background: var(--orange-light); }
.qty-val { font-weight: 700; font-size: 15px; min-width: 20px; text-align: center; }

/* ===================================================
   REFERRAL SECTION
   =================================================== */
.ref-hero {
  background: linear-gradient(135deg, #1a1a2e, #0f0f22);
  border: 1px solid #2e2e4a;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 14px;
}
body:not(.dark) .ref-hero { background: linear-gradient(135deg, #1a1a2e, #0f0f22); }

.ref-hero-icon { font-size: 40px; margin-bottom: 10px; }
.ref-hero-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 6px;
}
.ref-hero-sub { font-size: 13px; color: #aaa; }

/* Rewards grid */
.ref-rewards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.ref-reward-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: var(--shadow);
}

.ref-reward-icon { font-size: 26px; margin-bottom: 8px; }
.ref-reward-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.ref-reward-val { font-size: 28px; font-weight: 800; color: var(--orange); margin-bottom: 4px; }
.ref-reward-desc { font-size: 11px; color: var(--text-muted); line-height: 1.4; }

/* Code / link block */
.ref-code-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}

.ref-code-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; }

.ref-code-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ref-code-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 1.5px;
  flex: 1;
  font-family: monospace;
}

.ref-link-val {
  font-size: 11px;
  color: var(--text-muted);
  word-break: break-all;
  flex: 1;
  line-height: 1.4;
}

.ref-copy-btn {
  background: rgba(244,121,32,.1);
  border: 1px solid rgba(244,121,32,.35);
  color: var(--orange);
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s;
}
.ref-copy-btn:hover { background: rgba(244,121,32,.22); }
.ref-copy-btn.copied { background: #27ae60; border-color: #27ae60; color: #fff; }

.ref-share-btn {
  width: 100%;
  margin-top: 10px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 11px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.ref-share-btn:hover { background: var(--orange-dark); }

/* Stats row */
.ref-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.ref-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow);
}

.ref-stat-val { font-size: 24px; font-weight: 800; color: var(--orange); }
.ref-stat-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: #121212;
  border-top: none;
  text-align: center;
  /* Only clear fixed nav height — do NOT add safe-area again (nav already has it) */
  padding: 6px 12px 58px;
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ===================================================
   RESPONSIVE — mobile
   =================================================== */
@media (max-width: 600px) {
  .site-main {
    padding: 0 8px;
    margin-top: 10px;
    min-height: 0;
    height: auto;
  }
  .site-footer {
    padding: 4px 8px 58px;
    background: #121212;
  }

  .header-meta { display: none; }

  .site-name { font-size: 18px; }

  .modal { max-width: 100%; }
}

/* ===================================================
   ORDER CONFIRMATION OVERLAY — compact sheet (menu stays visible)
   =================================================== */
.ord-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 12, 0.55);
  z-index: 220; /* above sticky header/nav so Atgal is tappable */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 10px 10px;
  overflow: hidden;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.ord-screen {
  width: 100%;
  max-width: 420px;
  max-height: min(72vh, 580px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(244,121,32,0.12), transparent 55%),
    linear-gradient(180deg, #161622 0%, #0f0f18 100%);
  border: 1px solid rgba(244, 121, 32, 0.35);
  border-radius: 18px;
  box-shadow: 0 -8px 36px rgba(0, 0, 0, 0.55);
  animation: ordSheetIn 0.22s ease-out;
}

@keyframes ordSheetIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ord-block {
  background: #141428;
  border: 1px solid #252540;
  border-radius: 14px;
  padding: 12px 14px;
}

.ord-top-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #f47920;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ord-variant-val {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.ord-location {
  font-size: 14px;
  color: #aaa;
}

.ord-field-label {
  font-size: 11px;
  color: #888;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ord-method-box {
  background: #0d0d1a;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ord-method-btn {
  flex: 1;
  min-width: 110px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #bbb;
  background: #151528;
  border: 1px solid #2a2a42;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}

.ord-method-btn.active {
  color: #fff;
  border-color: #f5a623;
  background: #1f1830;
}

.ord-method-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.ord-method-sol {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.ord-sol-icon {
  width: 22px;
  height: 17px;
  flex-shrink: 0;
  display: block;
}

.ord-bal-icon {
  font-size: 15px;
  line-height: 1;
}

.ord-bal-amount {
  font-size: 12px;
  font-weight: 600;
  color: #f5a623;
  margin-left: 2px;
}

.ord-method-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #aaa;
  line-height: 1.35;
}

.ord-method-hint.warn {
  color: #e67e22;
}

.ord-method-hint.error {
  color: #e74c3c;
}

.ord-method-hint.ok {
  color: #2ecc71;
}

.ord-coupon-row {
  display: flex;
  gap: 8px;
}

.ord-coupon-input {
  flex: 1;
  background: #0d0d1a;
  border: 1px solid #2a2a42;
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  outline: none;
  text-transform: uppercase;
}
.ord-coupon-input:focus { border-color: #f47920; }
.ord-coupon-input::placeholder { color: #555; font-weight: 400; letter-spacing: .5px; text-transform: uppercase; }

.ord-coupon-apply-btn {
  background: rgba(244,121,32,.15);
  border: 1px solid rgba(244,121,32,.4);
  color: #f47920;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.ord-coupon-apply-btn:hover { background: rgba(244,121,32,.28); }

.ord-coupon-msg {
  margin-top: 8px;
  font-size: 12px;
  min-height: 16px;
}
.ord-coupon-msg.success { color: #27ae60; }
.ord-coupon-msg.error   { color: #e74c3c; }

.ord-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
}

.ord-price-label { color: #888; font-size: 13px; }

.ord-price-orig {
  color: #666;
  font-size: 15px;
  text-decoration: line-through;
}

.ord-price-final {
  font-size: 22px;
  font-weight: 700;
  color: #f47920;
}

.ord-submit-btn {
  width: 100%;
  background: #f47920;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  letter-spacing: .3px;
  margin-top: 2px;
  flex-shrink: 0;
}
.ord-submit-btn:hover  { background: #c85e0a; }
.ord-submit-btn:active { transform: scale(.98); }

.ord-back-btn {
  width: 100%;
  background: #141428;
  border: 1px solid #252540;
  color: #aaa;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.ord-back-btn:hover { background: #1e1e38; color: #fff; }

/* ===================================================
   DISTRICT SELECTION OVERLAY — compact sheet (menu stays visible)
   =================================================== */
.dist-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 12, 0.55);
  z-index: 220;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px 10px;
  overflow: hidden;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.dist-screen {
  width: 100%;
  max-width: 420px;
  max-height: min(68vh, 520px);
  display: flex;
  flex-direction: column;
  padding: 14px 14px 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(244,121,32,0.12), transparent 55%),
    linear-gradient(180deg, #161622 0%, #0f0f18 100%);
  border: 1px solid rgba(244, 121, 32, 0.35);
  border-radius: 18px;
  box-shadow: 0 -8px 36px rgba(0, 0, 0, 0.55);
  animation: distSheetIn 0.22s ease-out;
}

@keyframes distSheetIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dist-top-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #f47920;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.dist-city-name {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
}

.dist-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.dist-btn {
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  border-radius: 14px;
  padding: 14px 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background .15s, border-color .15s, transform .1s;
  width: 100%;
}

.dist-btn-name { font-size: 15px; font-weight: 700; }
.dist-btn-meta {
  font-size: 12px;
  font-weight: 500;
  color: #9aa0b4;
}

.dist-btn:hover {
  background: #222240;
  border-color: #f47920;
  transform: translateY(-1px);
}

.dist-btn:active { transform: scale(.98); }

.dist-btn--disabled,
.dist-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  border-color: #2a2a3e;
  transform: none;
}
.dist-btn--disabled:hover,
.dist-btn:disabled:hover {
  background: #1a1a2e;
  border-color: #2a2a3e;
  transform: none;
}
.dist-btn--disabled .dist-btn-meta {
  color: #c47a7a;
}

.dist-back-btn {
  width: 100%;
  background: #141422;
  border: 1px solid #2a2a3e;
  color: #aaa;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: background .15s, color .15s;
  letter-spacing: .3px;
  flex-shrink: 0;
}

.dist-back-btn:hover { background: #1e1e38; color: #fff; }

.dist-empty {
  padding: 20px 16px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted, #888);
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid rgba(231, 76, 60, 0.25);
  border-radius: 10px;
}

/* ===================================================
   VARIANT SELECTION OVERLAY — compact sheet (menu stays visible)
   =================================================== */
.var-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 12, 0.55);
  z-index: 220;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px 10px;
  overflow: hidden;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.var-screen {
  width: 100%;
  max-width: 420px;
  max-height: min(82vh, 680px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 14px 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(244,121,32,0.12), transparent 55%),
    linear-gradient(180deg, #161622 0%, #0f0f18 100%);
  border: 1px solid rgba(244, 121, 32, 0.35);
  border-radius: 18px;
  box-shadow: 0 -8px 36px rgba(0, 0, 0, 0.55);
  animation: varSheetIn 0.22s ease-out;
}

@keyframes varSheetIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.var-top-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #f47920;
  text-transform: uppercase;
  margin-bottom: 4px;
  align-self: flex-start;
}

.var-product-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  align-self: flex-start;
  line-height: 1.25;
}

.var-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
  width: 100%;
  margin-bottom: auto;
}

.var-card {
  background: #1a1a2e;
  border: 2px solid #2a2a3e;
  border-radius: 16px;
  padding: 22px 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: border-color .15s, transform .12s, background .15s;
  user-select: none;
}

.var-card:hover {
  border-color: #f47920;
  background: #1f1f35;
  transform: translateY(-3px);
}

.var-card.selected {
  border-color: #f47920;
  background: rgba(244,121,32,.12);
}

.var-card-emoji {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
}

.var-card-qty {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.var-card-price {
  font-size: 14px;
  color: #aaa;
}

.var-card-price strong {
  color: #f47920;
  font-size: 16px;
}

.var-pick-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: #aaa;
  text-align: center;
}

.var-cards.var-cards--pieces {
  grid-template-columns: 1fr;
  max-width: 400px;
  width: 100%;
  margin: 0 auto 6px;
  gap: 8px;
}

.var-card.var-card--piece {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  width: 100%;
  gap: 12px;
  background:
    linear-gradient(165deg, rgba(32, 34, 52, 0.98) 0%, rgba(22, 23, 36, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.var-card.var-card--piece.var-card--best {
  border-color: rgba(244, 121, 32, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(244, 121, 32, 0.2),
    0 8px 20px rgba(244, 121, 32, 0.12);
}
.var-card.var-card--piece.selected {
  border-color: #f47920;
  background: rgba(244, 121, 32, 0.14);
}

.var-card--piece .var-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.var-card-qty-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}

.var-card--piece .var-card-emoji {
  font-size: 36px;
  margin-bottom: 0;
}

.var-card--piece .var-card-emoji .product-icon-img {
  width: 36px;
  height: 36px;
}

.var-card--piece .var-card-qty {
  font-size: 17px;
  margin-bottom: 0;
  text-align: left;
}

.var-card--piece .var-card-price {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.var-card--piece .var-card-price .price-now {
  font-size: 17px;
}
.var-card--piece .var-card-price .price-was {
  font-size: 12px;
}

.var-card-per {
  font-size: 10px;
  color: #888;
  font-weight: 500;
}

.var-districts {
  max-width: 400px;
  width: 100%;
  margin: 4px auto 10px;
}
.var-districts.hidden { display: none; }
.var-districts-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #aaa;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.var-districts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.var-dist-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e8e8e8;
  cursor: pointer;
  font: inherit;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .12s, background .12s, box-shadow .12s;
}
.var-dist-btn:hover {
  border-color: rgba(244, 121, 32, 0.45);
}
.var-dist-btn.selected {
  border-color: var(--orange, #f47920);
  background: rgba(244, 121, 32, 0.16);
  box-shadow: 0 0 0 1px rgba(244, 121, 32, 0.35);
}
.var-dist-name {
  font-size: 15px;
  font-weight: 800;
}
.var-dist-meta {
  font-size: 11px;
  font-weight: 700;
  color: #7dcea0;
  white-space: nowrap;
}

.product-buy-hint {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #8a8a96;
  margin-top: 2px;
}

.var-custom-qty {
  max-width: 400px;
  width: 100%;
  margin: 8px auto 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.var-custom-label {
  display: block;
  font-size: 12px;
  color: #aaa;
  margin-bottom: 10px;
  text-align: center;
}

.var-custom-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.var-qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: #2a2a2a;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.var-qty-btn:active {
  background: #f47920;
}

.var-qty-input {
  width: 72px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(244, 121, 32, 0.55);
  background: #141414;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}

.var-qty-input::-webkit-outer-spin-button,
.var-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.var-qty-unit {
  font-size: 13px;
  color: #aaa;
  min-width: 28px;
}

.var-custom-total {
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: #f47920;
  margin-bottom: 12px;
}

.var-custom-actions {
  display: flex;
  gap: 8px;
}

.var-custom-actions .btn-primary,
.var-custom-actions .btn-buy {
  flex: 1;
}

.var-reviews {
  width: 100%;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-self: stretch;
}
.var-reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.var-reviews-title {
  font-size: 12px;
  font-weight: 700;
  color: #f47920;
  letter-spacing: 0.2px;
}
.var-reviews-count {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(244, 121, 32, 0.25);
  border: 1px solid rgba(244, 121, 32, 0.4);
  border-radius: 999px;
  padding: 2px 8px;
  min-width: 1.5em;
  text-align: center;
}
.var-reviews-count:empty {
  display: none;
}
.var-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.var-review-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 11px;
}
.var-review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.var-review-stars {
  font-size: 12px;
  letter-spacing: 1px;
}
.var-review-user {
  font-size: 11px;
  font-weight: 700;
  color: #e8e8f0;
}
.var-review-text {
  font-size: 12px;
  line-height: 1.4;
  color: #c8c8d8;
  margin: 0 0 4px;
  white-space: pre-wrap;
  word-break: break-word;
}
.var-review-meta {
  font-size: 10px;
  color: #7a8098;
}
.var-reviews-empty,
.var-reviews-loading {
  font-size: 12px;
  color: #8b9cb3;
  margin: 0;
  line-height: 1.4;
}

/* Orders history */
.orders-list,
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.order-card {
  padding: 14px 16px;
}
.order-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.order-card-emoji {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.order-card-info {
  flex: 1;
  min-width: 0;
}
.order-card-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}
.order-card-meta {
  font-size: 12px;
  color: var(--muted, #8b9cb3);
  line-height: 1.4;
}
.order-card-price {
  font-weight: 700;
  color: var(--orange, #ff8c00);
  white-space: nowrap;
}
.order-card-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.order-card-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}
.order-receive-btn {
  font-size: 12px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text, #e8ecf4);
  border: 1px solid rgba(255, 140, 0, 0.45);
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.order-receive-btn:hover:not(:disabled) {
  background: rgba(255, 140, 0, 0.18);
  border-color: var(--orange, #ff8c00);
}
.order-receive-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.order-cancel-btn {
  font-size: 12px;
  padding: 8px 14px;
  background: rgba(220, 60, 60, 0.12);
  color: #ff8f8f;
  border: 1px solid rgba(220, 60, 60, 0.45);
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.order-cancel-btn:hover:not(:disabled) {
  background: rgba(220, 60, 60, 0.22);
  border-color: #e05555;
}
.order-cancel-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.order-status-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  vertical-align: middle;
}
.order-status-unpaid {
  color: #ffb347;
  background: rgba(255, 140, 0, 0.15);
  border: 1px solid rgba(255, 140, 0, 0.45);
}
.order-status-pay-btn {
  cursor: pointer;
  font: inherit;
  padding: 3px 10px;
  transition: background 0.15s, transform 0.1s;
}
.order-status-pay-btn:hover {
  background: rgba(255, 140, 0, 0.28);
}
.order-status-pay-btn:active {
  transform: scale(0.97);
}
.order-card-unpaid .order-pay-btn {
  font-size: 12px;
  padding: 8px 14px;
}
.pay-order-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, #8b9cb3);
}
.order-status-paid {
  color: #5dffb0;
  background: rgba(39, 174, 96, 0.15);
  border: 1px solid rgba(39, 174, 96, 0.45);
}
.order-unpaid-hint {
  font-size: 11px;
  color: var(--muted, #8b9cb3);
  text-align: right;
  max-width: 220px;
  line-height: 1.35;
}
.order-review-btn {
  font-size: 12px;
  padding: 8px 14px;
}
.captcha-gate {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 10, 18, 0.92);
  backdrop-filter: blur(6px);
}
.captcha-gate-box {
  max-width: 340px;
  width: 100%;
  text-align: center;
  background: var(--card-bg, #1c1c2e);
  border: 1px solid var(--border, #2e2e4a);
  border-radius: 14px;
  padding: 28px 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.captcha-gate-icon {
  font-size: 42px;
  margin-bottom: 10px;
}
.captcha-gate-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}
.captcha-gate-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted, #8b9cb3);
  margin-bottom: 18px;
}
.captcha-gate-btn {
  display: inline-block;
  text-decoration: none;
}
body.captcha-locked .lang-bar,
body.captcha-locked .site-header,
body.captcha-locked .bottom-nav,
body.captcha-locked .main-wrap {
  pointer-events: none;
  user-select: none;
  filter: blur(2px);
}
.order-reviewed-badge {
  font-size: 12px;
  color: var(--green, #27ae60);
  font-weight: 600;
}

/* Public reviews */
.reviews-intro {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted, #8b9cb3);
}
.reviews-channel-link {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange, #ff8c00);
  text-decoration: none;
}
.reviews-channel-link:active,
.reviews-channel-link:hover {
  text-decoration: underline;
}
.review-card {
  padding: 14px 16px;
}
.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.review-card-stars .star-on {
  color: #ffc107;
}
.review-card-stars .star-off {
  color: rgba(255, 255, 255, 0.2);
}
.review-card-user {
  font-size: 12px;
  font-weight: 600;
  color: var(--orange, #ff8c00);
}
.review-card-text {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
}
.review-card-meta {
  font-size: 11px;
  color: var(--muted, #8b9cb3);
}

/* Drop viewer modal */
.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.drop-overlay.hidden {
  display: none;
}
.drop-modal {
  width: 100%;
  max-width: 420px;
  max-height: min(88vh, 720px);
  overflow: auto;
  padding: 18px 16px 16px;
  position: relative;
}
.drop-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted, #8b9cb3);
  font-size: 18px;
  cursor: pointer;
}
.drop-modal-title {
  margin: 0 36px 4px 0;
  font-size: 17px;
  color: var(--orange, #ff8c00);
}
.drop-modal-sub {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted, #8b9cb3);
}
.drop-img-wrap {
  width: 100%;
  min-height: 120px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drop-img {
  display: block;
  width: 100%;
  max-height: 55vh;
  object-fit: contain;
  background: #0a0a12;
}
.drop-video {
  max-height: 55vh;
  border-radius: 8px;
}
.drop-img.hidden {
  display: none;
}
.drop-empty {
  margin: 0;
  padding: 28px 12px;
  font-size: 13px;
  color: var(--muted, #8b9cb3);
  text-align: center;
}
.drop-empty.hidden {
  display: none;
}
.drop-note-wrap {
  margin-bottom: 12px;
}
.drop-note-wrap.hidden {
  display: none;
}
.drop-note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #8b9cb3);
}
.drop-copy-btn {
  padding: 4px 10px !important;
  font-size: 11px !important;
  min-height: 0 !important;
}
.drop-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e8edf4;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
}
.drop-done-btn {
  width: 100%;
}

/* Review modal */
.review-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.review-overlay.hidden {
  display: none;
}
.review-modal {
  width: 100%;
  max-width: 400px;
  padding: 20px 18px 18px;
  position: relative;
}
.review-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted, #8b9cb3);
  font-size: 18px;
  cursor: pointer;
}
.review-modal-title {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--orange, #ff8c00);
}
.review-modal-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted, #8b9cb3);
}
.review-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}
.review-star-btn {
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.12s, transform 0.12s;
}
.review-star-btn.active,
.review-star-btn:hover {
  color: #ffc107;
  transform: scale(1.08);
}
.review-text {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text, #e8edf4);
  font-size: 14px;
  resize: vertical;
  min-height: 88px;
}
.review-err {
  margin: 0 0 8px;
  font-size: 12px;
  color: #e74c3c;
}
.review-submit-btn {
  width: 100%;
  margin-bottom: 8px;
}
.review-skip-btn {
  width: 100%;
}

.var-action-row {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 28px;
}

.var-action-row .btn-primary,
.var-action-row .btn-buy {
  flex: 1;
  padding: 12px;
  font-size: 14px;
  border-radius: 10px;
}

.var-back-btn {
  width: 100%;
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  color: #aaa;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: background .15s, color .15s;
  letter-spacing: .3px;
  flex-shrink: 0;
}

.var-back-btn:hover {
  background: #222240;
  color: #fff;
}

/* ===================================================
   BUY NOW BUTTON
   =================================================== */
.btn-buy {
  background: #1a1a2e;
  color: #f47920;
  border: 2px solid #f47920;
  border-radius: var(--radius);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-buy:hover {
  background: #f47920;
  color: #fff;
}

/* ===================================================
   PAYMENT MODAL  (dark theme)
   =================================================== */
.pay-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12px;
  overflow-y: auto;
}

.pay-modal {
  background: #1c1c2e;
  border-radius: 14px;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  margin: auto;
}

.pay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.pay-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .3px;
}

.pay-close {
  background: rgba(255,255,255,.1);
  border: none;
  color: #aaa;
  font-size: 16px;
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.pay-close:hover { background: rgba(255,255,255,.2); color: #fff; }

/* Product row */
.pay-product-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pay-product-emoji { font-size: 28px; }
.pay-product-name  { color: #fff; font-weight: 700; font-size: 14px; }
.pay-product-qty   { color: #aaa; font-size: 12px; margin-top: 2px; }

/* QR */
.pay-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 18px 18px 10px;
}
.pay-qr-img {
  width: 180px; height: 180px;
  border-radius: 8px;
  background: #fff;
  display: block;
}

/* Blocks */
.pay-block {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.pay-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 6px;
}

/* Wallet address */
.pay-addr-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pay-addr {
  color: #e0e0e0;
  font-size: 13px;
  font-family: monospace;
  word-break: break-all;
  flex: 1;
  line-height: 1.4;
}

.pay-copy-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #ccc;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.pay-copy-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.pay-copy-btn.copied { background: #27ae60; color: #fff; border-color: #27ae60; }

/* Method */
.pay-method-tag {
  display: inline-block;
  background: rgba(153,69,255,.25);
  color: #c49aff;
  border: 1px solid rgba(153,69,255,.4);
  border-radius: 20px;
  padding: 3px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
}

/* EUR block */
.pay-eur-block { background: rgba(255,255,255,.03); }
.pay-eur-amount {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}
.pay-eur-original {
  font-size: 14px;
  color: #888;
  text-decoration: line-through;
  margin-right: 8px;
}

/* SOL */
.pay-sol-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pay-sol-amount {
  color: #9945ff;
  font-size: 20px;
  font-weight: 700;
  font-family: monospace;
}
.pay-sol-spinner { color: #888; font-size: 13px; font-family: inherit; font-weight: 400; }

/* Balance toggle */
.pay-balance-block { background: rgba(39,174,96,.08); border: 1px solid rgba(39,174,96,.25); border-radius: 10px; }
.pay-balance-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.pay-balance-toggle input[type="checkbox"] { width: 18px; height: 18px; accent-color: #27ae60; flex-shrink: 0; }
.pay-balance-label { font-size: 14px; color: #e0e0e0; }
.pay-balance-label strong { color: #27ae60; }
.pay-balance-detail { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.pay-balance-row { display: flex; justify-content: space-between; font-size: 13px; color: #bbb; padding: 3px 0; }
.pay-balance-remaining { margin-top: 4px; padding-top: 6px; border-top: 1px dashed rgba(255,255,255,.12); }

/* Expiry */
.pay-expiry {
  color: #e0e0e0;
  font-size: 14px;
  font-family: monospace;
}
.pay-expiry-countdown {
  color: #f47920;
  font-size: 12px;
  margin-top: 4px;
}

/* Confirm button */
.pay-confirm-btn {
  display: block;
  width: calc(100% - 36px);
  margin: 16px 18px;
  background: #9945ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .3px;
  transition: background .15s;
}
.pay-confirm-btn:hover { background: #7c2de8; }
.pay-confirm-btn:active { transform: scale(.98); }

.pay-confirm-btn:disabled,
.ord-submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.terms-agree-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 10px;
  padding: 0 2px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text, #e8edf4);
}
.terms-agree-row--pay {
  margin: 8px 18px 4px;
  padding: 0;
}
.terms-agree-input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--orange, #f47920);
  cursor: pointer;
}
.terms-agree-text {
  flex: 1;
  min-width: 0;
}
.terms-agree-link {
  color: var(--orange, #f47920);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.terms-agree-link:hover {
  color: #ffb347;
}

/* In-app notice (replaces window.alert — no hostname leak in Telegram) */
.app-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.app-notice-overlay.hidden {
  display: none !important;
}
.app-notice-box {
  background: var(--card, #1c1c2e);
  border: 1px solid var(--border, #2e2e4a);
  border-radius: 14px;
  padding: 22px 20px 18px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}
.app-notice-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text, #e8edf4);
  margin: 0 0 18px;
  white-space: pre-wrap;
}
.app-notice-actions {
  display: flex;
  gap: 10px;
  justify-content: stretch;
}
.app-notice-actions .app-notice-btn {
  flex: 1;
}
.app-notice-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

/* Login push: admin + channel */
.login-push-overlay {
  position: fixed;
  inset: 0;
  z-index: 520;
  background: rgba(0, 0, 0, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: loginPushFade 0.28s ease;
}
.login-push-overlay.hidden {
  display: none !important;
}
@keyframes loginPushFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.login-push-box {
  background: linear-gradient(165deg, #22223a 0%, #161625 100%);
  border: 1px solid rgba(244, 121, 32, 0.35);
  border-radius: 16px;
  padding: 24px 20px 16px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  animation: loginPushPop 0.32s ease;
}
@keyframes loginPushPop {
  from { transform: translateY(12px) scale(0.96); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.login-push-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 10px;
}
.login-push-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text, #e8edf4);
}
.login-push-text {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted, #9aa3b5);
}
.login-push-btn {
  width: 100%;
  margin-bottom: 10px;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
.login-push-btn--channel {
  background: #2a7bd6 !important;
}
.login-push-btn--channel:hover {
  background: #2369b8 !important;
}
.login-push-close {
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted, #9aa3b5);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.login-push-close:hover {
  color: var(--text, #e8edf4);
}

.order-status-processing {
  background: rgba(244, 121, 32, 0.18);
  color: #f4994a;
  border: 1px solid rgba(244, 121, 32, 0.45);
}

/* ===================================================
   SLIM TOP BAR + BOTTOM NAV (2026 UI refactor)
   =================================================== */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
  background: #1a1a1d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 0 rgba(244, 121, 32, 0.08);
}
.app-topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: nowrap;
}
.app-wordmark {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.app-wordmark-alpha {
  color: #f3f4f6;
}
.app-wordmark-bay {
  color: var(--orange, #f47920);
}
.app-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 999px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}
.app-badge--ltu {
  color: #b0b0b0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.app-badge--city {
  color: #ffc078;
  background: rgba(244, 121, 32, 0.14);
  border: 1px solid rgba(244, 121, 32, 0.35);
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* legacy stacked title/logo — unused */
.app-topbar-logo,
.app-topbar-titles,
.app-topbar-name,
.app-topbar-ltu { display: none !important; }
.app-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #111;
  background: var(--orange);
}
.lang-btns--hidden { display: none !important; }
.nav-wallet--top {
  border: 1px solid rgba(244, 121, 32, 0.45);
  background: rgba(244, 121, 32, 0.12);
  color: #ffc078;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 0 12px rgba(244, 121, 32, 0.15);
}
.konkursai-btn--compact {
  padding: 4px !important;
  min-width: 30px;
  height: 30px;
  border-radius: 8px;
}
/* Brand mark — home, left of wordmark */
.app-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(244, 121, 32, 0.45);
  background: rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.app-brand-mark-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
/* Contests CTA — obvious tap target (gift + label) */
.konkursai-btn--gift.konkursai-btn--cta {
  position: relative;
  padding: 4px 10px 4px 6px !important;
  min-width: 0;
  width: auto;
  height: 34px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 180, 90, 0.85);
  background: linear-gradient(135deg, #f47920 0%, #e85a10 55%, #c94a08 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  box-shadow:
    0 0 0 2px rgba(244, 121, 32, 0.22),
    0 4px 14px rgba(244, 121, 32, 0.45);
  animation: konkursaiPulse 2.2s ease-in-out infinite;
}
.konkursai-btn--gift.konkursai-btn--cta:hover {
  filter: brightness(1.06);
  border-color: #ffd09a;
}
.konkursai-btn--gift.konkursai-btn--cta.active {
  background: linear-gradient(135deg, #ff8a2b 0%, #f47920 100%);
  border-color: #fff;
}
.konkursai-gift-ico {
  font-size: 16px;
  line-height: 1;
  display: block;
  animation: konkursaiGiftBounce 1.6s ease-in-out infinite;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.konkursai-cta-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  min-width: 0;
}
.konkursai-cta-main {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}
.konkursai-cta-sub {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.konkursai-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 0 2px #1a1a1d, 0 0 8px rgba(255, 59, 48, 0.7);
  pointer-events: none;
  animation: konkursaiDotBlink 1.2s ease-in-out infinite;
}
@keyframes konkursaiPulse {
  0%, 100% {
    box-shadow:
      0 0 0 2px rgba(244, 121, 32, 0.22),
      0 4px 14px rgba(244, 121, 32, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(244, 121, 32, 0.35),
      0 6px 18px rgba(244, 121, 32, 0.55);
    transform: scale(1.03);
  }
}
@keyframes konkursaiGiftBounce {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-1px) rotate(4deg); }
}
@keyframes konkursaiDotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
@media (prefers-reduced-motion: reduce) {
  .konkursai-btn--gift.konkursai-btn--cta,
  .konkursai-gift-ico,
  .konkursai-dot {
    animation: none;
  }
}

/* Snackbar above bottom nav — “added to cart” */
.cart-toast {
  position: fixed;
  left: 50%;
  bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 12px);
  z-index: 220;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(300px, calc(100vw - 28px));
  max-width: 360px;
  padding: 11px 14px;
  border-radius: 12px;
  background: #222228;
  border: 1px solid rgba(244, 121, 32, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.cart-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.cart-toast-ico {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.cart-toast-body {
  min-width: 0;
}
.cart-toast-title {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange, #f47920);
}
.cart-toast-msg {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #e8e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 68vw;
}
.bottom-nav-link.nav-flash {
  background: rgba(244, 121, 32, 0.22) !important;
  color: var(--orange) !important;
}
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 6px 4px calc(6px + var(--tg-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  background: #1a1a1d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  /* Keep nav inside Telegram visible viewport */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  text-decoration: none;
  color: #8a8a8a;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-link.active {
  color: var(--orange);
}
.bottom-nav-link.active .bn-ico {
  filter: drop-shadow(0 0 6px rgba(244, 121, 32, 0.45));
}
.bn-ico {
  width: 22px;
  height: 22px;
}
.bn-ico-wrap {
  position: relative;
  display: inline-flex;
}
.bn-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.bottom-nav-link .nav-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--orange);
  color: #111;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1.5px #1a1a1d;
}

.cat-svg {
  width: 18px;
  height: 18px;
  display: block;
  margin: 0 auto;
  color: #cfcfcf;
}
.emoji-cat-btn.active .cat-svg { color: #111; }
.emoji-cat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2e !important;
  border-color: #3d3d42 !important;
}
.emoji-cat-btn.active {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
}

.app-city-chip { display: none !important; }

/* Legacy top nav unused after bottom-nav migration */
.site-nav { display: none !important; }
.lang-bar { display: none !important; }
.site-header { display: none !important; }

/* Profile referral CTA */
.profile-ref-card {
  margin: 0 0 12px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(244, 121, 32, 0.28) 0%, rgba(244, 121, 32, 0.08) 55%, #1a1a1d 100%);
  border: 1.5px solid rgba(244, 121, 32, 0.65);
  box-shadow: 0 0 18px rgba(244, 121, 32, 0.22);
}
.profile-ref-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.profile-ref-ico { font-size: 26px; line-height: 1; }
.profile-ref-title {
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: #ffc078;
  letter-spacing: 0.01em;
}
.profile-ref-sub {
  margin: 3px 0 0;
  font-size: 12px;
  color: #ddd;
  line-height: 1.35;
}
.profile-ref-stats {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  color: #ffb86a;
}
.profile-ref-link-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 10px;
}
.profile-ref-link {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: #0d0d0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cfcfcf;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-ref-copy {
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  background: var(--orange);
  color: #111;
  cursor: pointer;
}
.profile-ref-copy.copied { background: #2ecc71; color: #fff; }
.profile-ref-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.profile-ref-share {
  border: none;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(180deg, #ff8a2b, #f47920);
  color: #111;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(244, 121, 32, 0.35);
}
.profile-ref-more {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 12px;
  font-weight: 700;
  background: transparent;
  color: #bbb;
  cursor: pointer;
}

/* Telegram browser auth gate */
.tg-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}
.tg-auth-overlay.hidden { display: none; }
.tg-auth-box {
  width: min(100%, 380px);
  border-radius: 18px;
  padding: 22px 20px 18px;
  background: linear-gradient(180deg, #1a1d24 0%, #12141a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  text-align: center;
}
.tg-auth-icon { font-size: 28px; margin-bottom: 8px; }
.tg-auth-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: #f4f1ea;
}
.tg-auth-text {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.45;
  color: #9aa3b5;
}
.tg-auth-widget {
  min-height: 40px;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}
.tg-auth-open {
  width: 100%;
  margin-bottom: 8px;
}
.tg-auth-close {
  width: 100%;
  border: none;
  background: transparent;
  color: #8b95a8;
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  cursor: pointer;
}
