@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&family=Unbounded:wght@500;700;900&display=swap');

:root { 
  --bg: #030305; --surface: #0a0a0f; --ink: #ffffff; --muted: #8b8b99; 
  --pink: #ff2a8a; --cyan: #00f0ff; --gold: #ffd600; --lime: #ccff00; 
  --border: rgba(255, 255, 255, 0.06); --border-hover: rgba(255, 255, 255, 0.15); 
  --glass: rgba(10, 10, 15, 0.7);
  --font-main: 'Manrope', sans-serif; --font-display: 'Unbounded', sans-serif; 
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-main); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: url('https://www.rockstargames.com/VI/_next/static/media/Jason_Lucia_Rooftop_With_Logos_landscape.04l3xybfa4~6m.jpg?akim=1&imdensity=1&imwidth=3840') center/cover no-repeat; filter: blur(40px) brightness(0.15) saturate(1.5); transform: scale(1.1); animation: subtlePulse 20s ease-in-out infinite alternate; }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 0%, rgba(255, 42, 138, 0.12), transparent 60%), linear-gradient(180deg, transparent 0%, #030305 80%); }

button, input { font-family: inherit; border: none; outline: none; }
button { cursor: pointer; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
a { text-decoration: none; color: inherit; }
.container { width: min(1400px, calc(100% - 64px)); margin: 0 auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 48px; }
.eyebrow { display: inline-block; font-family: var(--font-main); font-size: 12px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; }
.section-lead { color: var(--muted); font-size: 18px; margin-bottom: 64px; max-width: 600px; }

.top-wrapper { position: sticky; top: 0; z-index: 1000; display: flex; flex-direction: column; width: 100%; transition: all 0.4s ease; }
.drop-feed { width: 100%; background: rgba(10, 10, 15, 0.95); border-bottom: 1px solid rgba(255, 255, 255, 0.05); overflow: hidden; position: relative; box-shadow: 0 4px 20px rgba(0,0,0,0.5); display: flex; align-items: center; height: 40px; }
.drop-feed::before, .drop-feed::after { content: ''; position: absolute; top: 0; bottom: 0; width: 150px; z-index: 2; pointer-events: none; }
.drop-feed::before { left: 0; background: linear-gradient(90deg, var(--bg) 0%, transparent 100%); }
.drop-feed::after { right: 0; background: linear-gradient(-90deg, var(--bg) 0%, transparent 100%); }
.drop-feed__track { display: flex; align-items: center; gap: 40px; white-space: nowrap; width: max-content; animation: ticker 35s linear infinite; padding-left: 20px; }
.drop-item { color: #a0a0b0; font-family: var(--font-main); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; letter-spacing: 0.02em; }
.drop-item b { color: var(--gold); font-weight: 800; text-shadow: 0 0 10px rgba(255, 214, 0, 0.4); }
.drop-item em { color: var(--lime); font-style: normal; font-weight: 800; text-shadow: 0 0 10px rgba(204, 255, 0, 0.4); }
.drop-item::after { content: '//'; color: var(--pink); font-family: var(--font-display); font-weight: 900; margin-left: 40px; opacity: 0.5; }

.site-header { width: 100%; max-width: 1400px; margin: 24px auto 0; background: var(--glass); backdrop-filter: blur(24px); border: 1px solid var(--border); border-radius: 24px; padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05); }
.brand { font-family: var(--font-display); font-size: 24px; font-weight: 900; letter-spacing: -0.05em; }
.brand span { color: var(--pink); text-shadow: 0 0 20px rgba(255,42,138,0.4); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.language-switch { display: flex; gap: 4px; background: rgba(255,255,255,0.03); padding: 4px; border-radius: 100px; border: 1px solid var(--border); }
.language-switch button { background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; padding: 6px 14px; border-radius: 100px; transition: 0.3s; }
.language-switch button.is-active { background: var(--ink); color: var(--bg); }
.account-balance { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--lime); text-shadow: 0 0 15px rgba(204,255,0,0.3); }
.account-email { font-size: 13px; font-weight: 600; color: var(--muted); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-id { font-family: var(--font-display); font-size: 11px; color: var(--gold); background: rgba(255, 214, 0, 0.1); padding: 6px 12px; border-radius: 100px; border: 1px solid rgba(255, 214, 0, 0.2); }

.button { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 12px; font-weight: 800; font-size: 14px; background: rgba(255,255,255,0.05); color: var(--ink); border: 1px solid var(--border); position: relative; overflow: hidden; }
.button::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); transform: translateX(-100%); transition: 0.5s; }
.button:hover::before { transform: translateX(100%); }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.button--pink { background: var(--pink); color: #fff; border: none; box-shadow: 0 0 20px rgba(255, 42, 138, 0.3); }
.button--pink:hover { background: #ff4aa5; box-shadow: 0 10px 30px rgba(255, 42, 138, 0.5); }
.button--case { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.button--case:hover { background: rgba(255, 214, 0, 0.1); box-shadow: 0 0 20px rgba(255, 214, 0, 0.2); }
.button--quiet { padding: 8px 16px; font-size: 13px; border-radius: 8px; }

/* Sale Timer */
.sale-timer { display: flex; flex-direction: column; align-items: flex-end; margin-right: 16px; }
.timer-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.timer-value { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--pink); text-shadow: 0 0 10px rgba(255,42,138,0.4); }

/* Support Widget */
.support-widget { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; }
.support-toggle { width: 60px; height: 60px; border-radius: 50%; background: var(--pink); color: #fff; border: none; cursor: pointer; box-shadow: 0 10px 30px rgba(255,42,138,0.4); display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.support-toggle:hover { transform: scale(1.1); }
.support-chat { display: none; width: 320px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.8); margin-bottom: 16px; animation: fadeUp 0.3s ease; }
.support-chat.is-open { display: flex; flex-direction: column; }
.support-header { background: rgba(255,255,255,0.05); padding: 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.support-close { background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; }
.support-messages { padding: 16px; height: 250px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.msg.bot { background: rgba(255,255,255,0.05); padding: 12px 16px; border-radius: 12px 12px 12px 0; font-size: 13px; color: #ccc; max-width: 90%; }
.msg.user { background: var(--pink); color: #fff; padding: 12px 16px; border-radius: 12px 12px 0 12px; font-size: 13px; max-width: 90%; align-self: flex-end; }
.support-options { padding: 12px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); }
.support-option { background: transparent; border: 1px solid var(--border); color: var(--ink); padding: 10px; border-radius: 8px; font-size: 13px; text-align: left; cursor: pointer; transition: 0.2s; }
.support-option:hover { background: rgba(255,255,255,0.05); border-color: var(--pink); }

/* New Edition Grid */
.edition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.edition-card-new {
  position: relative;
  padding: 24px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.edition-card-new:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 42, 138, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.edition-card-new.is-selected {
  border-color: var(--pink);
  background: rgba(255, 42, 138, 0.05);
  box-shadow: 0 0 0 1px var(--pink), 0 10px 30px rgba(255, 42, 138, 0.15);
  transform: translateY(-2px);
}

.edition-card-new::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.edition-card-new:hover::before { opacity: 1; }

.edition-cover {
  width: 100px;
  height: 140px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.6);
  transition: transform 0.4s ease;
}
.edition-card-new:hover .edition-cover { transform: scale(1.05); }

.edition-card-new h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 6px;
}

.edition-card-new small {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.edition-prices {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: auto;
}

.edition-prices s {
  color: var(--muted);
  font-size: 13px;
}

.edition-prices strong {
  color: var(--gold);
  font-size: 20px;
  font-weight: 900;
  font-family: var(--font-display);
}

.edition-prices em {
  background: var(--pink);
  color: #fff;
  font-style: normal;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

/* Loading state */
#payBtn.is-loading { opacity: 0.7; pointer-events: none; }
#payBtn.is-loading::after { content: '...'; display: inline-block; animation: loadingDots 1.5s infinite; }
@keyframes loadingDots { 0% { content: ''; } 33% { content: '.'; } 66% { content: '..'; } 100% { content: '...'; } }

/* Base sections */
section, .hero { animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.reviews-section { animation-delay: 0.1s; }
.merch-section { animation-delay: 0.2s; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 80px 0 120px; }
.gta-logo { font-family: var(--font-display); font-size: clamp(70px, 10vw, 140px); font-weight: 900; line-height: 0.85; letter-spacing: -0.05em; }
.gta-logo span { color: var(--pink); display: block; text-shadow: 0 0 40px rgba(255,42,138,0.3); }
.hero__description { max-width: 480px; color: var(--muted); font-size: 18px; margin: 32px 0 48px; }
.hero-price { display: flex; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.hero-price strong { font-family: var(--font-display); font-size: 48px; font-weight: 900; }
.hero-price s { color: var(--muted); font-size: 18px; }
.hero-price b { color: var(--lime); font-size: 16px; font-weight: 800; background: rgba(204, 255, 0, 0.1); padding: 4px 10px; border-radius: 6px; }
.hero__actions { display: flex; gap: 16px; }
.product-shot { position: relative; height: 500px; perspective: 1000px; }
.game-box { position: absolute; inset: 0; transform-style: preserve-3d; }
.game-box__cover { position: absolute; inset: 0; border-radius: 12px; background: url('https://www.rockstargames.com/VI/_next/static/media/Official_Cover_Art_landscape.12.uu2irr.2_a.jpg?akim=1&imdensity=1&imwidth=3840') center/cover; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.1), 40px 40px 80px rgba(0,0,0,0.9); transform: rotateY(-25deg) rotateX(8deg) rotateZ(3deg); transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.product-shot:hover .game-box__cover { transform: rotateY(-10deg) rotateX(0) rotateZ(0) translateY(-15px) scale(1.02); }
.game-box__spine, .game-box__logo, .game-disc { display: none; }
section { padding: 120px 0; border-top: 1px solid var(--border); }
.case-machine { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 32px; transition: border-color 0.3s; }
.case-machine:hover { border-color: var(--border-hover); }
.case-machine__top { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 24px; }
.case-machine__top b { color: var(--gold); }
.case-window { position: relative; height: 220px; background: #000; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.case-marker { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--gold); z-index: 10; box-shadow: 0 0 20px var(--gold); }
.case-marker::before { content: "▼"; position: absolute; top: 0; left: -9px; color: var(--gold); font-size: 20px; }
.case-track { display: flex; gap: 16px; padding: 30px 16px; height: 100%; align-items: center; }
.case-item { flex: 0 0 180px; height: 160px; background: #111; border-radius: 12px; border: 1px solid var(--border); display: flex; align-items: flex-end; padding: 16px; position: relative; overflow: hidden; transition: transform 0.3s; }
.case-item:hover { transform: translateY(-5px); }
.case-item--gta { background: linear-gradient(135deg, #200010, #110005); border-color: rgba(255, 42, 138, 0.3); }
.case-item--steam { background: linear-gradient(135deg, #001a2c, #000d14); border-color: rgba(0, 240, 255, 0.2); }
.case-item b { font-family: var(--font-display); font-size: 14px; z-index: 1; font-weight: 700; }
.case-item small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.case-item__image { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 60px; height: 60px; object-fit: contain; transition: transform 0.3s; }
.case-item:hover .case-item__image { transform: translateX(-50%) scale(1.1); }
.case-machine__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; }
.case-machine__bottom h3 { font-size: 24px; margin-bottom: 8px; }
.case-machine__bottom p { color: var(--muted); }
.button--open { padding: 16px 40px; font-size: 16px; background: var(--ink); color: var(--bg); font-weight: 800; border-radius: 12px; }
.button--open:hover { background: var(--gold); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { background: var(--surface); border: 1px solid var(--border); padding: 40px; border-radius: 24px; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.review-card:hover { border-color: var(--pink); transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.review-stars { color: var(--gold); font-size: 16px; margin-bottom: 24px; letter-spacing: 2px; }
.review-card p { font-size: 16px; line-height: 1.7; color: #ccc; margin-bottom: 32px; font-weight: 500; }
.review-card b { font-family: var(--font-display); font-size: 13px; color: var(--cyan); }
.merch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.merch-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; transition: all 0.4s ease; }
.merch-card:hover { border-color: var(--cyan); transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.merch-img { height: 380px; background-size: cover; background-position: center; border-bottom: 1px solid var(--border); filter: grayscale(20%) contrast(1.1); transition: all 0.6s ease; }
.merch-card:hover .merch-img { filter: grayscale(0%) contrast(1.2); transform: scale(1.03); }
.merch-info { padding: 32px; display: flex; flex-direction: column; flex-grow: 1; }
.merch-info h3 { font-size: 24px; margin-bottom: 12px; }
.merch-info p { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.merch-price { font-family: var(--font-display); font-size: 32px; font-weight: 900; color: var(--gold); margin-bottom: 24px; }
.merch-buy { width: 100%; padding: 16px; font-size: 16px; }
.site-footer { display: flex; justify-content: space-between; padding: 48px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.legal-link { background: transparent; color: var(--ink); font-weight: 600; transition: 0.3s; }
.legal-link:hover { color: var(--gold); }
.modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; background: rgba(3, 3, 5, 0.85); backdrop-filter: blur(20px); padding: 24px; }
.modal.is-open { display: flex; animation: fadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.modal__card { background: var(--surface); border: 1px solid var(--border-hover); border-radius: 24px; padding: 48px; width: min(500px, 100%); position: relative; box-shadow: 0 40px 100px rgba(0,0,0,0.9); }
.modal__card h2 { font-size: 32px; margin-bottom: 12px; }
.modal__card p { color: var(--muted); margin-bottom: 32px; font-size: 15px; }
.modal__close { position: absolute; top: 24px; right: 24px; background: transparent; color: var(--muted); font-size: 24px; transition: 0.3s; }
.modal__close:hover { color: var(--ink); transform: rotate(90deg); }
.form.is-active { display: flex; flex-direction: column; gap: 16px; }
.form input { background: rgba(0,0,0,0.5); border: 1px solid var(--border); padding: 16px 20px; border-radius: 12px; color: var(--ink); font-size: 15px; transition: 0.3s; font-family: var(--font-main); }
.form input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 42, 138, 0.1); }
.tabs { display: flex; gap: 8px; margin-bottom: 24px; background: rgba(0,0,0,0.3); padding: 6px; border-radius: 12px; }
.tabs button { flex: 1; padding: 10px; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; transition: 0.3s; }
.tabs button.is-active { background: var(--ink); color: var(--bg); }
.notice { display: none; padding: 16px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.notice.is-error { background: rgba(255, 42, 138, 0.1); color: var(--pink); border: 1px solid rgba(255, 42, 138, 0.2); }
.cabinet-balance { font-family: var(--font-display); font-size: 48px; font-weight: 900; color: var(--lime); margin: 24px 0 32px; }
.drop-history { max-height: 240px; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; background: rgba(0,0,0,0.3); margin-bottom: 24px; }
.history-row { padding: 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 14px; }
.history-row:last-child { border-bottom: none; }
.history-row small { color: var(--muted); }
.history-row--empty { padding: 24px; text-align: center; color: var(--muted); }

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 60px; padding: 80px 0 80px; text-align: center; }
  .hero__description { margin: 24px auto 40px; }
  .hero__actions, .hero-price { justify-content: center; }
  .reviews-grid { grid-template-columns: 1fr; }
  .merch-grid { grid-template-columns: 1fr; }
  .header-actions .account-email, .header-actions .account-id, .sale-timer { display: none; }
  .site-header { width: calc(100% - 32px); margin: 16px auto 0; padding: 12px 20px; }
}
@media (max-width: 768px) {
  .container { width: calc(100% - 32px); }
  .case-machine__bottom { flex-direction: column; align-items: flex-start; gap: 24px; }
  .button--open { width: 100%; }
  .brand { font-size: 20px; }
  .support-widget { bottom: 16px; right: 16px; }
  .support-chat { width: 280px; }
  .edition-grid { grid-template-columns: 1fr; }
  .edition-cover { width: 80px; height: 110px; }
}