/* ========================================================================== 
   PLAXIA.NET Tebex Store — Website Design Sync
   Loaded after style.css. This layer aligns every Tebex view with the current
   editorial website while leaving Tebex data, basket and checkout logic intact.
   ========================================================================== */

:root {
  --bg: #e9e5dc;
  --surface: #f9f7f2;
  --surface-2: #f0ece3;
  --surface-3: #e2ddd3;
  --surface-warm: #eee8dc;
  --text: #16181b;
  --text-soft: #353a42;
  --muted: #656a70;
  --muted-2: #8b8f92;
  --accent: var(--shop-accent, #3d4ed8);
  --accent-dark: color-mix(in srgb, var(--accent) 78%, #101426);
  --accent-soft: color-mix(in srgb, var(--accent) 48%, var(--text));
  --line: rgba(22, 24, 27, .13);
  --line-strong: rgba(22, 24, 27, .25);
  --radius-xl: 14px;
  --radius-lg: 10px;
  --radius-md: 8px;
  --radius-sm: 5px;
  --container: 1380px;
  --gutter: 16px;
  --section-gap: 18px;
  --shadow: 0 8px 20px rgba(32, 31, 27, .07);
}

html[data-theme="dark"] {
  --bg: #0f1113;
  --surface: #17191c;
  --surface-2: #202327;
  --surface-3: #2a2e33;
  --surface-warm: #1c1c1a;
  --text: #f1efe9;
  --text-soft: #c9c8c4;
  --muted: #999b9f;
  --muted-2: #70747a;
  --accent: var(--shop-accent, #6574ff);
  --accent-dark: color-mix(in srgb, var(--accent) 76%, #11162d);
  --accent-soft: color-mix(in srgb, var(--accent) 45%, #fff);
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .24);
  --shadow: 0 10px 24px rgba(0, 0, 0, .24);
}

html, body { min-height: 100%; }
body,
html[data-theme="dark"] body {
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(22,24,27,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,24,27,.025) 1px, transparent 1px);
  background-size: 32px 32px;
}
html[data-theme="dark"] body {
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
}

.shop-shell {
  width: min(var(--container), calc(100% - 36px));
  margin: 18px auto 28px;
}
.shop-shell > * + *, main > * + * { margin-top: 54px; }
.shop-shell > header + main,
.shop-shell > .toast + main { margin-top: var(--section-gap); }
main > .breadcrumb + * { margin-top: 12px; }
main > .shop-page-hero + *, main > .tier-tabs + * { margin-top: 18px; }

.card {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: none;
}

/* Header ------------------------------------------------------------------ */
.site-header,
html[data-theme="dark"] .site-header {
  min-height: 70px;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  padding: 12px 16px 12px 20px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
  backdrop-filter: blur(16px);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0 18%, transparent 18% 100%);
  pointer-events: none;
}
.brand { gap: 11px; letter-spacing: .04em; font-size: 14px; text-transform: none; }
.brand__logo { width: 34px; height: 34px; }
.brand__context {
  margin-left: 2px;
  padding-left: 10px;
  color: var(--muted-2);
  border-left: 1px solid var(--line-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .11em;
}
.site-nav { gap: 28px; font-size: 13px; font-weight: 650; }
.site-nav a, .nav-dropdown__trigger { position: relative; opacity: 1; }
.site-nav > a::after, .nav-dropdown__trigger::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -8px; height: 2px;
  background: var(--accent);
  transition: right var(--transition);
}
.site-nav > a:hover::after, .site-nav > a:focus-visible::after,
.site-nav > a[aria-current="page"]::after,
.nav-dropdown__trigger:hover::after, .nav-dropdown__trigger:focus-visible::after,
.nav-dropdown.is-open .nav-dropdown__trigger::after { right: 0; }
.nav-dropdown__menu, .mobile-nav {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(0,0,0,.22);
}
.shop-quick-actions { gap: 9px; }
.account-pill, .icon-btn, .shop-quick-actions .btn--sm {
  min-height: 42px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: none;
}
.account-pill { padding: 7px 10px 7px 7px; }
.account-pill img { border-radius: 4px; }
.icon-btn { width: 42px; height: 42px; }
.icon-btn__badge { color: #fff; background: var(--accent); border: 2px solid var(--surface); }
.account-dropdown__menu { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 8px 8px 0 rgba(0,0,0,.22); }

/* Buttons and common labels ---------------------------------------------- */
.btn, .btn--accent {
  min-height: 46px;
  padding: 12px 18px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent-dark);
  border-radius: 7px;
  box-shadow: 3px 3px 0 var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.btn:hover, .btn:focus-visible {
  opacity: 1;
  background: var(--accent-dark);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--accent-dark);
}
.btn--dark, html[data-theme="dark"] .btn--dark {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: 3px 3px 0 var(--line-strong);
}
.btn--dark:hover, .btn--dark:focus-visible,
html[data-theme="dark"] .btn--dark:hover, html[data-theme="dark"] .btn--dark:focus-visible {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: 1px 1px 0 var(--line-strong);
}
.btn--sm { min-height: 40px; padding: 9px 14px; }
.kicker, .shop-page-hero__eyebrow, .editorial-heading > div > span,
.shop-page-heading > span {
  display: inline-block;
  width: auto;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.eyebrow {
  padding: 8px 10px;
  color: var(--accent-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: .06em;
}
.text-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 7px;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  font-size: 13px;
  font-weight: 800;
  transition: gap var(--transition), color var(--transition);
}
.text-link:hover { gap: 15px; color: var(--accent); }

/* Shop home hero --------------------------------------------------------- */
.shop-home-hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.shop-home-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px,6vw,84px);
}
.shop-home-hero__copy::before {
  content: "";
  position: absolute;
  top: 48px; left: 0;
  width: 6px; height: 108px;
  background: var(--accent);
}
.shop-home-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--text-soft);
  text-transform: none;
}
.shop-home-hero__eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  background: #43bd78;
  border: 2px solid color-mix(in srgb,#43bd78 30%,var(--surface));
  border-radius: 2px;
}
.shop-home-hero h1 {
  max-width: 720px;
  font-family: var(--font-body);
  font-size: clamp(52px,6.3vw,94px);
  line-height: .92;
  letter-spacing: -.075em;
}
.shop-home-hero h1 > span, .shop-home-hero h1 > em { display: block; }
.shop-home-hero h1 > em { margin-top: .09em; color: var(--accent); font-style: normal; }
.shop-home-hero__lead {
  max-width: 600px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(16px,1.35vw,19px);
  line-height: 1.65;
}
.shop-home-hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.shop-home-hero__facts {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  margin-top: 52px;
  border-top: 1px solid var(--line);
}
.shop-home-hero__facts div { min-width: 0; padding: 18px 16px 0 0; }
.shop-home-hero__facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.shop-home-hero__facts dt {
  color: var(--muted-2);
  font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size: 10px; letter-spacing: .07em; text-transform: uppercase;
}
.shop-home-hero__facts dd { margin-top: 8px; color: var(--text); font-size: 13px; font-weight: 750; line-height: 1.35; }
.shop-home-hero__media { position: relative; min-height: 650px; overflow: hidden; background: #0d1015; }
.shop-home-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,rgba(13,16,21,.12),transparent 30%), linear-gradient(180deg,transparent 52%,rgba(7,9,12,.76));
  pointer-events: none;
}
.shop-home-hero__media img { width: 100%; height: 100%; min-height: 650px; object-fit: cover; filter: saturate(.92) contrast(1.06); transform: scale(1.01); }
.shop-home-hero__coordinate {
  position: absolute; top: 24px; right: 24px; z-index: 2;
  padding: 9px 11px; color: rgba(255,255,255,.84); background: rgba(10,12,16,.7);
  border: 1px solid rgba(255,255,255,.2); border-radius: 4px;
  font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size: 10px; letter-spacing: .07em; backdrop-filter: blur(10px);
}
.shop-home-hero__caption {
  position: absolute; left: 28px; right: 28px; bottom: 28px; z-index: 2;
  display: grid; grid-template-columns: auto minmax(0,1fr); gap: 18px; align-items: end; color: #fff;
}
.shop-home-hero__caption span {
  padding: 7px 9px; background: var(--accent); border-radius: 3px;
  font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase;
}
.shop-home-hero__caption strong { max-width: 420px; justify-self: end; font-size: clamp(20px,2.2vw,32px); line-height: 1.08; letter-spacing: -.035em; text-align: right; }

/* Trust facts ------------------------------------------------------------- */
.shop-trust {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.shop-trust__item { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 28px 26px; }
.shop-trust__item + .shop-trust__item { border-left: 1px solid var(--line); }
.shop-trust__number { color: var(--accent); font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size: 11px; font-weight: 800; }
.shop-trust strong { display: block; margin-bottom: 7px; color: var(--text); font-size: 15px; }
.shop-trust p { color: var(--muted); font-size: 13px; line-height: 1.55; }

/* Editorial headings and categories ------------------------------------- */
.shop-category-section { display: grid; gap: 30px; }
.editorial-heading {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 22px 22px;
  border-bottom: 1px solid var(--line-strong);
}
.editorial-heading::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 22px; width: 5px; background: var(--accent); }
.editorial-heading h2 { margin-top: 9px; font-family: var(--font-body); font-size: clamp(34px,4.2vw,58px); line-height: .98; letter-spacing: -.055em; }
.editorial-heading p { max-width: 650px; margin-top: 13px; color: var(--muted); line-height: 1.6; }
.category-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-top: 0 !important; }
.category-tile {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  overflow: hidden;
  color: #fff;
  background: #121417;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  transition: transform 180ms ease, border-color 180ms ease;
}
.category-tile:nth-child(even) { color: var(--text); background: var(--surface); border-color: var(--line); }
.category-tile:hover { transform: translateY(-4px); border-color: var(--accent); }
.category-tile::after {
  content: ""; position: absolute; right: -28px; top: 70px; width: 170px; height: 170px;
  background: radial-gradient(circle, color-mix(in srgb,var(--accent) 42%,transparent), transparent 68%); opacity: .55;
}
.category-tile__index { position: relative; z-index: 2; color: rgba(255,255,255,.4); font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size: 10px; letter-spacing: .08em; }
.category-tile:nth-child(even) .category-tile__index { color: var(--muted-2); }
.category-tile__icon {
  position: absolute; top: 58px; right: 18px;
  width: 128px; height: 128px; display: grid; place-items: center;
  color: rgba(255,255,255,.06); background: transparent; border: 0; border-radius: 0;
}
.category-tile:nth-child(even) .category-tile__icon { color: color-mix(in srgb,var(--text) 5%,transparent); }
.category-tile__initial { display: block !important; font-family: var(--font-body); font-size: 126px; font-weight: 900; line-height: 1; letter-spacing: -.1em; }
.category-tile__body { position: relative; z-index: 2; margin-top: auto; }
.category-tile__body > span:first-child { color: rgba(255,255,255,.48); font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size: 9px; letter-spacing: .08em; }
.category-tile:nth-child(even) .category-tile__body > span:first-child { color: var(--muted-2); }
.category-tile h3 { max-width: 85%; margin-top: 9px; font-family: var(--font-body); font-size: clamp(26px,2.6vw,39px); line-height: .98; letter-spacing: -.055em; }
.category-tile__link { display: inline-flex; gap: 8px; margin-top: 22px; color: #9ca7ff; font-size: 12px; font-weight: 800; }
.category-tile:nth-child(even) .category-tile__link { color: var(--accent); }

/* Category / content page banners --------------------------------------- */
.breadcrumb { color: var(--muted); font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size: 10px; letter-spacing: .04em; }
.breadcrumb a:hover { color: var(--accent); }
.shop-page-hero {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: end;
  padding: clamp(32px,5vw,62px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg,rgba(9,10,11,.94),rgba(9,10,11,.68) 52%,rgba(9,10,11,.34)),
    linear-gradient(180deg,rgba(9,10,11,.06),rgba(9,10,11,.78)),
    var(--shop-city-image, url("slider-citybuild.png")) center 48% / cover no-repeat;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
}
.shop-page-hero__content { position: relative; z-index: 2; max-width: 760px; }
.shop-page-hero__eyebrow { color: rgba(255,255,255,.58); }
.shop-page-hero h1 { margin-top: 12px; font-family: var(--font-body); font-size: clamp(52px,7vw,96px); line-height: .9; letter-spacing: -.075em; }
.shop-page-hero p, .shop-page-hero__description { max-width: 650px; margin-top: 22px; color: rgba(255,255,255,.66); font-size: 15px; line-height: 1.65; }
.shop-page-hero__description * { color: inherit; }
.shop-page-hero__mark {
  position: absolute; right: -12px; bottom: -14px; z-index: 1;
  max-width: 54%; overflow: hidden; color: rgba(255,255,255,.055);
  font-family: var(--font-body); font-size: clamp(72px,11vw,160px); font-weight: 900; line-height: .8; letter-spacing: -.085em; text-transform: uppercase; white-space: nowrap;
}
.tier-tabs { padding: 8px; background: var(--surface); border-radius: 9px; }
.tier-tab { padding: 11px 14px; border-radius: 5px; color: var(--muted); font-size: 12px; font-weight: 750; }
.tier-tab:hover, .tier-tab[aria-current="page"] { color: #fff; background: var(--accent); }

/* Product grids and cards ------------------------------------------------ */
.package-grid, .package-grid--category { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.package-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
  transition: transform 180ms ease, border-color 180ms ease;
}
.package-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.package-card__media {
  min-height: 260px;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px),
    #111317;
  background-size: 24px 24px;
  border-bottom: 1px solid var(--line);
}
.package-card__media img { width: 100%; height: 100%; padding: 28px; object-fit: contain; filter: drop-shadow(0 18px 28px rgba(0,0,0,.28)); }
.package-card__badge { top: 14px; right: 14px; padding: 7px 9px; color: #fff; background: var(--accent); border-radius: 4px; font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size: 10px; }
.package-card__body { padding: 24px; gap: 13px; }
.package-card__body::before { content: "PLAXIA STORE"; color: var(--muted-2); font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.package-card h3, .package-card__title { font-family: var(--font-body); font-size: 24px; line-height: 1.05; letter-spacing: -.045em; }
.package-description--card, .package-card__desc { max-height: 4.8em; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.55; }
.package-description--card ul { display: none; }
.package-card__price-row, .price { display: flex; align-items: baseline; gap: 8px; }
.price__current, .package-card__price { color: var(--text); font-family: var(--font-body); font-size: 21px; font-weight: 850; }
.price__old, .package-card__price-old { color: var(--muted-2); font-size: 12px; }
.package-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.package-card__actions .btn { width: 100%; min-width: 0; padding-inline: 12px; }

/* Product detail --------------------------------------------------------- */
.package-detail {
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(380px,.92fr);
  overflow: hidden;
  border-radius: 14px;
}
.package-detail__media {
  min-height: 620px;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px),
    #111317;
  background-size: 32px 32px;
  border-right: 1px solid var(--line);
}
.package-detail__media img { width: 100%; height: 100%; padding: clamp(40px,7vw,100px); object-fit: contain; filter: drop-shadow(0 28px 38px rgba(0,0,0,.35)); }
.package-detail__body { justify-content: center; padding: clamp(34px,5vw,70px); }
.package-detail__body::before { content: "PLAXIA STORE / PRODUKT"; color: var(--muted-2); font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size: 10px; letter-spacing: .08em; }
.package-detail h1 { margin-top: 14px; font-family: var(--font-body); font-size: clamp(42px,5vw,72px); line-height: .94; letter-spacing: -.065em; }
.package-detail__desc { color: var(--muted); font-size: 14px; line-height: 1.7; }
.package-detail__desc ul { display: grid; gap: 9px; margin: 16px 0; }
.package-detail__desc li { position: relative; padding-left: 18px; }
.package-detail__desc li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; background: var(--accent); border-radius: 2px; }
.package-detail__price-block { padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.package-detail__price { font-family: var(--font-body); font-size: 36px; letter-spacing: -.04em; }
.qty-stepper { border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface-2); }
.qty-stepper button { color: var(--text); }
.qty-stepper input { color: var(--text); background: transparent; }

/* Checkout and forms ----------------------------------------------------- */
.shop-page-heading { position: relative; padding: 0 0 22px 22px; border-bottom: 1px solid var(--line-strong); }
.shop-page-heading::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 22px; width: 5px; background: var(--accent); }
.shop-page-heading h1 { margin-top: 9px; font-family: var(--font-body); font-size: clamp(42px,5vw,68px); line-height: .95; letter-spacing: -.06em; }
.shop-page-heading p { max-width: 640px; margin-top: 13px; color: var(--muted); line-height: 1.6; }
.basket-layout { grid-template-columns: minmax(0,1.4fr) minmax(320px,.6fr); gap: 16px; }
.basket-list, .summary-card { border-radius: 10px; }
.basket-row { padding: 20px; border-color: var(--line); }
.basket-row__thumb { border-radius: 6px; background: #111317; border: 1px solid var(--line); }
.basket-row__qty, .coupon-form input,
.field input, .field select, .field textarea,
.shop-login-modal__form input, .login-inline-modal input,
.sidebar-module input {
  min-height: 48px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  outline: 0;
}
.basket-row__qty:focus, .coupon-form input:focus,
.field input:focus, .field select:focus, .field textarea:focus,
.shop-login-modal__form input:focus, .login-inline-modal input:focus,
.sidebar-module input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb,var(--accent) 20%,transparent); }
.summary-card { top: 18px; padding: 26px; background: var(--surface); }
.summary-card h2 { font-family: var(--font-body); font-size: 28px; letter-spacing: -.045em; }
.summary-row--total { font-size: 19px; }
.basket-empty { min-height: 260px; border-radius: 10px; }
.narrow-card, .tier-quote, .cms-page, .shop-login-modal__card {
  padding: clamp(28px,5vw,54px);
  border-radius: 10px;
}
.narrow-card h1, .tier-quote h1, .cms-page h1,
.shop-login-modal__card h2 { margin-top: 12px; font-family: var(--font-body); font-size: clamp(34px,4vw,54px); line-height: .98; letter-spacing: -.055em; }
.narrow-card > p, .shop-login-modal__card > p { color: var(--muted); line-height: 1.65; }
.options-form { gap: 16px; }
.field label { color: var(--text); font-size: 12px; }
.field__hint { color: var(--muted); }
.shop-login-modal { backdrop-filter: blur(12px); }
.shop-login-modal__backdrop { background: rgba(5,6,8,.82); }
.shop-login-modal__card { background: var(--surface); box-shadow: 12px 12px 0 rgba(0,0,0,.25); }
.shop-login-modal__close { color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; }
.toast { border-radius: 7px; box-shadow: 6px 6px 0 rgba(0,0,0,.18); }

/* Rank comparison / tiered ----------------------------------------------- */
.rank-compare { border-radius: 10px; overflow: hidden; }
.rank-compare__intro { padding: 24px; border-bottom: 1px solid var(--line); }
.rank-compare__intro .section-title { font-family: var(--font-body); font-size: 34px; letter-spacing: -.05em; }
.rank-compare__viewport { background: var(--surface); }
.rank-compare__table th, .rank-compare__table td { border-color: var(--line); }
.rank-compare__feature-head, .rank-feature-cell { background: var(--surface); }
.rank-compare__feature-head-card, .rank-section-row th { background: var(--surface-2); border-radius: 5px; }
.rank-plan { border-radius: 7px; box-shadow: none; }
.rank-plan__cta { border-radius: 5px; }
.rank-value--yes { color: #43bd78; background: color-mix(in srgb,#43bd78 12%,transparent); }
.rank-value--no { color: var(--muted-2); background: var(--surface-2); }
.rank-showcase__scroller { gap: 16px; }
.rank-card { border-radius: 10px; box-shadow: none; }
.rank-card--featured { border-color: var(--accent); }
.rank-card__media { min-height: 240px; background: #111317; border-radius: 0; }
.rank-card__ribbon { border-radius: 4px; background: var(--accent); }
.rank-card__content { padding: 24px; }
.rank-card h2 { font-family: var(--font-body); font-size: 30px; letter-spacing: -.05em; }
.rank-card__perks { color: var(--muted); }
.rank-modal__dialog { color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 12px 12px 0 rgba(0,0,0,.28); }

/* Discord and footer ----------------------------------------------------- */
.discord-strip {
  min-height: 300px;
  padding: clamp(32px,5vw,64px);
  overflow: hidden;
  background:
    linear-gradient(90deg,rgba(12,14,18,.96),rgba(12,14,18,.78)),
    var(--shop-city-image, url("slider-citybuild.png")) center 58% / cover no-repeat;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
}
.discord-strip::after { content: "DISCORD"; position: absolute; right: -20px; bottom: -22px; color: rgba(255,255,255,.04); font-size: clamp(90px,13vw,180px); font-weight: 900; line-height: .8; letter-spacing: -.08em; }
.discord-strip__content, .discord-strip__actions { z-index: 2; }
.discord-strip h2 { font-family: var(--font-body); font-size: clamp(34px,4vw,58px); line-height: .96; letter-spacing: -.055em; }
.discord-strip__online { border-radius: 6px; }

.site-footer,
html[data-theme="dark"] .site-footer {
  padding: clamp(30px,4vw,54px);
  grid-template-columns: 1.05fr 1.75fr .9fr;
  color: var(--text);
  background: color-mix(in srgb,var(--surface) 94%,transparent);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
  backdrop-filter: blur(16px);
}
.footer-brand__top img { width: 38px; height: 38px; }
.footer-brand__name, .footer-column__title, .footer-cta h3 { color: var(--text); }
.footer-brand p, .footer-cta p, .footer-links, .footer-bottom { color: var(--muted); }
.footer-columns { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.footer-cta { align-self: start; padding: 20px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; }
.footer-bottom { border-color: var(--line); }
.footer-links a:hover, .footer-legal a:hover { color: var(--text); }
.payment-strip img { height: 25px; padding: 5px 7px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; }

/* CMS, Tebex modules and helper views ------------------------------------ */
.cms-page__content { color: var(--muted); line-height: 1.75; }
.cms-page__content h2, .cms-page__content h3 { margin: 1.3em 0 .55em; color: var(--text); }
.sidebar-card, .sidebar-module {
  padding: 22px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
}
.sidebar-card h3, .sidebar-module h3 { font-family: var(--font-body); letter-spacing: -.03em; }
.sidebar-list a, .module-entry { border-color: var(--line); }
.module-entry span { color: var(--muted); }

.theme-switch {
  right: 18px; bottom: 18px;
  padding: 10px 13px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  box-shadow: 3px 3px 0 var(--line-strong);
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1180px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header > .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .shop-home-hero { grid-template-columns: 1fr; }
  .shop-home-hero__media, .shop-home-hero__media img { min-height: 520px; }
  .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .package-grid, .package-grid--category { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .package-detail { grid-template-columns: 1fr; }
  .package-detail__media { min-height: 520px; border-right: 0; border-bottom: 1px solid var(--line); }
  .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .shop-shell { width: min(100% - 20px,var(--container)); margin: 10px auto 18px; }
  .site-header { min-height: 62px; grid-template-columns: minmax(0,1fr) auto; padding: 9px 10px 9px 14px; }
  .site-header::after { left: 14px; right: 14px; }
  .brand { gap: 8px; }
  .brand__logo { width: 31px; height: 31px; }
  .brand__context { display: none; }
  .shop-quick-actions .account-pill span, .shop-quick-actions .btn--sm { font-size: 0; }
  .shop-quick-actions .btn--sm::after { content: "Login"; font-size: 11px; }
  .account-pill { width: 42px; padding: 6px; }
  .account-pill img { width: 28px; height: 28px; }
  .shop-home-hero { min-height: auto; }
  .shop-home-hero__copy { padding: 46px 24px 38px; }
  .shop-home-hero__copy::before { top: 46px; width: 4px; height: 76px; }
  .shop-home-hero h1 { font-size: clamp(46px,15vw,70px); }
  .shop-home-hero h1 > em { margin-top: .12em; }
  .shop-home-hero__facts { grid-template-columns: 1fr; margin-top: 38px; }
  .shop-home-hero__facts div { padding: 14px 0; }
  .shop-home-hero__facts div + div { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .shop-home-hero__media, .shop-home-hero__media img { min-height: 420px; }
  .shop-home-hero__caption { left: 18px; right: 18px; bottom: 18px; grid-template-columns: 1fr; }
  .shop-home-hero__caption strong { justify-self: start; text-align: left; }
  .shop-home-hero__coordinate { top: 16px; right: 16px; }
  .shop-trust { grid-template-columns: 1fr; }
  .shop-trust__item + .shop-trust__item { border-top: 1px solid var(--line); border-left: 0; }
  .editorial-heading { display: block; padding: 0 0 18px 18px; }
  .editorial-heading::before { bottom: 18px; width: 4px; }
  .editorial-heading .text-link { margin-top: 18px; }
  .category-grid, .package-grid, .package-grid--category { grid-template-columns: 1fr; }
  .category-tile { min-height: 280px; }
  .shop-page-hero { min-height: 380px; padding: 28px 22px; }
  .shop-page-hero h1 { font-size: clamp(48px,15vw,76px); }
  .shop-page-hero__mark { max-width: 85%; font-size: 86px; }
  .package-card__media { min-height: 230px; }
  .package-card__actions { grid-template-columns: 1fr; }
  .package-detail__media { min-height: 380px; }
  .package-detail__body { padding: 30px 22px; }
  .basket-layout { grid-template-columns: 1fr; }
  .basket-row { grid-template-columns: 54px minmax(0,1fr); }
  .basket-row__qty-wrap, .basket-row__price, .basket-row__remove { grid-column: 2; justify-self: start; }
  .discord-strip { min-height: 380px; padding: 32px 22px; }
  .discord-strip__actions { align-items: flex-start; }
  .footer-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .btn { width: 100%; }
  .shop-home-hero__actions .btn, .discord-strip__actions .btn { width: auto; flex: 1 1 180px; }
  .theme-switch { padding: 10px; }
  .theme-switch__label { display: none; }
}

@media (max-width: 480px) {
  .footer-columns { grid-template-columns: 1fr; }
  .shop-quick-actions { gap: 5px; }
  .shop-quick-actions .btn--sm { width: 42px; padding: 0; box-shadow: none; }
  .icon-btn { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .category-tile:hover, .package-card:hover { transform: none; }
}

/* ========================================================================== 
   PLAXIA Store refinement — rank buttons, unavailable products & permissions
   ========================================================================== */

:root {
  --rank-button-shadow: #747980;
  --disabled-button-shadow: #9a9da1;
}

html[data-theme="dark"] {
  --rank-button-shadow: #555b64;
  --disabled-button-shadow: #3c4148;
}

/* Rang-CTAs use a neutral grey hard shadow instead of the accent shadow. */
.rank-plan__cta .btn:not(:disabled):not([disabled]):not([aria-disabled="true"]):not(.is-disabled),
.rank-card__actions .btn:not(:disabled):not([disabled]):not([aria-disabled="true"]):not(.is-disabled) {
  box-shadow: 3px 3px 0 var(--rank-button-shadow);
}

.rank-plan__cta .btn:not(:disabled):not([disabled]):not([aria-disabled="true"]):not(.is-disabled):hover,
.rank-plan__cta .btn:not(:disabled):not([disabled]):not([aria-disabled="true"]):not(.is-disabled):focus-visible,
.rank-card__actions .btn:not(:disabled):not([disabled]):not([aria-disabled="true"]):not(.is-disabled):hover,
.rank-card__actions .btn:not(:disabled):not([disabled]):not([aria-disabled="true"]):not(.is-disabled):focus-visible {
  box-shadow: 1px 1px 0 var(--rank-button-shadow);
}

/* Unavailable products: clearly greyed out, inert and without hover movement. */
.btn:disabled,
.btn[disabled],
.btn[aria-disabled="true"],
.btn.is-disabled,
button[type="submit"]:disabled,
input[type="submit"]:disabled {
  color: var(--muted-2) !important;
  background: var(--surface-3) !important;
  border-color: var(--line-strong) !important;
  box-shadow: 3px 3px 0 var(--disabled-button-shadow) !important;
  opacity: .72 !important;
  cursor: not-allowed !important;
  transform: none !important;
  filter: grayscale(.35);
  pointer-events: none;
}

.btn:disabled:hover,
.btn:disabled:focus,
.btn:disabled:focus-visible,
.btn[disabled]:hover,
.btn[disabled]:focus,
.btn[disabled]:focus-visible,
.btn[aria-disabled="true"]:hover,
.btn[aria-disabled="true"]:focus,
.btn[aria-disabled="true"]:focus-visible,
.btn.is-disabled:hover,
.btn.is-disabled:focus,
.btn.is-disabled:focus-visible {
  color: var(--muted-2) !important;
  background: var(--surface-3) !important;
  border-color: var(--line-strong) !important;
  box-shadow: 3px 3px 0 var(--disabled-button-shadow) !important;
  opacity: .72 !important;
  transform: none !important;
}

/* Checked permissions now use the same neutral surfaces and compact corners. */
.rank-value--yes,
.rank-modal__pill--yes {
  color: #56c984;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #56c984 12%, transparent);
}

.rank-value--yes {
  width: 28px;
  height: 28px;
}

.rank-modal__pill--yes {
  padding-inline: 10px;
}

.rank-card__perks li::before,
.rank-card__perks p::before {
  color: #56c984;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #56c984 12%, transparent);
}


/* --------------------------------------------------------------------------
   Purchase-limit safety check
   Buttons are temporarily inert while Tebex confirms account availability.
   -------------------------------------------------------------------------- */
.btn[data-package-availability-check][data-availability-pending="true"],
form[data-package-availability-check][data-availability-pending="true"] .btn[type="submit"] {
  pointer-events: none !important;
  cursor: wait !important;
  opacity: 0.68 !important;
  transform: none !important;
  filter: grayscale(0.25);
}

.btn[data-package-availability-check][data-availability-pending="true"]:hover,
.btn[data-package-availability-check][data-availability-pending="true"]:focus,
form[data-package-availability-check][data-availability-pending="true"] .btn[type="submit"]:hover,
form[data-package-availability-check][data-availability-pending="true"] .btn[type="submit"]:focus {
  transform: none !important;
}

/* -------------------------------------------------------------------------
   PLAXIA rank comparison — equal card heights
   Keep the owned/current rank card as tall as cards that show cumulative
   upgrade discounts and old prices.
   ---------------------------------------------------------------------- */
.rank-compare__table thead .rank-compare__plan-head {
  height: 1px;
}

.rank-compare__table thead .rank-plan {
  height: 100%;
}

/* ========================================================================== 
   Account-Dropdown — kompakte Kontokarte im aktuellen PLAXIA-Design
   ========================================================================== */
.account-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.account-dropdown > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.account-dropdown > summary::-webkit-details-marker {
  display: none;
}

.account-dropdown__trigger {
  position: relative;
  isolation: isolate;
}

.account-dropdown__trigger:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 72%, white);
  outline-offset: 3px;
}

.account-dropdown__chevron {
  width: 7px;
  height: 7px;
  margin: 0 2px 3px 3px;
  flex: 0 0 auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 160ms ease, border-color 160ms ease;
}

.account-dropdown[open] .account-dropdown__chevron {
  border-color: var(--text);
  transform: translateY(3px) rotate(225deg);
}

.account-dropdown__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 80;
  width: max-content;
  min-width: 236px;
  max-width: min(310px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  padding: 14px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, .26);
  backdrop-filter: blur(18px);
  transform-origin: top right;
  animation: accountDropdownIn 150ms ease both;
}

.account-dropdown__menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 22px;
  width: 10px;
  height: 10px;
  background: var(--surface);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  transform: rotate(45deg);
}

.account-dropdown__label {
  position: relative;
  z-index: 1;
  color: var(--muted-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.account-dropdown__name {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-dropdown__logout {
  position: relative;
  z-index: 1;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.account-dropdown__logout::after {
  content: "↗";
  color: var(--muted-2);
  font-size: 13px;
  transition: color 150ms ease, transform 150ms ease;
}

.account-dropdown__logout:hover,
.account-dropdown__logout:focus-visible {
  color: #fff;
  background: rgba(223, 74, 80, .16);
  border-color: rgba(223, 74, 80, .48);
  transform: translate(1px, 1px);
}

.account-dropdown__logout:hover::after,
.account-dropdown__logout:focus-visible::after {
  color: #ff7479;
  transform: translate(1px, -1px);
}

@keyframes accountDropdownIn {
  from { opacity: 0; transform: translateY(-5px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
  .account-dropdown__menu {
    position: fixed;
    top: 76px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }

  .account-dropdown__menu::before {
    display: none;
  }
}

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


/* ========================================================================== 
   PLAXIA Kachel-Hintergrund
   Finaler Layer, damit ältere Glow-Regeln das 32px-Raster nicht überschreiben.
   ========================================================================== */
body,
html[data-theme="dark"] body {
  background-color: var(--bg) !important;
  background-image:
    radial-gradient(circle at 12% -4%, rgba(72, 88, 255, .18), transparent 32%),
    radial-gradient(circle at 96% 6%, rgba(72, 88, 255, .07), transparent 26%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px) !important;
  background-size: auto, auto, 32px 32px, 32px 32px !important;
  background-repeat: no-repeat, no-repeat, repeat, repeat !important;
  background-position: 0 0, 0 0, 0 0, 0 0;
}

html[data-theme="light"] body {
  background-image:
    radial-gradient(circle at 15% 0%, rgba(72, 88, 255, .10), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, .30), transparent 24%),
    linear-gradient(rgba(22, 24, 27, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 24, 27, .035) 1px, transparent 1px) !important;
}

/* Feste Menge für Pakete, deren Tebex-Konfiguration Mengenänderungen sperrt. */
.qty-fixed {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 14px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.qty-fixed input,
.basket-row__qty[data-quantity-locked] {
  width: 42px;
  color: var(--text);
  background: var(--surface-3);
  cursor: not-allowed;
  pointer-events: none;
}

.basket-row__qty-wrap--locked span {
  color: var(--muted-2);
}
