/* ===========================================================
   ONE PIECE x MINECRAFT TEBEX TEMPLATE
   Style: Pirate / Treasure / Adventure
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Pirata+One&family=Cinzel:wght@500;700;900&family=Press+Start+2P&display=swap');

:root {
  --tebex-legal-footer-background-color: #0e0e11;
  --tebex-legal-footer-text-color: #9b9ba3;
  --tebex-legal-footer-border-color: transparent;

  --p-color: #f36430;
  --p-color-rgb: 243, 100, 48;
  --p-color-dark: #c04318;
  --p-color-light: #ff8a5c;

  --gold: #ffaa1c;
  --gold-rgb: 255, 170, 28;
  --gold-dark: #d68a00;
  --gold-light: #ffcb5c;

  --bg-0: #161210;
  --bg-1: #1f1814;
  --bg-2: #261d18;
  --bg-3: #30241d;
  --bg-4: #3a2d24;

  --border: rgba(243, 100, 48, 0.18);
  --border-strong: rgba(243, 100, 48, 0.40);
  --border-soft: rgba(255, 255, 255, 0.06);

  --text: #f0f0f4;
  --text-mute: #9b9ba3;
  --text-faint: #5a5a64;

  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 24px rgba(255, 122, 0, 0.35);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --font-display: 'Pirata One', 'Cinzel', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-pixel: 'Press Start 2P', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: #15161b;
  background-image:
    radial-gradient(1000px 600px at 50% -120px, rgba(232, 90, 79, 0.32), transparent 60%),
    radial-gradient(700px 500px at 0% 600px, rgba(232, 90, 79, 0.18), transparent 60%),
    radial-gradient(700px 500px at 100% 1100px, rgba(255, 170, 28, 0.16), transparent 60%),
    radial-gradient(700px 500px at 50% 1700px, rgba(232, 90, 79, 0.18), transparent 60%),
    radial-gradient(700px 500px at 10% 2400px, rgba(255, 122, 0, 0.16), transparent 60%),
    radial-gradient(700px 500px at 90% 3100px, rgba(232, 90, 79, 0.18), transparent 60%),
    linear-gradient(180deg, #161720 0%, #121319 50%, #15161b 100%);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* One Piece-specific background decoration — subtle, monochrome warm tones only */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    /* Straw Hat (top-left) — small, very subtle */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 140'><ellipse cx='120' cy='95' rx='115' ry='18' fill='%23f4d36b' fill-opacity='0.07'/><path d='M40 86 Q120 18 200 86 Z' fill='%23f4d36b' fill-opacity='0.07'/><path d='M40 86 Q120 100 200 86 L196 96 Q120 110 44 96 Z' fill='%23e63946' fill-opacity='0.12'/></svg>"),
    /* Devil Fruit (bottom-right) */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 240'><ellipse cx='100' cy='140' rx='80' ry='92' fill='%23f36430' fill-opacity='0.07'/><path d='M100 70 Q150 95 105 130 Q60 140 105 175 Q150 195 100 215' stroke='%23ffffff' stroke-opacity='0.15' stroke-width='5' fill='none' stroke-linecap='round'/></svg>");
  background-position:
    -30px 240px,
    calc(100% + 20px) 1600px;
  background-repeat: no-repeat;
  background-size: 260px, 240px;
}

body > * { position: relative; z-index: 1; }

a { color: var(--gold-light); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold); }

img { max-width: 100%; }

::selection { background: var(--p-color); color: #fff; }

/* -----------------------------------------------------------
   TOP NAVBAR
   ----------------------------------------------------------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #e85a4f 0%, #d44233 100%);
  border-bottom: 1px solid rgba(168, 45, 32, 0.4);
  box-shadow: 0 4px 18px rgba(232, 90, 79, 0.25);
}

/* Text & buttons on coral navbar */
.topnav .topnav-link { color: rgba(255, 255, 255, 0.92); }
.topnav .topnav-link:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.topnav .topnav-link.active { color: #fff; }
.topnav .topnav-link.active::after { background: #fff; }
.topnav .player-widget {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.topnav .player-widget:hover {
  background: rgba(0, 0, 0, 0.35);
  border-color: #fff;
}
.topnav .btn-login {
  background: #fff;
  color: #d44233;
  border-color: #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}
.topnav .btn-login:hover { background: #fff7f0; color: #c03323; }
.topnav .btn-cart {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.topnav .btn-cart:hover {
  background: rgba(0, 0, 0, 0.35);
  border-color: #fff;
  color: #fff;
}
.topnav .btn-cart .cart-badge {
  background: #fff;
  color: #d44233;
  border-color: #d44233;
}
.topnav .topnav-toggle { color: #fff; }
.topnav .topnav-dropdown .dropdown-menu {
  background: #1f1814;
  border-color: rgba(243, 100, 48, 0.3);
}
.topnav .topnav-dropdown .dropdown-item { color: var(--text); }
.topnav .topnav-dropdown .dropdown-item:hover { background: var(--p-color); color: #fff; }

@media (max-width: 900px) {
  .topnav-links { background: #d44233 !important; border-top: 1px solid rgba(0, 0, 0, 0.2); }
}
.topnav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.topnav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.topnav-brand img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(255, 122, 0, 0.4));
}
.brand-text { display: none; }

.topnav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.topnav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all .15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.topnav-link:hover {
  background: rgba(255, 184, 0, 0.08);
  color: var(--gold-light);
}
.topnav-link.active {
  color: var(--gold);
}
.topnav-link.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px;
  bottom: -22px;
  height: 2px;
  background: linear-gradient(90deg, var(--p-color), var(--gold));
  border-radius: 2px;
}

.topnav-dropdown { position: relative; }
.topnav-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 200px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 200;
}
.topnav-dropdown.show .dropdown-menu,
.topnav-dropdown:hover .dropdown-menu { display: block; }
.topnav-dropdown .dropdown-item {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.topnav-dropdown .dropdown-item:hover {
  background: var(--p-color);
  color: #fff;
}

.topnav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.player-widget {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: all .15s ease;
}
.player-widget:hover {
  border-color: var(--p-color);
  background: var(--bg-3);
  color: #fff;
}
.player-head {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  image-rendering: pixelated;
  background: var(--bg-3);
}
.player-head-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
  border-radius: 50%;
  font-size: 14px;
}
.player-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-logout {
  font-size: 11px;
  color: var(--text-mute);
}

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, var(--p-color-light), var(--p-color-dark));
  border: 1px solid var(--p-color-dark);
  border-radius: 999px;
  text-decoration: none;
  transition: all .15s ease;
  box-shadow: 0 2px 0 rgba(120, 50, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-login:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 0 rgba(120, 50, 0, 0.5), 0 4px 12px rgba(255, 122, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  color: var(--text);
  text-decoration: none;
  transition: all .15s ease;
}
.btn-cart:hover {
  border-color: var(--gold);
  background: var(--bg-3);
  color: var(--gold-light);
}
.btn-cart .cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  margin: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--p-color);
  border: 2px solid var(--bg-0);
  border-radius: 999px;
}

.topnav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 900px) {
  .topnav-inner { padding: 0 16px; gap: 12px; }
  .brand-text { display: none; }
  .topnav-toggle { display: inline-flex; order: 99; }
  .topnav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border-soft);
    padding: 8px;
    gap: 4px;
    z-index: 200;
  }
  .topnav-links.open { display: flex; }
  .topnav-link.active::after { display: none; }
  .topnav-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0 12px;
  }
  .player-name { display: none; }
  .topnav-actions { margin-left: auto; }
}

/* -----------------------------------------------------------
   HERO HEADER
   ----------------------------------------------------------- */
.header-wrapper {
  position: relative;
  width: 100%;
  min-height: 640px;
  height: var(--header-height, 640px);
  overflow: hidden;
  isolation: isolate;
  border-bottom: none;
  background:
    radial-gradient(ellipse at 50% -50px, rgba(232, 90, 79, 0.55), transparent 60%),
    radial-gradient(circle at 18% 80%, rgba(232, 90, 79, 0.20), transparent 50%),
    radial-gradient(circle at 82% 80%, rgba(255, 170, 28, 0.20), transparent 50%),
    linear-gradient(180deg, #1a1c25 0%, #15161b 100%);
}

/* Decorative One Piece images on header sides */
.hero-side-img {
  position: absolute;
  bottom: 0;
  height: 90%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.78;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
}
.hero-side-img-left  { left: 1%; }
.hero-side-img-right { right: 1%; transform: scaleX(-1); }

@media (max-width: 1200px) {
  .hero-side-img { opacity: 0.4; height: 75%; }
}
@media (max-width: 900px) {
  .hero-side-img { display: none; }
}

.color-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 9, 15, 0.2) 0%, rgba(7, 9, 15, 0.7) 70%, var(--bg-0) 100%),
    linear-gradient(135deg, rgba(255, 122, 0, 0.25), rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
}

.header {
  position: absolute;
  inset: 0;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  z-index: 0;
  transform: scale(1.02);
}

/* Decorative pirate rope at bottom of header */
.header-wrapper::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  z-index: 12;
  background:
    repeating-linear-gradient(
      90deg,
      var(--gold-dark) 0 10px,
      var(--gold) 10px 20px
    );
  opacity: 0.85;
}

/* Hero inner: 3-column grid (left btn / center logo / right btn) */
.hero-inner {
  position: relative;
  z-index: 5;
  max-width: 1500px;
  margin: 0 auto;
  padding: 60px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  min-height: 100%;
}

.hero-side {
  display: flex;
  align-items: center;
}
.hero-side-left { justify-content: flex-end; }
.hero-side-right { justify-content: flex-start; }

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  max-width: 520px;
}

.hero-logo-link { display: inline-block; }
.hero-logo {
  height: var(--logo-height, 280px);
  max-width: 100%;
  width: auto;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 50px rgba(255, 122, 0, 0.5));
}

.animated-logo { animation: float 4s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-text { max-width: 100%; }
.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 0;
  background: linear-gradient(180deg, var(--gold-light), var(--p-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 6px 30px rgba(255, 122, 0, 0.4);
}

/* Small inline IP under logo */
.hero-ip-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(12, 16, 25, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all .2s ease;
  color: var(--text);
  font-size: 14px;
}
.hero-ip-mini:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 184, 0, 0.18);
}
.hero-ip-mini i.fa-cube { color: var(--p-color); }
.hero-ip-mini-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 700;
}
.hero-ip-mini-value {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}
.hero-ip-mini-hint { color: var(--text-faint); font-size: 12px; }
.hero-ip-mini:hover .hero-ip-mini-hint { color: var(--gold-light); }

/* Big CTA buttons on each side of the logo */
.hero-bigbtn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: #fff;
  min-width: 280px;
  max-width: 320px;
  transition: all .2s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}
.hero-bigbtn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.hero-bigbtn:hover {
  color: #fff;
  transform: translateY(-4px);
}

.hero-bigbtn-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.hero-bigbtn-icon svg { width: 36px; height: 36px; }

.hero-bigbtn-text { text-align: left; flex: 1; min-width: 0; }
.hero-bigbtn-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 2px;
}
.hero-bigbtn-title {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-bigbtn-sub {
  font-size: 12px;
  opacity: 0.85;
  font-weight: 500;
}

.hero-bigbtn-cf {
  background: linear-gradient(180deg, #F36430, #c04318);
  border-color: #a93812;
  box-shadow:
    0 8px 0 rgba(120, 40, 0, 0.4),
    0 12px 28px rgba(243, 100, 48, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
.hero-bigbtn-cf:hover {
  background: linear-gradient(180deg, #ff7445, #d8501e);
  box-shadow:
    0 12px 0 rgba(120, 40, 0, 0.4),
    0 16px 36px rgba(243, 100, 48, 0.55),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

.hero-bigbtn-ds {
  background: linear-gradient(180deg, #5865F2, #4752c4);
  border-color: #3d47a8;
  box-shadow:
    0 8px 0 rgba(40, 50, 130, 0.4),
    0 12px 28px rgba(88, 101, 242, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
.hero-bigbtn-ds:hover {
  background: linear-gradient(180deg, #6e7af6, #5865F2);
  box-shadow:
    0 12px 0 rgba(40, 50, 130, 0.4),
    0 16px 36px rgba(88, 101, 242, 0.55),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

.status-number { color: var(--gold); font-weight: 700; }

/* Hero responsive: stack at <1100px */
@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 20px;
    justify-items: center;
  }
  .hero-side { justify-content: center; width: 100%; max-width: 360px; }
  .hero-bigbtn { width: 100%; max-width: 100%; min-width: 0; }
  .hero-center { order: -1; }
  .hero-logo { height: clamp(140px, 28vw, 220px); }
  .header-wrapper { min-height: 0; height: auto; }
}

/* Modules row on home */
.modules-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.modules-row .card { margin-bottom: 0; }

/* -----------------------------------------------------------
   SECTION DIVIDER (decorative rope + emblem)
   ----------------------------------------------------------- */
.section-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 44px 0 28px;
  color: var(--gold);
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 4px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--gold-dark) 0 8px,
      var(--gold) 8px 16px
    );
  border-radius: 2px;
  opacity: 0.7;
  box-shadow: 0 0 14px rgba(255, 184, 0, 0.25);
}
.section-divider-emblem {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 2px solid var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow:
    0 0 0 4px var(--bg-0),
    0 0 30px rgba(255, 184, 0, 0.5),
    inset 0 0 14px rgba(255, 122, 0, 0.2);
  transform: rotate(-6deg);
  overflow: hidden;
  padding: 8px;
}
.section-divider-emblem svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.6));
}
.section-divider-emblem-strawhat svg { transform: translateY(2px) scale(1.05); }
.section-divider-emblem-fruit svg { transform: translateY(2px) scale(1.05); }

/* Section title block — banner-like wrapper with side ornaments */
.section-title-block {
  position: relative;
  text-align: center;
  margin: 0 0 24px;
  padding: 14px 20px 10px;
}
.section-title-block::before,
.section-title-block::after {
  content: '';
  position: absolute;
  top: 50%;
  width: clamp(60px, 18%, 240px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}
.section-title-block::before { left: 0; }
.section-title-block::after  { right: 0; }
.section-title-block .section-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--p-color-light);
  margin-bottom: 2px;
  text-shadow: 0 0 12px rgba(255, 122, 0, 0.35);
}
.section-title-block .section-h {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, var(--gold-light), var(--p-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 20px rgba(255, 122, 0, 0.35);
  line-height: 1;
  margin: 0;
}

/* Make sure top-nav/header sits above the body decoration */
.topnav, .header-wrapper, main, footer, .cart-menu, .overlay, .modal { position: relative; z-index: 1; }
.topnav { z-index: 100; }
.cart-menu, .overlay { z-index: 9998; }
.cart-menu { z-index: 9999; }
.modal { z-index: 10000; }

/* -----------------------------------------------------------
   HOME GRID — How to Join + Server Info
   ----------------------------------------------------------- */
.home-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
}

.home-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(232, 90, 79, 0.12), transparent 35%),
    linear-gradient(180deg, #1d1e26 0%, #181921 100%);
  border: 1px solid rgba(232, 90, 79, 0.25);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  transition: border-color .2s ease, transform .2s ease;
  display: flex;
  flex-direction: column;
}
.home-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--p-color), var(--gold), var(--p-color));
  z-index: 2;
}

.home-card-title {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  line-height: 1;
  margin: 0 0 12px;
}
.home-card-desc {
  margin: 0 0 22px;
  color: var(--text-mute);
  font-size: 14px;
  line-height: 1.6;
}

/* HOW TO JOIN */
.join-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 0% 100%, rgba(255, 122, 0, 0.18), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(255, 184, 0, 0.1), transparent 40%);
  pointer-events: none;
  z-index: 0;
}
.join-card > * { position: relative; z-index: 1; }

.join-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 184, 0, 0.12);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 14px;
  align-self: flex-start;
}

.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all .15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.join-btn-svg { width: 22px; height: 22px; flex-shrink: 0; }

.join-btn-primary {
  background: linear-gradient(180deg, #F36430, #c04318);
  color: #fff;
  border-color: #a93812;
  box-shadow:
    0 4px 0 rgba(120, 40, 0, 0.4),
    0 6px 14px rgba(243, 100, 48, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
.join-btn-primary:hover {
  background: linear-gradient(180deg, #ff7445, #d8501e);
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 5px 0 rgba(120, 40, 0, 0.4),
    0 8px 18px rgba(243, 100, 48, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

.join-btn-ghost {
  background: var(--bg-3);
  color: var(--text);
  border-color: var(--border-soft);
}
.join-btn-ghost:hover {
  background: var(--bg-4);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* SERVER INFO */
.info-card {
  position: relative;
  overflow: hidden;
}
.info-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.info-deco-anchor {
  position: absolute;
  right: -30px;
  bottom: -40px;
  font-size: 240px;
  color: rgba(255, 184, 0, 0.05);
  transform: rotate(-15deg);
  line-height: 1;
}
.info-card > * { position: relative; z-index: 1; }

.info-badge {
  position: absolute;
  top: 22px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 26px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 999px;
  z-index: 3;
}
.info-pulse-dot {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
}
.info-pulse {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
  opacity: 0.7;
}
@keyframes pulse {
  0% { transform: translateY(-50%) scale(1); opacity: 0.7; }
  100% { transform: translateY(-50%) scale(3); opacity: 0; }
}

.info-ip-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  cursor: pointer;
  transition: all .15s ease;
}
.info-ip-row:hover {
  border-style: solid;
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.5);
}
.info-row-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.info-row-label i { color: var(--p-color); }
.info-row-value {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  line-height: 1.1;
  word-break: break-all;
}
.info-row-copy {
  font-size: 13px;
  color: var(--text-faint);
  transition: color .15s ease;
}
.info-ip-row:hover .info-row-copy { color: var(--gold); }

.info-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .info-stats { grid-template-columns: 1fr; }
}
.info-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.info-stat-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--p-color), var(--p-color-dark));
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.info-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.info-stat-value {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold-light);
  letter-spacing: 0.03em;
  line-height: 1.1;
}

/* -----------------------------------------------------------
   HOW TO JOIN — YouTube tutorial video (vertical short)
   ----------------------------------------------------------- */
.how-video-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.how-video-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(255, 170, 28, 0.10);
  border: 1px solid rgba(255, 170, 28, 0.35);
  border-radius: 999px;
}
.how-video-label i { color: #ff0000; font-size: 14px; }

.how-video-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(232, 90, 79, 0.4);
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.6),
    0 0 36px rgba(232, 90, 79, 0.25);
}
.how-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* -----------------------------------------------------------
   HOW TO JOIN — launcher cards
   ----------------------------------------------------------- */
.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.join-method {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px 24px 24px;
  background: linear-gradient(180deg, #1d1e26 0%, #16171f 100%);
  border: 1px solid rgba(232, 90, 79, 0.18);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: all .2s ease;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.join-method::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--p-color);
}
.join-method:hover {
  transform: translateY(-6px);
  color: var(--text);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

.join-method-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--p-color);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.join-method-icon svg { width: 30px; height: 30px; }

.join-method-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 170, 28, 0.12);
  border: 1px solid rgba(255, 170, 28, 0.4);
  border-radius: 999px;
}

.join-method-title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff;
}

.join-method-desc {
  margin: 0;
  color: var(--text-mute);
  font-size: 13px;
  line-height: 1.5;
  flex: 1;
}

.join-method-cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  transition: gap .15s ease;
}
.join-method:hover .join-method-cta { gap: 12px; color: var(--gold); }

/* Brand colors per launcher */
.join-method-cf::before { background: #F36430; }
.join-method-cf .join-method-icon { background: linear-gradient(180deg, #F36430, #c04318); box-shadow: 0 4px 10px rgba(243, 100, 48, 0.4), inset 0 1px 0 rgba(255,255,255,0.2); }
.join-method-cf:hover { border-color: #F36430; }

.join-method-technic::before { background: #c8884a; }
.join-method-technic .join-method-icon { background: linear-gradient(180deg, #c8884a, #8a5e2e); box-shadow: 0 4px 10px rgba(200, 136, 74, 0.4), inset 0 1px 0 rgba(255,255,255,0.2); }
.join-method-technic:hover { border-color: #c8884a; }

.join-method-modrinth::before { background: #1BD96A; }
.join-method-modrinth .join-method-icon { background: linear-gradient(180deg, #1BD96A, #14a851); box-shadow: 0 4px 10px rgba(27, 217, 106, 0.35), inset 0 1px 0 rgba(255,255,255,0.2); }
.join-method-modrinth:hover { border-color: #1BD96A; }

.join-method-mods::before { background: var(--gold); }
.join-method-mods .join-method-icon { background: linear-gradient(180deg, var(--gold), var(--gold-dark)); box-shadow: 0 4px 10px rgba(255, 170, 28, 0.4), inset 0 1px 0 rgba(255,255,255,0.2); }
.join-method-mods:hover { border-color: var(--gold); }

/* CMS content typography (for the optional CMS body content) */
.cms-content { color: var(--text); line-height: 1.7; }
.cms-content h1, .cms-content h2, .cms-content h3 {
  font-family: var(--font-display);
  color: var(--gold-light);
  letter-spacing: 0.03em;
  margin: 24px 0 12px;
}
.cms-content h1 { font-size: 32px; }
.cms-content h2 { font-size: 26px; }
.cms-content h3 { font-size: 22px; }
.cms-content p { margin: 0 0 12px; }
.cms-content ul, .cms-content ol { padding-left: 22px; }
.cms-content li { margin-bottom: 6px; }
.cms-content blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--p-color);
  background: rgba(243, 100, 48, 0.05);
  color: var(--text-mute);
}
.cms-content code {
  background: var(--bg-3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--gold-light);
}
.cms-content img { max-width: 100%; border-radius: var(--radius-md); margin: 8px 0; }

/* -----------------------------------------------------------
   DISCOVER CAROUSEL
   ----------------------------------------------------------- */
.discover {
  margin-bottom: 28px;
}
.discover-head {
  position: relative;
  text-align: center;
  margin: 0 0 28px;
  padding: 14px 20px 6px;
}
.discover-head::before,
.discover-head::after {
  content: '';
  position: absolute;
  top: 60%;
  width: clamp(60px, 22%, 280px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}
.discover-head::before { left: 0; }
.discover-head::after  { right: 0; }
.discover-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--p-color-light);
  margin-bottom: 2px;
  text-shadow: 0 0 12px rgba(255, 122, 0, 0.35);
}
.discover-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 60px);
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, var(--gold-light), var(--p-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 20px rgba(255, 122, 0, 0.35);
  line-height: 1;
}

.carousel {
  position: relative;
  width: 100%;
  height: clamp(280px, 42vw, 460px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .6s ease, transform 8s ease;
  pointer-events: none;
}
.carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 15, 0.1) 0%, rgba(7, 9, 15, 0.7) 60%, rgba(7, 9, 15, 0.95) 100%),
    linear-gradient(90deg, rgba(255, 122, 0, 0.12), transparent 60%);
  pointer-events: none;
}
.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.carousel-content {
  position: relative;
  z-index: 2;
  padding: 32px 40px 50px;
  max-width: 640px;
  color: #fff;
}
.carousel-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(255, 184, 0, 0.15);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 12px;
}
.carousel-h {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 42px);
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin: 0 0 10px;
  color: #fff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.carousel-p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Prev / Next buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 9, 15, 0.65);
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all .2s ease;
}
.carousel-btn:hover {
  background: var(--p-color);
  border-color: var(--p-color);
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 6px 18px rgba(255, 122, 0, 0.45);
}
.carousel-prev { left: 18px; }
.carousel-next { right: 18px; }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(7, 9, 15, 0.55);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.carousel-dots .dot {
  width: 9px;
  height: 9px;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s ease;
}
.carousel-dots .dot:hover { background: rgba(255, 255, 255, 0.7); }
.carousel-dots .dot.active {
  width: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--p-color), var(--gold));
}

@media (max-width: 700px) {
  .carousel-content { padding: 20px 22px 56px; }
  .carousel-btn { width: 38px; height: 38px; font-size: 14px; }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
}

/* -----------------------------------------------------------
   CART DRAWER
   ----------------------------------------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  z-index: 9998;
  transition: opacity .25s ease;
  backdrop-filter: blur(4px);
}
.overlay.active { opacity: 1; pointer-events: auto; }

.cart-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  max-width: 100%;
  background: var(--bg-1);
  border-left: 2px solid var(--border-strong);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.cart-menu.active { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(255, 122, 0, 0.1), transparent);
}

.cart-header-text {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.05em;
  color: var(--gold);
  flex: 1;
}

.cart-close {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text);
  transition: all .15s ease;
}
.cart-close:hover { background: var(--danger); border-color: var(--danger); color: #fff; }

.cart-body { flex: 1; overflow-y: auto; padding: 20px; }

.cart-body .card {
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: border-color .15s ease;
}
.cart-body .card:hover { border-color: var(--border); }

.cart-body .card-body {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-body .name { font-weight: 600; }
.cart-body .price {
  color: var(--gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cart-body .remove a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  color: var(--text-mute);
  border-radius: var(--radius-sm);
  transition: all .15s ease;
}
.cart-body .remove a:hover { background: var(--danger); color: #fff; }

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  gap: 14px;
}
.cart-footer .total { flex: 1; }
.cart-footer .total b { color: var(--gold); }

.currency { position: relative; }
.currency .dropdown-toggle {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.currency .dropdown-toggle:hover { background: var(--bg-4); }
.currency .dropdown-menu {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.currency .dropdown-item {
  display: block;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text);
  border-radius: var(--radius-sm);
}
.currency .dropdown-item:hover,
.currency .dropdown-item.active { background: var(--p-color); color: #fff; }

/* -----------------------------------------------------------
   MAIN LAYOUT
   ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

.main-container {
  position: relative;
  z-index: 2;
  padding-top: 28px;
  padding-bottom: 40px;
}

/* Legacy sidebar grid kept for safety, but no longer used */
.col-lg-9 { width: 100%; }

/* (legacy sidebar styles removed — top nav now used) */

/* -----------------------------------------------------------
   CARDS
   ----------------------------------------------------------- */
.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(232, 90, 79, 0.10), transparent 35%),
    linear-gradient(180deg, #1c1d25 0%, #17181f 100%);
  border: 1px solid rgba(232, 90, 79, 0.22);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all .2s ease;
}
.card:hover {
  border-color: rgba(232, 90, 79, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 30px rgba(232, 90, 79, 0.22);
}

.card-header {
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.05em;
  color: #fff;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(90deg, var(--bg-2), var(--bg-1));
  position: relative;
}
.card-header::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--p-color), var(--gold));
}
.card-header .float-right { float: right; color: var(--gold); }

.card-body {
  padding: 20px;
  color: var(--text);
  line-height: 1.6;
}
.card-body p { margin: 0 0 12px; }
.card-body p:last-child { margin-bottom: 0; }
.card-body a { color: var(--gold-light); }
.card-body a:hover { color: var(--gold); text-decoration: underline; }

.modules-row .card-header { font-size: 18px; padding: 14px 16px; }
.modules-row .card-body { padding: 16px; font-size: 14px; }

/* -----------------------------------------------------------
   HOME WELCOME
   ----------------------------------------------------------- */
.hero-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 122, 0, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border-color: var(--border);
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 90%, rgba(255, 184, 0, 0.08), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(255, 122, 0, 0.08), transparent 30%);
  pointer-events: none;
}

.store-home {
  text-align: center;
  padding: 20px 10px 30px;
  position: relative;
  z-index: 1;
}
.store-welcome {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 6px;
}
.store-name {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 86px);
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, var(--gold-light), var(--p-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  text-shadow: 0 6px 30px rgba(255, 122, 0, 0.4);
  margin-bottom: 8px;
}
.store-tagline {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.05em;
  color: var(--text);
  opacity: 0.7;
}

/* Big copy-IP block in hero */
.ip-hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 20px;
  background:
    linear-gradient(180deg, rgba(255, 122, 0, 0.1), rgba(0, 0, 0, 0.3));
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all .2s ease;
  margin: 16px auto 0;
  max-width: 640px;
}
.ip-hero:hover {
  border-color: var(--gold);
  background:
    linear-gradient(180deg, rgba(255, 122, 0, 0.18), rgba(0, 0, 0, 0.3));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 122, 0, 0.2);
}
.ip-hero-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.ip-hero-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0.04em;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 4px 16px rgba(255, 184, 0, 0.3);
  word-break: break-all;
  text-align: center;
}
.ip-hero-action {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 4px;
}
.ip-hero:hover .ip-hero-action { color: var(--gold-light); }

.index-description {
  color: var(--text);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 700px) {
  .stats-row { grid-template-columns: 1fr; }
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: all .15s ease;
  box-shadow: var(--shadow-md);
}
.stat-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.stat-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--p-color), var(--p-color-dark));
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

.stat-info { flex: 1; min-width: 0; }
.stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-light);
  line-height: 1;
  letter-spacing: 0.03em;
}

/* -----------------------------------------------------------
   PACKAGES
   ----------------------------------------------------------- */
.category .row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
}
.category .col-lg-4 {
  flex: 1 1 calc(33.333% - 16px);
  min-width: 240px;
  max-width: 100%;
  padding: 0;
}

.card.package {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  margin: 0;
  overflow: hidden;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card.package:hover {
  border-color: var(--p-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 24px rgba(255, 122, 0, 0.2);
}
.card.package .card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card.package .image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 122, 0, 0.15), transparent 70%);
  border-radius: var(--radius-md);
  margin: -8px -8px 0;
}
.card.package .image img {
  max-height: 120px;
  width: auto;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.5));
  transition: transform .25s ease;
}
.card.package:hover .image img { transform: scale(1.06) rotate(-2deg); }
.card.package .image .img-rounded { border-radius: var(--radius-md); }
.card.package .image .img-thumbnail {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  background: rgba(0,0,0,0.2);
}

.card.package .info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.card.package .info .flex-grow-1 { flex: 1; min-width: 0; }

.card.package .name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.03em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
}

.card.package .price {
  font-weight: 700;
  font-size: 18px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.card.package .price small {
  font-size: 11px;
  color: var(--text-mute);
  margin-left: 4px;
}
.discount {
  text-decoration: line-through;
  color: var(--text-faint);
  margin-right: 8px;
  font-size: 14px;
}

.category .table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.category .table tbody tr {
  background: var(--bg-2);
  transition: background .15s ease;
}
.category .table tbody tr:hover { background: var(--bg-3); }
.category .table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.category .table .name {
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
}
.category .table .price { color: var(--gold); font-weight: 700; }
.category .table .button { text-align: right; }

/* -----------------------------------------------------------
   BUTTONS
   ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all .15s ease;
  white-space: nowrap;
  user-select: none;
}
.btn:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 11px; }
.btn-xs { padding: 4px 8px; font-size: 10px; }

.btn-theme {
  background: linear-gradient(180deg, var(--p-color-light), var(--p-color-dark));
  color: #fff;
  border-color: var(--p-color-dark);
  box-shadow:
    0 4px 0 rgba(120, 50, 0, 0.5),
    0 6px 14px rgba(255, 122, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-theme:hover {
  background: linear-gradient(180deg, #ffae5c, var(--p-color));
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 5px 0 rgba(120, 50, 0, 0.5),
    0 8px 18px rgba(255, 122, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-theme:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 rgba(120, 50, 0, 0.5),
    0 3px 8px rgba(255, 122, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: var(--bg-3);
  color: var(--text);
  border-color: var(--border-soft);
}
.btn-secondary:hover { background: var(--bg-4); color: #fff; border-color: var(--border); }

.btn-danger {
  background: linear-gradient(180deg, #f87171, #dc2626);
  color: #fff;
  border-color: #b91c1c;
}
.btn-danger:hover { background: linear-gradient(180deg, #fb8a8a, var(--danger)); color: #fff; }

.cart-checkout { box-shadow: var(--shadow-glow); }

/* -----------------------------------------------------------
   MODAL
   ----------------------------------------------------------- */
.modal { background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(6px); }
.modal-dialog { max-width: 560px; margin: 60px auto; }
.modal-content {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.modal-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--p-color), var(--gold), var(--p-color));
}

.modal-header {
  display: flex;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(255, 122, 0, 0.1), transparent);
}
.modal-title {
  flex: 1;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--gold-light);
}
.modal-header .close {
  background: transparent;
  border: 0;
  font-size: 28px;
  color: var(--text-mute);
  cursor: pointer;
  line-height: 1;
  padding: 0 6px;
  transition: color .15s ease;
}
.modal-header .close:hover { color: var(--danger); }

.modal-body { padding: 0; }
.package-description {
  padding: 20px 22px !important;
  color: var(--text);
  line-height: 1.6;
}
.package-description img { border-radius: var(--radius-md); margin: 8px 0; }

.package-footer {
  padding: 18px 22px !important;
  background: var(--bg-2);
  border-top: 1px solid var(--border-soft);
}
.package-footer b { color: var(--gold); font-size: 18px; }
.package-footer-buttons { display: inline-flex; gap: 8px; }

.btn-gift {
  margin-top: 10px;
  background: var(--bg-3);
  color: var(--text);
  border-color: var(--border-soft);
  font-size: 11px;
  cursor: pointer;
}
.btn-gift:hover { background: var(--bg-4); }
.btn-gift-xl { display: block; width: 100%; margin-top: 10px; }

.gift-fields {
  padding: 14px;
  background: var(--bg-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
}

/* -----------------------------------------------------------
   FORMS
   ----------------------------------------------------------- */
.form-control,
.form-control-sm {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  transition: all .15s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--p-color);
  background: var(--bg-1);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.15);
}
.form-control::placeholder { color: var(--text-faint); }
.form-control-sm { padding: 6px 10px; font-size: 12px; }
.input-lg { padding: 14px 16px; font-size: 15px; }

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' fill='%23ffb800'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-group { margin-bottom: 16px; }

.input-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.input-group .form-control { flex: 1; }
.input-group-btn .btn,
.input-group-btn button { height: 100%; }

.input-group-addon {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--bg-3);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text-mute);
  font-weight: 600;
}

/* -----------------------------------------------------------
   CHECKOUT TABLE
   ----------------------------------------------------------- */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--text);
}
.table thead th {
  padding: 12px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-mute);
  border-bottom: 2px solid var(--border);
  text-align: left;
  background: var(--bg-2);
}
.table tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.table-striped tbody tr:nth-child(odd) { background: rgba(255,255,255,0.02); }
.table-responsive { overflow-x: auto; }

.package-options {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
}
.package-options strong { color: var(--gold-light); }
.package-options .float-left { float: none; }
.package-options .float-right { float: none; color: var(--text); }

/* -----------------------------------------------------------
   ALERTS / BADGES
   ----------------------------------------------------------- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid;
  margin-bottom: 16px;
  position: relative;
}
.alert-info { background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.35); color: #93c5fd; }
.alert-danger { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.35); color: #fca5a5; }
.alert-warning { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.35); color: #fcd34d; }
.alert .close {
  position: absolute;
  top: 10px; right: 12px;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.7;
}
.alert .close:hover { opacity: 1; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
}
.badge-success { background: rgba(34, 197, 94, 0.18); color: #4ade80; border: 1px solid rgba(34,197,94,0.35); }
.badge-danger { background: rgba(239, 68, 68, 0.18); color: #f87171; border: 1px solid rgba(239,68,68,0.35); }

/* -----------------------------------------------------------
   PROGRESS BARS
   ----------------------------------------------------------- */
.progress {
  height: 18px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--p-color), var(--gold));
  transition: width .6s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.progress-striped .progress-bar {
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%);
  background-size: 22px 22px;
}
.progress.active .progress-bar { animation: progress-shine 1s linear infinite; }
@keyframes progress-shine {
  0% { background-position: 0 0; }
  100% { background-position: 22px 0; }
}
.donation-goal p { margin-bottom: 6px; font-size: 13px; color: var(--text-mute); }

/* -----------------------------------------------------------
   MODULES
   ----------------------------------------------------------- */
.featured-package .image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: radial-gradient(circle at center, rgba(255, 122, 0, 0.15), transparent 70%);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}
.featured-package .image img {
  max-height: 100px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}
.featured-package .info .name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold-light);
  line-height: 1.1;
  margin-bottom: 4px;
}
.featured-package .info .price { color: var(--gold); font-weight: 700; }

.top-donator { display: flex; align-items: center; gap: 12px; }
.top-donator .avatar img {
  border-radius: var(--radius-sm);
  image-rendering: pixelated;
}
.top-donator .ign { font-weight: 700; color: var(--gold-light); font-size: 15px; }
.top-donator .amount { font-size: 12px; color: var(--text-mute); }

.modules-row .avatar { display: inline-block; position: relative; }
.modules-row .avatar img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  image-rendering: pixelated;
  transition: transform .15s ease;
}
.modules-row .avatar:hover img {
  transform: scale(1.1);
  border-color: var(--gold);
}

/* -----------------------------------------------------------
   FOOTER
   ----------------------------------------------------------- */
.footer.small-footer {
  margin-top: 40px;
  padding: 20px 0;
  background: #18120f;
  border-top: 1px solid rgba(243, 100, 48, 0.30);
  font-size: 13px;
  color: var(--text-mute);
}
.footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.footer-copyright { flex: 1; }
.footer-link {
  color: var(--text-mute);
  text-decoration: none;
  margin: 0 8px;
  transition: color .15s ease;
}
.footer-link:hover { color: var(--gold-light); }
.copyright-txt { color: var(--text-mute); }
.dropup .dropdown-menu {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  margin-bottom: 8px;
}
.dropup .dropdown-item {
  display: block;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.dropup .dropdown-item:hover { background: var(--p-color); color: #fff; }

/* -----------------------------------------------------------
   UTILITY CLASSES
   ----------------------------------------------------------- */
.theme-text { color: var(--gold); }
.text-white { color: #fff !important; }
.text-danger { color: var(--danger); }
.grey-link { color: var(--text-mute); }
.grey-link:hover { color: var(--danger); }

.d-flex { display: flex; }
.d-inline-block { display: inline-block; }
.d-block { display: block; }
.flex-grow-1 { flex: 1; min-width: 0; }
.flex-shrink-0 { flex-shrink: 0; }
.text-center { text-align: center; }
.float-right { float: right; }
.float-left { float: left; }

.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 16px; } .mt-4 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 16px; } .mb-4 { margin-bottom: 24px; }
.ms-2 { margin-left: 8px; } .ms-3 { margin-left: 16px; } .ms-4 { margin-left: 24px; }
.me-3 { margin-right: 16px; } .me-4 { margin-right: 24px; }
.mr-1 { margin-right: 4px; } .mr-2 { margin-right: 8px; } .mr-3 { margin-right: 16px; }
.ml-3 { margin-left: 16px; }
.p-0 { padding: 0 !important; } .p-3 { padding: 16px !important; }

.hidden, .hide { display: none !important; }

/* -----------------------------------------------------------
   SCROLLBAR
   ----------------------------------------------------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--p-color-dark), var(--bg-3));
  border-radius: 999px;
  border: 2px solid var(--bg-1);
}
::-webkit-scrollbar-thumb:hover { background: var(--p-color); }

/* -----------------------------------------------------------
   CATEGORY HEADER
   ----------------------------------------------------------- */
.cat-header {
  margin-bottom: 28px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}
.cat-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--p-color);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cat-title {
  font-family: var(--font-display);
  font-size: 34px;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: 0.03em;
  line-height: 1.1;
}
.cat-desc {
  color: var(--text-mute);
  font-size: 14px;
  max-width: 620px;
  line-height: 1.6;
}

/* -----------------------------------------------------------
   PKG HORIZONTAL CARDS
   ----------------------------------------------------------- */
.pkg-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pkg-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border-soft);
  border-left: 3px solid transparent;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  transition: all .2s ease;
  position: relative;
  overflow: hidden;
}
.pkg-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(243,100,48,0.06), transparent 55%);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
  border-radius: inherit;
}
.pkg-card:hover {
  border-left-color: var(--p-color);
  transform: translateX(4px);
  box-shadow: var(--shadow-md), -2px 0 12px rgba(243,100,48,0.2);
}
.pkg-card:hover::after { opacity: 1; }

.pkg-card--owned {
  border-left-color: var(--success);
}
.pkg-card--owned:hover {
  border-left-color: var(--success);
  box-shadow: var(--shadow-md), -2px 0 12px rgba(34,197,94,0.2);
}
.pkg-card--owned::after {
  background: linear-gradient(90deg, rgba(34,197,94,0.05), transparent 55%);
}

.pkg-card-img-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle at 50% 55%, rgba(255,122,0,0.2), transparent 70%);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
}
.pkg-card-img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.55));
  transition: transform .25s ease;
  display: block;
}
.pkg-card:hover .pkg-card-img { transform: scale(1.1) rotate(-2deg); }
.pkg-card-img.img-thumbnail {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.2);
  padding: 5px;
}

.pkg-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pkg-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pkg-card-name {
  font-family: var(--font-display);
  font-size: 21px;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.15;
  flex: 1;
  min-width: 0;
}

.pkg-card-countdown {
  font-size: 10px;
  font-weight: 700;
  color: var(--danger);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid rgba(239,68,68,0.4);
  border-radius: 999px;
  background: rgba(239,68,68,0.08);
}

.pkg-card-owned-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid rgba(34,197,94,0.35);
  border-radius: 999px;
  background: rgba(34,197,94,0.08);
  white-space: nowrap;
}

.pkg-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pkg-card-price {
  font-weight: 700;
  font-size: 22px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.pkg-card-price small {
  font-size: 12px;
  color: var(--text-mute);
  margin-left: 3px;
  font-weight: 400;
}
.pkg-card-price .discount {
  font-size: 14px;
  color: var(--text-faint);
  margin-right: 8px;
  text-decoration: line-through;
  font-weight: 400;
}
.pkg-free {
  color: var(--success);
  font-size: 18px;
}

.no-packages-msg {
  color: var(--text-mute);
  text-align: center;
  padding: 60px 20px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* -----------------------------------------------------------
   STORE CUSTOM PAGE
   ----------------------------------------------------------- */
.store-banner {
  position: relative;
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 44px 36px 40px;
  margin-bottom: 28px;
  overflow: hidden;
  text-align: center;
}
.store-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(243,100,48,0.28), transparent 65%);
  pointer-events: none;
}
.store-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--p-color), var(--gold), var(--p-color), transparent);
  opacity: 0.6;
}
.store-banner-eyebrow {
  position: relative;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.store-banner-title {
  position: relative;
  font-family: var(--font-display);
  font-size: 44px;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: 0.04em;
  line-height: 1.05;
}
.store-banner-sub {
  position: relative;
  color: var(--text-mute);
  font-size: 15px;
  margin: 0;
}

.store-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.store-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px 24px 22px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: all .2s ease;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.store-cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  transition: height .2s ease;
}
.store-cat-card:hover {
  transform: translateY(-6px);
  color: var(--text);
  box-shadow: 0 16px 38px rgba(0,0,0,0.55);
}
.store-cat-card:hover::before { height: 4px; }

.store-cat-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

.store-cat-name {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: #fff;
  margin-top: 4px;
}

.store-cat-desc {
  color: var(--text-mute);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.store-cat-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.store-cat-sub {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-soft);
  color: var(--text-mute);
}

.store-cat-cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  transition: gap .15s ease, color .15s ease;
}
.store-cat-card:hover .store-cat-cta { gap: 12px; color: var(--gold); }

/* Accent variants — cycle with loop.index0 % 5 */
.store-cat-card--0::before { background: var(--p-color); }
.store-cat-card--0 .store-cat-icon { background: linear-gradient(180deg, var(--p-color-light), var(--p-color-dark)); box-shadow: 0 4px 10px rgba(243,100,48,0.45), inset 0 1px 0 rgba(255,255,255,0.2); }
.store-cat-card--0:hover { border-color: var(--p-color); box-shadow: 0 16px 38px rgba(0,0,0,0.55), 0 0 22px rgba(243,100,48,0.2); }

.store-cat-card--1::before { background: var(--gold); }
.store-cat-card--1 .store-cat-icon { background: linear-gradient(180deg, var(--gold-light), var(--gold-dark)); box-shadow: 0 4px 10px rgba(255,170,28,0.45), inset 0 1px 0 rgba(255,255,255,0.2); }
.store-cat-card--1:hover { border-color: var(--gold); box-shadow: 0 16px 38px rgba(0,0,0,0.55), 0 0 22px rgba(255,170,28,0.2); }

.store-cat-card--2::before { background: #22c55e; }
.store-cat-card--2 .store-cat-icon { background: linear-gradient(180deg, #4ade80, #16a34a); box-shadow: 0 4px 10px rgba(34,197,94,0.45), inset 0 1px 0 rgba(255,255,255,0.2); }
.store-cat-card--2:hover { border-color: #22c55e; box-shadow: 0 16px 38px rgba(0,0,0,0.55), 0 0 22px rgba(34,197,94,0.2); }

.store-cat-card--3::before { background: #9333ea; }
.store-cat-card--3 .store-cat-icon { background: linear-gradient(180deg, #a855f7, #7e22ce); box-shadow: 0 4px 10px rgba(147,51,234,0.45), inset 0 1px 0 rgba(255,255,255,0.2); }
.store-cat-card--3:hover { border-color: #9333ea; box-shadow: 0 16px 38px rgba(0,0,0,0.55), 0 0 22px rgba(147,51,234,0.2); }

.store-cat-card--4::before { background: #3b82f6; }
.store-cat-card--4 .store-cat-icon { background: linear-gradient(180deg, #60a5fa, #1d4ed8); box-shadow: 0 4px 10px rgba(59,130,246,0.45), inset 0 1px 0 rgba(255,255,255,0.2); }
.store-cat-card--4:hover { border-color: #3b82f6; box-shadow: 0 16px 38px rgba(0,0,0,0.55), 0 0 22px rgba(59,130,246,0.2); }

/* -----------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------- */
@media (max-width: 768px) {
  .cart-menu { width: 100%; }
  .category .col-lg-4 { flex: 1 1 100%; min-width: 0; }
  .modal-dialog { margin: 16px; }
  .modal-title { font-size: 22px; }
  .pkg-card { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pkg-card:hover { transform: translateY(-2px) translateX(0); }
  .pkg-card-img-wrap { width: 70px; height: 70px; }
  .pkg-card-img { width: 58px; height: 58px; }
  .pkg-card-name { font-size: 18px; }
  .pkg-card-price { font-size: 18px; }
  .cat-title { font-size: 26px; }
}
