/* ==========================================================================
   AuroraGlass — generic.css
   Page-specific skin layer. Loaded after shared.css (see head.twig), so
   everything here can safely refine/override shared.css selectors without
   touching shared.css's structural rules. No selector here was invented —
   every one already existed in the vanilla Tebex template.
   ========================================================================== */

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

:root {
  --color-primary: #2dd4bf;
}

/* Flat premium background. The vanilla template paints a photographic
   bg-image behind body::before — intentionally not reproduced here, since
   the brief calls for a clean, uncluttered #090909 surface with no imagery,
   gradients, or glow. */

/* ---------- Buttons -------------------------------------------------- */

.btn-primary,
.btn-secondary,
.btn-tertiary {
  border-radius: var(--radius-sm);
}

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

.btn-tertiary:hover, .btn-tertiary:focus {
  border-radius: var(--radius-sm);
}

.btn-primary,
.btn-secondary {
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.quantity-field {
  border-radius: var(--radius-sm);
}

.site-header-inner .info .image {
  border-radius: var(--radius-sm);
}

.site-header-inner .info .value {
  border-radius: 4px;
}

/* ---------- Sale banner ----------------------------------------------- */

.site-sale-banner {
  border-radius: var(--radius-md);
}

/* ---------- Home categories -------------------------------------------- */

.site-home-categories .category {
  border-radius: var(--radius-lg);
  padding: 28px var(--widget-padding);
  background: var(--color-brighter-bg);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.site-home-categories .category:hover {
  color: var(--color-primary);
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
}

/* ---------- Text content blocks ---------------------------------------- */

.category-description {
  border-radius: var(--radius-lg);
  background: var(--color-brighter-bg);
  border: 1px solid var(--color-border);
}

.store-text {
  border-radius: var(--radius-lg);
  background: var(--color-brighter-bg);
  border: 1px solid var(--color-border);
}
.store-text h1,
.store-text h2,
.store-text h3,
.store-text h4,
.store-text h5,
.store-text h6 {
  text-align: center;
}

.no-products {
  color: var(--color-text-secondary);
  background: var(--color-brighter-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

/* ---------- Product cards ------------------------------------------- */

.store-products-list .store-product,
.store-products-images .store-product {
  border-radius: var(--radius-lg);
  background: var(--color-brighter-bg);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.store-products-list .store-product:hover,
.store-products-images .store-product:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
}

.store-products-images .store-product {
  text-align: center;
}

/* Explicit responsive grid: 1 col mobile, 2 col tablet, 4 col desktop */
.store-products-images {
  grid-template-columns: 1fr;
}
@media (width > 600px) {
  .store-products-images {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (width > 1100px) {
  .store-products-images {
    grid-template-columns: repeat(4, 1fr);
  }
}

.store-product .price .discount {
  opacity: 0.7;
}

.widget-title {
  text-align: center;
}

.widget .store-product {
  text-align: center;
}

.store-product-full {
  border-radius: var(--radius-lg);
  background: var(--color-brighter-bg);
  border: 1px solid var(--color-border);
}

.store-product .quantity-field {
  border-radius: var(--radius-sm);
  background: var(--color-bg);
}
.store-product .quantity-field input[type=number] {
  border: none;
}

/* ---------- Navigation -------------------------------------------------- */

@media (width > 960px) {
  .navigation-horizontal > ul {
    border-radius: var(--radius-lg);
  }
}
.navigation-horizontal .has-children > ul {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

/* ---------- Widgets / sidebar ------------------------------------------- */

.widget {
  border-radius: var(--radius-lg);
  background: var(--color-brighter-bg);
  border: 1px solid var(--color-border);
}
@media (width <= 960px) {
  .widget.site-navigation {
    border-radius: 0;
    border: none;
    background: transparent;
  }
}

.widget-gift-card .gift-card-input {
  border-radius: var(--radius-sm);
}

.widget-top-donator .avatar {
  border-radius: 50%;
}

.widget-community-goal .progress,
.widget-goal .progress {
  border-radius: 999px;
}
.widget-community-goal .progress-bar,
.widget-goal .progress-bar {
  border-radius: 999px;
}

/* ---------- Popups / basket / toast -------------------------------------- */

.popup-content {
  border-radius: var(--radius-lg);
}

.popup-close {
  border-radius: 0 var(--radius-lg) 0 var(--radius-lg);
}

.basket-popup-content,
.basket-popup-content .popup-close {
  border-radius: 0;
}

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

.basket-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.basket-item .quantity {
  border-radius: 4px;
}

.toast {
  border-radius: var(--radius-md);
}

.toast-close {
  border-radius: var(--radius-sm);
}

/* ---------- Tiered / subscription category -------------------------------- */

.store-category-tiered {
  border-radius: var(--radius-lg);
  background: var(--color-brighter-bg);
  border: 1px solid var(--color-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;
}

.store-product-tiered {
  border-radius: var(--radius-md);
  background: rgb(from var(--color-bg) r g b/0.5);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.store-product-tiered:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
}

/* ---------- Media slider / lightbox -------------------------------------- */

.media-slider .slider,
.media-slider .thumb {
  border-radius: var(--radius-md);
}
.media-slider .open-lightbox {
  border-radius: var(--radius-sm);
}

.popup.popup-media-slider .thumb {
  border-radius: var(--radius-md);
}
.popup.popup-media-slider .popup-close {
  border-radius: var(--radius-md);
}

/* ==========================================================================
   New components
   These are not wired into any Twig template, since none of the provided
   files have data structures for tabs/accordions/badges beyond the badge
   classes already used in module.serverstatus.html. They're authored as
   reusable, drop-in classes for content fields that accept raw HTML —
   index.description, category.description, package.description, and the
   CMS page editor — so non-developers can use them without touching code.
   ========================================================================== */

/* ---------- Badges -------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.4;
}
.badge-success {
  color: var(--color-success);
  background: rgb(from var(--color-success) r g b/0.12);
}
.badge-danger {
  color: var(--color-danger);
  background: rgb(from var(--color-danger) r g b/0.12);
}
.badge-warning {
  color: var(--color-warning);
  background: rgb(from var(--color-warning) r g b/0.12);
}
.badge-primary {
  color: var(--color-primary);
  background: rgb(from var(--color-primary) r g b/0.12);
}

/* ---------- Accordion (vanilla JS hook: see main.js initAccordions) ----- */

.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-brighter-bg);
  overflow: hidden;
}
.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}
.accordion-trigger::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background-color: var(--color-text-secondary);
  mask: url("https://template-assets.tebex.io/images/chevron.svg") center center/contain no-repeat;
  transition: rotate 0.2s var(--ease);
}
.accordion-item.is-open .accordion-trigger::after {
  rotate: 180deg;
}
.accordion-panel {
  height: 0;
  overflow: hidden;
  transition: height 0.25s var(--ease);
}
.accordion-panel-inner {
  padding: 0 20px 20px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ---------- Tabs (vanilla JS hook: see main.js initTabs) ---------------- */

.tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  width: fit-content;
  border-radius: var(--radius-md);
  background: var(--color-brighter-bg);
  border: 1px solid var(--color-border);
}
.tabs-trigger {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.tabs-trigger:hover {
  color: var(--color-text);
}
.tabs-trigger.is-active {
  color: var(--color-primary-text);
  background: var(--color-primary);
}
.tabs-panel {
  display: none;
  padding-top: 24px;
}
.tabs-panel.is-active {
  display: block;
}

/* ---------- Content authoring utilities (for rich-text fields) ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--widget-padding);
  text-align: center;
}
@media (width > 700px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat {
  padding: 24px var(--widget-padding);
  border-radius: var(--radius-lg);
  background: var(--color-brighter-bg);
  border: 1px solid var(--color-border);
}
.stat-value {
  display: block;
  margin-bottom: 4px;
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
}
.stat-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--widget-padding);
}
@media (width > 700px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feature-card {
  padding: 28px var(--widget-padding);
  border-radius: var(--radius-lg);
  background: var(--color-brighter-bg);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.feature-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
}
.feature-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}
.feature-card p {
  color: var(--color-text-secondary);
}

.discord-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--widget-padding);
  padding: 28px var(--widget-padding);
  border-radius: var(--radius-lg);
  background: var(--color-brighter-bg);
  border: 1px solid var(--color-border);
}
.discord-callout h3 {
  margin-bottom: 4px;
}
.discord-callout p {
  color: var(--color-text-secondary);
}

/* ==========================================================================
   AuroraGlass round 2 — compact header

   The vanilla template reserves a fixed 355px-tall, 3-column header
   (server-info | centered logo | discord-info). When server-url /
   discord-link aren't configured in Tebex (config('server-url'),
   config('discord-link') — see header.twig), that layout collapses to a
   huge empty band over a small centered logo, which is the "plain" empty
   space you're seeing. This section overrides that into a single slim row
   (logo, nav, info pills, login/basket) — same elements, same Twig
   conditionals, just laid out compactly. Nothing was added or removed from
   header.twig or navigation.twig.
   ========================================================================== */

@media (width > 960px) {
  .site-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 var(--widget-padding);
  }
  .site-header > .site-sale-banner {
    order: -1;
    flex: 1 0 100%;
    margin-top: 0;
  }
  .site-header-inner {
    flex: 1 1 auto;
    width: auto;
    height: auto;
    position: static;
    display: flex;
    align-items: center;
    gap: var(--widget-padding);
    padding: 18px 0;
  }
  body.is-navigation-horizontal .site-header-inner {
    height: auto;
  }
  .site-header-inner .actions {
    display: none;
  }
  .site-header-inner .site-title {
    position: static;
    inset: auto;
    order: 0;
    margin: 0;
    width: auto;
    height: auto;
    line-height: 1;
    font-size: 24px;
    text-align: left;
  }
  .site-header-inner .site-title img {
    margin: 0;
    max-width: 160px;
    max-height: 34px;
    object-fit: contain;
  }
  .site-header-inner .info {
    position: static;
    order: 1;
    display: grid;
    grid-template-columns: 26px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 8px;
    max-width: none;
    width: auto;
    height: auto;
    margin: 0;
    line-height: 1.3;
  }
  .site-header-inner .info.server {
    padding-left: 0;
  }
  .site-header-inner .info.discord {
    padding-right: 0;
    text-align: left;
  }
  .site-header-inner .info .image {
    position: static;
    grid-column: 1;
    grid-row: 1 / 3;
    top: auto;
    left: auto;
    bottom: auto;
    width: 26px;
    height: 26px;
  }
  .site-header-inner .info.discord .image {
    width: 26px;
    height: 26px;
  }
  .site-header-inner .info .title {
    grid-column: 2;
    grid-row: 1;
    line-height: 1.2;
    font-size: 12px;
  }
  .site-header-inner .info .action,
  .site-header-inner .info .value {
    grid-column: 2;
    grid-row: 2;
    font-size: 12px;
  }
  .site-header-inner .log-in,
  .site-header-inner .user-actions {
    position: static;
    order: 2;
    margin-left: auto;
  }
  .site-header > .site-navigation.navigation-horizontal {
    order: 3;
    flex: none;
    width: auto;
  }
  .navigation-horizontal .menu {
    justify-content: flex-start;
    gap: 4px;
    padding: 0;
    background: transparent;
    line-height: normal;
    font-size: 15px;
    font-weight: 500;
  }
  .navigation-horizontal .menu > li > a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
  }
  .navigation-horizontal .menu > li > a:hover {
    background: rgba(255, 255, 255, 0.04);
  }
  .navigation-horizontal .menu > li.has-children > a {
    padding-right: 6px;
  }
}

/* ==========================================================================
   AuroraGlass round 2 — homepage authoring components

   Same rationale as the Accordion/Tabs/Badge section above: there's no
   Twig data structure for a hero, a feature strip, or curated "Featured"
   product cards on index.html — the homepage only has the optional
   home-categories grid plus index.description (raw HTML). These classes
   are meant to be pasted into index.description in Tebex's page editor,
   filled in with your real copy/links/prices by hand.
   ========================================================================== */

/* ---------- Hero ------------------------------------------------------- */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 56px var(--widget-padding);
  border-radius: var(--radius-lg);
  background: var(--color-brighter-bg);
  border: 1px solid var(--color-border);
}
.hero-content {
  flex: 1 1 360px;
}
.hero-content h1 {
  margin-bottom: 16px;
  font-size: 44px;
  line-height: 1.1;
}
.hero-content p {
  max-width: 46ch;
  margin-bottom: 24px;
  color: var(--color-text-secondary);
  font-size: 17px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-media {
  flex: 1 1 280px;
  max-width: 420px;
}
.hero-media img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
}

/* ---------- Feature icon (pairs with .feature-card from round 1) ------- */

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: rgb(from var(--color-primary) r g b/0.12);
  color: var(--color-primary);
}
.feature-icon svg {
  width: 22px;
  height: 22px;
}

/* ---------- Promo card -------------------------------------------------
   For hand-curated "Featured" sections on the homepage — a styled card
   matching the real .store-product look, for use with real package links/
   images/prices you fill in yourself. Not auto-populated from Tebex data.
   ------------------------------------------------------------------------ */

.promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--widget-padding);
}
@media (width > 700px) {
  .promo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.promo-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-brighter-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.promo-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
}
.promo-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.promo-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promo-card-body {
  padding: 20px;
}
.promo-card-body h3 {
  margin-bottom: 6px;
  font-size: 17px;
}
.promo-card-body p {
  margin-bottom: 14px;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.5;
}
.promo-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.promo-card-price {
  font-size: 18px;
  font-weight: 700;
}

/* ==========================================================================
   AuroraGlass round 3 — reference-match homepage helpers

   Adds the borderless 4-up trust strip and the centered "FEATURED /
   Featured Scripts / subtitle" section heading seen in the reference store.
   Authored as drop-in classes for index.description (raw HTML), same as the
   hero/promo components above — no Twig template was touched.
   ========================================================================== */

/* ---------- Centered section heading ----------------------------------- */

.section {
  margin-top: 64px;
}
.section-heading {
  text-align: center;
  margin-bottom: 40px;
}
.section-eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.section-heading h2 {
  font-size: 38px;
  line-height: 1.1;
  margin-bottom: 10px;
}
.section-heading p {
  color: var(--color-text-secondary);
  font-size: 16px;
}

/* ---------- Borderless 4-up trust strip -------------------------------- */

.feature-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--widget-padding);
  margin-top: 40px;
}
@media (width > 600px) {
  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (width > 960px) {
  .feature-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}
.feature-strip-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.feature-strip-item .feature-icon {
  flex: none;
  margin-bottom: 0;
}
.feature-strip-item h3 {
  font-size: 16px;
  margin-bottom: 4px;
}
.feature-strip-item p {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Featured products row (3-up, matches reference) ------------- */

@media (width > 1100px) {
  .featured-products.store-products-images {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   AuroraGlass round 4 — premium depth & polish

   Pure CSS/Twig (no new files). Adds ambient lighting, a richer hero with a
   CSS-only visual, a carded feature strip, gradient headings, and image-zoom
   product cards so the homepage reads high-end instead of flat. All rules
   here intentionally come last so they refine the round-2/3 base above.
   ========================================================================== */

/* ---------- Ambient page lighting (whole page) -------------------------
   Painted straight onto the page background (not a -1 layer) and fixed to
   the viewport, so the hero's lit/textured look carries down the whole page
   as you scroll. The template's content cards sit on top of this. */

/* Ambient lighting on EVERY page (not just the homepage) so the lit/textured
   look never disappears when you open a category or package. Painted on the
   body's own background with default (scroll) attachment — NOT
   `background-attachment: fixed`, which forced a full-page repaint each scroll
   frame and made scrolling feel laggy. */
body {
  background-color: #090909;
  background-image:
    radial-gradient(70% 50% at 50% -6%, rgb(from var(--color-primary) r g b / 0.16), transparent 60%),
    radial-gradient(55% 45% at 100% 4%, rgb(from var(--color-primary) r g b / 0.11), transparent 60%),
    radial-gradient(55% 40% at 0% 22%, rgb(from var(--color-primary) r g b / 0.08), transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #0d0d10, #0a0a0b);
  background-size:
    140% 900px, 90% 700px, 80% 800px,
    52px 52px, 52px 52px, 100% 100%;
  background-repeat:
    no-repeat, no-repeat, no-repeat,
    repeat, repeat, no-repeat;
  background-position:
    center top, right top, left top,
    center top, center top, center top;
}

/* ---------- Buttons: subtle dimensionality ----------------------------- */

.btn-primary {
  background-image: linear-gradient(180deg, #34dcc6, #20b9a6);
  box-shadow: 0 6px 18px rgb(from var(--color-primary) r g b / 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover,
.btn-primary:focus {
  box-shadow: 0 10px 26px rgb(from var(--color-primary) r g b / 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* ---------- Hero (refines round-2 base) -------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  align-items: center;
  gap: 48px;
  margin-top: 8px;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px);
  background:
    radial-gradient(120% 130% at 0% 0%, rgb(from var(--color-primary) r g b / 0.12), transparent 52%),
    linear-gradient(180deg, #131316, #0c0c0e);
  border: 1px solid var(--color-border-hover);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 80% at 72% 18%, #000, transparent 75%);
  mask-image: radial-gradient(80% 80% at 72% 18%, #000, transparent 75%);
  opacity: 0.55;
}
.hero-content {
  position: relative;
  flex: 1 1 420px;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--color-border-hover);
  background: rgb(from var(--color-primary) r g b / 0.08);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-text);
}
.hero-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 10px 1px var(--color-primary);
}
.hero-content h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero-content h1 .accent {
  background: linear-gradient(90deg, #2dd4bf, #5eead4 60%, #9af7e6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-content p {
  max-width: 48ch;
  margin-bottom: 28px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 26px;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
}
.hero-trust span::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    rgb(from var(--color-primary) r g b / 0.15)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232dd4bf' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

/* ---------- Hero visual (pure CSS, no image required) ------------------ */

.hero-visual {
  position: relative;
  flex: 1 1 360px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(from var(--color-primary) r g b / 0.28), transparent 62%);
  filter: blur(10px);
}
.hero-panel {
  position: relative;
  width: min(100%, 380px);
  padding: 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--color-border-hover);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.hero-panel-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  margin-bottom: 22px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--color-border);
}
.hero-panel-brand img {
  max-width: 72%;
  max-height: 64px;
  object-fit: contain;
}
.hero-panel-brand strong {
  font-size: 22px;
  letter-spacing: -0.01em;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.hero-stat {
  padding: 14px 6px;
  text-align: center;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--color-border);
}
.hero-stat strong {
  display: block;
  margin-bottom: 2px;
  font-size: 17px;
  color: var(--color-primary);
}
.hero-stat span {
  font-size: 11px;
  color: var(--color-text-secondary);
}
@media (width <= 700px) {
  .hero-visual {
    display: none;
  }
}

/* ---------- Feature strip → cards -------------------------------------- */

.feature-strip-item {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
.feature-strip-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  background: linear-gradient(180deg, rgb(from var(--color-primary) r g b / 0.06), transparent);
}
.feature-strip-item .feature-icon {
  border: 1px solid rgb(from var(--color-primary) r g b / 0.25);
  box-shadow: inset 0 0 12px rgb(from var(--color-primary) r g b / 0.15);
}

/* ---------- Section heading accent ------------------------------------- */

.section-eyebrow {
  color: var(--color-primary);
}
.section-heading h2 {
  background: linear-gradient(180deg, #ffffff, #c4cccb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Product cards: image zoom + depth -------------------------- */

.store-products-images .store-product,
.promo-card {
  box-shadow: var(--shadow-sm);
}
.store-products-images .store-product:hover,
.promo-card:hover {
  box-shadow: var(--shadow-md);
}
.store-products-images .store-product .image-link {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.store-products-images .store-product .image,
.promo-card-media img {
  transition: transform 0.4s var(--ease);
}
.store-products-images .store-product:hover .image,
.promo-card:hover .promo-card-media img {
  transform: scale(1.05);
}

/* ==========================================================================
   AuroraGlass round 5 — content depth

   The hero now has lighting + texture; these rules carry that same premium
   depth into the rest of the homepage (welcome text, sidebar widgets,
   category cards) so no section reads as a flat black box. Pure CSS, same
   selectors the template already renders.
   ========================================================================== */

/* Soft top-light gradient on the big content surfaces (paints over the
   existing flat #111 background-color). */
.store-text,
.widget,
.category-description,
.store-product-full,
.store-category-tiered,
.site-home-categories .category,
.no-products {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 180px);
  box-shadow: var(--shadow-sm);
}

/* Welcome / store text block — a touch more presence + a teal heading. */
.store-text {
  background-image:
    radial-gradient(80% 60% at 50% 0%, rgb(from var(--color-primary) r g b / 0.05), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 200px);
}
.store-text h1,
.store-text h2 {
  background: linear-gradient(180deg, #ffffff, #c4cccb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Sidebar widget titles get the accent + a thin divider. */
.widget-title {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.widget-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 40px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
}

/* Keep the home-categories block from stretching edge-to-edge: a single
   category was spanning the full row (shared.css flex-basis:100%) and blowing
   the logo up huge. Cap the section to a centered, card-sized column. */
.site-home-categories {
  max-width: 360px;
  margin: 0 auto;
}
.site-home-categories .category {
  flex-basis: auto;
  font-size: 18px;
}
/* Frame category artwork as a tidy thumbnail instead of a giant lone block. */
.site-home-categories .category .image:not(.image-default) {
  width: 140px;
  height: 140px;
  max-width: 140px;
  max-height: 140px;
  padding: 14px;
  object-fit: contain;
  margin-bottom: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   AuroraGlass round 6 — sidebar nav + welcome-text polish

   Brings the lower homepage (vertical nav, store description copy) up to the
   same standard as the hero: pill nav items with an active accent, and the
   "What We Offer" list rendered as a teal check-list of cards. Pure CSS over
   selectors the template already outputs.
   ========================================================================== */

/* ---------- Vertical (sidebar) navigation ------------------------------ */

@media (width > 960px) {
  .navigation-vertical .menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .navigation-vertical > .menu > li > a {
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
  }
  .navigation-vertical > .menu > li > a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text);
  }
  .navigation-vertical > .menu > li.active > a,
  .navigation-vertical > .menu > li > a.link-active {
    background: rgb(from var(--color-primary) r g b / 0.10);
    color: var(--color-primary);
  }
}

/* ---------- Welcome / store description copy --------------------------- */

.store-text {
  padding: clamp(24px, 4vw, 48px);
  line-height: 1.7;
}
.store-text h1,
.store-text h2,
.store-text h3 {
  background: linear-gradient(180deg, #ffffff, #c4cccb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.store-text h2,
.store-text h3 {
  margin-top: 36px;
  margin-bottom: 18px;
}
.store-text p {
  margin-bottom: 16px;
  color: var(--color-text-secondary);
}
.store-text p:last-child {
  margin-bottom: 0;
}
/* `!important` here defends against inline list-styles the Tebex rich-text
   editor (TinyMCE) bakes onto the description's <ul>/<li> — without it the
   editor's inline `list-style`/`margin` win and the bullets stay as plain
   discs. */
.store-text ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 8px 0 24px !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  text-align: left;
}
.store-text ul li {
  position: relative;
  list-style: none !important;
  padding: 14px 16px 14px 48px !important;
  margin: 0 !important;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.store-text ul li:hover {
  border-color: var(--color-border-hover);
  background: rgb(from var(--color-primary) r g b / 0.05);
}
.store-text ul li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    rgb(from var(--color-primary) r g b / 0.15)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232dd4bf' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* ==========================================================================
   AuroraGlass round 7 — category page (store-products-list rows)

   Lifts the category listing to match the homepage: a banner-style category
   header, and product rows that read as real cards — framed thumbnail, an
   accent bar that grows on hover, a teal price, and a soft lift. Scoped to
   `.store-products-list` so the homepage image grid is untouched.
   ========================================================================== */

/* ---------- Category header banner ------------------------------------- */

.category-description {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px) clamp(28px, 4vw, 44px);
  background:
    radial-gradient(120% 140% at 0% 0%, rgb(from var(--color-primary) r g b / 0.10), transparent 55%),
    linear-gradient(180deg, #131316, #0e0e10);
}
.category-description::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-primary), transparent);
}
.category-description h1,
.category-description h2,
.category-description h3 {
  background: linear-gradient(180deg, #ffffff, #c4cccb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   AuroraGlass round 11 — premium product cards (.product-card)

   Rebuilds both the category listing and homepage featured grid as rich image
   cards (à la no-limits.tebex.io): a 16:9 cover with a "Featured Package"
   badge, title, 2-line excerpt, framework tag pills, then price + button
   pinned to the bottom. `.store-product.product-card` specificity is used to
   beat shared.css's 60px thumbnail and flex-row layout.
   ========================================================================== */

/* ---- Force a responsive grid for BOTH list + image layouts ---- */
.store-products-list,
.store-products-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* ---- The card shell ---- */
.store-product.product-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #141417, #0f0f11);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.store-product.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md), 0 18px 40px rgb(from var(--color-primary) r g b / 0.14);
}

/* ---- 16:9 cover ---- */
.store-product.product-card .image-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.4);
}
.store-product.product-card .image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.store-product.product-card:hover .image {
  transform: scale(1.05);
}
.store-product.product-card .image-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 11, 0.55));
  pointer-events: none;
}

/* ---- "Featured Package" badge ---- */
.store-product.product-card .product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(8, 10, 12, 0.7);
  border: 1px solid rgb(from var(--color-primary) r g b / 0.4);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.store-product.product-card .product-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
}

/* ---- Card body ---- */
.store-product.product-card .product-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  padding: 18px 20px 20px;
}
.store-product.product-card .product-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.store-product.product-card .product-title a {
  color: #f3f5f5;
}
.store-product.product-card .product-title a:hover {
  color: var(--color-primary);
}

/* 2-line excerpt — description is raw HTML, so flatten any child markup
   (headings/lists/images) into a single muted text snippet. */
.store-product.product-card .product-excerpt {
  margin: 0;
  max-height: 2.9em;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.store-product.product-card .product-excerpt * {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  background: none !important;
  list-style: none !important;
}
.store-product.product-card .product-excerpt img,
.store-product.product-card .product-excerpt br,
.store-product.product-card .product-excerpt iframe,
.store-product.product-card .product-excerpt video {
  display: none !important;
}
.store-product.product-card .product-excerpt p::after {
  content: " ";
}

/* ---- Framework tag pills ---- */
.store-product.product-card .product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.store-product.product-card .product-tags span {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

/* ---- Price + button row pinned to bottom ---- */
.store-product.product-card .actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}
.store-product.product-card .price {
  margin: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}
.store-product.product-card .price strong {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}
.store-product.product-card .price .discount {
  font-size: 13px;
  color: var(--color-text-muted);
}
.store-product.product-card .actions .add,
.store-product.product-card .actions .subscribe,
.store-product.product-card .actions .open-basket-cta,
.store-product.product-card .actions .quantity-field {
  flex: 0 0 auto;
  min-width: 0;
  width: auto;
}

/* ==========================================================================
   AuroraGlass round 8 — package page (store-product-full)

   Frames the product view: gradient title, a bordered media banner, cleaner
   description typography with styled links, and a premium sticky checkout bar
   (teal price + accent top edge over the existing blurred footer).
   ========================================================================== */

.store-product-full .product-title {
  background: linear-gradient(180deg, #ffffff, #c4cccb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.01em;
}

/* Media banner: framed, rounded, with a soft drop shadow. */
.store-product-full .image,
.store-product-full .media-slider {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Description copy. */
.store-product-full .descr {
  line-height: 1.75;
  color: var(--color-text-secondary);
}
.store-product-full .descr a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.store-product-full .descr a:hover {
  color: var(--color-primary-hover);
}

/* Sticky checkout bar: accent top edge + stronger glass. */
.store-product-full .actions {
  border-top: 1px solid rgb(from var(--color-primary) r g b / 0.25);
  background-color: rgb(from var(--color-brighter-bg) r g b / 0.8) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}
.store-product-full .price strong {
  font-size: 26px;
  color: var(--color-primary);
}

/* ==========================================================================
   AuroraGlass round 9 — homepage CTA band

   Replaces the redundant home-categories "Scripts" card (which duplicated the
   hero's Browse Scripts link) with a single centered call-to-action that fills
   the mid-page space and funnels everyone to the one Browse Scripts button.
   ========================================================================== */

.cta-band {
  margin: 72px 0;
}
.cta-band-inner {
  position: relative;
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 56px);
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-hover);
  background:
    radial-gradient(120% 140% at 50% 0%, rgb(from var(--color-primary) r g b / 0.12), transparent 60%),
    linear-gradient(180deg, #141417, #0d0d0f);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.cta-band-inner h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.12;
  background: linear-gradient(180deg, #ffffff, #c4cccb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-band-inner p {
  max-width: 520px;
  margin: 0 auto 28px;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.6;
}
.cta-band-inner .btn-primary {
  display: flex;
  width: fit-content;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 16px;
}
.cta-frameworks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.cta-frameworks span {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-secondary);
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   AuroraGlass round 10 — embedded video player

   Responsive 16:9 wrapper that main.js drops in place of a bare YouTube URL
   in any description. Framed to match the product media banner.
   ========================================================================== */

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 20px 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
