/*
 * nx-store.css — NX store and checkout (21/11/2026), Nexus palette of the platform:
 * night blue #0b1118, panels #111a24 / #172331, gold #e9b35d, green #79c8a6.
 * Loaded after nx-payments.css on the store, checkout, PayPal checkout and order pages.
 */
.nx-store, .nx-page { --nx-panel: #111a24; --nx-panel-2: #172331; --nx-gold: #e9b35d; --nx-line: #ffffff14; }
.nx-page { padding-top: 32px; }
.nx-page h1 { font-size: clamp(32px, 4vw, 48px); margin: 0; }
.nx-heading { margin-bottom: 20px; }
.nx-notice { border-left-color: var(--nx-gold); background: #e9b35d12; border-radius: 0 8px 8px 0; font-size: 13px; margin-bottom: 16px; }

/* ---- Steps ---- */
.nx-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 8px 0 24px; counter-reset: none; }
.nx-steps li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--nx-line); border-radius: 8px; background: var(--nx-panel); color: #8494a6; font-size: 12px; }
.nx-steps b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid currentColor; font-size: 12px; }
.nx-steps .is-current { color: #edf2f5; border-color: var(--nx-gold); box-shadow: inset 0 -2px 0 var(--nx-gold); }
.nx-steps .is-current b { background: var(--nx-gold); border-color: var(--nx-gold); color: #1a1206; }
.nx-steps .is-done { color: #79c8a6; }

/* ---- Store grid ---- */
.nx-store-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.nx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 14px; }
.nx-card { position: relative; display: grid; justify-items: center; gap: 6px; padding: 22px 16px 18px; border: 1px solid var(--nx-line); border-radius: 12px; background: linear-gradient(160deg, var(--nx-panel-2), var(--nx-panel)); text-align: center; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.nx-card:hover { transform: translateY(-2px); border-color: #e9b35d55; }
.nx-card input { position: absolute; opacity: 0; pointer-events: none; }
.nx-card:has(input:checked) { border-color: var(--nx-gold); box-shadow: 0 0 0 1px var(--nx-gold), 0 14px 34px #0008; }
.nx-card:has(input:focus-visible) { outline: 2px solid var(--nx-gold); outline-offset: 3px; }
.nx-card.is-enough { border-color: #79c8a6; }
.nx-card-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 10px; background: var(--nx-gold); color: #1a1206; font: 700 10px/1.4 DM, Arial, sans-serif; font-style: normal; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.nx-card-coin { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid #e9b35d66; color: var(--nx-gold); font: 22px var(--heading, Barlow); box-shadow: inset 0 0 18px #e9b35d18; }
.nx-card:has(input:checked) .nx-card-coin { animation: nx-spin 1.2s ease-out; }
.nx-card-amount { font: 30px/1.1 var(--heading, Barlow); color: #edf2f5; }
.nx-card-amount small { font-size: 16px; color: var(--nx-gold); }
.nx-card-name { color: #8494a6; font-size: 12px; }
.nx-card-price { margin-top: 6px; font: 22px var(--heading, Barlow); color: var(--nx-gold); }
.nx-card-price small { font-size: 11px; }
.nx-card-rate { font-size: 11px; color: #8494a6; }
.nx-reference { margin-top: 18px; font-size: 12px; color: #8494a6; }
@keyframes nx-spin { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }

/* ---- Checkout panel ---- */
.nx-checkout { position: sticky; top: calc(var(--top, 76px) + 16px); padding: 24px; border: 1px solid #ffffff1a; border-radius: 12px; background: linear-gradient(160deg, var(--nx-panel-2), var(--nx-panel)); box-shadow: 0 20px 50px #0008; text-align: center; }
.nx-checkout h2 { margin: 6px 0 2px; font: 36px var(--heading, Barlow); }
.nx-checkout-name { margin: 0; color: #8494a6; font-size: 13px; }
.nx-checkout dl { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0; padding: 14px 0; border-top: 1px solid var(--nx-line); border-bottom: 1px solid var(--nx-line); }
.nx-checkout dt { color: #8494a6; }
.nx-checkout dd { margin: 0; font-size: 26px; }
.nx-checkout .nx-consent { margin: 4px 0 14px; font-size: 12px; }
.nx-checkout .pl-button { width: 100%; justify-content: center; margin-top: 8px; }
.nx-checkout .nx-footnote { margin-top: 14px; font-size: 11px; text-align: left; }
.nx-checkout.is-bump { animation: nx-bump .35s ease-out; }
@keyframes nx-bump { 40% { transform: scale(1.015); box-shadow: 0 0 0 1px #e9b35d66, 0 20px 50px #0008; } }

/* ---- Checkout / order pages (structure unchanged, new palette) ---- */
.nx-summary, .nx-payment-form { border-radius: 12px; border-color: #ffffff1a; background: linear-gradient(160deg, var(--nx-panel-2), var(--nx-panel)); }
.nx-checkout-grid { margin-top: 0; }
.nx-success { color: #79c8a6; font-weight: 600; }

@media (max-width: 960px) {
  .nx-store-grid { grid-template-columns: 1fr; }
  .nx-checkout { position: static; }
}
@media (max-width: 560px) {
  .nx-steps span { display: none; }
  .nx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nx-card { padding: 18px 10px 14px; }
  .nx-card-amount { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .nx-card, .nx-checkout, .nx-card-coin { animation: none !important; transition: none !important; } }
