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

:root {
  --bg-top: #150922;
  --bg-bottom: #3c1164;
  --surface: rgba(12, 16, 34, 0.78);
  --surface-soft: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f3f5ff;
  --muted: #c4c9f2;
  --accent: #c084fc;
  --accent-strong: #e9d5ff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

body {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(192, 132, 252, 0.22), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(244, 114, 182, 0.16), transparent 22%),
    linear-gradient(145deg, var(--bg-top), var(--bg-bottom) 55%, #5e1f8b);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.28;
}

.shop-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  background: rgba(10, 14, 28, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    #160d2f url("ima/logoG.jpeg") center/cover;
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.28);
}

.brand-copy {
  display: grid;
}

.brand-copy strong {
  font-size: 1.08rem;
  letter-spacing: 0.03em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.8rem;
}

.shop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(192, 132, 252, 0.45);
}

.shop-page {
  width: min(1220px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 18px;
}

.shop-hero-copy,
.shop-hero-visual,
.shop-auth-panel,
.summary-card,
.power-option {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.shop-hero-copy {
  padding: 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(192, 132, 252, 0.14);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-hero-copy h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  margin-bottom: 14px;
}

.hero-text {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
  max-width: 58ch;
  margin-bottom: 22px;
}

.shop-auth-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(192, 132, 252, 0.08));
}

.session-copy {
  display: grid;
  gap: 6px;
}

.shop-auth-panel h2 {
  font-size: 1.1rem;
}

#auth-status {
  color: var(--muted);
}

#wallet-balance {
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  white-space: nowrap;
}

.shop-hero-visual {
  padding: 22px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.hero-image-link {
  display: block;
  text-decoration: none;
}

.imgAb {
  display: block;
  width: 100%;
  min-height: 280px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.hero-note {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  line-height: 1.6;
}

.hero-note strong {
  display: block;
  color: #fff;
  margin-bottom: 4px;
}

.shop-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.summary-card {
  padding: 18px 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.summary-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.summary-card span {
  color: var(--muted);
  line-height: 1.55;
}

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

.power-option {
  position: relative;
  min-height: 430px;
  padding: 28px 24px 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(192, 132, 252, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(12, 16, 34, 0.86), rgba(44, 18, 74, 0.72));
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.power-option:hover {
  transform: translateY(-6px);
  border-color: rgba(192, 132, 252, 0.58);
  box-shadow: 0 30px 58px rgba(0, 0, 0, 0.34), 0 0 34px rgba(192, 132, 252, 0.14);
}

.power-option::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  opacity: 0.6;
}

.Gel::before { background-color: #22d3ee; }
.Bouclier::before { background-color: #94a3b8; }
.SecondeChance::before { background-color: #34d399; }
.Vision::before { background-color: #fbbf24; }

.power-icon {
  width: 104px;
  height: 104px;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2), transparent 34%),
    rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 3rem;
  color: var(--accent-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 34px rgba(0, 0, 0, 0.24),
    0 0 28px rgba(192, 132, 252, 0.16);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.power-option:hover .power-icon {
  transform: scale(1.06) rotate(-2deg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 22px 42px rgba(0, 0, 0, 0.28),
    0 0 36px rgba(192, 132, 252, 0.24);
}

.power-option strong {
  display: block;
  font-size: 1.55rem;
  margin-bottom: 10px;
  color: #fff;
}

.power-option p {
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.65;
}

.price-line strong {
  color: var(--accent-strong);
}

.cta-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.achat {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  color: #150922;
  background: linear-gradient(135deg, #d8b4fe, #f5e7ff);
  box-shadow: 0 14px 24px rgba(192, 132, 252, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  position: relative;
  overflow: hidden;
}

.achat::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.achat:hover::before {
  left: 100%;
}

.ghost-cta {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.achat:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(192, 132, 252, 0.28);
}

.ghost-cta:hover {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.12);
}

.power-stock {
  margin-top: 14px;
  margin-bottom: 0;
  font-weight: 700;
  color: #fff;
}

@media (max-width: 980px) {
  .shop-hero {
    grid-template-columns: 1fr;
  }

  .shop-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shop-header {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  .shop-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-link {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .shop-page {
    width: calc(100% - 16px);
    padding: 14px 0 26px;
  }

  .shop-hero-copy,
  .shop-hero-visual,
  .shop-auth-panel,
  .summary-card,
  .power-option {
    border-radius: 20px;
  }

  .shop-hero-copy {
    padding: 20px;
  }

  .shop-hero-copy h1 {
    font-size: 2.2rem;
  }

  .hero-text {
    font-size: 0.94rem;
  }

  .shop-auth-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  #wallet-balance {
    white-space: normal;
  }

  .shop-hero-visual {
    padding: 16px;
  }

  .imgAb {
    min-height: 220px;
  }

  .shop-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .power-option {
    padding: 20px 18px;
  }

  .power-option strong {
    font-size: 1.25rem;
  }

  .power-option p {
    font-size: 0.92rem;
  }

  .achat {
    min-height: 46px;
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .brand-copy strong {
    font-size: 0.96rem;
  }

  .brand-copy small {
    font-size: 0.74rem;
  }

  .shop-nav {
    gap: 8px;
  }

  .shop-hero-copy {
    padding: 16px;
  }

  .shop-hero-copy h1 {
    font-size: 1.8rem;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  .imgAb {
    min-height: 180px;
  }

  .summary-card,
  .power-option,
  .shop-auth-panel {
    padding: 14px;
  }

  .power-icon {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    font-size: 2.15rem;
  }

  .power-option strong {
    font-size: 1.1rem;
  }

  .power-option p {
    font-size: 0.88rem;
  }

  .achat {
    min-height: 44px;
    font-size: 0.85rem;
  }
}
