/* =====================================================================
   O'yin skinlari. Har bir o'yin o'z prefiksi bilan butunlay alohida:
   pg- PUBG · ff- Free Fire · ml- MLBB · st- Steam · tgx- Telegram
   ===================================================================== */

/* Mahsulot kartasi yuklanayotganda kontent xira, spinner o'ngda */
.pg-item.loading, .ml-item.loading, .tgx-item.loading, .ff-card.loading, .st-gift.loading { color: inherit !important; }
.pg-item.loading > *, .ml-item.loading > *, .tgx-item.loading > *, .ff-card.loading > *, .st-gift.loading > * { visibility: visible; opacity: .3; }
.pg-item.loading::after, .ml-item.loading::after, .tgx-item.loading::after { left: auto; right: 18px; margin: -9px 0 0; }

/* ============================== PUBG ============================== */
.pg {
  --y: #f2a900; --y2: #ffd25a; --ink: #12120c; --ok: #b8f05a;
  --pl: rgba(24, 25, 16, .86); --ln: rgba(242,169,0,.24); --mt: #a39d84;
  font-family: Rajdhani, var(--font);
}
.pg-hero { position: relative; height: 206px; margin: -8px -14px 14px; overflow: hidden; border-bottom: 2px solid var(--y); background: #0e0f0a; }
.pg-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.pg-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 75% at 0% 100%, rgba(14,15,10,.72), transparent 70%),
    linear-gradient(180deg, rgba(14,15,10,0) 40%, rgba(14,15,10,.5) 72%, #0e0f0a);
}
/* Orqaga strelka app-chrome da doimiy — hero ichidagisi yashirin */
.pg-back, .ff-back, .ml-back, .st-back, .tgx-back { display: none !important; }
.pg-hero-txt { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; }
.pg-hero-txt small { display: inline-block; padding: 2px 8px; background: var(--y); color: var(--ink); font-size: .7rem; font-weight: 700; letter-spacing: .18em; }
.pg-hero-txt h1 { margin-top: 8px; font-size: 2.3rem; font-weight: 700; line-height: 1; letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 3px 18px rgba(0,0,0,.6); }
.pg-hero-txt p { margin-top: 4px; color: #d8d2bb; font-size: .9rem; font-weight: 600; letter-spacing: .04em; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.pg-hazard { position: absolute; z-index: 2; top: 0; right: 0; width: 130px; height: 10px; background: repeating-linear-gradient(-45deg, var(--y) 0 10px, #111 10px 20px); }

.pg-id {
  position: relative; margin-bottom: 10px; padding: 12px; background: var(--pl); border: 1px solid var(--ln);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: border-color .2s;
}
.pg-id.is-verified { border-color: rgba(184,240,90,.5); }
.pg-id-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: var(--y); font-size: .78rem; font-weight: 700; letter-spacing: .14em; }
.pg-id-top span { display: inline-flex; align-items: center; gap: 6px; }
.pg-id-top em { font-style: normal; color: var(--mt); font-size: .72rem; letter-spacing: .06em; }
.pg-id-row { display: flex; gap: 8px; }
.pg-id-row input {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 0; outline: none;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.1); color: #fff;
  font: 700 1.25rem Rajdhani, var(--font); letter-spacing: .12em;
}
.pg-id-row input:focus { border-color: var(--y); box-shadow: 0 0 0 3px rgba(242,169,0,.15); }
.pg-id-row input::placeholder { color: #57533f; }
.pg-check {
  flex-shrink: 0; min-width: 118px; height: 48px; padding: 0 14px; border: 0; cursor: pointer;
  background: var(--y); color: var(--ink); font: 700 .95rem Rajdhani, var(--font); letter-spacing: .1em;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px); --spin: #12120c;
}
.pg-check.is-done { background: #2e3b17; color: var(--ok); --spin: var(--ok); }
.pg-alert, .ff-alert, .ml-alert, .st-alert, .tgx-alert {
  display: none; margin-bottom: 10px; padding: 10px 12px; font-family: var(--font);
  font-size: .82rem; font-weight: 700; line-height: 1.35;
}
.pg-alert.show, .ff-alert.show, .ml-alert.show, .st-alert.show, .tgx-alert.show { display: block; animation: rise .3s ease; }
.pg-alert { background: rgba(255,70,70,.1); border-left: 3px solid #ff5d5d; color: #ffb0b0; }
.pg-nick {
  display: none; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 12px;
  background: linear-gradient(90deg, rgba(184,240,90,.12), transparent); border-left: 3px solid var(--ok);
  color: var(--ok); font-size: .8rem; font-weight: 700; letter-spacing: .08em;
}
.pg-nick.show { display: flex; animation: rise .3s ease; }
.pg-nick b { margin-left: auto; color: #fff; font-size: 1.05rem; letter-spacing: .04em; }
.pg-user { margin-top: -2px; }
.pg-user .pg-id-row input { letter-spacing: .02em; font-size: 1.05rem; }

.pg-sec { display: flex; align-items: center; gap: 8px; margin: 16px 0 10px; color: var(--mt); font-size: .85rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.pg-sec span { color: var(--y); }
.pg-sec::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--ln), transparent); }

.pg-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.pg-item {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px 10px 10px;
  border: 1px solid rgba(255,255,255,.07); background: linear-gradient(90deg, rgba(242,169,0,.07), rgba(22,23,15,.88) 40%);
  color: inherit; font: inherit; text-align: left; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: transform .12s, border-color .2s;
}
.pg-item:active { transform: scale(.985); border-color: var(--y); }
.pg-coin {
  width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe08a, #f2a900 55%, #a87400); color: #2a1d00;
  font: 700 .95rem Rajdhani, var(--font); letter-spacing: .04em;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 0 0 2px rgba(242,169,0,.25), 0 6px 14px rgba(242,169,0,.18);
}
.pg-coin.xl { width: 64px; height: 64px; font-size: 1.25rem; }
.pg-coin.pic { background: none; box-shadow: none; border-radius: 0; }
.pg-coin.pic img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.pg-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pg-name b { font-size: 1.25rem; font-weight: 700; line-height: 1.1; letter-spacing: .03em; }
.pg-name b small { color: var(--y); font-size: .8rem; }
.pg-name em { margin-top: 2px; font-style: normal; font-family: var(--font); font-size: .7rem; color: var(--mt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-inl { display: inline-block; height: 1.35em; width: auto; margin: 0 2px 0 1px; vertical-align: -.35em; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.pg-price { flex-shrink: 0; text-align: right; color: var(--y); font-size: 1.15rem; font-weight: 700; line-height: 1; }
.pg-price i { display: block; margin-top: 3px; font-style: normal; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mt); }
.pg-empty { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 22px; text-align: center; color: var(--mt); border: 1px dashed var(--ln); font-family: var(--font); }

.pg-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pg-tile {
  position: relative; height: 128px; overflow: hidden; color: #fff; text-decoration: none; border: 1px solid var(--ln);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.pg-tile.wide { grid-column: 1 / -1; height: 92px; }
.pg-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pg-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10,10,6,.92)); }
.pg-tile:active img { transform: scale(1.05); }
.pg-tag { position: absolute; z-index: 1; top: 8px; left: 8px; padding: 2px 7px; background: var(--y); color: var(--ink); font-size: .62rem; font-weight: 700; letter-spacing: .16em; }
.pg-tile-txt { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 10px; display: flex; align-items: baseline; justify-content: space-between; }
.pg-tile-txt strong { font-size: 1.3rem; font-weight: 700; letter-spacing: .06em; }
.pg-tile-txt small { color: var(--y); font-size: .78rem; font-weight: 700; }

.pg-confirm { padding-top: 6px; }
.pg-brief {
  position: relative; margin-bottom: 14px; background: var(--pl); border: 1px solid var(--ln);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.pg-brief-bar {
  display: flex; justify-content: space-between; align-items: center; padding: 10px 14px;
  background: repeating-linear-gradient(-45deg, #f2a900 0 14px, #dc9600 14px 28px);
  color: var(--ink); font-size: .82rem; font-weight: 700; letter-spacing: .16em;
}
.pg-brief-bar span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.pg-brief-body { padding: 16px 14px; }
.pg-brief-item { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--ln); }
.pg-brief-item small { color: var(--mt); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pg-brief-item h2 { font-size: 1.6rem; font-weight: 700; line-height: 1.05; letter-spacing: .03em; }
.pg-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pg-dl > div { min-width: 0; padding: 9px 10px; background: rgba(0,0,0,.3); border-left: 2px solid var(--ln); }
.pg-dl dt { color: var(--mt); font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pg-dl dd { margin-top: 2px; font-size: 1.05rem; font-weight: 700; overflow-wrap: anywhere; }
.pg-dl dd.y { color: var(--y); }
.pg-dl dd.mono { font-family: ui-monospace, monospace; font-size: .78rem; }
.pg-dl.one { grid-template-columns: 1fr; gap: 0; }
.pg-dl.one > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; background: none; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.pg-dl.one > div:last-child { border-bottom: 0; }
.pg-dl.one dd { margin: 0; text-align: right; }
.pg-desc { margin-top: 12px; color: #cfc9b1; font-family: var(--font); font-size: .8rem; line-height: 1.45; white-space: pre-line; }
.pg-warn { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 10px; background: rgba(255,93,108,.08); border: 1px solid rgba(255,93,108,.25); color: #ffb3ba; font-family: var(--font); font-size: .76rem; line-height: 1.4; }
.pg-warn svg { flex-shrink: 0; color: #ff7d8a; }
.pg-timer { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; color: var(--mt); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.pg-timer b { color: var(--y); font-size: 1rem; }
.pg-cta {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 56px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, #ffc93c, #f2a900); color: var(--ink); text-decoration: none;
  font: 700 1.2rem Rajdhani, var(--font); letter-spacing: .2em;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); --spin: #12120c;
}
.pg-cta:active { filter: brightness(.94); transform: translateY(1px); }
.pg-cta:disabled { opacity: .42; filter: grayscale(.7); cursor: not-allowed; transform: none; }

/* PUBG Boshqa — 2 ustunli 4x4 kartochkalar */
.pg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pg-card {
  display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; cursor: pointer; text-align: left;
  border: 1px solid rgba(255,255,255,.08); background: rgba(22,23,15,.9); color: inherit; font: inherit;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: transform .12s, border-color .2s;
}
.pg-card:active { transform: scale(.98); border-color: var(--y); }
.pg-card.loading { opacity: .7; pointer-events: none; }
.pg-card-img { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; background: #0e0f09; overflow: hidden; }
.pg-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-card-body { display: flex; flex-direction: column; gap: 4px; padding: 9px 10px 11px; border-top: 2px solid var(--y); }
.pg-card-body b { font-size: 1.02rem; font-weight: 700; line-height: 1.15; letter-spacing: .02em; overflow-wrap: anywhere; }
.pg-card-price { color: var(--y); font-size: 1.05rem; font-weight: 700; }
.pg-card-price i { font-style: normal; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mt); }
.pg-inbox { margin-bottom: 10px; }
.pg-coin-card img { border-radius: 8px; object-fit: cover; }
.pg-ghost {
  display: block; width: 100%; margin-top: 10px; padding: 13px; background: transparent; cursor: pointer;
  border: 1px solid rgba(255,255,255,.12); color: var(--mt); text-align: center; text-decoration: none;
  font: 700 .95rem Rajdhani, var(--font); letter-spacing: .14em; text-transform: uppercase;
}
.pg-low { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; padding: 12px; border: 1px solid rgba(255,93,108,.35); background: rgba(255,93,108,.08); color: #ffb3ba; font-family: var(--font); font-size: .8rem; }

.pg-drop { padding: 18px 10px 20px; text-align: center; }
.pg-crate { width: 120px; height: 130px; margin: 0 auto 8px; }
.pg-crate-svg { width: 100%; height: 100%; }
.pg-crate-svg .cn { fill: rgba(242,169,0,.88); }
.pg-crate-svg .ln { fill: none; stroke: #d9d2b8; stroke-width: 1.6; }
.pg-crate-svg .bx { fill: #c0392b; stroke: #2a0d08; stroke-width: 2; }
.pg-crate-svg .st { stroke: #2a0d08; stroke-width: 2; }
.pg-drop.s-processing .pg-crate, .pg-drop.s-admin .pg-crate, .pg-drop.s-pending .pg-crate { animation: pg-fall 2.6s ease-in-out infinite; }
@keyframes pg-fall {
  0%, 100% { transform: translateY(-10px) rotate(-3deg); }
  50% { transform: translateY(6px) rotate(3deg); }
}
.pg-drop.s-completed .pg-crate-svg .cn { fill: rgba(184,240,90,.88); }
.pg-drop.s-cancelled .pg-crate { filter: grayscale(1); opacity: .5; }
.pg-drop h2 { font-size: 2rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pg-drop.s-completed h2 { color: var(--y); text-shadow: 0 0 24px rgba(242,169,0,.45); }
.pg-drop.s-cancelled h2 { color: #ff7d8a; }
.pg-drop p { margin-top: 6px; color: var(--mt); font-family: var(--font); font-size: .84rem; line-height: 1.45; }
.pg-progress { max-width: 260px; height: 8px; margin: 14px auto 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.pg-progress i { display: block; height: 100%; background: repeating-linear-gradient(-45deg, var(--y) 0 8px, var(--y2) 8px 16px); transition: width .5s; }
.pg-prog-txt { color: var(--y); font-weight: 700; letter-spacing: .1em; }

/* ============================ FREE FIRE ============================ */
.ff { --o: #2f8dff; --r: #7b4dff; --g: #ffc53d; --cy: #5ad4ff; --pl: rgba(9, 16, 48, .86); --ln: rgba(84,150,255,.26); --mt: #93a6d6; --bg: #070c26; }
.ff-hero { position: relative; height: 210px; margin: -8px -14px 16px; overflow: hidden; background: var(--bg); }
.ff-hero.shop { height: 196px; }
.ff-hero > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.ff-hero.shop > img:first-child { object-position: 50% 45%; }
.ff-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,12,38,0) 38%, rgba(7,12,38,.55) 72%, var(--bg)), linear-gradient(90deg, rgba(7,12,38,.5), transparent 50%); }
.ff-back {
  position: absolute; z-index: 3; top: 12px; left: 14px; width: 42px; height: 38px; display: grid; place-items: center;
  border-radius: 8px; background: linear-gradient(135deg, var(--o), var(--r)); color: #fff; transform: skewX(-12deg);
  box-shadow: 0 6px 18px rgba(47,141,255,.4);
}
.ff-back svg { transform: skewX(12deg); }
.ff-logo { position: absolute; z-index: 3; right: 14px; bottom: 18px; width: 46%; max-width: 200px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.65)); }
.ff-hero-txt { position: absolute; z-index: 3; left: 18px; right: 18px; bottom: 16px; }
.ff-hero.shop .ff-hero-txt { right: calc(46% + 22px); }
.ff-hero-txt h1 {
  font-family: "Russo One", var(--display); font-weight: 400; font-style: italic; font-size: 2.1rem; line-height: 1.05;
  background: linear-gradient(180deg, #fff 35%, #9fd2ff); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #0b1f6b);
}
.ff-hero.shop .ff-hero-txt h1 { font-size: 1.45rem; line-height: 1.12; overflow-wrap: anywhere; }
.ff-hero-flag { display: block; margin-bottom: 4px; font-size: 1.15rem; line-height: 1.1; letter-spacing: 3px; }
.ff-hero-txt p { display: inline-block; margin-top: 6px; padding: 3px 12px; background: linear-gradient(90deg, var(--o), var(--r)); transform: skewX(-12deg); font-family: "Russo One", var(--display); font-size: .72rem; letter-spacing: .1em; }
.ff-hero-txt p:empty { display: none; }
.ff-embers { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ff-embers i { position: absolute; bottom: -8px; width: 4px; height: 4px; border-radius: 50%; background: #a8dcff; box-shadow: 0 0 8px var(--o); opacity: 0; animation: ff-ember 3.6s linear infinite; }
.ff-embers i:nth-child(1) { left: 10%; animation-delay: 0s; }
.ff-embers i:nth-child(2) { left: 28%; animation-delay: 1.1s; animation-duration: 4.2s; }
.ff-embers i:nth-child(3) { left: 46%; animation-delay: 2.2s; }
.ff-embers i:nth-child(4) { left: 63%; animation-delay: .6s; animation-duration: 3s; }
.ff-embers i:nth-child(5) { left: 79%; animation-delay: 1.7s; animation-duration: 4.6s; }
.ff-embers i:nth-child(6) { left: 92%; animation-delay: 2.8s; }
@keyframes ff-ember {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(18px, -190px); opacity: 0; }
}

.ff-sec { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; font-family: "Russo One", var(--display); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.ff-sec::before { content: ""; width: 20px; height: 6px; background: linear-gradient(90deg, var(--cy), var(--o), var(--r)); transform: skewX(-30deg); }

.ff-regions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 12px; }
.ff-region {
  position: relative; display: flex; align-items: center; min-height: 84px; padding: 12px 112px 12px 18px;
  border-radius: 14px; border: 1px solid var(--ln); color: #fff; text-decoration: none;
  background:
    radial-gradient(130px 100px at 90% 70%, rgba(123,77,255,.55), transparent 70%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.03) 0 2px, transparent 2px 12px),
    linear-gradient(100deg, #0b1440 0%, #12226a 60%, #2b2196 100%);
  box-shadow: 0 10px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.07);
  transition: transform .12s, border-color .2s;
}
.ff-region::before { content: ""; position: absolute; left: -1px; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, var(--cy), var(--o), var(--r)); }
.ff-region:active { transform: scale(.985); border-color: var(--o); }
.ff-region-txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ff-flags { font-size: 1.12rem; line-height: 1.15; letter-spacing: 3px; }
.ff-region strong { font-family: "Russo One", var(--display); font-weight: 400; font-size: 1.04rem; line-height: 1.2; letter-spacing: .02em; }
.ff-region strong em { color: var(--cy); font-style: normal; font-size: .8rem; letter-spacing: .05em; white-space: nowrap; }
.ff-region small { color: var(--mt); font-size: .72rem; }
.ff-region small i { margin-left: 3px; color: var(--g); font-style: normal; font-weight: 800; }
.ff-region-char {
  position: absolute; right: 0; bottom: 0; height: 98px; width: auto; pointer-events: none;
  clip-path: inset(-40px 0 0 -40px round 0 0 13px 0); filter: drop-shadow(-8px 0 14px rgba(4,8,30,.55));
}
.ff-empty { grid-column: 1 / -1; padding: 22px; text-align: center; color: var(--mt); border: 1px dashed var(--ln); border-radius: 12px; }

.ff-id { position: relative; margin-bottom: 10px; padding: 12px 12px 12px 16px; overflow: hidden; border-radius: 14px; background: var(--pl); border: 1px solid var(--ln); transition: border-color .2s; }
.ff-id::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: linear-gradient(180deg, var(--cy), var(--o), var(--r)); }
.ff-id.is-verified { border-color: rgba(61,220,132,.5); }
.ff-id label { display: block; margin-bottom: 8px; color: var(--g); font-family: "Russo One", var(--display); font-size: .72rem; letter-spacing: .14em; }
.ff-id-row { display: flex; gap: 10px; }
.ff-id-row input {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 10px; outline: none;
  border: 1px solid rgba(255,255,255,.1); background: rgba(2,6,24,.55); color: #fff; font: 700 1.1rem var(--font); letter-spacing: .1em;
}
.ff-id-row input:focus { border-color: var(--o); box-shadow: 0 0 0 3px rgba(47,141,255,.2); }
.ff-check {
  flex-shrink: 0; min-width: 112px; height: 48px; border: 0; border-radius: 10px; cursor: pointer; transform: skewX(-8deg);
  background: linear-gradient(135deg, var(--cy), var(--o) 50%, var(--r)); color: #fff;
  font: 400 .9rem "Russo One", var(--display); letter-spacing: .06em; text-shadow: 0 1px 0 rgba(0,0,0,.3);
  box-shadow: 0 8px 22px rgba(47,141,255,.32);
}
.ff-check > span { display: inline-block; transform: skewX(8deg); }
.ff-check.is-done { background: linear-gradient(135deg, #3ddc84, #1fa463); box-shadow: 0 8px 22px rgba(61,220,132,.25); }
.ff-alert { border-radius: 12px; background: rgba(255,59,47,.12); border: 1px solid rgba(255,59,47,.45); color: #ffb3a8; }
.ff-nick {
  display: none; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 14px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(47,141,255,.22), rgba(123,77,255,.08)); border: 1px solid var(--ln);
  color: var(--g); font-family: "Russo One", var(--display); font-size: .75rem; letter-spacing: .1em;
}
.ff-nick.show { display: flex; animation: rise .3s ease; }
.ff-nick b { margin-left: auto; color: #fff; font-family: var(--font); font-size: 1rem; font-weight: 800; letter-spacing: .02em; }

.ff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ff-card {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 6px 6px 12px;
  overflow: hidden; border-radius: 16px; border: 1px solid var(--ln); color: #fff; font: inherit; text-align: center; cursor: pointer;
  background: linear-gradient(180deg, rgba(22,38,104,.92), rgba(8,14,44,.96));
  box-shadow: 0 8px 20px rgba(0,0,0,.3); transition: transform .12s, border-color .2s;
}
.ff-card:active { transform: scale(.97); border-color: var(--o); }
.ff-card b { padding: 0 4px; font-family: "Russo One", var(--display); font-weight: 400; font-size: .92rem; line-height: 1.2; letter-spacing: .02em; overflow-wrap: anywhere; }
.ff-price { align-self: center; padding: 5px 12px; border-radius: 999px; background: linear-gradient(90deg, var(--o), var(--r)); font-size: .82rem; font-weight: 800; box-shadow: 0 4px 14px rgba(47,141,255,.3); }
.ff-price i { font-style: normal; font-size: .66rem; font-weight: 600; opacity: .85; }
.ff-art { display: block; overflow: hidden; aspect-ratio: 349 / 325; border-radius: 12px; background: #0b1141; }
.ff-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ff-art.xl { width: 148px; margin: 0 auto; border-radius: 18px; box-shadow: 0 12px 32px rgba(47,141,255,.35), 0 0 0 1px rgba(255,255,255,.1); }
.ff-art.spin { animation: ff-art 2.4s ease-in-out infinite; }
@keyframes ff-art { 50% { transform: scale(1.06); box-shadow: 0 14px 40px rgba(90,212,255,.55), 0 0 0 1px rgba(255,255,255,.18); } }

.ff-ticket {
  position: relative; margin: 6px 0 14px; overflow: hidden; border-radius: 18px; border: 1px solid var(--ln);
  background: linear-gradient(160deg, #15297a, #0a1238 60%);
  box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 0 0 0 1px rgba(90,212,255,.08);
}
.ff-ticket-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: linear-gradient(90deg, var(--o), var(--r)); font-family: "Russo One", var(--display); font-size: .85rem; letter-spacing: .1em; }
.ff-ticket-main { padding: 20px 16px 14px; text-align: center; }
.ff-ticket-main h2 { margin-top: 12px; font-family: "Russo One", var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; }
.ff-ticket-main p { margin-top: 4px; color: var(--mt); font-size: .85rem; }
.ff-cut { position: relative; height: 22px; }
.ff-cut::before { content: ""; position: absolute; left: 20px; right: 20px; top: 50%; border-top: 2px dashed rgba(90,212,255,.3); }
.ff-cut::after { content: ""; position: absolute; inset: 0 -1px; background: radial-gradient(circle at 0 50%, var(--bg) 11px, transparent 12px), radial-gradient(circle at 100% 50%, var(--bg) 11px, transparent 12px); }
.ff-rows { padding: 4px 16px 6px; }
.ff-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: .86rem; }
.ff-rows > div:last-child { border-bottom: 0; }
.ff-rows span { color: var(--mt); }
.ff-rows b { text-align: right; overflow-wrap: anywhere; }
.ff-rows b.hot { color: var(--g); font-size: 1rem; }
.ff-warn { display: flex; gap: 8px; margin: 6px 16px 0; padding: 10px; border-radius: 10px; background: rgba(255,59,47,.1); color: #ffb3a8; font-size: .76rem; line-height: 1.4; }
.ff-warn svg { flex-shrink: 0; }
.ff-timer { padding: 12px 16px 16px; text-align: center; color: var(--mt); font-size: .8rem; }
.ff-timer b { color: var(--g); font-family: "Russo One", var(--display); font-weight: 400; }
.ff-ticket.compact .ff-rows { padding-top: 8px; }
.ff-cta {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 56px; border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, var(--cy), var(--o) 45%, var(--r)); color: #fff; text-decoration: none;
  font: 400 1.1rem "Russo One", var(--display); letter-spacing: .08em; text-shadow: 0 2px 0 rgba(10,20,90,.45);
  box-shadow: 0 12px 30px rgba(47,141,255,.38);
}
.ff-cta:active { transform: translateY(1px); filter: brightness(.95); }
.ff-ghost { display: block; width: 100%; margin-top: 10px; padding: 13px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: var(--mt); font: 700 .9rem var(--font); text-align: center; text-decoration: none; cursor: pointer; }
.ff-low { margin-bottom: 10px; padding: 12px; border-radius: 12px; border: 1px solid rgba(255,59,47,.4); background: rgba(255,59,47,.1); color: #ffb3a8; font-size: .8rem; }
.ff-burst { position: relative; padding: 22px 10px 18px; text-align: center; }
.ff-burst::before { content: ""; position: absolute; top: 0; left: 50%; z-index: -1; width: 260px; height: 260px; margin-left: -130px; background: radial-gradient(circle, rgba(47,141,255,.38), transparent 65%); }
.ff-burst h2 { margin-top: 14px; font-family: "Russo One", var(--display); font-weight: 400; font-style: italic; font-size: 2rem; letter-spacing: .02em; }
.ff-burst.s-completed h2 { font-size: 2.8rem; background: linear-gradient(180deg, #fff, var(--g) 60%, #ff9d2e); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #0b1f6b); }
.ff-burst.s-cancelled h2 { color: #ff7a6e; }
.ff-burst.s-cancelled .ff-art { filter: grayscale(1); opacity: .5; animation: none; }
.ff-burst p { margin-top: 6px; color: var(--mt); font-size: .84rem; line-height: 1.45; }

/* =============================== MLBB =============================== */
.ml { --gold: #e9c46a; --gold2: #fff0b8; --pu: #6a4cff; --cy: #49d3ff; --pl: rgba(14, 20, 58, .8); --ln: rgba(233,196,106,.28); --mt: #9aa3c7; }
.ml-hero { position: relative; height: 212px; margin: -8px -14px 16px; overflow: hidden; background: #060a1e; }
.ml-hero.shop { height: 196px; background: radial-gradient(70% 60% at 50% 0%, rgba(106,76,255,.32), transparent 70%), #060a1e; }
.ml-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.ml-hero.shop img {
  position: absolute; left: 0; bottom: 0; height: 74%; object-position: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 32%); mask-image: linear-gradient(180deg, transparent, #000 32%);
}
.ml-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,10,30,0) 45%, rgba(6,10,30,.6) 78%, #060a1e), radial-gradient(80% 60% at 80% 0%, rgba(106,76,255,.28), transparent); }
.ml-hero.shop::after { background: linear-gradient(180deg, rgba(6,10,30,0) 72%, #060a1e); }
.ml-hero.shop .ml-hero-txt { top: 14px; bottom: auto; padding: 0 64px; }
.ml-hero.shop .ml-hero-txt h1 { font-size: 1.35rem; line-height: 1.2; }
.ml-back { position: absolute; z-index: 3; top: 12px; left: 14px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ln); background: rgba(6,10,30,.65); color: var(--gold); }
.ml-hero-txt { position: absolute; z-index: 3; left: 0; right: 0; bottom: 20px; text-align: center; }
.ml-hero-txt small { color: var(--gold); font-family: Cinzel, serif; font-size: .7rem; letter-spacing: .3em; }
.ml-hero-txt h1 {
  font-family: Cinzel, serif; font-weight: 800; font-size: 1.9rem; letter-spacing: .08em;
  background: linear-gradient(180deg, var(--gold2), var(--gold) 55%, #b8862f); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
}
.ml-hero-txt p { margin-top: 2px; color: #cdd3f0; font-size: .76rem; letter-spacing: .16em; }
.ml-hero-h { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ml-hero-flag { font-size: 1.15rem; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.ml-orn { position: absolute; z-index: 3; left: 50%; bottom: 9px; width: 180px; height: 1px; margin-left: -90px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.ml-orn::after { content: ""; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; margin-left: -4px; background: var(--gold); transform: rotate(45deg); }

.ml-sec { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--gold); font-family: Cinzel, serif; font-size: .85rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.ml-sec i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--ln)); }
.ml-sec i:last-child { background: linear-gradient(90deg, var(--ln), transparent); }
.ml-sec span { white-space: nowrap; }

.ml-regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; }
.ml-medal { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; text-align: center; text-decoration: none; }
.ml-ring {
  width: 76px; height: 76px; padding: 3px; display: grid; place-items: center; border-radius: 50%;
  background: conic-gradient(from 200deg, #b8862f, var(--gold2), var(--gold), #8a6420, var(--gold2), #b8862f);
  box-shadow: 0 8px 22px rgba(0,0,0,.45), 0 0 18px rgba(233,196,106,.18); transition: transform .15s;
}
.ml-ring > span {
  width: 100%; height: 100%; padding: 4px; display: grid; place-items: center; overflow: hidden; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #1d2a6e, #0b1235 70%); font-size: 1.5rem; line-height: 1.05; overflow-wrap: anywhere;
}
.ml-ring.many > span { font-size: 1rem; }
.ml-medal:active .ml-ring { transform: scale(.94); }
.ml-medal strong { font-family: Cinzel, serif; font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.ml-medal small { color: var(--mt); font-size: .66rem; }
.ml-empty { grid-column: 1 / -1; padding: 22px; text-align: center; color: var(--mt); border: 1px dashed var(--ln); border-radius: 14px; }

.ml-id { position: relative; margin-bottom: 10px; padding: 14px; border-radius: 16px; background: linear-gradient(180deg, rgba(29,42,110,.6), rgba(11,18,53,.88)); border: 1px solid var(--ln); transition: border-color .2s; }
.ml-id::before, .ml-id::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--gold); }
.ml-id::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 16px; }
.ml-id::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 16px; }
.ml-id.is-verified { border-color: rgba(106,76,255,.65); }
.ml-id-title { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--gold); font-family: Cinzel, serif; font-size: .78rem; font-weight: 700; letter-spacing: .14em; }
.ml-id-row { display: grid; grid-template-columns: 1fr 104px; gap: 8px; }
.ml-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ml-f span { color: var(--mt); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ml-f input {
  width: 100%; min-width: 0; height: 46px; padding: 0 12px; border-radius: 10px; outline: none;
  border: 1px solid rgba(233,196,106,.22); background: rgba(3,6,20,.6); color: #fff; font: 700 1.05rem var(--font); letter-spacing: .08em;
}
.ml-f input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233,196,106,.14); }
.ml-f.zone input { text-align: center; }
.ml-hint { margin-top: 10px; color: var(--mt); font-size: .74rem; line-height: 1.4; }
.ml-check {
  width: 100%; height: 46px; margin-top: 10px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255,240,184,.5); background: linear-gradient(180deg, #f6d98b, #d4a64a 55%, #b8862f); color: #2a1a00;
  font: 800 .9rem Cinzel, serif; letter-spacing: .14em;
  box-shadow: 0 8px 22px rgba(233,196,106,.25), inset 0 1px 0 rgba(255,255,255,.5); --spin: #2a1a00;
  animation: rise .3s ease;
}
.ml-check.is-done { background: linear-gradient(180deg, #7d62ff, #4a32c9); border-color: rgba(160,140,255,.6); color: #fff; --spin: #fff; }
.ml-alert { border-radius: 12px; background: rgba(255,80,110,.1); border: 1px solid rgba(255,80,110,.4); color: #ffb3c1; }
.ml-nick {
  display: none; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 14px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(106,76,255,.24), rgba(73,211,255,.06)); border: 1px solid rgba(106,76,255,.45);
  color: var(--cy); font-family: Cinzel, serif; font-size: .74rem; letter-spacing: .14em;
}
.ml-nick.show { display: flex; animation: rise .3s ease; }
.ml-nick .ml-crest-svg { width: 22px; height: 22px; }
.ml-nick b { margin-left: auto; color: #fff; font-family: var(--font); font-size: 1rem; letter-spacing: .02em; }

.ml-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ml-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(233,196,106,.16); background: linear-gradient(90deg, rgba(29,42,110,.55), rgba(11,18,53,.88));
  color: #fff; font: inherit; text-align: left; transition: transform .12s, border-color .2s;
}
.ml-item:active { transform: scale(.985); border-color: var(--gold); }
.ml-name { flex: 1; min-width: 0; font-size: .95rem; font-weight: 700; }
.ml-price { flex-shrink: 0; padding: 6px 12px; border-radius: 10px; background: rgba(233,196,106,.12); border: 1px solid var(--ln); color: var(--gold2); font-size: .86rem; font-weight: 800; }
.ml-price i { font-style: normal; font-size: .66rem; color: var(--gold); }
.ml-gem { flex-shrink: 0; width: 38px; height: 30px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(73,211,255,.5)); }
.ml-gem.xl { width: 66px; height: 52px; }

.ml-scroll {
  position: relative; margin: 8px 0 14px; padding: 26px 18px 18px; text-align: center; border-radius: 18px; border: 1px solid var(--ln);
  background: radial-gradient(120% 70% at 50% 0%, rgba(106,76,255,.28), transparent 60%), linear-gradient(180deg, #121a4a, #0a1030);
  box-shadow: 0 20px 44px rgba(0,0,0,.5), inset 0 0 0 4px rgba(233,196,106,.06);
}
.ml-scroll::before, .ml-scroll::after { content: ""; position: absolute; left: 14px; right: 14px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.ml-scroll::before { top: 8px; }
.ml-scroll::after { bottom: 8px; }
.ml-crest { width: 56px; height: 56px; margin: 0 auto 6px; }
.ml-crest.big { width: 92px; height: 92px; }
.ml-crest-svg { width: 100%; height: 100%; }
.ml-crest-svg .sh { fill: #1d2a6e; stroke: var(--gold, #e9c46a); stroke-width: 2.5; }
.ml-crest-svg .cr { fill: var(--gold, #e9c46a); }
.ml-scroll-title { color: var(--gold); font-family: Cinzel, serif; font-size: 1.15rem; font-weight: 800; letter-spacing: .2em; }
.ml-tx { display: block; margin-top: 2px; color: var(--mt); font-size: .72rem; letter-spacing: .1em; }
.ml-scroll-product { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0 12px; padding: 12px; border-radius: 14px; background: rgba(3,6,20,.45); border: 1px solid rgba(233,196,106,.15); }
.ml-scroll-product b { font-size: 1.15rem; font-weight: 800; text-align: left; }
.ml-rows { text-align: left; }
.ml-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px solid rgba(233,196,106,.1); font-size: .86rem; }
.ml-rows span { padding-top: 2px; color: var(--mt); font-family: Cinzel, serif; font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.ml-rows b { text-align: right; overflow-wrap: anywhere; }
.ml-rows b.gold { color: var(--gold2); font-size: 1rem; }
.ml-after { display: flex; justify-content: space-between; padding: 9px 2px; color: var(--mt); font-size: .82rem; }
.ml-warn { display: flex; gap: 8px; margin-top: 8px; padding: 10px; border-radius: 10px; background: rgba(255,80,110,.08); border: 1px solid rgba(255,80,110,.25); color: #ffb3c1; font-size: .76rem; line-height: 1.4; text-align: left; }
.ml-warn svg { flex-shrink: 0; }
.ml-timer { margin-top: 12px; color: var(--mt); font-size: .78rem; letter-spacing: .08em; }
.ml-timer b { color: var(--gold); }
.ml-cta {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 56px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(255,240,184,.6); background: linear-gradient(180deg, #f6d98b, #d4a64a 55%, #a87a28); color: #2a1a00; text-decoration: none;
  font: 800 1.05rem Cinzel, serif; letter-spacing: .18em;
  box-shadow: 0 12px 30px rgba(233,196,106,.28), inset 0 1px 0 rgba(255,255,255,.55); --spin: #2a1a00;
}
.ml-cta:active { transform: translateY(1px); filter: brightness(.95); }
.ml-ghost { display: block; width: 100%; margin-top: 10px; padding: 13px; border-radius: 14px; border: 1px solid rgba(233,196,106,.2); background: rgba(255,255,255,.03); color: var(--mt); font: 700 .9rem var(--font); text-align: center; text-decoration: none; cursor: pointer; }
.ml-low { margin-bottom: 10px; padding: 12px; border-radius: 12px; border: 1px solid rgba(255,80,110,.4); background: rgba(255,80,110,.1); color: #ffb3c1; font-size: .8rem; }
.ml-banner { padding: 18px 10px 16px; text-align: center; }
.ml-banner h2 { margin-top: 6px; font-family: Cinzel, serif; font-size: 2.2rem; font-weight: 800; letter-spacing: .14em; }
.ml-banner.s-completed h2 { background: linear-gradient(180deg, #fff6d0, var(--gold) 50%, #b8862f); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(233,196,106,.45)); }
.ml-banner.s-cancelled h2 { color: #ff6b81; }
.ml-banner.s-cancelled .ml-crest { filter: grayscale(1); opacity: .6; }
.ml-banner.s-processing .ml-crest, .ml-banner.s-admin .ml-crest, .ml-banner.s-pending .ml-crest { animation: ml-glow 2s ease-in-out infinite; }
@keyframes ml-glow { 50% { transform: scale(1.05); filter: drop-shadow(0 0 16px rgba(106,76,255,.85)); } }
.ml-banner p { margin-top: 6px; color: var(--mt); font-size: .84rem; line-height: 1.45; }
.ml-scroll.compact { padding: 16px; text-align: left; }
.ml-scroll.compact .ml-scroll-product { justify-content: flex-start; margin-top: 0; }
.ml-scroll.compact .ml-tx { margin-left: auto; }

/* =============================== STEAM =============================== */
.st { --bl: #66c0f4; --tx: #c7d5e0; --mt: #8f98a0; --gr: #a4d007; --pl: rgba(22, 32, 45, .94); --ln: rgba(102,192,244,.16); color: var(--tx); font-family: "Twemoji Country Flags", Manrope, Arial, sans-serif; }
.st-top { display: flex; align-items: center; gap: 10px; margin: -8px -14px 14px; padding: 12px 14px; background: #171a21; border-bottom: 1px solid #000; box-shadow: 0 1px 0 rgba(255,255,255,.04); }
.st-back { display: none !important; }
.st-logo { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 1rem; font-weight: 800; letter-spacing: .16em; }
.st-tag { margin-left: auto; color: var(--bl); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.st-feature { position: relative; height: 170px; margin-bottom: 12px; overflow: hidden; border-radius: 4px; box-shadow: 0 0 12px rgba(0,0,0,.5); }
.st-feature img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.st-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(23,26,33,.95)); }
.st-feature-txt { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; }
.st-feature-tag { position: absolute; z-index: 1; top: 10px; left: 10px; padding: 4px 8px; border-radius: 3px; background: rgba(23,26,33,.82); color: var(--bl); font-size: .62rem; font-weight: 700; letter-spacing: .16em; }
.st-feature-txt h1 { color: #fff; font-size: 1.2rem; font-weight: 800; line-height: 1.25; }
.st-capsule { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; padding: 14px; border-radius: 4px; border: 1px solid var(--ln); color: var(--tx); text-decoration: none; background: linear-gradient(90deg, rgba(102,192,244,.12), rgba(42,71,94,.35)); transition: background .2s; }
.st-capsule:active { background: linear-gradient(90deg, rgba(102,192,244,.24), rgba(42,71,94,.55)); }
.st-cap-ico { width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center; border-radius: 4px; background: linear-gradient(135deg, #2a475e, #1b2838); color: var(--bl); }
.st-cap-ico.gift { color: var(--gr); }
.st-cap-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-cap-txt b { color: #fff; font-size: .98rem; }
.st-cap-txt small { margin-top: 3px; color: var(--mt); font-size: .74rem; }
.st-cap-go { color: var(--bl); }
.st-panel { margin-bottom: 10px; padding: 14px; border-radius: 4px; background: var(--pl); border: 1px solid rgba(0,0,0,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.03); transition: border-color .2s; }
.st-panel.is-verified { border-color: rgba(164,208,7,.45); }
.st-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.st-h i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--bl); color: #0e1a26; font-style: normal; font-size: .7rem; }
.st-h.pad { margin: 4px 2px 10px; }
.st-cur { display: flex; flex-wrap: wrap; gap: 6px; }
.st-cur button { flex: 1 1 auto; padding: 9px 10px; border-radius: 3px; border: 1px solid rgba(102,192,244,.2); background: rgba(0,0,0,.25); color: var(--tx); font: 700 .8rem var(--font); cursor: pointer; }
.st-cur button.on { background: linear-gradient(90deg, #47bfff, #1a44c2); border-color: transparent; color: #fff; }
.st-row { display: flex; gap: 8px; }
.st-row input, .st-amount input {
  flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 3px; outline: none;
  border: 1px solid #0b0f15; background: #10161f; color: #fff; font: 600 1rem var(--font); box-shadow: inset 0 1px 2px rgba(0,0,0,.5);
}
.st-row input:focus, .st-amount input:focus { border-color: var(--bl); }
.st-btn { flex-shrink: 0; min-width: 104px; height: 44px; border: 0; border-radius: 3px; background: linear-gradient(90deg, #47bfff, #1a44c2); color: #fff; font: 700 .86rem var(--font); cursor: pointer; }
.st-btn.is-done { background: linear-gradient(90deg, #75b022, #588a1b); }
.st-note { margin-top: 8px; color: var(--mt); font-size: .72rem; line-height: 1.4; }
.st-alert { border-radius: 3px; background: rgba(195,60,60,.15); border: 1px solid rgba(195,60,60,.5); color: #f3a6a6; }
.st-acc { display: none; align-items: center; gap: 12px; margin-bottom: 10px; padding: 10px 12px; border-radius: 4px; background: linear-gradient(90deg, rgba(117,176,34,.2), rgba(23,34,50,.9)); border: 1px solid rgba(117,176,34,.4); }
.st-acc.show { display: flex; animation: rise .3s ease; }
.st-ava { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 3px; border: 2px solid #57cbde; background: linear-gradient(135deg, #3d6c8d, #1b2838); color: var(--bl); }
.st-acc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-acc-txt small { color: var(--mt); font-size: .62rem; font-weight: 700; letter-spacing: .14em; }
.st-acc-txt b { color: #57cbde; font-size: 1rem; overflow-wrap: anywhere; }
.st-ok { color: var(--gr); }
.st-amount { display: flex; align-items: center; gap: 8px; }
.st-amount input { height: 52px; font-size: 1.4rem; font-weight: 800; }
.st-amount span { min-width: 52px; text-align: center; color: var(--bl); font-weight: 800; }
.st-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.st-quick button { flex: 1 1 auto; padding: 8px; border-radius: 3px; border: 1px solid rgba(102,192,244,.2); background: rgba(102,192,244,.08); color: var(--bl); font: 700 .78rem var(--font); cursor: pointer; }
.st-quote { margin-top: 10px; }
.st-quote:empty { display: none; }
.st-quote.ok > div { display: flex; justify-content: space-between; padding: 6px 0; color: var(--mt); font-size: .84rem; }
.st-quote.ok b { color: #fff; }
.st-quote.ok .total b { color: var(--gr); font-size: 1.05rem; }
.st-quote.err { padding: 8px 10px; border-radius: 3px; background: rgba(195,60,60,.12); color: #f3a6a6; font-size: .8rem; }
.st-dots { display: inline-flex; gap: 4px; }
.st-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--bl); animation: st-dot 1s infinite; }
.st-dots i:nth-child(2) { animation-delay: .15s; }
.st-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes st-dot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.st-buy {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; margin-top: 4px; border: 0; border-radius: 3px; cursor: pointer;
  background: linear-gradient(90deg, #75b022 5%, #588a1b 95%); color: #d2efa9; text-decoration: none;
  font: 800 1rem var(--font); box-shadow: 0 2px 8px rgba(0,0,0,.35); --spin: #d2efa9;
}
.st-buy:active { background: linear-gradient(90deg, #8ed629 5%, #6aa621 95%); color: #fff; }
.st-cancel { display: block; width: 100%; margin-top: 8px; padding: 12px; border: 0; border-radius: 3px; background: rgba(103,193,245,.12); color: var(--bl); font: 700 .9rem var(--font); text-align: center; text-decoration: none; cursor: pointer; }
.st-regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.st-region { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 4px; background: var(--pl); border: 1px solid rgba(0,0,0,.4); color: var(--tx); text-decoration: none; }
.st-region:active { background: #2a475e; }
.st-flag { font-size: 1.6rem; line-height: 1; }
.st-region b { color: #fff; font-size: .8rem; }
.st-region small { color: var(--mt); font-size: .66rem; }
.st-gifts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-gift { display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 0; border-radius: 6px; background: var(--pl); color: inherit; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.35); transition: transform .12s; }
.st-gift:active { transform: scale(.97); }
.st-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; height: 108px; padding: 10px 12px; overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 100% 0%, rgba(102,192,244,.35), transparent 55%), linear-gradient(135deg, #1e3b56, #0f1b2a 70%); }
.st-card::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 80px; height: 80px; border-radius: 50%; border: 10px solid rgba(255,255,255,.05); }
.st-card-logo { display: inline-flex; align-items: center; gap: 6px; color: var(--tx); font-size: .68rem; font-weight: 800; letter-spacing: .18em; }
.st-card b { font-size: 1.25rem; font-weight: 800; }
.st-card small { color: var(--mt); font-size: .62rem; letter-spacing: .1em; }
.st-gift-foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #16202d; color: var(--mt); font-size: .72rem; }
.st-gift-foot b { color: var(--gr); font-size: .86rem; }
.st-empty { grid-column: 1 / -1; padding: 20px; text-align: center; color: var(--mt); }
.st-ph { margin-bottom: 12px; color: #fff; font-size: 1.05rem; font-weight: 800; }
.st-cart { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 10px; border-radius: 3px; background: rgba(0,0,0,.2); }
.st-thumb { width: 64px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 2px; background: linear-gradient(135deg, #47bfff, #1a44c2); color: #fff; }
.st-thumb.gift { background: linear-gradient(135deg, var(--gr), #4c6b22); }
.st-cart-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-cart-txt b { color: #fff; font-size: .9rem; overflow-wrap: anywhere; }
.st-cart-txt small { color: var(--mt); font-size: .74rem; }
.st-cart-price { color: #fff; font-size: .86rem; font-weight: 700; white-space: nowrap; }
.st-lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: .84rem; }
.st-lines span { color: var(--mt); }
.st-lines b { color: #fff; text-align: right; overflow-wrap: anywhere; }
.st-lines .st-total { padding-top: 12px; border-bottom: 0; font-size: 1rem; }
.st-lines .st-total b { color: var(--gr); }
.st-fine { margin-top: 10px; color: var(--mt); font-size: .72rem; line-height: 1.45; }
.st-fine:empty { display: none; }
.st-timer { margin-top: 10px; color: var(--mt); font-size: .74rem; text-align: center; }
.st-timer b { color: var(--bl); }
.st-low { margin-bottom: 8px; padding: 10px 12px; border-radius: 3px; border: 1px solid rgba(195,60,60,.4); background: rgba(195,60,60,.12); color: #f3a6a6; font-size: .8rem; }
.st-result { padding: 22px 14px; text-align: center; }
.st-res-ico { width: 60px; height: 60px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 50%; background: rgba(102,192,244,.15); color: var(--bl); }
.st-result.s-completed .st-res-ico { background: linear-gradient(135deg, #75b022, #588a1b); color: #fff; }
.st-result.s-cancelled .st-res-ico { background: rgba(195,60,60,.25); color: #f3a6a6; }
.st-result.s-processing .st-res-ico, .st-result.s-admin .st-res-ico, .st-result.s-pending .st-res-ico { animation: st-pulse 1.6s ease-in-out infinite; }
@keyframes st-pulse { 50% { box-shadow: 0 0 0 10px rgba(102,192,244,.08); } }
.st-result h2 { color: #fff; font-size: 1.2rem; font-weight: 800; }
.st-result p { margin-top: 6px; color: var(--mt); font-size: .82rem; line-height: 1.45; }
.st-code { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.st-code code { flex: 1; padding: 12px; border-radius: 3px; border: 1px dashed rgba(164,208,7,.5); background: #0f1720; color: var(--gr); font: 700 1rem ui-monospace, monospace; letter-spacing: .08em; text-align: center; overflow-wrap: anywhere; }
.st-code button { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 3px; background: rgba(102,192,244,.15); color: var(--bl); cursor: pointer; }
.st-code button.done { background: rgba(164,208,7,.2); color: var(--gr); }
.st-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--bl); font-size: .82rem; font-weight: 700; text-decoration: none; }
.st-chip { padding: 3px 8px; border-radius: 2px; font-size: .72rem; }
.st-chip.ok { background: rgba(117,176,34,.25); color: var(--gr); }
.st-chip.wait { background: rgba(102,192,244,.15); color: var(--bl); }
.st-chip.bad { background: rgba(195,60,60,.2); color: #f3a6a6; }
.st-chip.warn { background: rgba(230,160,40,.18); color: #f0c060; }

/* ============================= TELEGRAM ============================= */
.tgx {
  --bl: #2aabee; --hd: #17212b; --in: #182533; --out: #2b5278; --mt: #7f91a4; --tx: #f5f7fa; color: var(--tx);
  --c-prem: linear-gradient(90deg, #6c5ce7, #a259ff 50%, #e2559d); --c-login: linear-gradient(90deg, #3742fa, #2aabee);
  --c-stars: linear-gradient(90deg, #ffd34e, #ff9f1c); --c-gift: linear-gradient(90deg, #7bd65a, #2aabee);
}
.tgx-bar { display: flex; align-items: center; gap: 10px; margin: -8px -14px 12px; padding: 10px 12px; background: var(--hd); box-shadow: 0 1px 0 rgba(0,0,0,.4); }
.tgx-back { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; color: var(--bl); }
.tgx-ava { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 1.1rem; background: linear-gradient(135deg, #5fc3f5, #2a8fd8); }
.tgx-bar-txt { display: flex; flex-direction: column; min-width: 0; }
.tgx-bar-txt b { font-size: .98rem; }
.tgx-bar-txt small { color: var(--mt); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tgx-ava.pic { overflow: hidden; background: #000; }
.tgx-ava.pic img { width: 100%; height: 100%; object-fit: cover; }
.tgx-ava.pic img[src$="logo.png"] { object-fit: contain; }
.tgx-ava.login img, .tgx-card.login img, .tgx-show.login img, .tgx-inv-hero.login img { filter: hue-rotate(-28deg) saturate(1.15); }
.tgx-hero { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px; border-radius: 14px; background: var(--in); }
.tgx-hero img { width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; object-fit: contain; filter: drop-shadow(0 6px 16px rgba(42,171,238,.35)); }
.tgx-hero h1 { font-size: 1.15rem; }
.tgx-hero p { margin-top: 2px; color: var(--mt); font-size: .8rem; }
.tgx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tgx-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; color: inherit; text-decoration: none;
  background: var(--hd); border: 1px solid rgba(255,255,255,.06); box-shadow: 0 8px 22px rgba(0,0,0,.28); transition: transform .12s, border-color .2s;
}
.tgx-card:active { transform: scale(.97); border-color: rgba(42,171,238,.5); }
.tgx-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c-prem); }
.tgx-card.login::after { background: var(--c-login); }
.tgx-card.stars::after { background: var(--c-stars); }
.tgx-card.gift::after { background: var(--c-gift); }
.tgx-card-pic { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.tgx-card-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tgx-card.prem .tgx-card-pic img, .tgx-card.login .tgx-card-pic img { transform: scale(1.2); }
.tgx-card-pic em {
  position: absolute; left: 8px; top: 8px; max-width: calc(100% - 50px); padding: 3px 9px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: rgba(23,33,43,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-style: normal; font-size: .68rem; font-weight: 700;
}
.tgx-card-pic i { position: absolute; right: 8px; top: 8px; min-width: 22px; height: 22px; padding: 0 7px; display: grid; place-items: center; border-radius: 11px; background: var(--bl); color: #fff; font-style: normal; font-size: .72rem; font-weight: 700; }
.tgx-card-txt { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 13px; }
.tgx-card-txt b { font-size: 1rem; }
.tgx-card-txt small { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.7em; color: var(--mt); font-size: .72rem; line-height: 1.35; }
.tgx-show { position: relative; height: 150px; margin-bottom: 12px; overflow: hidden; border-radius: 18px; background: #000; border: 1px solid rgba(255,255,255,.06); }
.tgx-show img {
  position: absolute; top: 0; right: 0; width: 64%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%);
}
.tgx-show-txt { position: absolute; z-index: 1; left: 16px; top: 50%; max-width: 52%; transform: translateY(-50%); }
.tgx-show-txt::before { content: ""; display: block; width: 34px; height: 3px; margin-bottom: 8px; border-radius: 2px; background: var(--c-prem); }
.tgx-show.login .tgx-show-txt::before { background: var(--c-login); }
.tgx-show.stars .tgx-show-txt::before { background: var(--c-stars); }
.tgx-show.gift .tgx-show-txt::before { background: var(--c-gift); }
.tgx-show h1 { color: #fff; font-size: 1.3rem; line-height: 1.2; }
.tgx-show p { margin-top: 5px; color: rgba(255,255,255,.78); font-size: .8rem; line-height: 1.35; }
.tgx-input { display: flex; align-items: center; gap: 6px; height: 50px; margin-bottom: 8px; padding: 0 14px; border-radius: 12px; border: 1px solid transparent; background: var(--in); transition: border-color .2s; }
.tgx-input:focus-within { border-color: var(--bl); }
.tgx-input.is-verified { border-color: rgba(76,217,100,.5); }
.tgx-at { color: var(--bl); font-size: 1.05rem; font-weight: 800; }
.tgx-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; color: #fff; font: 600 1rem var(--font); }
.tgx-alert { border-radius: 12px; background: rgba(229,57,53,.14); border: 1px solid rgba(229,57,53,.4); color: #ffcdd2; }
.tgx-sec { margin: 14px 4px 8px; color: var(--bl); font-size: .8rem; font-weight: 700; }
.tgx-list { overflow: hidden; border-radius: 14px; background: var(--hd); }
.tgx-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tgx-item + .tgx-item::before { content: ""; position: absolute; top: 0; left: 48px; right: 0; height: 1px; background: rgba(255,255,255,.06); }
.tgx-item:active { background: rgba(255,255,255,.04); }
.tgx-radio { position: relative; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; border: 2px solid #4a5b6d; transition: border-color .2s; }
.tgx-item.on .tgx-radio { border-color: var(--bl); }
.tgx-item.on .tgx-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--bl); }
.tgx-prem .tgx-item.on .tgx-radio, .tgx-login .tgx-item.on .tgx-radio { border-color: #a259ff; }
.tgx-prem .tgx-item.on .tgx-radio::after, .tgx-login .tgx-item.on .tgx-radio::after { background: #a259ff; }
.tgx-stars .tgx-item.on .tgx-radio { border-color: #ffb21e; }
.tgx-stars .tgx-item.on .tgx-radio::after { background: #ffb21e; }
.tgx-item-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tgx-item-txt b { font-size: .95rem; }
.tgx-item-txt small { margin-top: 2px; color: var(--mt); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tgx-price { flex-shrink: 0; color: var(--bl); font-size: .9rem; font-weight: 800; }
.tgx-prem .tgx-price, .tgx-login .tgx-price { color: #c08bff; }
.tgx-stars .tgx-price { color: #ffc53d; }
.tgx-price i { font-style: normal; font-size: .7rem; color: var(--mt); }
.tgx-empty { padding: 20px; text-align: center; color: var(--mt); }
/* Telegram NFT-style gifts grid */
.nft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
  padding-bottom: 8px;
}
.nft-card {
  display: flex; flex-direction: column; gap: 8px;
  cursor: pointer; border: 0; background: none; color: inherit; padding: 0; text-align: left;
}
.nft-media {
  position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden;
  background: #1a1f2a; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset;
}
.nft-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nft-eye {
  position: absolute; top: 8px; right: 8px; height: 30px; padding: 0 8px 0 10px;
  border: 0; border-radius: 10px; display: inline-flex; align-items: center; gap: 5px;
  cursor: pointer; background: rgba(0,0,0,.48); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font: 700 .72rem/1 system-ui, sans-serif; letter-spacing: .02em;
}
.nft-eye span { white-space: nowrap; }
.nft-eye svg { flex-shrink: 0; }
.nft-eye:active { transform: scale(.96); background: rgba(0,0,0,.62); }
.nft-meta { display: flex; flex-direction: column; gap: 2px; padding: 0 2px; }
.nft-meta strong { font-size: .88rem; font-weight: 750; line-height: 1.2; }
.nft-meta span { font-size: .78rem; font-weight: 700; color: #7ec8ff; }

.gift-confirm { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.gift-confirm-hero {
  border-radius: 18px; overflow: hidden; aspect-ratio: 1.2; background: #111;
}
.gift-confirm-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gift-confirm-box {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 14px;
  background: rgba(0,0,0,.22);
}
.gift-confirm-box .line {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .9rem;
}
.gift-confirm-box .line:last-of-type { border-bottom: 0; }
.gift-confirm-box .line span { color: var(--mt, #9aa4b2); flex-shrink: 0; }
.gift-confirm-box .line b { text-align: right; font-weight: 700; }
.gift-confirm-box .line b.accent { color: #7ec8ff; }
.gift-desc { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.gift-desc span { display: block; color: var(--mt, #9aa4b2); font-size: .78rem; margin-bottom: 6px; }
.gift-desc p { margin: 0; white-space: pre-wrap; line-height: 1.45; font-size: .9rem; }
.gift-models-btn { margin: 12px 0 4px; width: 100%; text-align: center; }
.gift-warn {
  margin: 12px 0 0; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,193,7,.1); border: 1px solid rgba(255,193,7,.28);
  color: #ffe08a; font-size: .82rem; line-height: 1.4;
}

.tgx-chatbox {
  display: flex; flex-direction: column; gap: 8px; min-height: 62vh; margin: -12px -14px 0; padding: 14px 12px 12px;
  background: radial-gradient(circle at 18% 22%, rgba(42,171,238,.09), transparent 38%), radial-gradient(circle at 82% 64%, rgba(124,77,255,.09), transparent 40%);
}
.tgx-day, .tgx-sys { align-self: center; padding: 4px 10px; border-radius: 12px; background: rgba(0,0,0,.35); color: #dfe7ef; font-size: .74rem; font-weight: 600; text-align: center; }
.tgx-sys.warn { background: rgba(229,57,53,.25); color: #ffcdd2; }
.tgx-msg { display: flex; }
.tgx-msg.out { justify-content: flex-end; }
.tgx-invoice, .tgx-bubble { position: relative; max-width: 88%; border-radius: 16px 16px 16px 4px; background: var(--in); box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.tgx-invoice { width: 88%; overflow: hidden; padding-bottom: 24px; }
.tgx-bubble { padding: 10px 12px 22px; }
.tgx-bubble.out { padding: 10px 12px 8px; border-radius: 16px 16px 4px 16px; background: var(--out); }
.tgx-bubble.out .tgx-time { position: relative; right: auto; bottom: auto; float: right; margin: 6px -2px -2px 12px; }
.tgx-inv-hero { height: 168px; overflow: hidden; background: #000; }
.tgx-inv-hero img { width: 100%; height: 100%; object-fit: cover; }
.tgx-inv-title { display: block; padding: 10px 12px 0; font-size: 1rem; }
.tgx-inv-desc { padding: 4px 12px 0; color: #c5d0db; font-size: .8rem; line-height: 1.4; white-space: pre-line; }
.tgx-inv-rows { padding: 8px 12px 0; }
.tgx-bubble .tgx-inv-rows { padding: 8px 0 0; }
.tgx-inv-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .82rem; }
.tgx-inv-rows span { color: var(--mt); }
.tgx-inv-rows b { text-align: right; overflow-wrap: anywhere; }
.tgx-inv-total { display: flex; justify-content: space-between; margin: 8px 12px 0; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.08); font-size: .95rem; }
.tgx-inv-total b { color: var(--bl); }
.tgx-time { position: absolute; right: 10px; bottom: 5px; color: rgba(255,255,255,.5); font-size: .66rem; }
.tgx-ticks { margin-left: 2px; font-style: normal; }
.tgx-ticks.read { color: #6fd0ff; }
.tgx-kb { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 88%; }
.tgx-kb-btn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border: 0; border-radius: 10px; background: rgba(43,82,120,.6); color: #fff; font: 700 .86rem var(--font); text-decoration: none; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tgx-kb-btn.ok { background: rgba(42,171,238,.8); }
.tgx-kb-btn:active { filter: brightness(1.1); }
.tgx-bubble > b { display: block; font-size: .95rem; }
.tgx-bubble > p { margin-top: 4px; color: #c5d0db; font-size: .8rem; line-height: 1.4; }
.tgx-bubble.s-completed > b { color: #6fe08a; }
.tgx-bubble.s-cancelled > b { color: #ff8a80; }
.tgx-chip { padding: 2px 8px; border-radius: 10px; font-size: .72rem; }
.tgx-chip.ok { background: rgba(76,217,100,.18); color: #6fe08a; }
.tgx-chip.wait { background: rgba(42,171,238,.18); color: #7fd0ff; }
.tgx-chip.bad { background: rgba(229,57,53,.2); color: #ff8a80; }
.tgx-chip.warn { background: rgba(255,167,38,.2); color: #ffc46b; }

/* ===================== ID maydoni: X (tozalash) tugmasi ===================== */
.idf-wrap { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; align-self: stretch; }
.idf-wrap > input { flex: 1; width: 100%; min-width: 0; padding-right: 40px !important; }
.idf-clear {
  position: absolute; top: 50%; right: 7px; width: 28px; height: 28px; margin-top: -14px; padding: 0;
  display: none; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.82); -webkit-tap-highlight-color: transparent;
  transition: background .15s, transform .12s;
}
.idf-wrap.has-val .idf-clear { display: grid; animation: rise .2s ease; }
.idf-clear:active { transform: scale(.9); background: rgba(255,255,255,.22); }
.pg .idf-clear { border-radius: 0; background: rgba(242,169,0,.16); color: var(--y); }
.ff .idf-clear { background: rgba(47,141,255,.2); color: #cfe3ff; }
.ml .idf-clear { background: rgba(233,196,106,.16); color: var(--gold); }
.ml-f .idf-wrap { color: inherit; font-size: inherit; font-weight: inherit; letter-spacing: normal; text-transform: none; }
.ml-f.zone .idf-wrap > input { padding-left: 8px; padding-right: 34px !important; }
.ml-f.zone .idf-clear { right: 4px; width: 24px; height: 24px; margin-top: -12px; }
.st .idf-clear { border-radius: 3px; background: rgba(102,192,244,.14); color: var(--bl); }
.tgx-input .idf-wrap { height: 100%; }
.tgx-input .idf-wrap > input { padding-right: 34px !important; }
.tgx .idf-clear { right: -4px; background: rgba(127,145,164,.22); color: #c9d4df; }
