/* ═══════════════════════════════════════════
   JADE SHOP — SAKURA REBORN v4
   CSS Complet (Adaptat pentru IMMORTALS)
═══════════════════════════════════════════ */

:root {
  /* Aliniat cu tema IMMORTALS (Dark Purple / Magenta) */
  --jade-primary:    #b300ff; /* Mov aprins (ca logo-ul/butoanele active) */
  --jade-secondary:  #160a22; /* Fundal foarte închis mov */
  --jade-accent:     #d500ff; /* Accente mai deschise */
  --jade-bg:         #0a0510; /* Fundalul general (negru cu o tentă mov) */
  --jade-bg2:        #12081c; /* Containere/Carduri */
  --jade-bg3:        #1d0d2b; /* Hover/Elemente active */
  --jade-border:     #2a1340; /* Borduri subtile mov */
  
  --jade-text:       #e2d6ed; /* Text deschis, ușor movuliu */
  --jade-text-muted: #8b799c; /* Text secundar/gri-mov */
  
  --jade-success:    #4caf50;
  --jade-danger:     #e53935;
  --jade-gold:       #ffb700; /* Auriu/Galben pentru prețuri/VIP */
  
  --jade-shadow:     0 4px 20px rgba(179, 0, 255, 0.15); /* Umbră mov */
  --jade-radius:     12px;
  --jade-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pentru a forța culorile peste CSS-ul existent al temei tale */
#jade-shop-wrap * {
  box-sizing: border-box;
}

/* ── WRAP ── */
#jade-shop-wrap {
  background: var(--jade-bg);
  color: var(--jade-text);
  font-family: inherit; /* Preia fontul site-ului tău (probabil un sans-serif) */
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  border-radius: var(--jade-radius); /* Dacă îl pui într-un container */
}

/* ── SAKURA PETALS (Adaptat la mov) ── */
.sakura-petal {
  position: fixed;
  top: -20px;
  width: 10px; height: 10px;
  background: var(--jade-primary);
  border-radius: 50% 0 50% 0;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  animation: petalFall linear infinite;
  box-shadow: 0 0 5px var(--jade-primary); /* Efect de glow */
}
@keyframes petalFall {
  0%   { transform: translateY(0) rotate(0deg) translateX(0); opacity:.7; }
  50%  { transform: translateY(50vh) rotate(180deg) translateX(40px); opacity:.4; }
  100% { transform: translateY(110vh) rotate(360deg) translateX(-20px); opacity:0; }
}

/* ── HEADER ── */
.jade-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--jade-bg2);
  border-bottom: 2px solid var(--jade-primary); /* Linie de accent sus */
  position: sticky; top: 0; z-index: 100;
}
.jade-header-left { display: flex; align-items: center; gap: 16px; }
.jade-header-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.jade-logo {
  font-size: 24px; font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.jade-logo span {
    color: var(--jade-primary);
}

.jade-balance {
  background: var(--jade-bg3);
  border: 1px solid var(--jade-border);
  border-radius: 8px; /* Mai pătrățos, ca la site-ul tău */
  padding: 8px 16px;
  font-weight: 700;
  font-size: 15px;
  color: var(--jade-gold);
  display: flex; align-items: center; gap: 6px;
}
.jade-vip-badge {
  background: linear-gradient(135deg, #7a5200, #ffb700);
  color: #1a1000;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.jade-user-name {
  color: var(--jade-text);
  font-size: 15px;
  font-weight: 600;
}
.jade-btn-home {
  background: var(--jade-bg3);
  border: 1px solid var(--jade-border);
  color: var(--jade-text);
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: var(--jade-transition);
}
.jade-btn-home:hover {
  background: var(--jade-primary);
  border-color: var(--jade-primary);
  color: #fff;
  box-shadow: var(--jade-shadow);
}

/* ── NAV TABS ── */
.jade-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 24px;
  background: var(--jade-bg);
  border-bottom: 1px solid var(--jade-border);
  position: sticky; top: 70px; z-index: 90;
}
.jade-tab-btn {
  background: var(--jade-bg2);
  border: 1px solid var(--jade-border);
  color: var(--jade-text-muted);
  padding: 10px 20px;
  border-radius: 8px; /* Design mai boxy, potrivit temei */
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: var(--jade-transition);
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.jade-tab-btn:hover {
  background: var(--jade-bg3);
  border-color: var(--jade-primary);
  color: #fff;
}
.jade-tab-btn.active {
  background: var(--jade-primary);
  border-color: var(--jade-primary);
  color: #fff;
  box-shadow: var(--jade-shadow);
}

/* ── CONTENT ── */
.jade-content { padding: 32px 24px; }
.jade-tab { display: none; }
.jade-tab.active { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }

.jade-tab h2 {
  font-size: 26px; font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.jade-tab-desc { color: var(--jade-text-muted); font-size: 15px; margin-bottom: 30px; }

/* ── TIER TITLES ── */
.jade-tier-section { margin-bottom: 40px; }
.jade-tier-title {
  font-size: 14px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; padding: 6px 16px;
  border-radius: 6px; display: inline-block; margin-bottom: 16px;
}
.tier-1 { background: rgba(255,255,255,0.05); color:#aaa; border:1px solid rgba(255,255,255,0.1); }
.tier-2 { background: rgba(76,175,80,0.1); color:#4caf50; border:1px solid rgba(76,175,80,0.3); }
.tier-3 { background: rgba(102,153,255,0.1); color:#6699ff; border:1px solid rgba(102,153,255,0.3); }
.tier-4 { background: rgba(204,102,255,0.1); color:#cc66ff; border:1px solid rgba(204,102,255,0.3); }
.tier-5 { background: rgba(255,153,51,0.1); color:#ff9933; border:1px solid rgba(255,153,51,0.3); }
.tier-6 {
  background: linear-gradient(135deg, rgba(255,183,0,0.1), rgba(255,0,0,0.1));
  color:#ffb700; border:1px solid #ffb700;
  box-shadow: 0 0 15px rgba(255,183,0,0.2);
}

/* ── GRID ── */
.jade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.jade-grid-sm { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.jade-grid-vip { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.jade-grid-lootbox { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ── CARD ── */
.jade-card {
  background: var(--jade-bg2);
  border: 1px solid var(--jade-border);
  border-radius: var(--jade-radius);
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: var(--jade-transition);
  position: relative;
  overflow: hidden;
}
/* Efect subtil de glow pe hover pentru carduri */
.jade-card::before {
    content: ''; position: absolute; top:0; left:0; right:0; height:2px;
    background: transparent; transition: var(--jade-transition);
}
.jade-card:hover {
  border-color: var(--jade-primary);
  background: var(--jade-bg3);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}
.jade-card:hover::before { background: var(--jade-primary); }

.jade-card.active {
  border-color: var(--jade-primary);
  background: rgba(179, 0, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--jade-primary), var(--jade-shadow);
}
.jade-card-preview {
  background: var(--jade-bg);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  min-height: 50px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.05);
}
.jade-card-name { font-weight: 700; font-size: 15px; color: #fff;}
.jade-card-price { color: var(--jade-gold); font-size: 14px; font-weight: 700; }

/* ── NAME PREVIEW & EFFECTS (Păstrate din original, sunt ok) ── */
.name-preview { font-weight: 800; font-size: 16px; transition: var(--jade-transition); }
.name-effect-glow { color: var(--jade-primary); text-shadow: 0 0 8px var(--jade-primary), 0 0 20px var(--jade-primary); animation: glowPulse 2s ease-in-out infinite; }
@keyframes glowPulse { 0%,100% { text-shadow: 0 0 8px var(--jade-primary), 0 0 20px var(--jade-primary); } 50% { text-shadow: 0 0 20px var(--jade-primary), 0 0 40px var(--jade-primary); } }
.name-effect-sparkle { color: var(--jade-gold); animation: sparklePulse 1.5s ease-in-out infinite; }
@keyframes sparklePulse { 0%,100% { opacity:1; text-shadow: 0 0 6px #ffb700; } 50% { opacity:.7; text-shadow: 0 0 20px #ffb700, 0 0 40px #ff9900; } }
.name-effect-rainbow { background: linear-gradient(90deg,#ff0000,#ff8800,#ffff00,#00ff00,#0088ff,#8800ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-size: 200%; animation: rainbowShift 2s linear infinite; }
@keyframes rainbowShift { 0% { background-position:0%; } 100% { background-position:200%; } }
.name-effect-fire { background: linear-gradient(0deg,#ff2200,#ff6600,#ffdd00); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: fireFlicker 0.8s ease-in-out infinite alternate; }
@keyframes fireFlicker { 0% { filter: brightness(1) blur(0); } 100% { filter: brightness(1.3) blur(0.5px); } }
.name-effect-ice { background: linear-gradient(135deg,#aaddff,#ffffff,#88ccff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 10px rgba(136,204,255,0.8); animation: icePulse 2s ease-in-out infinite; }
@keyframes icePulse { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.4); } }
.name-effect-sakura { color: var(--jade-accent); animation: sakuraFloat 3s ease-in-out infinite; }
@keyframes sakuraFloat { 0%,100% { transform: translateY(0); text-shadow: 0 0 8px var(--jade-accent); } 50% { transform: translateY(-3px); text-shadow: 0 0 16px var(--jade-accent), 0 0 30px #e8669a; } }

/* ── THEME SWATCH ── */
.jade-theme-swatch {
  height: 60px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 900;
  border: 1px solid rgba(255,255,255,0.1);
}
.jade-theme-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto;}

/* ── BUTTONS ── */
.jade-btn {
  padding: 10px 18px; border-radius: 8px;
  border: 1px solid var(--jade-border);
  background: var(--jade-bg3); color: var(--jade-text);
  cursor: pointer; font-size: 14px; font-weight: 700;
  transition: var(--jade-transition); text-align: center;
  text-decoration: none; display: inline-block;
  width: 100%; /* Facem butoanele din carduri full-width implicit */
}
.jade-btn:hover { border-color: var(--jade-primary); color: #fff; background: var(--jade-bg2); }

.jade-btn-buy {
  background: var(--jade-primary);
  border-color: var(--jade-primary); color: #fff;
}
.jade-btn-buy:hover { background: var(--jade-accent); border-color: var(--jade-accent); box-shadow: var(--jade-shadow); }

.jade-btn-equip  { border-color: var(--jade-success); color: var(--jade-success); background: transparent;}
.jade-btn-equip:hover { background: var(--jade-success); color:#fff; }

.jade-btn-equipped { border-color: var(--jade-success); color: var(--jade-success); background: rgba(76,175,80,0.1); cursor:default; }

.jade-btn-unequip { border-color: var(--jade-danger); color: var(--jade-danger); font-size:12px; padding:6px 12px; }
.jade-btn-unequip:hover { background: var(--jade-danger); color:#fff; }

.jade-btn-preview { border-color: #6699ff; color: #6699ff; font-size:12px; padding:6px 12px; }
.jade-btn-preview:hover { background: #6699ff; color:#fff; }

.jade-btn-lootbox { background: var(--jade-bg3); font-weight:800; border-width: 2px; border-color: var(--jade-primary); color: var(--jade-primary);}
.jade-btn-lootbox:hover { background: var(--jade-primary); color:#fff; box-shadow: var(--jade-shadow);}

/* ── INPUTS ── */
.jade-input, .jade-select {
  width: 100%; padding: 12px 16px;
  background: var(--jade-bg); border: 1px solid var(--jade-border);
  border-radius: 8px; color: #fff; font-size: 14px;
  transition: var(--jade-transition);
}
.jade-input:focus, .jade-select:focus {
  outline: none; border-color: var(--jade-primary);
  box-shadow: 0 0 0 2px rgba(179, 0, 255, 0.2);
}
.jade-select option { background: var(--jade-bg2); color: #fff; }

/* ── RANK ── */
.jade-rank-box {
  background: var(--jade-bg2); border: 1px solid var(--jade-border);
  border-radius: var(--jade-radius); padding: 32px;
  max-width: 550px; display: flex; flex-direction: column; gap: 20px;
}
.jade-rank-badge {
  background: var(--jade-bg3);
  border: 1px solid var(--jade-primary); color: #fff;
  padding: 4px 14px; border-radius: 6px; font-weight: 800; font-size: 14px;
}
.jade-rank-preview-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.jade-current-rank { color: var(--jade-text-muted); font-size: 15px; }

/* ── VIP ── */
.jade-vip-card { text-align: center; }
.jade-vip-badge-big { font-size: 54px; margin-bottom: 8px; filter: drop-shadow(0 0 15px rgba(255,183,0,0.3));}
.jade-vip-days {
  font-size: 32px; font-weight: 900;
  color: var(--jade-gold); letter-spacing: 2px;
}
.jade-vip-perks { list-style: none; text-align: left; font-size: 14px; color: var(--jade-text); margin-top: 10px;}
.jade-vip-perks li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; gap: 8px;}
.jade-vip-perks li::before { content: '✓'; color: var(--jade-gold); font-weight: bold;}
.jade-vip-perks li:last-child { border-bottom: none; }

.jade-vip-active-box {
  background: rgba(255, 183, 0, 0.05);
  border: 1px solid rgba(255, 183, 0, 0.3);
  border-radius: var(--jade-radius); padding: 24px;
  margin-bottom: 30px; display: flex; flex-direction: column; gap: 10px;
}
.jade-vip-status { color: var(--jade-gold); font-weight: 800; font-size: 20px; text-transform: uppercase;}
.jade-autorenew-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px;}
.jade-autorenew-wrap small { color: var(--jade-text-muted); }
.jade-vip-required {
  background: var(--jade-bg2); border: 1px dashed var(--jade-border);
  border-radius: var(--jade-radius); padding: 32px; text-align: center;
  color: var(--jade-text-muted); font-size: 16px;
}

/* ── MUSIC & GIFTS (Stilizate unitar) ── */
.jade-music-buy, .jade-music-current, .jade-gift-send, .jade-gift-received {
  background: var(--jade-bg2); border: 1px solid var(--jade-border);
  border-radius: var(--jade-radius); padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  max-width: 600px;
}
.jade-music-current, .jade-gift-received { margin-bottom: 24px; }
.jade-gift-send h3, .jade-gift-received h3 { font-size:18px; color: #fff; margin-bottom: 0;}
.jade-gift-form { display: flex; flex-direction: column; gap: 12px; }

/* ── MODAL (Refăcut complet pentru temă) ── */
.jade-modal-overlay {
  position: fixed; inset:0; z-index: 9000;
  background: rgba(10, 5, 16, 0.9); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
}
.jade-modal {
  background: var(--jade-bg2); 
  border: 1px solid var(--jade-border);
  border-top: 4px solid var(--jade-primary);
  border-radius: 12px; padding: 40px 32px; max-width: 480px; width: 90%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), var(--jade-shadow);
  animation: modalIn .3s cubic-bezier(0.175,0.885,0.32,1.275);
  display: flex; flex-direction: column; gap: 20px;
}
.jade-modal h3 { color: #fff; font-size: 24px;}
.jade-modal p { color: var(--jade-text); font-size: 16px;}
.jade-modal .jade-btn { width: auto; min-width: 140px;}

/* ── TOAST ── */
.jade-toast {
  position: fixed; bottom: 30px; right: 30px; z-index: 9999;
  background: var(--jade-bg2); border-left: 4px solid var(--jade-primary);
  border-radius: 8px; padding: 16px 24px;
  color: #fff; font-size: 15px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: toastIn .3s cubic-bezier(0.175,0.885,0.32,1.275);
  max-width: 400px;
}
.jade-toast.success { border-left-color: var(--jade-success); }
.jade-toast.error   { border-left-color: var(--jade-danger); }

/* ── SCROLLBAR (Adaptat la tema mov) ── */
#jade-shop-wrap ::-webkit-scrollbar        { width: 8px; }
#jade-shop-wrap ::-webkit-scrollbar-track  { background: var(--jade-bg); }
#jade-shop-wrap ::-webkit-scrollbar-thumb  { background: var(--jade-border); border-radius: 4px; }
#jade-shop-wrap ::-webkit-scrollbar-thumb:hover { background: var(--jade-primary); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .jade-header { flex-direction: column; gap: 16px; padding: 16px; align-items: stretch;}
  .jade-header-left, .jade-header-right { justify-content: center; }
  .jade-nav    { justify-content: center; }
  .jade-gifts-split { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .jade-content { padding: 20px 16px; }
  .jade-grid  { grid-template-columns: 1fr; }
  .jade-tab-btn { flex: 1; justify-content: center; }
}





/* ── INVENTORY OPTIMIZATION (Fix haos) ── */

/* Secțiunile din inventar (Culori, Teme, etc) */
.jade-inv-section {
    background: var(--jade-bg2);
    border: 1px solid var(--jade-border);
    border-radius: var(--jade-radius);
    padding: 20px;
    margin-bottom: 25px;
}

.jade-inv-section h3 {
    font-size: 16px;
    color: var(--jade-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--jade-border);
    padding-bottom: 10px;
}

/* Fix pentru rândurile de Module Active (Rank/Muzică) */
.jade-inv-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--jade-bg3);
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(179, 0, 255, 0.1);
}

.jade-inv-item span:first-child {
    font-weight: 700;
    color: var(--jade-text-muted);
    min-width: 140px;
}

/* Ajustare Grid Inventar (Carduri mai compacte) */
.jade-grid-sm {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* Stil specific pentru cardurile din inventar */
#tab-inventory .jade-card {
    padding: 15px;
    background: var(--jade-bg); /* Fundal puțin mai închis să iasă în evidență */
}

/* Badge-ul de Rank în inventar */
#tab-inventory .jade-rank-badge {
    box-shadow: 0 0 10px rgba(179, 0, 255, 0.2);
    font-size: 13px;
}

/* Mesaj când inventarul e gol */
.jade-empty {
    text-align: center;
    padding: 50px;
    background: var(--jade-bg2);
    border-radius: var(--jade-radius);
    color: var(--jade-text-muted);
    border: 1px dashed var(--jade-border);
    font-style: italic;
}

/* Fix pentru player-ul audio în inventar */
.jade-inv-item audio {
    height: 30px;
    filter: invert(1) hue-rotate(240deg) brightness(1.5); /* Îl face movuliu să se potrivească */
    flex: 1;
    max-width: 300px;
}

/* Responsive fix pentru inventar pe mobil */
@media (max-width: 480px) {
    .jade-inv-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .jade-inv-item span:first-child {
        min-width: unset;
    }
}




/* ── MUSIC BAR (Floating at bottom) ── */
.jade-music-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(22, 10, 34, 0.95); /* --jade-secondary cu transparență */
    border-top: 2px solid var(--jade-primary);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 9999;
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-weight: 600;
}

.jade-music-bar span {
    font-size: 14px;
    color: var(--jade-text);
}

.jade-music-bar audio {
    height: 30px;
    max-width: 300px;
    /* Invertim culorile player-ului browser-ului pentru a se potrivi cu tema dark */
    filter: invert(1) hue-rotate(240deg) brightness(1.5);
}

.jade-music-bar button {
    background: var(--jade-bg3);
    border: 1px solid var(--jade-primary);
    color: #fff;
    border-radius: 5px;
    padding: 5px 12px;
    cursor: pointer;
    transition: var(--jade-transition);
    font-size: 16px;
}

.jade-music-bar button:hover {
    background: var(--jade-primary);
    box-shadow: var(--jade-shadow);
}






/* ── MUSIC & RANK TAB CLEANUP (No inline styles) ── */

.jade-edit-panel {
    display: none; 
    margin-top: 15px; 
    padding-top: 15px; 
    border-top: 1px dashed var(--jade-border);
}

.jade-form-label {
    font-size: 12px; 
    color: var(--jade-text-muted); 
    font-weight: bold; 
    margin-bottom: 8px; 
    display: block;
}

.jade-input-group-col {
    display: flex; 
    flex-direction: column; 
    gap: 10px;
}

.jade-help-text {
    color: var(--jade-text-muted); 
    display: block; 
    margin-top: 10px; 
    line-height: 1.4;
    font-size: 12px;
}

.jade-btn-save {
    background: var(--jade-accent); 
    border-color: var(--jade-accent); 
    width: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
    color: #fff;
}

.jade-btn-save:hover {
    background: var(--jade-primary);
    border-color: var(--jade-primary);
    box-shadow: var(--jade-shadow);
}

.jade-action-row {
    display: flex; 
    gap: 10px; 
    margin-top: 15px;
}

/* Rank Custom Styling */
.jade-rank-edit-group {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.jade-color-picker-wrapper {
    display: flex; 
    flex-direction: column; 
    gap: 6px; 
    width: 60px;
}

.jade-color-picker {
    width: 100%; 
    height: 44px; 
    border-radius: 8px; 
    cursor: pointer; 
    background: var(--jade-bg2); 
    border: 1px solid var(--jade-border); 
    padding: 2px;
}

.jade-text-input-wrapper {
    display: flex; 
    flex-direction: column; 
    gap: 6px; 
    flex: 1;
}

/* Fix pentru audio default controls */
.jade-music-current audio {
    width: 100%; 
    height: 40px; 
    margin-bottom: 15px; 
    outline: none;
    border-radius: 30px;
}

/* Responsive fix pentru input grups */
@media (max-width: 480px) {
    .jade-rank-edit-group {
        flex-direction: column;
    }
    .jade-color-picker-wrapper {
        width: 100%;
    }
}




/* ── LOOTBOX CS:GO STYLE ── */
.jade-case-opening {
    position: relative;
    width: 100%;
    height: 160px;
    background: #050208;
    border: 2px solid var(--jade-primary);
    border-radius: 12px;
    overflow: hidden;
    margin: 25px 0;
    /* Umbre laterale pentru efect de adâncime */
    box-shadow:
        inset 80px 0 60px -20px #000,
        inset -80px 0 60px -20px #000,
        0 0 40px rgba(160, 122, 184, 0.2);
}

/* Linia centrală de selecție */
.jade-case-selector {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--jade-gold);
    z-index: 100;
    box-shadow: 0 0 12px 3px var(--jade-gold);
    pointer-events: none;
}

/* Track-ul scrollabil — IMPORTANT: full width, overflow hidden */
.jade-case-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Carouselul propriu-zis — flex, fără width fix în CSS */
.jade-case-carousel {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
    will-change: transform;
    transform: translateX(0px);
    /* width-ul e setat automat de flex children */
}

/* Item individual */
.jade-case-item {
    width: 120px;
    min-width: 120px;
    height: 120px;
    margin: 0 10px;
    flex-shrink: 0;
    background: var(--jade-bg2);
    border: 1px solid var(--jade-border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: default;
}

.jade-case-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 0 0 10px 10px;
    background: #ccc;
}

.jade-case-item .icon {
    font-size: 32px;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 5px rgba(0,0,0,0.5));
    pointer-events: none;
}

.jade-case-item span {
    font-size: 11px;
    text-align: center;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    max-width: 90%;
    white-space: normal;
    line-height: 1.2;
    pointer-events: none;
}

/* Tier colors */
.tier-rare::after      { background: #4b69ff; }
.tier-mythical::after  { background: #8847ff; }
.tier-legendary::after { background: #d32ce6; }
.tier-ancient::after   { background: #eb4b4b; }
.tier-gold::after      { background: #e4ae39; }

/* Animație câștigător */
@keyframes winner-pulse {
    0%   { transform: scale(1);    box-shadow: 0 0 10px var(--jade-gold);  border-color: var(--jade-gold); }
    50%  { transform: scale(1.07); box-shadow: 0 0 35px var(--jade-gold);  border-color: #fff; }
    100% { transform: scale(1);    box-shadow: 0 0 10px var(--jade-gold);  border-color: var(--jade-gold); }
}

.jade-case-item.is-winner {
    animation: winner-pulse 1.5s infinite ease-in-out;
    background: var(--jade-bg3);
    border-width: 2px;
    z-index: 50;
}

@keyframes rewardPop {
    0%   { transform: scale(0.8); opacity: 0; }
    60%  { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1);   opacity: 1; }
}


















/* ── CENTRARE CONȚINUT GENERAL ── */

/* Centrează titlurile și descrierile tab-urilor */
.jade-tab h2, .jade-tab-desc {
    text-align: center;
}

/* Centrează Grid-ul de iteme (Culori, Teme, Efecte, etc) */
.jade-grid {
    justify-content: center; /* Aceasta este linia magică pentru centrarea cardurilor */
    justify-items: center;
}

/* Centrează titlurile de Tier (Starter, Rare, etc) */
.jade-tier-section {
    text-align: center;
}

/* Centrează secțiunile din VIP Manager, Muzică și Rank */
.jade-rank-box, 
.jade-music-buy, 
.jade-music-current, 
.jade-gift-send, 
.jade-gift-received,
.jade-vip-active-box {
    margin-left: auto;
    margin-right: auto;
}

/* Centrează instrucțiunile de la final (Pasul final pentru grad) */
.discord-instructions {
    margin-left: auto;
    margin-right: auto;
    max-width: 600px; /* Previne întinderea excesivă pe ecrane mari */
}

/* Fix specific pentru tab-ul VIP să nu fie lipit de margini */
.jade-grid-vip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Ajustare pentru ecrane mici (Mobil) */
@media (max-width: 768px) {
    .jade-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}












/* ── NAME EFFECTS — ENHANCED v2 ── */

/* Helper: split pe litere individuale via JS */
.name-effect-glow span,
.name-effect-sparkle span,
.name-effect-rainbow span,
.name-effect-fire span,
.name-effect-ice span,
.name-effect-sakura span,
.name-effect-aurora span,
.name-effect-glitch span,
.name-effect-holographic span,
.name-effect-neon span,
.name-effect-crystal span {
  display: inline-block;
}

/* ── GLOW (îmbunătățit — pulsează mai intens) ── */
.name-effect-glow {
  color: var(--jade-accent);
  animation: glowPulse2 2s ease-in-out infinite;
}
@keyframes glowPulse2 {
  0%,100% { text-shadow: 0 0 6px var(--jade-primary), 0 0 18px var(--jade-primary); filter: brightness(1); }
  50%     { text-shadow: 0 0 14px #f0abfc, 0 0 40px var(--jade-primary), 0 0 70px #7e22ce; filter: brightness(1.35); }
}

/* ── SPARKLE (per literă, staggered) ── */
.name-effect-sparkle span {
  color: var(--jade-gold);
  animation: sparkleChar2 1.8s ease-in-out infinite;
}
.name-effect-sparkle span:nth-child(1)  { animation-delay: 0.0s; }
.name-effect-sparkle span:nth-child(2)  { animation-delay: 0.1s; }
.name-effect-sparkle span:nth-child(3)  { animation-delay: 0.2s; }
.name-effect-sparkle span:nth-child(4)  { animation-delay: 0.3s; }
.name-effect-sparkle span:nth-child(5)  { animation-delay: 0.4s; }
.name-effect-sparkle span:nth-child(6)  { animation-delay: 0.5s; }
.name-effect-sparkle span:nth-child(7)  { animation-delay: 0.35s; }
.name-effect-sparkle span:nth-child(8)  { animation-delay: 0.15s; }
.name-effect-sparkle span:nth-child(9)  { animation-delay: 0.45s; }
.name-effect-sparkle span:nth-child(10) { animation-delay: 0.25s; }
@keyframes sparkleChar2 {
  0%,70%,100% { transform: translateY(0) scale(1); text-shadow: none; filter: brightness(1); }
  35%         { transform: translateY(-4px) scale(1.15); text-shadow: 0 0 8px #fde68a, 0 0 20px #fbbf24; filter: brightness(1.5); }
}

/* ── RAINBOW (per literă, val de culoare) ── */
.name-effect-rainbow span {
  animation: rainbowChar 3s linear infinite;
}
.name-effect-rainbow span:nth-child(1)  { animation-delay: 0.00s; }
.name-effect-rainbow span:nth-child(2)  { animation-delay: 0.18s; }
.name-effect-rainbow span:nth-child(3)  { animation-delay: 0.36s; }
.name-effect-rainbow span:nth-child(4)  { animation-delay: 0.54s; }
.name-effect-rainbow span:nth-child(5)  { animation-delay: 0.72s; }
.name-effect-rainbow span:nth-child(6)  { animation-delay: 0.90s; }
.name-effect-rainbow span:nth-child(7)  { animation-delay: 1.08s; }
.name-effect-rainbow span:nth-child(8)  { animation-delay: 1.26s; }
.name-effect-rainbow span:nth-child(9)  { animation-delay: 1.44s; }
.name-effect-rainbow span:nth-child(10) { animation-delay: 1.62s; }
@keyframes rainbowChar {
  0%   { color: #f87171; }
  14%  { color: #fb923c; }
  28%  { color: #fbbf24; }
  42%  { color: #4ade80; }
  57%  { color: #38bdf8; }
  71%  { color: #818cf8; }
  85%  { color: #e879f9; }
  100% { color: #f87171; }
}

/* ── FIRE (flicker per literă, alternating) ── */
.name-effect-fire span {
  animation: fireChar 0.9s ease-in-out infinite alternate;
}
.name-effect-fire span:nth-child(odd)  { animation-duration: 0.75s; }
.name-effect-fire span:nth-child(even) { animation-duration: 1.05s; }
.name-effect-fire span:nth-child(1)  { animation-delay: 0.00s; }
.name-effect-fire span:nth-child(2)  { animation-delay: 0.07s; }
.name-effect-fire span:nth-child(3)  { animation-delay: 0.14s; }
.name-effect-fire span:nth-child(4)  { animation-delay: 0.21s; }
.name-effect-fire span:nth-child(5)  { animation-delay: 0.28s; }
.name-effect-fire span:nth-child(6)  { animation-delay: 0.35s; }
.name-effect-fire span:nth-child(7)  { animation-delay: 0.42s; }
.name-effect-fire span:nth-child(8)  { animation-delay: 0.49s; }
.name-effect-fire span:nth-child(9)  { animation-delay: 0.20s; }
.name-effect-fire span:nth-child(10) { animation-delay: 0.10s; }
@keyframes fireChar {
  0%   { color: #fbbf24; text-shadow: 0 0 6px #fbbf24, 0 2px 14px #f97316; transform: scaleY(1)   translateY(0); }
  100% { color: #f97316; text-shadow: 0 0 12px #ef4444, 0 -2px 22px #f97316; transform: scaleY(1.06) translateY(-2px); }
}

/* ── ICE (shimmer rece per literă) ── */
.name-effect-ice span {
  animation: iceChar 2.2s ease-in-out infinite;
}
.name-effect-ice span:nth-child(odd)  { animation-duration: 2.0s; }
.name-effect-ice span:nth-child(even) { animation-duration: 2.5s; }
.name-effect-ice span:nth-child(1)  { animation-delay: 0.0s; }
.name-effect-ice span:nth-child(2)  { animation-delay: 0.2s; }
.name-effect-ice span:nth-child(3)  { animation-delay: 0.4s; }
.name-effect-ice span:nth-child(4)  { animation-delay: 0.6s; }
.name-effect-ice span:nth-child(5)  { animation-delay: 0.8s; }
.name-effect-ice span:nth-child(6)  { animation-delay: 0.3s; }
.name-effect-ice span:nth-child(7)  { animation-delay: 0.5s; }
.name-effect-ice span:nth-child(8)  { animation-delay: 0.7s; }
.name-effect-ice span:nth-child(9)  { animation-delay: 0.1s; }
.name-effect-ice span:nth-child(10) { animation-delay: 0.9s; }
@keyframes iceChar {
  0%,100% { color: #bae6fd; text-shadow: 0 0 4px #7dd3fc; transform: translateY(0); }
  50%     { color: #ffffff; text-shadow: 0 0 10px #e0f2fe, 0 0 22px #38bdf8; transform: translateY(-2px); }
}

/* ── SAKURA (float + roz pulsant per literă) ── */
.name-effect-sakura span {
  color: var(--jade-accent);
  animation: sakuraChar 3s ease-in-out infinite;
}
.name-effect-sakura span:nth-child(1)  { animation-delay: 0.0s; }
.name-effect-sakura span:nth-child(2)  { animation-delay: 0.3s; }
.name-effect-sakura span:nth-child(3)  { animation-delay: 0.6s; }
.name-effect-sakura span:nth-child(4)  { animation-delay: 0.9s; }
.name-effect-sakura span:nth-child(5)  { animation-delay: 1.2s; }
.name-effect-sakura span:nth-child(6)  { animation-delay: 0.45s; }
.name-effect-sakura span:nth-child(7)  { animation-delay: 0.75s; }
.name-effect-sakura span:nth-child(8)  { animation-delay: 1.05s; }
.name-effect-sakura span:nth-child(9)  { animation-delay: 0.15s; }
.name-effect-sakura span:nth-child(10) { animation-delay: 1.35s; }
@keyframes sakuraChar {
  0%,100% { transform: translateY(0)   rotate(0deg);   text-shadow: 0 0 6px var(--jade-accent); }
  33%     { transform: translateY(-4px) rotate(-2deg); text-shadow: 0 0 14px var(--jade-accent), 0 0 28px #f472b6; }
  66%     { transform: translateY(-2px) rotate(2deg);  text-shadow: 0 0 10px #e879f9; }
}

/* ══════════════════════════════════════════
   EFECTE NOI
══════════════════════════════════════════ */

/* ── AURORA (val de verde/cyan/mov ca aurora boreală) ── */
.name-effect-aurora span {
  animation: auroraChar 4s ease-in-out infinite;
}
.name-effect-aurora span:nth-child(1)  { animation-delay: 0.00s; }
.name-effect-aurora span:nth-child(2)  { animation-delay: 0.25s; }
.name-effect-aurora span:nth-child(3)  { animation-delay: 0.50s; }
.name-effect-aurora span:nth-child(4)  { animation-delay: 0.75s; }
.name-effect-aurora span:nth-child(5)  { animation-delay: 1.00s; }
.name-effect-aurora span:nth-child(6)  { animation-delay: 1.25s; }
.name-effect-aurora span:nth-child(7)  { animation-delay: 1.50s; }
.name-effect-aurora span:nth-child(8)  { animation-delay: 0.37s; }
.name-effect-aurora span:nth-child(9)  { animation-delay: 0.87s; }
.name-effect-aurora span:nth-child(10) { animation-delay: 1.12s; }
@keyframes auroraChar {
  0%   { color: #34d399; text-shadow: 0 0 8px #34d399; }
  25%  { color: #22d3ee; text-shadow: 0 0 12px #22d3ee; }
  50%  { color: #a78bfa; text-shadow: 0 0 16px #a78bfa, 0 0 30px #7c3aed; }
  75%  { color: #22d3ee; text-shadow: 0 0 10px #22d3ee; }
  100% { color: #34d399; text-shadow: 0 0 8px #34d399; }
}

/* ── GLITCH (tremur digital) ── */
.name-effect-glitch {
  position: relative;
  color: #fff;
}
.name-effect-glitch span {
  animation: glitchChar 3s steps(1) infinite;
}
.name-effect-glitch span:nth-child(odd)  { animation-duration: 2.8s; }
.name-effect-glitch span:nth-child(even) { animation-duration: 3.3s; }
.name-effect-glitch span:nth-child(1)  { animation-delay: 0.0s; }
.name-effect-glitch span:nth-child(2)  { animation-delay: 0.4s; }
.name-effect-glitch span:nth-child(3)  { animation-delay: 0.8s; }
.name-effect-glitch span:nth-child(4)  { animation-delay: 1.2s; }
.name-effect-glitch span:nth-child(5)  { animation-delay: 0.6s; }
.name-effect-glitch span:nth-child(6)  { animation-delay: 1.0s; }
.name-effect-glitch span:nth-child(7)  { animation-delay: 0.2s; }
.name-effect-glitch span:nth-child(8)  { animation-delay: 1.4s; }
.name-effect-glitch span:nth-child(9)  { animation-delay: 0.9s; }
.name-effect-glitch span:nth-child(10) { animation-delay: 1.6s; }
@keyframes glitchChar {
  0%,89%,100% { color: #fff;     transform: translate(0,0)      skewX(0deg);   text-shadow: none; }
  90%         { color: #f87171; transform: translate(-2px,1px)  skewX(-5deg);  text-shadow: 2px 0 #38bdf8; }
  93%         { color: #38bdf8; transform: translate(2px,-1px)  skewX(5deg);   text-shadow: -2px 0 #f87171; }
  96%         { color: #4ade80; transform: translate(-1px,2px)  skewX(-3deg);  text-shadow: 1px 0 #a78bfa; }
}

/* ── NEON (flicker de neon colorat) ── */
.name-effect-neon {
  color: #f0abfc;
  animation: neonFlicker 4s ease-in-out infinite;
  text-shadow:
    0 0 4px #f0abfc,
    0 0 12px var(--jade-primary),
    0 0 30px var(--jade-primary);
}
@keyframes neonFlicker {
  0%,18%,20%,54%,56%,100% {
    text-shadow: 0 0 4px #f0abfc, 0 0 14px var(--jade-primary), 0 0 35px var(--jade-primary);
    filter: brightness(1);
  }
  19%,55% {
    text-shadow: none;
    filter: brightness(0.6);
  }
}

/* ── HOLOGRAPHIC (shimmer curcubeu metalic) ── */
.name-effect-holographic span {
  animation: holoChar 3.5s linear infinite;
  font-weight: 900;
}
.name-effect-holographic span:nth-child(1)  { animation-delay: 0.00s; }
.name-effect-holographic span:nth-child(2)  { animation-delay: 0.20s; }
.name-effect-holographic span:nth-child(3)  { animation-delay: 0.40s; }
.name-effect-holographic span:nth-child(4)  { animation-delay: 0.60s; }
.name-effect-holographic span:nth-child(5)  { animation-delay: 0.80s; }
.name-effect-holographic span:nth-child(6)  { animation-delay: 1.00s; }
.name-effect-holographic span:nth-child(7)  { animation-delay: 1.20s; }
.name-effect-holographic span:nth-child(8)  { animation-delay: 0.30s; }
.name-effect-holographic span:nth-child(9)  { animation-delay: 0.70s; }
.name-effect-holographic span:nth-child(10) { animation-delay: 1.10s; }
@keyframes holoChar {
  0%   { color: #f0abfc; text-shadow: 0 0 6px #f0abfc; }
  16%  { color: #818cf8; text-shadow: 0 0 6px #818cf8; }
  33%  { color: #38bdf8; text-shadow: 0 0 6px #38bdf8; }
  50%  { color: #4ade80; text-shadow: 0 0 6px #4ade80; }
  66%  { color: #fbbf24; text-shadow: 0 0 6px #fbbf24; }
  83%  { color: #fb923c; text-shadow: 0 0 6px #fb923c; }
  100% { color: #f0abfc; text-shadow: 0 0 6px #f0abfc; }
}

/* ── CRYSTAL (sclipire albă/albastru rece) ── */
.name-effect-crystal span {
  color: #e0f2fe;
  animation: crystalChar 2.5s ease-in-out infinite;
}
.name-effect-crystal span:nth-child(1)  { animation-delay: 0.0s; }
.name-effect-crystal span:nth-child(2)  { animation-delay: 0.25s; }
.name-effect-crystal span:nth-child(3)  { animation-delay: 0.50s; }
.name-effect-crystal span:nth-child(4)  { animation-delay: 0.75s; }
.name-effect-crystal span:nth-child(5)  { animation-delay: 1.00s; }
.name-effect-crystal span:nth-child(6)  { animation-delay: 0.37s; }
.name-effect-crystal span:nth-child(7)  { animation-delay: 0.62s; }
.name-effect-crystal span:nth-child(8)  { animation-delay: 0.87s; }
.name-effect-crystal span:nth-child(9)  { animation-delay: 0.12s; }
.name-effect-crystal span:nth-child(10) { animation-delay: 1.12s; }
@keyframes crystalChar {
  0%,100% { color: #e0f2fe; text-shadow: 0 0 4px #bae6fd; transform: scale(1)    rotate(0deg); }
  50%     { color: #ffffff; text-shadow: 0 0 12px #ffffff, 0 0 24px #7dd3fc; transform: scale(1.1) rotate(2deg); }
}













/* ── MATRIX ── */
.name-effect-matrix span {
  animation: matrixChar 0.1s steps(1) infinite;
  font-family: monospace;
}
.name-effect-matrix span:nth-child(odd)  { animation-duration: 0.08s; }
.name-effect-matrix span:nth-child(even) { animation-duration: 0.13s; }
.name-effect-matrix span:nth-child(1)  { animation-delay: 0.00s; }
.name-effect-matrix span:nth-child(2)  { animation-delay: 0.02s; }
.name-effect-matrix span:nth-child(3)  { animation-delay: 0.04s; }
.name-effect-matrix span:nth-child(4)  { animation-delay: 0.06s; }
.name-effect-matrix span:nth-child(5)  { animation-delay: 0.08s; }
.name-effect-matrix span:nth-child(6)  { animation-delay: 0.10s; }
.name-effect-matrix span:nth-child(7)  { animation-delay: 0.03s; }
.name-effect-matrix span:nth-child(8)  { animation-delay: 0.07s; }
.name-effect-matrix span:nth-child(9)  { animation-delay: 0.05s; }
.name-effect-matrix span:nth-child(10) { animation-delay: 0.09s; }
@keyframes matrixChar {
  0%  { color: #00ff41; text-shadow: 0 0 8px #00ff41; }
  25% { color: #00cc33; text-shadow: 0 0 4px #00cc33; }
  50% { color: #39ff14; text-shadow: 0 0 12px #39ff14; }
  75% { color: #00ff41; text-shadow: none; }
}

/* ── THUNDER ── */
.name-effect-thunder span {
  animation: thunderChar 2s ease-in-out infinite;
  color: #fff;
}
.name-effect-thunder span:nth-child(odd)  { animation-duration: 1.8s; }
.name-effect-thunder span:nth-child(even) { animation-duration: 2.2s; }
.name-effect-thunder span:nth-child(1)  { animation-delay: 0.0s; }
.name-effect-thunder span:nth-child(2)  { animation-delay: 0.1s; }
.name-effect-thunder span:nth-child(3)  { animation-delay: 0.2s; }
.name-effect-thunder span:nth-child(4)  { animation-delay: 0.3s; }
.name-effect-thunder span:nth-child(5)  { animation-delay: 0.4s; }
.name-effect-thunder span:nth-child(6)  { animation-delay: 0.5s; }
.name-effect-thunder span:nth-child(7)  { animation-delay: 0.15s; }
.name-effect-thunder span:nth-child(8)  { animation-delay: 0.35s; }
.name-effect-thunder span:nth-child(9)  { animation-delay: 0.25s; }
.name-effect-thunder span:nth-child(10) { animation-delay: 0.45s; }
@keyframes thunderChar {
  0%,85%,100% { color: #fff;    text-shadow: none; transform: translateY(0); }
  86%         { color: #fffde7; text-shadow: 0 0 20px #fff176, 0 0 40px #ffee58; transform: translateY(-3px) scale(1.1); }
  90%         { color: #fff9c4; text-shadow: 0 0 30px #ffeb3b, 0 0 60px #fdd835, 0 0 80px #f9a825; transform: translateY(0) scale(1); }
  93%         { color: #fff;    text-shadow: 0 0 10px #fff176; transform: translateY(-1px); }
}