/* ==========================================================================
   BlockBande – Shop-Seite (Gem-Pakete, Sonderangebote, Info-Box)

   Übernommen aus dem früheren HTML-Block der Shop-Seite in Elementor
   (#bb-shop-root → .bb-shop). Sale-, Banner- und Sonderangebots-Schalter laufen
   nicht mehr über JavaScript, sondern über WooCommerce (inc/sale.php); die
   Anpassungen dafür stehen am Ende der Datei.
   ========================================================================== */

.bb-shop, .bb-shop *, .bb-shop *::before, .bb-shop *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

.bb-shop {
  --bg-dark: #0a1628;
  --bg-card: #0f1f3a;
  --bg-card-border: #1a3058;
  --accent-yellow: #f5c518;
  --accent-green: #2ecc71;
  --accent-cyan: #00bcd4;
  --accent-blue: #3b82f6;
  --accent-red: #e74c3c;
  --accent-pink: #e040fb;
  --accent-orange: #ff9800;
  --text-primary: #ffffff;
  --text-secondary: #8aa4c8;
  --text-muted: #5a7aa0;
  --max-width: 1180px;

  font-family: var(--bb-font-body);
  color: var(--text-primary);
  background: var(--bg-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  margin-left: 0;
  padding: 30px 20px 60px;
  overflow-x: clip;
}

.bb-shop .bb-shop__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: min(calc(100% - 24px), var(--max-width));
}

.bb-shop a { text-decoration: none; color: inherit; }
.bb-shop img { max-width: 100%; height: auto; display: block; }
.bb-shop button { cursor: pointer; border: none; font-family: inherit; }

/* ========== HERO TOP BAR ========== */
.bb-hero {
  position: relative;
  background: url('../img/shop-hero.webp') center top / cover no-repeat;
  padding: 24px 20px 9px;
  text-align: center;
  overflow: hidden;
  margin: -30px calc(50% - 50vw) 7px;
}

.bb-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.3) 0%, rgba(10,22,40,0.7) 70%, var(--bg-dark) 100%);
  pointer-events: none;
}

.bb-hero__row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 14px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.bb-hero__left {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  min-height: 62px;
  min-width: 210px;
  padding: 14px 18px;
  border-radius: 2px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(2px);
  text-align: left;
}

.bb-hero__copy-card {
  width: 100%;
  cursor: pointer;
  color: inherit;
  transition: opacity 0.2s;
}

.bb-hero__copy-card:hover {
  opacity: 0.8;
}

.bb-hero__ip {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.bb-hero__ip-sub {
  font-size: 10px;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

.bb-hero__copy-btn {
  background: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
  flex-shrink: 0;
}
.bb-hero__copy-btn img { width: 100%; height: 100%; object-fit: contain; }
.bb-hero__logo {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin: 0 -26px;
}

.bb-hero__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 390px);
  max-height: none;
  object-fit: contain;
}

.bb-hero__right {
  display: flex;
  align-items: center;
  justify-self: end;
  position: relative;
  z-index: 2;
  margin-left: -12px;
}

.bb-hero__left {
  position: relative;
  z-index: 2;
  margin-right: -12px;
}

.bb-hero__discord {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  min-height: 62px;
  min-width: 210px;
  padding: 14px 18px;
  border-radius: 2px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  transition: opacity 0.2s;
  text-align: left;
}
.bb-hero__discord:hover { opacity: 0.8; }

/* ========== OPTIONALER SALE BANNER ========== */
.bb-sale-banner {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
}

.bb-sale-banner__inner {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.bb-sale-banner__inner img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 769px) {
  .bb-overlap-after-hero {
    position: relative;
    z-index: 3;
    margin-top: -42px;
  }
}

.bb-hero__discord-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.bb-hero__discord-sub {
  font-size: 10px;
  color: var(--accent-cyan);
  display: block;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .bb-hero__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .bb-hero__logo {
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0;
    margin-bottom: -24px;
    z-index: 1;
  }

  .bb-hero__left {
    grid-column: 1;
    grid-row: 2;
  }

  .bb-hero__right {
    grid-column: 2;
    grid-row: 2;
  }

  .bb-hero__left,
  .bb-hero__right {
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    position: relative;
    z-index: 2;
    margin-top: -18px;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 0;
  }

  .bb-hero__logo img {
    max-width: min(100%, 240px);
  }

  .bb-hero__left {
    justify-content: center;
    min-height: 50px;
    padding: 8px 6px;
    gap: 6px;
    text-align: center;
  }

  .bb-hero__discord {
    width: 100%;
    min-width: 0;
    justify-content: center;
    min-height: 50px;
    padding: 8px 6px;
    text-align: center;
  }

  .bb-hero__ip {
    font-size: 12px;
  }

  .bb-hero__ip-sub,
  .bb-hero__discord-sub {
    font-size: 9px;
    letter-spacing: 0.7px;
  }
}

/* ========== SECTION ========== */
.bb-section {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 30px 20px;
  margin-bottom: 30px;
}

.bb-section__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
}

.bb-section__title::before,
.bb-section__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bg-card-border), transparent);
}

.bb-shop--sale-best-offer .bb-section__title--offers {
  position: relative;
  padding-bottom: 10px;
  color: #ffd54f;
  text-shadow: 0 0 18px rgba(255,213,79,0.18);
  background: linear-gradient(90deg, transparent, #e040fb, #ffd54f, #ff9800, transparent) center bottom / 110px 3px no-repeat;
  animation: bbSaleTitleUnderline 2.4s ease-in-out infinite;
}

.bb-shop--sale-best-offer .bb-section__title--offers::before,
.bb-shop--sale-best-offer .bb-section__title--offers::after {
  background: linear-gradient(90deg, transparent, rgba(255,213,79,0.62), rgba(224,64,251,0.36), transparent);
}

/* ========== GEM CARDS ========== */
.bb-special-offer {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.bb-offer-strip {
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 24px 28px;
  border: 1px solid rgba(46,204,113,0.3);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(46,204,113,0.18), transparent 35%),
    linear-gradient(135deg, rgba(15,31,58,0.98) 0%, rgba(10,22,40,0.98) 100%);
  overflow: hidden;
}

.bb-offer-strip--best-deal {
  order: -1;
  border-color: rgba(255,213,79,0.8);
  background:
    radial-gradient(circle at top right, rgba(255,213,79,0.24), transparent 36%),
    radial-gradient(circle at bottom left, rgba(255,152,0,0.16), transparent 34%),
    linear-gradient(135deg, rgba(34,27,12,0.98) 0%, rgba(10,22,40,0.98) 100%);
  box-shadow: 0 0 0 1px rgba(255,213,79,0.28), 0 16px 42px rgba(255,152,0,0.22), 0 24px 56px rgba(0,0,0,0.32);
  animation: bbBestDealPulse 2.8s ease-in-out infinite;
}

.bb-shop--sale-best-offer .bb-offer-strip {
  padding-top: 46px;
}

.bb-offer-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.04), transparent 35%, rgba(255,255,255,0.02));
  pointer-events: none;
}

.bb-offer-strip--best-deal::after {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from var(--bb-best-deal-angle, 0deg), transparent 0deg, rgba(255,255,255,0.18) 58deg, #ffd54f 112deg, #ff9800 156deg, transparent 220deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: bbBestDealBorder 3.5s linear infinite;
  z-index: 0;
}

.bb-shop:not(.bb-shop--sale-best-offer) .bb-offer-strip--best-deal {
  order: 0;
}

.bb-shop--sale-best-offer .bb-offer-strip:not(.bb-offer-strip--best-deal) {
  border-color: rgba(224,64,251,0.56);
  background:
    radial-gradient(circle at top right, rgba(224,64,251,0.18), transparent 36%),
    radial-gradient(circle at bottom left, rgba(59,130,246,0.1), transparent 34%),
    linear-gradient(135deg, rgba(28,14,38,0.96) 0%, rgba(10,22,40,0.98) 100%);
  box-shadow: 0 0 0 1px rgba(224,64,251,0.14), 0 14px 36px rgba(224,64,251,0.16), 0 22px 48px rgba(0,0,0,0.28);
}

.bb-shop--sale-best-offer .bb-offer-strip:not(.bb-offer-strip--best-deal) .bb-offer-strip__eyebrow,
.bb-shop--sale-best-offer .bb-offer-strip:not(.bb-offer-strip--best-deal) .bb-gem-card__new-price {
  color: #e879f9;
}

.bb-shop--sale-best-offer .bb-offer-strip:not(.bb-offer-strip--best-deal) .bb-offer-strip__badge,
.bb-shop--sale-best-offer .bb-offer-strip:not(.bb-offer-strip--best-deal) .bb-offer-strip__rank-badge {
  background: linear-gradient(135deg, #e040fb, #7c3aed);
  border-color: rgba(224,64,251,0.72);
  color: #fff;
  box-shadow: 0 6px 18px rgba(224,64,251,0.28);
}

.bb-shop--sale-best-offer .bb-offer-strip:not(.bb-offer-strip--best-deal) .bb-gem-card__buy-btn {
  background: linear-gradient(135deg, #e040fb, #7c3aed);
  color: #fff;
  box-shadow: 0 7px 20px rgba(224,64,251,0.24);
}

.bb-offer-strip--best-deal .bb-offer-strip__eyebrow,
.bb-offer-strip--best-deal .bb-gem-card__new-price {
  color: #ffd54f;
}

.bb-offer-strip--best-deal .bb-offer-strip__badge {
  background: linear-gradient(135deg, #ffd54f, #ff9800);
  color: #1a0f00;
  box-shadow: 0 5px 18px rgba(255,152,0,0.38);
}

.bb-offer-strip--best-deal .bb-gem-card__buy-btn {
  background: linear-gradient(135deg, #ffd54f, #ff9800);
  color: #1a0f00;
  box-shadow: 0 8px 22px rgba(255,152,0,0.32);
}

.bb-offer-strip--best-deal .bb-gem-card__buy-btn:hover,
.bb-offer-strip--best-deal .bb-gem-card__buy-btn--default:hover {
  background: linear-gradient(135deg, #ffe082, #ffb300, #ff7a00);
  color: #1a0f00;
  filter: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255,152,0,0.46), 0 0 0 1px rgba(255,235,140,0.45);
}

.bb-offer-strip__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
}

.bb-offer-strip__rank-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.82);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 5px 16px rgba(0,0,0,0.22);
}

.bb-shop--sale-best-offer .bb-offer-strip__rank-badge {
  display: inline-flex;
}

.bb-offer-strip__rank-badge strong {
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.bb-offer-strip--best-deal .bb-offer-strip__rank-badge {
  background: linear-gradient(135deg, #ffe082, #ffc107, #ff9800);
  border-color: rgba(255,235,140,0.9);
  color: #1a0f00;
  box-shadow: 0 7px 22px rgba(255,152,0,0.38);
}

.bb-offer-strip--best-deal .bb-offer-strip__rank-badge strong {
  color: #1a0f00;
}

.bb-offer-strip__image {
  position: relative;
  z-index: 1;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bb-offer-strip__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* --- Rabatt-Flagge auf dem Produktbild --- */
.bb-offer-strip__discount {
  position: absolute;
  left: -10px;
  bottom: -4px;
  z-index: 4;
  display: none;
  padding: 6px 12px;
  border-radius: 999px;
  transform: rotate(-8deg);
  background: linear-gradient(135deg, #ff5252, #d32f2f);
  border: 2px solid rgba(255,255,255,0.92);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(211,47,47,0.4);
}

.bb-offer-strip__discount.is-visible { display: inline-block; }

.bb-offer-strip__content,
.bb-offer-strip__pricing,
.bb-offer-strip__action {
  position: relative;
  z-index: 1;
}

.bb-offer-strip__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-green);
}

.bb-offer-strip__eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.bb-offer-strip__title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.bb-offer-strip__text {
  max-width: 420px;
  font-size: 14px;
  color: var(--text-secondary);
}

.bb-offer-strip__pricing {
  text-align: right;
  white-space: nowrap;
}

.bb-offer-strip__pricing .bb-gem-card__old-price,
.bb-offer-strip__pricing .bb-gem-card__new-price {
  display: block;
  margin-right: 0;
}

.bb-offer-strip__pricing .bb-gem-card__old-price {
  font-size: 15px;
  margin-bottom: 6px;
}

.bb-offer-strip__pricing .bb-gem-card__new-price {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 8px;
}

.bb-offer-strip__pricing .bb-gem-card__vat {
  margin-bottom: 0;
}

.bb-offer-strip__action .bb-gem-card__buy-btn {
  min-width: 170px;
}

@media (min-width: 901px) {
  .bb-special-offer--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bb-shop--sale-best-offer .bb-special-offer--two {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }

  .bb-special-offer--two .bb-offer-strip {
    grid-template-columns: 128px minmax(0, 1fr);
    align-items: start;
    gap: 14px 18px;
    padding: 22px;
  }

  .bb-shop--sale-best-offer .bb-special-offer--two .bb-offer-strip {
    padding-top: 46px;
  }

  .bb-special-offer--two .bb-offer-strip__image {
    width: 128px;
    height: 128px;
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: center;
  }

  .bb-special-offer--two .bb-offer-strip__content,
  .bb-special-offer--two .bb-offer-strip__pricing,
  .bb-special-offer--two .bb-offer-strip__action {
    grid-column: 2;
  }

  .bb-special-offer--two .bb-offer-strip__title {
    font-size: 24px;
  }

  .bb-special-offer--two .bb-offer-strip__text {
    max-width: none;
  }

  .bb-special-offer--two .bb-offer-strip__pricing {
    text-align: left;
  }

  .bb-special-offer--two .bb-offer-strip__action {
    display: flex;
    justify-content: flex-start;
  }

  .bb-special-offer--two .bb-offer-strip__action .bb-gem-card__buy-btn {
    min-width: 150px;
  }
}

.bb-gem-card {
  position: relative;
  background: linear-gradient(180deg, rgba(15,31,58,0.8) 0%, rgba(10,22,40,0.95) 100%);
  border: 2px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  overflow: visible;
}

.bb-gem-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.bb-gem-card--special { width: 240px; }

.bb-gem-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.bb-gem-card__bonus-badge {
  position: absolute;
  top: -12px;
  right: -8px;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-orange));
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  z-index: 4;
}

.bb-gem-card__image {
  width: 160px;
  height: 160px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bb-gem-card__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.bb-gem-card__amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.bb-gem-card__pricing { margin-bottom: 4px; }

.bb-gem-card__old-price {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 6px;
}

.bb-gem-card__new-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-green);
}

.bb-gem-card__vat {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.bb-gem-card__buy-btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
  color: #fff;
}
.bb-gem-card__buy-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }

.bb-gem-card__buy-btn--default {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
}
.bb-gem-card__buy-btn--default:hover { background: rgba(255,255,255,0.15); }
.bb-gem-card__buy-btn--green { background: var(--accent-green); }
.bb-gem-card__buy-btn--blue { background: var(--accent-blue); }
.bb-gem-card__buy-btn--pink { background: var(--accent-pink); }
.bb-gem-card__buy-btn--gold { background: var(--accent-yellow); color: #000; }

/* ========== GEMS GRID ========== */
.bb-gems-grid {
  display: grid;
  grid-template-columns: 0.85fr 0.85fr 1.1fr 1.2fr;
  gap: 16px;
  align-items: center;
}

.bb-gem-card--small {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bb-gem-card--small .bb-gem-card__image { width: 132px; height: 132px; }
.bb-gem-card--small .bb-gem-card__amount { font-size: 18px; }

.bb-gem-card--green { border-color: rgba(46,204,113,0.4); }
.bb-gem-card--green:hover { border-color: rgba(46,204,113,0.7); box-shadow: 0 8px 30px rgba(46,204,113,0.15); }
.bb-gem-card--blue { border-color: rgba(59,130,246,0.4); }
.bb-gem-card--blue:hover { border-color: rgba(59,130,246,0.7); box-shadow: 0 8px 30px rgba(59,130,246,0.15); }
.bb-gem-card--pink { border-color: rgba(224,64,251,0.4); }
.bb-gem-card--pink:hover { border-color: rgba(224,64,251,0.7); box-shadow: 0 8px 30px rgba(224,64,251,0.15); }
.bb-gem-card--gold { border-color: rgba(245,197,24,0.4); }
.bb-gem-card--gold:hover { border-color: rgba(245,197,24,0.7); box-shadow: 0 8px 30px rgba(245,197,24,0.15); }

/* ========== PRODUKT-TIERS: Budget / Featured / Flagship ========== */

/* --- BUDGET (1.000 & 2.500 Gems) --- */
.bb-gem-card--tier-budget {
  background: linear-gradient(180deg, rgba(11,21,38,0.92) 0%, rgba(8,14,26,0.98) 100%);
  border-color: rgba(90,122,160,0.22);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.bb-gem-card--tier-budget:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.24);
}
.bb-gem-card--tier-budget .bb-gem-card__amount { color: rgba(255,255,255,0.85); }
.bb-gem-card--tier-budget .bb-gem-card__new-price { color: #cdd8ec; }
.bb-gem-card--tier-budget .bb-gem-card__buy-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.7);
}
.bb-gem-card--tier-budget .bb-gem-card__buy-btn:hover {
  background: rgba(255,255,255,0.14);
}

/* --- FEATURED (5.400 Gems) --- */
.bb-gem-card--tier-featured {
  border-color: rgba(224,64,251,0.5);
  background:
    radial-gradient(ellipse 100% 70% at 50% 0%, rgba(224,64,251,0.15) 0%, transparent 55%),
    linear-gradient(175deg, rgba(28,14,38,0.95) 0%, rgba(10,18,35,0.98) 100%);
  box-shadow: 0 0 0 1px rgba(224,64,251,0.1), 0 10px 36px rgba(224,64,251,0.18), 0 16px 40px rgba(0,0,0,0.22);
}
.bb-gem-card--tier-featured:hover {
  transform: translateY(-5px);
  border-color: rgba(224,64,251,0.8);
  box-shadow: 0 0 0 1px rgba(224,64,251,0.2), 0 14px 44px rgba(224,64,251,0.3), 0 22px 50px rgba(0,0,0,0.3);
}
.bb-gem-card--tier-featured .bb-gem-card__bonus-badge {
  top: -12px; right: -8px;
  box-shadow: 0 4px 14px rgba(224,64,251,0.3);
}

.bb-shop--sale-best-offer .bb-gem-card--tier-featured {
  border-color: rgba(90,122,160,0.28);
  background:
    radial-gradient(ellipse 100% 70% at 50% 0%, rgba(90,122,160,0.1) 0%, transparent 56%),
    linear-gradient(180deg, rgba(13,25,45,0.9) 0%, rgba(8,14,26,0.98) 100%);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.bb-shop--sale-best-offer .bb-gem-card--tier-featured:hover {
  transform: translateY(-4px);
  border-color: rgba(90,122,160,0.46);
  box-shadow: 0 12px 32px rgba(0,0,0,0.28);
}

.bb-shop--sale-best-offer .bb-gem-card--tier-featured .bb-gem-card__new-price {
  color: #cdd8ec;
}

.bb-shop--sale-best-offer .bb-gem-card--tier-featured .bb-gem-card__bonus-badge {
  background: linear-gradient(135deg, rgba(90,122,160,0.96), rgba(59,130,246,0.92));
  box-shadow: 0 4px 14px rgba(59,130,246,0.22);
}

.bb-shop--sale-best-offer .bb-gem-card--tier-featured .bb-gem-card__buy-btn--pink {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.78);
}

.bb-shop--sale-best-offer .bb-gem-card--tier-featured .bb-gem-card__buy-btn--pink:hover {
  background: rgba(255,255,255,0.14);
}

/* --- FLAGSHIP badge (Beste Wahl) --- */
.bb-gem-card__flagship-badge {
  position: absolute;
  top: -12px; left: -8px; right: auto;
  z-index: 4;
  background: linear-gradient(90deg, #ffe082, #ffc107, #ff8f00);
  color: #1a1000;
  font-size: 8px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  pointer-events: none;
  white-space: nowrap;
}

.bb-shop--sale-best-offer .bb-gem-card--tier-flagship .bb-gem-card__flagship-badge {
  display: none;
}

/* --- FLAGSHIP (11.600 Gems) --- */
.bb-gem-card--tier-flagship {
  position: relative; z-index: 2;
  border-width: 3px;
  border-color: rgba(255,213,100,0.7);
  background:
    radial-gradient(ellipse 110% 85% at 50% -10%, rgba(255,210,80,0.3) 0%, transparent 52%),
    linear-gradient(180deg, rgba(45,36,12,0.97) 0%, rgba(10,16,32,0.99) 100%);
  box-shadow: 0 0 0 1px rgba(255,200,90,0.3), 0 6px 28px rgba(245,197,24,0.25), 0 20px 56px rgba(0,0,0,0.35);
}
.bb-gem-card--tier-flagship::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,235,180,0.1) 0%, transparent 45%, rgba(255,180,40,0.06) 100%);
  pointer-events: none; z-index: 0;
}
.bb-gem-card--tier-flagship > * { position: relative; z-index: 1; }
.bb-gem-card--tier-flagship > .bb-gem-card__flagship-badge { position: absolute; z-index: 5; }
.bb-gem-card--tier-flagship > .bb-gem-card__bonus-badge { position: absolute; z-index: 5; }
.bb-gem-card--tier-flagship:hover {
  transform: translateY(-7px);
  border-color: rgba(255,230,140,0.95);
  box-shadow: 0 0 0 1px rgba(255,220,120,0.4), 0 10px 40px rgba(245,197,24,0.4), 0 28px 64px rgba(0,0,0,0.4);
}
.bb-gem-card--tier-flagship .bb-gem-card__image {
  filter: drop-shadow(0 6px 16px rgba(255,200,60,0.3));
}
.bb-gem-card--tier-flagship .bb-gem-card__amount {
  text-shadow: 0 0 20px rgba(255,200,80,0.2);
}
.bb-gem-card--tier-flagship .bb-gem-card__new-price { color: #ffd54f; }
.bb-gem-card--tier-flagship .bb-gem-card__bonus-badge {
  top: -12px; right: -8px; left: auto;
  font-weight: 800;
  background: linear-gradient(135deg, #ffd54f, #ff9800);
  color: #1a0f00;
  box-shadow: 0 4px 14px rgba(255,180,0,0.4);
}
.bb-gem-card--tier-flagship .bb-gem-card__buy-btn--gold {
  box-shadow: 0 4px 18px rgba(245,197,24,0.35);
}

.bb-shop--sale-best-offer .bb-gem-card--tier-flagship {
  z-index: 1;
  border-width: 2px;
  border-color: rgba(90,122,160,0.28);
  background:
    radial-gradient(ellipse 100% 70% at 50% 0%, rgba(90,122,160,0.12) 0%, transparent 56%),
    linear-gradient(180deg, rgba(13,25,45,0.92) 0%, rgba(8,14,26,0.98) 100%);
  box-shadow: 0 8px 26px rgba(0,0,0,0.22);
}

.bb-shop--sale-best-offer .bb-gem-card--tier-flagship::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 48%, rgba(90,122,160,0.05) 100%);
}

.bb-shop--sale-best-offer .bb-gem-card--tier-flagship:hover {
  transform: translateY(-4px);
  border-color: rgba(90,122,160,0.48);
  box-shadow: 0 12px 34px rgba(0,0,0,0.3);
}

.bb-shop--sale-best-offer .bb-gem-card--tier-flagship .bb-gem-card__image {
  filter: none;
}

.bb-shop--sale-best-offer .bb-gem-card--tier-flagship .bb-gem-card__amount {
  text-shadow: none;
}

.bb-shop--sale-best-offer .bb-gem-card--tier-flagship .bb-gem-card__new-price {
  color: #cdd8ec;
}

.bb-shop--sale-best-offer .bb-gem-card--tier-flagship .bb-gem-card__bonus-badge {
  background: linear-gradient(135deg, rgba(90,122,160,0.96), rgba(59,130,246,0.92));
  color: #fff;
  box-shadow: 0 4px 14px rgba(59,130,246,0.24);
}

.bb-shop--sale-best-offer .bb-gem-card--tier-flagship .bb-gem-card__buy-btn--gold {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.78);
  box-shadow: none;
}

.bb-shop--sale-best-offer .bb-gem-card--tier-flagship .bb-gem-card__buy-btn--gold:hover {
  background: rgba(255,255,255,0.14);
}

/* ========== INFO SECTION ========== */
.bb-info {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 30px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.bb-info__icon { flex-shrink: 0; width: 100px; height: 100px; }
.bb-info__icon img { width: 100%; height: 100%; object-fit: contain; }

.bb-info__content h2 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.bb-info__content p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }

.bb-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #5865f2;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}
.bb-discord-btn:hover { filter: brightness(1.15); transform: translateY(-2px); }
.bb-discord-btn img,
.bb-discord-btn svg { width: 20px; height: 20px; object-fit: contain; fill: #fff; }
.bb-discord-btn img { filter: brightness(0) invert(1); }

/* ========== SPARKLE (innerhalb der Card-Grenzen) ========== */
.bb-gem-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%);
  background-size: 300% 300%;
  background-position: 100% 100%;
  transition: background-position 0.6s ease;
  pointer-events: none;
  z-index: 0;
}
.bb-gem-card:hover::after {
  background-position: 0% 0%;
}

/* ========== ANIMATIONS ========== */
@property --bb-best-deal-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes bbFadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bbBestDealPulse {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(255,213,79,0.24), 0 16px 42px rgba(255,152,0,0.18), 0 24px 56px rgba(0,0,0,0.32);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255,235,140,0.45), 0 20px 54px rgba(255,152,0,0.32), 0 28px 64px rgba(0,0,0,0.38);
  }
}

@keyframes bbBestDealBorder {
  to { --bb-best-deal-angle: 360deg; }
}

@keyframes bbSaleTitleUnderline {
  0%, 100% {
    background-size: 110px 3px;
    background-position: center bottom;
  }
  50% {
    background-size: 270px 3px;
    background-position: center bottom;
  }
}

.bb-animate { opacity: 1; animation: none; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .bb-shop {
    padding: 8px 14px 44px;
  }

  .bb-hero {
    padding: 6px 12px 12px;
    margin: -8px calc(50% - 50vw) 12px;
  }

  .bb-hero__row {
    gap: 4px;
  }

  .bb-hero__left,
  .bb-hero__right {
    width: 100%;
  }

  .bb-gems-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  /* Handy: teuerste Pakete zuerst (Reihenfolge kommt aus template-parts/gem-card.php). */
  .bb-gems-grid .bb-gem-card { order: var(--bb-mobile-order, 0); }

  .bb-sale-banner {
    padding: 12px;
    margin-bottom: 20px;
  }

  .bb-section {
    padding: 22px 16px;
    margin-bottom: 20px;
  }

  .bb-section__title {
    gap: 10px;
    margin-bottom: 18px;
    font-size: 12px;
    letter-spacing: 2px;
  }

  .bb-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 14px;
    gap: 10px;
  }
  .bb-info__icon { width: 56px; height: 56px; }
  .bb-info__content h2 { font-size: 16px; margin-bottom: 6px; }
  .bb-info__content p { font-size: 11px; line-height: 1.5; margin-bottom: 10px; }
  .bb-discord-btn { font-size: 11px; padding: 9px 18px; }

  .bb-offer-strip {
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: start;
    gap: 8px 12px;
    padding: 14px 14px 16px;
    text-align: left;
  }

  .bb-shop--sale-best-offer .bb-offer-strip {
    padding-top: 40px;
  }

  .bb-offer-strip__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    grid-column: auto;
    justify-self: auto;
  }

  .bb-offer-strip__rank-badge {
    top: 10px;
    left: 10px;
    gap: 4px;
    padding: 4px 8px;
    font-size: 8px;
    letter-spacing: 0.5px;
  }

  .bb-offer-strip__rank-badge strong {
    font-size: 10px;
  }

  .bb-offer-strip__image {
    width: 84px;
    height: 84px;
    margin: 0;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .bb-offer-strip__discount {
    left: -6px;
    bottom: -2px;
    padding: 4px 8px;
    font-size: 10px;
    border-width: 1.5px;
  }

  .bb-offer-strip__content {
    grid-column: 2;
    grid-row: 1;
    padding-top: 2px;
  }

  .bb-offer-strip__eyebrow {
    margin-bottom: 4px;
    font-size: 9px;
    letter-spacing: 1px;
  }

  .bb-offer-strip__title {
    font-size: 20px;
    margin-bottom: 4px;
  }

  .bb-offer-strip__text {
    max-width: none;
    font-size: 11px;
    line-height: 1.35;
  }

  .bb-offer-strip__pricing {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    text-align: left;
    white-space: nowrap;
  }

  .bb-offer-strip__pricing .bb-gem-card__old-price {
    display: inline;
    font-size: 12px;
    margin-bottom: 0;
  }

  .bb-offer-strip__pricing .bb-gem-card__new-price {
    display: inline;
    font-size: 20px;
    margin-bottom: 0;
  }

  .bb-offer-strip__pricing .bb-gem-card__vat {
    width: 100%;
    margin-top: 2px;
    margin-bottom: 0;
    font-size: 8px;
  }

  .bb-offer-strip__action {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    justify-content: center;
    margin-top: 4px;
  }

  .bb-offer-strip__action .bb-gem-card__buy-btn {
    width: auto;
    min-width: 160px;
    padding: 10px 18px;
    text-align: center;
  }

  .bb-gem-card {
    padding: 16px 12px;
    border-radius: 12px;
  }

  /* --- Mobile Gem Cards (allgemein) --- */
  .bb-gem-card--small .bb-gem-card__image {
    width: 100px; height: 100px;
    margin-bottom: 10px;
  }
  .bb-gem-card--small .bb-gem-card__amount {
    font-size: 15px;
    margin-bottom: 6px;
  }
  .bb-gem-card__old-price { font-size: 12px; margin-bottom: 2px; }
  .bb-gem-card__new-price { font-size: 16px; }
  .bb-gem-card__vat { font-size: 9px; margin-bottom: 10px; }
  .bb-gem-card__buy-btn {
    width: 100%;
    padding: 10px 8px;
    font-size: 10px;
    white-space: nowrap;
  }

  /* --- Mobile Badges: auf dem Rand des Card-Elements sitzend --- */
  .bb-gem-card__bonus-badge,
  .bb-gem-card--tier-featured .bb-gem-card__bonus-badge,
  .bb-gem-card--tier-flagship .bb-gem-card__bonus-badge {
    top: -10px;
    right: -6px;
    font-size: 8px;
    padding: 4px 10px;
  }

  .bb-gem-card__badge {
    font-size: 8px;
    padding: 4px 8px;
  }

  /* --- Mobile Flagship: "Beste Wahl" ausblenden (kein Platz) --- */
  .bb-gem-card__flagship-badge {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bb-offer-strip--best-deal,
  .bb-offer-strip--best-deal::after {
    animation: none;
  }

  .bb-shop--sale-best-offer .bb-section__title--offers {
    animation: none;
    background-size: 220px 3px;
  }
}

/* ==========================================================================
   Anpassungen an das Theme
   ========================================================================== */

/* Hero über die volle Breite. Der Header liegt wie bisher über dem oberen,
   transparenten Rand des Logos – daher kein zusätzlicher Abstand nach oben. */
.bb-main--shop {
  display: block;
}

.bb-shop {
  padding: 0 0 60px;
  overflow-x: clip;
}

.bb-shop .bb-hero {
  margin: 0 0 7px;
  padding-top: 24px;
}

.bb-shop .bb-shop__inner {
  width: min(calc(100% - 24px), var(--max-width));
}

/* Überschriften sind jetzt echte h2/h3 – Größen wie vorher. */
.bb-shop .bb-section__title {
  font-family: inherit;
  line-height: 1.5;
}

.bb-gems-grid {
  list-style: none;
}

.bb-gem-card__amount,
.bb-offer-strip__title {
  font-family: inherit;
  line-height: 1.3;
}

/* Streichpreis als <del> */
.bb-gem-card__old-price {
  display: block;
}

/* Discord-Icon als SVG statt Bild */
.bb-hero__discord .bb-icon {
  width: 32px;
  height: 32px;
  color: #5865f2;
}

.bb-discord-btn .bb-icon {
  width: 20px;
  height: 20px;
}

.bb-hero__copy-card {
  border-radius: 2px;
  font: inherit;
}

/* Die ganze Karte ist klickbar (vorher nur auf dem Handy per Skript). */
.bb-gem-card .bb-gem-card__buy-btn::after,
.bb-offer-strip .bb-gem-card__buy-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}

.bb-gem-card,
.bb-offer-strip {
  cursor: pointer;
}

/* Damit die Klickfläche immer die ganze Karte ist: der Button selbst darf weder
   positioniert noch verschoben sein (sonst wird er zum Bezugsrahmen der Fläche). */
.bb-gem-card .bb-gem-card__buy-btn,
.bb-gem-card--tier-flagship > .bb-gem-card__buy-btn,
.bb-offer-strip .bb-gem-card__buy-btn,
.bb-offer-strip__action {
  position: static;
}

.bb-gem-card .bb-gem-card__buy-btn:hover,
.bb-offer-strip .bb-gem-card__buy-btn:hover {
  transform: none;
}

.bb-gem-card__bonus-badge,
.bb-gem-card__flagship-badge,
.bb-offer-strip__rank-badge,
.bb-offer-strip__badge,
.bb-offer-strip__discount {
  pointer-events: none;
}

.bb-gem-card__buy-btn.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

/* Hinweise von WooCommerce (z. B. „nicht kaufbar“) */
.bb-shop .woocommerce-notices-wrapper:not(:empty) {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .bb-shop {
    padding: 0 0 44px;
  }

  .bb-shop .bb-shop__inner {
    width: calc(100% - 28px);
  }

  .bb-shop .bb-hero {
    margin: 0 0 12px;
    padding-top: 18px;
  }
}
