

:root {
  
  --bg-0: #0e0e10;          
  --bg-1: #141416;          
  --bg-2: #1a1a1d;          
  --bg-3: #232327;          
  --bg-4: #2c2c30;          

  
  --line-1: rgba(255,255,255,0.06);
  --line-2: rgba(255,255,255,0.10);

  
  --text-1: #f4f4f5;        
  --text-2: #b8b8be;        
  --text-3: #76767e;        
  --text-4: #56565c;        

  
  --red-1: #ff3a3a;
  --red-2: #e02424;         
  --red-3: #b91818;
  --red-4: #7a0e0e;
  --red-glow: 0 0 0 1px rgba(224,36,36,0.3), 0 8px 24px rgba(224,36,36,0.18);

  
  --green: #2ecc71;
  --gold: #d6a93a;
  --blue: #3a8bff;
  --avatar-fallback-bg: linear-gradient(145deg, var(--bg-4) 0%, var(--bg-3) 46%, var(--bg-2) 100%);

  
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;

  
  --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100dvh;
  background: #0a0a0c;
  font-family: var(--font);
  font-weight: 600;
  color: var(--text-1);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

button { font-family: inherit; }

#root {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.app-stage {
  width: 100%;
  height: 100%;
  background: var(--bg-0);
  overflow: hidden;
  overscroll-behavior: none;
  display: flex;
  justify-content: center;
}

.phone {
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}


.app-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-1);
  scrollbar-width: thin;
  scrollbar-color: var(--bg-4) transparent;
  position: relative;
}
.app-body::-webkit-scrollbar { width: 6px; }
.app-body::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }


.native-back {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg-1) 92%, transparent);
  border-bottom: 1px solid var(--line-1);
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
  backdrop-filter: blur(12px);
}

.native-back button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #5b9eff;
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 16px;
  cursor: pointer;
}

.state-screen {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  color: var(--text-2);
  text-align: center;
  font-size: 14px;
}

.state-screen img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}


.tabbar {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-0);
  border-top: 1px solid var(--line-1);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 16px));
  gap: 4px;
}
.tabbar button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
  cursor: pointer;
}
.tabbar button .tab-ico {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tabbar button.active {
  color: var(--red-1);
}
.tabbar button.active .tab-ico {
  transform: translateY(-2px) scale(1.08);
}
.tabbar button:active .tab-ico {
  transform: scale(0.92);
}



.row { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tabnum { font-variant-numeric: tabular-nums; }

.section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0 16px;
  margin: 20px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title .more {
  color: var(--red-1);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-size: 12px;
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
}

.divider {
  height: 1px;
  background: var(--line-1);
}


.placeholder-img {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.04) 0 6px,
      rgba(255,255,255,0.01) 6px 12px
    ),
    var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}


.chip {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-3);
  color: var(--text-2);
  border: 1px solid var(--line-1);
  white-space: nowrap;
}
.chip.red {
  background: rgba(224,36,36,0.12);
  color: var(--red-1);
  border-color: rgba(224,36,36,0.25);
}
.chip.green {
  background: rgba(46,204,113,0.12);
  color: var(--green);
  border-color: rgba(46,204,113,0.22);
}
.chip.gold {
  background: rgba(214,169,58,0.12);
  color: var(--gold);
  border-color: rgba(214,169,58,0.22);
}
.chip.dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  display: block;
}


.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 80ms ease, background 120ms ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--red-2);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 6px 14px -6px rgba(224,36,36,0.6);
}
.btn-primary:hover { background: var(--red-1); }
.btn-secondary {
  background: var(--bg-3);
  color: var(--text-1);
  border: 1px solid var(--line-2);
}
.btn-secondary:hover { background: var(--bg-4); }
.btn-block { width: 100%; }
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--line-2);
}
.btn-red {
  background: var(--red-2);
  color: white;
  box-shadow: 0 6px 14px -6px rgba(224,36,36,0.5);
}
.btn-red:hover { background: var(--red-1); }
.btn-sm {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
}


.avatar {
  --avatar-size: 96px;
  --ring-color: #2ecc71;
  --ring-glow: rgba(46,204,113,0.32);
  width: var(--avatar-size);
  height: var(--avatar-size);
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 3px solid var(--ring-color);
  background: var(--avatar-fallback-bg);
  box-shadow:
    0 0 18px var(--ring-glow);
  overflow: hidden;
}
.avatar.premium {
  --ring-color: var(--premium-ring-color, #a855f7);
  --ring-glow: var(--premium-ring-glow, rgba(168,85,247,0.38));
}
.avatar::before {
  content: none;
}
.avatar > * {
  position: relative;
  z-index: 1;
  font-size: 38px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: 0;
  line-height: 1;
  text-shadow: none;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  text-shadow: none;
}
.avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
label:hover .avatar-edit-overlay { opacity: 1 !important; }

.profile-banner-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line-1);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 20px;
  gap: 14px;
  margin: 0 16px;
}
.stats-grid {
  display: grid;
  gap: 1px;
  background: var(--line-1);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-1);
}
.stat-cell {
  background: var(--bg-2);
  padding: 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-cell .v {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-cell .v.red { color: var(--red-1); }
.stat-cell .v.green { color: var(--green); }
.stat-cell .l {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}


.match {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  align-items: center;
  cursor: pointer;
  transition: border-color 120ms ease, transform 80ms ease;
}
.match:hover { border-color: var(--line-2); }
.match:active { transform: scale(0.995); }
.match .map-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.match.win  .map-thumb { box-shadow: inset 3px 0 0 var(--green); }
.match.loss .map-thumb { box-shadow: inset 3px 0 0 var(--red-1); }

.match-card {
  overflow: hidden;
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  background: var(--bg-2);
}

.match-map {
  height: 116px;
  padding: 14px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line-1);
  overflow: hidden;
}

.match-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-1);
}

.match-meta > div {
  min-width: 0;
  padding: 10px 8px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.match-meta .l {
  color: var(--text-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.match-meta .v {
  color: var(--text-1);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-demo-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(20,20,22,0.58);
  color: var(--text-2);
  min-height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.match-demo-btn:active {
  transform: scale(0.96);
}


.review-bar {
  height: 8px;
  background: var(--bg-3);
  border-radius: 999px;
  overflow: hidden;
  display: flex;
}
.review-bar .pos { background: var(--green); }
.review-bar .neg { background: var(--red-2); }


.shop-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-1);
  background: var(--bg-2);
}

.shop-tabs-wrap {
  padding: 16px 16px 0;
}

.shop-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
}

.shop-tabs button {
  appearance: none;
  min-width: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-3);
  padding: 8px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 120ms ease;
}

.shop-tabs button span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-tabs button.active {
  background: var(--bg-4);
  color: var(--text-1);
}

.shop-list {
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.shop-item-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-1);
  background: var(--bg-2);
  box-shadow: 0 10px 26px rgba(0,0,0,0.24);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  appearance: none;
  color: inherit;
  text-align: left;
  transition: opacity 120ms ease, transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.shop-item-card:not(:disabled):active {
  transform: translateY(1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  border-color: var(--line-2);
}
.shop-item-card:disabled {
  opacity: 0.5;
  cursor: default;
}
.shop-item-card__img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-sizing: border-box;
  overflow: hidden;
  background: transparent;
}
.shop-item-card__img-wrap--banner {
  padding: 12px;
}
.shop-item-card__img {
  width: 108%;
  height: 108%;
  max-width: none;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,0.42));
}
.shop-item-card__img--banner {
  width: 96%;
  height: 96%;
}
.shop-item-card__img-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--text-4);
}
.shop-item-card__body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.shop-item-card__title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-item-card__sub {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.shop-item-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  gap: 4px;
}
.shop-item-card__price {
  font-size: 15px;
  font-weight: 900;
  color: var(--text-1);
  white-space: nowrap;
}
.shop-item-card__badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-4);
  color: var(--text-3);
  border: 1px solid var(--line-2);
  white-space: nowrap;
}
.shop-item-card__active {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 200, 80, 0.12);
  color: var(--green);
  border: 1px solid rgba(0, 200, 80, 0.3);
}

.banner-pack-card {
  appearance: none;
  color: inherit;
  text-align: left;
  border: 1px solid var(--line-1);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 14%, rgba(224,36,36,0.18), transparent 34%),
    var(--bg-2);
  box-shadow: 0 10px 26px rgba(0,0,0,0.24);
  cursor: pointer;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.banner-pack-card:active {
  transform: translateY(1px);
  border-color: var(--line-2);
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
}
.banner-pack-card__preview {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: center;
  padding-left: 18px;
}
.banner-pack-card__tile {
  width: 72px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  box-shadow: 0 12px 24px rgba(0,0,0,0.34);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}
.banner-pack-card__tile img,
.banner-pack-sheet-preview__item img,
.banner-pack-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.banner-pack-card__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.banner-pack-card__top {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
}
.banner-pack-card__title {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.banner-pack-card__discount {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(55,180,105,0.14);
  color: #62d28f;
  border: 1px solid rgba(55,180,105,0.26);
  font-size: 10px;
  font-weight: 900;
}
.banner-pack-card__sub {
  font-size: 11px;
  color: var(--text-3);
}
.banner-rarity {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 900;
  border: 1px solid transparent;
  white-space: nowrap;
}
.banner-rarity--green {
  color: #62d28f;
  background: rgba(55,180,105,0.13);
  border-color: rgba(55,180,105,0.28);
}
.banner-rarity--blue {
  color: #70a7ff;
  background: rgba(80,140,255,0.13);
  border-color: rgba(80,140,255,0.28);
}
.banner-rarity--red {
  color: #ff6666;
  background: rgba(224,36,36,0.15);
  border-color: rgba(224,36,36,0.32);
}
.banner-rarity-glow {
  --rarity-rgb: 55, 180, 105;
  --rarity-border: rgba(var(--rarity-rgb), 0.42);
  --rarity-soft: rgba(var(--rarity-rgb), 0.22);
  --rarity-fill: rgba(var(--rarity-rgb), 0.10);
  position: relative;
  border-color: var(--rarity-border) !important;
  box-shadow:
    0 8px 18px rgba(0,0,0,0.30),
    0 0 0 1px var(--rarity-border),
    0 0 16px var(--rarity-soft);
  isolation: isolate;
}
.banner-rarity-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 18%, var(--rarity-fill), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 45%);
  pointer-events: none;
  z-index: 0;
}
.banner-rarity-glow > img,
.banner-rarity-glow > span {
  position: relative;
  z-index: 0;
}
.banner-rarity-glow--green {
  --rarity-rgb: 55, 180, 105;
}
.banner-rarity-glow--blue {
  --rarity-rgb: 80, 140, 255;
}
.banner-rarity-glow--red {
  --rarity-rgb: 224, 36, 36;
}
.banner-sheet-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-3);
}
.banner-sheet-meta > span:first-child {
  border: 1px solid var(--line-1);
  background: var(--bg-2);
  border-radius: 999px;
  padding: 2px 8px;
}
.banner-pack-sheet-preview {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 18px 0 8px;
}
.banner-pack-sheet-preview__item {
  width: 74px;
  aspect-ratio: 3 / 4;
  margin-left: -10px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--bg-3);
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,0.3);
}
.banner-pack-sheet-preview__item:first-child {
  margin-left: 0;
}
.banner-pack-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  color: var(--text-3);
  font-size: 12px;
}
.banner-pack-progress b {
  color: #62d28f;
  font-size: 11px;
}
.banner-pack-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.banner-pack-item {
  appearance: none;
  color: inherit;
  text-align: left;
  border: 1px solid var(--line-1);
  background: var(--bg-2);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.banner-pack-item__thumb {
  width: 48px;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  background: var(--bg-3);
  border: 1px solid var(--line-1);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 900;
}
.banner-pack-item__body {
  min-width: 0;
  flex: 1;
}
.banner-pack-item__name {
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.banner-pack-item__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--text-3);
  font-size: 11px;
}
.market-maintenance-card {
  min-height: 220px;
  border-radius: 18px;
  border: 1px solid var(--line-1);
  background:
    radial-gradient(circle at 82% 18%, rgba(224,36,36,0.14), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)),
    var(--bg-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}
.market-maintenance-card__badge {
  color: var(--red-1);
  background: rgba(224,36,36,0.12);
  border: 1px solid rgba(224,36,36,0.24);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 12px;
}
.market-maintenance-card__title {
  font-size: 24px;
  font-weight: 950;
}
.market-maintenance-card__sub {
  max-width: 280px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 8px;
}
.shop-empty-card {
  min-height: 150px;
  border-radius: 16px;
  border: 1px solid var(--line-1);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px;
}
.shop-empty-card__title {
  font-size: 18px;
  font-weight: 900;
}
.shop-empty-card__sub {
  max-width: 260px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 8px;
}

.empty-state-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 20px;
  box-sizing: border-box;
  animation: empty-state-enter 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.empty-state-card--compact {
  min-height: 132px;
  padding: 20px 16px;
}
.empty-state-card__emoji {
  font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 58px;
  line-height: 1;
  margin-bottom: 18px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28));
  animation: empty-state-float 3.6s ease-in-out infinite;
}
.empty-state-card--compact .empty-state-card__emoji {
  font-size: 48px;
  margin-bottom: 14px;
}
.empty-state-card__title {
  color: var(--text-1);
  font-size: 16px;
  font-weight: 800;
  animation: empty-state-copy-enter 420ms 80ms ease-out both;
}
.empty-state-card__subtitle {
  max-width: 280px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 7px;
  animation: empty-state-copy-enter 420ms 130ms ease-out both;
}
.empty-state-card__action {
  margin-top: 20px;
  animation: empty-state-copy-enter 420ms 180ms ease-out both;
}

@keyframes empty-state-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes empty-state-copy-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes empty-state-float {
  0%, 100% {
    transform: translateY(0) rotate(-3deg) scale(1);
  }
  50% {
    transform: translateY(-8px) rotate(3deg) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .empty-state-card,
  .empty-state-card__emoji,
  .empty-state-card__title,
  .empty-state-card__subtitle,
  .empty-state-card__action {
    animation: none;
  }
}

.admin-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.admin-banner-card {
  width: 100%;
  position: relative;
  box-shadow: 0 12px 30px rgba(0,0,0,0.28);
}
.admin-banner-card .shop-item-card__img-wrap--banner {
  padding: 12px;
}
.admin-banner-card .shop-item-card__img--banner {
  width: 96%;
  height: 96%;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,0.48));
}
.admin-banner-upload {
  width: min(100%, 360px);
  aspect-ratio: 16 / 9;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid var(--line-1);
  background: var(--bg-2);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  padding: 12px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.28);
}
.admin-banner-upload__image-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-banner-upload__image {
  width: 96%;
  height: 96%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,0.5));
  pointer-events: none;
}
.admin-banner-upload__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(224,36,36,0.12), transparent 70%);
  color: var(--text-4);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-banner-upload__action {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  background: rgba(0,0,0,0.62);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  color: #fff;
}

.premium-card {
  padding: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(224,36,36,0.4), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(122,14,14,0.6), transparent 60%),
    linear-gradient(135deg, #2a0808 0%, #150404 100%);
  border: 1px solid rgba(224,36,36,0.3);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.premium-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 4px);
  pointer-events: none;
}


.plan {
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  padding: 14px;
  cursor: pointer;
  transition: all 120ms ease;
  position: relative;
}
.plan.selected {
  border-color: var(--red-2);
  background: linear-gradient(180deg, rgba(224,36,36,0.08), rgba(224,36,36,0.02));
  box-shadow: 0 0 0 1px var(--red-2) inset;
}
.plan .badge {
  position: absolute;
  top: -8px;
  right: 12px;
  background: var(--red-2);
  color: white;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}


.input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  color: var(--text-1);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border 120ms ease;
}
.input:focus { border-color: var(--red-2); }
.input:invalid { box-shadow: none !important; border-color: var(--line-1) !important; outline: none !important; }
.input:focus:invalid { border-color: var(--red-2) !important; }
.input[type=number]::-webkit-inner-spin-button,
.input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.input[type=number] { -moz-appearance: textfield; }
.input::placeholder { color: var(--text-4); }
textarea.input { height: auto; padding: 10px 14px; }

.admin-page {
  touch-action: pan-x pan-y;
}

.admin-page .phone {
  max-width: 100%;
}

.admin-sale-fields {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.admin-sale-fields > * {
  min-width: 0;
}

.admin-sale-fields .input {
  width: 100%;
  min-width: 0;
}

.admin-sale-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-3);
  text-transform: uppercase;
}

.admin-sale-footer,
.admin-sale-options,
.admin-sale-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-sale-footer {
  justify-content: space-between;
}

@media (max-width: 560px) {
  .admin-sale-fields {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .admin-sale-fields > :last-child {
    grid-column: 1 / -1;
  }

  .admin-sale-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-sale-options {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .admin-sale-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .admin-sale-actions .btn {
    width: 100%;
    min-width: 0;
  }
}


.filter-row {
  display: flex;
  gap: 6px;
  padding: 10px 16px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-row .fp {
  flex-shrink: 0;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 120ms ease;
}
.filter-row .fp.active {
  background: var(--red-2);
  border-color: var(--red-2);
  color: white;
}


@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position:  200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-3) 25%, var(--bg-4) 50%, var(--bg-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

@keyframes tabContentEnter {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.tab-enter,
.app-tab-panel--active {
  animation: tabContentEnter 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transform-origin: center top;
}

.subtab-panel {
  animation: tabContentEnter 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transform-origin: center top;
}

.subtab-panel--compact {
  animation-duration: 220ms;
}

@media (prefers-reduced-motion: reduce) {
  .tab-enter,
  .app-tab-panel--active,
  .subtab-panel,
  .tabbar button,
  .tabbar button .tab-ico {
    animation: none;
    transition: none;
  }
}


.sheet-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  min-height: 100%;
  background: rgba(0,0,0,0.72);
  z-index: 1000;
  animation: fadeIn 200ms ease;
  display: flex;
  align-items: flex-end;
  overscroll-behavior: contain;
}
.sheet {
  width: 100%;
  background: var(--bg-1);
  border-radius: 24px 24px 0 0;
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -18px 50px rgba(0,0,0,0.58);
  padding: 8px 0 0;
  animation: slideUp 280ms cubic-bezier(0.2, 0.9, 0.3, 1.05);
  max-height: calc(100dvh - env(safe-area-inset-top, 0px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.sheet .grabber {
  width: 36px;
  height: 4px;
  background: var(--bg-4);
  border-radius: 999px;
  margin: 6px auto 12px;
  cursor: grab;
  touch-action: none;
}
.sheet .grabber:active { cursor: grabbing; }
.shop-sheet-grabber-row {
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-sheet-grabber-row .grabber {
  margin: 0;
  flex-shrink: 0;
}


.verified {
  color: var(--blue);
  flex-shrink: 0;
}
.premium-prefix {
  color: var(--gold);
  font-weight: 600;
}
.banned {
  color: var(--red-1);
  flex-shrink: 0;
}
