:root {
  --bg: #000;
  --bg-elevated: #121212;
  --bg-modal: #1a1a1a;
  --bg-card: #1e1e1e;
  --bg-input: #2a2a2a;
  --lime: #00ff6a;
  --lime-dark: #00dc5a;
  --text: #fff;
  --muted: #a0a0a0;
  --border: #333;
  --radius: 12px;
  --font: Inter, system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input { font-family: inherit; }
a { color: inherit; }
.hidden, [hidden] { display: none !important; }
.lime { color: var(--lime); }

/* Top bar */
.ea-top-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  background: #0a0a0a;
  border-bottom: 1px solid #1a1a1a;
}
.ea-top-link {
  font-size: 12px;
  color: #ccc;
  text-decoration: none;
  justify-self: start;
}
.ea-profile-btn {
  background: none;
  border: 0;
  color: #ccc;
  cursor: pointer;
  padding: 4px;
  justify-self: end;
}

/* AG Toggle */
.ag-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(0, 255, 106, 0.18);
  border: 2px solid var(--lime);
  border-radius: 999px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(0, 255, 106, 0.4);
  animation: agPulse 2s infinite;
  justify-self: center;
}
.ag-toggle:hover {
  background: rgba(0, 255, 106, 0.28);
}
.ag-toggle.active {
  background: var(--lime);
  color: #000;
  box-shadow: 0 0 30px rgba(0, 255, 106, 0.6);
}
.ag-toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.ag-toggle.active .ag-toggle-dot {
  animation: pulseDot 1.2s infinite;
}
@keyframes agPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(0, 255, 106, 0.4); }
  50% { box-shadow: 0 0 32px rgba(0, 255, 106, 0.75); }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.25); }
}

/* AG Bot overlay */
.ag-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  /* Never block the page — only the status bar / AG toggle receive clicks */
  pointer-events: none;
}
.ag-cursor {
  position: fixed;
  width: 22px;
  height: 22px;
  border: 2px solid var(--lime);
  border-radius: 50%;
  background: rgba(0, 255, 106, 0.25);
  transform: translate(-50%, -50%);
  transition: top 0.4s ease, left 0.4s ease, transform 0.12s;
  z-index: 2002;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 12px rgba(0, 255, 106, 0.6);
}
.ag-cursor.visible { opacity: 1; }
.ag-cursor::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.ag-cursor.clicking { transform: translate(-50%, -50%) scale(0.75); }
.ag-status-bar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 10px;
  width: 56px;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid var(--lime);
  border-right: none;
  border-radius: 12px 0 0 12px;
  backdrop-filter: blur(12px);
  z-index: 2001;
  pointer-events: auto;
}
.ag-status-label,
.ag-status-text,
.ag-status-progress,
.ag-stop-btn {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}
.ag-status-label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--lime);
}
.ag-status-text {
  font-size: 11px;
  color: #eee;
  max-height: 42vh;
  overflow: hidden;
}
.ag-status-progress {
  font-size: 11px;
  font-weight: 700;
  color: #888;
}
.ag-stop-btn {
  padding: 10px 6px;
  background: transparent;
  border: 1px solid #ef4444;
  border-radius: 6px;
  color: #f87171;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
}
.ag-stop-btn:hover { background: rgba(239, 68, 68, 0.12); }
.ag-target-highlight {
  outline: 2px solid var(--lime) !important;
  outline-offset: 3px;
  box-shadow: 0 0 24px rgba(0, 255, 106, 0.45) !important;
}
body.ag-running { user-select: none; }
body.ag-running .site-header,
body.ag-running main,
body.ag-running .ea-top-bar {
  pointer-events: none;
}
body.ag-running #agToggle,
body.ag-running #agStop {
  pointer-events: auto;
  position: relative;
  z-index: 2100;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1a1a1a;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
}
.nav-logo img { height: 28px; width: auto; }
.nav-links { display: flex; gap: 8px; flex: 1; }
.nav-item {
  background: none;
  border: 0;
  color: #eee;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  padding: 8px 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-item .chev { font-size: 10px; opacity: .7; }
.btn-preorder-nav {
  background: var(--lime);
  color: #000;
  border: 0;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .03em;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-preorder-nav:hover { background: #5dff9a; }

/* Buy section */
.buy-section {
  background:
    radial-gradient(ellipse 90% 60% at 40% 20%, rgba(0,255,106,.1), transparent 55%),
    #000;
  padding: 28px clamp(16px, 3vw, 24px) 40px;
}
.buy-layout {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: start;
}
.buy-title {
  margin: 0 0 16px;
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 900;
  letter-spacing: .02em;
}
.media-stage {
  position: relative;
  background: #000 url("images/preorder/comparison-main.jpg") center top / contain no-repeat;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #222;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.media-stage picture {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}
.media-main {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  background: transparent;
}

.gallery-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.gallery-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #333;
  background: #151515;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  flex-shrink: 0;
}
.gallery-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  padding: 4px 0;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-thumb {
  flex: 0 0 108px;
  height: 62px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--lime); }

/* Sidebar */
.buy-sidebar {
  background: transparent;
  padding-top: 8px;
  min-width: 0;
  width: 100%;
}
.sidebar-tags { display: flex; gap: 8px; margin-bottom: 12px; }
.tag {
  background: #2a2a2a;
  color: #ccc;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}
.sidebar-platforms { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.platforms-label { font-size: 13px; color: var(--muted); }
.platform-icons { display: flex; gap: 8px; font-size: 11px; font-weight: 700; color: #ddd; }
.platform-icons span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 0 6px;
}
.sidebar-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  color: #ddd;
}
.clock { color: var(--lime); }
.sidebar-price-label { margin: 0; font-size: 13px; color: var(--muted); }
.sidebar-price {
  margin: 4px 0 16px;
  font-size: 28px;
  font-weight: 800;
}
.btn-preorder-main {
  width: 100%;
  background: var(--lime);
  color: #000;
  border: 0;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .04em;
  padding: 14px 18px;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 10px;
}
.btn-preorder-main:hover { background: #5dff9a; }
.btn-secondary {
  width: 100%;
  background: transparent;
  color: #fff;
  border: 1px solid #555;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  padding: 12px 18px;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 16px;
}
.btn-secondary:hover { border-color: #888; }
.sidebar-legal { font-size: 11px; color: #777; line-height: 1.4; }
.sidebar-ratings { display: flex; gap: 10px; margin-top: 12px; }
.rating-box {
  border: 1px solid #555;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
}
.rating-box.small { font-size: 9px; font-weight: 600; line-height: 1.3; }

/* Edition section */
.edition-section {
  background:
    linear-gradient(180deg, #00ff6a 0%, #00d455 40%, #00b848 100%);
  color: #000;
  padding: 48px 24px;
}
.edition-inner { max-width: 1280px; margin: 0 auto; }
.edition-intro h2 { margin: 0 0 8px; font-size: 32px; font-weight: 900; }
.edition-intro p { max-width: 520px; margin: 0 0 16px; font-size: 15px; }
.btn-outline-dark {
  background: transparent;
  border: 2px solid #000;
  color: #000;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 28px;
}
.edition-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.edition-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.edition-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #111;
}
.edition-card-body { padding: 14px 16px 18px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pill {
  border: 1px solid #bbb;
  border-radius: 999px;
  font-size: 10px;
  padding: 2px 8px;
  font-weight: 600;
}
.edition-card h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.25; }
.edition-card p { margin: 0; font-size: 13px; color: #333; }

/* Features */
.features-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}
.features-section h2 {
  margin: 0 0 28px;
  font-size: 36px;
  font-weight: 900;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
  background: #111;
}
.feature-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 800; letter-spacing: .02em; }
.feature-card p { margin: 0 0 14px; font-size: 14px; color: #bbb; }
.btn-outline-light {
  background: transparent;
  border: 1px solid #888;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
}

/* News / welcome / footer */
.news-section { max-width: 1280px; margin: 0 auto; padding: 24px 24px 56px; }
.news-section h2 { margin: 0 0 20px; font-size: 28px; font-weight: 900; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.news-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  text-decoration: none;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #222;
}
.news-card img { width: 100%; height: 100%; object-fit: cover; min-height: 110px; }
.news-card div { padding: 14px 14px 14px 0; }
.news-date { font-size: 12px; color: var(--muted); }
.news-card h3 { margin: 6px 0 0; font-size: 16px; }

.welcome-section {
  text-align: center;
  padding: 64px 24px;
  background:
    radial-gradient(ellipse at center, rgba(0,255,106,.12), transparent 60%),
    #050505;
}
.welcome-section h2 { margin: 0 0 12px; font-size: 32px; font-weight: 900; letter-spacing: .04em; }
.welcome-section p { max-width: 640px; margin: 0 auto 24px; color: #bbb; }
.welcome-section .btn-preorder-main { max-width: 280px; }

.site-footer {
  border-top: 1px solid #1a1a1a;
  padding: 28px 24px 48px;
  color: #666;
  font-size: 12px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-inner p { margin: 0 0 8px; }

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal {
  width: min(440px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  background: var(--bg-modal);
  border-radius: 16px;
  border: 1px solid #2a2a2a;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.settings-modal { width: min(520px, 100%); }
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px 8px;
}
.modal-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}
.modal-brand img { height: 18px; width: auto; }
.modal-close {
  background: none;
  border: 0;
  color: #ccc;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.modal-back {
  background: none;
  border: 0;
  color: #aaa;
  font-size: 13px;
  cursor: pointer;
  padding: 0 18px 8px;
}
.modal-body { padding: 8px 18px 22px; }
.modal-step h2 {
  margin: 4px 0 8px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .03em;
}
.modal-sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

.edition-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.edition-option {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  background: #222;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 14px;
  color: #fff;
  cursor: pointer;
}
.edition-option strong { display: block; font-size: 14px; margin-bottom: 4px; }
.edition-option span { display: block; font-size: 12px; color: #999; }
.edition-option.selected {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px var(--lime);
}
.edition-option.selected strong { color: var(--lime); }
.opt-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.opt-price { font-weight: 800; font-size: 14px; color: #fff; }
.radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #666;
  display: inline-block;
}
.radio.filled {
  border-color: var(--lime);
  background: radial-gradient(circle at center, var(--lime) 45%, transparent 48%);
}

.btn-modal-primary {
  width: 100%;
  background: var(--lime);
  color: #000;
  border: 0;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .04em;
  padding: 14px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.btn-modal-primary:hover { background: #5dff9a; }

.platform-summary {
  background: #222;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #bbb;
  margin-bottom: 14px;
}
.platform-list { display: flex; flex-direction: column; gap: 10px; }
.platform-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: #222;
  border: 1px solid #333;
  border-radius: 10px;
  color: #fff;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.platform-btn:hover, .platform-btn:focus { border-color: var(--lime); }
.platform-logo-wrap {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
  box-sizing: border-box;
}
.platform-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.platform-name { flex: 1; font-size: 14px; }
.platform-chev { opacity: .6; font-size: 18px; }

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.search-row { display: flex; gap: 8px; margin-bottom: 12px; }
.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #222;
  border: 1px solid var(--lime);
  border-radius: 8px;
  padding: 0 12px;
}
.search-input-wrap input {
  flex: 1;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 12px 0;
  outline: none;
  font-size: 14px;
}
.search-icon { color: #888; }
.btn-search {
  background: #222;
  border: 1px solid var(--lime);
  color: #fff;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
}
.search-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8dffb8;
  font-size: 13px;
  margin-bottom: 12px;
}
.user-result {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #222;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
}
.user-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00ff6a, #0a5);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex-shrink: 0;
}
.user-name { font-weight: 800; }
.user-meta { font-size: 12px; color: #999; }
.user-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.suggest-btn {
  background: #1a1a1a;
  border: 1px solid #333;
  color: #ddd;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
.suggest-btn:hover { border-color: var(--lime); color: var(--lime); }
.fake-hint {
  margin: 0 0 14px;
  font-size: 11px;
  color: #777;
  line-height: 1.4;
}

.gift-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #222;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
}
.gift-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.gift-edition { font-size: 12px; color: #999; }
.gift-price { margin-left: auto; font-weight: 800; }
.saved-label {
  font-size: 11px;
  color: #888;
  letter-spacing: .06em;
  margin: 0 0 10px;
}
.payment-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: #222;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 12px;
  color: #fff;
  cursor: pointer;
  text-align: left;
}
.payment-option.selected { border-color: var(--lime); }
.payment-option strong { display: block; font-size: 14px; }
.pay-sub { display: block; font-size: 12px; color: #999; margin-top: 2px; }
.pay-sub.lime { color: var(--lime); }
.pay-logo {
  width: 52px;
  height: 34px;
  border-radius: 6px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  background: #fff;
  padding: 4px 6px;
  box-sizing: border-box;
}
.totals { font-size: 13px; color: #bbb; margin-bottom: 16px; }
.totals > div { display: flex; justify-content: space-between; margin-bottom: 8px; }
.total-row { color: #fff; font-weight: 800; font-size: 15px; padding-top: 6px; border-top: 1px solid #333; }

/* Apple Pay — official scan code modal */
#stepApplePay {
  text-align: center;
  position: relative;
  margin: -8px -18px -22px;
  padding: 0;
}
.apple-pay-card {
  position: relative;
  background: linear-gradient(180deg, #f5f5f7 0%, #f5f5f7 46%, #ffffff 46%, #ffffff 100%);
  color: #1d1d1f;
  border-radius: 18px;
  padding: 36px 28px 20px;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.apple-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: #e8e8ed;
  color: #6e6e73;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.apple-close:hover { background: #d2d2d7; color: #1d1d1f; }
.apple-scan-btn {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 4px 0 20px;
  cursor: pointer;
  width: min(220px, 70%);
}
.apple-scan-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 50%;
}
.apple-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #1d1d1f;
  letter-spacing: -0.02em;
}
.apple-sub {
  color: #6e6e73;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 auto 28px;
  max-width: 300px;
}
.apple-footer {
  margin-top: auto;
  font-size: 10px;
  color: #86868b;
}
.apple-footer a {
  color: #86868b;
  text-decoration: underline;
}
.apple-wait {
  margin: 0 0 16px;
  font-size: 12px;
  color: #86868b;
  font-weight: 600;
}

/* Receipt */
.receipt {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 22px 18px 18px;
}
.receipt-header {
  text-align: center;
  margin-bottom: 18px;
}
.receipt-header .check-circle {
  margin: 0 auto 12px;
}
.receipt-title {
  margin: 0 0 6px;
  color: var(--lime);
  font-size: 22px;
  font-weight: 900;
}
.receipt-sub {
  margin: 0;
  color: #bbb;
  font-size: 13px;
}
.receipt-body {
  background: #111;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #222;
  font-size: 13px;
  color: #999;
}
.receipt-row:last-child { border-bottom: 0; }
.receipt-row strong {
  color: #fff;
  font-weight: 700;
  text-align: right;
}
.receipt-row.total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #333;
  border-bottom: 0;
  color: #fff;
  font-size: 15px;
}
.receipt-row.total strong { color: var(--lime); font-size: 16px; }

/* When Apple Pay is open, flatten dark modal chrome */
.modal.apple-mode {
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.modal.apple-mode .modal-header,
.modal.apple-mode .modal-back {
  display: none !important;
}
.modal.apple-mode .modal-body {
  padding: 0;
}

.process-wrap { text-align: center; padding: 40px 10px; }
.process-title { color: var(--lime); font-size: 22px; margin: 18px 0 8px; font-weight: 900; }
.process-sub { color: #ccc; margin: 0; }
.check-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--lime);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,255,106,.25);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: inline-block;
}
.spinner.large { width: 48px; height: 48px; border-width: 3px; }

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

/* Settings */
.settings-body { display: flex; flex-direction: column; gap: 20px; }
.settings-label {
  display: block;
  font-size: 11px;
  color: #888;
  letter-spacing: .06em;
  margin-bottom: 8px;
  font-weight: 700;
}
.settings-title { font-weight: 700; }
.settings-hint { font-size: 12px; color: #888; margin: 6px 0 0; }
.settings-input {
  width: 100%;
  background: #222;
  border: 1px solid #333;
  border-radius: 8px;
  color: #ddd;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
}
.settings-input:focus { border-color: var(--lime); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: #2a2a2a;
  border: 0;
  color: #ccc;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.chip.active { background: var(--lime); color: #000; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.toggle {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: #444;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.toggle span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
}
.toggle.on { background: var(--lime); }
.toggle.on span { transform: translateX(20px); }
.hotkey-row { display: flex; gap: 8px; }
.hotkey-display { flex: 1; }
.btn-clear {
  background: #2a2a2a;
  border: 0;
  color: #fff;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .buy-layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 18px;
  }
}
@media (max-width: 980px) {
  .buy-layout { grid-template-columns: 1fr; }
  .buy-sidebar { max-width: 420px; }
  .edition-cards { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .main-nav { gap: 12px; padding: 12px 16px; }
  .modal { width: min(560px, calc(100vw - 24px)); }
}
@media (max-width: 640px) {
  .ea-top-bar { padding: 0 12px; }
  .buy-section { padding: 20px 12px 32px; }
  .buy-title { font-size: clamp(22px, 7vw, 32px); }
  .edition-cards { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 1fr; }
  .edition-section,
  .features-section,
  .news-section { padding-left: 12px; padding-right: 12px; }
  .gallery-thumb { flex: 0 0 88px; height: 52px; }
  .btn-preorder-nav { padding: 10px 12px; font-size: 11px; }
}
