/* ICE LOGIX — Premium Arctic UI
   A restrained dark commerce system: ink surfaces, steel-blue panels, ice-blue actions. */

:root {
  --ui-bg: #000000;
  --ui-surface: #0d121a;
  --ui-surface-raised: #131b26;
  --ui-surface-soft: #182333;
  --ui-line: rgba(152, 196, 232, .14);
  --ui-line-strong: rgba(126, 190, 239, .34);
  --ui-blue: #82c7f1;
  --ui-blue-strong: #42a9e7;
  --ui-blue-deep: #176ea9;
  --ui-text: #f2f7fb;
  --ui-text-soft: #afc0d0;
  --ui-text-muted: #738497;
  --ui-success: #6ed6b0;
  --ui-radius: 18px;
  --ui-shadow: 0 14px 40px rgba(0,0,0,.28);
}

/* Modern icon language: SVGs replace legacy emoji without changing layout. */
.emoji-icon {
  display: inline-flex;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.14em;
  margin-inline: 0.08em 0.16em;
  color: currentColor;
  flex: 0 0 auto;
}
.emoji-icon svg { width: 100%; height: 100%; }
.ice-slide-emoji .emoji-icon {
  width: 1em;
  height: 1em;
  margin: 0 auto;
  filter: drop-shadow(0 8px 24px rgba(91, 191, 235, 0.35));
}

html,
body,
#app { background: var(--ui-bg) !important; }

body {
  color: var(--ui-text) !important;
  background-image:
    radial-gradient(ellipse 90% 45% at 50% -10%, rgba(42, 121, 178, .16), transparent 68%),
    radial-gradient(ellipse 55% 35% at 100% 35%, rgba(21, 74, 113, .10), transparent 70%) !important;
}

body::before { opacity: .12 !important; }

.app-header,
.tab-bar {
  background: rgba(11, 16, 24, .86) !important;
  border: 1px solid rgba(160, 207, 240, .16) !important;
  box-shadow: 0 12px 36px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.05) !important;
  backdrop-filter: blur(24px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
}

.app-header { top: 10px !important; left: 10px !important; right: 10px !important; border-radius: 20px !important; }
.tab-bar { bottom: 10px !important; left: 10px !important; right: 10px !important; border-radius: 22px !important; }

.main-content { padding-top: 78px !important; padding-bottom: 104px !important; }

.balance-island {
  background: linear-gradient(135deg, rgba(72,164,221,.22), rgba(20,61,95,.42)) !important;
  border: 1px solid rgba(130,199,241,.34) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 18px rgba(20,90,136,.18) !important;
}
.balance-amount { color: var(--ui-text) !important; }

.glass-card,
.rate-tracker-card,
.product-card {
  background: linear-gradient(145deg, rgba(21,31,44,.94), rgba(10,15,22,.96)) !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: var(--ui-radius) !important;
  box-shadow: var(--ui-shadow), inset 0 1px 0 rgba(255,255,255,.035) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

.glass-card { padding: 16px !important; }
.product-card { overflow: hidden !important; transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease !important; }
.product-card:hover { transform: translateY(-3px) !important; border-color: var(--ui-line-strong) !important; box-shadow: 0 18px 44px rgba(0,0,0,.38), 0 0 0 1px rgba(130,199,241,.08) !important; }
.product-card .card-media, .product-card .card-photo-container { border-radius: 16px 16px 0 0 !important; aspect-ratio: 3 / 4 !important; }

.story-card { gap: 8px !important; color: var(--ui-text-soft) !important; }
.story-label { font-size: 11px !important; font-weight: 700 !important; letter-spacing: .01em !important; }
.story-icon {
  width: 58px !important; height: 58px !important; border-radius: 18px !important;
  background: linear-gradient(145deg, #1b3044, #101a27) !important;
  border: 1px solid rgba(130,199,241,.22) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 20px rgba(0,0,0,.22) !important;
}
.story-icon::before { display: none !important; }
.story-icon:hover { transform: translateY(-2px) !important; border-color: rgba(130,199,241,.55) !important; box-shadow: 0 10px 24px rgba(27,120,176,.22) !important; }
.story-icon svg { color: var(--ui-blue) !important; }

/* Marketplace Stories - Clean native squircle rendering */
.marketplace-story .story-icon {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.marketplace-story .story-icon:hover {
  transform: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.marketplace-story .story-icon img {
  width: 58px !important;
  height: 58px !important;
  max-width: 58px !important;
  max-height: 58px !important;
  object-fit: contain !important;
  border-radius: 14px !important;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)) !important;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.18s ease !important;
}
.marketplace-story:active .story-icon img {
  transform: scale(0.92) !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
}

/* ============================================================
   ICE LOGIX — Marketplaces Capsule & Seamless Ear Dock (User Sketch)
   ============================================================ */
.marketplaces-capsule-section {
  position: relative;
  margin-top: 20px;
  margin-bottom: 22px;
}

.marketplaces-capsule {
  position: relative;
  width: 100%;
  height: 124px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
}

.marketplaces-capsule-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.marketplaces-ear-title {
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 10px rgba(91, 191, 235, 0.5);
  z-index: 3;
  pointer-events: none;
}

/* CS:GO / Case Opening Central Reticle Frame (Refined Clean Viewfinder) */
.marketplaces-reticle {
  position: absolute;
  top: 27px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 92px;
  border-radius: 18px;
  border: 1.5px solid rgba(130, 199, 241, 0.5);
  background: rgba(130, 199, 241, 0.04);
  pointer-events: none;
  z-index: 4;
}

.marketplaces-reticle::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #82c7f1;
}

/* Strictly contains all scrolling inside the capsule body without spilling onto margins */
.marketplaces-inner-clipper {
  position: absolute;
  top: 24px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 0 0 18px 18px;
  overflow: hidden;
  z-index: 2;
  mask-image: linear-gradient(to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
}

.marketplaces-track {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
}

.marketplaces-track:active {
  cursor: grabbing;
}

.marketplaces-ribbon {
  display: flex;
  align-items: center;
  gap: 16px;
  will-change: transform;
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  contain: layout paint;
}

.story-card.marketplace-story {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0 !important;
  flex: 0 0 64px;
  width: 64px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.52;
  transform: scale(0.92);
  contain: layout paint style;
}

.story-card.marketplace-story.is-active-target {
  opacity: 1 !important;
  transform: scale(1.05) !important;
}

.marketplace-story .story-icon {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.marketplace-story .story-icon img {
  width: 54px !important;
  height: 54px !important;
  max-width: 54px !important;
  max-height: 54px !important;
  object-fit: contain !important;
  border-radius: 13px !important;
  filter: none !important;
  transition: transform 0.25s ease;
}

.story-card.marketplace-story.is-active-target .story-icon img {
  filter: brightness(1.08) !important;
}

.marketplace-story:active .story-icon img {
  transform: scale(0.92) !important;
}

.marketplace-story .story-label {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.75) !important;
  letter-spacing: -0.01em;
  max-width: 64px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.1;
  margin-top: 2px !important;
  text-shadow: none !important;
  transition: color 0.25s ease;
}

.story-card.marketplace-story.is-active-target .story-label {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}

.btn-primary,
.buyNowBtn,
.filter-chip.active {
  background: linear-gradient(135deg, #8bd2f7 0%, #3c9edb 52%, #2474ad 100%) !important;
  color: #06101a !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 20px rgba(40,139,201,.24), inset 0 1px 0 rgba(255,255,255,.35) !important;
  font-weight: 800 !important;
}
.btn-primary:hover, .buyNowBtn:hover { transform: translateY(-1px) !important; box-shadow: 0 12px 26px rgba(40,139,201,.32) !important; }

.btn-secondary,
.addToCartBtn,
.filter-chip,
.cart-stepper {
  background: rgba(130,199,241,.08) !important;
  color: var(--ui-blue) !important;
  border: 1px solid rgba(130,199,241,.22) !important;
  border-radius: 12px !important;
}

.tab-item { color: var(--ui-text-muted) !important; border-radius: 16px !important; }
.tab-item.active { color: var(--ui-blue) !important; background: rgba(92,169,220,.13) !important; }
.tab-item.active::after { background: var(--ui-blue) !important; box-shadow: 0 0 12px rgba(130,199,241,.65) !important; }
.tab-icon { opacity: .92 !important; }

.text-white { color: var(--ui-text) !important; }
.text-cyan-400, .text-cyan-300, .text-blue-400 { color: var(--ui-blue) !important; }
.text-white\/40, .text-white\/50 { color: var(--ui-text-muted) !important; }

input, textarea, select {
  background: #0b1119 !important;
  border: 1px solid var(--ui-line) !important;
  color: var(--ui-text) !important;
  border-radius: 12px !important;
}
input:focus, textarea:focus, select:focus { border-color: var(--ui-blue) !important; box-shadow: 0 0 0 3px rgba(130,199,241,.14) !important; }

.app-footer {
  background: linear-gradient(180deg, rgba(17,27,39,.82), rgba(8,12,18,.96)) !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: 22px !important;
  box-shadow: var(--ui-shadow) !important;
}


@media (max-width: 420px) {
  .app-header { top: 8px !important; left: 8px !important; right: 8px !important; }
  .tab-bar { left: 8px !important; right: 8px !important; bottom: 8px !important; }
  .main-content { padding-left: 12px !important; padding-right: 12px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


@media (min-width: 768px) {
  .main-content { max-width: 760px; margin: 0 auto; }
}

/* Keep focus visible for Telegram keyboard and assistive technology users. */
:where(button, a, input, textarea, select):focus-visible { outline: 2px solid var(--ui-blue) !important; outline-offset: 2px; }

/* Do not let utility inline colors overpower the product palette. */
[style*="rgba(255,255,255,0.06)"], [style*="rgba(255, 255, 255, 0.06)"] { background: rgba(130,199,241,.06) !important; border-color: var(--ui-line) !important; }
[style*="#67e8f9"] { color: var(--ui-blue) !important; }
/* Profile and orders: structured premium surfaces */
.profile-shell {
  position: relative;
  overflow: hidden;
  padding: 22px 18px !important;
  background: linear-gradient(155deg, rgba(20,39,57,.96), rgba(7,12,19,.98)) !important;
  border-color: rgba(130,199,241,.24) !important;
}
.profile-shell::before { content: ''; position: absolute; inset: -35% 35% auto -15%; height: 190px; background: radial-gradient(circle, rgba(82,177,232,.24), transparent 68%); pointer-events: none; }
.profile-shell > * { position: relative; z-index: 1; }
.profile-shell h2 { letter-spacing: -.02em; }
.profile-shell button { transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.profile-shell button:hover { border-color: rgba(130,199,241,.42) !important; }
.profile-shell .grid.grid-cols-2 > div { background: rgba(130,199,241,.07) !important; border-color: rgba(130,199,241,.16) !important; }
.profile-shell .grid.grid-cols-2 button { min-height: 86px; }

.orders-list { display: grid; gap: 14px; }
.orders-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 4px 4px 6px; }
.orders-eyebrow { margin: 0 0 5px; color: var(--ui-blue); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.orders-title { margin: 0; color: var(--ui-text); font-size: 25px; line-height: 1.05; letter-spacing: -.04em; }
.orders-subtitle { margin: 7px 0 0; color: var(--ui-text-muted); font-size: 12px; }
.orders-count { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; color: #07131d; background: var(--ui-blue); border-radius: 13px; font-size: 14px; font-weight: 900; box-shadow: 0 6px 18px rgba(66,169,231,.24); }
.order-card { padding: 18px !important; border-color: rgba(130,199,241,.18) !important; }
.order-card > div:first-child > div:first-child p:first-child { font-size: 15px; letter-spacing: -.01em; }
.order-card .status-badge { padding: 6px 9px !important; border-radius: 10px !important; font-size: 10px !important; font-weight: 800 !important; }
.order-card .btn-secondary { min-height: 40px; font-weight: 700; }
.order-card .bg-white\\/5 { background: rgba(130,199,241,.055) !important; border-color: rgba(130,199,241,.12) !important; }
.order-card .text-cyan-400 { color: var(--ui-blue) !important; }
.global-back-btn { margin-top: 0; margin-bottom: 16px; }
.global-back-btn.\!mb-0,
.flex > .global-back-btn,
.full-screen-modal-header .global-back-btn { margin-bottom: 0 !important; }

@media (max-width: 420px) {
  .profile-shell { padding: 18px 14px !important; }
  .orders-title { font-size: 22px; }
  .orders-subtitle { max-width: 220px; line-height: 1.4; }
  .order-card { padding: 14px !important; }
}

/* Solid black app background: no gradients or particle overlay. */
html,
body,
#app {
  background: #000000 !important;
  background-image: none !important;
}

body::before {
  display: none !important;
  background-image: none !important;
}

}

/*! end ICE LOGIX premium redesign */
