:root {
  --bg: #050b13;
  --bg2: #08111d;
  --panel: rgba(12, 24, 38, .78);
  --panel2: rgba(13, 24, 38, .94);
  --line: rgba(255, 255, 255, .08);
  --text: #f8fbff;
  --muted: #8d9bb0;
  --blue: #0ea5e9;
  --blue2: #38bdf8;
  --radius: 16px;
  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.jd-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #050b13 0%, #07111d 55%, #050b13 100%);
}

.jd-bg:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 76%);
}

.jd-container {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.jd-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 11, 19, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.jd-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.jd-left {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-right: auto;
}

.jd-logo {
  width: 78px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 33, 52, .92);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.jd-logo span {
  font-family: Archivo Black, Inter, sans-serif;
  font-size: 12px;
  letter-spacing: .03em;
  color: #fff;
}

.jd-packages-link {
  color: var(--muted);
  font-weight: 900;
  font-size: 14px;
  transition: color .2s ease;
}

.jd-packages-link:hover {
  color: #fff;
}

.jd-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jd-btn {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}

.jd-btn:hover { transform: translateY(-1px); }

.jd-btn-blue {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  box-shadow: 0 10px 28px rgba(14, 165, 233, .18);
}

.jd-btn-dark {
  background: rgba(9, 19, 32, .78);
  color: #fff;
  border: 1px solid var(--line);
}

.jd-btn-light {
  background: #fff;
  color: #07111d;
}

.jd-btn-big {
  min-height: 54px;
  padding: 0 28px;
  font-size: 13px;
}

.jd-btn-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 11px;
}

.jd-btn-wide {
  width: 100%;
  min-height: 52px;
}

.jd-mobile {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(9, 19, 32, .9);
  color: #fff;
  border-radius: 9px;
}

.jd-mobile-panel { display: none; }

.jd-message {
  position: fixed;
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  width: min(680px, calc(100% - 32px));
  padding: 16px 18px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.jd-hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #07111d 0%, #050b13 100%);
}

.jd-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.032) 1px, transparent 1px);
  background-size: 62px 62px;
  opacity: .7;
}

.jd-hero-content {
  text-align: center;
  padding: 120px 0 110px;
}

.jd-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue2);
  font-weight: 1000;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 18px;
  text-shadow: 0 0 18px rgba(56,189,248,.35);
}

.jd-kicker:before,
.jd-kicker:after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--blue2);
  box-shadow: 0 0 10px rgba(56,189,248,.45);
}

.jd-hero h1,
.jd-page-hero h1 {
  margin: 0;
  font-family: Archivo Black, Inter, sans-serif;
  text-transform: uppercase;
  font-size: clamp(54px, 8vw, 132px);
  line-height: .86;
  letter-spacing: .02em;
  text-shadow: 0 0 18px rgba(255,255,255,.18);
}

.jd-hero h2 {
  margin: 18px 0 0;
  font-family: Archivo Black, Inter, sans-serif;
  text-transform: uppercase;
  font-size: clamp(24px, 3.6vw, 58px);
  line-height: .95;
  letter-spacing: .14em;
  color: rgba(255,255,255,.92);
}

.jd-release-strip {
  width: 100vw;
  margin: 30px 0 26px;
  margin-left: calc(50% - 50vw);
  min-height: 84px;
  background: var(--blue);
  display: grid;
  place-items: center;
  box-shadow: none;
  transition: background .2s ease;
}

.jd-release-strip span {
  font-family: Archivo Black, Inter, sans-serif;
  color: rgba(5, 11, 19, .72);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: clamp(26px, 3.5vw, 54px);
  transition: color .2s ease, text-shadow .2s ease;
}

.jd-release-strip:hover span {
  color: #fff;
  text-shadow: 0 0 20px rgba(255,255,255,.35);
}

.jd-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.jd-hero-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.jd-section {
  position: relative;
  padding: 92px 0;
}

.jd-page-hero {
  position: relative;
  padding: 98px 0 72px;
  background: linear-gradient(180deg, #07111d 0%, #050b13 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.jd-page-hero:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: var(--blue);
}

.jd-page-hero h1 {
  font-size: clamp(46px, 7vw, 104px);
}

.jd-page-hero p,
.jd-page-desc {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.jd-store {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
}

.jd-sidebar,
.jd-product,
.jd-package-panel,
.jd-package-media,
.jd-basket,
.jd-form-panel,
.jd-empty {
  background: linear-gradient(180deg, rgba(17, 33, 52, .86), rgba(8, 17, 29, .92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.jd-sidebar {
  padding: 24px;
  height: fit-content;
}

.jd-sidebar h3,
.jd-product h3,
.jd-basket-row h3,
.jd-empty h3,
.jd-footer h4 {
  margin: 0 0 12px;
  font-family: Archivo Black, Inter, sans-serif;
  text-transform: uppercase;
  font-size: 18px;
}

.jd-sidebar a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  transition: color .2s ease;
}

.jd-sidebar a:hover { color: #fff; }

.jd-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.jd-product {
  overflow: hidden;
}

.jd-product-media {
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(15,31,50,.95), rgba(5,11,19,.95));
  overflow: hidden;
}

.jd-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jd-product-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--blue2);
  font-size: 52px;
}

.jd-product-body {
  padding: 24px;
}

.jd-product-desc {
  max-height: 110px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.jd-product-desc h1,
.jd-product-desc h2,
.jd-product-desc h3,
.jd-product-desc h4,
.jd-product-desc p,
.jd-product-desc ul {
  margin: 0 0 8px;
  font: inherit;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.jd-product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}

.jd-package {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 26px;
  align-items: start;
}

.jd-package-media {
  overflow: hidden;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.jd-package-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jd-package-panel,
.jd-basket,
.jd-form-panel {
  padding: 34px;
}

.jd-package-panel h2,
.jd-form-panel h2 {
  margin: 0 0 14px;
  font-family: Archivo Black, Inter, sans-serif;
  text-transform: uppercase;
  font-size: clamp(32px, 4vw, 56px);
  line-height: .95;
}

.jd-package-price,
.jd-basket-total strong,
.jd-product-bottom strong {
  color: #fff;
  font-weight: 1000;
}

.jd-package-price {
  font-size: 34px;
  margin: 16px 0 24px;
}

.jd-text-content,
.jd-form-panel p,
.jd-empty p {
  color: var(--muted);
  line-height: 1.7;
}

.jd-package-actions {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.jd-unavailable {
  padding: 16px;
  border-radius: 12px;
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .22);
  color: #fecaca;
}

.jd-basket {
  max-width: 920px;
}

.jd-basket-row,
.jd-basket-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.jd-basket-row small {
  color: var(--muted);
}

.jd-basket-total {
  margin-bottom: 20px;
  font-size: 24px;
  text-transform: uppercase;
  font-weight: 1000;
}

.jd-form-panel {
  max-width: 680px;
}

.jd-field {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.jd-field span {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--muted);
}

.jd-field input,
.jd-field select {
  width: 100%;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(5, 11, 19, .72);
  color: #fff;
  padding: 0 14px;
  outline: none;
}

.jd-empty {
  grid-column: 1 / -1;
  padding: 44px;
  text-align: center;
}

.jd-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: rgba(5, 11, 19, .84);
  padding: 62px 0 24px;
}

.jd-footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 34px;
}

.jd-footer p,
.jd-footer a,
.jd-copy {
  color: var(--muted);
}

.jd-footer a {
  display: block;
  margin: 8px 0;
}

.jd-footer-logo {
  margin-bottom: 18px;
}

.jd-copy {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 46px;
  font-size: 13px;
}

@media (max-width: 980px) {
  .jd-actions { display: none; }

  .jd-mobile {
    display: inline-grid;
    place-items: center;
  }

  .jd-mobile-panel.is-open {
    display: grid;
    gap: 12px;
    width: min(var(--max), calc(100% - 44px));
    margin: 0 auto 18px;
    padding: 18px;
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .jd-store,
  .jd-package {
    grid-template-columns: 1fr;
  }

  .jd-products,
  .jd-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .jd-container {
    width: min(var(--max), calc(100% - 28px));
  }

  .jd-left {
    gap: 14px;
  }

  .jd-packages-link {
    font-size: 13px;
  }

  .jd-hero-content {
    padding: 92px 0 86px;
  }

  .jd-hero h1 {
    font-size: 44px;
  }

  .jd-hero h2 {
    font-size: 22px;
  }

  .jd-release-strip {
    min-height: 62px;
  }

  .jd-products,
  .jd-footer-grid {
    grid-template-columns: 1fr;
  }

  .jd-hero-actions {
    display: grid;
    width: 100%;
  }

  .jd-btn-big {
    width: 100%;
  }

  .jd-copy {
    flex-direction: column;
  }
}


/* login/account display fix */
.jd-user-btn {
  max-width: 190px;
}

.jd-user-btn span {
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.jd-hero h2 strong {
  color: var(--blue);
  text-shadow: 0 0 18px rgba(14,165,233,.28);
}


.jd-footer a:hover {
  color: #fff;
}


/* CMS / Terms / Legal content visibility fix */
.jd-cms-hero {
  padding: 90px 0 54px;
}

.jd-cms-section {
  padding-top: 52px;
  padding-bottom: 90px;
  min-height: 420px;
}

.jd-content-page {
  width: min(920px, 100%);
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(17, 33, 52, .88), rgba(8, 17, 29, .94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

.jd-content-page,
.jd-content-page * {
  visibility: visible;
}

.jd-content-page h1,
.jd-content-page h2,
.jd-content-page h3,
.jd-content-page h4 {
  color: var(--text);
  font-family: Archivo Black, Inter, sans-serif;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.1;
  margin: 26px 0 12px;
}

.jd-content-page h1:first-child,
.jd-content-page h2:first-child,
.jd-content-page h3:first-child {
  margin-top: 0;
}

.jd-content-page p,
.jd-content-page ul,
.jd-content-page ol,
.jd-content-page table,
.jd-content-page blockquote {
  margin: 0 0 16px;
}

.jd-content-page a {
  color: var(--blue2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jd-content-page ul,
.jd-content-page ol {
  padding-left: 22px;
}

.jd-content-page ul {
  list-style: disc;
}

.jd-content-page ol {
  list-style: decimal;
}

.jd-content-page table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.jd-content-page th,
.jd-content-page td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  vertical-align: top;
}

.jd-content-page strong {
  color: #fff;
}

.jd-footer {
  margin-top: 0;
}


/* Tebex legal/footer compatibility */
:root {
  --tebex-legal-footer-background-color: #050b13;
  --tebex-legal-footer-text-color: #8d9bb0;
  --tebex-legal-footer-border-color: rgba(255,255,255,.08);
  --tebex-legal-footer-max-width: 1240px;
  --tebex-legal-footer-logo-color: #ffffff;
}

.jd-no-content {
  padding: 16px;
  border-radius: 12px;
  background: rgba(14,165,233,.08);
  border: 1px solid rgba(14,165,233,.18);
}


.jd-legal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}


/* Default Tebex-like legal strip */
.jd-tebex-legal {
  margin-top: 34px;
  padding: 13px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  background: #050505;
  color: #ffffff;
  font-size: 13px;
}

.jd-tebex-legal-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.jd-tebex-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.75);
  font-weight: 700;
}

.jd-tebex-star {
  font-size: 18px;
  line-height: 1;
}

.jd-tebex-word {
  font-size: 18px;
  letter-spacing: .02em;
}

.jd-tebex-legal p {
  margin: 0;
  text-align: center;
  color: #ffffff;
  font-weight: 600;
}

.jd-tebex-legal nav {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}

.jd-tebex-legal nav a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.jd-content-page {
  color: #aeb9c8;
}

.jd-content-page * {
  max-width: 100%;
}

@media (max-width: 980px) {
  .jd-tebex-legal-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
  }

  .jd-tebex-brand,
  .jd-tebex-legal nav {
    justify-content: center;
  }

  .jd-tebex-legal nav {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
}


/* Minimal RCore-like footer: copyright + Discord + Tebex legal strip only */
.jd-footer-minimal {
  position: relative;
  border-top: 1px solid var(--line);
  background: rgba(5, 11, 19, .96);
  padding: 0;
}

.jd-minimal-footer-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.jd-footer-discord {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(9, 19, 32, .9);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 18px;
  transition: transform .18s ease, border-color .18s ease, color .18s ease;
}

.jd-footer-discord:hover {
  transform: translateY(-1px);
  border-color: rgba(56,189,248,.42);
  color: var(--blue2);
}

.jd-footer-minimal .jd-tebex-legal {
  margin-top: 0;
}

/* Slightly cleaner RCore-inspired package/category spacing */
.jd-products {
  align-items: start;
}

.jd-product {
  transition: transform .18s ease, border-color .18s ease;
}

.jd-product:hover {
  transform: translateY(-2px);
  border-color: rgba(56,189,248,.28);
}

.jd-page-hero {
  padding-top: 86px;
  padding-bottom: 64px;
}

@media (max-width: 640px) {
  .jd-minimal-footer-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 22px 0;
  }
}


/* Tebex logo support */
.jd-logo {
  overflow: hidden;
}

.jd-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}


/* Header logo cleanup: no background, larger logo */
.jd-header {
  background: rgba(5, 11, 19, .94);
}

.jd-nav {
  min-height: 92px;
}

.jd-logo {
  width: auto;
  min-width: 150px;
  height: 58px;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible;
  justify-content: flex-start;
}

.jd-logo img {
  width: auto;
  max-width: 210px;
  height: 58px;
  object-fit: contain;
  padding: 0 !important;
}

.jd-logo span {
  font-size: 28px;
  letter-spacing: .02em;
  text-shadow: 0 0 18px rgba(255,255,255,.18);
}

/* Footer cleanup: only Tebex legal ending, no Discord/footer area below */
.jd-footer-only-legal {
  padding: 0 !important;
  margin: 0 !important;
  border-top: 0 !important;
  background: #050505 !important;
}

.jd-footer-only-legal .jd-tebex-legal {
  margin: 0 !important;
  padding: 13px 0 9px;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 0 !important;
}

.jd-mini-copy {
  margin-top: 8px;
  text-align: center;
  color: rgba(255,255,255,.52);
  font-size: 11px;
}

body {
  padding-bottom: 0 !important;
}

@media (max-width: 640px) {
  .jd-nav {
    min-height: 78px;
  }

  .jd-logo {
    min-width: 112px;
    height: 44px;
  }

  .jd-logo img {
    max-width: 150px;
    height: 44px;
  }

  .jd-logo span {
    font-size: 20px;
  }
}


/* Product image fit fix - show full Tebex package banners */
.jd-product-media {
  aspect-ratio: 16 / 9;
  background: rgba(5, 11, 19, .92);
  display: grid;
  place-items: center;
}

.jd-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center;
  background: rgba(5, 11, 19, .92);
}

.jd-package-media {
  background: rgba(5, 11, 19, .92);
  min-height: auto;
}

.jd-package-media img {
  width: 100%;
  height: auto !important;
  max-height: 760px;
  object-fit: contain !important;
  object-position: center center;
  background: rgba(5, 11, 19, .92);
}

@media (max-width: 640px) {
  .jd-product-media {
    aspect-ratio: 16 / 9;
  }

  .jd-package-media img {
    max-height: none;
  }
}


/* Header logo position update */
@media (min-width: 981px) {
  .jd-header .jd-logo {
    position: fixed;
    left: 28px;
    top: 46px;
    transform: translateY(-50%);
    z-index: 80;
  }

  .jd-header .jd-left {
    padding-left: 0;
  }

  .jd-header .jd-packages-link {
    margin-left: 0;
  }
}

/* RCore-inspired product detail layout */
.jd-package-page {
  position: relative;
  padding: 64px 0 100px;
}

.jd-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.jd-breadcrumbs a {
  color: var(--muted);
  transition: color .18s ease;
}

.jd-breadcrumbs a:hover,
.jd-breadcrumbs strong {
  color: #fff;
}

.jd-product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .78fr);
  gap: 34px;
  align-items: start;
}

.jd-product-left {
  display: grid;
  gap: 16px;
}

.jd-product-showcase {
  background: rgba(5, 11, 19, .92);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  min-height: 420px;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.jd-product-showcase img {
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: contain;
  object-position: center;
}

.jd-mini-info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.jd-mini-info-row div {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: var(--muted);
  background: rgba(9, 19, 32, .72);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.jd-mini-info-row i {
  color: var(--blue2);
}

.jd-buy-panel {
  position: sticky;
  top: 112px;
  background: linear-gradient(180deg, rgba(17, 33, 52, .92), rgba(8, 17, 29, .96));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}

.jd-tag {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(14,165,233,.12);
  color: var(--blue2);
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}

.jd-buy-panel h1 {
  margin: 0;
  font-family: Archivo Black, Inter, sans-serif;
  font-size: clamp(34px, 4vw, 62px);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.jd-buy-price {
  margin-top: 18px;
  color: #70ff98;
  font-weight: 1000;
  font-size: 28px;
}

.jd-guarantee {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 16px;
  color: #dce7f5;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 800;
}

.jd-guarantee i {
  color: #70ff98;
}

.jd-buy-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.jd-add-cart {
  min-height: 58px;
}

.jd-buy-note {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.jd-buy-note h3 {
  margin: 0 0 8px;
  font-family: Archivo Black, Inter, sans-serif;
  text-transform: uppercase;
  font-size: 18px;
}

.jd-buy-note p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.jd-buy-note a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue2);
  font-weight: 900;
}

.jd-resource-description {
  margin-top: 54px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.jd-resource-head {
  position: sticky;
  top: 112px;
}

.jd-resource-head h2 {
  margin: 0;
  font-family: Archivo Black, Inter, sans-serif;
  text-transform: uppercase;
  font-size: 32px;
  line-height: 1;
}

.jd-resource-description .jd-text-content {
  background: linear-gradient(180deg, rgba(17, 33, 52, .62), rgba(8, 17, 29, .72));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  color: #c4cedb;
  line-height: 1.75;
}

.jd-resource-description .jd-text-content h1,
.jd-resource-description .jd-text-content h2,
.jd-resource-description .jd-text-content h3,
.jd-resource-description .jd-text-content h4 {
  color: #fff;
  margin: 26px 0 12px;
  font-family: Archivo Black, Inter, sans-serif;
  text-transform: uppercase;
}

.jd-resource-description .jd-text-content p,
.jd-resource-description .jd-text-content ul,
.jd-resource-description .jd-text-content ol {
  margin: 0 0 16px;
}

.jd-resource-description .jd-text-content ul {
  padding-left: 22px;
  list-style: disc;
}

.jd-resource-description .jd-text-content ol {
  padding-left: 22px;
  list-style: decimal;
}

.jd-resource-description .jd-text-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 18px 0;
  border: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .jd-product-detail-layout {
    grid-template-columns: 1fr;
  }

  .jd-buy-panel {
    position: static;
  }

  .jd-resource-description {
    grid-template-columns: 1fr;
  }

  .jd-resource-head {
    position: static;
  }
}

@media (max-width: 640px) {
  .jd-package-page {
    padding-top: 34px;
  }

  .jd-product-showcase {
    min-height: auto;
  }

  .jd-mini-info-row {
    grid-template-columns: 1fr;
  }

  .jd-buy-panel,
  .jd-resource-description .jd-text-content {
    padding: 22px;
  }
}


/* Remove homepage paragraph spacing when subtitle strip is enough */
.jd-clean-hero .jd-hero-actions {
  margin-top: 30px;
}

/* RCore-like category cards: whole card is clickable */
.jd-category-section {
  padding-top: 64px;
}

.jd-category-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.jd-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.jd-category-pills a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(9, 19, 32, .74);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  transition: color .18s ease, border-color .18s ease;
}

.jd-category-pills a:hover {
  color: #fff;
  border-color: rgba(56,189,248,.34);
}

.jd-rcore-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.jd-rcore-card {
  display: block;
  overflow: hidden;
  background: #070911;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.jd-rcore-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56,189,248,.38);
  box-shadow: 0 20px 60px rgba(0,0,0,.26);
}

.jd-rcore-card-image {
  aspect-ratio: 16 / 9;
  background: rgba(5, 11, 19, .92);
  overflow: hidden;
}

.jd-rcore-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(5, 11, 19, .92);
}

.jd-rcore-card-body {
  padding: 18px 18px 20px;
}

.jd-rcore-tag-row {
  margin-bottom: 10px;
}

.jd-rcore-tag,
.jd-tag {
  background: rgba(245, 158, 11, .16);
  color: #f59e0b;
}

.jd-rcore-tag {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.jd-rcore-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 20px;
  line-height: 1.18;
  font-weight: 1000;
  letter-spacing: -.02em;
}

.jd-rcore-desc {
  color: #d6dce6;
  font-size: 14px;
  line-height: 1.55;
  max-height: 68px;
  overflow: hidden;
  margin-bottom: 18px;
}

.jd-rcore-desc h1,
.jd-rcore-desc h2,
.jd-rcore-desc h3,
.jd-rcore-desc h4,
.jd-rcore-desc p,
.jd-rcore-desc ul {
  margin: 0 0 8px;
  font: inherit;
  color: #d6dce6;
  text-transform: none;
}

.jd-rcore-card strong {
  display: block;
  color: #70ff98;
  font-size: 15px;
  font-weight: 1000;
}

/* Product detail gallery */
.jd-gallery {
  position: relative;
}

.jd-gallery-main {
  display: none;
}

.jd-gallery-main.is-active {
  display: block;
}

.jd-gallery .jd-gallery-main.is-active {
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: contain;
}

.jd-video-preview {
  width: 100%;
  min-height: 420px;
  place-items: center;
  background: linear-gradient(135deg, rgba(15,31,50,.95), rgba(5,11,19,.95));
  color: #fff;
  font-size: 44px;
}

.jd-video-preview.is-active {
  display: grid;
}

.jd-gallery-thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.jd-gallery-thumbs button {
  width: 96px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5,11,19,.92);
  padding: 0;
  overflow: hidden;
  opacity: .72;
  transition: opacity .18s ease, border-color .18s ease, transform .18s ease;
}

.jd-gallery-thumbs button:hover,
.jd-gallery-thumbs button.is-active {
  opacity: 1;
  border-color: rgba(56,189,248,.55);
  transform: translateY(-1px);
}

.jd-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jd-thumb-video {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(14,165,233,.12);
}

@media (max-width: 980px) {
  .jd-rcore-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jd-category-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .jd-category-pills {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .jd-rcore-products {
    grid-template-columns: 1fr;
  }

  .jd-gallery-thumbs button {
    width: 78px;
    height: 48px;
  }
}


/* Final fix: default Tebex logic, custom Jakubko/RCore styling */
.jd-default-product-page,
.jd-default-checkout-page {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 64px 0 100px;
}

.jd-default-product {
  width: 100%;
}

.jd-default-product-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .75fr);
  gap: 34px;
  align-items: start;
}

.jd-default-product-media {
  background: rgba(5, 11, 19, .92);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.jd-default-product-media .image,
.jd-default-product-media img,
.jd-default-product-media .image img,
.jd-default-product-media swiper-container,
.jd-default-product-media swiper-slide img {
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: contain;
  background: rgba(5, 11, 19, .92);
}

.jd-default-buy {
  position: sticky;
  top: 112px;
  background: linear-gradient(180deg, rgba(17, 33, 52, .92), rgba(8, 17, 29, .96));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}

.jd-default-buy .product-title {
  margin: 0 0 18px;
  font-family: Archivo Black, Inter, sans-serif;
  font-size: clamp(34px, 4vw, 62px);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #fff;
}

.jd-clean-benefits {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}

.jd-clean-benefits span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c4cedb;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 42px;
  padding: 0 13px;
  font-weight: 750;
  font-size: 13px;
}

.jd-clean-benefits i {
  color: var(--blue2);
  width: 17px;
}

.jd-default-buy .actions.product-actions {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.jd-default-buy .actions .price {
  margin: 0 0 4px;
  color: #70ff98;
  font-size: 28px;
  font-weight: 1000;
}

.jd-default-buy .actions .price strong,
.jd-default-buy .actions .price span {
  color: #70ff98;
}

.jd-default-buy .btn-primary,
.jd-default-buy .btn-secondary,
.jd-default-buy .btn-tertiary,
.jd-default-buy .add,
.jd-default-buy .subscribe,
.jd-default-buy .open-basket,
.jd-default-buy .gift,
.jd-default-basket .btn-primary,
.jd-default-basket .btn-secondary,
.jd-default-basket .btn-tertiary {
  min-height: 54px;
  border-radius: 9px;
  border: 1px solid var(--line);
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}

.jd-default-buy .btn-primary,
.jd-default-buy .add,
.jd-default-buy .subscribe,
.jd-default-basket .btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  box-shadow: 0 10px 28px rgba(14, 165, 233, .18);
  border-color: transparent;
}

.jd-default-buy .btn-secondary,
.jd-default-buy .open-basket,
.jd-default-buy .gift,
.jd-default-basket .btn-secondary,
.jd-default-basket .btn-tertiary {
  background: rgba(9, 19, 32, .78);
  color: #fff;
}

.jd-default-buy .wide,
.jd-default-buy .half {
  width: 100%;
}

.jd-default-buy .quantity-field {
  display: grid;
  grid-template-columns: 48px 1fr 70px 48px;
  gap: 8px;
  align-items: center;
}

.jd-default-buy .quantity-field input {
  height: 54px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(5, 11, 19, .72);
  color: #fff;
  text-align: center;
}

.jd-default-description {
  margin-top: 54px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.jd-default-description .jd-resource-head {
  position: sticky;
  top: 112px;
}

.jd-default-description .jd-resource-head h2 {
  margin: 0;
  font-family: Archivo Black, Inter, sans-serif;
  text-transform: uppercase;
  font-size: 32px;
  line-height: 1;
}

.jd-default-description .jd-text-content {
  background: linear-gradient(180deg, rgba(17, 33, 52, .62), rgba(8, 17, 29, .72));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  color: #c4cedb;
  line-height: 1.75;
}

.jd-default-description .jd-text-content h1,
.jd-default-description .jd-text-content h2,
.jd-default-description .jd-text-content h3,
.jd-default-description .jd-text-content h4 {
  color: #fff;
  margin: 26px 0 12px;
  font-family: Archivo Black, Inter, sans-serif;
  text-transform: uppercase;
}

.jd-default-description .jd-text-content p,
.jd-default-description .jd-text-content ul,
.jd-default-description .jd-text-content ol {
  margin: 0 0 16px;
}

.jd-default-description .jd-text-content ul {
  padding-left: 22px;
  list-style: disc;
}

.jd-default-description .jd-text-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 18px 0;
  border: 1px solid var(--line);
}

/* Cleaner category cards */
.jd-card-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}

.jd-card-strip span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.055);
  color: #aeb9c8;
  font-size: 12px;
  font-weight: 750;
}

.jd-card-strip i {
  color: var(--blue2);
}

.jd-rcore-tag-muted {
  background: rgba(255,255,255,.06);
  color: var(--muted);
}

.jd-rcore-card-body {
  min-height: 205px;
}

.jd-rcore-card h3 {
  min-height: 46px;
}

/* Default checkout, custom styled */
.jd-default-basket {
  max-width: 980px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(17, 33, 52, .86), rgba(8, 17, 29, .92));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  padding: 34px;
}

.jd-default-basket .basket-header {
  margin-bottom: 16px;
}

.jd-default-basket .basket-title {
  margin: 0;
  color: #fff;
  font-family: Archivo Black, Inter, sans-serif;
  text-transform: uppercase;
  font-size: 30px;
}

.jd-default-basket .basket-second-header,
.jd-default-basket .basket-checkout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  color: #fff;
}

.jd-default-basket .basket-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.jd-default-basket .title {
  margin: 0 0 8px;
  font-size: 18px;
  color: #fff;
}

.jd-default-basket .options {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.jd-default-basket .quantity-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.jd-default-basket .quantity-field button,
.jd-default-basket .quantity-field input {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(5, 11, 19, .72);
  color: #fff;
  text-align: center;
}

.jd-default-basket .remove {
  color: #fecaca;
}

@media (max-width: 1100px) {
  .jd-default-product-top,
  .jd-default-description {
    grid-template-columns: 1fr;
  }

  .jd-default-buy,
  .jd-default-description .jd-resource-head {
    position: static;
  }
}

@media (max-width: 640px) {
  .jd-default-product-page,
  .jd-default-checkout-page {
    width: min(var(--max), calc(100% - 28px));
    padding-top: 34px;
  }

  .jd-default-buy,
  .jd-default-description .jd-text-content,
  .jd-default-basket {
    padding: 22px;
  }

  .jd-default-basket .basket-item,
  .jd-default-basket .basket-second-header,
  .jd-default-basket .basket-checkout {
    grid-template-columns: 1fr;
    display: grid;
  }
}


/* Checkout route + simple two-button actions fix */
.jd-simple-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.jd-simple-actions [hidden] {
  display: none !important;
}

.jd-simple-actions .jd-btn {
  width: 100%;
  min-height: 58px;
}

.jd-basket-direct {
  margin-top: 12px;
}

.jd-clean-benefits-product {
  margin-top: 22px;
  margin-bottom: 22px;
}

.jd-clean-benefits-product span {
  min-height: 44px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 10px;
}

/* Make sure all old /checkout/basket looking buttons are visually consistent */
a[href="/checkout"] {
  text-decoration: none;
}


/* Options/configure page fix */
.jd-options-section {
  padding-top: 64px;
}

.jd-options-card {
  width: min(720px, 100%);
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(17, 33, 52, .92), rgba(8, 17, 29, .96));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}

.jd-options-card .product-title {
  margin: 0 0 24px;
  font-family: Archivo Black, Inter, sans-serif;
  text-transform: uppercase;
  font-size: 28px;
  line-height: 1.1;
  color: #fff;
}

.jd-options-form {
  display: grid;
  gap: 18px;
}

.jd-options-form .field {
  display: grid;
  gap: 8px;
}

.jd-options-form p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.55;
}

.jd-options-form input,
.jd-options-form select {
  width: 100%;
  height: 52px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(5, 11, 19, .72);
  color: #fff;
  padding: 0 14px;
  outline: none;
}

.jd-options-form .field-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.jd-options-form .actions {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.jd-options-form .link-text {
  color: var(--blue2);
  text-align: center;
  font-weight: 900;
}

/* Ensure direct add/open-basket route links do not look broken */
.jd-simple-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.jd-simple-actions [hidden] {
  display: none !important;
}

.jd-simple-actions .jd-btn,
.jd-basket-direct {
  min-height: 58px;
}

.jd-clean-benefits-product span {
  min-height: 42px;
}


/* Basket controls fix */
.jd-default-basket .quantity-field button:not(:disabled) {
  cursor: pointer;
}

.jd-default-basket .quantity-field button:disabled,
.jd-default-basket .quantity-field input:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.jd-default-basket .checkout:disabled {
  opacity: .7;
  cursor: wait;
}


/* Single basket button cleanup */
.jd-basket-direct {
  display: none !important;
}

.jd-simple-actions .open-basket {
  margin-top: 0;
}


/* Product media gallery like RCore */
.jd-media-slider {
  display: grid;
  gap: 18px;
}

.jd-main-slider,
.jd-media-slider .slider {
  width: 100%;
  background: rgba(5, 11, 19, .92);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.jd-main-slider swiper-slide,
.jd-media-slider .slide {
  min-height: 420px;
  background: rgba(5, 11, 19, .92);
  display: grid;
  place-items: center;
}

.jd-main-slider .slide-image,
.jd-media-slider .slide-image {
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: contain;
  display: block;
}

.jd-media-slider .slide-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  background: #000;
}

.jd-gallery-thumbs-default,
.jd-media-slider .thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jd-gallery-thumbs-default .thumb,
.jd-media-slider .thumb {
  width: 106px;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: rgba(5, 11, 19, .92);
  opacity: .68;
  cursor: pointer;
  transition: opacity .18s ease, transform .18s ease, border-color .18s ease;
}

.jd-gallery-thumbs-default .thumb:hover,
.jd-gallery-thumbs-default .thumb.active,
.jd-media-slider .thumb:hover,
.jd-media-slider .thumb.active {
  opacity: 1;
  transform: translateY(-1px);
  border-color: rgba(56,189,248,.55);
}

.jd-gallery-thumbs-default img,
.jd-media-slider .thumb-image,
.jd-media-slider .thumb-youtube img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jd-media-slider .thumb-youtube {
  position: relative;
  width: 100%;
  height: 100%;
}

.jd-media-slider .thumb-youtube span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0,0,0,.24);
  font-size: 15px;
}

.jd-gallery-fallback {
  background: rgba(5, 11, 19, .92);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.jd-gallery-fallback img {
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: contain;
  display: block;
}

.jd-gallery-fallback iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

@media (max-width: 640px) {
  .jd-main-slider swiper-slide,
  .jd-media-slider .slide,
  .jd-media-slider .slide-frame {
    min-height: auto;
  }

  .jd-gallery-thumbs-default .thumb,
  .jd-media-slider .thumb {
    width: 78px;
    height: 48px;
  }
}


/* Real Tebex footer fix:
   The previous custom footer duplicated the official Tebex footer and covered the real one. */
.jd-tebex-legal,
.jd-tebex-legal-inner,
.jd-tebex-brand,
.jd-mini-copy {
  display: none !important;
}

.jd-footer-real-spacer {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.jd-mini-footer {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.45);
  font-size: 12px;
}

body {
  padding-bottom: 0 !important;
}

.jd-bg {
  pointer-events: none;
}

.jd-footer {
  position: relative;
  z-index: 1;
}


/* Official Tebex footer visibility fix */
:root {
  --tebex-legal-footer-background-color: #050505;
  --tebex-legal-footer-text-color: #ffffff;
  --tebex-legal-footer-border-color: rgba(255,255,255,.16);
  --tebex-legal-footer-logo-color: #ffffff;
  --tebex-legal-footer-max-width: 1240px;
}

/* keep our background behind everything */
.jd-bg {
  z-index: -1 !important;
}

/* make the platform-injected Tebex footer sit above the background */
[class*="tebex"][class*="footer"],
[class*="Tebex"][class*="Footer"],
[id*="tebex"][id*="footer"],
[id*="Tebex"][id*="Footer"] {
  position: relative !important;
  z-index: 99999 !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: #050505 !important;
  color: #ffffff !important;
  border-top: 1px solid rgba(255,255,255,.16) !important;
}

[class*="tebex"][class*="footer"] *,
[class*="Tebex"][class*="Footer"] *,
[id*="tebex"][id*="footer"] *,
[id*="Tebex"][id*="Footer"] * {
  visibility: visible !important;
  opacity: 1 !important;
  color: #ffffff !important;
}

[class*="tebex"][class*="footer"] a,
[class*="Tebex"][class*="Footer"] a,
[id*="tebex"][id*="footer"] a,
[id*="Tebex"][id*="Footer"] a {
  color: #ffffff !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}

/* do not let our copyright spacer cover the injected footer */
.jd-footer-real-spacer,
.jd-mini-footer {
  position: relative !important;
  z-index: 1 !important;
  background: transparent !important;
}

/* remove possible huge invisible overlay at the bottom */
body::after,
html::after {
  pointer-events: none !important;
}


/* Product gallery: show one active image only */
.jd-gallery {
  position: relative;
  background: rgba(5, 11, 19, .92);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  min-height: 420px;
  display: grid;
  place-items: center;
}

.jd-gallery-main {
  display: none !important;
  width: 100%;
}

.jd-gallery-main.is-active {
  display: block !important;
}

.jd-gallery img.jd-gallery-main {
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: contain;
  background: rgba(5, 11, 19, .92);
}

.jd-gallery .jd-video-preview.is-active {
  display: block !important;
}

.jd-gallery .jd-video-preview iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  display: block;
  background: #000;
}

.jd-gallery-thumbs-default {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.jd-gallery-thumbs-default .thumb {
  width: 106px;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: rgba(5, 11, 19, .92);
  opacity: .68;
  cursor: pointer;
  transition: opacity .18s ease, transform .18s ease, border-color .18s ease;
}

.jd-gallery-thumbs-default .thumb:hover,
.jd-gallery-thumbs-default .thumb.active {
  opacity: 1;
  transform: translateY(-1px);
  border-color: rgba(56,189,248,.55);
}

.jd-gallery-thumbs-default img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jd-gallery-thumbs-default .thumb-youtube {
  position: relative;
  width: 100%;
  height: 100%;
}

.jd-gallery-thumbs-default .thumb-youtube span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0,0,0,.24);
  font-size: 15px;
}

/* Product title should keep the real package name casing, e.g. Scratchcards */
.jd-buy-panel h1,
.jd-default-buy .product-title {
  text-transform: none !important;
  letter-spacing: -.02em !important;
}

@media (max-width: 640px) {
  .jd-gallery {
    min-height: auto;
  }

  .jd-gallery .jd-video-preview iframe {
    min-height: auto;
  }

  .jd-gallery-thumbs-default .thumb {
    width: 78px;
    height: 48px;
  }
}
