/* =============================================
   VINTRIXO – COMPLETE STYLESHEET
   ============================================= */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
/* Hide HTML5 number input spinners globally */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
/* GPU compositing hint for all animated elements */

:root{
  --bg:#0c0d12;--bg2:#12141c;--bg3:#181b26;
  --card:#12141c;--border:rgba(255,255,255,0.06);
  --primary:#818CF8;--primary-d:#6366F1;
  --accent:#38BDF8;--coin:#FBBF24;
  --green:#34D399;--red:#F87171;
  --text:#F3F4F6;--text2:#9CA3AF;--text3:#4B5563;
  --radius:16px;--radius-s:10px;--radius-pill:999px;
  --nav-h:68px;--hdr-h:60px;
  --shadow:0 12px 40px rgba(0,0,0,.6);
}

html,body{height:100%;overflow:hidden;font-family:'Inter',sans-serif;
  background:var(--bg);color:var(--text);
  -webkit-tap-highlight-color:transparent;user-select:none;
  position:relative;
}
body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.05) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* ── HEADER ─────────────────────────────────── */
.app-header{
  position:fixed;top:0;left:0;right:0;height:var(--hdr-h);
  background:rgba(12,13,18,0.98);
  border-bottom:1.5px solid var(--border);
  display:flex;align-items:center;justify-content:space-between;
  padding:0 16px;z-index:100;
  transform:translateZ(0);
}
.header-brand{display:flex;align-items:center;gap:9px}
.header-logo{width:34px;height:34px;border-radius:10px;object-fit:contain}
.header-name{
  font-size:18px;font-weight:900;
  background:linear-gradient(135deg,#fff 0%,var(--primary) 100%);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
}
.header-stats{display:flex;align-items:center;gap:8px}
.stat-pill{
  display:flex;align-items:center;gap:5px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:var(--radius-pill);
  padding:5px 11px;
  font-size:13px;font-weight:700;
}
/* ── COIN WRAP (clips black edges from coin images) ── */
.hcoin-wrap{
  width:24px;height:24px;
  border-radius:50%;
  overflow:hidden;          /* this clips the scaled image */
  flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
}
.hcoin-img{
  width:100%;height:100%;
  object-fit:cover;
  border-radius:50%;
  transform:scale(1.45);   /* zoom in, cut black corners */
  display:block;
}
/* balance card coin wrap */
.balance-coin-wrap{
  width:38px;height:38px;
  border-radius:50%;overflow:hidden;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
}
.balance-coin-img{
  width:100%;height:100%;
  object-fit:cover;border-radius:50%;
  transform:scale(1.45);display:block;
}
/* Robux SVG coin */
.robux-icon-svg{ flex-shrink:0; }


/* ── MAIN SCROLL CONTAINER ── */
.app-main{
  position:fixed;
  top:var(--hdr-h);left:0;right:0;bottom:84px;
  overflow-y:auto;overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  scroll-behavior:smooth;
  transition:bottom .15s ease;
}
.app-main.order-bar-active{
  bottom:154px;
}
.app-main::-webkit-scrollbar{display:none}

/* ── PAGES ── */
.page{
  display:none;
  padding:14px 16px 24px;
  min-height:100%;
}
.page.active{
  display:block;
  animation:pgIn .08s ease-out both;
}
@keyframes pgIn{
  from{ opacity:0.6; }
  to  { opacity:1; }
}


/* ── HOME ────────────────────────────────────── */
.home-coin-area{display:flex;flex-direction:column;align-items:center;margin-top:10px}
.tap-hint{
  display: none !important;
}

/* ── COIN BUTTON ── */
.coin-btn{
  background:none;border:none;cursor:pointer;
  width:186px;height:186px;
  display:flex;align-items:center;justify-content:center;
  position:relative;
}

/* ── SPARKLE STARS (2 external) ── */
.cs{
  position:absolute;
  color:#FFE97A;
  font-style:normal;line-height:1;pointer-events:none;
}
.cs1{ top:4%;  left:8%;  font-size:16px; }
.cs2{ bottom:6%;right:8%;font-size:14px; }

/* ── COIN 3D ── */
.coin-3d{
  width:170px;height:170px;
  position:relative;
  border-radius:50%;
  transition:transform .1s ease;
  filter:drop-shadow(0 8px 24px rgba(245, 158, 11, 0.28)) drop-shadow(0 4px 10px rgba(0,0,0,0.2));
}
.coin-btn:active .coin-3d{
  transform:scale(.92) translateY(3px);
}

/* ── COIN FACE ── */
.coin-face{
  position:absolute;inset:0;
  border-radius:50%;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
}
.coin-face.front{
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

/* coin image — zoomed in to cut black edges */
.coin-logo-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  transform: scale(1.42);   /* zoom in so gold fills the circle */
}

/* inner engraved ring */
.coin-ring{
  position:absolute;
  width:134px;height:134px;border-radius:50%;
  border:3px solid rgba(120,65,0,.35);
  box-shadow:
    inset 0 2px 5px rgba(0,0,0,.25),
    0 2px 4px rgba(255,230,100,.3);
  pointer-events:none;z-index:1;
}

/* cat SVG — fills inner area */
.coin-svg{
  width:128px;height:128px;
  position:relative;z-index:2;
  flex-shrink:0;
}

/* top-left highlight */
.coin-shine{
  position:absolute;
  top:7%;left:9%;
  width:48%;height:32%;
  background:radial-gradient(ellipse,
    rgba(255,255,255,.65) 0%,
    transparent 68%
  );
  border-radius:50%;
  pointer-events:none;z-index:4;
}

/* coin thickness */
.coin-edge{
  position:absolute;
  width:158px;height:16px;
  background:linear-gradient(to bottom,#9A5E00,#5E3400);
  bottom:-8px;
  border-radius:0 0 50% 50% / 0 0 80% 80%;
  box-shadow:inset 0 2px 5px rgba(0,0,0,.4);
}

/* ── PARTICLES ── */
.coin-particles{position:absolute;inset:0;pointer-events:none}
.sparkle{position:absolute;border-radius:50%;pointer-events:none}
.tap-pop{
  position:absolute;top:50%;left:50%;
  transform:translateX(-50%);
  font-size:20px;font-weight:800;
  color:#FFD700;pointer-events:none;
  animation:popUp .32s ease-out forwards;
  text-shadow:0 2px 8px rgba(255,180,0,.8);
}
@keyframes popUp{
  0%  { transform:translateX(-50%) translateY(0)    scale(1);   opacity:1; }
  100%{ transform:translateX(-50%) translateY(-35px) scale(.75); opacity:0; }
}

.home-desc{text-align:center;font-size:14px;color:var(--text2);margin-top:20px;line-height:1.65}
.balance-card{
  display:flex;flex-direction:column;align-items:center;
  background:linear-gradient(135deg, rgba(22,24,38,0.7) 0%, rgba(14,16,24,0.75) 100%);
  border:1px solid rgba(255,255,255,0.07);
  border-radius:var(--radius);
  padding:18px 16px;
  margin-top:18px;
  box-shadow:0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
  transition:border-color .15s ease;
}
.balance-card:hover{
  border-color:rgba(251,191,36,0.22);
}
.balance-card:active{opacity:0.85}
.balance-amount{font-size:30px;font-weight:900;display:flex;align-items:center;gap:6px}
.coin-sm{font-size:24px;color:#FFD700}
.balance-label{font-size:13px;color:var(--text2);margin-top:4px}
.referral-card{
  background:linear-gradient(135deg, rgba(22,24,38,0.7) 0%, rgba(14,16,24,0.75) 100%);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:var(--radius);
  padding:18px 16px;
  margin-top:12px;
  box-shadow:0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
  transition:border-color .15s ease;
}
.referral-card:hover{
  border-color:rgba(129,140,248,0.18);
}
.referral-title{font-size:15px;font-weight:700;margin-bottom:7px}
.referral-link{font-size:12px;color:var(--text2);word-break:break-all;margin-bottom:12px;line-height:1.5}
.referral-actions{display:flex;gap:10px}

/* ── BUTTONS ─────────────────────────────────── */
.btn{
  display:flex;align-items:center;justify-content:center;gap:7px;
  border:none;border-radius:var(--radius-pill);
  font-family:'Inter',sans-serif;font-size:14px;font-weight:700;
  cursor:pointer;padding:12px 20px;
  transition:opacity .12s,background .2s;flex:1;
  touch-action:manipulation;
}
.btn:active{opacity:0.8}
.btn-primary{background:var(--primary);color:#fff}
.btn-primary:hover{background:var(--primary-d)}
.btn-primary:disabled{background:var(--bg3);color:var(--text3);cursor:not-allowed}
.btn-secondary{background:var(--bg3);color:var(--text);border:1px solid var(--border)}
.full-width{width:100%;flex:none}

/* ── BANNERS ─────────────────────────────────── */
.page-banner{
  border-radius:var(--radius);
  padding:16px 18px;
  margin-bottom:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  overflow:hidden;
  position:relative;
  min-height:96px;
  background:linear-gradient(135deg, rgba(22,24,38,0.7), rgba(18,20,30,0.7));
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}

/* subtle dot pattern */
.banner-dots{
  position:absolute;inset:0;
  background-image:radial-gradient(circle,rgba(255,255,255,.12) 1px,transparent 1px);
  background-size:18px 18px;
  pointer-events:none;
}

/* glowing blur orb */
.banner-orb{
  position:absolute;right:30px;top:-30px;
  width:130px;height:130px;border-radius:50%;
  pointer-events:none;
}
.banner-orb--purple{ background:radial-gradient(circle,rgba(129,140,248,0.22) 0%,transparent 70%) }
.banner-orb--teal  { background:radial-gradient(circle,rgba(56,189,248,0.20) 0%,transparent 70%) }
.banner-orb--green { background:radial-gradient(circle,rgba(52,211,153,0.20) 0%,transparent 70%) }

/* right side deco container */
.banner-right{
  position:relative;z-index:1;flex-shrink:0;
  width:110px;height:70px;
  display:flex;align-items:center;justify-content:flex-end;
}

/* scattered shapes */
.bshape{
  position:absolute;
  pointer-events:none;
  color:rgba(255,255,255,.55);
}
.bshape-star{ font-style:normal }
.bshape-circle{
  width:36px;height:36px;border-radius:50%;
  border:1.5px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.04);
}
.bshape-rs{
  position:absolute;
  font-size:18px;font-weight:900;
  color:rgba(255,255,255,.14);
  letter-spacing:-1px;
}


/* shimmer — completely disabled for maximum performance */
.banner-shimmer{
  display:none;
}

/* Cases — purple/violet */
.banner-cases{
  background:linear-gradient(135deg,#5B21B6,#7C3AED 60%,#6D28D9);
  box-shadow:0 8px 28px rgba(109,40,217,.4);
  border-color:rgba(255,255,255,0.12);
}
/* Robux — teal */
.banner-robux{
  background:linear-gradient(135deg,#0E7490,#0891B2 60%,#0369A1);
  box-shadow:0 8px 28px rgba(8,145,178,.4);
  border-color:rgba(255,255,255,0.12);
}
/* Market — emerald/green */
.banner-market{
  background:linear-gradient(135deg,#047857,#059669 60%,#065F46);
  box-shadow:0 8px 28px rgba(5,150,105,.4);
  border-color:rgba(255,255,255,0.12);
}

.banner-text{ position:relative;z-index:1;flex:1;min-width:0 }
.banner-title{ font-size:22px;font-weight:900;color:#fff;margin-bottom:3px;line-height:1.1 }
.banner-sub  { font-size:12px;color:rgba(255,255,255,.78);line-height:1.4 }
.rate-badge{
  display:inline-block;
  background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.2);
  color:#fff;font-size:11px;font-weight:700;
  padding:3px 9px;border-radius:var(--radius-pill);
  margin-bottom:7px;
}

/* deco icon — no circle, just the icon, static for speed */
.banner-deco-icon{
  position:relative;z-index:1;flex-shrink:0;
  font-size:52px;line-height:1;
  opacity:.88;
}
.banner-deco-oct{
  width:56px;height:56px;
  opacity:.85;
}


/* ── FILTER TABS ─────────────────────────────── */
.filter-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:12px;margin-bottom:4px;scrollbar-width:none}
.filter-tabs::-webkit-scrollbar{display:none}
.tab-btn{
  flex-shrink:0;background:var(--card);border:1px solid var(--border);
  border-radius:var(--radius-pill);color:var(--text2);
  font-family:'Inter',sans-serif;font-size:13px;font-weight:600;
  padding:8px 16px;cursor:pointer;transition:border-color .15s, background .15s;white-space:nowrap;
  touch-action:manipulation;
}
.tab-btn.active{background:var(--text);color:var(--bg);border-color:transparent;font-weight:700}
.tab-btn:active{opacity:0.8}

/* ── CASES ───────────────────────────────────── */
.cases-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  justify-content: stretch;
  contain: layout style;
}
.case-card{
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(160deg, #181a27 0%, #11121b 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.15s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  touch-action: manipulation;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.case-card:hover{
  border-color: rgba(129, 140, 248, 0.4);
}
.case-card:active{
  border-color: var(--primary);
  transform: scale(0.98);
  background: #141520;
}
.case-img-wrap{
  width: 100%;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  overflow: hidden !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.12) 0%, rgba(124, 58, 237, 0.02) 55%, transparent 75%);
  box-sizing: border-box;
}

/* Ambient glow colors per game */
.case-glow-steal {
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.22) 0%, rgba(16, 185, 129, 0.04) 55%, transparent 75%) !important;
}
.case-glow-mm2 {
  background: radial-gradient(circle at 50% 50%, rgba(239, 68, 68, 0.2) 0%, rgba(168, 85, 247, 0.08) 55%, transparent 75%) !important;
}
.case-glow-adoptme {
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.22) 0%, rgba(79, 70, 229, 0.04) 55%, transparent 75%) !important;
}

/* 3D Floor contact shadow under the chest */
.case-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 68%;
  height: 10px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.15) 50%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.case-card-img {
  max-width: 84% !important;
  max-height: 84% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
}
.case-info{
  padding: 6px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  flex: 1;
}
.case-name{
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 36px;
  letter-spacing: -0.2px;
}
.case-price-btn {
  width: 100%;
  height: 38px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  transition: all 0.25s ease;
  box-sizing: border-box;
  user-select: none;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.case-card:hover .case-price-btn {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.22) 0%, rgba(124, 58, 237, 0.08) 100%);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.case-price-val {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.4px;
  line-height: 1;
}
.case-coin-wrap {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.case-price-coin-img {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  object-fit: cover !important;
  display: block !important;
  flex-shrink: 0 !important;
}

/* ── Game badge colors ── */
.badge-adoptme{ background:linear-gradient(135deg,#4F46E5,#6366F1); box-shadow:0 2px 8px rgba(99,102,241,.25) }
.badge-mm2    { background:linear-gradient(135deg,#DC2626,#EF4444); box-shadow:0 2px 8px rgba(239,68,68,.25)  }
.badge-steal  { background:linear-gradient(135deg,#059669,#10B981); box-shadow:0 2px 8px rgba(16,185,129,.25)  }


/* ── MARKET ──────────────────────────────────── */
.market-header-text{margin-bottom:14px}
.page-title{font-size:20px;font-weight:900;margin-bottom:4px}
.page-subtitle{font-size:13px;color:var(--text2)}
.search-bar{
  display:flex;align-items:center;background:var(--card);
  border:1px solid var(--border);border-radius:var(--radius);
  padding:10px 14px;gap:10px;margin-bottom:14px;
  transition:border-color .2s;
}
.search-bar:focus-within{border-color:var(--primary)}
.search-icon{color:var(--text3);flex-shrink:0}
.search-bar input{flex:1;background:none;border:none;outline:none;color:var(--text);font-family:'Inter',sans-serif;font-size:15px}
.search-bar input::placeholder{color:var(--text3)}
.items-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  width:100%;
  box-sizing:border-box;
  justify-content:stretch;
}
#page-market{
  padding-bottom: 24px;
}

.load-more-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  padding:20px 0 10px;
  width:100%;
}

.market-load-status{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  width:100%;
  max-width:180px;
}

.market-load-text{
  font-size:11.5px;
  font-weight:600;
  color:var(--text3);
  letter-spacing:0.2px;
}

.market-progress-track{
  width:100%;
  height:3.5px;
  background:rgba(255,255,255,0.08);
  border-radius:99px;
  overflow:hidden;
}

.market-progress-fill{
  height:100%;
  background:linear-gradient(90deg, var(--primary), var(--accent));
  border-radius:99px;
  transition:width 0.25s ease;
}

.btn-market-load-more{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:130px;
  height:36px;
  padding:0 22px;
  border-radius:999px;
  font-size:12.5px;
  font-weight:600;
  letter-spacing:0.2px;
  font-family:'Inter',sans-serif;
  color:rgba(255,255,255,0.85);
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.09);
  cursor:pointer;
  transition:background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  touch-action:manipulation;
  user-select:none;
}

.btn-market-load-more:hover{
  background:rgba(255,255,255,0.09);
  border-color:rgba(255,255,255,0.18);
  color:#fff;
}

.btn-market-load-more:active{
  opacity:0.75;
}



.market-all-loaded{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:16px 0 8px;
  font-size:11.5px;
  font-weight:600;
  color:var(--text3);
  text-align:center;
}

.market-all-loaded::before,
.market-all-loaded::after{
  content:'';
  width:32px;
  height:1px;
  background:rgba(255,255,255,0.08);
}


.item-card{
  width:100%;box-sizing:border-box;
  background:linear-gradient(145deg, rgba(30,32,50,0.85) 0%, rgba(18,20,32,0.9) 100%);
  border:1px solid rgba(255,255,255,0.07);
  border-radius:16px;
  cursor:pointer;
  transition:border-color 0.12s;
  box-shadow:0 4px 12px rgba(0,0,0,0.25);
  position:relative;
  touch-action:manipulation;
  display:flex;
  flex-direction:column;
  height:100%;
  overflow:visible;
}
.item-card:hover{
  border-color:rgba(129,140,248,0.35);
}
.item-card-img {
  max-width: 72% !important;
  max-height: 72% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}
.item-card.selected{
  border-color:var(--primary);
  background:linear-gradient(145deg, rgba(124,58,237,0.15) 0%, rgba(18,20,32,0.95) 100%);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.35);
}
.item-check{position:absolute;top:8px;right:8px;width:20px;height:20px;border-radius:50%;background:var(--primary);display:none;align-items:center;justify-content:center;font-size:11px;font-weight:800;color:#fff;z-index:2;animation:fadeIn .1s ease-out;box-shadow:0 2px 5px rgba(0,0,0,0.3)}
.item-card.selected .item-check{display:flex}
.item-img-wrap{
  width: 100%;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  overflow: hidden !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  background: radial-gradient(circle at center, rgba(35,38,60,0.5) 0%, rgba(18,20,32,0.6) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  box-sizing: border-box;
}
.item-game-top, .case-game-top{
  position:absolute;top:8px;left:8px;
  font-size:8px;font-weight:800;
  color:#fff;
  text-transform:uppercase;letter-spacing:.7px;
  border-radius:20px;
  padding:3px 8px;
  pointer-events:none;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 2px 6px rgba(0,0,0,.25);
  z-index:3;
}
.item-info{
  padding:10px 12px 12px;
  display:flex;
  flex-direction:column;
  gap:4px;
  flex:1;
}
.item-game{font-size:9px;color:var(--text3);font-weight:600;margin-bottom:2px;text-transform:uppercase;letter-spacing:.5px}
.item-name{
  font-size:13.5px;
  font-weight:800;
  color:#fff;
  margin:0;
  line-height:1.3;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;
  height:35px;
  min-height:35px;
  max-height:35px;
}
/* price: octagon icon wrapped in subtle circle + number */
.item-price{
  display:inline-flex;align-items:center;gap:4px;
  font-size:12.5px;font-weight:700;color:var(--accent);
  line-height:1;
  margin-top:2px;
}
.item-price-num{
  font-size:13px;font-weight:800;
  color:#fff;
  line-height:1;
}
.item-price-unit{
  font-size:11px;font-weight:700;
  color:#fff;
  letter-spacing:.3px;
  line-height:1;
  margin-left:-2px;
}
.item-qty-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  margin-top: 0;
  padding: 2px 4px;
  overflow: hidden;
  width: 100%;
  height: 32px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}
.btn-sell-init {
  width: 100%;
  background: rgba(124, 58, 237, 0.08);
  color: var(--primary);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  margin-top: 0;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}
.btn-sell-init:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-sell-init:active {
  transform: scale(0.98);
}
.qty-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: manipulation;
}
.qty-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
  transform: scale(1.08);
}
.qty-btn:active {
  transform: scale(0.92);
  opacity: 0.8;
}
.qty-val {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  min-width: 20px;
  text-align: center;
  text-shadow: 0 0 8px rgba(255,255,255,0.1);
}
.item-action-area {
  margin-top: auto;
  width: 100%;
  padding-top: 8px;
}
.item-selectors-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
}
/* circle wrapper around the octagon icon */
.price-icon-wrap{
  display:inline-flex;align-items:center;justify-content:center;
  width:24px;height:24px;border-radius:50%;
  background:var(--card);
  border:1.5px solid rgba(201,151,58,.45);
  box-shadow:0 0 6px rgba(201,151,58,.2);
  flex-shrink:0;
}
/* ── ORDER SUMMARY — fixed floating bar ── */
.order-summary{
  position: fixed;
  bottom: 92px;           /* sits 12px above the nav bar */
  left: 0; right: 0;
  z-index: 200;
  padding: 0 16px;
  pointer-events: none;
  /* hidden by default */
  transform: translateY(12px);
  opacity: 0;
  transition: transform .15s ease, opacity .15s ease;
}
.order-summary.visible{
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.order-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.45);
  transform:translateZ(0);
}
.order-info{ display:flex;flex-direction:column;gap:4px;flex:1 }
.order-row{ display:flex;justify-content:space-between;align-items:center;font-size:12.5px }
.order-lbl{ color:var(--text2) }
.order-val{ font-weight:700;color:var(--text) }
.robux-amount{ color:var(--accent) }
.order-confirm-btn{
  flex-shrink:0;
  padding: 7px 11px;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.order-confirm-btn svg{
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}


/* ── ROBUX WIZARD ────────────────────────────── */
.wizard-progress-new {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 4px;
  margin-bottom: 12px;
}
.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 55px;
  flex-shrink: 0;
  text-align: center;
}
.wdot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--border);
  color: var(--text3);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s ease, border-color .15s ease;
}
.wdot.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(91,99,255,.22);
}
.wdot.done {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: scale(1);
}
.wdot.done span::before {
  content: '✓';
}
.wdot.done span {
  font-size: 0;
}
.wlabel {
  font-size: 10px;
  font-weight: 600;
  color: var(--text3);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.wizard-step:has(.wdot.active) .wlabel {
  color: var(--primary);
}
.wizard-step:has(.wdot.done) .wlabel {
  color: var(--green);
}
.wline {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 13px 4px 0;
  transition: background .4s ease;
}
.wline.filled {
  background: var(--primary);
}
.wizard-container{width:100%;overflow:hidden;display:block}

/* Slides */
.wslide{display:none;width:100%}
.wslide.active{display:block;width:100%;animation:pgIn .08s ease-out both}
.wslide.back{animation:pgIn .08s ease-out both}

.wcard{width:100%;background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:18px 16px;box-sizing:border-box;display:block;margin-bottom:96px}
.wback{
  display:inline-flex;align-items:center;gap:5px;background:none;border:none;
  color:var(--text3);font-family:'Inter',sans-serif;font-size:13px;font-weight:600;
  cursor:pointer;margin-bottom:14px;padding:0;transition:color .15s;
}
.wback:hover{color:var(--text)}
.wcard-icon{
  width:48px;height:48px;border-radius:12px;margin-bottom:12px;
  background:rgba(91,99,255,.15);border:1px solid rgba(91,99,255,.25);color:var(--primary);
  display:flex;align-items:center;justify-content:center;
}
.wcard-title{font-size:18px;font-weight:800;margin-bottom:5px}
.wcard-sub{font-size:13px;color:var(--text2);margin-bottom:14px;line-height:1.5}

/* Wizard input field */
.wfield{
  display:flex;align-items:center;background:var(--bg3);
  border:1.5px solid var(--border);border-radius:var(--radius);
  padding:11px 14px;gap:10px;transition:border-color .2s;
}
.wfield:focus-within{border-color:var(--primary)}
.wfield svg{color:var(--text3);flex-shrink:0}
.wfield input{
  flex:1;background:none;border:none;outline:none;
  color:var(--text);font-family:'Inter',sans-serif;font-size:15px;
}
.wfield input::placeholder{color:var(--text3)}

/* Loading */
.wloading{display:flex;align-items:center;gap:10px;padding:14px 0;color:var(--text3);font-size:13px}
.wspinner{width:18px;height:18px;border:2px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin .7s linear infinite;flex-shrink:0}
@keyframes spin{to{transform:rotate(360deg)}}

/* Results list */
.wresults{display:flex;flex-direction:column;gap:8px;margin-top:10px;margin-bottom:4px}
.wresults:empty{display:none !important;margin:0 !important;padding:0 !important;}
#caseRobloxStep .wselected{margin-top:0 !important;margin-bottom:0 !important;}
#caseRobloxStep .wresults{margin-top:2px !important;margin-bottom:2px !important;}

.wres-item{
  display:flex;align-items:center;gap:12px;
  background:var(--bg3);border:1.5px solid var(--border);
  border-radius:var(--radius-s);padding:11px 13px;cursor:pointer;
  transition:all .18s;
}
.wres-item:hover{border-color:var(--primary);background:rgba(91,99,255,.05)}

/* Floating Continue Buttons */
#btn-next1, #btn-next2, #btn-next3 {
  position: fixed;
  bottom: calc(var(--nav-h) + 26px);
  left: 16px;
  right: 16px;
  width: calc(100% - 32px);
  z-index: 150;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: slideUpBtn .15s ease-out both;
}
@keyframes slideUpBtn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.wres-item.selected{
  border-color: var(--primary);
  background: rgba(91,99,255,.12);
  box-shadow: 0 0 10px rgba(91,99,255,.1);
}
.wres-item.selected .wres-arrow{
  color: var(--primary);
  transform: scale(1.1);
}
.wres-item:active{transform:scale(.97)}
.wres-icon{font-size:22px;flex-shrink:0}
.wres-name{flex:1;font-size:14px;font-weight:600}
.wres-sub{font-size:11px;color:var(--text3);margin-top:1px}
.wres-arrow{color:var(--text3);flex-shrink:0;transition:all 0.2s}

/* Selected card */
.wselected{
  display:flex;align-items:center;gap:12px;
  background:rgba(91,99,255,.1);border:1.5px solid rgba(91,99,255,.4);
  border-radius:var(--radius);padding:12px 13px;margin-top:10px;margin-bottom:2px;
  cursor:pointer;
  transition:background .15s ease, border-color .15s ease;
}
.wselected:hover{
  background:rgba(91,99,255,.18);border-color:rgba(91,99,255,.6);
}
.wsel-avatar{width:40px;height:40px;border-radius:50%;background:#161822;border:1px solid rgba(255,255,255,0.08);color:#fff;font-size:16px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden}
.wsel-avatar img{width:100%;height:100%;object-fit:cover;display:block;background:transparent}
.wsel-info{flex:1}
.wsel-name{font-size:14px;font-weight:700;margin-bottom:2px}
.wsel-sub{font-size:11px;color:var(--text3)}
.wsel-check{width:26px;height:26px;border-radius:50%;background:var(--green);color:#fff;font-size:13px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.wmt{margin-top:14px}
.wmtb{margin-top:16px}

/* Summary strip */
.wsummary{
  display:flex;align-items:center;background:var(--bg3);border:1px solid var(--border);
  border-radius:var(--radius);padding:10px 14px;gap:8px;margin-bottom:14px;
  overflow-x:auto;scrollbar-width:none;
}
.wsummary::-webkit-scrollbar{display:none}
.wsumm-item{display:flex;flex-direction:column;gap:2px;flex-shrink:0}
.wsumm-lbl{font-size:10px;color:var(--text3);font-weight:600;text-transform:uppercase;letter-spacing:.5px}
.wsumm-val{font-size:12px;font-weight:700;max-width:82px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wsumm-div{width:1px;height:30px;background:var(--border);flex-shrink:0}

/* Amount stepper */
.amount-row{margin-bottom:12px}
.amount-stepper{
  display:flex;align-items:center;gap:8px;
}
.step-btn{
  width:40px;height:40px;border-radius:50%;
  background:var(--bg3);
  border:1.5px solid var(--border);
  color:var(--text2);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;flex-shrink:0;
  transition:all .18s;
  -webkit-tap-highlight-color:transparent;
}
.step-btn:active{
  background:rgba(0,194,255,.15);
  border-color:var(--accent);
  color:var(--accent);
  transform:scale(.92);
}
.amount-box{
  flex:1;display:flex;align-items:center;background:var(--bg3);
  border:1.5px solid var(--border);border-radius:var(--radius);
  padding:12px 16px;gap:10px;transition:border-color .2s;
}
.amount-box:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px rgba(0,194,255,.12)}
.amount-box input{
  flex:1;background:none;border:none;outline:none;
  color:var(--text);font-family:'Inter',sans-serif;font-size:24px;font-weight:800;
  width:100%;
}
.amount-box input::placeholder{color:var(--text3);font-size:20px;font-weight:500}
.amount-tag{font-size:16px;font-weight:700;color:var(--accent);flex-shrink:0}
.quick-row{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap}
.qbtn{
  flex:1;background:var(--bg3);border:1.5px solid var(--border);
  border-radius:var(--radius-pill);color:var(--text2);
  font-family:'Inter',sans-serif;font-size:13px;font-weight:600;
  padding:8px 4px;cursor:pointer;transition:all .15s;min-width:60px;
}
.qbtn:hover,.qbtn.active{background:rgba(91,99,255,.2);border-color:var(--primary);color:#fff}
.qbtn:active{transform:scale(.93)}

/* Price breakdown */
.price-breakdown{
  background:rgba(0,194,255,.07);border:1px solid rgba(0,194,255,.2);
  border-radius:var(--radius);padding:14px 16px;margin-bottom:4px;
  animation:slideUp .2s ease;
}
.pb-row{display:flex;justify-content:space-between;align-items:center;padding:4px 0}
.pb-lbl{font-size:13px;color:var(--text2)}
.pb-val{font-size:14px;font-weight:700}
.pb-val.green{color:var(--green)}
.pb-val.red{color:var(--red)}
.pb-val.blue{color:var(--accent);font-size:17px}
.pb-line{height:1px;background:var(--border);margin:8px 0}
.pb-total .pb-lbl{font-weight:600;color:var(--text)}

/* ── PROFILE ─────────────────────────────────── */
.profile-banner{
  position:relative;
  border-radius:var(--radius);
  overflow:hidden;
  margin-bottom:16px;
  background:linear-gradient(135deg,#1a1040,#2d1b7a 50%,#1e2d6e);
  padding:20px 18px 22px;
}
.profile-banner-bg{
  position:absolute;inset:0;
  background:
    radial-gradient(circle at 80% 20%,rgba(155,114,255,.35) 0%,transparent 55%),
    radial-gradient(circle at 10% 80%,rgba(0,194,255,.2) 0%,transparent 50%);
  pointer-events:none;
}
.profile-avatar-area{
  display:flex;align-items:center;gap:16px;position:relative;z-index:1;
}
.avatar-wrap{position:relative;flex-shrink:0;width:72px;height:72px}
.avatar{
  width:72px;height:72px;border-radius:50%;
  background:linear-gradient(135deg,var(--primary),var(--accent));
  font-size:28px;font-weight:800;
  display:flex;align-items:center;justify-content:center;color:#fff;
  position:relative;z-index:1;
}
.avatar-ring{
  position:absolute;inset:-3px;border-radius:50%;
  background:conic-gradient(var(--primary),var(--accent),var(--coin),var(--primary));
  z-index:0;
}
.profile-info{ display:flex;flex-direction:column;gap:5px }
.profile-name{ font-size:19px;font-weight:800;color:#fff }
.profile-username{
  font-size:13px;font-weight:600;
  color:rgba(255,255,255,.55);
  letter-spacing:.2px;
}
.profile-level-badge{
  display:inline-flex;align-items:center;gap:4px;
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);
  border-radius:var(--radius-pill);
  padding:3px 10px;font-size:12px;font-weight:700;color:#fff;
  width:fit-content;
}
/* Telegram profile photo — overlays the letter avatar */
.avatar-tg-photo{
  position:absolute;inset:0;
  width:100%;height:100%;
  border-radius:50%;
  object-fit:cover;
  z-index:2;
}
.stats-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-bottom:16px}
.stat-card{
  background:var(--card);border:1px solid var(--border);border-radius:var(--radius);
  padding:14px 10px;display:flex;flex-direction:column;align-items:center;gap:3px;
  transition:transform .15s;
}
.stat-card:active{transform:scale(.97)}
.stat-icon-top{font-size:20px;margin-bottom:2px}
.stat-val{font-size:18px;font-weight:800;color:var(--coin)}
.stat-lbl{font-size:11px;color:var(--text3);text-align:center;font-weight:600}
.history-title{font-size:16px;font-weight:700;margin-bottom:12px}
.history-empty{
  display:flex;flex-direction:column;align-items:center;gap:10px;
  padding:32px 0;color:var(--text3);font-size:13px;
  grid-column: 1 / -1;
  width: 100%;
  text-align: center;
}



/* ── BOTTOM NAV ──────────────────────────────── */
.bottom-nav{
  position:fixed;
  bottom:12px;
  left:14px;
  right:14px;
  height:var(--nav-h);
  background:rgba(18,20,30,0.96);
  border:1.5px solid rgba(255,255,255,0.06);
  border-radius:24px;
  display:flex;
  align-items:center;
  z-index:100;
  padding:0 8px 4px;
  box-shadow:0 12px 32px rgba(0,0,0,0.5);
  transform:translateZ(0);
}

.nav-btn{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;background:none;border:none;cursor:pointer;
  padding:4px 2px 6px;position:relative;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
  will-change:transform;
}

/* pill indicator on top */
.nav-pip{
  position:absolute;top:0;left:50%;transform:translateX(-50%);
  height:3px;border-radius:0 0 6px 6px;
  background:var(--primary);
  width:0;
  transition:width .15s ease, background .15s ease;
}
.nav-btn.active .nav-pip{ width:26px }
#nav-home.active .nav-pip{ background:#FFD700 }

/* icon bubble */
.nav-icon-wrap{
  display:flex;align-items:center;justify-content:center;
  width:44px;height:30px;border-radius:var(--radius-pill);
  color:var(--text3);
  transition:color .15s ease, background .15s ease;
}
.nav-btn.active .nav-icon-wrap{
  color:var(--primary);
  background:rgba(91,99,255,.15);
}

/* ── Unique color per nav tab ── */
/* Home → Gold */
#nav-home.active .nav-pip        { background:#FFD700 }
#nav-home.active .nav-icon-wrap  { color:#FFD700; background:rgba(255,215,0,.13) }
#nav-home.active .nav-lbl        { color:#FFD700 }

/* Cases → Blue */
#nav-cases.active .nav-pip       { background:#60A5FA }
#nav-cases.active .nav-icon-wrap { color:#60A5FA; background:rgba(96,165,250,.13) }
#nav-cases.active .nav-lbl       { color:#60A5FA }

/* Market → Green */
#nav-market.active .nav-pip       { background:#34D399 }
#nav-market.active .nav-icon-wrap { color:#34D399; background:rgba(52,211,153,.13) }
#nav-market.active .nav-lbl       { color:#34D399 }

/* Robux → Teal-gold (octagon color) */
#nav-robux.active .nav-pip        { background:#D4A843 }
#nav-robux.active .nav-icon-wrap  { color:#D4A843; background:rgba(212,168,67,.13) }
#nav-robux.active .nav-lbl        { color:#D4A843 }

/* Profile → Purple */
#nav-profile.active .nav-pip       { background:#A78BFA }
#nav-profile.active .nav-icon-wrap { color:#A78BFA; background:rgba(167,139,250,.13) }
#nav-profile.active .nav-lbl       { color:#A78BFA }

.nav-lbl{
  font-family:'Inter',sans-serif;font-size:10px;font-weight:600;
  color:var(--text3);transition:color .25s ease,font-weight .2s;letter-spacing:.1px;
}
.nav-btn.active .nav-lbl{ font-weight:700 }

/* tap ripple */
.nav-btn::after{
  content:'';position:absolute;inset:0;border-radius:var(--radius);
  background:rgba(255,255,255,.06);opacity:0;transform:scale(.5);
  transition:opacity .3s,transform .3s;pointer-events:none;
}
.nav-btn:active::after{opacity:1;transform:scale(1);transition:0s}
.nav-btn:active .nav-icon-wrap{transform:scale(.88) !important}

/* ── Case price coin icon ── */
.case-price{
  display:inline-flex;align-items:center;gap:5px;
  font-size:13px;font-weight:700;color:var(--coin);
}
.case-price-coin{
  width:14px;height:14px;
  border-radius:50%;overflow:hidden;flex-shrink:0;
}
.case-price-coin-img{
  width:100%;height:100%;
  object-fit:cover;transform:scale(1.35);display:block;
}




/* ── MODALS ──────────────────────────────────── */
.modal-overlay{
  position:fixed;inset:0;background:rgba(0,0,0,.78);z-index:200;
  display:flex;align-items:center;justify-content:center;
  padding:20px;
  animation:fadeIn .12s ease;
}
.modal-card{
  background:var(--bg2);border:1px solid var(--border);
  border-radius:24px;
  padding:26px 20px;width:100%;max-width:360px;position:relative;
  box-shadow:0 16px 40px rgba(0,0,0,0.6);
  animation:modalPop .14s ease-out;
}
@keyframes modalPop{from{transform:scale(0.96);opacity:0}to{transform:scale(1);opacity:1}}
#invItemModal {
  animation: fadeIn 0.08s ease-out !important;
}
#invItemModal .modal-card {
  animation: none !important;
  transform: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}
.modal-close{
  position:absolute;top:14px;right:14px;
  background:var(--bg3);border:none;color:var(--text2);
  width:30px;height:30px;border-radius:50%;font-size:13px;
  cursor:pointer;display:flex;align-items:center;justify-content:center;
}
.modal-title{font-size:18px;font-weight:800;text-align:center;margin-bottom:8px}
.modal-sub{font-size:13px;color:var(--text2);text-align:center;margin-bottom:4px;line-height:1.55}
.modal-success-icon{
  width:60px;height:60px;border-radius:50%;background:var(--green);color:#fff;
  font-size:26px;font-weight:800;display:flex;align-items:center;justify-content:center;
  margin:0 auto 16px;
}

/* ── SPIN TRACK ──────────────────────────────── */
.spin-track{width:100%;height:100px;overflow:hidden;border-radius:var(--radius);background:var(--bg3);position:relative;margin-bottom:14px}
.spin-items{display:flex;gap:8px;padding:10px 8px;will-change:transform}
.spin-item{flex-shrink:0;width:80px;height:80px;border-radius:var(--radius-s);background:var(--card);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:30px}
.spin-pointer{position:absolute;top:0;bottom:0;left:50%;transform:translateX(-50%);width:2px;background:var(--primary);pointer-events:none}
.spin-pointer::before{content:'';position:absolute;top:0;left:50%;transform:translateX(-50%);border:6px solid transparent;border-top-color:var(--primary)}
.prize-reveal{display:flex;flex-direction:column;align-items:center;gap:8px}
.prize-icon{font-size:64px;}
.prize-name{font-size:20px;font-weight:800}
.prize-rarity {
  font-size: 11px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
.prize-rarity .rarity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  display: inline-block;
  flex-shrink: 0;
}
.rarity-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px; /* Perfect pill shape */
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
  white-space: nowrap;
}
.item-img-wrap .rarity-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 8px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  pointer-events: none;
  margin-bottom: 0;
}
.rarity-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.rarity-common {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.rarity-common .rarity-dot {
  background-color: #94a3b8;
}

.rarity-rare {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399; /* Emerald Green */
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.rarity-rare .rarity-dot {
  background-color: #34d399;
}

.rarity-epic {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa; /* Electric Blue */
  border: 1px solid rgba(59, 130, 246, 0.35);
}
.rarity-epic .rarity-dot {
  background-color: #60a5fa;
}

.rarity-legendary {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc; /* Amethyst Purple */
  border: 1px solid rgba(168, 85, 247, 0.35);
}
.rarity-legendary .rarity-dot {
  background-color: #c084fc;
}

.rarity-mythic {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24; /* Sunset Gold/Orange */
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.rarity-mythic .rarity-dot {
  background-color: #fbbf24;
}

.rarity-brainrotgod {
  background: linear-gradient(135deg, rgba(132, 204, 22, 0.18), rgba(234, 179, 8, 0.18));
  color: #a3e635; /* Acid Neon Lime */
  border: 1px solid rgba(132, 204, 22, 0.45);
  box-shadow: 0 0 10px rgba(132, 204, 22, 0.25);
}
.rarity-brainrotgod .rarity-dot {
  background-color: #a3e635;
}

.rarity-secret {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(219, 39, 119, 0.15));
  color: #fbcfe8; /* Cosmic Magenta/Pink */
  border: 1px solid rgba(236, 72, 153, 0.45);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.25);
}
.rarity-secret .rarity-dot {
  background-color: #fbcfe8;
}

.rarity-og {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.65), rgba(212, 175, 55, 0.25));
  color: #ffd700; /* Royal Gold and Deep Black */
  border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}
.rarity-og .rarity-dot {
  background-color: #ffd700;
}

.rarity-uncommon {
  background: rgba(45, 212, 191, 0.12);
  color: #2dd4bf; /* Mint/Teal Green for Uncommon */
  border: 1px solid rgba(45, 212, 191, 0.35);
}
.rarity-uncommon .rarity-dot {
  background-color: #2dd4bf;
}

.rarity-super {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(236, 72, 153, 0.15));
  color: #fda4af; /* Flaming Rose/Pink for Super */
  border: 1px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}
.rarity-super .rarity-dot {
  background-color: #fda4af;
}

.rarity-vintage {
  background: rgba(244, 63, 94, 0.12);
  color: #f43f5e; /* Rose Red */
  border: 1px solid rgba(244, 63, 94, 0.35);
}
.rarity-vintage .rarity-dot {
  background-color: #f43f5e;
}

.rarity-godly {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(168, 85, 247, 0.18));
  color: #f472b6; /* Godly Vibrant Pink */
  border: 1px solid rgba(236, 72, 153, 0.45);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.25);
}
.rarity-godly .rarity-dot {
  background-color: #f472b6;
}

.rarity-ancient {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.18), rgba(245, 158, 11, 0.18));
  color: #f87171; /* Ancient Fiery Red-Orange */
  border: 1px solid rgba(220, 38, 38, 0.45);
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.35);
}
.rarity-ancient .rarity-dot {
  background-color: #f87171;
}

.rarity-unique {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.65), rgba(225, 29, 72, 0.25));
  color: #f43f5e; /* Deep dark neon crimson unique */
  border: 1px solid rgba(225, 29, 72, 0.55);
  box-shadow: 0 0 14px rgba(225, 29, 72, 0.40);
}
.rarity-unique .rarity-dot {
  background-color: #f43f5e;
}

@keyframes fadeIn{from{opacity:0}to{opacity:1}}

/* ── DAILY BAR ────────────────────────────────── */
.daily-bar-wrap{display:flex;align-items:center;gap:10px;margin-top:14px;width:162px}
.daily-bar-track{flex:1;height:6px;background:var(--bg3);border-radius:var(--radius-pill);overflow:hidden}
.daily-bar-fill{height:100%;background:linear-gradient(90deg,var(--coin),var(--primary));border-radius:var(--radius-pill);width:0%;transition:width .2s ease}
.daily-label{font-size:11px;font-weight:600;color:var(--text3);white-space:nowrap}
.daily-label.done{color:var(--red)}

.coin-3d.wobble {
  opacity: 1 !important;
}

/* ── PROFILE TABS ─────────────────────────────── */
.profile-tabs{display:flex;gap:8px;margin-bottom:14px}
.ptab{
  flex:1;background:var(--card);border:1px solid var(--border);
  border-radius:var(--radius-pill);color:var(--text2);
  font-family:'Inter',sans-serif;font-size:13px;font-weight:600;
  padding:9px 16px;cursor:pointer;transition:border-color .15s, background .15s;
  touch-action:manipulation;
}
.ptab.active{background:var(--text);color:var(--bg);border-color:transparent;font-weight:700}
.ptab:active{opacity:0.85}
.ptab-content{display:none}
.ptab-content.active{display:block;animation:pgIn .08s ease-out}

/* ── INVENTORY GRID ───────────────────────────── */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.inv-card {
  background: linear-gradient(165deg, rgba(25, 28, 45, 0.95) 0%, rgba(13, 15, 25, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 12px 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.12s ease;
}

.inv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
}

.inv-card:hover {
  border-color: rgba(129, 140, 248, 0.4);
}

.inv-card:active {
  opacity: 0.88;
  border-color: rgba(129, 140, 248, 0.5);
}

/* Card Header */
.inv-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 4px;
  margin-bottom: 2px;
}

.inv-game-badge {
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2.5px 7px;
  border-radius: 6px;
  line-height: 1;
}

.inv-game-badge.inv-game-mm2 {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.inv-game-badge.inv-game-steal {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.inv-prize-id-tag {
  font-size: 8.5px;
  font-weight: 700;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Showcase & Ambient Lighting */
.inv-showcase {
  width: 100%;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 4px 0 6px;
  border-radius: 12px;
}

.inv-card-img {
  max-width: 68px;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.inv-card-emoji {
  font-size: 38px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}

/* Rarity Ambient Halos */
.rarity-glow-godly {
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.22) 0%, rgba(168, 85, 247, 0.06) 55%, transparent 75%);
}
.rarity-glow-ancient {
  background: radial-gradient(circle at center, rgba(220, 38, 38, 0.24) 0%, rgba(245, 158, 11, 0.08) 55%, transparent 75%);
}
.rarity-glow-unique {
  background: radial-gradient(circle at center, rgba(225, 29, 72, 0.26) 0%, transparent 72%);
}
.rarity-glow-legendary {
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.22) 0%, transparent 72%);
}
.rarity-glow-mythic {
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.22) 0%, transparent 72%);
}
.rarity-glow-brainrotgod {
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.25) 0%, transparent 72%);
}
.rarity-glow-secret {
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.26) 0%, rgba(219, 39, 119, 0.08) 55%, transparent 75%);
}
.rarity-glow-og {
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.28) 0%, rgba(255, 215, 0, 0.08) 55%, transparent 75%);
}
.rarity-glow-chroma {
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.22) 0%, rgba(6, 182, 212, 0.12) 55%, transparent 75%);
}
.rarity-glow-epic {
  background: radial-gradient(circle at center, rgba(147, 51, 234, 0.2) 0%, transparent 72%);
}
.rarity-glow-rare {
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.2) 0%, transparent 72%);
}
.rarity-glow-uncommon {
  background: radial-gradient(circle at center, rgba(45, 212, 191, 0.22) 0%, rgba(20, 184, 166, 0.06) 55%, transparent 75%);
}
.rarity-glow-super {
  background: radial-gradient(circle at center, rgba(253, 164, 175, 0.22) 0%, rgba(239, 68, 68, 0.08) 55%, transparent 75%);
}
.rarity-glow-vintage {
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.22) 0%, rgba(225, 29, 72, 0.06) 55%, transparent 75%);
}
.rarity-glow-common {
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.14) 0%, transparent 72%);
}

/* Item Details */
.inv-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
}

.inv-name {
  font-size: 12.5px;
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin: 0;
}

.inv-card .rarity-badge {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 999px;
  box-sizing: border-box;
  max-width: 100%;
}

/* Status & Delivery Footer */
.inv-status-wrap {
  width: 100%;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.inv-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  max-width: 138px;
  height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-sizing: border-box;
  white-space: nowrap;
}

.inv-status-pill.delivered {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.32);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}

.inv-status-pill.processing {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.32);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

.inv-status-pill.pending {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.32);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12);
}

.inv-status-pill.cancelled {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.32);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.12);
}

.inv-cancel-reason {
  width: 100%;
  max-width: 138px;
  font-size: 8px;
  font-weight: 600;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
  border: 1px dashed rgba(239, 68, 68, 0.25);
  border-radius: 6px;
  padding: 3px 6px;
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
  box-sizing: border-box;
}

.inv-status-dot {
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}

.inv-status-dot.pulse {
  opacity: 0.9;
}

/* ── PERFORMANCE ─────────────────────────────── */
/* Pages not visible — skip layout/paint entirely */
.page{ content-visibility:auto; contain-intrinsic-size:0 600px }
.page.active{ content-visibility:visible }

/* Respect system reduced-motion preference */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
  }
  .banner-shimmer, .banner-deco-icon, .banner-deco-oct{ animation:none !important }
}

/* ── ULTRA-PREMIUM WITHDRAW PROGRESS TRACKER ── */
.withdraw-tracker {
  margin: 0 0 14px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
}
.tracker-step {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  position: relative;
}
.tracker-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 14px;
  top: 30px;
  bottom: -16px;
  width: 2px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  z-index: 1;
  pointer-events: none;
}
.tracker-step.completed:not(:last-child)::after {
  background: rgba(129, 140, 248, 0.4);
}
.step-marker {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #131620;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.1), 0 3px 8px rgba(0, 0, 0, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.step-marker svg {
  display: block;
  flex-shrink: 0;
}
.step-marker .step-num {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1;
  font-family: inherit;
}
.step-marker .step-dash {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1;
}
.tracker-step.completed .step-marker {
  background: radial-gradient(circle at 50% 25%, rgba(129, 140, 248, 0.18) 0%, rgba(129, 140, 248, 0.04) 65%, #131620 100%);
  border-color: rgba(129, 140, 248, 0.45);
  color: #818cf8;
}
.tracker-step.pending .step-marker {
  background: radial-gradient(circle at 50% 25%, rgba(224, 168, 46, 0.18) 0%, rgba(224, 168, 46, 0.04) 65%, #131620 100%);
  border-color: rgba(224, 168, 46, 0.45);
  color: #e0a82e;
}
.tracker-step.locked .step-marker {
  background: #12141c;
  border-color: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}
.step-content {
  flex: 1;
  padding-top: 3px;
}
.step-title {
  margin: 0 0 2px 0;
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.15px;
  line-height: 1.3;
}
.tracker-step.completed .step-title {
  color: #f1f5f9;
}
.tracker-step.pending .step-title {
  color: #f8fafc;
}
.tracker-step.locked .step-title {
  color: var(--text3);
}

/* ── Harmonious, Calm & Premium Status Themes ── */
/* 1. Calm Amber Theme (Pending / Processing) */
.withdraw-tracker.tracker-theme-yellow .tracker-step.completed:not(:last-child)::after {
  background: linear-gradient(180deg, rgba(224, 168, 46, 0.6) 0%, rgba(224, 168, 46, 0.35) 100%) !important;
  box-shadow: none !important;
}
.withdraw-tracker.tracker-theme-yellow .tracker-step.completed .step-marker {
  background: radial-gradient(circle at 50% 25%, rgba(224, 168, 46, 0.18) 0%, rgba(224, 168, 46, 0.04) 65%, #131620 100%) !important;
  border: 1.5px solid rgba(224, 168, 46, 0.45) !important;
  color: #e0a82e !important;
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.15), 0 3px 10px rgba(0, 0, 0, 0.45), 0 0 12px rgba(224, 168, 46, 0.12) !important;
}
.withdraw-tracker.tracker-theme-yellow .tracker-step.completed .step-title {
  color: #f1f5f9 !important;
}
.withdraw-tracker.tracker-theme-yellow .tracker-step.pending .step-marker,
.withdraw-tracker.tracker-theme-yellow .tracker-step.in-progress .step-marker {
  background: radial-gradient(circle at 50% 25%, rgba(224, 168, 46, 0.22) 0%, rgba(224, 168, 46, 0.05) 65%, #131620 100%) !important;
  border: 1.5px solid rgba(224, 168, 46, 0.55) !important;
  color: #e0a82e !important;
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.45), 0 0 14px rgba(224, 168, 46, 0.18) !important;
  animation: trackerPulse 2.4s ease-in-out infinite;
}
.withdraw-tracker.tracker-theme-yellow .tracker-step.pending .step-title,
.withdraw-tracker.tracker-theme-yellow .tracker-step.in-progress .step-title {
  color: #f8fafc !important;
}
.withdraw-tracker.tracker-theme-yellow .tracker-step.pending:not(:last-child)::after,
.withdraw-tracker.tracker-theme-yellow .tracker-step.in-progress:not(:last-child)::after {
  background: rgba(255, 255, 255, 0.07) !important;
  box-shadow: none !important;
}
.withdraw-tracker.tracker-theme-yellow .tracker-step.locked .step-marker {
  background: radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.03) 0%, #11141c 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #64748b !important;
  box-shadow: none !important;
}
.withdraw-tracker.tracker-theme-yellow .tracker-step.locked .step-title {
  color: #64748b !important;
}

/* 2. Calm Emerald Theme (Completed / Confirmed) */
.withdraw-tracker.tracker-theme-green .tracker-step.completed:not(:last-child)::after {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.6) 0%, rgba(16, 185, 129, 0.35) 100%) !important;
  box-shadow: none !important;
}
.withdraw-tracker.tracker-theme-green .tracker-step.completed .step-marker {
  background: radial-gradient(circle at 50% 25%, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0.04) 65%, #131620 100%) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.5) !important;
  color: #34d399 !important;
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.45), 0 0 12px rgba(16, 185, 129, 0.14) !important;
}
.withdraw-tracker.tracker-theme-green .tracker-step.completed .step-title {
  color: #f1f5f9 !important;
}

/* 3. Calm Rose/Crimson Theme (Failed / Cancelled / Rejected) */
.withdraw-tracker.tracker-theme-red .tracker-step:nth-child(1):not(:last-child)::after {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.45) 0%, rgba(239, 68, 68, 0.25) 100%) !important;
  box-shadow: none !important;
}
.withdraw-tracker.tracker-theme-red .tracker-step:nth-child(1) .step-marker {
  background: radial-gradient(circle at 50% 25%, rgba(239, 68, 68, 0.14) 0%, rgba(239, 68, 68, 0.04) 65%, #131620 100%) !important;
  border: 1.5px solid rgba(239, 68, 68, 0.35) !important;
  color: #fca5a5 !important;
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.45) !important;
}
.withdraw-tracker.tracker-theme-red .tracker-step:nth-child(1) .step-title {
  color: #f1f5f9 !important;
}
.withdraw-tracker.tracker-theme-red .tracker-step:nth-child(2) .step-marker,
.withdraw-tracker.tracker-theme-red .tracker-step.rejected .step-marker {
  background: radial-gradient(circle at 50% 25%, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.05) 65%, #131620 100%) !important;
  border: 1.5px solid rgba(239, 68, 68, 0.55) !important;
  color: #f87171 !important;
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.45), 0 0 12px rgba(239, 68, 68, 0.14) !important;
}
.withdraw-tracker.tracker-theme-red .tracker-step:nth-child(2) .step-title,
.withdraw-tracker.tracker-theme-red .tracker-step.rejected .step-title {
  color: #f87171 !important;
}
.withdraw-tracker.tracker-theme-red .tracker-step:nth-child(2):not(:last-child)::after,
.withdraw-tracker.tracker-theme-red .tracker-step.rejected:not(:last-child)::after {
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
}
.withdraw-tracker.tracker-theme-red .tracker-step.locked .step-marker {
  background: #12141c !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #64748b !important;
  box-shadow: none !important;
}
.withdraw-tracker.tracker-theme-red .tracker-step.locked .step-title {
  color: #64748b !important;
}

@keyframes trackerPulse {
  0%, 100% {
    box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.45), 0 0 10px rgba(224, 168, 46, 0.12);
  }
  50% {
    box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.22), 0 4px 12px rgba(0, 0, 0, 0.45), 0 0 18px rgba(224, 168, 46, 0.26);
  }
}
.step-desc {
  margin: 0;
  font-size: 11.5px;
  color: var(--text3);
  line-height: 1.45;
}
.tracker-step.completed .step-desc {
  color: var(--text2);
}
.tracker-step.pending .step-desc {
  color: var(--text2);
}
.tracker-step.pending .step-desc strong {
  color: #e0a82e;
}
.tracker-step.green-step .step-marker {
  background: radial-gradient(circle at 50% 25%, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0.04) 65%, #131620 100%) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  color: #34d399 !important;
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.45) !important;
}
.tracker-step.green-step .step-title {
  color: #f1f5f9 !important;
}
.tracker-step.green-step:not(:last-child)::after {
  background: rgba(16, 185, 129, 0.4) !important;
}

/* ── PREVENT COPYING, SELECTING & DRAGGING ───── */
* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Allow text input fields to be selectable/editable */
input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Globally disable image dragging */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

/* ── PROFILE TRANSACTIONS HISTORY ── */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  animation: fadeIn 0.25s ease;
}
.hist-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.hist-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}
.hist-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}
.hist-desc {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  flex: 1;
}
.hist-val {
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 1px;
}
.hist-val.red { color: #f87171; }
.hist-val.green { color: #34d399; }
.hist-val.blue { color: var(--accent); }
.hist-val.grey { color: var(--text3); }
.hist-val.yellow { color: #e0a82e; }
.hist-icon-wrap.failed-tx {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.22) !important;
}
.hist-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hist-time {
  font-size: 10px;
  color: var(--text3);
  font-weight: 600;
}
.hist-status {
  font-size: 8.5px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.hist-status.pending {
  background: rgba(224, 168, 46, 0.12);
  color: #e0a82e;
  border: 1px solid rgba(224, 168, 46, 0.3);
}
.hist-status.success {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.hist-status.failed, .hist-status.cancelled {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.hist-status.completed {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.hist-status.processing {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ── TRANSACTION DETAILS MODAL ── */
.history-item.clickable {
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.history-item.clickable:hover {
  border-color: rgba(91,99,255,0.3);
  background: rgba(255,255,255,0.03);
}
.history-item.clickable:active {
  transform: scale(0.99);
}

.det-header {
  text-align: center;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.det-amount-lbl {
  font-size: 11px;
  color: var(--text3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  display: block;
}
.det-amount-val {
  font-size: 24px;
  font-weight: 900;
}
.det-amount-val.green { color: #34d399; }
.det-amount-val.red { color: #f87171; }
.det-amount-val.blue { color: var(--accent); }

.det-list-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.det-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 2px;
}
.det-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 8px 10px;
}
.det-item-emoji {
  font-size: 20px;
  flex-shrink: 0;
}
.det-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.det-item-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.det-item-qty {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary);
  background: rgba(91,99,255,0.12);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
  display: inline-block;
}
.det-item-sub {
  font-size: 10px;
  color: var(--text3);
  font-weight: 600;
}
.det-item-total {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── MUTATIONS SELECTOR (CUSTOM DROPDOWN) ── */
.item-card.dropdown-open {
  z-index: 99999 !important;
  contain: none !important;
  overflow: visible !important;
}

.item-info,
.item-action-area,
.item-selectors-container {
  overflow: visible !important;
}

.custom-select-wrap {
  position: relative;
  width: 100%;
  margin-top: 6px;
  user-select: none;
  z-index: 100;
}
.custom-select-wrap.open {
  z-index: 999999 !important;
}
.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  height: 32px;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}
.custom-select-trigger:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}
.custom-select-text {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
  flex: 1;
}
.mut-lbl {
  font-size: 8.5px;
  font-weight: 800;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.custom-select-arrow {
  color: var(--text3);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.custom-select-wrap.open .custom-select-arrow {
  transform: rotate(180deg);
}
.custom-select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin-top: 0;
  background: #141724;
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 12px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 999999 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.9), 0 0 20px rgba(124, 58, 237, 0.3);
  display: none;
  padding: 4px;
}
.custom-select-options::-webkit-scrollbar {
  width: 4px;
}
.custom-select-options::-webkit-scrollbar-track {
  background: transparent;
}
.custom-select-options::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}
.custom-select-wrap.open .custom-select-options {
  display: block !important;
  animation: selectOpen 0.12s ease-out;
}
.custom-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.custom-option:hover,
.custom-option.selected {
  background: rgba(124, 58, 237, 0.2);
}
.custom-option.selected {
  background: rgba(91, 99, 255, 0.1);
}
.custom-option.selected span {
  color: var(--primary);
}
.custom-option span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
}
.mut-option-img {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}
.mut-preview-img {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.det-item-mut {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text2);
}

/* Custom premium slim scrollbar globally and specifically for modal */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
  background: transparent;
}
::-webkit-scrollbar-track {
  background: transparent !important;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

.det-items-container {
  max-height: 180px;
  overflow-y: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-right: 6px;
  margin-bottom: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.det-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 10px;
}
.det-item-row:last-child {
  margin-bottom: 0;
}
.det-item-name {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}
.det-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.det-item-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  border: 1px solid transparent;
}
.det-badge-mutation {
  background: rgba(167, 139, 250, 0.1);
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.2);
}
.det-badge-size {
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.2);
}
.det-badge-color {
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.2);
}
.det-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
}
.det-item-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  color: var(--text2);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 3.5px 8px;
  line-height: 1;
}
.det-item-price {
  font-size: 13px;
  font-weight: 900;
  color: var(--accent);
  margin-top: 5px;
  line-height: 1;
}

/* ─── REFERRAL CARD ─── */
.referral-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ref-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}
.ref-link {
  margin: 0;
  font-size: 11px;
  color: var(--text3);
  word-break: break-all;
  user-select: text;
  font-weight: 500;
}
.ref-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}
.ref-btn-share {
  flex: 1;
  background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
  border: none !important;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(124,58,237,0.25);
  cursor: pointer;
  transition: all 0.2s;
  height: auto !important;
  margin: 0 !important;
}
.ref-btn-share:active {
  transform: scale(0.97);
}
.ref-btn-copy {
  flex: 1;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  height: auto !important;
  margin: 0 !important;
}
.ref-btn-copy:active {
  transform: scale(0.97);
}

/* ─── ADMIN DASHBOARD ─── */
.admin-tabs button {
  transition: all 0.25s ease;
}
.admin-tabs button.active {
  background: var(--primary) !important;
  color: #fff !important;
}
.adm-collapsible {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.adm-collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
}
.adm-collapsible-header:hover {
  background: rgba(255,255,255,0.01);
}
.adm-collapsible-body {
  display: none;
  padding: 16px;
  background: rgba(0,0,0,0.15);
  border-top: 1px solid var(--border);
  flex-direction: column;
  gap: 12px;
}
.adm-collapsible.expanded {
  overflow: visible !important;
}
.adm-collapsible.expanded .adm-collapsible-body {
  display: flex;
}
.adm-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.adm-input-group label {
  font-size: 10px;
  color: var(--text3);
  font-weight: 700;
  text-transform: uppercase;
}
.adm-input-group input, .adm-input-group select {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  width: 100%;
}
.adm-input-group input:focus, .adm-input-group select:focus {
  border-color: var(--primary);
  outline: none;
}
.adm-prize-row {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255,255,255,0.02);
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}
.adm-prize-img-preview {
  user-select: none;
  cursor: pointer;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
  transform: none !important;
}
.adm-prize-img-preview:hover {
  border-color: rgba(255, 255, 255, 0.25) !important;
  background: rgba(0, 0, 0, 0.45) !important;
  box-shadow: none !important;
  transform: none !important;
}
.adm-prize-img-preview:active {
  transform: none !important;
  box-shadow: none !important;
}
.adm-delete-prize-btn {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  flex-shrink: 0 !important;
}
.adm-delete-prize-btn:hover {
  background: rgba(239, 68, 68, 0.22) !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
  color: #fca5a5 !important;
}
.adm-prize-row select {
  padding: 4px 8px !important;
  font-size: 11px !important;
}
.adm-prize-row input.adm-prize-name {
  padding: 0 10px !important;
  font-size: 13px !important;
}
.adm-prize-row input.adm-prize-chance {
  padding: 0 !important;
  font-size: 12px !important;
}

.adm-mut-multiplier, .adm-mut-val-multiplier {
  width: 75px !important;
  text-align: left !important;
  padding: 8px 24px 8px 12px !important; /* space on right for x */
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--accent) !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  outline: none !important;
  transition: all 0.2s !important;
  -webkit-appearance: none !important;
  margin: 0 !important;
}
.adm-mut-multiplier:focus, .adm-mut-val-multiplier:focus {
  border-color: var(--primary) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.2) !important;
}
.adm-mut-multiplier::-webkit-outer-spin-button,
.adm-mut-multiplier::-webkit-inner-spin-button,
.adm-mut-val-multiplier::-webkit-outer-spin-button,
.adm-mut-val-multiplier::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
.adm-mut-multiplier[type=number], .adm-mut-val-multiplier[type=number] {
  -moz-appearance: textfield !important;
}

/* Hide default number spinner controls inside admin section */
#page-admin input[type=number]::-webkit-outer-spin-button,
#page-admin input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
#page-admin input[type=number] {
  -moz-appearance: textfield !important;
}

/* Custom premium styling for admin sort buttons */
.adm-sort-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: var(--text2) !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  padding: 0 !important;
  touch-action: manipulation !important;
}
.adm-sort-btn:hover:not(:disabled) {
  background: rgba(129, 140, 248, 0.15) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  transform: scale(1.08) !important;
}
.adm-sort-btn:active:not(:disabled) {
  transform: scale(0.92) !important;
}
.adm-sort-btn:disabled {
  opacity: 0.15 !important;
  cursor: not-allowed !important;
}

/* Custom Admin & Rarity Tabs styles */
* {
  -webkit-tap-highlight-color: transparent !important;
}

.admin-tabs .atab,
.adm-rarity-tabs .adm-rarity-tab,
.adm-sub-tabs .adm-sub-tab {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  outline: none !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--text3) !important;
  box-shadow: none !important;
}

.admin-tabs .atab:hover,
.adm-rarity-tabs .adm-rarity-tab:hover,
.adm-sub-tabs .adm-sub-tab:hover {
  color: var(--text2) !important;
}

.admin-tabs .atab.active,
.adm-rarity-tabs .adm-rarity-tab.active,
.adm-sub-tabs .adm-sub-tab.active {
  background: rgba(139, 92, 246, 0.12) !important;
  border: 1px solid rgba(139, 92, 246, 0.25) !important;
  color: #c4b5fd !important;
}

/* Premium style for admin input elements focus state */
#page-admin input,
#page-admin select,
#page-admin textarea {
  transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#page-admin input:focus,
#page-admin select:focus,
#page-admin textarea:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15) !important;
}

.adm-keep-bg-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text3);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: all 0.15s ease;
  height: 26px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.adm-keep-bg-inline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text2);
}
.adm-keep-bg-inline:has(input:checked),
.adm-keep-bg-inline.active {
  background: rgba(124, 58, 237, 0.16) !important;
  border-color: rgba(124, 58, 237, 0.45) !important;
  color: #c4b5fd !important;
  box-shadow: none !important;
}
.adm-keep-bg-inline input[type="checkbox"] {
  pointer-events: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 12px !important;
  height: 12px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 3px !important;
  background: rgba(0, 0, 0, 0.3) !important;
  cursor: pointer !important;
  margin: 0 !important;
  position: relative !important;
  transition: all 0.15s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  outline: none !important;
}
.adm-keep-bg-inline input[type="checkbox"]:checked {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}
.adm-keep-bg-inline input[type="checkbox"]:checked::after {
  content: "✓";
  font-size: 8.5px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

/* Premium styled dropdown select arrow and dropdown options list */
#page-admin select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  padding-right: 28px !important;
  color: #fff !important;
  cursor: pointer !important;
}

#page-admin select option {
  background-color: #12141c !important;
  color: #fff !important;
}

/* Custom Rarity Dropdown & Creation Modal Styling */
.custom-select-trigger {
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}
.custom-select-trigger:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15), inset 0 1px 2px rgba(0,0,0,0.3) !important;
}
.custom-select-options::-webkit-scrollbar {
  width: 5px;
}
.custom-select-options::-webkit-scrollbar-track {
  background: transparent;
}
.custom-select-options::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
}

#adm-create-modal input,
#adm-create-modal select {
  background: rgba(0,0,0,0.25) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  outline: none !important;
  width: 100% !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

@keyframes selectOpen {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#adm-create-modal input:focus,
#adm-create-modal select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(129,140,248,0.15) !important;
}
#adm-create-modal label {
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: var(--text2) !important;
  margin-bottom: 6px !important;
  display: block !important;
}

/* Rainbow text effect for Chroma */
.rainbow-text {
  background: linear-gradient(to right, #ff3333, #ff8833, #ffff33, #33ff33, #3388ff, #8833ff, #ff33ff) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  font-weight: 900 !important;
  text-shadow: none !important;
  display: inline-block !important;
}

/* Custom Toggle Switch for Admin Configs */
.custom-switch input:checked + .slider {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
}
.custom-switch .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.custom-switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* ── PREMIUM TOAST NOTIFICATION ──────────────── */
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -6px) scale(0.96);
  }
}

.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 20px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 18, 26, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 32px -4px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  padding: 6px 14px;
  border-radius: 999px;
  z-index: 99999;
  max-width: calc(100vw - 44px);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  animation: toastIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.toast.toast-hiding {
  animation: toastOut 0.18s ease forwards;
}

.toast-coin-wrap {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
}

.toast-coin-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transform: scale(1.45);
  display: block;
}

.toast-icon-svg {
  flex-shrink: 0;
}
