﻿:root {
  --bg: #050711;
  --panel: rgba(14, 18, 32, 0.86);
  --panel-2: rgba(20, 26, 44, 0.92);
  --line: rgba(138, 157, 255, 0.16);
  --line-strong: rgba(139, 109, 255, 0.34);
  --text: #f3f6ff;
  --muted: #a9b2c8;
  --blue: #48d7ff;
  --purple: #8b5cff;
  --violet: #c05cff;
  --green: #35f2ba;
  --gold: #ffd166;
  --red: #ff4d39;
  --radius: 14px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at 16% 8%, rgba(72, 215, 255, 0.22), transparent 25rem),
    radial-gradient(circle at 75% 2%, rgba(139, 92, 255, 0.25), transparent 28rem),
    radial-gradient(circle at 50% 100%, rgba(255, 77, 57, 0.10), transparent 30rem),
    var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 74%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 16%, rgba(72,215,255,0.08), transparent 18rem),
    linear-gradient(115deg, transparent 0 38%, rgba(72,215,255,0.055) 39%, transparent 42% 100%);
  opacity: .8;
}

a { color: inherit; text-decoration: none; }

button, a {
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  width: min(1500px, calc(100% - 32px));
  height: 78px;
  border: 1px solid rgba(138,157,255,0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8,12,25,0.78), rgba(8,12,25,0.58));
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 18px;
  position: sticky;
  top: 16px;
  z-index: 10;
  margin: 16px auto 0;
  box-shadow: 0 18px 70px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.06);
}

.brand, .nav-center, .cart-button, .top-actions { display: flex; align-items: center; }

.brand { grid-column: 1; grid-row: 1; }
.nav-center { grid-column: 2; grid-row: 1; }
.top-actions { grid-column: 3; grid-row: 1; }

.brand {
  gap: 12px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
}

.logo-mark {
  width: 46px;
  height: 46px;
  position: relative;
  border-radius: 14px;
  background: linear-gradient(135deg, #65efff, #8061ff 48%, #ff4d39);
  box-shadow: 0 0 28px rgba(72, 215, 255, 0.22), 0 0 34px rgba(139, 92, 255, 0.28);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.logo-mark.small {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.logo-cloud {
  position: absolute;
  width: 30px;
  height: 15px;
  border-radius: 999px;
  background: rgba(255,255,255,0.34);
  transform: translateY(-5px);
}

.logo-cloud::before,
.logo-cloud::after {
  content: "";
  position: absolute;
  bottom: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.34);
}

.logo-cloud::before { width: 16px; height: 16px; left: 4px; }
.logo-cloud::after { width: 20px; height: 20px; right: 3px; }

.logo-core {
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #071018;
  color: #66efff;
  font-weight: 900;
}

.brand-logo {
  width: 52px;
  max-width: 64px;
  height: auto;
  border-radius: 50%;
  border: 1px solid rgba(72,215,255,0.5);
  box-shadow: 0 0 26px rgba(72,215,255,0.26);
  flex: 0 0 auto;
}

.nav-center {
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  box-shadow: inset 0 0 22px rgba(72,215,255,0.035);
}

.nav-center a {
  position: relative;
  color: #cfd6e9;
  font-weight: 900;
  font-size: 15px;
  padding: 11px 18px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-center a:hover,
.nav-center a.active {
  color: #fff;
  background: rgba(72,215,255,0.09);
  transform: translateY(-1px);
}

.nav-center a.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 5px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
}

.menu-button {
  display: none;
  grid-column: 2;
  grid-row: 1;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.045);
  color: var(--text);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-button.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button.open span:nth-child(2) { opacity: 0; }
.menu-button.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.top-actions {
  justify-self: end;
  gap: 12px;
  align-items: center;
}

.auth-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.login-button[hidden],
.user-button[hidden],
.user-dropdown[hidden] {
  display: none !important;
}

.login-button,
.user-button {
  min-height: 50px;
  border: 1px solid rgba(139,92,255,0.32);
  border-radius: 12px;
  background: rgba(255,255,255,0.045);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 14px;
  font: inherit;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.login-button:hover,
.user-button:hover,
.user-button.open {
  transform: translateY(-2px);
  border-color: rgba(72,215,255,0.52);
  background: rgba(72,215,255,0.08);
  box-shadow: 0 0 28px rgba(139,92,255,0.18);
}

.user-button img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(72,215,255,0.46);
  flex: 0 0 auto;
}

#userName {
  display: inline-flex;
  align-items: center;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

.dropdown-caret {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: .8;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 170px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10,14,28,0.98);
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 12;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border-radius: 9px;
  color: #dce5ff;
  font-weight: 900;
  transition: background .2s ease, color .2s ease;
}

.user-dropdown a:hover {
  background: rgba(72,215,255,0.10);
  color: #fff;
}

.user-dropdown span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.cart-button {
  justify-self: end;
  gap: 10px;
  border: 1px solid rgba(72,215,255,0.26);
  background: linear-gradient(135deg, rgba(72,215,255,0.12), rgba(139,92,255,0.18));
  color: var(--text);
  border-radius: 12px;
  min-height: 48px;
  padding: 0 16px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(72,215,255,0);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.cart-button:hover {
  transform: translateY(-2px);
  border-color: rgba(72,215,255,0.56);
  box-shadow: 0 0 28px rgba(72,215,255,0.18);
}

.cart-icon {
  width: 22px;
  height: 18px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  position: relative;
}

.cart-icon::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -7px;
  width: 12px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: skewX(18deg);
}

.cart-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: -7px;
  height: 4px;
  background:
    radial-gradient(circle at left center, currentColor 0 2px, transparent 2.5px),
    radial-gradient(circle at right center, currentColor 0 2px, transparent 2.5px);
}

main {
  max-width: 1580px;
  margin: 0 auto;
  padding: 34px 22px 34px;
  animation: pageIn .55s ease both;
}

.hero {
  position: relative;
  min-height: 64vh;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  justify-items: center;
  text-align: center;
  margin-bottom: 34px;
  padding: clamp(40px, 6vw, 74px);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8,12,24,0.94), rgba(7,11,23,0.78)),
    radial-gradient(circle at 50% 28%, rgba(72,215,255,0.17), transparent 19rem),
    radial-gradient(circle at 65% 60%, rgba(139,92,255,0.12), transparent 21rem);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -45%;
  background:
    conic-gradient(from 90deg, transparent, rgba(72,215,255,0.14), transparent, rgba(139,92,255,0.18), transparent);
  animation: heroSpin 18s linear infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(108deg, transparent 0 36%, rgba(72,215,255,0.13) 37%, transparent 39% 100%),
    linear-gradient(78deg, transparent 0 62%, rgba(139,92,255,0.10) 63%, transparent 65% 100%),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.22;
  animation: lightSweep 7s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 870px;
  animation: fadeUp .65s ease .08s both;
}

.hero-logo-wrap {
  position: relative;
  z-index: 1;
  width: 128px;
  max-width: 128px;
  display: inline-grid;
  place-items: center;
  animation: floatLogo 5.8s ease-in-out infinite;
  margin-bottom: 10px;
  order: -1;
}

.hero-logo-wrap::before {
  content: "";
  position: absolute;
  width: 148px;
  max-width: 148px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72,215,255,0.34), rgba(139,92,255,0.12) 45%, transparent 70%);
  filter: blur(18px);
  animation: logoGlow 3.8s ease-in-out infinite;
}

.hero-logo {
  position: relative;
  width: 128px;
  max-width: 128px;
  height: auto;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(72,215,255,0.22), 0 16px 42px rgba(0,0,0,0.24);
}

.eyebrow, .panel-label {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 13px;
  font-weight: 900;
}

.hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(42px, 5.8vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  color: #c2c9dc;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
  margin: 0;
  max-width: 780px;
}

.cloud-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.cloud-particles span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(72,215,255,0.64);
  box-shadow: 0 0 18px rgba(72,215,255,0.7);
  animation: particleFloat 7s ease-in-out infinite;
}

.cloud-particles span:nth-child(1) { left: 12%; top: 28%; animation-delay: 0s; }
.cloud-particles span:nth-child(2) { left: 26%; top: 72%; animation-delay: 1.2s; }
.cloud-particles span:nth-child(3) { right: 18%; top: 32%; animation-delay: 2.1s; }
.cloud-particles span:nth-child(4) { right: 30%; bottom: 18%; animation-delay: 3s; }

.primary-action,
.ghost-action {
  position: relative;
  overflow: hidden;
}

.primary-action:hover,
.ghost-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(139,92,255,0.22);
}

.layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 30px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeUp .65s ease .14s both;
}

.feature-card {
  min-height: 124px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(72,215,255,0.13), rgba(139,92,255,0.20)),
    #101525;
  box-shadow: inset 0 0 38px rgba(255,255,255,0.035), 0 18px 45px rgba(0,0,0,0.2);
  cursor: pointer;
  text-align: center;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.feature-card span {
  display: block;
  color: #fff;
  text-shadow: 0 4px 0 rgba(0,0,0,0.22), 0 0 18px rgba(72,215,255,0.18);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-card:nth-child(2) { background: linear-gradient(135deg, rgba(255,209,102,0.2), rgba(72,215,255,0.18)), #101525; }
.feature-card:nth-child(3) { background: linear-gradient(135deg, rgba(139,92,255,0.26), rgba(255,77,57,0.16)), #101525; }

.feature-card:hover,
.feature-card.active {
  transform: translateY(-3px);
  border-color: rgba(72,215,255,0.46);
  box-shadow: 0 22px 56px rgba(72,215,255,0.11), inset 0 0 44px rgba(255,255,255,0.05);
}

.content {
  min-width: 0;
  animation: fadeUp .65s ease .2s both;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin: 0;
}

.section-head span {
  color: #96a1bd;
  font-weight: 800;
}

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(138,157,255,0.18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
  box-shadow: 0 18px 48px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(72,215,255,0.12), transparent 38%, rgba(139,92,255,0.12));
  opacity: 0;
  transition: opacity .22s ease;
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(72,215,255,0.42);
  box-shadow: 0 30px 80px rgba(0,0,0,0.34), 0 0 42px rgba(139,92,255,0.12);
}

.product-card:hover::before { opacity: 1; }

.product-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #ff8d4d);
  color: #11131d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 12px 28px rgba(0,0,0,0.24);
}

.product-badge.badge-sale {
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.product-badge.badge-limited {
  background: linear-gradient(135deg, var(--purple), var(--violet));
  color: #fff;
}

.product-badge.badge-new {
  background: linear-gradient(135deg, var(--blue), #e7fbff);
}

.product-badge.badge-popular {
  background: linear-gradient(135deg, var(--gold), #ff8d4d);
}

.art {
  height: 282px;
  background:
    radial-gradient(circle at 50% 18%, rgba(72,215,255,0.16), transparent 36%),
    linear-gradient(180deg, #1a2030, #101421);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.art::after {
  content: "";
  position: absolute;
  inset: auto 12% 0;
  height: 42px;
  background: radial-gradient(ellipse, rgba(72,215,255,0.18), transparent 68%);
  filter: blur(10px);
}

.product-image {
  max-width: 88%;
  max-height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 26px 30px rgba(0,0,0,0.46));
  transition: transform .25s ease;
}

.product-card:hover .product-image { transform: scale(1.04); }

.product-image.coins { max-height: 210px; }
.product-image.warrior { max-height: 255px; }

.product-image.champion,
.product-image.radiant,
.product-image.daddy,
.product-image.custom {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.rank-badge {
  width: 168px;
  height: 168px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  transform: rotate(-8deg);
  box-shadow: 0 26px 50px rgba(0,0,0,0.34), inset 0 -20px 40px rgba(0,0,0,0.22);
}

.rank-badge::after {
  content: attr(data-text);
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 5px 0 rgba(0,0,0,0.22);
}

.warrior { background: linear-gradient(135deg, #737b8f, #2ff0b5); }
.champion { background: linear-gradient(135deg, #ff321f, #ffbe45); }
.radiant { background: linear-gradient(135deg, #7c4dff, #35f4ff); }
.daddy { background: linear-gradient(135deg, #ffde59, #ff321f); }
.custom { background: linear-gradient(135deg, #ffffff, #7c4dff 45%, #ff321f); }
.coins { background: linear-gradient(135deg, #ffbd2f, #7b4b07); }

.product-info {
  position: relative;
  z-index: 2;
  padding: 23px;
}

.product-info h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.15;
}

.product-info p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.5;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.price-row strong { color: var(--green); font-size: 21px; }
.price-row span { color: #8e98b2; font-weight: 900; }

.footer {
  max-width: 1580px;
  margin: 40px auto 0;
  padding: 34px 22px 42px;
  border: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, rgba(12,17,33,0.74), rgba(7,10,20,0.86));
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr 1fr;
  align-items: start;
  gap: 26px;
  color: #9ca8c3;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand strong {
  display: block;
  color: var(--text);
  font-size: 20px;
}

.footer-brand p {
  margin: 4px 0 0;
  color: var(--muted);
}

.footer-column,
.server-ip {
  display: grid;
  gap: 10px;
}

.footer-column h3,
.server-ip h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.footer-column a {
  color: var(--muted);
  font-weight: 800;
  transition: color .2s ease, transform .2s ease;
}

.footer-column a:hover {
  color: #fff;
  transform: translateX(3px);
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  color: #7f8aa4;
  font-size: 14px;
}

.ip-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  padding: 8px;
}

.ip-box code {
  display: flex;
  align-items: center;
  color: var(--blue);
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ip-box button {
  min-height: 36px;
  border: 1px solid rgba(72,215,255,0.28);
  border-radius: 9px;
  background: rgba(72,215,255,0.10);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

#copyIpMessage {
  min-height: 18px;
  margin: 0;
  color: var(--green);
  font-size: 13px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(5px);
  z-index: 20;
  transition: opacity .22s ease;
}

.modal {
  position: fixed;
  z-index: 21;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(940px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #0f1423;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 360px 1fr;
  box-shadow: var(--shadow);
  animation: modalIn .18s ease both;
}

.small-modal {
  display: block;
  width: min(660px, calc(100vw - 28px));
  padding: 30px;
}

.cart-drawer {
  position: fixed;
  z-index: 21;
  top: 0;
  right: 0;
  width: min(460px, 100vw);
  height: 100vh;
  padding: 28px;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(16,23,43,0.98), rgba(8,11,22,0.98)),
    #0c1020;
  border-left: 1px solid var(--line-strong);
  box-shadow: -28px 0 80px rgba(0,0,0,0.45);
  animation: cartSlideIn .24s ease both;
}

.cart-drawer[hidden] {
  display: none;
}

.cart-drawer-head {
  padding-right: 44px;
}

.cart-drawer h2 {
  margin: 6px 0 18px;
  font-size: 34px;
}

.modal[hidden], .modal-backdrop[hidden] { display: none; }

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.055);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}

.modal-close:hover {
  transform: rotate(6deg);
  border-color: rgba(72,215,255,0.42);
}

.modal-art {
  min-height: 360px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 18%, rgba(72,215,255,0.14), transparent 42%), #151b2b;
}

.modal-body { padding: 38px; }
.modal-body h2 { margin: 0 0 12px; font-size: 36px; line-height: 1.05; }
.modal-body p { color: var(--muted); line-height: 1.55; }
.modal-body li { margin: 10px 0; color: #dbe2f4; }

.price-line {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin: 24px 0;
}

.price-line strong { color: var(--green); font-size: 28px; }
.price-line span { color: #a4aec8; font-weight: 900; }

.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.primary-action, .ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  padding: 0 17px;
  font-weight: 900;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.primary-action {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #071018;
  border: 0;
  box-shadow: 0 14px 30px rgba(72,215,255,0.18);
}

.ghost-action {
  border: 1px solid var(--line-strong);
  color: #fff;
  background: rgba(255,255,255,0.045);
}

.primary-action:disabled { opacity: 0.48; cursor: not-allowed; }

.cart-items {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  background: rgba(255,255,255,0.04);
}

.cart-line-image {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: #151b2b;
  border: 1px solid rgba(255,255,255,0.08);
}

.cart-line-info {
  min-width: 0;
}

.cart-line strong,
.cart-line span { display: block; }

.cart-line span,
.cart-note,
.coupon-message,
.empty-cart { color: var(--muted); }

.cart-line-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: end;
}

.cart-line-actions button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,0.055);
  color: var(--text);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.cart-line-actions span {
  min-width: 34px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(72,215,255,0.10);
  color: var(--text);
  font-weight: 900;
}

.coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 16px;
}

.coupon-row input {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #080b15;
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
}

.cart-total {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin: 16px 0;
}

.cart-total span { color: var(--muted); }
.cart-total strong { color: var(--green); }

.cart-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, -48%) scale(0.98); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

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

@keyframes lightSweep {
  0%, 100% { transform: translateX(-2%); opacity: .16; }
  50% { transform: translateX(2%); opacity: .28; }
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes particleFloat {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: .25; }
  50% { transform: translate3d(18px, -18px, 0); opacity: .9; }
}

@keyframes logoGlow {
  0%, 100% { opacity: .56; }
  50% { opacity: .9; }
}

@keyframes cartSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-logo-wrap {
    order: -1;
  }

  .layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(3, 1fr); }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr auto auto;
    padding: 0 14px;
  }

  .menu-button { display: block; }
  .top-actions {
    gap: 8px;
    grid-column: 3;
    grid-row: 1;
    align-items: center;
  }

  .nav-center {
    position: absolute;
    top: calc(100% + 10px);
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
    padding: 10px;
    background: rgba(10,14,28,0.96);
    box-shadow: var(--shadow);
  }

  .nav-center.open { display: flex; }
  .nav-center a { text-align: center; }

  .brand span:last-child { display: none; }
  .brand-logo { width: 48px; max-width: 64px; height: auto; }
  .login-button {
    min-height: 42px;
    padding: 0 11px;
    white-space: nowrap;
  }
  .user-button {
    min-height: 46px;
    gap: 8px;
    padding: 0 10px;
  }
  .user-button img {
    width: 40px;
    height: 40px;
  }
  #userName {
    max-width: 92px;
  }
  .cart-button { padding: 0 12px; }
  .cart-button span:last-child { display: none; }
  .hero { min-height: 62vh; padding: 30px 24px; }
  .hero-logo { width: 160px; max-width: 180px; height: auto; object-fit: contain; }
  .hero h1 { font-size: 40px; }
  .hero-copy { font-size: 16px; }
  .sidebar, .products { grid-template-columns: 1fr; }
  .modal { grid-template-columns: 1fr; }
  .modal-art { min-height: 260px; }
  .coupon-row { grid-template-columns: 1fr; }
  .cart-drawer {
    width: 100vw;
    padding: 24px 18px;
  }
  .cart-line { align-items: center; }
  .footer { grid-template-columns: 1fr; border-radius: 18px 18px 0 0; }
}

.hero .hero-logo-wrap {
  width: 128px !important;
  max-width: 128px !important;
}

.hero .hero-logo {
  width: 128px !important;
  max-width: 128px !important;
  height: auto !important;
  object-fit: contain !important;
}

.topbar .brand-logo {
  width: 52px !important;
  max-width: 64px !important;
  height: auto !important;
  object-fit: contain !important;
}

.profile-shell {
  max-width: 1320px;
  padding-top: 44px;
}

.profile-hero,
.profile-panel,
.future-grid article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025)),
    rgba(10,14,28,0.74);
  box-shadow: var(--shadow);
}

.profile-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 4vw, 42px);
  margin-bottom: 28px;
}

.profile-hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 24% 26%, rgba(72,215,255,0.22), transparent 25rem),
    radial-gradient(circle at 78% 30%, rgba(139,92,255,0.18), transparent 26rem);
  pointer-events: none;
}

.profile-identity,
.profile-stat-row {
  position: relative;
  z-index: 1;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.profile-avatar {
  width: clamp(86px, 12vw, 132px);
  height: clamp(86px, 12vw, 132px);
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid rgba(72,215,255,0.48);
  box-shadow: 0 0 34px rgba(72,215,255,0.2), 0 18px 42px rgba(0,0,0,0.28);
  flex: 0 0 auto;
}

.profile-identity h1 {
  margin: 8px 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
}

.profile-muted {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.profile-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.profile-stat-row article {
  min-height: 112px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
}

.profile-stat-row span,
.detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.profile-stat-row strong {
  color: var(--green);
  font-size: clamp(22px, 3vw, 30px);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.profile-panel {
  padding: clamp(22px, 3vw, 30px);
}

.panel-head h2 {
  margin: 6px 0 20px;
  font-size: clamp(24px, 3vw, 34px);
}

.detail-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.detail-list dd {
  margin: 0;
  color: #e8edff;
  font-weight: 900;
  min-width: 0;
  overflow-wrap: anywhere;
}

.minecraft-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(72,215,255,0.18);
  border-radius: 14px;
  background: rgba(72,215,255,0.055);
  padding: 16px;
  margin-bottom: 18px;
}

.minecraft-head-frame {
  width: 82px;
  height: 82px;
  border-radius: 16px;
  border: 1px solid rgba(72,215,255,0.35);
  display: grid;
  place-items: center;
  background: #0b1020;
  overflow: hidden;
  flex: 0 0 auto;
}

.minecraft-head-frame img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.minecraft-card strong,
.minecraft-card span {
  display: block;
}

.minecraft-card strong {
  font-size: 20px;
}

.minecraft-card span {
  color: var(--muted);
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.minecraft-form {
  display: grid;
  gap: 10px;
}

.minecraft-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.minecraft-form > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.account-type-row {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 10px;
  flex-wrap: wrap;
}

.account-type-row label {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.045);
  padding: 0 14px;
  color: var(--text);
  cursor: pointer;
}

.account-type-row input {
  min-height: auto;
  width: auto;
}

.minecraft-form input {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #080b15;
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
}

.minecraft-form select {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #080b15;
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
}

.inline-check {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
}

.inline-check input {
  width: auto;
  min-height: auto;
}

.mini-form {
  display: grid;
  gap: 10px;
}

.mini-form input {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #080b15;
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
}

#minecraftMessage {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

#minecraftMessage.success {
  color: var(--green);
}

#minecraftMessage.error {
  color: var(--red);
}

.future-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.future-grid article {
  padding: 22px;
  min-height: 132px;
}

.future-grid h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.future-grid p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.orders-list {
  display: grid;
  gap: 12px;
}

.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
  padding: 16px;
  color: var(--text);
}

.order-row:hover {
  border-color: rgba(72,215,255,0.42);
  background: rgba(72,215,255,0.07);
}

.order-row strong,
.order-row span {
  display: block;
}

.order-row span {
  color: var(--muted);
  margin-top: 4px;
  font-weight: 800;
}

.order-success-shell {
  max-width: 1120px;
}

.order-success-hero {
  align-items: center;
}

.success-checkmark {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 18px;
  color: #04100d;
  background: linear-gradient(135deg, var(--green), #48d7ff);
  box-shadow: 0 18px 55px rgba(53,242,186,0.24);
  font-size: 48px;
  font-weight: 1000;
}

.next-step-list {
  margin: 0 0 20px;
  padding-left: 22px;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.8;
}

.next-step-list li::marker {
  color: var(--cyan);
  font-weight: 1000;
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  filter: grayscale(0.35);
}

.ticket-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(72,215,255,0.28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(72,215,255,0.08), rgba(131,87,255,0.08));
  padding: 18px;
  margin: 20px 0;
}

.ticket-action-card h2 {
  margin: 4px 0 8px;
}

.ticket-action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 920px) {
  .profile-hero,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .future-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .profile-identity,
  .minecraft-card {
    align-items: flex-start;
  }

  .profile-identity {
    flex-direction: column;
  }

  .profile-stat-row,
  .future-grid,
  .minecraft-form > div,
  .detail-list div {
    grid-template-columns: 1fr;
  }

  .order-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .ticket-action-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .ticket-action-buttons {
    justify-content: flex-start;
    width: 100%;
  }

  .profile-stat-row article {
    min-height: 92px;
  }
}

.home-info-section {
  max-width: 1580px;
  margin: 34px auto 0;
  display: grid;
  gap: 28px;
}

.official-store-block,
.legal-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(16,22,37,0.92), rgba(28,24,53,0.86));
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 4vw, 46px);
}

.official-store-block h2,
.legal-head h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.02;
}

.official-store-block > p,
.legal-head p {
  max-width: 1080px;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 22px);
  line-height: 1.55;
}

.refund-card {
  margin-top: 26px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  padding: clamp(20px, 2.4vw, 28px);
}

.refund-card h3 {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.4vw, 30px);
}

.refund-card p {
  color: var(--muted);
  line-height: 1.55;
}

.discord-join-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 10px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, #49cfff, #8b5cff);
  box-shadow: 0 18px 50px rgba(69, 205, 255, 0.2);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.legal-card {
  display: grid;
  gap: 14px;
}

.legal-icon {
  color: #8b5cff;
  font-size: 28px;
  line-height: 1;
}

.legal-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
}

.legal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.policy-button {
  min-height: 44px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  background: rgba(0,0,0,0.42);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.policy-button:hover {
  border-color: rgba(139,92,255,0.55);
}

.policy-modal {
  position: fixed;
  z-index: 22;
  left: 50%;
  top: 50%;
  width: min(980px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  transform: translate(-50%, -50%);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7,8,14,0.98);
  box-shadow: var(--shadow);
  padding: clamp(24px, 3vw, 34px);
  animation: modalIn .18s ease both;
}

.policy-modal[hidden] { display: none; }

.policy-modal h2 {
  margin: 0 0 8px;
  color: #8b5cff;
  font-size: clamp(28px, 3vw, 38px);
}

.policy-content {
  margin-top: 22px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 14px;
  padding: clamp(18px, 2.5vw, 28px);
  color: var(--muted);
  line-height: 1.6;
}

.policy-data-row {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.policy-data-row:last-child { border-bottom: 0; }
.policy-data-row strong { color: var(--text); }
.policy-dismiss { margin-top: 22px; float: right; }

.order-row-action {
  grid-template-columns: 1fr auto auto;
  align-items: center;
}

.order-row-meta {
  text-align: right;
}

.go-order-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  color: #07101f;
  font-weight: 900;
  background: linear-gradient(135deg, #49cfff, #8b5cff);
  white-space: nowrap;
}

@media (max-width: 920px) {
  .legal-grid { grid-template-columns: 1fr; }
  .order-row-action { grid-template-columns: 1fr; align-items: stretch; }
  .order-row-meta { text-align: left; }
  .go-order-pill { width: 100%; }
  .policy-data-row { grid-template-columns: 1fr; }
}
