:root {
  --en-store-accent: #7c3aed;
  --en-store-accent-2: #22d3ee;
  --en-store-success: #22c55e;
  --en-store-bg: #070b14;
  --en-store-panel: rgba(14, 20, 34, .82);
  --en-store-panel-2: rgba(9, 15, 26, .90);
  --en-store-border: rgba(255, 255, 255, .12);
  --en-store-text: rgba(255, 255, 255, .94);
  --en-store-muted: rgba(255, 255, 255, .68);
  --en-store-soft: rgba(255, 255, 255, .07);
}

.en-store-shell,
.en-store-shell * { box-sizing: border-box; }

.en-store-shell {
  color: var(--en-store-text);
  position: relative;
  overflow: hidden;
  padding-bottom: 2rem;
}

.en-store-shell a { text-decoration: none !important; }
.en-store-fullbleed { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

.en-store-hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: grid;
  align-items: center;
  background:
    radial-gradient(900px circle at 20% 12%, rgba(124, 58, 237, .32), transparent 58%),
    radial-gradient(860px circle at 86% 16%, rgba(34, 211, 238, .20), transparent 56%),
    linear-gradient(135deg, rgba(6, 10, 18, .98), rgba(8, 20, 30, .96));
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.en-store-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .64)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 1px, transparent 1px 90px);
  pointer-events: none;
}

.en-store-shell.has-sale .en-store-hero-inner { padding-top: 3.05rem; }

.en-store-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.1rem 0 3.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  gap: 1.3rem;
  align-items: center;
}

.en-store-kicker,
.en-store-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: fit-content;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: .42rem .68rem;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.82);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.en-store-section-eyebrow { margin-bottom: .55rem; font-size: .72rem; color: rgba(255,255,255,.72); }

.en-store-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--en-store-success);
  box-shadow: 0 0 0 0 rgba(34,197,94,.55);
  animation: enStorePulse 1.8s infinite;
}

@keyframes enStorePulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
  70% { box-shadow: 0 0 0 11px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.en-store-title {
  margin: 1rem 0 .72rem;
  max-width: 800px;
  font-size: clamp(2.1rem, 5vw, 4.65rem);
  line-height: .96;
  letter-spacing: -.055em;
  font-weight: 950;
}

.en-store-title span {
  background: linear-gradient(135deg, #fff, rgba(34,211,238,.92), rgba(124,58,237,.92));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.en-store-subtitle,
.en-store-section-sub {
  color: var(--en-store-muted);
  max-width: 78ch;
  line-height: 1.55;
  font-size: 1rem;
  margin: 0;
}

.en-store-hero-actions,
.en-store-balance-row,
.en-store-info-actions { display: flex; flex-wrap: wrap; gap: .72rem; margin-top: 1.25rem; }

.en-store-btn,
.en-store-filter-btn,
.en-store-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(8, 13, 24, .76);
  color: #fff !important;
  font-weight: 900;
  min-height: 42px;
  padding: .72rem .94rem;
  transition: transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
  cursor: pointer;
}

.en-store-btn:hover,
.en-store-filter-btn:hover,
.en-store-buy:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.24); background: rgba(8, 13, 24, .92); box-shadow: 0 16px 38px rgba(0,0,0,.30); }
.en-store-btn.primary,
.en-store-buy.primary,
.en-store-filter-btn.active { background: linear-gradient(135deg, rgba(124,58,237,.94), rgba(34,211,238,.62)); border-color: rgba(255,255,255,.24); }

.en-store-hero-panel,
.en-store-nav-card,
.en-store-info-card,
.en-store-package-card,
.en-store-credit-card,
.en-store-redzone-hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--en-store-border);
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
  box-shadow: 0 18px 56px rgba(0,0,0,.34);
}

.en-store-hero-panel { border-radius: 24px; padding: 1.2rem; }
.en-store-hero-panel::before,
.en-store-nav-card::before,
.en-store-package-card::before,
.en-store-info-card::before,
.en-store-credit-card::before,
.en-store-redzone-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(460px circle at 82% 0%, rgba(34,211,238,.14), transparent 58%);
  pointer-events: none;
}

.en-store-balance-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  padding: 1rem;
}

.en-store-balance-label { color: rgba(255,255,255,.62); font-size: .78rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.en-store-balance-value { margin-top: .22rem; font-size: 2rem; line-height: 1; font-weight: 950; }
.en-store-mini-list { display: grid; gap: .55rem; margin-top: 1rem; }
.en-store-mini-item { display: flex; align-items: center; gap: .65rem; color: rgba(255,255,255,.78); font-weight: 750; font-size: .9rem; }
.en-store-mini-icon { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10); }

.en-store-main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding-top: 2.2rem; }
.en-store-nav-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: -3.1rem; position: relative; z-index: 3; }
.en-store-nav-card { min-height: 150px; padding: 1.05rem; color: #fff !important; border-radius: 16px; transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease; }
.en-store-nav-card:hover,
.en-store-package-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.22); box-shadow: 0 24px 70px rgba(0,0,0,.40); }
.en-store-nav-icon { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10); font-size: 1.25rem; margin-bottom: .86rem; }
.en-store-nav-card h3 { position: relative; z-index: 1; margin: 0 0 .3rem; font-size: .96rem; font-weight: 950; }
.en-store-nav-card p { position: relative; z-index: 1; margin: 0; color: rgba(255,255,255,.68); line-height: 1.38; font-size: .9rem; }

.en-store-section { padding: 2.25rem 0 0; scroll-margin-top: 92px; }
.en-store-redzone-prime { padding-top: 1.35rem; }
.en-store-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.en-store-section-title { margin: 0; font-weight: 950; font-size: clamp(1.55rem, 2.2vw, 2.25rem); letter-spacing: -.035em; }
.en-store-filter-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.en-store-filter-btn { min-height: 36px; padding: .52rem .72rem; font-size: .84rem; }

.en-store-redzone-hero-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); gap: 1.1rem; align-items: stretch; border-radius: 26px; padding: clamp(1rem, 2.2vw, 1.35rem); background: radial-gradient(680px circle at 8% 0%, rgba(124,58,237,.24), transparent 58%), radial-gradient(620px circle at 100% 0%, rgba(34,211,238,.15), transparent 54%), linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.035)); }
.en-store-redzone-copy,
.en-store-redzone-points-inline { position: relative; z-index: 1; }
.en-store-redzone-points,
.en-store-redzone-points-inline { display: grid; gap: .8rem; }
.en-store-redzone-points-inline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.en-store-redzone-points > div,
.en-store-redzone-points-inline > div { border: 1px solid rgba(255,255,255,.11); border-radius: 18px; background: rgba(4,8,16,.38); padding: .9rem; }
.en-store-redzone-points strong,
.en-store-redzone-points-inline strong { display: block; color: #fff; font-weight: 950; margin-bottom: .25rem; }
.en-store-redzone-points span,
.en-store-redzone-points-inline span { display: block; color: rgba(255,255,255,.68); line-height: 1.4; }

.en-store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.en-store-package-card { border-radius: 16px; min-height: 100%; display: flex; flex-direction: column; transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease; }
.en-store-card-media { position: relative; min-height: 142px; overflow: hidden; background: radial-gradient(420px circle at 78% 12%, rgba(34,211,238,.19), transparent 55%), linear-gradient(135deg, rgba(124,58,237,.22), rgba(2,6,23,.50)); }
.en-store-card-media img { width: 100%; height: 170px; display: block; object-fit: cover; filter: saturate(1.04) contrast(1.03) brightness(.86); }
.en-store-card-media-fallback { height: 170px; display: grid; place-items: center; font-size: 2.4rem; color: rgba(255,255,255,.85); }
.en-store-badge-row { position: absolute; inset: .75rem .75rem auto .75rem; display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; z-index: 2; }
.en-store-badge,
.en-store-tag,
.en-store-rarity { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.13); background: rgba(4, 7, 14, .68); color: rgba(255,255,255,.86); font-size: .72rem; font-weight: 900; padding: .32rem .52rem; line-height: 1; }
.en-store-badge.popular { background: linear-gradient(135deg, rgba(124,58,237,.94), rgba(34,211,238,.62)); color: #fff; }
.en-store-card-body { position: relative; z-index: 1; padding: 1rem; display: flex; flex-direction: column; gap: .82rem; flex: 1 1 auto; }
.en-store-card-topline { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.en-store-server-name { color: rgba(255,255,255,.58); font-size: .74rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.en-store-price { font-size: 1rem; font-weight: 950; color: #fff; white-space: nowrap; }
.en-store-card-title { margin: 0; font-size: 1.16rem; font-weight: 950; letter-spacing: -.02em; }
.en-store-card-description { color: rgba(255,255,255,.67); line-height: 1.42; font-size: .92rem; margin: 0; }
.en-store-tags { display: flex; flex-wrap: wrap; gap: .42rem; }
.en-store-rewards { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.en-store-rewards li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: .48rem; align-items: start; color: rgba(255,255,255,.78); font-size: .91rem; line-height: 1.35; }
.en-store-rewards li::before { content: "✓"; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 999px; background: rgba(34,197,94,.14); color: #86efac; font-size: .72rem; font-weight: 950; }
.en-store-card-footer { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding-top: .2rem; }
.en-store-safe-note { color: rgba(255,255,255,.55); font-size: .78rem; line-height: 1.25; }

.en-store-credit-card { border-radius: 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 1rem; align-items: center; padding: 1.2rem; background: radial-gradient(680px circle at 12% 0%, rgba(34,211,238,.16), transparent 58%), linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.035)); }
.en-store-credit-card > * { position: relative; z-index: 1; }
.en-store-credit-actions { display: grid; gap: .7rem; }
.en-store-credit-balance { display: flex; justify-content: space-between; gap: .7rem; align-items: center; border: 1px solid rgba(255,255,255,.11); border-radius: 16px; background: rgba(4,8,16,.38); padding: .85rem; }
.en-store-credit-balance span { color: rgba(255,255,255,.66); font-weight: 800; }
.en-store-credit-balance strong { color: #fff; font-weight: 950; }

.en-store-info-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; }
.en-store-info-card { border-radius: 16px; padding: 1.25rem; }
.en-store-info-card > * { position: relative; z-index: 1; }
.en-store-info-card h3 { margin: 0 0 .55rem; font-weight: 950; }
.en-store-info-card p { margin: 0; color: rgba(255,255,255,.70); line-height: 1.48; }
.en-store-stat-list { display: grid; gap: .6rem; margin-top: .95rem; }
.en-store-stat-line { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .68rem .75rem; border-radius: 14px; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.045); }
.en-store-stat-line span:first-child { color: rgba(255,255,255,.72); font-weight: 800; }
.en-store-stat-line span:last-child { color: #fff; font-weight: 950; }
.en-store-empty { grid-column: 1 / -1; border: 1px dashed rgba(255,255,255,.18); border-radius: 16px; background: rgba(255,255,255,.035); padding: 2rem 1rem; text-align: center; color: rgba(255,255,255,.68); }
.en-store-hidden { display: none !important; }

body.en-store-live-page { background: radial-gradient(1100px circle at 12% 10%, rgba(124, 58, 237, .18), transparent 56%), radial-gradient(900px circle at 86% 12%, rgba(34, 211, 238, .12), transparent 54%), linear-gradient(135deg, #070b14, #09121b 52%, #071013) !important; color: rgba(255,255,255,.92); }
body.en-store-live-page .card { border-color: rgba(255,255,255,.12) !important; background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.035)) !important; border-radius: 18px !important; }
body.en-store-live-page .btn-primary,
body.en-store-live-page button[type="submit"] { border-color: rgba(255,255,255,.22) !important; background: linear-gradient(135deg, rgba(124,58,237,.92), rgba(34,211,238,.62)) !important; color: #fff !important; font-weight: 900 !important; }
body.en-store-live-page .text-muted { color: rgba(255,255,255,.62) !important; }

@media (max-width: 1120px) {
  .en-store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .en-store-nav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1050px) {
  .en-store-redzone-hero-card,
  .en-store-credit-card { grid-template-columns: 1fr; }
  .en-store-redzone-points-inline { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .en-store-hero-inner { grid-template-columns: 1fr; }
  .en-store-hero-panel { order: -1; }
  .en-store-info-grid { grid-template-columns: 1fr; }
  .en-store-section-head { display: block; }
  .en-store-filter-row { margin-top: 1rem; }
}

@media (max-width: 640px) {
  .en-store-hero { min-height: auto; }
  .en-store-hero-inner { padding: 3rem 0 4.1rem; }
  .en-store-nav-grid { grid-template-columns: 1fr; margin-top: -2.4rem; }
  .en-store-grid { grid-template-columns: 1fr; }
  .en-store-card-footer { grid-template-columns: 1fr; }
  .en-store-buy,
  .en-store-btn { width: 100%; }
  .en-store-credit-balance { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .en-store-pulse-dot,
  .en-store-btn,
  .en-store-filter-btn,
  .en-store-buy,
  .en-store-nav-card,
  .en-store-package-card { animation: none !important; transition: none !important; }
}


/* 3.1.7 inline package detail modal */
.en-store-buy { border: 0; cursor: pointer; text-decoration: none; }
.en-store-buy.primary { border-radius: 14px; padding: .72rem .95rem; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; background: linear-gradient(135deg, rgba(124,58,237,.96), rgba(34,211,238,.72)); color: #fff !important; font-weight: 950; box-shadow: 0 14px 32px rgba(34,211,238,.13); }
.en-store-buy.primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.en-store-modal-open { overflow: hidden; }
.en-store-modal[hidden] { display: none !important; }
.en-store-modal { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 1rem; }
.en-store-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(10px); }
.en-store-modal-card { position: relative; width: min(1060px, calc(100vw - 2rem)); max-height: min(820px, calc(100vh - 2rem)); overflow: auto; border: 1px solid rgba(255,255,255,.14); border-radius: 28px; background: radial-gradient(840px circle at 6% 0%, rgba(124,58,237,.26), transparent 56%), radial-gradient(740px circle at 100% 10%, rgba(34,211,238,.18), transparent 58%), linear-gradient(135deg, rgba(16,22,37,.98), rgba(7,13,22,.98)); box-shadow: 0 35px 90px rgba(0,0,0,.62); color: rgba(255,255,255,.88); }
.en-store-modal-close { position: absolute; top: .9rem; right: .9rem; z-index: 3; width: 42px; height: 42px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(3,7,18,.72); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.en-store-modal-layout { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); gap: 0; }
.en-store-modal-media { min-height: 420px; background: radial-gradient(540px circle at 65% 18%, rgba(34,211,238,.20), transparent 56%), linear-gradient(135deg, rgba(124,58,237,.20), rgba(2,6,23,.50)); display: grid; place-items: center; overflow: hidden; }
.en-store-modal-media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; filter: saturate(1.04) contrast(1.04) brightness(.9); }
.en-store-modal-media-fallback { font-size: 5rem; filter: drop-shadow(0 20px 50px rgba(34,211,238,.18)); }
.en-store-modal-content { padding: clamp(1.2rem, 3vw, 2rem); display: flex; flex-direction: column; gap: .72rem; }
.en-store-modal-content h2 { margin: 0; color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); line-height: .98; letter-spacing: -.04em; }
.en-store-modal-price { display: inline-flex; align-self: flex-start; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.075); color: #fff; font-weight: 950; padding: .45rem .75rem; }
.en-store-modal-content p { color: rgba(255,255,255,.72); line-height: 1.5; margin: 0; }
.en-store-modal-content h4 { margin: .4rem 0 0; color: #fff; font-weight: 950; }
.en-store-modal-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: .5rem; }
.en-store-modal-note { font-size: .88rem; color: rgba(255,255,255,.56) !important; }

/* Make any fallback legacy store route less ugly without changing its checkout logic. */
body.en-store-live-page main,
body.en-store-live-page .container { max-width: 1240px !important; }
body.en-store-live-page .nav-tabs,
body.en-store-live-page .nav-pills { border-radius: 18px !important; background: rgba(255,255,255,.055) !important; border: 1px solid rgba(255,255,255,.10) !important; padding: .35rem !important; }
body.en-store-live-page .nav-tabs .nav-link,
body.en-store-live-page .nav-pills .nav-link { border-radius: 14px !important; color: rgba(255,255,255,.72) !important; font-weight: 900 !important; }
body.en-store-live-page .nav-tabs .nav-link.active,
body.en-store-live-page .nav-pills .nav-link.active { color: #fff !important; background: linear-gradient(135deg, rgba(124,58,237,.96), rgba(34,211,238,.66)) !important; }
body.en-store-live-page .package-card,
body.en-store-live-page [class*="package"] .card { overflow: hidden !important; border-radius: 22px !important; }

@media (max-width: 840px) {
  .en-store-modal-layout { grid-template-columns: 1fr; }
  .en-store-modal-media, .en-store-modal-media img { min-height: 240px; max-height: 320px; }
}


/* Lazy secure-checkout panel: only loads the original checkout when the player asks for it. */
.en-store-checkout[hidden] { display: none !important; }
.en-store-checkout { margin: 1rem auto 2rem; width: min(1240px, calc(100% - 2rem)); border: 1px solid rgba(255,255,255,.14); border-radius: 26px; overflow: hidden; background: radial-gradient(740px circle at 0% 0%, rgba(124,58,237,.18), transparent 58%), linear-gradient(135deg, rgba(255,255,255,.065), rgba(255,255,255,.03)); box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.en-store-checkout-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border-bottom: 1px solid rgba(255,255,255,.10); background: rgba(2,6,23,.54); }
.en-store-checkout-topbar strong { display: block; color: #fff; font-weight: 950; }
.en-store-checkout-topbar span { display: block; color: rgba(255,255,255,.62); font-size: .9rem; }
.en-store-checkout iframe { width: 100%; min-height: 760px; border: 0; display: block; background: #07111b; }
@media (max-width: 720px) { .en-store-checkout { width: calc(100% - .75rem); } .en-store-checkout-topbar { align-items: stretch; flex-direction: column; } .en-store-checkout iframe { min-height: 680px; } }

/* 3.1.8 cleaned one-page store polish */
.en-store-nav-card-redzone::before { background: radial-gradient(520px circle at 78% 0%, rgba(34,211,238,.18), transparent 58%), radial-gradient(420px circle at 0% 100%, rgba(124,58,237,.18), transparent 55%); }
.en-store-price { white-space: normal; text-align: right; line-height: 1.18; max-width: 48%; }
.en-store-redzone-learn-card { grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); align-items: center; }
.en-store-redzone-link-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.en-store-redzone-link-card { min-height: 170px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(4,8,16,.42); padding: 1rem; color: #fff !important; display: flex; flex-direction: column; justify-content: space-between; transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease, background .14s ease; }
.en-store-redzone-link-card:hover { transform: translateY(-3px); border-color: rgba(34,211,238,.38); background: rgba(10,18,32,.72); box-shadow: 0 18px 52px rgba(0,0,0,.35); }
.en-store-redzone-link-card span { display: inline-flex; width: fit-content; border-radius: 999px; background: rgba(124,58,237,.22); border: 1px solid rgba(255,255,255,.12); padding: .26rem .5rem; color: rgba(255,255,255,.74); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 950; }
.en-store-redzone-link-card strong { display: block; margin-top: .7rem; color: #fff; font-size: 1.08rem; line-height: 1.12; font-weight: 950; }
.en-store-redzone-link-card p { margin: .45rem 0 0; color: rgba(255,255,255,.66); font-size: .88rem; line-height: 1.38; }
.en-store-modal-price { font-size: .96rem; }
.en-store-card-footer .en-store-buy { min-width: 126px; }

@media (max-width: 1050px) {
  .en-store-redzone-learn-card { grid-template-columns: 1fr; }
  .en-store-redzone-link-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .en-store-price { max-width: none; text-align: left; }
  .en-store-card-topline { align-items: flex-start; flex-direction: column; }
}


/* 3.1.9 refinements */
.en-store-redzone-hero-card {
  grid-template-columns: minmax(0, .92fr) minmax(380px, 1.08fr);
  padding: clamp(1.25rem, 2.8vw, 2rem);
  min-height: 290px;
}
.en-store-redzone-link-card {
  min-height: 178px;
  background:
    radial-gradient(320px circle at 100% 0%, rgba(34,211,238,.12), transparent 55%),
    rgba(4,8,16,.48);
}
.en-store-redzone-link-card span { margin-bottom: .35rem; }
.en-store-redzone-link-card strong { font-size: 1.15rem; }
.en-store-modal-actions .en-store-btn.primary::after { content: ' →'; }
.en-store-card-topline .en-store-price { white-space: nowrap; }
@media (max-width: 980px) {
  .en-store-redzone-hero-card { grid-template-columns: 1fr; }
}

/* 3.2.0 clean details + cart flow */
.en-store-badge.sale {
  background: linear-gradient(135deg, rgba(239,68,68,.95), rgba(245,158,11,.85));
  color: #fff;
  border-color: rgba(255,255,255,.28);
}

.en-store-modal-card {
  width: min(980px, calc(100vw - 2rem));
  max-height: min(760px, calc(100vh - 2rem));
  overflow: hidden;
}

.en-store-modal-layout {
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  max-height: min(760px, calc(100vh - 2rem));
}

.en-store-modal-media {
  min-height: 0;
  height: 100%;
  padding: 1rem;
  align-items: start;
  background: radial-gradient(520px circle at 60% 10%, rgba(34,211,238,.16), transparent 58%), linear-gradient(135deg, rgba(124,58,237,.16), rgba(2,6,23,.58));
}

.en-store-modal-media img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 300px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.10);
}

.en-store-modal-content {
  max-height: min(760px, calc(100vh - 2rem));
  overflow: auto;
  padding-right: clamp(1rem, 3vw, 2rem);
}

.en-store-modal-description-html {
  max-height: 260px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(0,0,0,.18);
  padding: .9rem;
  color: rgba(255,255,255,.76);
  line-height: 1.55;
}

.en-store-modal-description-html * {
  max-width: 100%;
}

.en-store-modal-description-html p,
.en-store-modal-description-html div,
.en-store-modal-description-html li {
  color: rgba(255,255,255,.76);
  line-height: 1.55;
}

.en-store-modal-description-html p { margin: 0 0 .65rem; }
.en-store-modal-description-html ul,
.en-store-modal-description-html ol { margin: .45rem 0 .65rem 1.15rem; padding: 0; }
.en-store-modal-description-html hr { border: 0; border-top: 1px solid rgba(255,255,255,.16); margin: .8rem 0; }
.en-store-modal-description-html strong,
.en-store-modal-description-html b { color: #fff; font-weight: 950; }
.en-store-modal-description-html h1,
.en-store-modal-description-html h2,
.en-store-modal-description-html h3,
.en-store-modal-description-html h4 { color: #fff; margin: .35rem 0 .45rem; line-height: 1.1; }

.en-store-cart[hidden] { display: none !important; }
.en-store-cart {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.en-store-cart-card {
  position: relative;
  width: min(1040px, calc(100vw - 2rem));
  max-height: min(820px, calc(100vh - 2rem));
  overflow: auto;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 28px;
  background:
    radial-gradient(760px circle at 8% 0%, rgba(124,58,237,.24), transparent 58%),
    radial-gradient(720px circle at 100% 10%, rgba(34,211,238,.16), transparent 56%),
    linear-gradient(135deg, rgba(16,22,37,.98), rgba(7,13,22,.98));
  box-shadow: 0 35px 90px rgba(0,0,0,.62);
  color: rgba(255,255,255,.88);
  padding: clamp(1rem, 2.5vw, 1.45rem);
}
.en-store-cart-head { padding-right: 3.5rem; margin-bottom: 1rem; }
.en-store-cart-head h2 { margin: .35rem 0 .35rem; color: #fff; font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -.04em; font-weight: 950; }
.en-store-cart-head p { margin: 0; color: rgba(255,255,255,.68); line-height: 1.45; }
.en-store-cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: 1rem; }
.en-store-cart-panel {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: rgba(4,8,16,.40);
  padding: 1rem;
}
.en-store-cart-panel h3 { margin: 0 0 .75rem; color: #fff; font-weight: 950; }
.en-store-cart-summary { grid-column: 1 / -1; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 1rem; align-items: center; }
.en-store-cart-package-media { height: 118px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); }
.en-store-cart-package-media img { width: 100%; height: 100%; object-fit: cover; }
.en-store-cart-package-label { color: rgba(255,255,255,.58); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 950; }
.en-store-cart-summary h3 { margin: .25rem 0 .55rem; font-size: 1.35rem; color: #fff; }
.en-store-cart-discount { display: inline-flex; margin-top: .55rem; border-radius: 999px; padding: .32rem .55rem; color: #fff; font-weight: 950; background: linear-gradient(135deg, rgba(239,68,68,.95), rgba(245,158,11,.85)); }
.en-store-recipient-toggle { display: inline-grid; grid-template-columns: 1fr 1fr; gap: .35rem; padding: .35rem; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); margin-bottom: .8rem; }
.en-store-recipient-toggle button { border: 0; border-radius: 12px; padding: .58rem .7rem; color: rgba(255,255,255,.72); font-weight: 950; background: transparent; cursor: pointer; }
.en-store-recipient-toggle button.active { color: #fff; background: linear-gradient(135deg, rgba(124,58,237,.94), rgba(34,211,238,.62)); }
.en-store-recipient-card { display: flex; align-items: center; gap: .75rem; border-radius: 18px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.055); padding: .8rem; }
.en-store-recipient-avatar { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(124,58,237,.9), rgba(34,211,238,.55)); color: #fff; font-weight: 950; overflow: hidden; }
.en-store-recipient-avatar img { width: 100%; height: 100%; object-fit: cover; }
.en-store-recipient-card strong { display: block; color: #fff; font-weight: 950; }
.en-store-recipient-card span { display: block; color: rgba(255,255,255,.60); font-size: .88rem; }
.en-store-gift-box { margin-top: .9rem; }
.en-store-gift-box label { display: block; margin-bottom: .35rem; color: #fff; font-weight: 900; }
.en-store-recipient-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
.en-store-recipient-input-row input { width: 100%; min-height: 43px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.25); color: #fff; padding: .6rem .75rem; }
.en-store-gift-box p,
.en-store-cart-warning { margin: .55rem 0 0; color: rgba(255,255,255,.56); font-size: .86rem; line-height: 1.4; }
.en-store-cart-balance { margin-bottom: .7rem; color: rgba(255,255,255,.68); }
.en-store-cart-balance strong { color: #fff; }
.en-store-payment-panel { display: flex; flex-direction: column; }
.en-store-payment-btn { display: block; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; padding: .9rem; margin-bottom: .65rem; background: rgba(255,255,255,.055); color: #fff !important; transition: transform .14s ease, border-color .14s ease, background .14s ease; }
.en-store-payment-btn:hover { transform: translateY(-2px); border-color: rgba(34,211,238,.34); background: rgba(255,255,255,.085); }
.en-store-payment-btn span { display: block; font-weight: 950; }
.en-store-payment-btn small { display: block; margin-top: .25rem; color: rgba(255,255,255,.60); line-height: 1.35; }
.en-store-payment-btn.credits { background: linear-gradient(135deg, rgba(124,58,237,.22), rgba(34,211,238,.08)); }
.en-store-payment-btn.stripe { background: linear-gradient(135deg, rgba(99,102,241,.18), rgba(3,7,18,.40)); }
.en-store-payment-btn.disabled { opacity: .48; cursor: not-allowed; filter: grayscale(.35); }
.en-store-payment-btn.disabled:hover { transform: none; border-color: rgba(255,255,255,.13); }

@media (max-width: 860px) {
  .en-store-modal-layout,
  .en-store-cart-grid,
  .en-store-cart-summary { grid-template-columns: 1fr; }
  .en-store-modal-card,
  .en-store-modal-layout { max-height: calc(100vh - 1rem); }
  .en-store-modal-content { max-height: none; }
  .en-store-modal-media img { max-height: 220px; }
  .en-store-recipient-input-row { grid-template-columns: 1fr; }
}

/* 3.2.1 polish: safer checkout bridge, cleaner modal text, recipient lookup */
.en-store-payment-btn.en-store-payment-loading {
  pointer-events: none;
  opacity: .72;
  filter: saturate(.9);
}
.en-store-payment-btn.en-store-payment-loading span::after {
  content: '…';
}
.en-store-modal-description-html {
  scrollbar-width: thin;
  scrollbar-color: rgba(34,211,238,.42) rgba(255,255,255,.08);
}
.en-store-modal-description-html::-webkit-scrollbar { width: 9px; }
.en-store-modal-description-html::-webkit-scrollbar-track { background: rgba(255,255,255,.06); border-radius: 999px; }
.en-store-modal-description-html::-webkit-scrollbar-thumb { background: rgba(34,211,238,.36); border-radius: 999px; }
.en-store-modal-description-html br + br { display: none; }
.en-store-modal-description-html img { max-width: 100%; height: auto; border-radius: 14px; }
.en-store-modal-media { align-content: start; }
.en-store-cart-warning { display: none; }
.en-store-recipient-card a { color: #fff !important; text-decoration: none !important; }

/* 3.2.3 login-required modal */
.en-store-login-card {
  position: relative;
  width: min(560px, calc(100vw - 2rem));
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 26px;
  background:
    radial-gradient(620px circle at 0% 0%, rgba(124,58,237,.28), transparent 58%),
    radial-gradient(520px circle at 100% 0%, rgba(34,211,238,.16), transparent 55%),
    linear-gradient(135deg, rgba(16,22,37,.98), rgba(7,13,22,.98));
  box-shadow: 0 35px 90px rgba(0,0,0,.62);
  color: rgba(255,255,255,.88);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.en-store-login-card h2 { margin: .45rem 2.5rem .65rem 0; color: #fff; font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.05; letter-spacing: -.04em; }
.en-store-login-card p { margin: 0; color: rgba(255,255,255,.68); line-height: 1.55; }
.en-store-login-card .en-store-modal-actions { margin-top: 1rem; }
.en-store-payment-loading { opacity: .72; pointer-events: none; }


.en-store-sale-banner-wrap {
  width: min(1180px, calc(100% - 2rem));
  margin: .35rem auto 0;
  position: relative;
  z-index: 8;
}

.en-store-sale-banner {
  --en-sale-color: #DC3545;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .72rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--en-sale-color) 58%, rgba(255,255,255,.18));
  background:
    radial-gradient(420px circle at 0% 50%, color-mix(in srgb, var(--en-sale-color) 36%, transparent), transparent 70%),
    linear-gradient(135deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
  box-shadow: 0 12px 34px rgba(0,0,0,.32), 0 0 24px color-mix(in srgb, var(--en-sale-color) 14%, transparent);
  padding: .52rem .66rem;
  overflow: hidden;
}

.en-store-sale-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
  transform: translateX(-100%);
  animation: enStoreSaleSweep 6s ease-in-out infinite;
  pointer-events: none;
}

.en-store-sale-burst {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: .42rem .68rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--en-sale-color), #ff9f1c);
  color: #fff;
  font-weight: 950;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--en-sale-color) 34%, transparent);
}

.en-store-sale-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: .08rem;
}

.en-store-sale-copy strong {
  color: #fff;
  font-weight: 950;
  font-size: .96rem;
  line-height: 1.1;
}

.en-store-sale-copy span {
  color: rgba(255,255,255,.72);
  font-weight: 750;
  line-height: 1.32;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.en-store-sale-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: .42rem .72rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(5, 10, 20, .74);
  color: #fff !important;
  font-weight: 900;
  white-space: nowrap;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}

.en-store-sale-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.28);
  background: rgba(5, 10, 20, .92);
}

@keyframes enStoreSaleSweep {
  0%, 35% { transform: translateX(-120%); opacity: 0; }
  45% { opacity: 1; }
  65%, 100% { transform: translateX(120%); opacity: 0; }
}

@media (max-width: 760px) {
  .en-store-sale-banner { grid-template-columns: 1fr; align-items: start; }
  .en-store-sale-burst, .en-store-sale-cta { width: fit-content; }
}
