﻿@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700;800;900&display=swap');

@font-face {
  font-family: 'Minecraftia';
  src: url('/assets/fonts/Minecraftia-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* ---------- GLOBAL VARIABLES ---------- */
:root {
  /* Colors */
  --bg: #0b1526;
  --bg-soft: #111f34;
  --card: #172942;
  --card-2: #1d3452;
  --text: #f5f7fb;
  --muted: #9aa8bd;
  --blue: #28a9e8;
  --blue-dark: #0f7db8;
  --border: #2b4568;
  --shadow: rgba(0, 0, 0, 0.35);
  --white: #ffffff;
  --green: #44d17d;
  --red: #ef6464;
  --gold: #f4c75d;

  /* Typography */
  --font-sans: 'Rubik', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-minecraft: 'Minecraftia', 'Courier New', 'Lucida Console', monospace;

  /* Spacing & Effects */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --radius-xl: 24px;
  --shadow-sm: 0 5px 0 #06101d;
  --shadow-md: 0 9px 0 var(--shadow);
  --shadow-lg: 0 12px 0 var(--shadow);
  --shadow-xl: 0 14px 0 var(--shadow);
  --transition: all 0.1s ease;
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

/* ---------- UTILITY CLASSES ---------- */
.container {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 22px;
  width: 100%;
}

.minecraft-title,
.brand-text,
.product-card h3,
.item-title {
  font-family: var(--font-minecraft);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.section {
  padding: 76px 0;
}

.section-tight {
  padding: 44px 0;
}

.section-head {
  margin-bottom: 28px;
  max-width: 700px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

/* ---------- LAYOUT GRIDS ---------- */
.grid-2 {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------- NAVBAR ---------- */
.navbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  align-items: center;
  display: flex;
  gap: 18px;
  height: 76px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 22px;
}

.nav-logo {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: max-content;
}

.nav-logo img {
  height: 48px;
  object-fit: contain;
  width: auto;
}

.brand-text {
  color: var(--white);
  font-family: var(--font-minecraft);
  font-size: 1.15rem;
}

.brand-text span:first-child,
.minecraft-title span:first-child {
  color: var(--white);
}

.brand-text span:last-child,
.minecraft-title span:last-child {
  color: var(--blue);
}

.brand-text span + span,
.minecraft-title span + span {
  margin-left: 0.12em;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a,
.mobile-menu a {
  border-radius: var(--radius-sm);
  color: var(--muted);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 13px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active,
.mobile-menu a:hover,
.mobile-menu a.active {
  background: var(--card-2);
  color: var(--white);
}

.nav-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.nav-search {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--text);
  min-height: 42px;
  padding: 0 14px;
  width: 190px;
}

.nav-search:focus {
  border-color: var(--blue);
  outline: none;
}

.nav-version {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.hamburger {
  background: var(--card);
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
}

.hamburger span {
  background: var(--white);
  height: 2px;
  width: 22px;
}

.mobile-menu {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: none;
  padding: 10px 22px 18px;
}

.mobile-menu.open {
  display: grid;
  gap: 8px;
}

/* ---------- HERO SECTION ---------- */
.hero {
  padding: 140px 0 72px;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.eyebrow {
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  margin-bottom: 22px;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* ---------- BUTTONS ---------- */
.btn {
  align-items: center;
  background: var(--card-2);
  border: 0;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(1px);
  box-shadow: 0 4px 0 #06101d;
}

.btn:active {
  transform: translateY(5px);
  box-shadow: none;
}

.btn-primary {
  background: var(--blue);
  box-shadow: var(--shadow-sm);
  color: #04101c;
}

.btn-primary:hover {
  box-shadow: 0 4px 0 var(--blue-dark);
}

.btn-secondary {
  background: var(--card-2);
}

.btn-small {
  font-size: 0.86rem;
  min-height: 40px;
  padding: 10px 14px;
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

/* ---------- CARDS & STATUS ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}

.info-row {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
}

.info-row:last-child {
  border-bottom: 0;
}

.status-label {
  color: var(--muted);
  font-weight: 700;
}

.status-value {
  color: var(--white);
  font-weight: 900;
  text-align: right;
}

.status-dot {
  background: var(--green);
  border-radius: 999px;
  display: inline-block;
  height: 10px;
  margin-right: 8px;
  width: 10px;
}

/* ---------- FEATURE / JOIN / RULE CARDS ---------- */
.feature-card,
.join-card,
.leader-card,
.summary-card,
.rule-card,
.legal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 22px;
}

.icon-box {
  align-items: center;
  background: var(--blue);
  border-radius: 14px;
  color: #04101c;
  display: flex;
  font-size: 1.35rem;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  margin-bottom: 16px;
  width: 46px;
}

.feature-card h3,
.join-card h3,
.rule-card h3,
.leader-card h3,
.summary-card h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.feature-card p,
.join-card p,
.rule-card li,
.legal-card p,
.legal-card li {
  color: var(--muted);
}

.join-shot,
.join-shot-placeholder {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  height: 138px;
  margin-bottom: 16px;
  object-fit: cover;
  width: 100%;
}

.join-shot-placeholder {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-weight: 900;
  justify-content: center;
}

/* ---------- SHOP & STORE ---------- */
.store-preview,
.discord-band {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.shop-layout {
  padding: 44px 0 78px;
}

.shop-controls {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.login-card {
  margin: 0 auto 22px;
  max-width: 620px;
}

.form-label {
  color: var(--white);
  display: block;
  font-weight: 900;
  margin-bottom: 8px;
}

.field input,
.search-input,
.shop-search,
.nav-search {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.field input,
.shop-search {
  min-height: 50px;
  padding: 0 16px;
  width: 100%;
}

.field input:focus,
.shop-search:focus,
.nav-search:focus {
  border-color: var(--blue);
}

.field-err,
.product-status {
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 22px;
  padding-top: 6px;
}

.player-bar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.player-name {
  background: var(--blue);
  border-radius: 999px;
  color: #04101c;
  display: inline-flex;
  font-weight: 900;
  padding: 7px 13px;
}

.filter-row {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-tab {
  background: var(--card-2);
  border: 0;
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
  min-height: 42px;
  padding: 10px 15px;
  transition: var(--transition);
}

.filter-tab.active,
.filter-tab:hover {
  background: var(--blue);
  box-shadow: 0 4px 0 var(--blue-dark);
  color: #04101c;
}

.search-wrap {
  min-width: 230px;
}

.shop-tools {
  align-items: center;
  display: flex;
  gap: 12px;
}

.prod-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  margin-bottom: 34px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 0 var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px;
}

.product-art {
  align-items: center;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  height: 150px;
  justify-content: center;
  margin-bottom: 16px;
}

.product-art img {
  max-height: 118px;
  max-width: 150px;
  object-fit: contain;
}

.product-placeholder {
  align-items: center;
  background: var(--card-2);
  border-radius: var(--radius-md);
  color: var(--muted);
  display: flex;
  font-weight: 900;
  height: 150px;
  justify-content: center;
  margin-bottom: 16px;
}

.product-badge {
  align-self: flex-start;
  background: var(--blue);
  border-radius: 999px;
  color: #04101c;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 10px;
  padding: 5px 10px;
  text-transform: uppercase;
}

.product-card h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

.product-card .description {
  color: var(--muted);
  flex: 1;
  margin-bottom: 16px;
}

.product-price {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 14px;
}

/* ---------- ORDERS & LEADERBOARD ---------- */
.orders,
.status {
  margin-top: 28px;
}

.orders-head,
.status-head {
  font-weight: 900;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.order-item,
.status-item,
.leader-row {
  align-items: center;
  background: var(--card-2);
  border-radius: 15px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 12px 14px;
}

.empty-state,
.error-state {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  grid-column: 1 / -1;
  padding: 26px;
  text-align: center;
}

.stats-summary {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 34px;
}

.summary-value {
  color: var(--blue);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.leaderboard-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.leader-row {
  justify-content: flex-start;
}

.rank-num {
  align-items: center;
  background: var(--blue);
  border-radius: var(--radius-sm);
  color: #04101c;
  display: flex;
  flex: 0 0 36px;
  font-weight: 900;
  height: 36px;
  justify-content: center;
}

.avatar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  flex: 0 0 36px;
  height: 36px;
}

.leader-name {
  flex: 1;
  font-weight: 900;
}

.leader-value {
  color: var(--muted);
  font-weight: 800;
}

/* ---------- RULES & LEGAL ---------- */
.rule-card ul,
.legal-card ul {
  list-style-position: inside;
  margin-top: 10px;
}

.legal-card {
  margin: 0 auto;
  max-width: 860px;
}

.legal-card h2 {
  margin: 24px 0 8px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}

.footer h3,
.footer h4 {
  margin-bottom: 12px;
}

.footer p,
.footer a {
  color: var(--muted);
}

.footer a {
  display: block;
  padding: 4px 0;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 20px;
}

/* ---------- RESULT PAGE (ERROR/SUCCESS) ---------- */
.result-page {
  align-items: center;
  display: flex;
  min-height: 100vh;
  padding: 24px;
}

.result-card {
  margin: 0 auto;
  max-width: 480px;
  text-align: center;
  width: 100%;
}

.result-icon {
  align-items: center;
  background: var(--blue);
  border-radius: var(--radius-md);
  color: #04101c;
  display: flex;
  font-size: 2rem;
  font-weight: 900;
  height: 72px;
  justify-content: center;
  margin: 0 auto 20px;
  width: 72px;
}

.result-card h1 {
  margin-bottom: 12px;
}

.result-card p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* ---------- FOCUS ACCESSIBILITY ---------- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
.filter-tab:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- RESPONSIVE BREAKPOINTS ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .grid-4,
  .stats-summary,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-search {
    display: none;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-container {
    height: 68px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .leaderboard-grid,
  .stats-summary,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filter-row,
  .player-bar,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-wrap {
    min-width: 0;
    width: 100%;
  }

  .section {
    padding: 52px 0;
  }
}

/* ---------- ANIMATIONS + LIGHTBOX ---------- */
@keyframes pageRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardPop {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lightboxIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes imageZoom {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes imageSlideLeft {
  from { opacity: 0; transform: translateX(-18px) scale(0.985); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes imageSlideRight {
  from { opacity: 0; transform: translateX(18px) scale(0.985); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

main,
.result-page {
  animation: pageRise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-card,
.join-card,
.product-card,
.leader-card,
.summary-card,
.rule-card,
.legal-card,
.login-card {
  animation: cardPop 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.join-card:nth-child(2),
.product-card:nth-child(2),
.summary-card:nth-child(2) { animation-delay: 0.04s; }
.join-card:nth-child(3),
.product-card:nth-child(3),
.summary-card:nth-child(3) { animation-delay: 0.08s; }
.join-card:nth-child(4),
.product-card:nth-child(4),
.summary-card:nth-child(4) { animation-delay: 0.12s; }

.join-shot {
  cursor: zoom-in;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, outline-color 0.22s ease;
}

.join-shot:hover,
.join-shot:focus-visible {
  box-shadow: 0 8px 0 rgba(0,0,0,0.32);
  outline: 2px solid var(--blue);
  transform: translateY(-4px) scale(1.01);
}

body.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  align-items: center;
  background: rgba(5, 9, 20, 0.92);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 34px 86px;
  position: fixed;
  z-index: 200;
}

.image-lightbox.open {
  animation: lightboxIn 0.22s ease both;
  display: flex;
}

.lightbox-frame {
  margin: 0;
  max-width: min(1100px, 100%);
  width: 100%;
}

.lightbox-image {
  animation: imageZoom 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 16px 0 rgba(0,0,0,0.42);
  max-height: 78vh;
  object-fit: contain;
  width: 100%;
}

.image-lightbox.slide-left .lightbox-image {
  animation: imageSlideLeft 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.image-lightbox.slide-right .lightbox-image {
  animation: imageSlideRight 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lightbox-caption {
  color: var(--muted);
  font-weight: 900;
  margin-top: 18px;
  text-align: center;
}

.lightbox-close,
.lightbox-arrow {
  background: var(--blue);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 5px 0 var(--blue-dark);
  color: #04101c;
  cursor: pointer;
  font-weight: 900;
  position: fixed;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  z-index: 210;
}

.lightbox-close {
  font-size: 1.5rem;
  height: 44px;
  right: 28px;
  top: 24px;
  width: 44px;
}

.lightbox-arrow {
  font-size: 2.4rem;
  height: 52px;
  line-height: 1;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-close:hover,
.lightbox-arrow:hover,
.page-btn:hover:not(:disabled),
.leaderboard-tab:hover,
.filter-tab:hover,
.btn:hover {
  filter: brightness(1.06);
}

.lightbox-close:hover {
  transform: translateY(-1px);
}

.lightbox-arrow:hover {
  transform: translateY(-50%) scale(1.06);
}

.lightbox-close:active {
  box-shadow: 0 2px 0 var(--blue-dark);
  transform: translateY(3px);
}

.lightbox-arrow:active {
  box-shadow: 0 2px 0 var(--blue-dark);
  transform: translateY(calc(-50% + 3px)) scale(0.98);
}

.page-arrow {
  font-size: 1.8rem;
  line-height: 1;
  min-width: 48px;
  padding: 6px 14px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 760px) {
  .image-lightbox {
    padding: 76px 18px 34px;
  }

  .lightbox-arrow {
    bottom: 22px;
    height: 46px;
    top: auto;
    transform: none;
    width: 46px;
  }

  .lightbox-prev { left: calc(50% - 70px); }
  .lightbox-next { right: calc(50% - 70px); }

  .lightbox-arrow:hover,
  .lightbox-arrow:active {
    transform: none;
  }
}

/* ---------- DISCORD SHOWCASE ---------- */

/* ---------- DISCORD SHOWCASE ---------- */

@keyframes discordFloat {
  0%, 100% {
    transform: translateY(0) rotate(-5deg);
  }

  50% {
    transform: translateY(-14px) rotate(-3deg);
  }
}

.discord-showcase {
  --discord-blue: #1f72f2;
  --discord-dark: #020711;

  background-color: var(--discord-blue);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.14) 1.4px, transparent 1.4px),
    linear-gradient(90deg, #258cf8 0%, #176ded 55%, #194ee8 100%);
  background-size: 18px 18px, 100% 100%;

  margin: 28px 0 0;
  overflow: hidden;
  padding: 145px 0;
  position: relative;
}

/* Top and bottom waves */
.discord-showcase::before,
.discord-showcase::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 120px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 2;
}

.discord-showcase::before {
  top: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 58 C55 92 93 82 140 62 C198 35 244 38 300 65 C356 91 397 78 448 58 C510 34 558 39 615 64 C675 91 721 82 770 57 C829 28 874 43 927 66 C980 89 1028 79 1078 56 C1137 29 1182 42 1232 65 C1287 91 1329 83 1378 61 C1403 50 1422 49 1440 58' fill='none' stroke='%230b3f94' stroke-width='34' stroke-linecap='round'/%3E%3Cpath fill='%23020711' d='M0 0H1440V58 C1422 49 1403 50 1378 61 C1329 83 1287 91 1232 65 C1182 42 1137 29 1078 56 C1028 79 980 89 927 66 C874 43 829 28 770 57 C721 82 675 91 615 64 C558 39 510 34 448 58 C397 78 356 91 300 65 C244 38 198 35 140 62 C93 82 55 92 0 58V0Z'/%3E%3C/svg%3E");
}

.discord-showcase::after {
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 62 C55 41 95 35 145 55 C198 76 240 93 300 69 C356 47 395 34 450 58 C511 84 558 91 615 64 C672 37 721 39 773 61 C829 85 875 90 928 66 C982 42 1028 34 1080 57 C1138 83 1183 90 1234 66 C1287 42 1329 36 1378 58 C1405 70 1425 72 1440 65' fill='none' stroke='%230b3f94' stroke-width='34' stroke-linecap='round'/%3E%3Cpath fill='%23020711' d='M0 62 C55 41 95 35 145 55 C198 76 240 93 300 69 C356 47 395 34 450 58 C511 84 558 91 615 64 C672 37 721 39 773 61 C829 85 875 90 928 66 C982 42 1028 34 1080 57 C1138 83 1183 90 1234 66 C1287 42 1329 36 1378 58 C1405 70 1425 72 1440 65V120H0Z'/%3E%3C/svg%3E");
}

.discord-grid {
  align-items: center;
  display: grid;
  gap: 70px;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  position: relative;
  z-index: 3;
}

.discord-art-wrap {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 410px;
  position: relative;
}

.discord-art-wrap::before,
.discord-art-wrap::after {
  border: 2px solid rgba(255, 255, 255, 0.22);
  content: "";
  height: 34px;
  position: absolute;
  transform: rotate(18deg);
  width: 34px;
}

.discord-art-wrap::before {
  left: 8%;
  top: 18%;
}

.discord-art-wrap::after {
  bottom: 16%;
  right: 12%;
}

.discord-art {
  animation: discordFloat 4.5s ease-in-out infinite;
  filter: drop-shadow(0 18px 0 rgba(0, 0, 0, 0.18));
  max-height: 440px;
  max-width: 100%;
  object-fit: contain;
}

.discord-copy {
  max-width: 650px;
}

.discord-title-row {
  align-items: center;
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.discord-icon {
  align-items: center;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 5px 0 #154ebc;
  color: #5865f2;
  display: inline-flex;
  flex: 0 0 auto;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.discord-icon svg {
  height: 31px;
  width: 31px;
}

.discord-copy h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.discord-copy p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.7;
  margin: 0 0 30px;
  max-width: 620px;
}

.discord-join-btn {
  align-items: center;
  background: #00a2ff;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 6px 0 #1795c7;
  color: #08111f;
  display: inline-flex;
  font-size: 1.12rem;
  font-weight: 900;
  gap: 12px;
  justify-content: center;
  min-height: 66px;
  padding: 18px 34px;
  text-decoration: none;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    filter 0.12s ease;
  width: min(100%, 520px);
}

.discord-join-btn svg {
  height: 28px;
  width: 28px;
}

.discord-join-btn:hover {
  filter: brightness(1.04);
  transform: translateY(2px);
  box-shadow: 0 4px 0 #1795c7;
}

.discord-join-btn:active {
  transform: translateY(6px);
  box-shadow: none;
}

[data-server-ip] {
  cursor: pointer;
  transition: color 0.16s ease, transform 0.16s ease;
}

[data-server-ip]:hover,
[data-server-ip]:focus-visible {
  color: var(--blue);
  outline: none;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .discord-showcase {
    padding: 110px 0;
  }

  .discord-grid {
    gap: 28px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .discord-title-row {
    justify-content: center;
  }

  .discord-copy {
    margin: 0 auto;
  }

  .discord-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .discord-art-wrap {
    min-height: 280px;
  }

  .discord-art {
    max-height: 300px;
  }
}

@media (max-width: 560px) {
  .discord-showcase {
    padding: 100px 18px;
  }

  .discord-title-row {
    flex-direction: column;
  }

  .discord-join-btn {
    min-height: 60px;
    padding: 16px 24px;
  }
}
/* ---------- CLEANER UI ENHANCEMENT ---------- */
.hero-grid {
  align-items: stretch;
}

.hero-grid > div:first-child {
  align-self: center;
}

.hero-card {
  align-items: center;
  background: #172942;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 12px 0 rgba(0,0,0,0.34);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 410px;
  padding: 34px;
  text-align: center;
}

.hero-card img {
  height: 150px;
  margin-bottom: 24px;
  object-fit: contain;
}

.hero-card h2 {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 12px;
}

.hero-card p {
  color: var(--muted);
  max-width: 360px;
}

.hero-card-ip {
  background: #213a5a;
  border-radius: 18px;
  margin-top: 24px;
  padding: 14px 18px;
  width: 100%;
}

.hero-card-ip span {
  color: var(--muted);
  display: block;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-card-ip strong {
  color: var(--blue);
  display: block;
  font-size: 1.22rem;
  margin-top: 2px;
}

.join-card,
.product-card,
.leader-card,
.summary-card,
.rule-card,
.legal-card,
.login-card,
.player-bar,
.orders {
  border-color: #35577d;
}

.join-card:hover,
.product-card:hover,
.leader-row:hover {
  transform: translateY(-2px);
}

.join-card,
.product-card,
.leader-row {
  transition: transform 0.12s ease;
}

.shop-layout .section-head {
  background: #0f1e33;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 10px 0 rgba(0,0,0,0.3);
  margin-bottom: 32px;
  max-width: none;
  padding: 34px;
}

.shop-layout .section-head h1 {
  margin-bottom: 10px;
}

.login-card,
.player-bar {
  box-shadow: 0 10px 0 rgba(0,0,0,0.3);
}

.product-card {
  position: relative;
}

.product-badge {
  position: absolute;
  right: 18px;
  top: 18px;
}

.product-card h3 {
  padding-right: 92px;
}

.active-leader-card {
  border-radius: 28px;
  padding: 28px;
}

.leaderboard-tabs {
  max-width: 900px;
}

.stats-summary {
  margin-left: auto;
  margin-right: auto;
  max-width: 1050px;
}

@media (max-width: 960px) {
  .hero-card {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .hero-card {
    padding: 26px;
  }

  .product-badge {
    position: static;
  }

  .product-card h3 {
    padding-right: 0;
  }
}

/* ---------- PLAYER FACES + STATS TABS ---------- */
.buyer-info {
  align-items: center;
  display: flex;
  gap: 14px;
}

.player-face {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.25);
  height: 54px;
  image-rendering: pixelated;
  object-fit: cover;
  width: 54px;
}

.leaderboard-tabs {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 8px 0 rgba(0,0,0,0.32);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 auto 28px;
  padding: 14px;
}

.leaderboard-tab {
  background: var(--card-2);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 4px 0 #06101d;
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
  min-height: 46px;
  padding: 11px 18px;
  text-transform: uppercase;
}

.leaderboard-tab.active,
.leaderboard-tab:hover {
  background: var(--blue);
  box-shadow: 0 4px 0 var(--blue-dark);
  color: #04101c;
}

.leaderboard-grid {
  grid-template-columns: 1fr;
}

.active-leader-card {
  margin: 0 auto;
  max-width: 900px;
  width: 100%;
}

.active-leader-card h3 {
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.leader-page-meta {
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 18px;
}

.leader-row {
  min-height: 72px;
}

.avatar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.24);
  flex: 0 0 48px;
  height: 48px;
  image-rendering: pixelated;
  object-fit: cover;
  width: 48px;
}

.leader-name {
  font-size: 1.05rem;
}

.leader-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}

.page-btn {
  background: var(--card-2);
  border: 0;
  border-radius: 13px;
  box-shadow: 0 4px 0 #06101d;
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
  min-height: 42px;
  padding: 10px 14px;
}

.page-btn.active,
.page-btn:hover:not(:disabled) {
  background: var(--blue);
  box-shadow: 0 4px 0 var(--blue-dark);
  color: #04101c;
}

.page-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@media (max-width: 760px) {
  .buyer-info {
    align-items: flex-start;
  }

  .leaderboard-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .leaderboard-tab {
    width: 100%;
  }

  .leader-row {
    align-items: flex-start;
    display: grid;
    grid-template-columns: 38px 48px 1fr;
  }

  .leader-value {
    grid-column: 3;
  }
}

@media (max-width: 430px) {
  .hero-actions,
  .filter-tabs {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }
}

/* ---------- UI POLISH OVERRIDES ---------- */
body::before {
  background:
    linear-gradient(90deg, rgba(40,169,232,0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(40,169,232,0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  content: '';
  inset: 0;
  opacity: 0.28;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.container,
.nav-container {
  max-width: 1240px;
  padding-left: 26px;
  padding-right: 26px;
}

.navbar {
  background: #0d1b2f;
  box-shadow: 0 6px 0 rgba(0,0,0,0.18);
}

.nav-container {
  height: 82px;
}

.nav-logo img {
  height: 54px;
}

.nav-links {
  gap: 10px;
}

.nav-links a,
.mobile-menu a {
  background: transparent;
  border-radius: 14px;
  padding: 11px 16px;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-menu a:hover,
.mobile-menu a.active {
  background: #213a5a;
}

.hero {
  padding: 128px 0 92px;
}

.hero-grid {
  gap: 58px;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
}

.hero h1 {
  font-size: clamp(3.8rem, 9vw, 7.3rem);
  margin-bottom: 28px;
}

.hero-sub {
  max-width: 720px;
}

.hero-actions {
  gap: 16px;
  margin-top: 34px;
}

.btn {
  min-height: 52px;
  padding: 14px 23px;
}

.btn-primary {
  box-shadow: 0 5px 0 var(--blue-dark);
}

.card,
.join-card,
.leader-card,
.summary-card,
.rule-card,
.legal-card,
.product-card {
  box-shadow: 0 10px 0 rgba(0,0,0,0.34);
}

.store-preview,
.discord-band {
  background: #0f1e33;
}

.section {
  padding: 88px 0;
}

.section-head {
  margin-bottom: 34px;
}

.join-card {
  padding: 20px;
}

.join-shot,
.join-shot-placeholder {
  height: 260px;
  margin-bottom: 18px;
}

.join-shot + .join-shot-placeholder {
  display: none !important;
}

.join-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.join-steps .join-card {
  padding: 24px;
}

.join-steps .join-card h3 {
  font-size: 1.35rem;
}

.join-steps .join-card p {
  font-size: 1.02rem;
}

.icon-box {
  height: 50px;
  width: 50px;
}

.shop-layout {
  padding: 64px 0 92px;
}

.login-card {
  max-width: 680px;
}

.player-bar,
.filter-row {
  margin-bottom: 30px;
}

.filter-tab {
  min-height: 46px;
  padding: 11px 18px;
}

.prod-grid {
  gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.product-card {
  padding: 22px;
}

.product-art {
  height: 172px;
}

.product-art img {
  max-height: 138px;
  max-width: 172px;
}

.product-card h3 {
  font-size: 1.32rem;
  margin-bottom: 10px;
}

.product-card .description {
  margin-bottom: 18px;
}

.product-price {
  font-size: 1.38rem;
}

.footer {
  background: #0d1b2f;
}

@media (max-width: 960px) {
  .hero {
    padding-top: 88px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-container {
    height: 72px;
  }

  .hero {
    padding: 64px 0 58px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 5.4rem);
  }
}

/* ---------- PREMIUM STORE CARD EFFECTS ---------- */
.shop-layout,
.store-preview {
  background:
    radial-gradient(circle at 12% 8%, rgba(40, 169, 232, 0.18), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(75, 129, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #040914 0%, #071322 46%, #050b14 100%);
  color: var(--text);
  position: relative;
}

.shop-layout::before,
.store-preview::before {
  display: none;
}

.shop-layout > *,
.store-preview > * {
  position: relative;
  z-index: 1;
}

.shop-layout .section-head h1,
.shop-layout .section-head p,
.store-preview .section-head h2,
.store-preview .section-head p {
  color: var(--text);
}

.prod-grid {
  align-items: stretch;
  gap: 34px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.product-card.premium-product-card {
  --card-accent: #34aef2;
  --card-accent-dark: #1080c9;
  --card-chip: rgba(52, 174, 242, 0.16);
  background:
    linear-gradient(160deg, rgba(8, 16, 29, 0.98), rgba(4, 9, 18, 0.98)) padding-box,
    linear-gradient(145deg, rgba(52,174,242,0.8), rgba(255,255,255,0.1), rgba(52,174,242,0.34)) border-box;
  border: 3px solid transparent;
  border-radius: 18px;
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.42),
    0 8px 0 rgba(0, 0, 0, 0.28);
  color: var(--text);
  isolation: isolate;
  overflow: hidden;
  padding: 30px 28px 26px;
  position: relative;
  text-align: center;
  transform: translateY(0) scale(1);
  transition:
    transform 240ms cubic-bezier(.2,.8,.2,1),
    box-shadow 240ms ease,
    border-color 240ms ease,
    filter 240ms ease;
}

.product-card.premium-product-card::before {
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,0.95), transparent 18%),
    linear-gradient(90deg, transparent, rgba(255,255,255,0.82), transparent);
  content: "";
  height: 160%;
  left: -85%;
  opacity: 0;
  position: absolute;
  top: -30%;
  transform: rotate(16deg);
  transition: left 700ms ease, opacity 220ms ease;
  width: 42%;
  z-index: 3;
}

.product-card.premium-product-card::after {
  background:
    radial-gradient(circle, rgba(52,174,242,0.1) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255,255,255,0.12) 0 1px, transparent 2px);
  background-position: 0 0, 12px 18px;
  background-size: 28px 28px, 34px 34px;
  content: "";
  inset: 0;
  opacity: 0.42;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.product-card.premium-product-card:hover {
  box-shadow:
    0 26px 55px rgba(35, 111, 170, 0.24),
    0 10px 0 rgba(72, 166, 224, 0.18);
  filter: saturate(1.08);
  transform: translateY(-10px) scale(1.018);
}

.product-card.premium-product-card:hover::before {
  left: 130%;
  opacity: 1;
}

.premium-product-card.best-card {
  --card-accent: #ffc247;
  --card-accent-dark: #b77900;
  --card-chip: #fff0cb;
  background:
    linear-gradient(160deg, rgba(14, 11, 5, 0.99), rgba(5, 8, 15, 0.99)) padding-box,
    linear-gradient(145deg, #ffd66b, #ffad1f, rgba(255,255,255,0.16)) border-box;
  box-shadow:
    0 28px 55px rgba(198, 126, 0, 0.2),
    0 8px 0 rgba(255, 174, 35, 0.45);
  transform: translateY(-8px) scale(1.03);
}

.premium-product-card.best-card:hover {
  transform: translateY(-16px) scale(1.045);
}

.premium-product-card.best-card .product-art {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 187, 47, 0.26), transparent 58%),
    linear-gradient(180deg, rgba(255, 194, 71, 0.1), rgba(5, 9, 18, 0.96));
}

.premium-product-card.rank-card:not(.best-card) {
  --card-accent: #34aef2;
  --card-accent-dark: #0c7ec8;
}

.premium-product-card.crate-card {
  --card-accent: #56d882;
  --card-accent-dark: #14964f;
}

.premium-product-card.mvp-card:not(.best-card) {
  --card-accent: #8e65ff;
  --card-accent-dark: #5730c6;
}

.product-ribbon {
  align-items: center;
  background: linear-gradient(135deg, #ffd45e, #ffb132);
  box-shadow: inset 0 -2px 0 rgba(156, 91, 0, 0.14);
  color: #6c4200;
  display: flex;
  font-size: 0.88rem;
  font-weight: 1000;
  height: 42px;
  justify-content: center;
  left: 0;
  letter-spacing: 0.06em;
  position: absolute;
  right: 0;
  text-transform: uppercase;
  top: 0;
  z-index: 4;
}

.product-ribbon::before,
.product-ribbon::after {
  background: #fff8db;
  border-radius: 2px;
  box-shadow:
    0 0 0 3px rgba(255, 248, 219, 0.16),
    0 0 18px rgba(255, 255, 255, 0.8);
  content: "";
  height: 10px;
  position: absolute;
  top: 14px;
  transform: rotate(45deg);
  width: 10px;
  animation: ribbonStarDrift 1.8s ease-in-out infinite alternate;
}

.product-ribbon::before {
  left: 12px;
}

.product-ribbon::after {
  right: 12px;
}

.product-ribbon.blue-ribbon {
  background: linear-gradient(135deg, #56caff, #2ba9ee);
  color: #073154;
}

.premium-product-card.best-card .product-art,
.premium-product-card:has(.product-ribbon) .product-art {
  margin-top: 26px;
}

.product-card.premium-product-card .product-art {
  background:
    radial-gradient(circle at 50% 45%, rgba(52,174,242,0.2), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(0,0,0,0.18));
  border: 0;
  border-radius: 24px;
  box-shadow: inset 0 -10px 25px rgba(39, 169, 232, 0.08);
  height: 182px;
  margin-bottom: 20px;
  position: relative;
}

.premium-product-card .product-art img {
  filter: drop-shadow(0 18px 18px rgba(18, 75, 126, 0.22));
  max-height: 152px;
  max-width: 190px;
  position: relative;
  transition: transform 420ms cubic-bezier(.2,.8,.2,1), filter 300ms ease;
  z-index: 2;
}

.premium-product-card:hover .product-art img {
  animation: premiumFloat 2.6s ease-in-out infinite;
  filter: drop-shadow(0 24px 22px rgba(18, 75, 126, 0.28));
  transform: translateY(-8px) rotate(-2deg) scale(1.08);
}

.art-glow {
  animation: glowPulse 3.2s ease-in-out infinite;
  background: radial-gradient(circle, color-mix(in srgb, var(--card-accent) 54%, white), transparent 65%);
  border-radius: 50%;
  filter: blur(4px);
  height: 132px;
  opacity: 0.46;
  position: absolute;
  width: 132px;
}

.product-card.premium-product-card .product-badge {
  align-self: center;
  background: var(--card-chip);
  border-radius: 8px;
  color: var(--card-accent-dark);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  margin: 0 auto 12px;
  padding: 7px 13px;
}

.product-card.premium-product-card h3 {
  color: var(--white);
  font-size: clamp(1.28rem, 2vw, 1.55rem);
  line-height: 1.18;
  margin-bottom: 8px;
}

.product-card.premium-product-card .description {
  color: #a8b7cd;
  font-size: 0.98rem;
  line-height: 1.45;
  margin-bottom: 16px;
  min-height: 2.8em;
}

.product-card.premium-product-card .product-price {
  color: var(--card-accent);
  font-size: 1.55rem;
  font-weight: 1000;
  margin-bottom: 8px;
  text-shadow: 0 0 18px color-mix(in srgb, var(--card-accent) 38%, transparent);
}

.billing-chip {
  align-self: center;
  background: var(--card-chip);
  border-radius: 7px;
  color: var(--card-accent-dark);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.09em;
  margin: 0 auto 24px;
  padding: 6px 12px;
  text-transform: uppercase;
}

.product-actions {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 56px 1fr;
  margin-top: auto;
}

.premium-product-card .gift-button {
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid color-mix(in srgb, var(--card-accent) 35%, transparent);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(35, 111, 170, 0.13);
  color: var(--card-accent-dark);
  cursor: pointer;
  display: flex;
  font-size: 1.24rem;
  height: 56px;
  justify-content: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  width: 56px;
}

.premium-product-card .gift-button:hover {
  background: color-mix(in srgb, var(--card-accent) 18%, rgba(255,255,255,0.06));
  box-shadow: 0 12px 24px rgba(35, 111, 170, 0.18);
  transform: translateY(-3px) rotate(-6deg);
}

.premium-product-card .btn-primary {
  align-items: center;
  background: linear-gradient(180deg, var(--card-accent), color-mix(in srgb, var(--card-accent) 82%, #0074bd));
  border: 0;
  border-radius: 999px;
  box-shadow:
    0 7px 0 color-mix(in srgb, var(--card-accent-dark) 72%, #063d65),
    0 16px 22px color-mix(in srgb, var(--card-accent) 24%, transparent);
  color: #ffffff;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 1000;
  gap: 10px;
  justify-content: center;
  min-height: 56px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.15);
}

.premium-product-card.best-card .btn-primary {
  color: #2d1c00;
  text-shadow: none;
}

.premium-product-card .btn-primary:hover {
  box-shadow:
    0 9px 0 color-mix(in srgb, var(--card-accent-dark) 72%, #063d65),
    0 20px 28px color-mix(in srgb, var(--card-accent) 32%, transparent);
  transform: translateY(-4px);
}

.cart-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.card-spark {
  height: 18px;
  animation: sparkleFade 2.2s ease-in-out infinite;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 18px;
  z-index: 5;
}

.card-spark::before,
.card-spark::after {
  background: color-mix(in srgb, var(--card-accent) 72%, white);
  border-radius: 999px;
  box-shadow: 0 0 18px color-mix(in srgb, var(--card-accent) 34%, transparent);
  content: "";
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.card-spark::before {
  height: 100%;
  width: 4px;
}

.card-spark::after {
  height: 4px;
  width: 100%;
}

.spark-one {
  right: 26px;
  top: 82px;
}

.spark-two {
  left: 28px;
  top: 46%;
  transform: scale(0.75);
}

.premium-product-card:hover .spark-one {
  animation: sparkleFade 1.25s ease-in-out infinite, sparklePop 900ms ease infinite alternate;
}

.premium-product-card:hover .spark-two {
  animation: sparkleFade 1.45s ease-in-out infinite 160ms, sparklePop 1100ms ease infinite alternate-reverse;
}

.css-cart-icon {
  border: 2px solid currentColor;
  border-top: 0;
  display: inline-block;
  height: 13px;
  position: relative;
  width: 17px;
}

.css-cart-icon::before {
  border-top: 2px solid currentColor;
  content: "";
  height: 8px;
  left: -4px;
  position: absolute;
  top: -6px;
  transform: rotate(18deg);
  width: 8px;
}

.css-cart-icon::after {
  background: currentColor;
  border-radius: 50%;
  box-shadow: 12px 0 0 currentColor;
  content: "";
  height: 4px;
  left: 1px;
  position: absolute;
  top: 15px;
  width: 4px;
}

.css-gift-icon {
  border: 2px solid currentColor;
  display: inline-block;
  height: 18px;
  position: relative;
  width: 18px;
}

.css-gift-icon::before {
  background: currentColor;
  box-shadow: 0 8px 0 currentColor;
  content: "";
  height: 2px;
  left: -3px;
  position: absolute;
  top: 7px;
  width: 22px;
}

.css-gift-icon::after {
  background: currentColor;
  content: "";
  height: 22px;
  left: 7px;
  position: absolute;
  top: -3px;
  width: 2px;
}

.cart-panel {
  background:
    linear-gradient(145deg, rgba(8, 15, 27, 0.99), rgba(3, 7, 14, 0.99));
  border: 1px solid rgba(56, 169, 232, 0.28);
  border-radius: 24px;
  box-shadow: 0 12px 0 rgba(0,0,0,0.32), 0 24px 48px rgba(0,0,0,0.28);
  margin: 0 0 34px;
  padding: 22px;
}

.cart-page .cart-panel {
  margin-inline: auto;
  max-width: 900px;
}

.cart-player-card {
  margin: 0 auto 24px;
  max-width: 900px;
}

.cart-head,
.cart-footer,
.cart-item {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.cart-head {
  margin-bottom: 18px;
}

.cart-head h2 {
  font-size: 1.45rem;
}

.cart-count {
  background: var(--blue);
  border-radius: 999px;
  color: #04101c;
  font-size: 0.8rem;
  font-weight: 1000;
  padding: 7px 12px;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-empty {
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(56,169,232,0.32);
  border-radius: 16px;
  color: var(--muted);
  padding: 16px;
}

.cart-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(56,169,232,0.2);
  border-radius: 18px;
  padding: 12px;
}

.cart-item img {
  height: 54px;
  object-fit: contain;
  width: 54px;
}

.cart-item-main {
  flex: 1;
  min-width: 0;
}

.cart-item-main strong,
.cart-item-main span {
  display: block;
}

.cart-item-main span {
  color: var(--blue);
  font-weight: 900;
}

.qty-controls {
  align-items: center;
  background: rgba(0,0,0,0.2);
  border-radius: 999px;
  display: flex;
  gap: 10px;
  padding: 6px;
}

.qty-btn,
.cart-remove {
  align-items: center;
  background: rgba(56,169,232,0.16);
  border: 1px solid rgba(56,169,232,0.26);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-weight: 1000;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.cart-remove {
  background: rgba(239, 100, 100, 0.15);
  border-color: rgba(239, 100, 100, 0.3);
  position: relative;
}

.cart-remove::before,
.cart-remove::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 2px;
  left: 8px;
  position: absolute;
  top: 14px;
  width: 14px;
}

.cart-remove::before {
  transform: rotate(45deg);
}

.cart-remove::after {
  transform: rotate(-45deg);
}

.cart-footer {
  border-top: 1px solid rgba(56,169,232,0.18);
  margin-top: 18px;
  padding-top: 18px;
}

.cart-footer strong {
  color: var(--blue);
  display: block;
  font-size: 1.5rem;
}

.cart-actions {
  display: flex;
  gap: 12px;
}

@keyframes premiumFloat {
  0%, 100% { transform: translateY(-7px) rotate(-2deg) scale(1.08); }
  50% { transform: translateY(-15px) rotate(2deg) scale(1.1); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.38; transform: scale(0.92); }
  50% { opacity: 0.72; transform: scale(1.1); }
}

@keyframes sparklePop {
  from { opacity: 0.45; transform: translateY(0) scale(0.78) rotate(0deg); }
  to { opacity: 1; transform: translateY(-8px) scale(1.12) rotate(90deg); }
}

@keyframes sparkleFade {
  0%, 100% { opacity: 0; filter: blur(2px); }
  35% { opacity: 0.95; filter: blur(0); }
  62% { opacity: 0.35; }
}

@keyframes ribbonStarDrift {
  from { opacity: 0.62; transform: translateY(0) rotate(45deg) scale(0.78); }
  to { opacity: 1; transform: translateY(-5px) rotate(135deg) scale(1.08); }
}

@media (max-width: 760px) {
  .prod-grid {
    grid-template-columns: 1fr;
  }

  .premium-product-card.best-card {
    transform: none;
  }

  .product-card.premium-product-card:hover,
  .premium-product-card.best-card:hover {
    transform: translateY(-6px);
  }

  .product-actions {
    grid-template-columns: 50px 1fr;
  }

  .premium-product-card .gift-button {
    height: 50px;
    width: 50px;
  }

  .cart-head,
  .cart-footer,
  .cart-item {
    align-items: stretch;
    flex-direction: column;
  }

  .cart-actions {
    width: 100%;
  }

  .cart-actions .btn {
    flex: 1;
  }

  .shop-tools {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .shop-tools .btn,
  .shop-tools .search-wrap {
    width: 100%;
  }

  .qty-controls {
    justify-content: center;
  }
}

