* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #121215;
  --bg-top: #1a1a1f;
  --card: #1c1c21;
  --card-2: #24242b;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --text: #f8f9fc;
  --muted: #8e909e;
  --epic-purple: #8575f7;
  --epic-purple-2: #6f5ee6;
  --epic-gold: #f5b800;
  --cyan: #38bdf8;
  --green: #22c55e;
  --red: #ef4444;
}

body {
  font-family: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; padding-bottom: 84px;
}

.num { font-variant-numeric: tabular-nums; direction: ltr; display: inline-block; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.muted-xs { font-size: 11px; color: var(--muted); }
.text-blue { color: var(--cyan); }
.text-purple { color: #a799ff; }
.text-gold { color: #fbbf24; }
.text-green { color: var(--green); }
.text-red { color: #f87171; }
.flex-1 { flex: 1; }
.full { width: 100%; }
.gem-inline { display: inline-flex; align-items: center; gap: 3px; }

.topbar {
  position: sticky; top: 0; z-index: 25;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: var(--bg-top); border-bottom: 1px solid var(--border);
}
.tb-user { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.tb-avatar-wrap { position: relative; width: 40px; height: 40px; flex-shrink: 0; }
.tb-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #8575f7, #38bdf8);
  border: 2px solid rgba(133, 117, 247, 0.65);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #fff; overflow: hidden;
}
.tb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tb-rank-dot {
  position: absolute; bottom: -2px; left: -2px; width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center; background: #1a1a1f; border-radius: 50%;
}
.tb-bal-label { font-size: 11px; color: var(--muted); line-height: 1.2; margin-bottom: 2px; }
.tb-bal-row { display: flex; align-items: center; gap: 5px; }
.tb-bal-num { font-size: 17px; font-weight: 800; color: #fff; line-height: 1; }
.tb-bal-num small { font-size: 12.5px; color: #d4d6e2; font-weight: 700; }

.tb-actions { display: flex; align-items: center; gap: 8px; }
.tb-deposit-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--epic-purple); color: #fff; border: none;
  border-radius: 13px; padding: 9px 15px; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 16px rgba(133, 117, 247, 0.35);
}
.tb-admin-btn {
  width: 38px; height: 38px; border-radius: 12px;
  background: rgba(245, 184, 0, 0.16); border: 1px solid rgba(245, 184, 0, 0.48);
  color: #fbbf24; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}

.container { padding: 14px 13px 20px; max-width: 520px; margin: 0 auto; }
.tab-panel { display: none; animation: fadeIn .18s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.epic-vip-hero {
  background: linear-gradient(180deg, #252042 0%, #1a1826 100%);
  border: 1px solid rgba(133, 117, 247, 0.24); border-radius: 22px; padding: 16px; margin-bottom: 13px;
}
.epic-vip-hero.admin-border { border-color: rgba(245, 184, 0, 0.4); }
.hero-total-row { display: flex; align-items: center; gap: 7px; margin-top: 4px; }
.hero-total-num { font-size: 28px; font-weight: 900; color: #fff; line-height: 1; }

.btn-refresh-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e4e6f0; border-radius: 11px; padding: 7px 11px; font-family: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.btn-refresh-pill.loading svg { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.capacity-card {
  margin: 14px 0 12px; background: rgba(18, 18, 24, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 15px; padding: 11px 12px;
}
.cap-items { display: flex; align-items: center; gap: 10px; }
.cap-stat { display: flex; flex-direction: column; gap: 2px; }
.cap-stat strong { font-size: 14px; font-weight: 800; }
.cap-divider { width: 1px; height: 24px; background: rgba(255, 255, 255, 0.1); }
.cap-track { width: 100%; height: 6px; border-radius: 99px; background: rgba(255,255,255,0.08); margin-top: 9px; overflow: hidden; }
.cap-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8575f7, #f5b800); transition: width .35s ease; }

.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.kpi-box { background: rgba(18, 18, 22, 0.56); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; }
.kpi-lbl { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.kpi-val { font-size: 17px; font-weight: 800; }
.kpi-val small { font-size: 11.5px; font-weight: 600; }
.kpi-val-icon { display: flex; align-items: center; gap: 5px; }
.ticket-ico { font-size: 14px; }

.quick-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 13px; }
.q-banner { position: relative; border-radius: 18px; padding: 13px 12px; cursor: pointer; overflow: hidden; transition: transform .14s; }
.q-banner:active { transform: scale(0.97); }
.q-banner.q-purple { background: linear-gradient(135deg, #5b3df5 0%, #8575f7 100%); box-shadow: 0 6px 20px rgba(105, 80, 245, 0.25); }
.q-banner.q-gold { background: linear-gradient(135deg, #d98200 0%, #f5b800 100%); color: #161412; box-shadow: 0 6px 20px rgba(245, 184, 0, 0.22); }
.q-tag { display: inline-block; font-size: 9.5px; font-weight: 900; padding: 2px 7px; border-radius: 99px; background: rgba(255,255,255,0.22); color: #fff; margin-bottom: 6px; }
.q-tag.dark { background: rgba(0,0,0,0.18); color: #161412; }
.q-title { font-size: 13.5px; font-weight: 800; }
.q-sub { font-size: 11px; opacity: 0.86; margin-top: 2px; }

.admin-strip { background: linear-gradient(135deg, rgba(245,184,0,0.14), rgba(133,117,247,0.12)); border: 1px solid rgba(245,184,0,0.42); border-radius: 16px; padding: 12px 13px; margin-bottom: 14px; cursor: pointer; }
.admin-crown-ico { width: 34px; height: 34px; border-radius: 10px; background: rgba(245,184,0,0.18); display: flex; align-items: center; justify-content: center; font-size: 18px; }

.epic-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 15px; margin-bottom: 12px; }
.epic-card.portal-card { border-color: rgba(56, 189, 248, 0.34); }
.epic-card.stars-card { border-color: rgba(245, 184, 0, 0.34); }
.inner-box { background: var(--card-2); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 12px 2px 9px; }
.section-head h2 { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.count-pill { background: rgba(133,117,247,0.2); color: #b5aaff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }

.cards-stack { display: flex; flex-direction: column; gap: 9px; }
.acc-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 13px; }
.acc-card.clickable { cursor: pointer; }
.acc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.acc-name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.dot-status { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.dot-status.warn { background: var(--epic-gold); }
.dot-status.err { background: var(--red); box-shadow: 0 0 10px rgba(239,68,68,0.85); }
.dot-status.live { background: #22c55e; box-shadow: 0 0 10px #22c55e; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.acc-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.acc-m { background: var(--card-2); border-radius: 12px; padding: 8px 6px; text-align: center; }
.acc-m span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 2px; }
.acc-m strong { font-size: 13px; font-weight: 800; }
.acc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--muted); }

.game-cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.g-card { position: relative; background: var(--card-2); border: 1.5px solid var(--border); border-radius: 15px; padding: 12px 6px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: inherit; cursor: pointer; transition: all .15s; }
.g-card .g-ico { font-size: 20px; }
.g-card .g-name { font-size: 12px; font-weight: 800; }
.g-card .g-hot { position: absolute; top: 5px; left: 6px; font-size: 8.5px; font-weight: 900; background: var(--epic-gold); color: #161412; padding: 1px 5px; border-radius: 6px; }
.g-card.active { background: linear-gradient(145deg, rgba(133,117,247,0.28), rgba(56,189,248,0.14)); border-color: var(--epic-purple); color: #fff; box-shadow: 0 4px 16px rgba(133,117,247,0.25); }

.vip-levels-list { display: flex; flex-direction: column; gap: 7px; }
.vip-lvl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card-2); border: 1.5px solid transparent; border-radius: 15px; padding: 10px 12px; cursor: pointer; transition: all .15s; }
.vip-lvl-row.active { background: rgba(133, 117, 247, 0.16); border-color: var(--epic-purple); }
.vip-lvl-row.dimmed { opacity: 0.78; }
.vip-lvl-left { display: flex; align-items: center; gap: 10px; }
.vip-lvl-name { font-size: 14px; font-weight: 800; color: #fff; line-height: 1.2; }
.vip-lvl-req { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: #d4d6e2; margin-top: 2px; font-weight: 700; }
.vip-lvl-badge { font-size: 10.5px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,0.08); color: #cbd5e1; }
.vip-lvl-row.active .vip-lvl-badge { background: var(--epic-purple); color: #fff; }

.wager-epic-card { background: linear-gradient(180deg, #252042 0%, #191823 100%); border: 1px solid rgba(133, 117, 247, 0.28); border-radius: 22px; padding: 15px; }
.wager-epic-card.done { background: linear-gradient(180deg, #163326 0%, #161d1b 100%); border-color: rgba(34, 197, 94, 0.55); }
.wager-epic-card.error { background: linear-gradient(180deg, #3b141d 0%, #1b1115 100%); border: 1.5px solid rgba(239, 68, 68, 0.78); box-shadow: 0 8px 26px rgba(239, 68, 68, 0.22); }

.vip-status-pill { display: flex; align-items: center; justify-content: space-between; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 15px; padding: 10px 12px; margin: 10px 0 12px; }
.vip-st-left { display: flex; align-items: center; gap: 10px; }
.vip-st-sub { font-size: 10px; color: var(--muted); letter-spacing: 0.4px; font-weight: 700; }
.vip-st-rank { font-size: 16px; font-weight: 900; color: #fff; line-height: 1.1; }

.epic-prog-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; margin-bottom: 7px; }
.epic-prog-track { position: relative; width: 100%; height: 18px; background: rgba(10, 10, 14, 0.85); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 999px; overflow: hidden; }
.epic-prog-fill { position: relative; height: 100%; border-radius: 999px; transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1); overflow: hidden; }
.epic-prog-fill.rk-none { background: linear-gradient(90deg, #6366f1, #8575f7); }
.epic-prog-fill.rk-iron { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }
.epic-prog-fill.rk-bronze { background: linear-gradient(90deg, #f59e0b, #ea580c, #fb923c); }
.epic-prog-fill.rk-silver { background: linear-gradient(90deg, #94a3b8, #e2e8f0, #f8fafc); }
.epic-prog-fill.rk-gold { background: linear-gradient(90deg, #eab308, #facc15, #fde047); }
.epic-prog-fill.rk-platinum { background: linear-gradient(90deg, #0284c7, #38bdf8, #7dd3fc); }
.epic-prog-fill.done { background: linear-gradient(90deg, #16a34a, #22c55e, #4ade80); }
.epic-prog-fill.error { background: linear-gradient(90deg, #b91c1c, #ef4444, #f87171); }
.epic-prog-fill.running::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.4) 50%, transparent 80%); animation: shimmer 1.5s linear infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.epic-prog-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 900; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.9); }
.epic-prog-foot { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); margin: 6px 0 11px; }

.wager-error-box { margin-top: 10px; background: rgba(239, 68, 68, 0.18); border: 1.5px solid rgba(239, 68, 68, 0.65); border-radius: 14px; padding: 10px 12px; color: #fecaca; font-size: 12.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; line-height: 1.5; }

.shop-cap-row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.09); font-size: 12px; color: #d4d6e2; }
.shop-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shop-pack-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 11px; display: flex; flex-direction: column; }
.shop-pack-frame { position: relative; background: linear-gradient(160deg, #282830 0%, #19191e 100%); border: 2px solid rgba(245, 184, 0, 0.52); border-radius: 16px; height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 10px; overflow: hidden; }
.shop-pack-card.vip .shop-pack-frame { border-color: #f5b800; background: linear-gradient(160deg, #382c12 0%, #1a1815 100%); box-shadow: inset 0 0 24px rgba(245, 184, 0, 0.18); }
.shop-price-pill { position: absolute; top: 7px; left: 7px; background: rgba(14, 14, 18, 0.88); border: 1px solid rgba(255,255,255,0.12); border-radius: 9px; padding: 3px 7px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: #fff; }
.shop-pack-title { font-size: 14px; font-weight: 800; text-align: center; margin-bottom: 3px; }
.shop-pack-meta { font-size: 11px; color: var(--muted); text-align: center; margin-bottom: 9px; }
.shop-extra-card { background: var(--card); border: 1.5px solid rgba(133,117,247,0.38); border-radius: 18px; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.wallet-addr-pill { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--card); border: 1px solid var(--border-strong); border-radius: 999px; padding: 10px 16px; margin: 0 auto 12px; cursor: pointer; max-width: 310px; }
.wallet-addr-pill code { font-size: 13px; font-weight: 700; color: #fff; direction: ltr; }
.copy-ico { font-size: 11px; color: var(--epic-purple); font-weight: 800; }
.wallet-big-row { display: flex; align-items: center; gap: 8px; font-size: 30px; font-weight: 900; margin-bottom: 10px; }
.wallet-full-addr { background: var(--card-2); border-radius: 12px; padding: 9px 11px; cursor: pointer; }
.wallet-full-addr code { display: block; font-size: 11px; color: var(--muted); direction: ltr; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.task-head { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 10px; }
.sq-ico { width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.sq-ico.purple { background: rgba(133,117,247,0.18); color: #a799ff; }
.sq-ico.gold { background: rgba(245,184,0,0.16); color: #fbbf24; }
.sq-ico.blue, .sq-ico.cyan { background: rgba(56,189,248,0.16); color: #38bdf8; }
.sq-ico.green { background: rgba(34,197,94,0.16); color: #4ade80; }

.gw-list { display: flex; flex-direction: column; gap: 8px; max-height: 230px; overflow-y: auto; margin-bottom: 12px; }
.gw-item { background: var(--card-2); border: 1.5px solid transparent; border-radius: 15px; padding: 11px 12px; cursor: pointer; }
.gw-item.selected { border-color: var(--epic-purple); background: rgba(133,117,247,0.14); }
.gw-stats-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 8px; }
.gw-stat-box { background: rgba(18,18,22,0.7); border-radius: 10px; padding: 7px 8px; text-align: center; }
.gw-stat-box span { display: block; font-size: 10px; color: var(--muted); }
.gw-stat-box strong { font-size: 13px; font-weight: 800; }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
h3 { font-size: 14.5px; font-weight: 800; }
.sub-text { font-size: 12px; color: var(--muted); margin: 3px 0 10px; line-height: 1.55; }
.field-label { display: block; font-size: 12px; color: #d4d6e2; font-weight: 700; margin-bottom: 6px; }

.input-icon-wrap { position: relative; }
.input-field { width: 100%; background: var(--card-2); border: 1px solid var(--border-strong); border-radius: 13px; color: #fff; padding: 11px 13px; font-family: inherit; font-size: 14px; font-weight: 600; outline: none; }
.input-field.has-right-adorn { padding-right: 46px; }
.input-field:focus { border-color: var(--epic-purple); }
.in-gem { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.in-unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 800; color: var(--muted); pointer-events: none; }
.input-row { display: flex; gap: 8px; }

.fee-breakdown { background: var(--card-2); border: 1px solid var(--border); border-radius: 14px; padding: 11px 12px; text-align: right; margin-top: 6px; }
.fee-row { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; padding: 4px 0; }
.fee-row.total { border-top: 1px solid var(--border); margin-top: 5px; padding-top: 8px; font-size: 13.5px; font-weight: 800; color: #fff; }

.epic-seg-2, .epic-seg-3 { display: grid; gap: 5px; padding: 4px; background: var(--card-2); border-radius: 13px; }
.epic-seg-2 { grid-template-columns: 1fr 1fr; }
.epic-seg-3 { grid-template-columns: 1fr 1fr 1fr; }
.seg-btn { border: none; background: transparent; color: var(--muted); padding: 9px 4px; border-radius: 10px; font-family: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.seg-btn.active { background: var(--epic-purple); color: #fff; }

.quick-pills { display: flex; gap: 6px; margin-top: 6px; }
.quick-pills button { flex: 1; background: #2a2a33; border: 1px solid var(--border); color: #e4e6f0; border-radius: 10px; padding: 7px 2px; font-family: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.quick-pills button.active { background: rgba(133,117,247,0.24); border-color: var(--epic-purple); color: #fff; }

.picker-list { display: flex; flex-direction: column; gap: 7px; max-height: 210px; overflow-y: auto; margin-bottom: 12px; }
.picker-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--card-2); border: 1.5px solid transparent; border-radius: 13px; padding: 9px 11px; cursor: pointer; }
.picker-item.selected { border-color: var(--epic-purple); background: rgba(133,117,247,0.14); }
.picker-left { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; }
.chk-box { width: 19px; height: 19px; border-radius: 6px; border: 1.5px solid #55586b; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.picker-item.selected .chk-box { background: var(--epic-purple); border-color: var(--epic-purple); color: #fff; }

.summary-bar { display: flex; align-items: center; justify-content: space-between; background: var(--card-2); border-radius: 12px; padding: 10px 12px; font-size: 12px; margin-bottom: 12px; }
.actions-split { display: flex; gap: 8px; }

.btn-epic-purple, .btn-epic-gold, .btn-epic-green, .btn-epic-cyan, .btn-epic-dark, .btn-epic-red, .btn-charge-quick { border: none; border-radius: 14px; padding: 12px 14px; font-family: inherit; font-size: 13px; font-weight: 800; cursor: pointer; text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-epic-purple { background: var(--epic-purple); color: #fff; box-shadow: 0 4px 14px rgba(133,117,247,0.28); }
.btn-epic-gold { background: var(--epic-gold); color: #161412; box-shadow: 0 4px 14px rgba(245,184,0,0.24); }
.btn-epic-green { background: #16a34a; color: #fff; }
.btn-epic-cyan { background: linear-gradient(135deg, #0284c7, #38bdf8); color: #fff; box-shadow: 0 4px 14px rgba(56,189,248,0.28); }
.btn-epic-dark { background: #2a2a33; color: #e4e6f0; border: 1px solid var(--border-strong); }
.btn-epic-red { background: rgba(239,68,68,0.2); border: 1px solid rgba(239,68,68,0.5); color: #fecaca; white-space: nowrap; }
.btn-charge-quick { width: 100%; margin-top: 9px; padding: 10px 12px; background: #dc2626; color: #fff; font-size: 12.5px; }
.btn-charge-quick.purple { background: var(--epic-purple); }
.btn-charge-quick.gold { background: var(--epic-gold); color: #161412; }
button:active { transform: scale(0.97); }
button:disabled { opacity: 0.5; pointer-events: none; }

.btn-dark-xs { background: #2a2a33; border: 1px solid var(--border); color: #e4e6f0; border-radius: 9px; padding: 5px 10px; font-family: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.btn-gold-xs { background: var(--epic-gold); border: none; color: #161412; border-radius: 9px; padding: 6px 10px; font-family: inherit; font-size: 11px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.btn-link { background: none; border: none; color: #a799ff; font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.btn-danger-xs { background: rgba(239,68,68,0.16); border: 1px solid rgba(239,68,68,0.38); color: #fca5a5; border-radius: 8px; padding: 3px 9px; font-family: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.pill-purple-sm { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: rgba(133,117,247,0.2); color: #b5aaff; }

.mini-tag { font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 8px; background: rgba(255,255,255,0.08); color: #d4d6e2; }
.mini-tag.purple { background: rgba(133,117,247,0.2); color: #b5aaff; }
.mini-tag.green { background: rgba(34,197,94,0.18); color: #4ade80; }
.mini-tag.red { background: rgba(239,68,68,0.22); color: #fca5a5; border: 1px solid rgba(239,68,68,0.5); }

.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: #2f2f39; border-radius: 999px; transition: .2s; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: var(--epic-purple); }
.switch input:checked + .slider:before { transform: translateX(20px); }
.static-pill { width: 100%; background: var(--card-2); border-radius: 13px; padding: 11px; font-size: 12.5px; color: var(--muted); text-align: center; }

.logs-stack { display: flex; flex-direction: column; gap: 7px; }
.log-row { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; font-size: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; justify-content: space-around; background: #18181d; border-top: 1px solid var(--border); padding: 6px 6px calc(8px + env(safe-area-inset-bottom)); }
.nav-btn { position: relative; flex: 1; max-width: 96px; background: none; border: none; color: #7e8192; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px; border-radius: 14px; font-family: inherit; font-size: 10.5px; font-weight: 700; cursor: pointer; transition: all .15s; }
.nav-btn.nav-shop { color: #d8b865; }
.nav-btn.active { color: #fff; background: var(--epic-purple); box-shadow: 0 4px 14px rgba(133,117,247,0.35); }
.nav-live-dot { position: absolute; top: 5px; left: 18px; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }

.modal-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,0.72); backdrop-filter: blur(5px); display: flex; align-items: flex-end; justify-content: center; }
.modal-sheet { width: 100%; max-width: 520px; max-height: 84vh; overflow-y: auto; background: #1a1a20; border-top: 1px solid var(--border-strong); border-radius: 24px 24px 0 0; padding: 12px 16px 28px; }
.modal-handle { width: 42px; height: 4px; border-radius: 99px; background: rgba(255,255,255,0.2); margin: 0 auto 12px; }
.btn-close { background: #2a2a33; border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 14px; }
.modal-body { font-size: 13px; line-height: 1.65; }
.res-item { background: var(--card-2); border: 1px solid var(--border); border-radius: 13px; padding: 10px 12px; margin-bottom: 8px; }

.confirm-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,0.75); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 18px; }
.confirm-box { width: 100%; max-width: 365px; background: #1c1c23; border: 1px solid rgba(133,117,247,0.45); border-radius: 22px; padding: 20px; text-align: center; }
.confirm-icon { font-size: 30px; margin-bottom: 6px; }

.empty-mini { text-align: center; color: var(--muted); font-size: 12px; padding: 16px 8px; }
.toast { position: fixed; top: 68px; left: 50%; transform: translateX(-50%); z-index: 80; background: #252530; border: 1px solid var(--epic-purple); color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 12px; font-weight: 700; max-width: 90%; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }

/* === V8 ADDITIONS: PORTAL & AUTOMATION SUB-TABS === */
.kpi-box.kpi-portal { border-color: rgba(56, 189, 248, 0.34); cursor: pointer; }
.kpi-strip {
  margin-top: 9px; background: rgba(18, 18, 22, 0.56); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between;
}
.q-banner.q-cyan { background: linear-gradient(135deg, #0369a1 0%, #38bdf8 100%); box-shadow: 0 6px 20px rgba(56, 189, 248, 0.24); }
.acc-metrics.m4 { grid-template-columns: repeat(2, 1fr); }

.auto-subtabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin-bottom: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.auto-subtabs::-webkit-scrollbar { display: none; }
.subtab-btn {
  flex: 1 0 auto; border: none; background: transparent; color: var(--muted);
  padding: 9px 11px; border-radius: 12px; font-family: inherit; font-size: 11.5px; font-weight: 800;
  cursor: pointer; white-space: nowrap; transition: all .15s;
}
.subtab-btn.active {
  background: var(--epic-purple); color: #fff;
  box-shadow: 0 4px 12px rgba(133, 117, 247, 0.32);
}
.auto-sub-panel { display: none; animation: fadeIn .16s ease; }
.auto-sub-panel.active { display: block; }

.epic-card.portal-list-card { border-color: rgba(133, 117, 247, 0.35); }
.epic-card.portal-wd-card { border-color: rgba(34, 197, 94, 0.34); }

.listing-item {
  background: var(--card-2); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px;
}
.listing-item.sold { border-color: rgba(34, 197, 94, 0.45); background: rgba(22, 163, 74, 0.1); }
.listing-item.stopped { opacity: 0.65; }

.shortcut-strip {
  background: rgba(245, 184, 0, 0.1); border: 1px solid rgba(245, 184, 0, 0.35);
  border-radius: 16px; padding: 12px 13px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; cursor: pointer;
}

/* === V9: VIBRANT COLOR PALETTE, EPIC 2x2 BOXES & INLINE WIN SHOWCASE === */
:root {
  --bg: #0f1016;
  --bg-top: rgba(20, 21, 31, 0.92);
  --card: #191a24;
  --card-2: #222432;
}

.ambient-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 42% at 50% -8%, rgba(133, 117, 247, 0.22), transparent 65%),
    radial-gradient(ellipse 55% 36% at 10% 32%, rgba(56, 189, 248, 0.11), transparent 65%),
    radial-gradient(ellipse 50% 34% at 92% 72%, rgba(34, 197, 94, 0.08), transparent 65%);
}

.topbar {
  background: var(--bg-top);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(133, 117, 247, 0.16);
}
.tb-deposit-btn {
  background: linear-gradient(135deg, #7c5dfa 0%, #9b87ff 100%);
  box-shadow: 0 4px 18px rgba(133, 117, 247, 0.42);
}

.epic-vip-hero {
  background: linear-gradient(160deg, #27204d 0%, #19182b 58%, #151929 100%);
  border: 1px solid rgba(133, 117, 247, 0.34);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255,255,255,0.08);
}

.kpi-box.kpi-epic {
  background: linear-gradient(155deg, rgba(34, 197, 94, 0.14), rgba(18, 22, 26, 0.72));
  border-color: rgba(34, 197, 94, 0.32);
}
.kpi-box.kpi-portal {
  background: linear-gradient(155deg, rgba(56, 189, 248, 0.15), rgba(18, 22, 30, 0.72));
  border-color: rgba(56, 189, 248, 0.36);
}
.kpi-box.kpi-egift {
  background: linear-gradient(155deg, rgba(168, 85, 247, 0.14), rgba(22, 18, 32, 0.72));
  border-color: rgba(168, 85, 247, 0.32);
}
.kpi-box.kpi-tggift {
  background: linear-gradient(155deg, rgba(245, 184, 0, 0.14), rgba(28, 22, 18, 0.72));
  border-color: rgba(245, 184, 0, 0.32);
}
.kpi-strip {
  background: linear-gradient(90deg, rgba(133, 117, 247, 0.16), rgba(56, 189, 248, 0.1));
  border-color: rgba(133, 117, 247, 0.28);
}

.q-banner.q-emerald {
  background: linear-gradient(135deg, #059669 0%, #10b981 55%, #34d399 100%);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.28);
}

.epic-card.accent-gold { border-color: rgba(245, 184, 0, 0.34); background: linear-gradient(180deg, #211d17 0%, var(--card) 55%); }
.epic-card.accent-purple { border-color: rgba(133, 117, 247, 0.34); background: linear-gradient(180deg, #201c33 0%, var(--card) 55%); }
.epic-card.accent-green { border-color: rgba(34, 197, 94, 0.34); background: linear-gradient(180deg, #16241d 0%, var(--card) 55%); }
.epic-card.wallet-hero-card {
  background: linear-gradient(160deg, #1f2238 0%, #171822 100%);
  border-color: rgba(56, 189, 248, 0.3);
}

.btn-epic-purple {
  background: linear-gradient(135deg, #745df7 0%, #9482ff 100%);
  box-shadow: 0 5px 18px rgba(133, 117, 247, 0.36);
}
.btn-epic-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  box-shadow: 0 5px 18px rgba(245, 184, 0, 0.3);
}
.btn-epic-green {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  box-shadow: 0 5px 18px rgba(34, 197, 94, 0.32);
}

.bottom-nav {
  background: rgba(18, 19, 27, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(133, 117, 247, 0.16);
}
.nav-btn.active {
  background: linear-gradient(135deg, #745df7 0%, #9b88ff 100%);
  box-shadow: 0 4px 16px rgba(133, 117, 247, 0.45);
}

/* === EPIC-STYLE 2x2 AUTOMATION BOXES === */
.epic-box-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}

.epic-auto-box {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background: #14151c;
  transition: transform .15s ease, box-shadow .2s ease;
}
.epic-auto-box:active { transform: scale(0.965); }

.epic-auto-box.box-gold {
  border: 1.8px solid #f5b800;
  box-shadow: 0 8px 24px rgba(245, 184, 0, 0.16);
}
.epic-auto-box.box-purple {
  border: 1.8px solid #937bff;
  box-shadow: 0 8px 24px rgba(133, 117, 247, 0.18);
}
.epic-auto-box.box-green {
  border: 1.8px solid #22c55e;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.16);
}
.epic-auto-box.box-blue {
  border: 1.8px solid #38bdf8;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.18);
}

.eab-stage {
  position: relative;
  height: 152px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 10px 6px;
  overflow: hidden;
}
.box-gold .eab-stage {
  background: radial-gradient(circle at 50% 56%, rgba(245, 184, 0, 0.24) 0%, #151417 72%);
}
.box-purple .eab-stage {
  background: radial-gradient(circle at 50% 56%, rgba(147, 123, 255, 0.26) 0%, #16141e 72%);
}
.box-green .eab-stage {
  background: radial-gradient(circle at 50% 56%, rgba(34, 197, 94, 0.22) 0%, #121916 72%);
}
.box-blue .eab-stage {
  background: radial-gradient(circle at 50% 56%, rgba(56, 189, 248, 0.26) 0%, #121821 72%);
}

.eab-bg-marks {
  position: absolute; inset: 0; pointer-events: none;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center;
  font-size: 11px; font-weight: 900; letter-spacing: 1px; opacity: 0.13; direction: ltr;
}
.box-gold .eab-bg-marks { color: #fbbf24; }
.box-purple .eab-bg-marks { color: #c4b5fd; }
.box-green .eab-bg-marks { color: #86efac; }
.box-blue .eab-bg-marks { color: #7dd3fc; }

.eab-title-tag {
  position: relative; z-index: 2;
  font-size: 20px; font-weight: 900; font-style: italic; letter-spacing: 0.6px;
  color: #fff; text-shadow: 0 3px 12px rgba(0,0,0,0.7);
  direction: ltr; line-height: 1; margin-bottom: 4px;
}
.eab-title-tag em { font-style: italic; color: #fde047; }
.box-purple .eab-title-tag { color: #e9d5ff; }
.box-green .eab-title-tag { color: #d1fae5; }

.eab-title-pill-top {
  position: relative; z-index: 2;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  border: 1px solid rgba(255,255,255,0.45);
  color: #fff; font-size: 11px; font-weight: 900; letter-spacing: 0.8px;
  padding: 4px 11px; border-radius: 10px; direction: ltr; margin-bottom: 4px;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
}

.eab-art {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.48));
}

.eab-footer {
  background: #20212b;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.eab-name { font-size: 12.5px; font-weight: 800; color: #f8f9fc; white-space: nowrap; }
.eab-pill {
  font-size: 11px; font-weight: 900; padding: 5px 10px; border-radius: 999px;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 3px;
}
.eab-pill.pill-gold { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #161412; }
.eab-pill.pill-purple { background: linear-gradient(135deg, #745df7, #9c8aff); color: #fff; }
.eab-pill.pill-green { background: linear-gradient(135deg, #16a34a, #22c55e); color: #fff; }
.eab-pill.pill-blue { background: linear-gradient(135deg, #0284c7, #38bdf8); color: #fff; }

/* === AUTOMATION DETAIL HEADER BAR === */
.auto-detail-bar {
  display: flex; align-items: center; gap: 7px; margin-bottom: 12px;
}
.btn-back-boxes {
  background: #232534; border: 1px solid rgba(255,255,255,0.12); color: #f8f9fc;
  border-radius: 13px; padding: 9px 11px; font-family: inherit; font-size: 11.5px; font-weight: 800;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.auto-mini-pills {
  flex: 1; display: flex; gap: 4px; overflow-x: auto; padding: 3px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.auto-mini-pills::-webkit-scrollbar { display: none; }
.auto-mini-pills .subtab-btn { padding: 7px 9px; font-size: 11px; }

/* === STEP BADGES IN GIFTS === */
.step-badge {
  font-size: 10px; font-weight: 900; padding: 3px 8px; border-radius: 99px; white-space: nowrap;
}
.step-badge.green { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
.step-badge.cyan { background: rgba(56, 189, 248, 0.18); color: #38bdf8; }
.step-badge.purple { background: rgba(133, 117, 247, 0.22); color: #b5aaff; }

/* === INLINE EPIC-STYLE GIFT WIN SHOWCASE (NO POPUP!) === */
.inline-result-zone {
  margin-bottom: 14px;
  animation: fadeIn .22s ease;
}

.epic-win-card {
  position: relative;
  background: linear-gradient(180deg, #212232 0%, #171822 100%);
  border: 1.5px solid rgba(133, 117, 247, 0.45);
  border-radius: 24px;
  padding: 18px 16px 16px;
  margin-bottom: 10px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45), 0 0 28px rgba(133, 117, 247, 0.16);
}
.epic-win-card.win-gold {
  border-color: rgba(245, 184, 0, 0.55);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45), 0 0 28px rgba(245, 184, 0, 0.18);
}
.epic-win-card::before {
  content: "";
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 240px; height: 180px; pointer-events: none;
  background: radial-gradient(circle, rgba(133, 117, 247, 0.28), transparent 70%);
}
.epic-win-card.win-gold::before {
  background: radial-gradient(circle, rgba(245, 184, 0, 0.26), transparent 70%);
}

.ewc-close {
  position: absolute; top: 12px; left: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  color: #cbd5e1; font-size: 13px; cursor: pointer; z-index: 3;
}
.ewc-heading {
  position: relative; z-index: 2;
  font-size: 18px; font-weight: 900; color: #fff; margin-bottom: 4px;
}
.ewc-sub {
  position: relative; z-index: 2;
  font-size: 12px; color: #a1a5ba; margin-bottom: 14px;
}
.ewc-img-frame {
  position: relative; z-index: 2;
  width: 122px; height: 122px; margin: 0 auto 12px;
  border-radius: 22px;
  background: linear-gradient(145deg, #2d3044, #222433);
  border: 1.5px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}
.ewc-img-frame img {
  width: 88%; height: 88%; object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.45));
}
.ewc-gift-name {
  position: relative; z-index: 2;
  font-size: 17px; font-weight: 900; color: #fff; margin-bottom: 7px;
}
.ewc-badge-row {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
  margin-bottom: 9px;
}
.ewc-pill {
  font-size: 11px; font-weight: 800; padding: 4px 11px; border-radius: 9px;
  background: rgba(133, 117, 247, 0.22); border: 1px solid rgba(133, 117, 247, 0.4);
  color: #d4ccff;
}
.ewc-pill.acc {
  background: rgba(56, 189, 248, 0.16); border-color: rgba(56, 189, 248, 0.36);
  color: #bae6fd; direction: ltr;
}
.ewc-price {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 18px; font-weight: 900; color: #fff; margin-bottom: 14px;
}
.ewc-actions {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 8px;
}
.ewc-btn-green {
  width: 100%; border: none; border-radius: 14px; padding: 12px;
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: #fff; font-family: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
  box-shadow: 0 5px 18px rgba(34, 197, 94, 0.35);
}
.ewc-btn-amber {
  width: 100%; border: none; border-radius: 14px; padding: 11px;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #161412; font-family: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
}
.ewc-btn-dark {
  width: 100%; border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 10px;
  background: #272938; color: #e4e6f0; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
}

.inline-summary-card {
  background: var(--card); border: 1px solid var(--border-strong);
  border-radius: 18px; padding: 13px;
}

.acc-card.disconnected {
  border-color: rgba(239, 68, 68, 0.58);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.12) 0%, var(--card) 60%);
}

/* === V11: COMPACT WAGER LIVE CARD & LTR PROGRESS BAR === */
.btn-live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(34, 197, 94, 0.14); border: 1px solid rgba(34, 197, 94, 0.42);
  color: #86efac; border-radius: 999px; padding: 5px 10px;
  font-family: inherit; font-size: 11px; font-weight: 800; cursor: pointer;
}

.wager-live-card {
  background: linear-gradient(165deg, #1d1e2e 0%, #151621 100%);
  border: 1px solid rgba(133, 117, 247, 0.3);
  border-radius: 18px;
  padding: 13px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}
.wager-live-card.running {
  border-color: rgba(133, 117, 247, 0.55);
  box-shadow: 0 8px 24px rgba(133, 117, 247, 0.16);
}
.wager-live-card.done {
  background: linear-gradient(165deg, #142b21 0%, #141a18 100%);
  border-color: rgba(34, 197, 94, 0.52);
}
.wager-live-card.error {
  background: linear-gradient(165deg, #35141c 0%, #191115 100%);
  border: 1.5px solid rgba(239, 68, 68, 0.72);
}

.wl-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 10px;
}
.wl-identity { display: flex; align-items: center; gap: 7px; min-width: 0; }
.wl-name { font-size: 13.5px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-rank-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px; padding: 7px 10px; margin-bottom: 10px; font-size: 11.5px;
}
.wl-rank-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: #f8f9fc; }
.wl-target-chip { color: #c4b5fd; font-weight: 700; font-size: 11.5px; }

.wl-prog-meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin-bottom: 6px;
}
.wl-prog-nums { font-size: 12.5px; font-weight: 800; color: #fff; }
.wl-prog-pct { font-size: 13px; font-weight: 900; color: #a799ff; }
.wager-live-card.done .wl-prog-pct { color: #4ade80; }
.wager-live-card.error .wl-prog-pct { color: #f87171; }

.wl-bar-track {
  direction: ltr;
  width: 100%; height: 10px;
  background: rgba(8, 9, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.wl-bar-fill {
  position: relative;
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.wl-bar-fill.running::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 15%, rgba(255,255,255,0.45) 50%, transparent 85%);
  animation: shimmer 1.3s linear infinite;
}

.wl-sub-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--muted); margin: 6px 0 10px;
}
.wl-stats-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.wl-stat {
  background: rgba(14, 15, 22, 0.65); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 11px; padding: 7px 6px; text-align: center;
}
.wl-stat span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 2px; }
.wl-stat strong { font-size: 12.5px; font-weight: 800; }

/* === V12: PORTAL INVENTORY CARDS === */
.portal-inv-item {
  background: rgba(16, 17, 26, 0.78);
  border: 1px solid rgba(133, 117, 247, 0.22);
  border-radius: 14px;
  padding: 10px 11px;
}
.portal-inv-item.is-unlisted {
  border-color: rgba(34, 211, 238, 0.34);
  background: linear-gradient(155deg, rgba(34, 211, 238, 0.08) 0%, rgba(16, 17, 26, 0.85) 65%);
}
.portal-inv-item.is-listed {
  border-color: rgba(133, 117, 247, 0.38);
  background: linear-gradient(155deg, rgba(133, 117, 247, 0.1) 0%, rgba(16, 17, 26, 0.85) 65%);
}
.pinv-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 5px;
}
.pinv-title { font-size: 12.5px; font-weight: 800; color: #f8f9fc; }
.pinv-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  flex-wrap: wrap; font-size: 11px; color: var(--muted);
}
.pinv-chips { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.pinv-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px; padding: 2px 6px; font-size: 10.5px; color: #cbd5e1;
}
.pinv-chip.gold {
  background: rgba(245, 184, 0, 0.16);
  border-color: rgba(245, 184, 0, 0.38);
  color: #fbbf24; font-weight: 700;
}
.pinv-chip.acc {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
  color: #7dd3fc;
}

/* === V13: PORTAL UNDERCUT WATCHER BADGES === */
.listing-status-line {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  margin-top: 6px; padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 11px; color: #cbd5e1;
}
.st-pill-uc {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(34, 211, 238, 0.14); border: 1px solid rgba(34, 211, 238, 0.32);
  color: #67e8f9; border-radius: 7px; padding: 2px 7px; font-size: 10.5px; font-weight: 700;
}
.st-pill-uc.guard {
  background: rgba(245, 184, 0, 0.14); border-color: rgba(245, 184, 0, 0.36); color: #fcd34d;
}

/* === V14: BUTTONS, TON CONNECT, FIXED ETA & DISTINCT IRON/SILVER === */
.btn-dark-sm {
  width: 100%; border-radius: 14px; padding: 11px 14px; font-family: inherit;
  font-size: 12.5px; font-weight: 800; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(133, 117, 247, 0.14));
  border: 1px solid rgba(34, 211, 238, 0.38); color: #67e8f9;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-dark-sm:active { transform: scale(0.98); filter: brightness(1.1); }
.btn-dark-sm.hidden { display: none !important; }
.btn-danger-sm {
  border-radius: 14px; padding: 11px 13px; font-family: inherit;
  font-size: 12.5px; font-weight: 800; cursor: pointer;
  background: rgba(239, 68, 68, 0.16); border: 1px solid rgba(239, 68, 68, 0.38);
  color: #fca5a5; flex-shrink: 0;
}
.tonconnect-card {
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: linear-gradient(160deg, rgba(14, 165, 233, 0.09) 0%, rgba(22, 22, 34, 0.92) 70%);
}
.tc-addr-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px; padding: 9px 11px;
}
.step-badge.gold {
  background: rgba(245, 184, 0, 0.18); color: #fcd34d; border: 1px solid rgba(245, 184, 0, 0.35);
}
.wl-eta-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 8px; padding: 7px 10px;
  background: rgba(133, 117, 247, 0.12);
  border: 1px solid rgba(133, 117, 247, 0.26);
  border-radius: 10px; font-size: 11.5px; color: #e2e8f0;
}
.epic-prog-fill.rk-iron {
  background: linear-gradient(90deg, #3f3f46, #71717a, #52525b) !important;
}
.epic-prog-fill.rk-silver {
  background: linear-gradient(90deg, #cbd5e1, #ffffff, #e2e8f0) !important;
}

#tc-widget-root, tc-root, [data-tc-modal], [data-tc-wallets-modal-container] {
  direction: ltr !important;
}
