/* ═══════════════════════════════════════════════════
   Smite Network Store Theme
   Dark-but-airy · Vivid Purple · Crystal Energy
═══════════════════════════════════════════════════ */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap");

/* ── Design Tokens ────────────────────────────── */
:root {
  --color-bg: #15131f;
  --color-brighter-bg: #211d33;
  --color-primary: #8b5cf6;
  --color-primary-hover: #a78bfa;
  --color-primary-text: #ffffff;
  --color-primary-text-hover: #ffffff;
  --color-secondary: #2a2540;
  --color-secondary-hover: #352f50;
  --color-secondary-text: #c7c2e8;
  --color-secondary-text-hover: #ffffff;
  --color-tertiary: transparent;
  --color-tertiary-hover: rgba(139, 92, 246, 0.12);
  --color-tertiary-text: #ece9f8;
  --color-tertiary-text-hover: #ffffff;
  --color-text: #ece9f8;
  --color-text-darker: #d6d1ee;
  --color-text-secondary: #9b96b8;
  --color-removed: #e06a6a;

  /* Smite-specific */
  --smite-purple: #8b5cf6;
  --smite-purple-soft: #a78bfa;
  --smite-purple-deep: #6d28d9;
  --smite-crystal: #5fd0e8;
  --smite-crystal-bright: #67e8f9;
  --smite-glow: rgba(139, 92, 246, 0.45);
  --smite-crystal-glow: rgba(103, 232, 249, 0.22);
  --smite-card-bg: rgba(33, 29, 51, 0.78);
  --smite-card-border: rgba(167, 139, 250, 0.18);
  --smite-card-border-bright: rgba(167, 139, 250, 0.55);

  /* Full-but-padded width */
  --content-inner-width: 1640px;
}

/* ── Base ─────────────────────────────────────── */
body {
  font-family: 'Inter', sans-serif;
  background: var(--color-bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 85% 55% at 50% -12%, rgba(139, 92, 246, 0.26) 0%, transparent 60%),
    radial-gradient(ellipse 55% 50% at 88% 8%, rgba(103, 232, 249, 0.10) 0%, transparent 55%),
    radial-gradient(circle at 12% 92%, rgba(139, 92, 246, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

/* Interactive particle background canvas (sits above the gradient,
   behind all page content; never intercepts clicks). */
#smite-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ── Buttons ──────────────────────────────────── */
.btn-primary,
.btn-secondary,
.btn-tertiary {
  border-radius: 8px;
  letter-spacing: 0.015em;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  box-shadow: 0 2px 16px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.62);
}

.btn-secondary {
  background: rgba(42, 37, 64, 0.7);
  border: 1px solid var(--smite-card-border);
  color: var(--smite-purple-soft);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(139, 92, 246, 0.16);
  border-color: var(--smite-purple-soft);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.35);
}

/* ── Quantity field ───────────────────────────── */
.quantity-field {
  border-radius: 8px;
  border-color: var(--smite-card-border);
}

.store-product .quantity-field {
  border-radius: 8px;
  background: rgba(21, 19, 31, 0.7);
  border-color: var(--smite-card-border);
}

.store-product .quantity-field input[type=number] {
  border: none;
}

/* ═══════════════════════════════════════════════
   HEADER — transparent, airy
═══════════════════════════════════════════════ */
.site-header {
  background: transparent;
  border: none;
  backdrop-filter: none;
}

.site-header-inner .site-title {
  font-weight: 900;
  letter-spacing: -0.025em;
}

/* When no image logo, render the store name as gradient text */
.site-header-inner .site-title a:not(:has(img)) {
  background: linear-gradient(135deg, #ffffff 0%, #a78bfa 55%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-header-inner .site-title img {
  filter: drop-shadow(0 8px 28px rgba(139, 92, 246, 0.4));
}

/* Logo — a little bigger */
@media (width > 960px) {
  .site-header-inner .site-title img { max-height: 150px; }
}
@media (width <= 960px) {
  .site-header-inner .site-title img { max-height: 100px; }
}

/* The dynamic Tebex sale banner is replaced by the sticky top bar. */
.site-sale-banner { display: none; }

/* ── Sticky notification bar ───────────────────── */
.smite-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  text-align: center;
  background: linear-gradient(90deg, #ec4899 0%, #a855f7 52%, #7c3aed 100%);
  box-shadow: 0 2px 20px rgba(168, 85, 247, 0.45);
}

.smite-topbar[hidden] { display: none; }

.smite-topbar-text {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ffffff;
}

.smite-topbar-pill {
  display: inline-block;
  padding: 1px 10px;
  margin: 0 2px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: #ffffff;
}

.smite-topbar-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  color: #ffffff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.smite-topbar-close:hover {
  background: rgba(0, 0, 0, 0.4);
  opacity: 1;
}

/* ── Header status (Minecraft left · Discord right) — flat, pinned to logo ── */
.smite-status {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.smite-status-mc { justify-content: flex-end; text-align: right; }
.smite-status-discord { justify-content: flex-start; text-align: left; }

.smite-status-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.smite-status-mc .smite-status-text { align-items: flex-end; }
.smite-status-discord .smite-status-text { align-items: flex-start; }

.smite-status-count {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  white-space: nowrap;
}
.smite-status-count strong { color: #fff; font-weight: 800; }

.smite-status-sub {
  font-size: 12px;
  letter-spacing: 0.03em;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  text-align: inherit;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.smite-status-discord .smite-status-sub { color: #a3aaf5; }
.smite-status-mc .smite-status-sub { color: var(--smite-crystal-bright); cursor: pointer; }
.smite-status-sub:hover { opacity: 0.8; }

/* Circular brand icon pinned to the logo side */
.smite-status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.smite-status-discord .smite-status-icon {
  background: linear-gradient(135deg, #5865f2, #4752c4);
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.45);
}
.smite-status-mc .smite-status-icon {
  background: linear-gradient(135deg, #22d3ee, #0891b2);
  box-shadow: 0 4px 14px rgba(34, 211, 238, 0.4);
  cursor: pointer;
}
.smite-status-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.smite-status:hover .smite-status-icon { transform: scale(1.08); }
.smite-status-discord:hover .smite-status-icon { box-shadow: 0 0 20px rgba(88, 101, 242, 0.6); }
.smite-status-mc:hover .smite-status-icon { box-shadow: 0 0 20px rgba(34, 211, 238, 0.55); }

@media (width > 960px) {
  .smite-status {
    position: absolute;
    top: calc(var(--widget-padding) + 46px);
    bottom: 0;
    margin: auto 0;
    height: fit-content;
    width: 280px;
    z-index: 3;
  }
  .smite-status-mc { left: 0; }
  .smite-status-discord { right: 0; }

  .site-header-inner .site-title {
    inset: calc(var(--widget-padding) + 46px) 300px 0 300px;
  }
}

@media (width <= 960px) {
  .smite-status { width: 100%; justify-content: center; text-align: center; }
  .smite-status-text { align-items: center; }
}

/* ── Navigation — transparent / airy ──────────── */
@media (width > 960px) {
  .navigation-horizontal > ul {
    border-radius: 0;
  }

  .navigation-horizontal .menu {
    background: transparent;
    border-top: 1px solid rgba(167, 139, 250, 0.12);
    border-bottom: 1px solid rgba(167, 139, 250, 0.12);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.03em;
  }

  .navigation-horizontal .has-children > ul {
    background: rgba(33, 29, 51, 0.96);
    border: 1px solid var(--smite-card-border);
    border-radius: 10px;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  }

  .navigation-horizontal a:hover,
  .navigation-horizontal a.link-active {
    color: var(--smite-purple-soft);
  }

  .navigation-horizontal li li a:hover,
  .navigation-horizontal li li a.link-active {
    color: #fff !important;
    background-color: var(--smite-purple) !important;
  }
}

/* ═══════════════════════════════════════════════
   FULL-WIDTH (full-but-padded) CONTAINERS
═══════════════════════════════════════════════ */
@media (width > 960px) {
  .site-header,
  .site-sale-banner,
  .site-home-categories,
  .site-content,
  .site-footer-inner {
    max-width: var(--content-width);
  }
}

/* ═══════════════════════════════════════════════
   REDIRECT SCREEN (homepage → store)
═══════════════════════════════════════════════ */
.smite-redirect {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 40vh;
  padding: 60px 20px;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.smite-redirect strong {
  color: var(--smite-purple-soft);
}

.smite-redirect a {
  color: var(--smite-purple-soft);
  text-decoration: underline;
}

.smite-redirect a:hover {
  color: var(--color-primary-hover);
}

.smite-redirect-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(167, 139, 250, 0.2);
  border-top-color: var(--smite-purple);
  animation: smiteSpin 0.8s linear infinite;
}

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

/* ═══════════════════════════════════════════════
   WELCOME / NOTICE CARD
═══════════════════════════════════════════════ */
.smite-notice {
  position: relative;
  margin-bottom: 36px;
  padding: 32px 36px;
  border-radius: 18px;
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(139, 92, 246, 0.16) 0%, transparent 48%),
    radial-gradient(100% 140% at 100% 0%, rgba(103, 232, 249, 0.08) 0%, transparent 50%),
    linear-gradient(160deg, rgba(40, 33, 64, 0.62), rgba(23, 19, 35, 0.74));
  border: 1px solid var(--smite-card-border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

/* Head */
.smite-notice-head {
  margin-bottom: 22px;
}

.smite-notice-kicker {
  display: inline-block;
  margin-bottom: 11px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.32);
  background: rgba(103, 232, 249, 0.08);
  color: var(--smite-crystal-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.smite-notice-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.smite-notice-intro {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-darker);
}

/* Points list */
.smite-notice-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px 44px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (width > 760px) {
  .smite-notice-list {
    grid-template-columns: 1fr 1fr;
  }
}

.smite-notice-list li {
  position: relative;
  padding-left: 24px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-text-darker);
}

.smite-notice-list li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 0.5em;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--smite-purple), var(--smite-crystal));
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

.smite-notice-list strong {
  color: #fff;
  font-weight: 700;
}

.smite-notice-list a {
  color: var(--smite-purple-soft);
  text-decoration: underline;
  text-decoration-color: rgba(167, 139, 250, 0.4);
  transition: color 0.2s ease;
}

.smite-notice-list a:hover {
  color: var(--color-primary-hover);
}

/* ═══════════════════════════════════════════════
   STORE LAYOUT — centered, single column
═══════════════════════════════════════════════ */
.smite-store-inner {
  max-width: 1320px;
  margin: 0 auto;
}

/* Recent-purchases carousel container (modules render here, above grid) */
.smite-modules-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.smite-modules-top > style {
  display: none;
}

/* If only the (invisible) featured-package style is present, collapse it. */
.smite-modules-top:not(:has(.widget)) {
  display: none;
}

.smite-section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.smite-section-heading::before {
  content: '';
  display: block;
  width: 4px;
  height: 26px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #8b5cf6, #a78bfa);
  border-radius: 2px;
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.5);
}

.smite-section-heading h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

/* ── Package grid: 3 per row, slightly narrower than the page ── */
.smite-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

@media (width > 640px) {
  .smite-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width > 1240px) {
  .smite-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Package card ─────────────────────────────── */
.smite-grid .store-product {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 13px;
  padding: 16px 18px 20px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(40, 33, 64, 0.7) 0%, rgba(28, 24, 44, 0.78) 100%);
  border: 1px solid var(--smite-card-border);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.28s ease;
}

.smite-grid .store-product:hover {
  border-color: var(--smite-card-border-bright);
  box-shadow: 0 0 30px var(--smite-crystal-glow), 0 14px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

/* Image showcase stage — keeps every card the same height */
.smite-grid .store-product .image-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.12);
  background:
    radial-gradient(circle at 50% 38%, rgba(139, 92, 246, 0.22) 0%, transparent 68%),
    rgba(21, 19, 31, 0.5);
  overflow: hidden;
}

.smite-grid .store-product .image {
  max-width: 82%;
  max-height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
  transition: transform 0.35s ease;
}

.smite-grid .store-product:hover .image {
  transform: scale(1.07);
}

.smite-grid .store-product .image-default {
  width: 76px;
  height: 76px;
}

.smite-grid .store-product .product-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.smite-grid .store-product .product-title a:hover {
  color: var(--smite-purple-soft);
}

/* ── Card-only snippet ([underlable]…[/underlable]) ────────────
   Parsed server-side in Twig; this element only ever contains the
   snippet text. Clamped to 2 lines, owner's inline colours kept. */
.smite-card-descr {
  width: 100%;
  margin-top: -6px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 3.4em;
}

.smite-card-descr :where(p, h1, h2, h3, h4, h5, h6, ul, ol, li, div, span) {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  display: inline;
}

.smite-card-descr a {
  color: var(--smite-purple-soft);
  text-decoration: underline;
}

/* Actions: no price row, no divider — just [gift square] [Add to Basket] */
.smite-grid .store-product .actions {
  width: 100%;
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Price now lives as a tag on the image, so hide the one in the actions row */
.smite-grid .store-product .actions .price {
  display: none;
}

.smite-grid .store-product .actions .add,
.smite-grid .store-product .actions .subscribe,
.smite-grid .store-product .actions .open-basket-cta {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
}

.smite-grid .store-product .actions .quantity-field {
  order: 2;
  flex: 1 1 100%;
}

.smite-grid .store-product .actions .gift {
  order: 1;
  flex: none;
}

/* ── Price tag on the image (pure text, top-right) ── */
.smite-price-tag {
  position: absolute;
  top: 11px;
  right: 13px;
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65), 0 0 16px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.smite-price-tag strong { font-weight: 800; }

.smite-price-tag del {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: line-through;
  text-shadow: none;
}

/* On sale, accent the current price in crystal */
.smite-price-tag:has(del) strong {
  color: var(--smite-crystal-bright);
}

.smite-price-note {
  font-size: 13px;
  font-weight: 700;
}

.no-products {
  color: var(--color-text-secondary);
  background: rgba(33, 29, 51, 0.6);
  border-radius: 14px;
  border: 1px solid var(--smite-card-border);
}

/* ═══════════════════════════════════════════════
   RECENT PURCHASES (sidebar widget)
═══════════════════════════════════════════════ */
.widget {
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(40, 33, 64, 0.7), rgba(28, 24, 44, 0.8));
  border: 1px solid var(--smite-card-border);
  padding: 16px var(--widget-padding);
}

.widget-title {
  color: var(--smite-purple-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

/* ── Recent purchases — full-width auto-scrolling carousel ── */
.widget-recent {
  overflow: hidden;
}

.widget-recent .widget-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 14px;
  text-align: center;
}

.widget-recent .widget-title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: #4ade80;
  border-radius: 50%;
}

.recent-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.recent-track {
  display: flex;
  width: max-content;
  animation: smiteMarquee 38s linear infinite;
}

.recent-marquee:hover .recent-track {
  animation-play-state: paused;
}

@keyframes smiteMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .recent-track { animation: none; }
}

/* Per-item margin (not flex gap) so the -50% loop stays seamless. */
.widget-recent .purchase {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 12px;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(21, 19, 31, 0.5);
  border: 1px solid var(--smite-card-border);
}

.widget-recent .avatar {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  object-fit: contain;
  flex-shrink: 0;
}

.widget-recent .info { min-width: 0; }

.widget-recent .username {
  color: var(--smite-purple-soft);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.widget-recent .info p {
  font-size: 12px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.widget-recent time {
  font-size: 11px;
  color: var(--color-text-secondary);
  opacity: 0.75;
  display: block;
  white-space: nowrap;
}

.widget-recent .sep {
  margin: 0 0.25em;
  opacity: 0.5;
}

.widget-recent .empty {
  color: var(--color-text-secondary);
  font-size: 13px;
  text-align: center;
  padding: 10px 0;
}

/* ── Other widgets (goals / donator / gift card) ── */
.widget-gift-card {
  text-align: center;
}

.widget-gift-card .gift-card-input {
  border-radius: 8px;
  border: 1px solid var(--smite-card-border);
  background: rgba(21, 19, 31, 0.7);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.widget-gift-card .gift-card-input:focus {
  border-color: var(--smite-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.widget-community-goal .widget-content,
.widget-goal .widget-content,
.widget-server-status .widget-content,
.widget-top-donator {
  text-align: center;
}

.widget-community-goal .progress,
.widget-goal .progress {
  border-radius: 4px;
  background: rgba(21, 19, 31, 0.7);
  border: 1px solid rgba(167, 139, 250, 0.18);
}

.widget-community-goal .progress-bar,
.widget-goal .progress-bar {
  border-radius: 4px;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.widget-top-donator .avatar {
  border-radius: 50%;
  border: 2px solid var(--smite-purple);
  box-shadow: 0 0 18px var(--smite-glow);
}

/* ═══════════════════════════════════════════════
   CATEGORY / PACKAGE pages
═══════════════════════════════════════════════ */
.category-description {
  border-radius: 14px;
  background: rgba(33, 29, 51, 0.62);
  border: 1px solid var(--smite-card-border);
}

.store-text {
  border-radius: 14px;
  background: var(--smite-card-bg);
  border: 1px solid var(--smite-card-border);
}

.store-text h1, .store-text h2, .store-text h3,
.store-text h4, .store-text h5, .store-text h6 {
  text-align: center;
  color: var(--smite-purple-soft);
}

.store-product-full {
  border-radius: 16px;
  background: var(--smite-card-bg);
  border: 1px solid var(--smite-card-border);
}

.site-home-categories .category {
  border-radius: 14px;
  padding: 22px var(--widget-padding);
  background: var(--smite-card-bg);
  border: 1px solid var(--smite-card-border);
  transition: all 0.25s ease;
}

.site-home-categories .category:hover {
  color: var(--smite-purple-soft);
  border-color: var(--smite-card-border-bright);
  box-shadow: 0 0 24px var(--smite-crystal-glow);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════
   POPUPS / BASKET / TOAST
═══════════════════════════════════════════════ */
.popup-content {
  border-radius: 16px;
  background: rgba(28, 24, 44, 0.98);
  border: 1px solid var(--smite-card-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.popup-close {
  border-radius: 0 16px 0 10px;
}

/* ── Package preview popup — horizontal (image left · details right) ── */
.store-product-popup-content {
  max-width: 880px;
  max-height: calc(100vh - var(--content-padding) * 2);
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "media title"
    "media descr"
    "media actions";
  align-items: start;
  column-gap: 26px;
  row-gap: 14px;
}

.store-product-popup-content > .product-title {
  grid-area: title;
  margin: 0;
  padding-right: 34px;
  font-size: 22px;
  line-height: 1.25;
}

.store-product-popup-content > .image,
.store-product-popup-content > .image-default,
.store-product-popup-content > .media-slider {
  grid-area: media;
  align-self: start;
  width: 100%;
}

.store-product-popup-content > .image {
  max-height: 340px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--smite-card-border);
  background:
    radial-gradient(circle at 50% 40%, rgba(139, 92, 246, 0.18), transparent 70%),
    rgba(21, 19, 31, 0.5);
}

.store-product-popup-content > .image-default {
  min-height: 220px;
  border-radius: 12px;
  border: 1px solid var(--smite-card-border);
  background: rgba(21, 19, 31, 0.5);
}

.store-product-popup-content > .descr {
  grid-area: descr;
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
  font-size: 13.5px;
  line-height: 1.65;
  scrollbar-width: thin;
  scrollbar-color: var(--smite-purple) transparent;
}

/* Actions sit at the bottom-right; no sticky bar inside the popup */
.store-product-popup-content > .actions {
  grid-area: actions;
  position: static !important;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(167, 139, 250, 0.14);
  background: none;
  backdrop-filter: none;
}

.store-product-popup-content > .actions .half,
.store-product-popup-content > .actions .wide {
  flex: 1 1 auto;
}

/* Stack on small screens */
@media (width <= 720px) {
  .store-product-popup-content {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas:
      "media"
      "title"
      "descr"
      "actions";
    max-height: none;
  }
  .store-product-popup-content > .image { max-height: 240px; }
  .store-product-popup-content > .descr { overflow: visible; padding-right: 0; }
}

.basket-popup-content,
.basket-popup-content .popup-close {
  border-radius: 0;
  background: rgba(21, 19, 31, 0.99);
}

.basket-items {
  padding: var(--widget-padding) calc(var(--content-padding) - var(--widget-padding));
}

.basket-item {
  border-radius: 10px;
  background: rgba(33, 29, 51, 0.85);
  border: 1px solid var(--smite-card-border);
}

.basket-item .quantity {
  border-radius: 5px;
}

.basket .basket-item .price,
.basket .basket-checkout .total {
  color: var(--smite-purple-soft);
}

.toast {
  border-radius: 10px;
  background: rgba(33, 29, 51, 0.97);
  border: 1px solid var(--smite-card-border);
  backdrop-filter: blur(10px);
}

.toast-close {
  border-radius: 5px;
}

/* ── Tiered categories ────────────────────────── */
.store-category-tiered {
  border-radius: 16px;
  background: var(--smite-card-bg);
  border: 1px solid var(--smite-card-border);
}

.store-category-tiered-header h1, .store-category-tiered-header h2,
.store-category-tiered-header h3, .store-category-tiered-header h4,
.store-category-tiered-header h5, .store-category-tiered-header h6 {
  text-align: center;
  color: var(--smite-purple-soft);
}

.store-product-tiered {
  border-radius: 10px;
  background: rgba(21, 19, 31, 0.5);
  border: 1px solid var(--smite-card-border);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.store-product-tiered:hover {
  border-color: var(--smite-card-border-bright);
  box-shadow: 0 0 24px var(--smite-crystal-glow);
}

/* ── Media slider ─────────────────────────────── */
.media-slider .slider,
.media-slider .thumb {
  border-radius: 10px;
}

.media-slider .open-lightbox {
  border-radius: 5px;
}

.popup.popup-media-slider .thumb {
  border-radius: 10px;
}

.popup.popup-media-slider .popup-close {
  border-radius: 10px;
}

/* ── Forms ────────────────────────────────────── */
.store-form input[type=text],
.store-form input[type=password],
.store-form input[type=email],
.store-form input[type=number],
.store-form input[type=search],
.store-form input[type=url],
.store-form input[type=tel],
.store-form input[type=date],
.store-form input[type=time],
.store-form input[type=datetime-local],
.store-form input[type=file],
.store-form input[type=month],
.store-form input[type=week],
.store-form select,
.store-form textarea {
  background: rgba(21, 19, 31, 0.7);
  border: 1px solid var(--smite-card-border);
  border-radius: 8px;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-form input:focus,
.store-form select:focus,
.store-form textarea:focus {
  border-color: var(--smite-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* ═══════════════════════════════════════════════
   FOOTER — compact, centered
═══════════════════════════════════════════════ */
.site-footer {
  position: relative;
  background: rgba(17, 15, 26, 0.88);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0, rgba(167, 139, 250, 0.5) 35%, rgba(103, 232, 249, 0.4) 65%, transparent 100%);
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 13px;
  padding-top: 22px;
  padding-bottom: 22px;
  overflow: visible;
}

/* Copyright */
.site-footer-inner .copyright {
  max-width: 720px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}
