/* ===================================================
   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 ── */
body.dark {
  --grey-bg:   #0f0f1a;
  --white:     #1c1c2e;
  --card-bg:   #1c1c2e;
  --border:    #2e2e4a;
  --text:      #e0e0e0;
  --text-muted:#888;
  --shadow:    0 1px 4px rgba(0,0,0,.5);
}
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 .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: #1c1c2e; border-color: #2e2e4a; 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: #1c1c2e !important; border-color: #2e2e4a !important; color: #e0e0e0 !important; }
body.dark .fp-option.active { background: var(--orange) !important; color: #fff !important; }
body.dark .fp-search-input { background: #111 !important; color: #e0e0e0 !important; }

html, body {
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  background: var(--grey-bg);
  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: space-between;
  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 */
.theme-toggle {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: background .15s;
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
}
.theme-toggle:hover { background: rgba(255,255,255,.18); }

.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: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.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: hidden;
}

.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 / deposit (near profile) */
.nav-wallet {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  margin: 0 2px 0 1px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s, border-color 0.15s;
}
.nav-wallet:hover {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.5);
}
.nav-wallet:active {
  transform: scale(0.98);
}
.nav-wallet-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #fff;
}
.nav-wallet-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* 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: 14px auto 30px;
  padding: 0 12px;
}

.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; }

.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: #2a6b3c;
  border-color: #2a6b3c;
  color: #fff;
}

/* 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 {
  min-width: 0 !important;
  padding: 5px 9px !important;
  font-size: 11px !important;
  border-radius: 6px !important;
  line-height: 1.2;
}
#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); }

/* Emoji category filter (🍀 💊 ❄️) */
.emoji-cat-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 2px 0;
}
.emoji-cat-btn {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-size: 24px;
  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);
  background: rgba(244, 121, 32, 0.35);
  box-shadow: 0 0 0 2px rgba(244, 121, 32, 0.25);
}
.emoji-cat-btn.hidden {
  display: none;
}
.emoji-cat-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

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

/* ===================================================
   PRODUCT GRID / DISTRICT MENU — vertical stack, dense 2-col
   =================================================== */
.catalog-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

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

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

.catalog-dist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(42, 107, 60, 0.3);
  color: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.catalog-dist-head:hover {
  border-color: rgba(244, 121, 32, 0.45);
  background: rgba(42, 107, 60, 0.42);
}

.catalog-dist-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
}

.catalog-dist-meta {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 200, 140, 0.95);
  white-space: nowrap;
}

.catalog-dist-grid {
  margin-bottom: 0;
}

/* 2 columns — see more products at once */
.catalog-menu--stack .catalog-dist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 8px 12px;
  box-shadow: none;
  cursor: pointer;
  transition: border-color .12s, background .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: 6px 7px 7px;
  gap: 3px;
  min-height: 0;
}

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

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

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

.product-card--tile .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 .product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
}

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

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

.product-card--tile .product-stock {
  font-size: 10px;
  font-weight: 700;
  color: #3dcf7a;
  margin: 0;
  white-space: nowrap;
}

/* Tighten home chrome so catalog fits first screen */
#section-home .welcome-banner--compact {
  padding: 4px 10px;
  margin-bottom: 6px;
}
#section-home .welcome-banner--compact .welcome-title {
  font-size: 13px;
}
#section-home .filter-wrap--compact {
  padding: 5px 6px 6px;
  margin-bottom: 6px;
}
#section-home .section-heading--city {
  padding: 5px 8px;
  margin-bottom: 6px;
  font-size: 13px;
}

/* Wholesale / Didmenos / Delivery */
.home-actions {
  margin: 0 0 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-delivery {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 148, 0.55);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.32), rgba(16, 185, 129, 0.12));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}
.btn-delivery:hover {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.38);
}
.delivery-sheet .delivery-title {
  color: #34d399;
}
.delivery-banner {
  margin: 6px 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}
.delivery-sheet .delivery-city-em {
  color: #ef4444;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(239, 68, 68, 0.55);
  text-underline-offset: 3px;
}
.delivery-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.delivery-tier-row:last-child {
  border-bottom: none;
}
.delivery-tier-line {
  font-size: 13px;
  font-weight: 600;
  color: #e8edf4;
  flex: 1;
  min-width: 0;
}
.delivery-order-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(52, 211, 153, 0.55);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.35), rgba(16, 185, 129, 0.12));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.delivery-order-btn:active {
  transform: scale(0.98);
}
.btn-wholesale {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  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: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.btn-wholesale:hover {
  border-color: var(--orange);
  background: rgba(244, 121, 32, 0.35);
}

.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;
}

.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 {
  font-size: 10px;
  color: #27ae60;
  margin-top: 2px;
}

.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-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-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 14px;
  text-align: center;
}
.contests-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.contests-join-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}
.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; }

.contest-vote-card {
  position: relative;
  margin: 0 0 16px;
  padding: 16px 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 140, 0, 0.35);
  background: linear-gradient(145deg, rgba(255, 140, 0, 0.12), rgba(20, 24, 32, 0.92));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.contest-vote-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 180, 80, 0.22), transparent 70%);
  pointer-events: none;
}
.contest-vote-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 180, 100, 0.95);
}
.contest-vote-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
}
.contest-vote-sub {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}
.contest-vote-row {
  margin-bottom: 12px;
}
.contest-vote-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.contest-vote-opt {
  font-size: 13px;
  font-weight: 700;
  color: #e8edf4;
}
.contest-vote-num {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.contest-vote-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.contest-vote-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  min-width: 0;
}
.contest-vote-fill--balance {
  background: linear-gradient(90deg, #10b981, #34d399);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
}
.contest-vote-fill--prize {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
}
.contest-vote-pct {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: right;
}
.contest-vote-total {
  margin: 4px 0 12px;
  font-size: 12px;
  text-align: center;
  color: var(--text-muted);
}
.contest-vote-total strong {
  color: #fff;
  font-size: 14px;
}
.contest-vote-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contest-vote-btn {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s;
}
.contest-vote-btn:active:not(:disabled) {
  transform: scale(0.98);
}
.contest-vote-btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.contest-vote-btn--balance {
  color: #fff;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.55), rgba(5, 120, 90, 0.35));
  border-color: rgba(52, 211, 153, 0.55);
}
.contest-vote-btn--prize {
  color: #fff;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.55), rgba(180, 100, 10, 0.35));
  border-color: rgba(251, 191, 36, 0.55);
}
.contest-vote-btn.is-selected {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.contest-vote-status {
  margin: 10px 0 0;
  font-size: 12px;
  text-align: center;
  color: #86efac;
  font-weight: 600;
}

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

/* ===================================================
   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: var(--white);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===================================================
   RESPONSIVE — mobile
   =================================================== */
@media (max-width: 600px) {
  .site-main {
    padding: 0 8px;
    margin-top: 10px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .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: 90; /* below sticky header (100) + nav (99) */
  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: 90; /* below sticky header (100) + nav (99) */
  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: 90; /* below sticky header (100) + nav (99) */
  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(68vh, 520px);
  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: 14px 16px;
  width: 100%;
}

.var-card--piece .var-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.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: 2px;
}

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

.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;
}

/* 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-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);
}
