@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --accent:        #3dbbf6;
  --accent-dim:    rgba(61, 187, 246, 0.15);
  --accent-glow:   rgba(61, 187, 246, 0.2);

  --gold:          #ffd700;
  --gold-dim:      rgba(255, 215, 0, 0.12);

  --bg:            #101010;
  --bg-card:       #161616;
  --bg-card-hover: #1c1c1c;
  --bg-input:      #0d0d0d;
  --bg-overlay:    rgba(0, 0, 0, 0.88);

  --border:        rgba(255, 255, 255, 0.06);
  --border-accent: rgba(61, 187, 246, 0.25);

  --text:          #ffffff;
  --text-muted:    rgba(255, 255, 255, 0.55);
  --text-faint:    rgba(255, 255, 255, 0.3);

  --error:         #ff4d6d;
  --success:       #3dbbf6;

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;

  --transition: 0.25s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; }
button { font-family: inherit; cursor: pointer; }
input, button { outline: none; }

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(16, 16, 16, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-logo {
  height: 42px;
  width: auto;
  transition: opacity var(--transition);
}

.logo-link:hover .header-logo {
  opacity: 0.85;
}

.header-brand {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.nav-item {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}

.nav-item:hover,
.nav-item.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

/* Login btn */
.header-actions {
  flex-shrink: 0;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: #000;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.btn-login:hover {
  background: #5dc8f8;
  transform: translateY(-1px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  margin-top: 64px;
  padding: 5rem 2rem 4rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding-top: calc(64px + 4rem);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.rolling-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: rollUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes rollUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-accent {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  font-size: 0.925rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.btn-primary:hover {
  background: #5dc8f8;
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.925rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* === HERO BLOB BUTTONS (Uiverse) === */
.hero-blob-btn {
  cursor: pointer;
  font-size: 0.95rem;
  border-radius: 16px;
  border: none;
  padding: 2px;
  background: radial-gradient(circle 80px at 80% -10%, #ffffff, #181b1b);
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
}

.hero-blob-btn::after {
  content: "";
  position: absolute;
  width: 65%;
  height: 60%;
  border-radius: 120px;
  top: 0;
  right: 0;
  box-shadow: 0 0 20px #ffffff25;
  z-index: -1;
}

/* Blue blob (Coins) */
.hero-blob-btn--blue .blob1 {
  position: absolute;
  width: 70px;
  height: 100%;
  border-radius: 16px;
  bottom: 0;
  left: 0;
  background: radial-gradient(
    circle 60px at 0% 100%,
    #3dbbf6,
    rgba(61, 187, 246, 0.3),
    transparent
  );
  box-shadow: -8px 8px 24px rgba(61, 187, 246, 0.15);
}

/* Gold blob (VIP) */
.hero-blob-btn--gold .blob1--gold {
  position: absolute;
  width: 70px;
  height: 100%;
  border-radius: 16px;
  bottom: 0;
  left: 0;
  background: radial-gradient(
    circle 60px at 0% 100%,
    #ffd700,
    rgba(255, 215, 0, 0.3),
    transparent
  );
  box-shadow: -8px 8px 24px rgba(255, 215, 0, 0.12);
}

.hero-blob-btn .inner {
  padding: 12px 24px;
  border-radius: 14px;
  color: #fff;
  z-index: 3;
  position: relative;
  background: radial-gradient(circle 80px at 80% -50%, #666666, #0f1111);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-blob-btn .inner::before {
  content: "";
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 14px;
  position: absolute;
  background: radial-gradient(
    circle 60px at 0% 100%,
    rgba(61, 187, 246, 0.1),
    rgba(0, 0, 255, 0.05),
    transparent
  );
}

.hero-blob-btn--gold .inner::before {
  background: radial-gradient(
    circle 60px at 0% 100%,
    rgba(255, 215, 0, 0.1),
    rgba(255, 165, 0, 0.05),
    transparent
  );
}

.hero-blob-btn:hover .inner {
  background: radial-gradient(circle 80px at 80% -50%, #888888, #111315);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  max-width: 380px;
  width: 100%;
  animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ============================================================
   SHOP SECTIONS
   ============================================================ */
.shop-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.section-title {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.title-icon {
  height: 38px;
  width: auto;
  object-fit: contain;
  margin-right: 12px;
  filter: drop-shadow(0 0 10px rgba(61, 187, 246, 0.4));
}

.typewriter::after {
  content: '|';
  color: var(--accent);
  animation: blink-caret 0.8s step-end infinite;
  display: inline-block;
  vertical-align: text-bottom;
}

@keyframes blink-caret {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

.section-sub {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

/* Search box */
.section-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  min-width: 260px;
  transition: border-color var(--transition);
}

.section-search:focus-within {
  border-color: var(--border-accent);
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-input {
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.875rem;
  font-family: inherit;
  width: 100%;
}

.search-input::placeholder {
  color: var(--text-muted);
}

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.vip-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.vip-grid .coin-card-outer {
  flex: 0 1 380px;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRODUCT CARD WRAPPER (Coins) — Uiverse style
   ============================================================ */

/* Outer gradient border container */
.coin-card-outer {
  width: 100%;
  border-radius: 10px;
  padding: 1px;
  background: radial-gradient(circle 230px at 0% 0%, #ffffff, #0c0d0d);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Animated dot — désactivé */
.coin-card-outer .dot {
  display: none;
}

@keyframes moveDot {
  0%,
  100% { top: 10%;                    right: 10%; }
  25%  { top: 10%;                    right: calc(100% - 35px); }
  50%  { top: calc(100% - 30px);      right: calc(100% - 35px); }
  75%  { top: calc(100% - 30px);      right: 10%; }
}

/* Inner card */
.coin-card-inner {
  width: 100%;
  border-radius: 9px;
  border: solid 1px #202222;
  background: radial-gradient(circle 280px at 0% 0%, #2a2a2a, #0c0d0d);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 1.5rem 1.25rem 0;
}

/* Texture bg.png turned 90 degrees inside the card */
.coin-card-inner::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%; right: -50%; bottom: -50%;
  background-image: url('../assets/bg.png');
  background-size: cover;
  background-position: center;
  transform: rotate(90deg) scale(1.5);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

/* Light ray effect */
.coin-card-inner .ray {
  width: 220px;
  height: 45px;
  border-radius: 100px;
  position: absolute;
  background-color: #c7c7c7;
  opacity: 0.4;
  box-shadow: 0 0 50px #fff;
  filter: blur(10px);
  transform-origin: 10%;
  top: 0%;
  left: 0;
  transform: rotate(40deg);
  pointer-events: none;
}

/* Decorative lines */
.coin-card-inner .line {
  width: 100%;
  height: 1px;
  position: absolute;
  background-color: #2c2c2c;
}
.coin-card-inner .topl {
  top: 10%;
  background: linear-gradient(90deg, #888888 30%, #1d1f1f 70%);
}
.coin-card-inner .bottoml {
  bottom: 10%;
}
.coin-card-inner .leftl {
  left: 10%;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, #747474 30%, #222424 70%);
}
.coin-card-inner .rightl {
  right: 10%;
  width: 1px;
  height: 100%;
}

/* Coin image on top with light glow */
.coin-card-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.75rem;
  transition: transform var(--transition);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 25px rgba(61, 187, 246, 0.5));
}

.coin-card-outer:hover .coin-card-img {
  transform: scale(1.06);
}

/* Quantity number */
.coin-quantity-text {
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #ffffff;
  line-height: 1;
  position: relative;
  z-index: 1;
}

/* "Coins" label */
.coin-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

/* Card info zone below the animated card */
.coin-card-info {
  width: 100%;
  padding: 1rem 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.product-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.product-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex: 1;
}

/* Add to cart button */
.coin-card-footer {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 0.85rem;
}

/* === BUY BUTTON — fill slide === */
.buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem 1rem;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-radius: 0 0 9px 9px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.35s ease;
}

/* Inner elements */
.buy-btn span,
.buy-btn svg {
  display: inline-flex;
  transition: opacity 0.35s ease;
  position: relative;
  z-index: 1;
  color: #fff;
}

.buy-btn svg {
  stroke: #ffffff;
}

/* Fill layer */
.buy-btn::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 100%;
  background: var(--accent);
  opacity: 0;
  z-index: 0;
  transition: right 0.4s ease, opacity 0.4s ease;
}

.buy-btn:hover {
  color: #000;
}

.buy-btn:hover::before {
  right: 0;
  opacity: 1;
}

.buy-btn:hover svg {
  opacity: 1;
}

/* VIP accent variant */
.buy-btn.vip-buy::before {
  background: var(--accent);
}

.buy-btn.vip-buy:hover {
  color: #000;
}

/* VIP gold (lifetime) variant */
.buy-btn.vip-buy-gold::before {
  background: var(--gold);
}

.buy-btn.vip-buy-gold:hover {
  color: #000;
}

/* Popular badge */
.card-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.75rem;
  background: var(--accent);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10;
}

.card-badge.gold {
  background: var(--gold);
}

/* ============================================================
   VIP CARDS
   ============================================================ */
.vip-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
  .vip-grid { grid-template-columns: 1fr; }
}

/* VIP card top banner */
.vip-card-top {
  background: linear-gradient(135deg, #181818, #111);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 130px;
  position: relative;
  overflow: hidden;
}

.vip-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.vip-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.vip-card.lifetime {
  border-color: rgba(255, 215, 0, 0.2);
  background: linear-gradient(135deg, rgba(22, 22, 16, 1), var(--bg-card));
}

.vip-card.lifetime .vip-card-top {
  background: linear-gradient(135deg, #1a1a10, #141408);
}

.vip-icon-big {
  font-size: 3.5rem;
  line-height: 1;
}

.vip-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.vip-card.lifetime .vip-name {
  color: var(--gold);
}

.vip-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.vip-card.lifetime .vip-price {
  color: var(--gold);
}

.vip-perks {
  list-style: none;
  margin: 0.75rem 0;
}

.vip-perks li {
  padding: 0.45rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vip-perks li:last-child {
  border-bottom: none;
}

.vip-duration-badge {
  display: inline-flex;
  padding: 0.2rem 0.65rem;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 0.5rem;
}

.vip-card.lifetime .vip-duration-badge {
  background: var(--gold-dim);
  border-color: rgba(255, 215, 0, 0.3);
  color: var(--gold);
}

.buy-btn.vip-buy {
  color: var(--accent);
}

.buy-btn.vip-buy:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

.buy-btn.vip-buy-gold {
  color: var(--gold);
}

.buy-btn.vip-buy-gold:hover {
  background: var(--gold-dim);
  color: var(--gold);
}

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.section-divider {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  border-top: 1px solid var(--border);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.footer-logo {
  height: 30px;
  width: auto;
  opacity: 0.85;
}

.footer-brand-name {
  font-size: 1rem;
  font-weight: 700;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
}

.footer-socials {
  display: flex;
  gap: 0.5rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--transition);
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-note {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 1.75rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.modal-body {
  padding: 1.75rem;
  max-height: 75vh;
  overflow-y: auto;
}

/* Order summary */
.order-summary {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.summary-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  padding-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.total-amount {
  color: var(--accent);
}

/* Form */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.required { color: var(--error); }
.optional { color: var(--text-muted); font-weight: 400; }

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  transition: border-color var(--transition);
}

.form-group input:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(61, 187, 246, 0.1);
}

.form-group input::placeholder { color: var(--text-muted); }

.form-group small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.775rem;
  color: var(--text-faint);
}

#card-element {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  transition: border-color var(--transition);
}

#card-errors {
  margin-top: 0.5rem;
  font-size: 0.825rem;
  color: var(--error);
}

/* Pay button */
.pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--accent);
  color: #000;
  font-size: 0.925rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 0.5rem;
}

.pay-btn:hover:not(:disabled) {
  background: #5dc8f8;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.pay-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid #000;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.pay-btn.loading .spinner { display: block; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Modal Large (Inventory & Crates) */
.modal-large {
  max-width: 800px;
}

.loading-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Crates / Inventory Grid */
.crates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.crate-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.crate-item:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.crate-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 15px rgba(0,0,0,0.5));
}

.crate-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.crate-item p {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ============================================================
   NOTIFICATIONS
   ============================================================ */
.notification {
  position: fixed;
  top: 80px;
  right: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 3000;
  max-width: 360px;
  transform: translateX(calc(100% + 2rem));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(12px);
  border: 1px solid transparent;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background: rgba(61, 187, 246, 0.12);
  border-color: rgba(61, 187, 246, 0.3);
  color: var(--accent);
}

.notification.error {
  background: rgba(255, 77, 109, 0.12);
  border-color: rgba(255, 77, 109, 0.3);
  color: var(--error);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ============================================================
   RESPONSIVE — HERO
   ============================================================ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-visual { display: none; }
  .hero-cta { justify-content: center; }
  .hero-desc { margin: 0 auto 2rem; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 1rem; }
  .shop-section { padding: 3rem 1rem; }
  .section-header { flex-direction: column; }
  .section-search { width: 100%; }
  .footer-inner { padding: 2.5rem 1rem; }
  .footer-bottom { padding: 1.25rem 1rem; }
}
/* ============================================================
   ROULETTE — CAISSES
   ============================================================ */
.roulette-container {
  position: relative;
  width: 100%;
  height: 180px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin: 20px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.roulette-center-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent);
  z-index: 10;
  transform: translateX(-50%);
}

.roulette-slider {
  display: flex;
  transition: transform 6s cubic-bezier(0.15, 0, 0.15, 1);
  will-change: transform;
}

.roulette-selector {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  filter: drop-shadow(0 0 8px var(--accent));
}

.roulette-selector-top {
  top: -2px;
  border-top: 18px solid var(--accent);
}

.roulette-selector-bottom {
  bottom: -2px;
  border-bottom: 18px solid var(--accent);
}

.roulette-item {
  flex-shrink: 0;
  width: 130px;
  height: 130px;
  margin: 0 5px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
}

.roulette-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 8px;
}

.roulette-item span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.opening-result {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.opening-result.show {
  opacity: 1;
  transform: translateY(0);
}

