/* ── Arcadia Life Shop — style.css ────────────────────────────────────────── */

:root {
  --bg:        #09050f;
  --bg-card:   #110d1a;
  --bg-card2:  #1a1228;
  --border:    rgba(255,255,255,0.06);
  --border-h:  rgba(255,255,255,0.12);
  --accent:    #7c3aed;
  --accent-h:  #8b5cf6;
  --text:      #e8e0f0;
  --text-muted:#9588a8;
  --text-dim:  #4a3f5c;
  --green:     #3fb950;
  --orange:    #d29922;
  --navbar-h:  60px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2d1f4a; border-radius: 3px; }

/* ── PARTICLES ──────────────────────────────────────────────────────────── */
#particles-js {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

/* ── NAVBAR ─────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: var(--navbar-h);
  background: rgba(9,5,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 28px; gap: 32px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1rem;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.navbar-brand img { height: 40px; width: auto; }
.navbar-brand span { display: none; }
@media (min-width: 600px) { .navbar-brand span { display: block; } }

.navbar-links { display: flex; gap: 4px; }
.navbar-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: .83rem; font-weight: 500;
  padding: 6px 14px; border-radius: 6px;
  transition: all .15s;
}
.navbar-links a:hover,
.navbar-links a.active { color: var(--text); background: rgba(124,58,237,.1); }

.navbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.coin-badge-nav {
  display: flex; align-items: center; gap: 6px;
  background: rgba(124,58,237,.12);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: 20px; padding: 5px 14px;
  font-size: .82rem; font-weight: 700; color: var(--accent-h);
  cursor: pointer; text-decoration: none; transition: background .15s;
}
.coin-badge-nav:hover { background: rgba(124,58,237,.22); }

.nav-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-h); }
.nav-username { font-size: .82rem; font-weight: 600; color: var(--text); }

.btn-login {
  display: flex; align-items: center; gap: 8px;
  background: #1b2838; color: #c6d4df; text-decoration: none;
  border: none; padding: 8px 16px; border-radius: 7px;
  font-size: .8rem; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: background .15s;
}
.btn-login:hover { background: #243447; }
.btn-logout { background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.3); color: var(--accent-h); }
.btn-logout:hover { background: rgba(124,58,237,.25); }

/* ── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  margin-top: var(--navbar-h);
  width: 100%; height: 260px;
  background: linear-gradient(135deg, #1a0a2e 0%, #09050f 100%);
  z-index: 1; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% -10%, rgba(124,58,237,.35) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(124,58,237,.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(124,58,237,.08) 0%, transparent 60%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(9,5,15,.1) 0%, rgba(9,5,15,.7) 70%, rgba(9,5,15,1) 100%);
}
.hero-corner {
  position: absolute; width: 22px; height: 22px; z-index: 3;
}
.hero-tl { top: 18px; left: 28px; border-top: 2px solid rgba(124,58,237,.45); border-left: 2px solid rgba(124,58,237,.45); }
.hero-tr { top: 18px; right: 28px; border-top: 2px solid rgba(124,58,237,.45); border-right: 2px solid rgba(124,58,237,.45); }
.hero-bl { bottom: 18px; left: 28px; border-bottom: 2px solid rgba(124,58,237,.45); border-left: 2px solid rgba(124,58,237,.45); }
.hero-br { bottom: 18px; right: 28px; border-bottom: 2px solid rgba(124,58,237,.45); border-right: 2px solid rgba(124,58,237,.45); }
.hero-inner {
  position: relative; z-index: 2;
  height: 100%; display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 14px; padding: 0 24px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,.12);
  border: 1px solid rgba(124,58,237,.28);
  border-radius: 20px; padding: 5px 16px;
  font-size: .78rem; font-weight: 700; letter-spacing: .5px;
  color: var(--accent-h); text-transform: uppercase;
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 7px var(--green);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900; letter-spacing: 5px;
  text-transform: uppercase; color: var(--text); line-height: 1;
  text-shadow: 0 2px 40px rgba(124,58,237,.4);
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 50%, #c4b5fd 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: .92rem; color: var(--text-muted);
  letter-spacing: 3px; text-transform: uppercase;
}
.hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 4px;
  background: rgba(124,58,237,.18);
  border: 1px solid rgba(124,58,237,.4);
  color: var(--accent-h); border-radius: 8px;
  padding: 11px 26px; text-decoration: none;
  font-size: .88rem; font-weight: 700; letter-spacing: .5px;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.hero-btn:hover {
  background: rgba(124,58,237,.32);
  border-color: rgba(124,58,237,.7);
  box-shadow: 0 0 20px rgba(124,58,237,.2);
}

/* ── PAGE CONTENT ───────────────────────────────────────────────────────── */
.page-content {
  position: relative; z-index: 1;
  max-width: 1300px; margin: 0 auto;
  padding: 20px 24px 48px;
}

/* ── TOOLBAR ────────────────────────────────────────────────────────────── */
.shop-toolbar {
  display: flex; align-items: flex-start;
  gap: 16px; flex-wrap: wrap; margin-bottom: 24px;
}
.cat-tabs { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.cat-tab {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); padding: 8px 18px; border-radius: 20px;
  cursor: pointer; font-family: inherit;
  font-size: .82rem; font-weight: 600; transition: all .15s; white-space: nowrap;
}
.cat-tab:hover { border-color: var(--border-h); color: var(--text); }
.cat-tab.active { background: var(--accent); border-color: var(--accent); color: white; }

.search-wrap { position: relative; flex-shrink: 0; }
.search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 13px; pointer-events: none;
}
.search-input {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); padding: 9px 14px 9px 34px;
  border-radius: 20px; font-family: inherit;
  font-size: .82rem; outline: none; width: 200px; transition: border-color .15s;
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-dim); }

/* ── PRODUCT GRID ───────────────────────────────────────────────────────── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

/* ── PRODUCT CARD ───────────────────────────────────────────────────────── */
.product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.product-card:hover {
  border-color: rgba(124,58,237,.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
}
.product-img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #09050f; display: block;
}
.product-img-placeholder {
  width: 100%; aspect-ratio: 1/1;
  background: linear-gradient(135deg, #110d1a, #09050f);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; color: var(--text-dim);
}
.product-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: .68rem; font-weight: 700; letter-spacing: .3px;
  background: rgba(124,58,237,.15); color: var(--accent-h);
  border: 1px solid rgba(124,58,237,.3); width: fit-content;
}
.product-name { font-size: .9rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.product-desc {
  font-size: .78rem; color: var(--text-muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1;
}
.product-footer {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.stock-badge {
  font-size: .67rem; font-weight: 600;
  padding: 2px 8px; border-radius: 4px; display: inline-block; margin-bottom: 4px;
}
.stock-low { background: rgba(210,153,34,.1); color: var(--orange); }
.stock-out { background: rgba(231,76,60,.08); color: #e74c3c; }
.produit-detail-link {
  font-size: .75rem; color: var(--text-muted); text-decoration: none;
}
.produit-detail-link:hover { color: var(--text); }

.btn-buy {
  background: var(--bg-card2); border: 1px solid var(--border-h);
  color: var(--text); padding: 7px 14px; border-radius: 8px;
  font-family: inherit; font-size: .82rem; font-weight: 700;
  cursor: pointer; transition: all .15s; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.btn-buy:hover { background: var(--accent); border-color: var(--accent); }
.btn-buy:disabled { background: #1c2333; color: #484f58; border-color: var(--border); cursor: not-allowed; }
.btn-buy .coin-price { color: var(--accent-h); font-weight: 800; }
.btn-buy-quick { background: rgba(124,58,237,.12); border-color: rgba(124,58,237,.4); color: #a78bfa; font-size: .75rem; padding: 5px 10px; }
.btn-buy-quick:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-buy:hover .coin-price { color: white; }

/* ── MODAL ──────────────────────────────────────────────────────────────── */
.modal {
  display: none; position: fixed; z-index: 500; inset: 0;
  background: rgba(0,0,0,.75); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal.open { display: flex; }
.modal-box {
  background: #110d1a; border: 1px solid var(--border-h);
  border-radius: 16px; padding: 28px; width: 90%; max-width: 500px; position: relative;
}
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--text-dim); font-size: 22px; cursor: pointer; }
.modal-close:hover { color: var(--text); }
.modal-img { width: 100%; max-height: 220px; object-fit: contain; border-radius: 10px; margin-bottom: 16px; background: var(--bg-card2); }
.modal-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.modal-desc { font-size: .85rem; line-height: 1.7; max-height: 280px; overflow-y: auto; padding-right: 4px; }
.modal-desc::-webkit-scrollbar { width: 3px; }
.modal-desc::-webkit-scrollbar-thumb { background: #2d1f4a; border-radius: 3px; }

.desc-loot {
  display: flex; flex-direction: column; gap: 2px;
  border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden;
}
.desc-loot-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  transition: background .1s;
}
.desc-loot-row:nth-child(even) { background: rgba(255,255,255,.025); }
.desc-loot-row:hover { background: rgba(124,58,237,.08); }
.desc-loot-range {
  flex-shrink: 0; min-width: 52px;
  font-size: .72rem; font-weight: 700; font-family: monospace;
  color: var(--accent-h);
  background: rgba(124,58,237,.12);
  border-radius: 4px; padding: 2px 6px; text-align: center;
}
.desc-loot-name {
  font-size: .83rem; color: var(--text); flex: 1;
}
.btn-add {
  background: var(--accent); color: white; border: none;
  padding: 10px 20px; border-radius: 8px;
  font-size: .83rem; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: background .15s;
}
.btn-add:hover { background: var(--accent-h); }
.btn-add:disabled { background: #2a2a2a; color: #555; cursor: not-allowed; }

/* ── TOAST ──────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 90px; right: 24px; z-index: 600;
  background: var(--bg-card2); border: 1px solid var(--border-h);
  border-radius: 10px; color: var(--text);
  padding: 13px 18px; font-size: .85rem; font-weight: 500;
  transform: translateX(130%); opacity: 0;
  transition: all .3s cubic-bezier(.4,0,.2,1); max-width: 300px;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.success { border-color: rgba(63,185,80,.4); }
.toast.error   { border-color: rgba(231,76,60,.4); }

/* ── CART FAB ───────────────────────────────────────────────────────────── */
.cart-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 400;
  background: var(--accent); color: white;
  border: none; width: 56px; height: 56px; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer;
  box-shadow: 0 4px 20px rgba(124,58,237,.5);
  transition: background .15s, transform .15s;
  display: flex; align-items: center; justify-content: center;
}
.cart-fab:hover { background: var(--accent-h); transform: scale(1.08); }
.cart-fab-count {
  position: absolute; top: -4px; right: -4px;
  background: white; color: var(--accent);
  border-radius: 50%; width: 20px; height: 20px;
  font-size: .68rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ── SIDEBAR PANIER ─────────────────────────────────────────────────────── */
#cartSidebar {
  position: fixed; top: 0; right: -380px; width: 360px;
  height: 100vh; background: var(--bg); border-left: 1px solid var(--border-h);
  transition: right .3s cubic-bezier(.4,0,.2,1);
  z-index: 450; display: flex; flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,.6);
}
#cartSidebar.open { right: 0; }
.cart-header {
  padding: 18px 20px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-header h2 { font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.cart-header button { background: none; border: none; font-size: 22px; color: var(--text-muted); cursor: pointer; }
.cart-header button:hover { color: var(--text); }
.cart-content { flex: 1; overflow-y: auto; padding: 12px 16px; }
.cart-footer { padding: 16px; border-top: 1px solid var(--border); }

.cart-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cart-item img { width: 46px; height: 46px; border-radius: 7px; object-fit: cover; background: var(--bg-card2); flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name  { font-size: .82rem; font-weight: 600; }
.cart-item-price { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.qty-controls { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  background: var(--bg-card2); border: 1px solid var(--border); color: var(--text-muted);
  width: 24px; height: 24px; border-radius: 5px; cursor: pointer;
  font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.qty-btn:hover { border-color: var(--border-h); color: var(--text); }
.qty-val { font-size: .82rem; font-weight: 700; min-width: 18px; text-align: center; }
.del-item { background: none; border: none; color: var(--text-dim); font-size: 14px; cursor: pointer; padding: 4px; transition: color .15s; }
.del-item:hover { color: #e74c3c; }
.cart-empty-msg { color: var(--text-dim); text-align: center; padding: 50px 0; font-size: .85rem; }


.cart-total { font-size: 1.4rem; font-weight: 800; text-align: center; margin: 10px 0 14px; color: var(--text); }
.btn-checkout {
  display: block; width: 100%; background: var(--accent); color: white;
  border: none; padding: 13px; border-radius: 10px;
  font-size: .9rem; font-weight: 800; cursor: pointer;
  font-family: inherit; transition: background .15s, opacity .15s;
}
.btn-checkout:hover { background: var(--accent-h); }
.btn-checkout:disabled { opacity: .5; cursor: not-allowed; background: var(--accent); }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.footer {
  position: relative; z-index: 1;
  text-align: center; padding: 24px; border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: .8rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.footer a { color: var(--text-muted); text-decoration: none; margin: 0 8px; }
.footer a:hover { color: var(--text); }

/* ── PAGE TITLE ─────────────────────────────────────────────────────────── */
.page-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 24px; }

/* ── COMMANDES ──────────────────────────────────────────────────────────── */
.cmd-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 16px; overflow: hidden; }
.cmd-header { padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.cmd-date  { color: var(--text-muted); font-size: .82rem; }
.cmd-badge { background: rgba(63,185,80,.15); color: #3fb950; padding: 3px 10px; border-radius: 10px; font-size: .72rem; font-weight: 700; }
.cmd-desc  { padding: 14px 18px; font-size: .9rem; color: var(--text-muted); }
.cmd-coins { font-weight: 800; color: var(--accent-h); }

/* ── LOADING / SPINNER ──────────────────────────────────────────────────── */
.loading { display: flex; align-items: center; justify-content: center; min-height: 200px; grid-column: 1/-1; }
.spinner {
  border: 2px solid var(--border-h);
  border-top-color: var(--accent);
  border-radius: 50%; width: 28px; height: 28px;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── COOKIE BANNER ──────────────────────────────────────────────────────── */
#cookieBanner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(9,5,15,.97); border-top: 1px solid rgba(124,58,237,.3);
  backdrop-filter: blur(12px); padding: 14px 24px;
  align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: inherit; font-size: 13px; color: #aaa;
}
#cookieBanner button {
  background: none; border: 1px solid #333; color: #666;
  padding: 8px 18px; border-radius: 6px; cursor: pointer;
  font-size: 13px; font-family: inherit;
}
#cookieBanner button.accept {
  background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700;
}

/* ── RECHARGE PAGE ──────────────────────────────────────────────────────── */
.inauguration-banner {
  margin: calc(var(--navbar-h) + 12px) auto 0;
  max-width: 860px; padding: 10px 20px;
  background: linear-gradient(90deg, rgba(255,193,7,.12) 0%, rgba(124,58,237,.12) 100%);
  border: 1px solid rgba(255,193,7,.35);
  border-radius: 10px; text-align: center;
  font-size: .85rem; color: var(--text); line-height: 1.5;
  animation: inaug-pulse 3s ease-in-out infinite;
}
.inauguration-banner strong { color: #ffc107; }
@keyframes inaug-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255,193,7,0); }
  50%       { box-shadow: 0 0 18px rgba(255,193,7,.15); }
}

.pack-inaug-bonus {
  font-size: .75rem; font-weight: 700; color: #ffc107;
  background: rgba(255,193,7,.1); border: 1px solid rgba(255,193,7,.25);
  border-radius: 6px; padding: 4px 10px; text-align: center; margin-bottom: 4px;
}

.recharge-hero { text-align: center; padding: 28px 0 20px; }
.recharge-hero-icon { font-size: 2.4rem; margin-bottom: 8px; filter: drop-shadow(0 0 16px rgba(124,58,237,.5)); }
.recharge-hero h1 { font-size: 1.8rem; font-weight: 800; color: var(--text); margin: 0 0 6px; }
.recharge-hero p  { color: var(--text-muted); font-size: .9rem; }
.balance-display {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; background: rgba(124,58,237,.12);
  border: 1px solid rgba(124,58,237,.3); border-radius: 50px;
  padding: 8px 22px; font-size: 1.2rem; font-weight: 800; color: var(--accent-h);
}
.success-banner {
  background: rgba(63,185,80,.12); border: 1px solid rgba(63,185,80,.3); color: #3fb950;
  border-radius: 10px; padding: 16px 24px; text-align: center;
  font-weight: 600; margin-bottom: 32px; animation: fadeIn .4s ease;
}
@keyframes fadeIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }

.packs-title { font-size: 1.15rem; font-weight: 700; color: var(--text); margin: 0 0 14px; }
.packs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 20px; margin-bottom: 20px;
}
.pack-card {
  background: var(--bg-card); border: 2px solid var(--border); border-radius: 14px;
  padding: 20px 18px 18px; text-align: center; cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s; position: relative; overflow: hidden;
}
.pack-card:hover { transform: translateY(-4px); border-color: rgba(124,58,237,.6); box-shadow: 0 8px 32px rgba(124,58,237,.2); }
.pack-card.popular { border-color: rgba(124,58,237,.7); box-shadow: 0 4px 24px rgba(124,58,237,.15); }
.pack-popular-badge {
  position: absolute; top: 0; right: 0;
  background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 800; padding: 4px 14px;
  border-bottom-left-radius: 10px; text-transform: uppercase; letter-spacing: .06em;
}
.pack-icon { font-size: 2rem; margin-bottom: 8px; }
.pack-coins { font-size: 1.7rem; font-weight: 800; color: var(--accent-h); margin: 0 0 2px; line-height: 1; }
.pack-coins-label { font-size: .75rem; color: var(--text-muted); font-weight: 500; margin-bottom: 8px; }
.pack-bonus {
  display: inline-block; background: rgba(63,185,80,.15); border: 1px solid rgba(63,185,80,.3);
  color: #3fb950; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-bottom: 16px;
}
.pack-price { font-size: 1.2rem; font-weight: 700; color: var(--text); }
.pack-price-sub { font-size: .73rem; color: var(--text-muted); margin-top: 2px; margin-bottom: 12px; }
.pack-btn {
  display: block; width: 100%; background: var(--accent); color: #fff; border: none;
  border-radius: 8px; padding: 11px; font-size: .9rem; font-weight: 700;
  cursor: pointer; transition: background .15s, transform .1s; font-family: inherit;
}
.pack-btn:hover { background: var(--accent-h); transform: scale(1.02); }
.pack-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.pack-promo-bonus {
  font-size: .75rem; font-weight: 700; color: #3fb950;
  background: rgba(63,185,80,.1); border: 1px solid rgba(63,185,80,.25);
  border-radius: 6px; padding: 4px 10px; text-align: center;
}

.recharge-promo-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  max-width: 500px; margin: 0 auto 28px;
}
.recharge-promo-input {
  flex: 1; background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); padding: 9px 14px; border-radius: 8px;
  font-family: monospace; font-size: .9rem; font-weight: 600; letter-spacing: 1px;
  outline: none; transition: border-color .15s;
}
.recharge-promo-input:focus { border-color: var(--accent); }
.recharge-promo-btn {
  background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.35);
  color: var(--accent-h); border-radius: 8px; padding: 9px 18px;
  font-size: .83rem; font-weight: 700; cursor: pointer;
  font-family: inherit; white-space: nowrap; transition: background .15s;
}
.recharge-promo-btn:hover { background: rgba(124,58,237,.28); }
.recharge-promo-msg { width: 100%; font-size: .82rem; font-weight: 600; }
.promo-ok  { color: var(--green); }
.promo-err { color: #e74c3c; }

/* Legal checkboxes */
.legal-accept {
  max-width: 700px; margin: 0 auto 20px; padding: 14px 20px;
  background: rgba(124,58,237,.06); border: 1px solid rgba(124,58,237,.2);
  border-radius: 10px; display: flex; flex-direction: column; gap: 10px;
}
.legal-checkbox { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; color: var(--text-muted); font-size: .86rem; line-height: 1.4; }
.legal-checkbox input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; margin-top: 2px; accent-color: var(--accent); cursor: pointer; }
.legal-checkbox a { color: var(--accent-h); text-decoration: underline; }

/* ── PARRAINAGE ─────────────────────────────────────────────────────────── */
.referral-section { max-width: 900px; margin: 0 auto; }
.referral-desc { color: var(--text-muted); font-size: .85rem; margin-bottom: 14px; }
.referral-desc strong { color: var(--accent-h); }

.referral-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

.referral-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.referral-card--active { border-color: rgba(124,58,237,.35); background: rgba(124,58,237,.06); }
.referral-card-title { font-size: .78rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--text-muted); }

.referral-code-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.referral-code {
  font-family: monospace; font-size: 1.6rem; font-weight: 900;
  letter-spacing: 4px; color: var(--accent-h);
  background: rgba(124,58,237,.1); border: 1px solid rgba(124,58,237,.25);
  border-radius: 8px; padding: 8px 18px;
}
.referral-copy-btn {
  background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.3);
  color: var(--accent-h); border-radius: 8px; padding: 8px 14px;
  font-size: .82rem; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: background .15s;
}
.referral-copy-btn:hover { background: rgba(124,58,237,.28); }

.referral-stats { display: flex; gap: 20px; padding-top: 4px; }
.referral-stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 18px; flex: 1;
}
.referral-stat span { font-size: 1.25rem; font-weight: 800; color: var(--accent-h); }
.referral-stat small { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }

.referral-input-row { display: flex; gap: 8px; }
.referral-input {
  flex: 1; background: var(--bg-card2); border: 1px solid var(--border);
  color: var(--text); padding: 9px 14px; border-radius: 8px;
  font-family: monospace; font-size: .92rem; font-weight: 700; letter-spacing: 2px;
  outline: none; text-transform: uppercase; transition: border-color .15s;
}
.referral-input:focus { border-color: var(--accent); }
.referral-link-btn {
  background: var(--accent); color: white; border: none;
  border-radius: 8px; padding: 9px 18px; font-size: .83rem;
  font-weight: 700; cursor: pointer; font-family: inherit;
  white-space: nowrap; transition: background .15s;
}
.referral-link-btn:hover { background: var(--accent-h); }
.referral-msg { font-size: .82rem; font-weight: 600; min-height: 18px; }
.referral-ok  { color: var(--green); }
.referral-err { color: #e74c3c; }

.filleuls-title { font-size: .78rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--text-muted); margin: 20px 0 10px; }
.filleuls-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.filleul-card {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 14px;
}
.filleul-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-h); }
.filleul-name { font-size: .83rem; font-weight: 600; color: var(--text); }
.tx-parrainage { background: rgba(255,193,7,.15); color: #ffc107; }

/* Transaction history */
.history-table { width: 100%; border-collapse: collapse; margin-bottom: 60px; }
.history-table th { text-align: left; font-size: .75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.history-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.04); font-size: .88rem; vertical-align: middle; }
.tx-credit { color: #3fb950; font-weight: 700; }
.tx-debit  { color: var(--accent); font-weight: 700; }
.tx-type   { font-size: .72rem; font-weight: 600; padding: 2px 9px; border-radius: 10px; text-transform: capitalize; }
.tx-recharge   { background: rgba(63,185,80,.15);  color: #3fb950; }
.tx-achat      { background: rgba(124,58,237,.15); color: var(--accent-h); }
.tx-ajustement { background: rgba(243,156,18,.15); color: #f39c12; }
.histo-time { color: var(--text-muted); font-size: .8rem; }

/* Profile page */
.profile-hero { text-align: center; padding: 48px 0 32px; }
.profile-avatar { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--accent); margin-bottom: 14px; object-fit: cover; }
.profile-name { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.profile-steamid { font-size: .78rem; color: var(--text-muted); }
.profile-balance { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; background: rgba(124,58,237,.12); border: 1px solid rgba(124,58,237,.3); border-radius: 50px; padding: 10px 24px; font-size: 1.2rem; font-weight: 800; color: var(--accent-h); }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; margin-top: 32px; }
.profile-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.profile-card h3 { font-size: .88rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }

/* ── HAMBURGER ──────────────────────────────────────────────────────────── */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-muted); border-radius: 2px;
  transition: all .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: var(--navbar-h); left: 0; right: 0;
  background: rgba(9,5,15,.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border); z-index: 299;
  flex-direction: column; padding: 8px 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 13px 24px; color: var(--text-muted); text-decoration: none;
  font-size: .9rem; font-weight: 500; border-left: 3px solid transparent;
  transition: all .15s;
}
.mobile-menu a:hover, .mobile-menu a.active {
  color: var(--text); background: rgba(124,58,237,.08); border-left-color: var(--accent);
}

/* ── PROMO BANNER ───────────────────────────────────────────────────────── */
.promo-banner {
  background: linear-gradient(90deg, rgba(124,58,237,.18), rgba(168,85,247,.1));
  border-top: 1px solid rgba(124,58,237,.35);
  border-bottom: 1px solid rgba(124,58,237,.35);
  padding: 12px 20px; text-align: center; font-size: .88rem; color: #c084fc;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  position: relative; z-index: 80;
}
.promo-banner-close {
  background: none; border: none; color: rgba(192,132,252,.5); cursor: pointer;
  font-size: 1rem; line-height: 1; padding: 0 4px; flex-shrink: 0; transition: color .15s;
}
.promo-banner-close:hover { color: #c084fc; }

/* ── FEATURED PRODUCT ───────────────────────────────────────────────────── */
.product-card.featured {
  border-color: rgba(234,179,8,.4); box-shadow: 0 4px 20px rgba(234,179,8,.12);
}
.product-card.featured:hover { border-color: rgba(234,179,8,.7); box-shadow: 0 8px 32px rgba(234,179,8,.2); }
.product-featured-badge {
  position: absolute; top: 0; left: 0; right: 0;
  background: linear-gradient(90deg, rgba(234,179,8,.18), rgba(234,179,8,.06));
  color: #eab308; font-size: .72rem; font-weight: 700; padding: 5px 12px;
  letter-spacing: .04em; border-bottom: 1px solid rgba(234,179,8,.2);
}

/* ── PAYMENT SUCCESS MODAL ──────────────────────────────────────────────── */
.payment-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(9,5,15,.88); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 20px;
}
.payment-modal-overlay.open { display: flex; }
.payment-modal-box {
  background: var(--bg-card); border: 1px solid rgba(124,58,237,.4);
  border-radius: 20px; padding: 40px 32px 32px; max-width: 420px; width: 100%;
  text-align: center; position: relative;
  box-shadow: 0 0 60px rgba(124,58,237,.25); animation: modalPop .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(.88) translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.payment-modal-icon {
  font-size: 3.5rem; line-height: 1; display: block; margin-bottom: 16px;
  animation: iconBounce .6s .2s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes iconBounce {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.payment-modal-title {
  font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 8px;
}
.payment-modal-coins {
  font-size: 2rem; font-weight: 900; color: var(--accent-h); margin: 12px 0 4px;
}
.payment-modal-balance {
  font-size: .88rem; color: var(--text-muted); margin-bottom: 28px;
}
.payment-modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.payment-modal-btn {
  background: var(--accent); color: #fff; border: none; border-radius: 10px;
  padding: 12px 28px; font-size: .95rem; font-weight: 700; cursor: pointer;
  transition: background .15s;
}
.payment-modal-btn:hover { background: var(--accent-h); }
.payment-modal-link {
  color: var(--text-muted); font-size: .85rem; text-decoration: none;
  display: inline-flex; align-items: center; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 10px; transition: all .15s;
}
.payment-modal-link:hover { color: var(--text); border-color: var(--border-h); }

/* Responsive */
@media (max-width: 640px) {
  .navbar { padding: 0 14px; gap: 10px; }
  .navbar-links { display: none; }
  .hamburger { display: flex; }
  .hero-inner { padding: 20px 16px; flex-direction: column; align-items: flex-start; }
  .page-content { padding: 16px 12px 80px; }
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(155px,1fr)); gap: 10px; }
  #cartSidebar { width: 100%; right: -100%; }
  #cartSidebar.open { right: 0; }
  .packs-grid { grid-template-columns: 1fr 1fr; }
  .referral-grid { grid-template-columns: 1fr; }
  .payment-modal-coins { font-size: 1.6rem; }
}
