/* ==========================================================================
   RAGELAND MINECRAFT STORE - CANONICAL FIGMA DESIGN SYSTEM
   Supports Light / Dark Themes, Voxel 3D Animations, Rich Micro-Interactions,
   Shopping Cart Drawer, Full Dossier & SuperAdmin Configuration
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@700;800&display=swap");

:root, [data-theme="light"] {
  --font-main: "Inter", Arial, sans-serif;
  --font-heading: "Plus Jakarta Sans", "Inter", sans-serif;
  
  --bg-page: #f7fafb;
  --bg-card: #ffffff;
  --bg-card-border: #e1eaec;
  --bg-input: #f8fafb;
  --bg-surface: #eff9fb;
  
  --text-main: #10242a;
  --text-muted: #74878c;
  --text-dim: #97a7ab;
  
  --cyan: #54daf4;
  --cyan-dark: #0c8ba2;
  --cyan-subtle: #e9faff;
  --cyan-glow: rgba(84, 218, 244, 0.24);
  
  --header-bg: rgba(255, 255, 255, 0.92);
  --header-border: #ffffff;
  --header-shadow: 0 12px 38px rgba(15, 52, 61, 0.08);

  --art-cyan-bg: #e7fbff;
  --art-violet-bg: #f2efff;
  --art-orange-bg: #fff2eb;
  --art-blue-bg: #edf3ff;
  --art-lime-bg: #f3fae9;
  --art-rose-bg: #fff0f4;
  --art-gold-bg: #fefce8;
}

[data-theme="dark"] {
  --bg-page: #080e12;
  --bg-card: #0e181f;
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-input: #060b0e;
  --bg-surface: #14232c;
  
  --text-main: #f0f6f8;
  --text-muted: #869da7;
  --text-dim: #546b74;
  
  --cyan: #54daf4;
  --cyan-dark: #16bedb;
  --cyan-subtle: #102730;
  --cyan-glow: rgba(84, 218, 244, 0.35);
  
  --header-bg: rgba(14, 24, 31, 0.90);
  --header-border: rgba(255, 255, 255, 0.1);
  --header-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);

  --art-cyan-bg: rgba(84, 218, 244, 0.08);
  --art-violet-bg: rgba(154, 124, 255, 0.08);
  --art-orange-bg: rgba(255, 139, 85, 0.08);
  --art-blue-bg: rgba(89, 136, 255, 0.08);
  --art-lime-bg: rgba(166, 229, 87, 0.08);
  --art-rose-bg: rgba(250, 111, 152, 0.08);
  --art-gold-bg: rgba(251, 191, 36, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background: var(--bg-page);
  color: var(--text-main);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

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

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header-container {
  position: sticky;
  top: 16px;
  z-index: 50;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .header-container {
    padding: 0 32px;
  }
}

.header-inner {
  margin: 0 auto;
  display: flex;
  height: 72px;
  max-width: 1440px;
  align-items: center;
  justify-content: space-between;
  border-radius: 22px;
  border: 1px solid var(--header-border);
  background: var(--header-bg);
  padding: 0 20px;
  box-shadow: var(--header-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@media (min-width: 768px) {
  .header-inner {
    padding: 0 28px;
  }
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  position: relative;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #10242a;
  color: #54daf4;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: rotate(-5deg);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 300ms ease, background 200ms ease;
  animation: logoPulse 4s ease-in-out infinite;
}

.logo-box:hover .logo-mark {
  transform: rotate(10deg) scale(1.12);
  box-shadow: 0 0 25px rgba(84, 218, 244, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  background: #091c21;
}

@keyframes logoPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(84, 218, 244, 0);
  }
  50% {
    box-shadow: 0 0 16px rgba(84, 218, 244, 0.35);
  }
}

.logo-mark::after {
  position: absolute;
  width: 28px;
  height: 2px;
  background: #54daf4;
  content: "";
  transform: rotate(-45deg);
  transition: transform 300ms ease, width 300ms ease;
}

.logo-box:hover .logo-mark::after {
  transform: rotate(135deg);
  width: 32px;
}

.logo-mark span {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 800;
  transform: rotate(5deg);
  transition: transform 300ms ease, color 200ms ease;
}

.logo-box:hover .logo-mark span {
  transform: rotate(-10deg) scale(1.05);
  color: #ffffff;
}

.logo-text-brand {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-main);
  transition: color 200ms ease;
}

.logo-text-brand span {
  color: #16bedb;
  transition: text-shadow 200ms ease;
}

.logo-box:hover .logo-text-brand span {
  text-shadow: 0 0 12px rgba(22, 190, 219, 0.6);
}

.logo-text-sub {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.nav-links-wrap {
  display: none;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .nav-links-wrap {
    display: flex;
  }
}

.nav-link {
  position: relative;
  padding: 12px 0;
  color: var(--text-muted);
  transition: color 180ms ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: #54daf4;
  content: "";
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  cursor: pointer;
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1), background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.theme-toggle-btn:hover {
  border-color: #54daf4;
  color: var(--cyan-dark);
  transform: rotate(180deg) scale(1.08);
  box-shadow: 0 0 16px rgba(84, 218, 244, 0.35);
}

.theme-toggle-btn:active {
  transform: rotate(360deg) scale(0.92);
}

/* ==========================================================================
   CURRENCY DROPDOWN (ВЫПАДАЮЩИЙ СПИСОК ВАЛЮТ)
   ========================================================================== */
.currency-dropdown {
  position: relative;
  display: inline-block;
  user-select: none;
}

.currency-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 160ms ease;
}

.currency-dropdown-toggle:hover {
  border-color: #54daf4;
  background: var(--cyan-subtle);
  color: var(--cyan-dark);
}

.currency-dropdown-toggle svg {
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-muted);
}

.currency-dropdown.open .currency-dropdown-toggle svg {
  transform: rotate(180deg);
  color: var(--cyan-dark);
}

.currency-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 170px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
  padding: 6px;
  z-index: 100;
  display: none;
  flex-direction: column;
  gap: 4px;
  animation: scaleIn 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.currency-dropdown.open .currency-dropdown-menu {
  display: flex;
}

.currency-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 140ms ease;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.currency-dropdown-item:hover {
  background: var(--bg-surface);
  color: var(--text-main);
}

.currency-dropdown-item.active {
  background: var(--cyan-subtle) !important;
  color: var(--cyan-dark) !important;
  font-weight: 800 !important;
}

.currency-dropdown-item span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 6px;
  background: var(--bg-surface);
  font-weight: 800;
  font-size: 12px;
  color: inherit;
}

.cart-trigger-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  transition: all 150ms ease;
}

.cart-trigger-btn:hover {
  border-color: #54daf4;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(84, 218, 244, 0.25);
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #54daf4;
  color: #0b3139;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  animation: scaleIn 200ms ease;
}

.profile-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid var(--bg-card-border);
  background: var(--bg-card);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  transition: all 150ms ease;
}

.profile-trigger-btn:hover {
  border-color: #54daf4;
  background: var(--cyan-subtle);
  transform: translateY(-2px);
}

.support-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 99px;
  border: 1px solid var(--bg-card-border);
  background: var(--bg-surface);
  color: var(--text-main);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  transition: all 180ms ease;
}

.support-pill:hover {
  border-color: #54daf4;
  background: var(--cyan-subtle);
  color: var(--cyan-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(84, 218, 244, 0.2);
}

.ip-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 99px;
  background: var(--cyan-subtle);
  border: 1px solid rgba(84, 218, 244, 0.3);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 800;
  color: var(--cyan-dark);
  cursor: pointer;
  user-select: none;
  transition: all 180ms ease;
}

.ip-chip:hover {
  border-color: #54daf4;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(84, 218, 244, 0.25);
}

@media (min-width: 1024px) {
  .ip-chip {
    display: block;
  }
}

.ip-chip:hover {
  transform: scale(1.04);
}

/* ==========================================================================
   HERO BANNER & 3D ANIMATIONS (CANONICAL FIGMA)
   ========================================================================== */
.hero-shell {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 76% 28%, rgba(84, 218, 244, 0.21), transparent 28%),
    linear-gradient(120deg, #071a20 0%, #0b2931 58%, #0d3942 100%);
  box-shadow: 0 35px 65px rgba(10, 43, 51, 0.2);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, transparent 15%, black);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
  animation: pulseGlow 8s ease-in-out infinite alternate;
}

.glow-one {
  top: -200px;
  right: -100px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(84, 218, 244, 0.4);
  box-shadow: 0 0 80px rgba(84, 218, 244, 0.18);
}

.glow-two {
  right: 20%;
  bottom: -220px;
  width: 420px;
  height: 420px;
  background: rgba(84, 218, 244, 0.08);
  animation-delay: -4s;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 58%;
  padding: 104px 0 72px 7%;
}

@media (max-width: 960px) {
  .hero-copy {
    width: 100%;
    padding: 60px 24px;
  }
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #11afca;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  color: #8deeff;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #54daf4;
  box-shadow: 0 0 0 5px rgba(84, 218, 244, 0.12);
  animation: pulseDot 2s infinite;
}

.hero-copy h1 {
  max-width: 790px;
  margin: 0;
  color: white;
  font-family: var(--font-heading);
  font-size: clamp(40px, 5.3vw, 82px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero-copy h1 span {
  color: #54daf4;
}

.hero-copy > p {
  max-width: 560px;
  margin: 28px 0 34px;
  color: #b7cbd0;
  font-size: 16px;
  line-height: 1.65;
}

.primary-button,
.secondary-button,
.primary-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 14px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button, .primary-btn {
  background: #54daf4;
  color: #06252c;
  box-shadow: 0 10px 25px rgba(84, 218, 244, 0.2);
}

.primary-button:hover,
.secondary-button:hover,
.primary-btn:hover {
  transform: translateY(-2px);
}

.primary-button:hover, .primary-btn:hover {
  box-shadow: 0 14px 30px rgba(84, 218, 244, 0.35);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: white;
}

.hero-stats {
  display: flex;
  gap: 42px;
  margin-top: 55px;
  flex-wrap: wrap;
}

.hero-stats div {
  display: grid;
  gap: 4px;
}

.hero-stats strong {
  color: white;
  font-size: 16px;
  font-weight: 800;
}

.hero-stats span {
  color: #769198;
  font-size: 10px;
  font-weight: 600;
}

.hero-visual {
  position: absolute;
  top: 50%;
  right: 5%;
  width: 39%;
  height: 76%;
  transform: translateY(-50%);
}

@media (max-width: 960px) {
  .hero-visual {
    display: none;
  }
}

.server-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
}

.main-card {
  inset: 8% 8% 9% 10%;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), transparent 46%),
    linear-gradient(145deg, #146070, #092a32);
  box-shadow:
    0 40px 70px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  transform: rotate(7deg);
  animation: floatMainCard 6s ease-in-out infinite alternate;
}

.main-card::after {
  position: absolute;
  right: -40%;
  bottom: -22%;
  width: 120%;
  height: 50%;
  background: #54daf4;
  content: "";
  opacity: 0.13;
  transform: rotate(-20deg);
}

.back-card {
  inset: 2% 16% 17% 2%;
  padding: 23px;
  background: #54daf4;
  color: #0b3139;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  transform: rotate(-8deg);
  animation: floatBackCard 6s ease-in-out infinite alternate;
  animation-delay: -3s;
}

.card-topline,
.card-bottomline {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  color: #b9f5ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.card-topline i {
  font-size: 22px;
  font-style: normal;
}

.mega-r {
  position: absolute;
  top: 46%;
  left: 50%;
  color: #54daf4;
  font-family: var(--font-heading);
  font-size: clamp(150px, 17vw, 260px);
  font-weight: 800;
  line-height: 0.8;
  text-shadow: 15px 18px 0 rgba(2, 29, 35, 0.35);
  transform: translate(-50%, -50%);
}

.card-bottomline {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  color: #72aeb9;
}

.float-tag {
  position: absolute;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(6, 34, 41, 0.82);
  padding: 10px 14px;
  color: #c6f7ff;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.tag-one {
  top: 16%;
  right: 0;
  animation: floatTagOne 4s ease-in-out infinite alternate;
}

.tag-two {
  bottom: 12%;
  left: 0;
  animation: floatTagTwo 4s ease-in-out infinite alternate;
  animation-delay: -2s;
}

.section-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

.search-box {
  display: flex;
  width: min(100%, 330px);
  height: 50px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  background: var(--bg-card);
  padding: 0 16px;
  color: var(--text-dim);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
}

/* ==========================================================================
   CATALOG LAYOUT & CATEGORIES
   ========================================================================== */
/* ==========================================================================
   CATALOG LAYOUT & CATEGORIES
   ========================================================================== */
.catalog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 960px) {
  .catalog-layout {
    grid-template-columns: 260px 1fr;
    align-items: start;
  }
}

.category-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(15, 52, 61, 0.04);
}

[data-theme="dark"] .category-panel {
  background: #0e181f;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

@media (min-width: 960px) {
  .category-panel {
    position: sticky;
    top: 104px;
  }
}

@media (max-width: 959px) {
  .category-panel {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .category-panel::-webkit-scrollbar {
    display: none;
  }
  .category-panel > div:first-child,
  .aside-help {
    display: none !important;
  }
}

.category-button {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  border-radius: 14px;
  padding: 10px 14px;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

[data-theme="dark"] .category-button {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.07);
  color: #e2eff2;
}

@media (max-width: 959px) {
  .category-button {
    margin-bottom: 0;
    min-width: max-content;
    padding: 8px 14px;
    grid-template-columns: 28px auto auto;
    gap: 8px;
  }
}

.category-button:hover {
  border-color: #54daf4;
  background: var(--cyan-subtle);
  transform: translateX(3px);
  color: var(--cyan-dark);
}

[data-theme="dark"] .category-button:hover {
  border-color: rgba(84, 218, 244, 0.45);
  background: rgba(84, 218, 244, 0.1);
  color: #54daf4;
}

@media (max-width: 959px) {
  .category-button:hover {
    transform: translateY(-2px);
  }
}

.category-button.selected {
  background: linear-gradient(135deg, #54daf4 0%, #38bdf8 100%) !important;
  color: #051a1f !important;
  border-color: #54daf4 !important;
  box-shadow: 0 8px 24px rgba(84, 218, 244, 0.38) !important;
}

.category-symbol {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  font-weight: 800;
  font-size: 14px;
  color: inherit;
  transition: all 180ms ease;
}

[data-theme="dark"] .category-symbol {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.06);
  color: #8deeff;
}

[data-theme="dark"] .category-button:hover .category-symbol {
  background: rgba(84, 218, 244, 0.2);
  border-color: rgba(84, 218, 244, 0.3);
  color: #54daf4;
}

@media (max-width: 959px) {
  .category-symbol {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}

.category-button.selected .category-symbol {
  background: rgba(5, 26, 31, 0.18) !important;
  border-color: transparent !important;
  color: #051a1f !important;
}

.category-button em {
  min-width: 24px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 3px 8px;
  text-align: center;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  color: var(--text-muted);
  transition: all 180ms ease;
}

[data-theme="dark"] .category-button em {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.06);
  color: #869da7;
}

[data-theme="dark"] .category-button:hover em {
  background: rgba(84, 218, 244, 0.2);
  border-color: rgba(84, 218, 244, 0.3);
  color: #54daf4;
}

.category-button.selected em {
  background: rgba(5, 26, 31, 0.18) !important;
  border-color: transparent !important;
  color: #051a1f !important;
}

.aside-help {
  margin-top: 16px;
  border-radius: 18px;
  background: #10242a;
  padding: 20px;
  color: white;
  border: 1px solid rgba(84, 218, 244, 0.15);
}

[data-theme="dark"] .aside-help {
  background: #09151c;
  border-color: rgba(84, 218, 244, 0.18);
}

.aside-help span {
  font-size: 13px;
  font-weight: 800;
  display: block;
}

.aside-help p {
  margin: 6px 0 14px;
  color: #9eb0b5;
  font-size: 11px;
  line-height: 1.5;
}

[data-theme="dark"] .aside-help p {
  color: #869da7;
}

.aside-help a {
  color: #54daf4;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 150ms ease;
}

.aside-help a:hover {
  color: #ffffff;
}

/* ==========================================================================
   RAGE COINS CURRENCY CALCULATOR WIDGET (0.50€ = 50 Rage, +0.10€ = +10 Rage)
   ========================================================================== */
.rage-calculator-card {
  position: relative;
  background: linear-gradient(135deg, #f0faff 0%, #e8f8fc 100%);
  border: 1px solid #c7eff8;
  border-radius: 26px;
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: 0 12px 35px rgba(84, 218, 244, 0.12);
  overflow: hidden;
  transition: all 250ms ease;
}

[data-theme="dark"] .rage-calculator-card {
  background: linear-gradient(135deg, #0c1820 0%, #10232c 100%);
  border-color: rgba(84, 218, 244, 0.28);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(84, 218, 244, 0.1);
}

.rage-calc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #54daf4;
  color: #06252c;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(84, 218, 244, 0.35);
}

.rage-calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 992px) {
  .rage-calc-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
  }
}

.rage-calc-title-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.rage-coin-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.35);
  animation: pulseDot 3s infinite;
  flex-shrink: 0;
}

.rage-calc-title-box h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.rage-calc-title-box p {
  font-size: 13px;
  color: var(--text-muted);
}

.rage-calc-title-box p strong {
  color: var(--cyan-dark);
}

.rage-calc-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.rage-input-wrap label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.rage-input-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 0 16px;
  transition: all 200ms ease;
}

.rage-input-box:focus-within {
  border-color: #54daf4;
  box-shadow: 0 0 0 3px rgba(84, 218, 244, 0.2);
}

.rage-input-box input {
  width: 100%;
  height: 48px;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.rage-input-box span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  white-space: nowrap;
  margin-left: 8px;
}

.rage-slider-wrap {
  margin-bottom: 20px;
}

.rage-range-slider {
  width: 100%;
  height: 8px;
  border-radius: 6px;
  background: var(--bg-card-border);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.rage-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #54daf4;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 10px rgba(84, 218, 244, 0.6);
  cursor: grab;
  transition: transform 150ms ease;
}

.rage-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
}

.rage-slider-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
}

.rage-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rage-preset-btn {
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 160ms ease;
}

.rage-preset-btn:hover {
  border-color: #54daf4;
  color: var(--cyan-dark);
  transform: translateY(-1px);
}

.rage-preset-btn.active {
  background: #54daf4;
  color: #06252c;
  border-color: #54daf4;
  font-weight: 800;
}

.rage-summary-box {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 52, 61, 0.05);
}

[data-theme="dark"] .rage-summary-box {
  background: #0e1b23;
  border-color: rgba(255, 255, 255, 0.08);
}

.rage-summary-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  display: block;
  margin-bottom: 6px;
}

.rage-summary-amount {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1.1;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.25);
  margin-bottom: 6px;
}

.rage-summary-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--cyan-dark);
  margin-bottom: 8px;
}

.rage-summary-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.rage-summary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 480px) {
  .rage-summary-actions {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PRODUCT GRID, VOXEL ART & ANIMATIONS
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--bg-card-border);
  border-radius: 22px;
  background: var(--bg-card);
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 250ms ease;
}

.product-card:hover {
  box-shadow: 0 24px 50px rgba(22, 60, 69, 0.14);
  transform: translateY(-6px);
}

.product-art {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.art-cyan   { --art: #54daf4; --art-dark: #0c8ba2; background: var(--art-cyan-bg); }
.art-violet { --art: #9a7cff; --art-dark: #5938c4; background: var(--art-violet-bg); }
.art-orange { --art: #ff8b55; --art-dark: #c43d21; background: var(--art-orange-bg); }
.art-blue   { --art: #5988ff; --art-dark: #1f4eb9; background: var(--art-blue-bg); }
.art-lime   { --art: #a6e557; --art-dark: #527f1c; background: var(--art-lime-bg); }
.art-rose   { --art: #fa6f98; --art-dark: #af2e59; background: var(--art-rose-bg); }
.art-gold   { --art: #fbbf24; --art-dark: #d97706; background: var(--art-gold-bg); }

/* Custom Product Image */
.product-custom-img-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 2;
}

.product-custom-img {
  max-width: 85%;
  max-height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .product-custom-img {
  transform: scale(1.08) translateY(-4px);
}

.art-orbit {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--art) 45%, transparent);
  border-radius: 50%;
}

.orbit-one {
  top: 22px;
  left: 50%;
  width: 165px;
  height: 165px;
  transform: translateX(-50%);
  animation: rotateOrbitOne 20s linear infinite;
}

.orbit-two {
  top: 52px;
  left: 50%;
  width: 110px;
  height: 110px;
  transform: translateX(-50%);
  animation: rotateOrbitTwo 15s linear infinite;
}

.voxel {
  position: absolute;
  bottom: 20px;
  left: 50%;
  width: 100px;
  transform: translateX(-50%);
  filter: drop-shadow(14px 14px 12px rgba(20, 50, 58, 0.18));
  animation: pulseCrown 4s ease-in-out infinite alternate;
}

[data-theme="dark"] .voxel {
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.7));
}

.voxel-face {
  position: relative;
  display: flex;
  width: 76px;
  height: 76px;
  justify-content: space-around;
  margin: auto;
  border: 8px solid var(--art-dark);
  background: var(--art);
  box-shadow: inset -13px -12px 0 rgba(0, 0, 0, 0.1);
}

.voxel-face span {
  width: 9px;
  height: 13px;
  margin-top: 20px;
  background: #10242a;
}

.voxel-body {
  height: 47px;
  margin-top: 4px;
  background: var(--art-dark);
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  line-height: 47px;
}

.voxel-crown {
  display: flex;
  width: 70px;
  height: 27px;
  align-items: end;
  justify-content: space-between;
  margin: 0 auto -4px;
}

.voxel-crown i {
  width: 20px;
  height: 25px;
  background: #10242a;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.voxel-crown i:nth-child(2) {
  height: 35px;
}

.pixel {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--art);
  box-shadow: 19px 20px 0 color-mix(in srgb, var(--art) 50%, white);
  transform: rotate(15deg);
}

.pixel-a {
  top: 35px;
  left: 18%;
  animation: floatPixelA 5s ease-in-out infinite alternate;
}

.pixel-b {
  right: 18%;
  bottom: 48px;
  animation: floatPixelB 5s ease-in-out infinite alternate;
  animation-delay: -2.5s;
}

.product-content {
  display: flex;
  min-height: 230px;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.product-badge {
  align-self: start;
  border-radius: 99px;
  background: #ebfbfe;
  padding: 6px 9px;
  color: #079ab5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-theme="dark"] .product-badge {
  background: rgba(84, 218, 244, 0.12);
  color: var(--cyan);
}

.product-content h4 {
  margin: 14px 0 8px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.product-content > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.buy-button {
  min-height: 42px;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 800;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
}

.buy-button.add-to-cart-btn {
  background: var(--bg-surface) !important;
  border: 1.5px solid var(--bg-card-border) !important;
  color: var(--text-main) !important;
}

.buy-button.add-to-cart-btn:hover {
  border-color: #54daf4 !important;
  background: var(--cyan-subtle) !important;
  color: #0c8ba2 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(84, 218, 244, 0.25);
}

.buy-button.buy-product-btn {
  background: #10242a !important;
  color: #ffffff !important;
  border: 1.5px solid #10242a !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.buy-button.buy-product-btn:hover {
  background: #54daf4 !important;
  color: #06252c !important;
  border-color: #54daf4 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(84, 218, 244, 0.45);
}

/* ==========================================================================
   PAYMENT SECTION (CANONICAL FIGMA)
   ========================================================================== */
.payment-section {
  background: #0b2228;
  color: white;
}

.payment-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-kicker.light {
  color: #54daf4;
}

.payment-heading h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 55px);
  font-weight: 800;
  letter-spacing: -0.055em;
}

.payment-heading > p {
  max-width: 470px;
  margin: 0;
  color: #8ca4aa;
  font-size: 13px;
  line-height: 1.7;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.payment-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  padding: 17px;
  transition: transform 200ms ease, border-color 200ms ease;
}

.payment-card:hover {
  transform: translateY(-4px);
  border-color: rgba(84, 218, 244, 0.3);
}

.payment-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 12px;
  background: #54daf4;
  color: #09272e;
}

.payment-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.payment-card p {
  margin: 0;
  color: #80999f;
  font-size: 10px;
}

/* ==========================================================================
   SHOPPING CART DRAWER
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(4, 15, 20, 0.65) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 9998 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 250ms ease, visibility 250ms ease !important;
}

.cart-drawer-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.cart-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: 440px !important;
  background: var(--bg-card) !important;
  border-left: 1px solid var(--bg-card-border) !important;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.35) !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  transform: translateX(100%) !important;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.cart-drawer.active {
  transform: translateX(0) !important;
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--bg-card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms ease;
}

.cart-close-btn:hover {
  color: #ff5e7e;
  border-color: #ff5e7e;
  transform: rotate(90deg);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty-state {
  margin: auto;
  text-align: center;
  padding: 40px 20px;
}

.cart-empty-state svg {
  color: var(--text-dim);
  margin-bottom: 16px;
}

.cart-empty-state h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.cart-empty-state p {
  font-size: 13px;
  color: var(--text-muted);
}

.cart-item-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  animation: fadeInUp 200ms ease;
}

.cart-item-thumb {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-thumb img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 800;
  color: #54daf4;
  margin-top: 2px;
}

.cart-qty-ctrls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 10px;
  padding: 4px 6px;
}

.cart-qty-btn {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 120ms ease;
}

.cart-qty-btn:hover {
  background: #54daf4;
  color: #0b3139;
}

.cart-qty-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
  min-width: 16px;
  text-align: center;
}

.cart-item-remove {
  color: var(--text-dim);
  padding: 6px;
  border-radius: 8px;
  transition: all 150ms ease;
}

.cart-item-remove:hover {
  color: #ff5e7e;
  background: rgba(255, 94, 126, 0.1);
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--bg-card-border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.cart-summary-row.total {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  padding-top: 10px;
  border-top: 1px dashed var(--bg-card-border);
}
/* ==========================================================================
   FLOATING BOTTOM-RIGHT CART FAB (Плавающая кнопка корзины)
   ========================================================================== */
.floating-cart-fab {
  position: fixed !important;
  bottom: 28px !important;
  right: 28px !important;
  z-index: 9990 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: #10242a !important;
  color: #ffffff !important;
  border: 1.5px solid #54daf4 !important;
  border-radius: 99px !important;
  padding: 12px 22px !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(84, 218, 244, 0.35) !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  animation: floatTagOne 3s ease-in-out infinite !important;
}

.floating-cart-fab:hover {
  transform: translateY(-4px) scale(1.04) !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5), 0 0 35px rgba(84, 218, 244, 0.55) !important;
  background: #09171b !important;
}

.floating-cart-icon-wrap {
  position: relative;
  display: grid;
  place-items: center;
  color: #54daf4;
}

.floating-cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #ff4d6d;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  box-shadow: 0 2px 8px rgba(255, 77, 109, 0.5);
}

.floating-cart-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.floating-cart-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9eb0b5;
  line-height: 1.1;
}

.floating-cart-total {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #54daf4;
  line-height: 1.2;
}

/* ==========================================================================
   MODALS (CHECKOUT & PROFILE)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(5, 24, 29, 0.72);
  padding: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: min(100%, 560px);
  border-radius: 25px;
  background: var(--bg-card);
  padding: 32px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--bg-card-border);
  animation: scaleIn 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 800;
  transition: all 150ms ease;
}

.modal-close-btn:hover {
  background: #ffeff2;
  color: #ef4444;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-main);
  margin-bottom: 4px;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.form-input-clean {
  width: 100%;
  height: 48px;
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  background: var(--bg-input);
  padding: 0 16px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-input-clean:focus {
  border-color: #54daf4;
  box-shadow: 0 0 0 3px rgba(84, 218, 244, 0.15);
}

.checkout-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.checkout-method-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--bg-surface);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  transition: all 150ms ease;
}

.checkout-method-box:hover {
  border-color: #54daf4;
}

.checkout-method-box.active {
  border-color: #54daf4;
  background: var(--cyan-subtle);
  box-shadow: 0 0 0 2px rgba(84, 218, 244, 0.2);
}

/* ==========================================================================
   ENHANCED PROFILE DASHBOARD
   ========================================================================== */
.profile-header-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background:
    radial-gradient(circle at 90% 10%, rgba(84, 218, 244, 0.2), transparent 40%),
    linear-gradient(135deg, #092027 0%, #102d36 100%);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(84, 218, 244, 0.2);
  color: white;
}

.profile-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.profile-stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
}

.profile-stat-box strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.profile-stat-box span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.profile-orders-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  margin-bottom: 16px;
}

.admin-unlock-box {
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 16px 20px;
  margin-top: 16px;
}

/* ==========================================================================
   ADMIN, DOSSIER & SETTINGS STYLES
   ========================================================================== */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.admin-stats > div {
  display: grid;
  gap: 9px;
  border: 1px solid var(--bg-card-border);
  border-radius: 17px;
  background: var(--bg-card);
  padding: 20px;
}

.admin-stats span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.role-badge.admin { background: #fee2e2; color: #dc2626; }
.role-badge.support { background: #e0f2fe; color: #0284c7; }
.role-badge.moderator { background: #fef3c7; color: #d97706; }

.dossier-hero {
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.dossier-avatar-wrap {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 2px solid #54daf4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(84, 218, 244, 0.25);
  flex-shrink: 0;
}

.dossier-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dossier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.dossier-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dossier-stat-box span:first-child {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dossier-stat-box span:last-child {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.dossier-terminal-box {
  background: #080d11;
  color: #54daf4;
  border: 1px solid rgba(84, 218, 244, 0.2);
  border-radius: 14px;
  padding: 16px;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  max-height: 220px;
  overflow-y: auto;
}

/* File Upload Box */
.file-upload-box {
  border: 2px dashed var(--bg-card-border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  background: var(--bg-input);
  cursor: pointer;
  transition: all 150ms ease;
  position: relative;
}

.file-upload-box:hover {
  border-color: #54daf4;
  background: var(--cyan-subtle);
}

.file-upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* Settings Accordion Section */
.settings-section-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
}

.settings-section-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes floatMainCard {
  0%, 100% {
    transform: rotate(7deg) translateY(0);
  }
  50% {
    transform: rotate(7deg) translateY(-10px);
  }
}

@keyframes floatBackCard {
  0%, 100% {
    transform: rotate(-8deg) translateY(0);
  }
  50% {
    transform: rotate(-8deg) translateY(8px);
  }
}

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

@keyframes floatTagTwo {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@keyframes rotateOrbitOne {
  from {
    transform: translateX(-50%) rotate(0deg);
  }
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

@keyframes rotateOrbitTwo {
  from {
    transform: translateX(-50%) rotate(0deg);
  }
  to {
    transform: translateX(-50%) rotate(-360deg);
  }
}

@keyframes floatPixelA {
  0%, 100% {
    transform: rotate(15deg) translateY(0);
  }
  50% {
    transform: rotate(15deg) translateY(-8px);
  }
}

@keyframes floatPixelB {
  0%, 100% {
    transform: rotate(15deg) translateY(0);
  }
  50% {
    transform: rotate(15deg) translateY(8px);
  }
}

@keyframes pulseCrown {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-4px);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes pulseDot {
  0%, 100% {
    box-shadow: 0 0 0 5px rgba(84, 218, 244, 0.12);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(84, 218, 244, 0.24);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* ==========================================================================
   FOOTER & TOAST
   ========================================================================== */
footer {
  border-top: 1px solid var(--bg-card-border);
  background: var(--bg-card);
  padding: 40px 0;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-inner p {
  color: var(--text-muted);
  font-size: 12px;
  max-width: 480px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.footer-nav a:hover {
  color: var(--text-main);
}

.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #10242a;
  color: #54daf4;
  border: 1px solid #54daf4;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 9999;
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
}

/* ==========================================
   FLEXIBLE DONATION & PRODUCT ENHANCEMENTS
   ========================================== */
.product-features-list {
  list-style: none;
  margin: 10px 0 14px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-feature-item {
  font-size: 11px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  line-height: 1.3;
}

.product-feature-item .feat-icon {
  color: #10b981;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

.product-variants-selector {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.variant-chip-btn {
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 150ms ease;
}

.variant-chip-btn:hover {
  border-color: var(--brand-teal);
  color: var(--text-main);
}

.variant-chip-btn.active {
  background: #10242a;
  border-color: #54daf4;
  color: #54daf4;
  box-shadow: 0 2px 8px rgba(84, 218, 244, 0.2);
}

[data-theme="light"] .variant-chip-btn.active {
  background: #0d2830;
  border-color: #0c8ba2;
  color: #54daf4;
}

.product-stock-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(250, 111, 152, 0.15);
  color: #fa6f98;
}

/* ==========================================
   STAFF DOSSIER & MINECRAFT TERMINAL STYLING
   ========================================== */
.dossier-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(15, 52, 61, 0.04);
}

.dossier-avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 2px solid rgba(84, 218, 244, 0.3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(84, 218, 244, 0.15);
  flex-shrink: 0;
}

.dossier-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.dossier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.dossier-stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dossier-stat-box span:first-child {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.dossier-stat-box span:last-child {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.dossier-terminal-box {
  background: #081114;
  border: 1px solid rgba(84, 218, 244, 0.22);
  border-radius: 14px;
  padding: 16px;
  font-family: 'Consolas', 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 12.5px;
  line-height: 1.55;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  min-height: 110px;
  overflow-y: auto;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.55), 0 4px 14px rgba(0, 0, 0, 0.08);
}

.dossier-terminal-box::-webkit-scrollbar {
  width: 6px;
}

.dossier-terminal-box::-webkit-scrollbar-thumb {
  background: rgba(84, 218, 244, 0.3);
  border-radius: 99px;
}

.dossier-terminal-box span {
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.8);
}

