* { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: sans-serif; background: #1a1a2e; color: #eee; }

header { position: relative; }

.banniere { width: 100%; max-height: 300px; object-fit: cover; display: block; }

nav {
  background: #0f0f1a;
  padding: 0.75rem 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: flex-end;
}

nav a { color: #aaa; text-decoration: none; font-size: 0.95rem; }
nav a:hover { color: #fff; }

.btn-login {
  background: #e94560;
  color: white !important;
  padding: 0.4rem 1rem;
  border-radius: 6px;
}

main { max-width: 1100px; margin: 2rem auto; padding: 0 1rem; }

section {
  background: #16213e;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

h2 { font-size: 1.2rem; margin-bottom: 1rem; color: #e94560; }
p { line-height: 1.6; margin-bottom: 0.75rem; }
.placeholder { color: #666; font-style: italic; }

.rejoin-steps { display: flex; flex-direction: column; gap: 1rem; }
.step { display: flex; align-items: flex-start; gap: 1rem; }

.num {
  background: #e94560;
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

code { background: #0f3460; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.9rem; }

.discord-section { text-align: center; }

.btn-discord {
  display: inline-block;
  margin-top: 1rem;
  background: #5865f2;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
}

.btn-discord:hover { background: #4752c4; }

.stats { display: flex; gap: 1rem; flex-wrap: wrap; }

.stat {
  background: #0f3460;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.stat span { font-size: 2rem; font-weight: bold; color: #e94560; display: block; }
.stat label { font-size: 0.85rem; color: #aaa; }

/* LOGIN */
.login-box { max-width: 400px; margin: 2rem auto; }
.login-box h2 { text-align: center; }

.login-box label { display: block; margin-bottom: 0.3rem; font-size: 0.9rem; color: #aaa; }

.login-box input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  background: #0f3460;
  border: 1px solid #333;
  border-radius: 6px;
  color: #eee;
  font-size: 1rem;
}

.login-box input:focus { outline: none; border-color: #e94560; }

.login-box button {
  width: 100%;
  padding: 0.75rem;
  background: #e94560;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.login-box button:hover { background: #c73652; }

.erreur {
  background: rgba(233,69,96,0.1);
  border: 1px solid #e94560;
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  color: #e94560;
  text-align: center;
}

/* SHOP TOPBAR */
.shop-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #16213e;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.solde-box {
  background: #0f3460;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.95rem;
}

.solde-box strong { color: #f9ca24; font-size: 1.1rem; }

/* FILTRES */
.filtres {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filtre {
  background: #16213e;
  color: #aaa;
  border: 1px solid #333;
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.filtre:hover { border-color: #e94560; color: #eee; }
.filtre.actif { background: #e94560; color: white; border-color: #e94560; }

/* GRILLE SHOP */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

.shop-card {
  background: #16213e;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #1e2d50;
  transition: transform 0.2s, box-shadow 0.2s;
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* IMAGE UNIFORME */
.shop-img-wrap {
  width: 100%;
  height: 280px;
  background: #0f3460;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-img-empty {
  font-size: 3.5rem;
}

/* CONTENU CARTE */
.shop-body {
  padding: 0.85rem 1rem 0.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shop-cat {
  font-size: 0.68rem;
  color: #e94560;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.shop-nom {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.shop-desc {
  font-size: 0.8rem;
  color: #888;
  flex: 1;
  line-height: 1.4;
}

/* FOOTER CARTE */
.shop-footer {
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #1e2d50;
  background: #12192e;
}

.shop-prix {
  font-weight: bold;
  color: #f9ca24;
  font-size: 1rem;
}

.btn-acheter {
  background: #00b894;
  color: white;
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-acheter:hover { background: #00a381; }

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal.hidden { display: none; }

.modal-box {
  background: #16213e;
  border-radius: 12px;
  padding: 2rem;
  max-width: 380px;
  width: 90%;
  text-align: center;
  border: 1px solid #e94560;
}

.modal-box h3 { margin-bottom: 1rem; color: #e94560; font-size: 1.1rem; }
.modal-box p { margin-bottom: 1.5rem; color: #ccc; font-size: 0.95rem; }

.modal-btns { display: flex; gap: 1rem; justify-content: center; }

.btn-confirmer {
  background: #00b894;
  color: white;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
}

.btn-annuler {
  background: #333;
  color: #aaa;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  z-index: 200;
  font-weight: 600;
}

.toast.hidden { display: none; }
.toast-ok { background: #00b894; color: white; }
.toast-err { background: #e94560; color: white; }

/* FOOTER */
footer { text-align: center; padding: 2rem; color: #555; font-size: 0.85rem; }

/* MOBILE */
@media (max-width: 600px) {
  .banniere { max-height: 150px; }
  nav { gap: 0.8rem; font-size: 0.82rem; }
  .stat span { font-size: 1.5rem; }
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .shop-img-wrap { height: 200px; }
}

/* BANQUE */
.banque-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.banque-card {
  background: #0f3460;
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.banque-icon { font-size: 2rem; }

.banque-card label { font-size: 0.8rem; color: #aaa; }

.banque-montant { font-size: 1.1rem; font-weight: bold; color: #f9ca24; }
.banque-montant.bscum { color: #00b894; }

/* TRANSACTIONS */
.transactions { display: flex; flex-direction: column; gap: 0.5rem; }

.tx-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f3460;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border-left: 3px solid #333;
}

.tx-plus { border-left-color: #00b894; }
.tx-moins { border-left-color: #e94560; }

.tx-detail { display: flex; flex-direction: column; gap: 0.2rem; }
.tx-type { font-size: 0.75rem; color: #aaa; text-transform: uppercase; }
.tx-desc { font-size: 0.9rem; }

.tx-right { text-align: right; display: flex; flex-direction: column; gap: 0.2rem; }
.tx-montant { font-weight: bold; font-size: 0.95rem; }
.tx-plus .tx-montant { color: #00b894; }
.tx-moins .tx-montant { color: #e94560; }
.tx-date { font-size: 0.75rem; color: #666; }

/* VIREMENT */
.solde-info { margin-bottom: 1.5rem; font-size: 1rem; }
.solde-info strong { color: #00b894; }

.virement-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
}

.virement-form label { font-size: 0.9rem; color: #aaa; }

.virement-form select,
.virement-form input {
  width: 100%;
  padding: 0.75rem;
  background: #0f3460;
  border: 1px solid #333;
  border-radius: 6px;
  color: #eee;
  font-size: 1rem;
}

.virement-form select:focus,
.virement-form input:focus { outline: none; border-color: #00b894; }

.virement-form button {
  padding: 0.75rem;
  background: #00b894;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
}

.virement-form button:hover { background: #00a381; }

.btn-virement {
  display: inline-block;
  margin-top: 1rem;
  background: #00b894;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.btn-virement:hover { background: #00a381; }

/* CASINO */
.casino-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.jackpot-box {
  background: linear-gradient(135deg, #f9ca24, #f0932b);
  color: #1a1a2e;
  padding: 0.75rem 1.5rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1.1rem;
}

.casino-mise-section { margin-bottom: 1.5rem; }

.mise-rapide {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.mise-rapide button {
  background: #0f3460;
  color: #eee;
  border: 1px solid #333;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.mise-rapide button:hover { background: #e94560; border-color: #e94560; }

#mise {
  width: 200px;
  padding: 0.6rem;
  background: #0f3460;
  border: 1px solid #333;
  border-radius: 6px;
  color: #eee;
  font-size: 1rem;
}

.casino-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.casino-card {
  background: #16213e;
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.slots-affichage {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  background: #0f3460;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  width: 100%;
}

.slots-affichage span { font-size: 2.5rem; }

.pof-affichage, .roulette-affichage {
  font-size: 3.5rem;
  background: #0f3460;
  border-radius: 10px;
  padding: 1rem 2rem;
  width: 100%;
}

.casino-resultat {
  font-size: 0.9rem;
  color: #aaa;
  min-height: 1.2rem;
}

.btn-jouer {
  background: #e94560;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-jouer:hover { filter: brightness(1.15); }
.btn-pile { background: #f9ca24; color: #1a1a2e; }
.btn-face { background: #636e72; }
.btn-rouge { background: #e74c3c; }
.btn-noir { background: #2d3436; border: 1px solid #555; }
.btn-vert { background: #00b894; }

.pof-btns, .roulette-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* SURPRISE BOX */
.sbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}

.sbox-card {
  background: #16213e;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #1e2d50;
  transition: transform 0.2s, box-shadow 0.2s;
}

.sbox-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.sbox-epuisee { opacity: 0.5; }

.sbox-img-wrap {
  width: 100%;
  height: 180px;
  background: #0f3460;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sbox-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.sbox-img-empty { font-size: 4rem; }

.sbox-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sbox-body h3 { font-size: 1rem; font-weight: 600; }

.sbox-desc { font-size: 0.82rem; color: #888; }

.sbox-limite { font-size: 0.78rem; color: #aaa; }

.sbox-progress {
  background: #0f3460;
  border-radius: 4px;
  height: 6px;
  margin-top: 0.3rem;
  overflow: hidden;
}

.sbox-progress-bar {
  background: #e94560;
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s;
}

.sbox-footer {
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #1e2d50;
  background: #12192e;
}

.btn-sbox {
  background: linear-gradient(135deg, #f9ca24, #f0932b);
  color: #1a1a2e;
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-sbox:hover { filter: brightness(1.1); }

.btn-sbox-epuisee {
  background: #333;
  color: #666;
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: not-allowed;
}

.sbox-modal-box { max-width: 350px; }

.sbox-result-emoji { font-size: 4rem; margin-bottom: 0.5rem; }

.sbox-new-solde { color: #f9ca24; font-size: 0.9rem; margin-bottom: 1rem; }
