/* Page achat Nox Core — déployer ce dossier sur le site (hors clean Electron). */
:root {
  --gate-bg0: #070a12;
  --gate-bg1: #0d1525;
  --gate-accent: #3b82f6;
  --gate-accent2: #8b5cf6;
  --gate-text: #e8edf7;
  --gate-muted: #8b9cbb;
  --gate-border: rgba(99, 140, 255, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--gate-bg0);
  color: var(--gate-text);
  overflow-x: hidden;
}

.gate-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(59, 130, 246, 0.25), transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 50%, rgba(139, 92, 246, 0.12), transparent 50%),
    linear-gradient(165deg, var(--gate-bg0), var(--gate-bg1));
  z-index: 0;
}

.gate-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 140, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 140, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black, transparent);
  z-index: 0;
  pointer-events: none;
}

.buy-page .gate-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 64px;
}

.buy-page .gate-card {
  width: min(920px, 100%);
  max-width: 100%;
  padding: 32px 28px 24px;
  border-radius: 20px;
  background: rgba(18, 26, 42, 0.72);
  border: 1px solid var(--gate-border);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 80px -24px rgba(0, 0, 0, 0.65),
    0 0 60px -20px rgba(59, 130, 246, 0.35);
  backdrop-filter: blur(16px);
}

.buy-head {
  text-align: center;
  margin-bottom: 28px;
}

.buy-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff 0%, #a5c4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.buy-lead {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--gate-muted);
  line-height: 1.5;
}

.buy-email-row {
  margin-bottom: 24px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.buy-email-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gate-muted);
  margin-bottom: 8px;
}

.buy-email-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(99, 140, 255, 0.25);
  background: rgba(5, 10, 20, 0.65);
  color: #e8eefc;
  font-size: 0.95rem;
  font-family: inherit;
}

.buy-email-input::placeholder {
  color: rgba(232, 238, 252, 0.35);
}

.buy-email-input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(99, 140, 255, 0.12);
}

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

.buy-plan {
  position: relative;
  padding: 20px 18px 18px;
  border-radius: 16px;
  background: rgba(5, 10, 20, 0.55);
  border: 1px solid rgba(99, 140, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.buy-plan--featured {
  border-color: rgba(139, 92, 246, 0.35);
}

.buy-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e9d5ff;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(99, 102, 241, 0.35));
  border: 1px solid rgba(167, 139, 250, 0.4);
}

.buy-plan-code {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gate-accent);
}

.buy-plan-price {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.buy-plan-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--gate-muted);
  line-height: 1.45;
  flex: 1;
}

.btn-pay-crypto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--gate-accent), #6366f1);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.btn-pay-crypto:hover:not(:disabled) {
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.45);
}

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

.btn-pay-crypto .icon-ext {
  flex-shrink: 0;
  opacity: 0.9;
}

.buy-msg {
  min-height: 1.25em;
  margin: 20px 0 0;
  font-size: 0.85rem;
  text-align: center;
}

.buy-foot {
  margin-top: 28px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--gate-muted);
  line-height: 1.6;
}

.buy-foot a {
  color: var(--gate-accent);
  text-decoration: none;
}

.buy-foot a:hover {
  text-decoration: underline;
}
