/* === LINK: https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Nunito:wght@400;600;700;800&display=swap === */
/* cyrillic-ext */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIOOaBXso.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIMeaBXso.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIOuaBXso.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIO-aBXso.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofINeaB.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIOOaBXso.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIMeaBXso.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIOuaBXso.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIO-aBXso.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofINeaB.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIOOaBXso.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIMeaBXso.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIOuaBXso.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIO-aBXso.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofINeaB.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIOOaBXso.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIMeaBXso.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIOuaBXso.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIO-aBXso.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofINeaB.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/pressstart2p/v16/e3t4euO8T-267oIAQAu6jDQyK3nYivN04w.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/pressstart2p/v16/e3t4euO8T-267oIAQAu6jDQyK3nRivN04w.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/pressstart2p/v16/e3t4euO8T-267oIAQAu6jDQyK3nWivN04w.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* latin-ext */
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/pressstart2p/v16/e3t4euO8T-267oIAQAu6jDQyK3nbivN04w.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/pressstart2p/v16/e3t4euO8T-267oIAQAu6jDQyK3nVivM.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* === LINK: https://shop.EraCraft.fun:19132/assets/css/style1.css === */
/* ==========================================================================
   EraCraft — Public Stylesheet
   Minecraft Bedrock Server Shop
   ========================================================================== */

:root {
  --bg-primary: #1c1a22;
  --bg-surface: #232029;
  --bg-card: #292633;
  --bg-card-hover: #322e3d;
  --gold: #e08fb5;
  --gold-dark: #b0728f;
  --gold-hover: #eba6c4;
  --gold-glow: rgba(224, 158, 181, 0.175);
  --gold-glow-strong: rgba(224, 158, 181, 0.300);
  --accent-blue: #ab9bd5;
  --accent-blue-glow: rgba(171, 155, 213, 0.150);
  --accent-blue-hover: #bfaedd;
  --text-primary: #eceaf0;
  --text-muted: #aca2b8;
  --text-dim: #8c8496;
  --border: #3d3848;
  --border-gold: rgba(224, 158, 181, 0.225);
  --border-blue: rgba(171, 155, 213, 0.225);
  --success: #6db56f;
  --error: #c97070;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 20px var(--gold-glow);
  --font-pixel: 'Press Start 2P', monospace;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: #bfaedd; }

img { max-width: 100%; height: auto; display: block; }

/* ==========================================================================
   Layout Utilities
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.d-inline { display: inline; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: rgba(35, 32, 41, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  background: linear-gradient(90deg, var(--gold) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(224, 158, 181, 0.175));
  letter-spacing: 1px;
}

.logo-img {
  display: block;
  height: 38px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background: rgba(171, 155, 213, 0.050);
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Server Status Widget */
.server-status-widget {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.online {
  background: var(--success);
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
  animation: pulse 2s infinite;
}

.status-dot.offline { background: var(--error); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.server-ip { color: var(--text-primary); font-weight: 600; }
.player-count { color: var(--accent-blue); font-weight: 700; }
.server-offline { color: var(--error); font-size: 0.75rem; }

/* Language Switcher */
.lang-form { display: flex; gap: 0.25rem; }

.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn:hover { border-color: var(--gold); color: var(--gold); }
.lang-btn.active { background: var(--gold); color: var(--bg-primary); border-color: var(--gold); }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #262330 0%, #1c1a22 70%);
}

/* Custom hero background image, darkened via an overlay gradient. */
.hero.hero-has-bg {
  background-image:
    linear-gradient(rgba(28, 26, 34, 0.78), rgba(28, 26, 34, 0.88)),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-logo-img {
  display: block;
  /* Size relative to the viewport, NOT the parent's content width —
     otherwise shorter (e.g. English) button text shrinks .hero-inner
     and the logo with it. */
  width: min(420px, 80vw);
  max-height: 180px;
  height: auto;
  margin: 0 auto 1rem;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(224, 158, 181, 0.200)));
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(171, 155, 213, 0.020) 1px, transparent 1px),
    linear-gradient(90deg, rgba(171, 155, 213, 0.020) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 700px;
}

.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.5rem, 5vw, 3rem);
  background: linear-gradient(90deg, var(--gold) 15%, #c3a8d8 45%, var(--accent-blue) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(224, 158, 181, 0.250)) drop-shadow(0 0 48px rgba(171, 155, 213, 0.150));
  margin-bottom: 1rem;
  line-height: 1.4;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.hero-server-info {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.server-info-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 160px;
}

.server-info-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.server-info-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  cursor: pointer;
}

.server-info-value.text-gold { color: var(--accent-blue); }
.server-info-value.text-muted { color: var(--text-muted); }

.hero-actions { display: flex; justify-content: center; gap: 1rem; }
/* Keep the two main hero buttons a consistent size regardless of
   language (shorter EN text would otherwise make them narrower). */
.hero-actions .btn-large { min-width: 220px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #9b7ab5 55%, var(--accent-blue) 130%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
  box-shadow: 0 0 18px rgba(224, 158, 181, 0.175), 0 0 32px rgba(171, 155, 213, 0.090);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-hover) 0%, #ab8ac2 55%, var(--accent-blue-hover) 130%);
  color: #fff;
  box-shadow: 0 0 26px rgba(224, 158, 181, 0.275), 0 0 46px rgba(171, 155, 213, 0.140);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(171, 155, 213, 0.030);
  color: var(--accent-blue);
  border: 1px solid var(--border-blue);
  text-shadow: 0 0 8px rgba(171, 155, 213, 0.200);
}

.btn-secondary:hover {
  background: rgba(171, 155, 213, 0.070);
  border-color: var(--accent-blue);
  color: var(--accent-blue-hover);
  box-shadow: 0 0 18px rgba(171, 155, 213, 0.175);
}

.btn-large {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.btn-buy {
  background: linear-gradient(135deg, var(--gold) 0%, #7c6394 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  transition: all var(--transition);
  width: 100%;
}

.btn-buy:hover {
  background: linear-gradient(135deg, var(--gold-hover) 0%, #8f75ab 100%);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(224, 158, 181, 0.250), 0 0 36px rgba(171, 155, 213, 0.100);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section-title {
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.6;
}

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Features */
.features-section {
  padding: 4rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.feature-icon { font-size: 2rem; margin-bottom: 0.75rem; }

.feature-title {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.feature-desc { color: var(--text-muted); font-size: 0.9rem; }

/* ==========================================================================
   Items Grid
   ========================================================================== */
.items-preview-section {
  padding: 4rem 0;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
}

.item-card:hover {
  border-color: var(--border-gold);
  box-shadow: 0 0 22px rgba(224, 158, 181, 0.125), 0 0 42px rgba(171, 155, 213, 0.075);
  transform: translateY(-4px);
}

.item-card-image {
  height: 180px;
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
}

.item-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--bg-surface);
  transition: transform 0.3s ease;
  display: block;
}

.item-card:hover .item-card-image img {
  transform: scale(1.05);
}

.item-placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-dim);
}

.item-category-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(35, 32, 41, 0.85);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.item-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.item-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.item-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
  flex: 1;
}

.item-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 0.75rem;
  gap: 0.5rem;
}

.item-price {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--gold);
  text-shadow: none;
  white-space: nowrap;
}

/* ==========================================================================
   Shop Page
   ========================================================================== */
.shop-section { padding: 2.5rem 0 4rem; }

.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-title {
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: var(--gold);
  line-height: 1.6;
}

.shop-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.category-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.cat-tab {
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}

.cat-tab:hover { border-color: var(--border-gold); color: var(--gold); }

.cat-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  box-shadow: 0 0 14px rgba(224, 158, 181, 0.225), 0 0 28px rgba(171, 155, 213, 0.090);
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ==========================================================================
   Recent Purchases
   ========================================================================== */
.recent-purchases-section {
  padding: 3rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.purchases-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.purchase-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.purchase-buyer { font-weight: 700; color: var(--text-primary); }
.purchase-arrow { color: var(--text-dim); }
.purchase-item-name { color: var(--text-muted); flex: 1; }
.purchase-amount { color: var(--gold); font-weight: 700; font-size: 0.85rem; margin-left: auto; }

/* ==========================================================================
   Checkout Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: min(480px, calc(100vw - 2rem));
  position: relative;
  animation: slideUp 0.25s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 30px rgba(224, 158, 181, 0.090), 0 0 60px rgba(171, 155, 213, 0.050);
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all var(--transition);
  line-height: 1;
}

.modal-close:hover { background: var(--bg-card); color: var(--text-primary); }

.modal-title {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.modal-item-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.modal-item-info .item-name-modal { font-weight: 700; color: var(--text-primary); }
.modal-item-info .item-price-modal { color: var(--gold); font-weight: 700; }

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.875rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(224, 158, 181, 0.090), 0 0 16px rgba(224, 158, 181, 0.125);
}

.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.payment-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}

.payment-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(171, 155, 213, 0.025);
}

.payment-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.checkout-error {
  background: rgba(207,127,127, 0.15);
  border: 1px solid rgba(207,127,127, 0.4);
  border-radius: var(--radius);
  padding: 0.6rem 0.875rem;
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

/* ==========================================================================
   Result Pages (success/fail)
   ========================================================================== */
.result-page {
  padding: 5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.result-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.result-card.success { border: 1px solid rgba(76, 175, 80, 0.4); }
.result-card.fail { border: 1px solid rgba(207,127,127, 0.4); }

.result-icon { font-size: 3rem; margin-bottom: 1.5rem; }

.result-title {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.result-card.success .result-title { color: var(--success); }
.result-card.fail .result-title { color: var(--error); }

.result-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--gold);
}

.footer-desc { color: var(--text-muted); font-size: 0.85rem; }
.footer-copy { color: var(--text-dim); font-size: 0.75rem; }

/* ==========================================================================
   Main Content Wrapper
   ========================================================================== */
.main-content { flex: 1; }

/* ==========================================================================
   Copy Toast
   ========================================================================== */
.copy-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  padding: 0.6rem 1.5rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 9999;
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 0.75rem; }
  .header-right { width: 100%; justify-content: space-between; }
  .hero-server-info { flex-direction: column; align-items: center; }
  .items-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .payment-methods { grid-template-columns: 1fr; }
  .shop-header { flex-direction: column; align-items: flex-start; }
  .logo-text { font-size: 0.7rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.2rem; }
  /* Let the consistent-size hero buttons fill the row on small screens. */
  .hero-actions .btn-large { min-width: 0; width: 100%; }
  .items-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .item-card-image { height: 160px; }
}

/* ==========================================================================
   Cart Badge (nav)
   ========================================================================== */
.nav-cart { position: relative; display: inline-flex; align-items: center; gap: 4px; }

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--bg);
  font-size: 0.6rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 4px;
  line-height: 1;
  font-family: var(--font-body);
}

/* ==========================================================================
   Open in Minecraft button
   ========================================================================== */
.btn-mc {
  background: transparent;
  border: 2px solid #5D9F52;
  color: #5D9F52;
  display: inline-flex;
  align-items: center;
}
.btn-mc:hover {
  background: #5D9F52;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(93,159,82,0.35);
}
/* Custom uploaded icon before "Open in Minecraft" — matches the default SVG size. */
.btn-mc-icon {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  object-fit: contain;
  vertical-align: middle;
}

/* ==========================================================================
   Discount badges
   ========================================================================== */
.discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #cf7f7f;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  font-family: var(--font-body);
  z-index: 2;
  letter-spacing: 0.03em;
}

.item-price-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.item-price-original {
  color: var(--text-dim);
  font-size: 0.78rem;
  text-decoration: line-through;
}

.item-price-sale {
  color: #cf7f7f;
}

/* ==========================================================================
   Cart Page
   ========================================================================== */
.cart-section { padding: 2rem 0 4rem; }

.cart-empty {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--text-muted);
}
.cart-empty-icon { color: var(--text-dim); margin-bottom: 1.5rem; }
.cart-empty h2 { font-size: 1.2rem; color: var(--text); margin-bottom: 0.5rem; }
.cart-empty p { margin-bottom: 2rem; }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

/* Cart table */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.cart-table thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
}
.cart-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.cart-row:hover td { background: rgba(171,155,213, 0.020); }

.cart-item-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cart-item-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.cart-item-img-placeholder {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.cart-item-name { font-weight: 600; color: var(--text); }

.price-original { color: var(--text-dim); text-decoration: line-through; font-size: 0.8rem; }
.price-current { color: var(--gold); font-weight: 700; }

/* Qty control */
.qty-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.1rem 0.4rem;
  width: fit-content;
}
.qty-btn {
  background: rgba(171, 155, 213, 0.040);
  border: 1px solid var(--border-blue);
  cursor: pointer;
  color: var(--accent-blue);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  transition: all 0.15s ease;
  font-size: 0;
}
.qty-btn::before { font-size: 1rem; font-weight: 700; line-height: 1; }
.qty-btn.qty-minus::before { content: "−"; }
.qty-btn.qty-plus::before { content: "+"; }
.qty-btn:hover {
  background: rgba(171, 155, 213, 0.110);
  color: var(--text-primary);
  box-shadow: 0 0 12px rgba(171, 155, 213, 0.175);
  border-color: var(--accent-blue);
}
.qty-btn:active { transform: scale(0.92); }
.qty-value { min-width: 24px; text-align: center; font-weight: 700; font-size: 0.9rem; }

.line-subtotal { font-weight: 700; color: var(--text); }

.cart-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.cart-remove-btn:hover { color: #cf7f7f; background: rgba(207,127,127,0.1); }

.cart-total-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1rem 0;
  font-size: 1.1rem;
}
.cart-total-label { color: var(--text-muted); }
.cart-total-amount { font-weight: 800; color: var(--gold); font-size: 1.3rem; }

/* Checkout panel */
.checkout-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  position: sticky;
  top: 100px;
}
.checkout-panel-title {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

/* Payment options (radio cards) */
.payment-methods-cart {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.payment-option input[type="radio"] { display: none; }
.payment-option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 0.6rem;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  text-align: center;
}
.payment-option input:checked + .payment-option-card {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(171,155,213, 0.040);
}
.payment-option-card:hover { border-color: var(--gold-hover); color: var(--text); }
.payment-icon { width: 22px; height: 22px; color: inherit; }

.form-hint { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.3rem; }

.checkout-error {
  background: rgba(207,127,127,0.15);
  border: 1px solid rgba(207,127,127,0.4);
  color: #d9a0a0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.btn-checkout-submit {
  width: 100%;
  margin-top: 1rem;
  justify-content: center;
  font-size: 0.85rem;
  padding: 0.85rem;
}

/* Sidebar styles */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.sidebar-overlay.open { opacity: 1; pointer-events: all; }

.site-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 280px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.site-sidebar.open { transform: translateX(0); }

.site-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo-text {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--gold);
}
.sidebar-logo-img {
  display: block;
  height: 32px;
  width: auto;
  object-fit: contain;
}
.sidebar-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s;
}
.sidebar-close-btn:hover { color: var(--text); }

.site-sidebar-nav, .site-sidebar-socials {
  padding: 1rem 1rem 0.5rem;
}
.sidebar-nav-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
}
.sidebar-nav-link {
  display: block;
  padding: 0.6rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-radius: 8px;
  margin-bottom: 2px;
  transition: background 0.15s, color 0.15s;
}
.sidebar-nav-link:hover { background: rgba(171,155,213, 0.050); color: var(--accent-blue); }

.social-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  transition: background 0.15s, color 0.15s;
}
.social-link:hover { background: rgba(171,155,213, 0.050); color: var(--text); }

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 4px;
  flex-shrink: 0;
}
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: background 0.15s;
}
.hamburger-btn:hover span { background: var(--gold); }

/* Footer socials */
.footer-socials { display: flex; gap: 1rem; justify-content: center; }
.footer-social-link { color: var(--text-dim); font-size: 0.8rem; transition: color 0.15s; }
.footer-social-link:hover { color: var(--gold); }

/* Responsive cart */
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-panel { position: static; }
}
@media (max-width: 640px) {
  .payment-methods-cart { grid-template-columns: 1fr; }
  .cart-table { font-size: 0.8rem; }
  .cart-table thead { display: none; }
  .cart-table td { display: block; padding: 0.4rem 0.5rem; border-bottom: none; }
  .cart-row { display: block; border-bottom: 1px solid var(--border); margin-bottom: 0.5rem; }
  .col-remove { text-align: right; }
}

/* ==========================================================================
   Floating Cart Button (bottom-right)
   ========================================================================== */
.floating-cart-btn {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 300;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(224, 158, 181, 0.275);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.floating-cart-btn:hover {
  background: var(--gold-hover);
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(224, 158, 181, 0.333);
}
.floating-cart-btn .cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #cf7f7f;
  color: #fff;
  border: 2px solid var(--bg-primary);
}

/* ==========================================================================
   Cart Overlay
   ========================================================================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ==========================================================================
   Cart Popup Panel
   ========================================================================== */
/* Mobile: slide up from bottom edge */
.cart-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 401;
  width: 100%;
  max-height: 92vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(calc(100% + 2px));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0.3s;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  visibility: hidden;
}
.cart-popup.open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0s;
}

/* Desktop: centered modal */
@media (min-width: 600px) {
  .cart-popup {
    left: 50%;
    right: auto;
    bottom: 50%;
    width: 420px;
    max-height: 80vh;
    border-radius: 16px;
    border-bottom: 1px solid var(--border-gold);
    transform: translateX(-50%) translateY(60%) scale(0.95);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                visibility 0s linear 0.3s;
  }
  .cart-popup.open {
    transform: translateX(-50%) translateY(50%) scale(1);
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                visibility 0s linear 0s;
  }
}

.cart-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-popup-title {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--gold);
  line-height: 1.6;
}
.cart-popup-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), background var(--transition);
}
.cart-popup-close:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

/* Cart popup body (scrollable) */
.cart-popup-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  min-height: 120px;
}

/* Loading spinner */
.cart-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0;
}
.cart-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty state */
.cart-popup-empty {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-dim);
  gap: 0.75rem;
}
.cart-popup-empty p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Items list */
.cart-popup-items {
  flex-direction: column;
  gap: 0.75rem;
}
.cart-popup-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  transition: border-color var(--transition);
}
.cart-popup-row:hover {
  border-color: var(--border-gold);
}

.cart-popup-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  flex-shrink: 0;
}
.cart-popup-img-placeholder {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-dim);
  flex-shrink: 0;
}

.cart-popup-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.cart-popup-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-popup-price-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.cart-popup-original {
  color: var(--text-dim);
  font-size: 0.75rem;
  text-decoration: line-through;
}
.cart-popup-price {
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  color: var(--gold);
}
.cart-popup-price.sale {
  color: #cf7f7f;
}

/* Cart popup footer */
.cart-popup-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  flex-shrink: 0;
  overflow-y: auto;
  max-height: 55vh;
}
.cart-popup-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.cart-popup-total > span:first-child {
  color: var(--text-muted);
  font-weight: 600;
}
.cart-popup-total-amount {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--gold);
}

/* Checkout form inside popup */
.cart-checkout-form .form-group { margin-bottom: 0.85rem; }
.cart-checkout-form .form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

/* ==========================================================================
   Item Detail Modal extras
   ========================================================================== */
.item-modal {
  max-width: 500px;
  width: calc(100vw - 2rem);
}
.item-modal-image {
  width: 100%;
  max-height: 220px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}
.item-modal-image img {
  width: 100%;
  height: 220px;
  object-fit: contain;
}
.item-modal-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 180px;
  color: var(--text-dim);
}
.item-modal-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.item-modal-price-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.item-modal-original {
  color: var(--text-dim);
  text-decoration: line-through;
  font-size: 0.9rem;
}
.item-modal-price {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--gold);
}
.item-modal-badge {
  position: static;
  display: inline-block;
  font-size: 0.7rem;
}
.item-modal-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* ==========================================================================
   Variant selection modal — duration option buttons
   ========================================================================== */
.variant-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.variant-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.variant-option:hover {
  border-color: var(--gold);
}
.variant-option.selected {
  border-color: var(--gold);
  background: rgba(171, 155, 213, 0.040);
}
.variant-option-price {
  color: var(--gold);
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  white-space: nowrap;
}

/* ==========================================================================
   Item card — clickable + object-fit contain fix
   ========================================================================== */
.item-card {
  cursor: pointer;
}

/* ==========================================================================
   Mobile hero buttons wrap fix
   ========================================================================== */
.hero-actions {
  flex-wrap: wrap;
  row-gap: 0.75rem;
}

/* ==========================================================================
   Responsive cart popup
   ========================================================================== */
@media (max-width: 480px) {
  .cart-popup { width: 100vw; border-radius: 14px 14px 0 0; }
  .cart-payment-methods { grid-template-columns: 1fr; }
  .floating-cart-btn { bottom: 1.25rem; right: 1.25rem; width: 50px; height: 50px; }
}

:root { --danger-neon:#cf7f7f; }
.discount-badge,.sale-badge { background:var(--danger-neon)!important; box-shadow:0 0 16px rgba(224,158,181, 0.200); }
.btn-danger,.promo-accent { color:#fff; border-color:var(--danger-neon); box-shadow:0 0 14px rgba(224,158,181, 0.125); }
.neon-red { color:var(--danger-neon); text-shadow:0 0 12px rgba(224,158,181, 0.225); }
.shop-layout { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:1.5rem; }
.items-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:1rem; }
.product-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; transition:.2s; }
.product-card:hover { transform:translateY(-4px); border-color:var(--gold); box-shadow:var(--shadow-glow); }
.product-card img { width:100%; height:170px; object-fit:cover; background:#0b1420; }
.product-body { padding:1rem; }
.product-body p { color:var(--text-muted); min-height:3em; }
.modal-overlay { position:fixed; inset:0; z-index:500; background:#000b; display:none; align-items:center; justify-content:center; padding:1rem; }
.modal-overlay.open { display:flex; }
.checkout-modal,.panel-card { width:min(560px,100%); max-height:90vh; overflow:auto; background:var(--bg-surface); border:1px solid var(--border-gold); border-radius:14px; padding:1.4rem; box-shadow:0 0 35px rgba(207,127,127,0.12); }
.field { display:grid; gap:.35rem; margin:.8rem 0; }
.field input,.field textarea,.field select { width:100%; padding:.75rem; background:var(--bg-card); color:var(--text-primary); border:1px solid var(--border); border-radius:8px; font:inherit; }
.toast { position:fixed; right:1rem; bottom:1rem; z-index:999; background:var(--bg-surface); border:1px solid var(--gold); border-radius:9px; padding:.8rem 1rem; box-shadow:var(--shadow-glow); }
.recent-row { display:flex; align-items:center; gap:.7rem; padding:.55rem 0; border-bottom:1px solid var(--border); font-size:.86rem; }
.recent-row img { width:32px; height:32px; image-rendering:pixelated; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.panel-table { width:100%; border-collapse:collapse; font-size:.9rem; }
.panel-table td,.panel-table th { padding:.65rem; border-bottom:1px solid var(--border); text-align:left; vertical-align:top; }
.panel-table input,.panel-table select,.panel-table textarea { max-width:100%; background:var(--bg-card); color:var(--text-primary); border:1px solid var(--border); padding:.5rem; border-radius:6px; }
@media(max-width:850px){.shop-layout{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.header-inner{flex-wrap:wrap}.header-right{margin-left:0}}

/* ==========================================================================
   Buy Modal (двухколоночный стиль как в reference)
   ========================================================================== */
.buy-modal {
  width: min(820px, calc(100vw - 2rem));
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.buy-modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  overflow: hidden;
}

/* левая часть */
.buy-modal-left {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.buy-modal-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.buy-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.buy-modal-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-dim);
}

.buy-modal-meta {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.buy-modal-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  opacity: 0.75;
}

.buy-modal-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.buy-modal-desc-wrap {
  flex: 1;
  overflow-y: auto;
}

.buy-modal-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

.buy-modal-desc p {
  margin: 0;
  padding: 0;
}

.buy-modal-desc p + p {
  margin-top: 0.3rem;
}

/* правая часть */
.buy-modal-right {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--bg-surface);
}

.buy-modal-right form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.buy-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.buy-field label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.buy-field .form-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.875rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.buy-field .form-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(171, 155, 213, 0.075), 0 0 16px rgba(171, 155, 213, 0.110);
}

.promo-row {
  display: flex;
  gap: 0.5rem;
}

.promo-row .form-input {
  flex: 1;
}

.promo-msg {
  font-size: 0.8rem;
  font-weight: 600;
  min-height: 1.1em;
}

.promo-ok { color: var(--success); }
.promo-error { color: var(--error); }

.buy-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-top: 0.25rem;
}

.buy-price-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.buy-price-value {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--gold);
  text-shadow: none;
}

.buy-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.buy-actions .btn {
  width: 100%;
  justify-content: center;
}

.buy-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.5;
  text-align: center;
  margin-top: -0.25rem;
}

/* модалка: полноэкранная на мобилке */
@media (max-width: 640px) {
  .buy-modal {
    width: 100vw;
    max-height: 100dvh;
    border-radius: 14px 14px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
  }

  .buy-modal-inner {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .buy-modal-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .buy-modal-img-wrap {
    aspect-ratio: 16 / 9;
  }

  .modal-overlay.open {
    align-items: flex-end;
    padding: 0;
  }
}

/* item-price-block: flex column для совместимости */
.item-price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ==========================================================================
   Neon red-blue finishing touches
   ========================================================================== */
::selection { background: rgba(224, 158, 181, 0.275); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold) 0%, var(--accent-blue) 100%);
  border-radius: 6px;
  border: 2px solid var(--bg-primary);
}

.btn-primary, .btn-buy { }
.btn-primary:hover, .btn-buy:hover { animation: none; }


.server-status-widget { text-shadow: 0 0 12px rgba(171, 155, 213, 0.175); }
.status-dot.online { box-shadow: 0 0 8px rgba(76, 175, 80, 0.8), 0 0 18px rgba(171, 155, 213, 0.150); }


/* ==========================================================================
   Slide-in notifications (неоновые, справа сверху)
   ========================================================================== */
#notifyStack {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: min(360px, calc(100vw - 2.5rem));
  pointer-events: none;
}

.notify {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(41, 38, 51, 0.97), rgba(28, 26, 34, 0.97));
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 0.8rem 2.4rem 0.8rem 0.95rem;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5), 0 0 18px rgba(224, 158, 181, 0.110), 0 0 34px rgba(171, 155, 213, 0.060);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  animation: notifyIn 0.35s cubic-bezier(0.2, 0.9, 0.25, 1.2);
}

.notify-out { animation: notifyOut 0.3s ease forwards; }

@keyframes notifyIn {
  from { opacity: 0; transform: translateX(110%) scale(0.9); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes notifyOut {
  to { opacity: 0; transform: translateX(110%) scale(0.9); }
}

.notify-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  padding: 6px;
}

.notify-icon svg { width: 100%; height: 100%; }

.notify-success .notify-icon {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.35);
}
.notify-success { border-color: rgba(74, 222, 128, 0.45); }

.notify-error .notify-icon {
  color: #d98f8f;
  background: rgba(207,127,127,0.1);
  box-shadow: 0 0 12px rgba(207,127,127,0.12);
}
.notify-error { border-color: rgba(207,127,127,0.2); }

.notify-info .notify-icon {
  color: var(--gold);
  background: rgba(224, 158, 181, 0.060);
  box-shadow: 0 0 12px rgba(224, 158, 181, 0.175);
}

.notify-text { flex: 1; line-height: 1.35; word-break: break-word; }

.notify-close {
  position: absolute;
  top: 6px; right: 8px;
  background: none; border: none;
  color: var(--text-dim);
  font-size: 1.05rem; line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  opacity: 0.55;
}
.notify-close:hover { opacity: 1; color: var(--text-primary); }

.notify-bar {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 100%;
  transform-origin: left;
  animation: notifyBar linear forwards;
}
.notify-success .notify-bar { background: linear-gradient(90deg, #4ade80, var(--accent-blue)); }
.notify-error   .notify-bar { background: linear-gradient(90deg, #d98f8f, var(--gold)); }
.notify-info    .notify-bar { background: linear-gradient(90deg, var(--gold), var(--accent-blue)); }

@keyframes notifyBar {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* ==========================================================================
   Paperclip file button (скрепка)
   ========================================================================== */
.btn-file {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1rem;
  background: rgba(171, 155, 213, 0.030);
  border: 1px dashed var(--border-blue);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.btn-file:hover {
  border-color: var(--accent-blue);
  background: rgba(171, 155, 213, 0.060);
  box-shadow: 0 0 16px rgba(171, 155, 213, 0.125);
}

.btn-file input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.btn-file-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(224, 158, 181, 0.090), rgba(171, 155, 213, 0.090));
  border: 1px solid var(--border-gold);
  color: var(--gold);
  transition: transform 0.2s ease;
}
.btn-file-icon svg { width: 17px; height: 17px; }
.btn-file:hover .btn-file-icon { transform: rotate(-12deg) scale(1.08); }

.btn-file-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.btn-file-title { font-weight: 700; color: var(--text-primary); font-size: 0.85rem; }
.btn-file-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}
.btn-file.has-file { border-style: solid; border-color: rgba(74, 222, 128, 0.45); }
.btn-file.has-file .btn-file-name { color: #4ade80; }

.form-image-preview { max-height: 90px; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 0.6rem; }

/* ==========================================================================
   Контролы: числа, селекты, чекбоксы-переключатели
   ========================================================================== */

/* прячем уродливые нативные стрелки у чисел */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* аккуратные шаг-кнопки для чисел (используются в админке) */
.num-field { display: flex; align-items: stretch; gap: 0; }
.num-field .form-input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  text-align: center;
  font-weight: 700;
}
.num-step {
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(171, 155, 213, 0.040);
  border: 1px solid var(--border-blue);
  border-left: none;
  color: var(--accent-blue);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.15s ease;
  user-select: none;
}
.num-step + .num-step { border-radius: 0 var(--radius) var(--radius) 0; }
.num-step:hover { background: rgba(171, 155, 213, 0.100); color: var(--text-primary); box-shadow: 0 0 12px rgba(171, 155, 213, 0.150); }
.num-step svg { width: 14px; height: 14px; }

/* селект с неоновой стрелкой */
select.form-input,
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23ab9bd5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}
select.form-input option { background: #292633; color: var(--text-primary); }

/* чекбокс -> неоновый переключатель */
.switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; gap: 0.65rem; }
.switch input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.switch-track {
  width: 42px; height: 23px;
  flex-shrink: 0;
  border-radius: 20px;
  background: rgba(140, 132, 150, 0.35);
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.25s ease;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.switch input:checked + .switch-track {
  background: linear-gradient(90deg, rgba(224, 158, 181, 0.175), rgba(171, 155, 213, 0.175));
  border-color: var(--border-gold);
  box-shadow: 0 0 14px rgba(224, 158, 181, 0.150);
}
.switch input:checked + .switch-track::after {
  left: 21px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(224, 158, 181, 0.300);
}
.switch-label { font-weight: 600; font-size: 0.85rem; color: var(--text-muted); transition: color 0.2s; }
.switch input:checked ~ .switch-label { color: var(--text-primary); }