.copy-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--positive);
  border-color: var(--positive);
  color: var(--positive-text);
  font-family: 'Poppins';
  border-radius: var(--border-radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.copy-toast.toast-error {
  background: var(--negative);
  border-color: var(--negative);
  color: var(--negative-text);
}

.copy-toast i {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-family: 'Poppins';
}

.text-header {
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
}

.text-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.text-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
}

.text-desc {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 2;
}

.text-navigation {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 2;
}

.text-notice {
  font-size: 0.9rem;
}

html {
  height: 100%;
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--text-primary);
  background: var(--background-gradient);
  background-attachment: fixed;
  overflow-x: hidden;
}


#root {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(15px, 4vw, 40px);
  min-height: 100%;
  font-family: 'Poppins';
}

.grid-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.col-4 {
  grid-column: span 4;
}

.col-3 {
  grid-column: span 3;
}

.col-8 {
  grid-column: span 8;
}

.col-6 {
  grid-column: span 6;
  height: 100%;
}

.col-12 {
  grid-column: span 12;
}

.navigation-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
}

.navigation-right {
  display: flex;
  gap: 1.5rem;
}

.navigation-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.navigation-link:hover {
  color: var(--text-primary);
}

.header-block {
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 2rem;
  box-shadow: var(--box-shadow);
}

.header-left {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  z-index: 2;
}

.store-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.btn-copy-ip {
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  padding: 0;
}

.btn-copy-ip:hover {
  background: var(--primary-hover-color);
  transform: translateY(-1px);
}

.btn-copy-ip i {
  color: var(--icon-primary);
  font-size: 1.5rem;
}

.store-title {
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.store-subtitle {
  color: var(--secondary-color);
  margin: 0;
  line-height: 1.3;
}

.header-center {
  position: absolute;
  left: 50%;
  top: -70px;
  transform: translateX(-50%);
  z-index: 3;
}

.store-logo {
  width: 400px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.store-logo.is-pulsing {
  animation: store-logo-breathe 3.2s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes store-logo-breathe {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  }
  50% {
    transform: scale(1.04);
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.40));
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-logo.is-pulsing {
    animation: none;
  }
}

.header-right {
  display: flex;
  gap: 1rem;
  align-items: center;
  z-index: 2;
}

.primary-button,
.secondary-button {
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.primary-button {
  background: var(--primary-color);
}

.primary-button:hover {
  background: var(--primary-hover-color);
  transform: translateY(-1px);
}

.primary-button i {
  color: var(--icon-primary);
  font-size: 1.2rem;
}

.primary-button .button-text {
  color: var(--icon-primary);
  font-weight: 600;
}

.secondary-button {
  background: var(--secondary-color);
}

.secondary-button:hover {
  background: var(--secondary-hover-color);
  transform: translateY(-1px);
}

.secondary-button i {
  color: var(--icon-secondary);
  font-size: 1.2rem;
}

.secondary-button .button-text {
  color: var(--icon-secondary);
  font-weight: 600;
}

.positive-button,
.negative-button {
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.positive-button {
  background: var(--positive);
}

.positive-button:hover {
  background: var(--positive-hover-color);
  transform: translateY(-1px);
}

.positive-button i {
  color: var(--positive-text);
  font-size: 1.2rem;
}

.positive-button .button-text {
  color: var(--positive-text);
  font-weight: 600;
}

.negative-button {
  background: var(--negative);
}

.negative-button:hover {
  background: var(--negative-hover-color);
  transform: translateY(-1px);
}

.negative-button i {
  color: var(--negative-text);
  font-size: 1.2rem;
}

.negative-button .button-text {
  color: var(--negative-text);
  font-weight: 600;
}

.primary-button.disabled,
.secondary-button.disabled,
.positive-button.disabled,
.negative-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.cart-badge {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--negative);
  color: var(--negative-text);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.header-primary-button {
  background: var(--primary-color);
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.header-primary-button:hover {
  background: var(--primary-hover-color);
  transform: translateY(-1px);
}

.header-primary-button i {
  color: var(--icon-primary);
  font-size: 1.2rem;
}

.header-primary-button .button-text {
  color: var(--icon-primary);
  font-weight: 600;
}

.header-secondary-button {
  background: var(--secondary-color);
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.header-secondary-button:hover {
  background: var(--secondary-hover-color);
  transform: translateY(-1px);
}

.header-secondary-button i {
  color: var(--icon-secondary);
  font-size: 1.2rem;
}

.header-secondary-button .button-text {
  color: var(--icon-secondary);
  font-weight: 600;
}

@media (max-width: 768px) {

  .header-center {
    display: none;
  }

  .navigation-row {
    display: none;
  }

  .header-block {
    padding: 1rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
  }

  .header-left {
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
    text-align: left;
  }

  .btn-copy-ip {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .btn-copy-ip i {
    font-size: 1.1rem;
  }

  .store-info {
    gap: 0;
    text-align: left;
  }

  .store-title {
    font-size: 1.2rem;
  }

  .store-subtitle {
    display: none;
  }

  .header-right {
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .header-primary-button,
  .header-secondary-button {
    padding: 0.5rem;
    width: 38px;
    height: 38px;
    justify-content: center;
  }

  .header-primary-button i,
  .header-secondary-button i {
    font-size: 1rem;
  }

  .header-primary-button .button-text,
  .header-secondary-button .button-text {
    display: none;
  }

  .cart-count {
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
  }
}

.footer {
  width: 100%;
  margin-top: 10rem;
  font-family: 'Poppins';
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 clamp(15px, 4vw, 40px);
}

.footer-top {
  background: var(--footer-bg);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-title {
  color: var(--text-primary);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.footer-description {
  color: var(--footer-description);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
}

.footer-primary-button {
  background: var(--primary-color);
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 0.95rem;
  font-weight: 700;
  align-self: flex-start;
}

.footer-primary-button:hover {
  background: var(--primary-hover-color);
  transform: translateY(-1px);
}

.footer-primary-button i {
  color: var(--icon-primary);
  font-size: 1.1rem;
}

.footer-primary-button .button-text {
  color: var(--icon-primary);
}

.footer-secondary-button {
  background: var(--secondary-color);
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 0.95rem;
  font-weight: 700;
  align-self: flex-start;
}

.footer-secondary-button:hover {
  background: var(--secondary-hover-color);
  transform: translateY(-1px);
}

.footer-secondary-button i {
  color: var(--icon-secondary);
  font-size: 1.1rem;
}

.footer-secondary-button .button-text {
  color: var(--icon-secondary);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-social-button {
  background: var(--positive);
  border: none;
  border-radius: var(--border-radius);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.footer-social-button:hover {
  background: var(--positive-hover-color);
  transform: translateY(-1px);
}

.footer-social-button i {
  color: var(--positive-text);
  font-size: 1.5rem;
}

.footer-bottom {
  background: var(--footer-dark);
  border-top: 12px solid var(--footer-stroke);
  padding: 2rem 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-copyright,
.footer-credits {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-copyright p,
.footer-credits p {
  color: var(--footer-description);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.footer-disclaimer {
  opacity: 0.7;
  font-size: 0.85rem !important;
}

.footer-credits {
  text-align: right;
}

.footer-credits strong {
  color: var(--text-primary);
  font-weight: 600;
}

.footer-credit-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-credit-link:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer {
    margin-top: 2rem;
  }

  .footer-top {
    padding: 2.5rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-section {
    text-align: center;
    align-items: center;
  }

  .footer-title {
    font-size: 1.3rem;
  }

  .footer-description {
    font-size: 0.95rem;
  }

  .footer-primary-button,
  .footer-secondary-button {
    width: 100%;
    max-width: 300px;
    align-self: center;
    font-weight: 700;
  }

  .footer-primary-button .button-text,
  .footer-secondary-button .button-text {
    display: inline;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-bottom {
    padding: 1.5rem 0;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-credits {
    text-align: center;
  }

  .footer-copyright p,
  .footer-credits p {
    font-size: 0.85rem;
  }
}

.sale-banner {
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: visible;
}

.sale-tag {
  background: var(--sale-tag);
  border-radius: 4px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sale-tag span {
  color: var(--sale-tag-text);
  margin: 0;
  line-height: 1;
}

.sale-info {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.sale-name {
  color: var(--text-primary);
  margin: 0;
  text-align: center;
  line-height: 1.2;
}

.sale-accent-block {
  width: 80px;
  height: 10px;
  background: var(--sale-tag);
  border-radius: 6px 6px 0 0;
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.sale-countdown {
  background: var(--block-light);
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  flex-shrink: 0;
  min-width: 280px;
}

.countdown-grid {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 45px;
}

.countdown-unit strong {
  color: var(--text-primary);
  margin: 0;
  line-height: 1;
}

.countdown-unit small {
  color: var(--text-primary);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .sale-banner {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .sale-tag {
    display: none;
  }

  .sale-info {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    order: 2;
    gap: 0;
    pointer-events: auto;
  }

  .sale-name {
    font-size: 1.5rem;
    margin-top: 1rem;
  }

  .sale-accent-block {
    display: none;
  }

  .sale-countdown {
    width: 100%;
    padding: 1rem;
    order: 3;
    min-width: auto;
  }

  .countdown-grid {
    justify-content: space-around;
    gap: 0.75rem;
  }

  .countdown-unit {
    min-width: 40px;
  }

  .countdown-unit strong {
    font-size: 1.5rem;
  }

  .countdown-unit small {
    font-size: 0.65rem;
  }
}

.category-grid {
  margin-top: 2rem;
}

.category-button {
  background: var(--category-block);
  border: var(--block-border-width) solid var(--category-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  min-height: 200px;
  overflow: hidden;
  padding: 2rem;
  position: relative;
}

.category-button:hover {
  transform: translateY(-3px);
  box-shadow: 0px 8px 30px 0px rgba(0, 0, 0, 0.4);
}

.category-eclipse {
  position: absolute;
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 350px;
  height: 350px;
  background: var(--category-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.category-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  z-index: 2;
  position: relative;
}

.category-content h2 {
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.category-content p {
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
  opacity: 0.9;
}

.category-image-container {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
}

.category-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.category-button:hover .category-image-container img {
  transform: scale(1.1) rotate(1.1deg);
}

@media (max-width: 768px) {
  .category-button {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    min-height: 250px;
    gap: 1rem;
  }

  .category-eclipse {
    width: 200px;
    height: 200px;
    left: 50%;
    top: -50px;
    transform: translateX(-50%);
  }

  .category-content {
    align-items: center;
    order: 2;
  }

  .category-content p {
    font-size: 1.2rem;
  }

  .category-image-container {
    width: 140px;
    height: 140px;
    order: 1;
  }

  .col-6 {
    grid-column: span 12;
  }
}

.module-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}

.payment-goal-block {
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: visible;
}

.community-goal-accent-block {
  width: 80px;
  height: 10px;
  background: var(--secondary-color);
  border-radius: 0px 0px 6px 6px;
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.payment-goal-content {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  padding: 3rem 2rem 2rem 2rem;
}

.payment-goal-icon-bg {
  position: absolute;
  left: 33%;
  top: 50%;
  transform: translateY(-50%) translateX(-50%) rotate(-15deg);
  font-size: 35rem;
  font-weight: 700;
  color: var(--block-dark);
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
  -webkit-text-stroke: 2px var(--block-dark);
}

.payment-goal-header {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.payment-goal-title {
  color: var(--text-primary);
  margin: 0;
}

.payment-goal-amount {
  text-align: right;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.payment-goal-amount span {
  color: var(--text-primary);
  opacity: 0.8;
}

.payment-goal-progress-container {
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
}

.payment-goal-progress-bar {
  width: 100%;
  height: 50px;
  background: var(--block-dark);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
}

.payment-goal-progress-fill {
  height: 100%;
  background: var(--secondary-color);
  transition: width 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1rem;
  position: relative;
}

.payment-goal-percentage {
  color: var(--icon-secondary);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}

.payment-goal-repeatable {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}

.payment-goal-repeatable i {
  color: var(--secondary-color);
  font-size: 1rem;
}

@media (max-width: 768px) {
  .payment-goal-content {
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  }

  .payment-goal-icon-bg {
    font-size: 15rem;
    left: 33%;
    transform: translateY(-50%) translateX(-50%) rotate(-15deg);
    opacity: 0.4;
  }

  .payment-goal-header {
    margin-bottom: 1rem;
  }

  .payment-goal-title {
    font-size: 1.3rem;
  }

  .payment-goal-amount span {
    font-size: 1rem;
  }

  .payment-goal-progress-bar {
    height: 40px;
  }

  .payment-goal-percentage {
    font-size: 0.95rem;
    padding-right: 0.5rem;
  }

  .payment-goal-repeatable {
    font-size: 0.85rem;
  }
}

.giftcard-block {
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  margin-bottom: 2rem;
  overflow: visible;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.giftcard-accent-block {
  width: 80px;
  height: 10px;
  background: var(--giftcard-primary);
  border-radius: 0px 0px 6px 6px;
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.giftcard-content {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  padding: 3rem 2rem 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.giftcard-icon-bg {
  position: absolute;
  left: -120px;
  top: -350px;
  transform: rotate(-15deg);
  font-size: 45rem;
  font-weight: 700;
  color: var(--block-dark);
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
  -webkit-text-stroke: 2px var(--block-dark);
}

.giftcard-header {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.giftcard-title {
  color: var(--text-primary);
  margin: 0;
}

.giftcard-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.giftcard-input {
  flex: 1;
  background: var(--block-dark);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  padding: 0.875rem 1.25rem;
  color: var(--text-primary);
  font-family: 'Poppins';
  font-size: 1rem;
  font-weight: 500;
  transition: border-color 0.3s ease;
}

.giftcard-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.giftcard-input:focus {
  outline: none;
}

.giftcard-btn {
  background: var(--giftcard-primary);
  border: none;
  border-radius: var(--border-radius);
  padding: 0.875rem 1.5rem;
  color: var(--giftcard-text);
  font-family: 'Poppins';
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.giftcard-btn:hover {
  background: var(--giftcard-primary-hover);
  transform: translateY(-1px);
}

/* Options Form Styles */
.options-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.options-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.options-label {
  color: var(--text-primary);
  font-family: 'Poppins';
  font-size: 0.95rem;
  font-weight: 500;
}

.options-input {
  background: var(--block-dark);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  padding: 0.875rem 1.25rem;
  color: var(--text-primary);
  font-family: 'Poppins';
  font-size: 1rem;
  font-weight: 500;
  transition: border-color 0.3s ease;
  width: 100%;
}

.options-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.options-input:focus {
  outline: none;
}

.options-input-group {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.options-input-group .options-input {
  flex: 1;
}

.options-input-append {
  background: var(--block-dark);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  padding: 0.875rem 1.25rem;
  color: var(--text-secondary);
  font-family: 'Poppins';
  font-size: 1rem;
  font-weight: 500;
}

.options-discord-btn {
  background: #5865F2;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.875rem 1.5rem;
  color: #fff;
  font-family: 'Poppins';
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.options-discord-btn:hover {
  background: #4752C4;
  transform: translateY(-1px);
}

.options-form-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.options-back-btn {
  background: var(--block-dark);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  padding: 0.875rem 1.5rem;
  color: var(--text-primary);
  font-family: 'Poppins';
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* "Doorgaan": the store's yellow button, as tall as "Terug" */
.options-continue-btn {
  align-self: stretch;
  gap: 0.6rem;
  padding: 0 1.5rem;
  font-size: 1rem;
}

.options-continue-btn .button-text {
  font-weight: 700;
}

.options-back-btn:hover {
  border-color: var(--text-secondary);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .giftcard-content {
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  }

  .giftcard-icon-bg {
    font-size: 40rem;
    left: -90px;
    top: -300px;
    transform: rotate(-15deg);
    opacity: 0.4;
  }

  .giftcard-header {
    margin-bottom: 1rem;
  }

  .giftcard-title {
    font-size: 1.3rem;
  }

  .giftcard-form {
    flex-direction: column;
    gap: 0.75rem;
  }

  .giftcard-input,
  .giftcard-btn {
    width: 100%;
  }

  .options-input-group {
    flex-direction: column;
  }

  .options-input-group .options-input {
    width: 100%;
  }

  .options-discord-btn {
    width: 100%;
    text-align: center;
  }

  .options-form-actions {
    flex-direction: column;
  }

  .options-back-btn,
  .options-form-actions .options-continue-btn {
    width: 100%;
    justify-content: center;
  }

  .col-6,
  .col-4 {
    grid-column: span 12;
  }
}

.textbox-block {
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  margin-bottom: 2rem;
  overflow: visible;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.textbox-accent-block {
  width: 80px;
  height: 10px;
  background: var(--secondary-color);
  border-radius: 0px 0px 6px 6px;
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.textbox-content {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  padding: 3rem 2rem 2rem 2rem;
}

.textbox-icon-bg {
  position: absolute;
  left: -120px;
  top: -250px;
  transform: rotate(-15deg);
  font-size: 25rem;
  font-weight: 700;
  color: var(--block-dark);
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
  -webkit-text-stroke: 2px var(--block-dark);
}

.textbox-header {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.textbox-title {
  color: var(--text-primary);
  margin: 0;
}

.textbox-description {
  color: var(--text-secondary);
  text-align: center;
  position: relative;
  font-weight: 500;
  z-index: 2;
  margin: 0;
}

@media (max-width: 768px) {
  .textbox-content {
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  }

  .textbox-header {
    margin-bottom: 1rem;
  }

  .textbox-title {
    font-size: 1.3rem;
  }

  .textbox-description {
    font-size: 0.9rem;
  }

  .textbox-icon-bg {
    font-size: 40rem;
    left: -90px;
    top: -300px;
    transform: rotate(-15deg);
    opacity: 0.4;
  }
}

.serverstatus-block {
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  margin-bottom: 2rem;
  overflow: visible;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.serverstatus-accent-block {
  width: 80px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 0px 0px 6px 6px;
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.serverstatus-content {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  padding: 3rem 2rem 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.serverstatus-icon-bg {
  position: absolute;
  left: -120px;
  top: -350px;
  transform: rotate(-15deg);
  font-size: 45rem;
  font-weight: 700;
  color: var(--block-dark);
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
  -webkit-text-stroke: 2px var(--block-dark);
}

.serverstatus-header {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.serverstatus-title {
  color: var(--text-primary);
  margin: 0;
}

.serverstatus-description {
  color: var(--text-secondary);
  text-align: center;
  position: relative;
  font-weight: 500;
  z-index: 2;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.serverstatus-description i {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .serverstatus-accent-block {
    display: none;
  }

  .serverstatus-content {
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  }

  .serverstatus-icon-bg {
    font-size: 40rem;
    left: -90px;
    top: -300px;
    transform: rotate(-15deg);
    opacity: 0.4;
  }

  .serverstatus-header {
    margin-bottom: 1rem;
  }

  .serverstatus-title {
    font-size: 1.3rem;
  }

  .serverstatus-description {
    font-size: 0.9rem;
  }
}

.topdonator-block {
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  margin-bottom: 2rem;
  overflow: visible;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.topdonator-accent-block {
  width: 80px;
  height: 10px;
  background: var(--positive);
  border-radius: 0px 0px 6px 6px;
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.topdonator-content {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  padding: 3rem 2rem 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 250px;
}

.topdonator-icon-bg {
  position: absolute;
  left: -70px;
  top: -210px;
  transform: rotate(-15deg);
  font-size: 25rem;
  font-weight: 700;
  color: var(--block-dark);
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
  -webkit-text-stroke: 2px var(--block-dark);
}

.topdonator-header {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.topdonator-title {
  color: var(--text-primary);
  margin: 0;
}

.topdonator-description {
  color: var(--text-secondary);
  text-align: center;
  position: relative;
  font-weight: 500;
  z-index: 2;
  margin: 0;
}

.topdonator-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.topdonator-username {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
}

.topdonator-amount {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
}

.topdonator-amount strong {
  color: var(--positive);
  font-weight: 700;
}

.topdonator-skin-container {
  position: absolute;
  bottom: -60px;
  right: 20px;
  width: 120px;
  height: 230px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.topdonator-skin {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.topdonator-skin-placeholder {
  width: 80px;
  height: 80px;
  background: var(--block-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.topdonator-skin-placeholder i {
  font-size: 2.5rem;
  color: var(--text-secondary);
  opacity: 0.5;
}

.topdonator-empty {
  text-align: center;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 2rem 0;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {

  .topdonator-content {
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    min-height: 220px;
  }

  .topdonator-icon-bg {
    font-size: 20rem;
    left: -40px;
    top: -80px;
    transform: rotate(-15deg);
    opacity: 0.4;
  }

  .topdonator-header {
    margin-bottom: 1rem;
  }

  .topdonator-title {
    font-size: 1.3rem;
  }

  .topdonator-username {
    font-size: 1.1rem;
  }

  .topdonator-amount {
    font-size: 0.9rem;
  }

  .topdonator-skin-container {
    width: 100px;
    height: 160px;
    right: 10px;
  }

  .topdonator-empty {
    font-size: 0.9rem;
  }
}

.featured-package-block {
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  margin-bottom: 2rem;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  min-height: 250px;
}

.featured-eclipse {
  position: absolute;
  left: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 450px;
  height: 450px;
  background: var(--block-dark);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.featured-image-container {
  background: var(--block-light);
  border-radius: var(--border-radius);
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  z-index: 2;
}

.featured-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.featured-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.featured-header {
  margin: 0;
}

.featured-title {
  color: var(--text-primary);
  margin: 0;
}

.featured-price-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.featured-price {
  color: var(--primary-color);
  font-weight: 700;
  margin: 0;
}

.featured-price-old {
  color: var(--negative);
  text-decoration: line-through;
  margin: 0;
}

.featured-price-sale {
  color: var(--sale-tag);
  font-weight: 700;
  margin: 0;
}

.featured-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.payments-block {
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: visible;
}

.payments-content {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  padding: 3rem 2rem 2rem 2rem;
}

.payments-accent-block {
  width: 80px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 0px 0px 6px 6px;
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.payments-icon-bg {
  position: absolute;
  right: 33%;
  top: 50%;
  transform: translateY(-50%) translateX(50%) rotate(-15deg);
  font-size: 35rem;
  font-weight: 700;
  color: var(--block-dark);
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
  -webkit-text-stroke: 2px var(--block-dark);
}

.payments-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.payments-title {
  color: var(--text-primary);
  margin: 0;
}

.payment-avatars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.payment-avatar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

.payment-avatar-container {
  background: var(--block-light);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  padding: 1rem;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.payment-avatar-img {
  width: 120%;
  height: auto;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  image-rendering: pixelated;
}

.payment-avatar-placeholder {
  font-size: 3rem;
  color: var(--text-secondary);
  opacity: 0.5;
}

.payment-name {
  color: var(--text-secondary);
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.payments-empty {
  text-align: center;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 2rem 0;
}

@media (max-width: 768px) {
  .payments-content {
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  }

  .payments-header {
    margin-bottom: 1.5rem;
  }

  .payments-icon-bg {
    font-size: 15rem;
    right: 33%;
    transform: translateY(-50%) translateX(50%) rotate(-15deg);
    opacity: 0.4;
  }

  .payments-title {
    font-size: 1.3rem;
  }

  .payment-avatars-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
  }

  .payment-avatar-container {
    width: 60px;
    height: 60px;
    padding: 0.5rem;
  }

  .payment-avatar-img {
    width: 110%;
    bottom: -8px;
  }

  .payment-name {
    font-size: 0.85rem;
  }
}

.cms-page-block {
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: visible;
  padding: 3rem 2rem 2rem 2rem;
}

.cms-page-accent-block {
  width: 80px;
  height: 10px;
  background: var(--secondary-color);
  border-radius: 0px 0px 6px 6px;
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.cms-page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.cms-page-title {
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}

.cms-page-description {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .cms-page-block {
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  }

  .cms-page-accent-block {
    display: none;
  }

  .cms-page-header {
    margin-bottom: 1.5rem;
  }

  .cms-page-title {
    font-size: 1.8rem;
  }

  .cms-page-description {
    font-size: 0.95rem;
  }
}

/* Login: full width like the rest of the store. Left the action (version switch, name + button),
   right a calm explanation of Java vs Bedrock. */
.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.login-layout.is-single {
  grid-template-columns: 1fr;
}

.login-card,
.login-help {
  padding: 2rem;
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
}

.login-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 800;
}

/* Java / Bedrock: a small segmented switch; the chosen one is yellow */
.login-platforms {
  display: inline-flex;
  align-self: flex-start;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--block-dark);
  border-radius: 999px;
}

.login-platform {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: var(--text-secondary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.login-platform:hover {
  color: var(--text-primary);
}

.login-platform.is-active {
  background: var(--primary-color);
  color: var(--icon-primary);
}

.login-platform:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Name field and button on one row, same height */
.login-name-row {
  display: flex;
  gap: 0.75rem;
}

.login-name-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.5rem;
  height: 3.5rem;
  background: var(--block-dark);
  border: 2px solid transparent;
  border-radius: var(--border-radius);
}

.login-name-field:focus-within {
  border-color: var(--primary-color);
}

.login-name-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--block-color);
  border-radius: calc(var(--border-radius) - 2px);
  color: var(--secondary-color);
  font-size: 1.05rem;
}

.login-name-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  image-rendering: pixelated;
}

.login-name-avatar i,
.login-name-avatar.is-bedrock img {
  display: none;
}

.login-name-avatar.is-bedrock i {
  display: block;
}

.login-name-prefix {
  padding: 0.2rem 0.6rem;
  background: var(--block-color);
  border-radius: 999px;
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 800;
}

.login-name-prefix[hidden] {
  display: none;
}

.login-name-input {
  flex: 1;
  min-width: 0;
  padding: 0 0.4rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.login-name-input::placeholder {
  color: var(--text-secondary);
  font-weight: 500;
  opacity: 0.6;
}

.login-submit {
  flex-shrink: 0;
  justify-content: center;
  gap: 0.6rem;
  height: 3.5rem;
  padding: 0 1.75rem;
  font-size: 1.05rem;
}

.login-submit .button-text {
  font-weight: 700;
}

.login-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.login-note i {
  color: var(--positive);
}

/* Help: two short rows, no buttons */
.login-help {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.login-help-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 700;
}

.login-help-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.login-help-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--block-dark);
  border-radius: calc(var(--border-radius) - 2px);
  color: var(--secondary-color);
}

.login-help-item strong {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.login-help-item p {
  margin: 0.15rem 0 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.55;
}

@media (max-width: 991px) {
  .login-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .login-card,
  .login-help {
    padding: 1.25rem;
  }

  .login-title {
    font-size: 1.25rem;
  }

  .login-platforms {
    align-self: stretch;
  }

  .login-platform {
    flex: 1;
    justify-content: center;
  }

  .login-name-row {
    flex-direction: column;
  }
}

/* Package Page Styles */

.package-page-block {
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  margin-bottom: 2rem;
  overflow: visible;
}

.package-page-accent-block {
  width: 80px;
  height: 10px;
  background: var(--secondary-color);
  border-radius: 0px 0px 6px 6px;
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.package-page-content {
  padding: 3rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.package-page-header {
  text-align: left;
}

.package-page-title {
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}

.package-page-description {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.8;
}

.package-page-divider {
  border: none;
  border-top: var(--block-border-width) solid var(--block-border);
  margin: 0;
  width: 100%;
}

.package-page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.package-page-pricing {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.package-price {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
}

.package-original-price {
  color: var(--negative);
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: line-through;
}

.package-page-actions {
  display: flex;
  gap: 1rem;
  flex-direction: row;
}

.package-action-btn {
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .package-page-content {
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    gap: 1.5rem;
  }

  .package-page-accent-block {
    display: none;
  }

  .package-page-title {
    font-size: 1.8rem;
  }

  .package-page-description {
    font-size: 0.95rem;
  }

  .package-page-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .package-page-actions {
    width: 100%;
    flex-direction: row;
  }

  .package-action-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .package-price,
  .package-sale-price {
    font-size: 1.5rem;
  }

  .package-original-price {
    font-size: 1rem;
  }
}

/* Package Image Block */

.package-page-image-block {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 2rem;
}

.package-page-image {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

@media (max-width: 768px) {
  .package-page-image-block {
    min-height: 300px;
    padding: 1.5rem;
  }
}

/* Gift Input Styles */

.gift-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1rem;
  color: var(--text-primary);
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  width: 100%;
}

.gift-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.gift-submit-btn {
  margin-top: 1rem;
  width: 100%;
}


/* Gift Modal Styles */

.legend-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.legend-modal.show {
  opacity: 1;
  visibility: visible;
  display: flex !important;
}

.legend-modal-content {
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  max-width: 500px;
  width: 100%;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
}

.legend-modal.show .legend-modal-content {
  transform: scale(1);
}

.legend-modal-accent-block {
  width: 80px;
  height: 10px;
  background: var(--secondary-color);
  border-radius: 0px 0px 6px 6px;
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.legend-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.legend-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.legend-modal-body {
  padding: 0 2rem 2rem 2rem;
}

.gift-input-group {
  display: flex;
  background-color: var(--block-dark);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 1rem;
  width: 100%;
}

.gift-input-group form {
  width: 100%;
  display: flex;
  margin: 0;
}

.gift-input-icon {
  padding: 1rem 1.25rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.legend-modal-actions {
  display: flex;
  gap: 1rem;
}

.legend-modal-actions .gift-submit-btn,
.legend-modal-actions .gift-modal-close {
  flex: 1;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: auto;
}

.legend-modal-actions .gift-submit-btn i {
  color: var(--icon-primary);
}

.legend-modal-actions .gift-submit-btn .button-text {
  color: var(--icon-primary);
  font-weight: 700;
}

.legend-modal-actions .gift-modal-close i {
  color: var(--negative-text);
  font-weight: 700;
}

.legend-modal-actions .gift-modal-close .button-text {
  color: var(--negative-text);
  font-weight: 700;
}

@media (max-width: 768px) {
  .legend-modal {
    padding: 15px;
  }

  .legend-modal-content {
    max-width: none;
  }

  .legend-modal-accent-block {
    display: none;
  }

  .legend-modal-header {
    padding: 1.5rem;
  }

  .legend-modal-title {
    font-size: 1.3rem;
  }

  .legend-modal-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }

  .gift-input-group {
    flex-direction: column;
  }

  .legend-modal-actions {
    flex-direction: column;
  }

  .gift-submit-btn {
    width: 100%;
  }
}

/* Cart (Checkout.html): item cards on the left, overview with agreements and the checkout button on the right */

/* "Ingelogd als [head] name · Uitloggen" under the section heading */
.cart-user {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.cart-user img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  image-rendering: pixelated;
}

.cart-user strong {
  color: var(--text-primary);
}

.cart-user-logout {
  margin-left: 0.25rem;
  color: var(--secondary-color);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.cart-user-logout:hover {
  text-decoration: underline;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Reward bar: "Nog X EUR en je krijgt ..." with a green progress bar (green = you get extra) */
.cart-reward {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem 1rem 1rem;
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.cart-reward-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--block-dark);
  border-radius: calc(var(--border-radius) - 2px);
  color: var(--positive);
  font-size: 1.1rem;
}

.cart-reward.is-reached .cart-reward-icon {
  background: var(--positive);
  color: var(--block-dark);
}

.cart-reward-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* Reward on the left (green GRATIS tag + white name), the amount still needed on the right */
.cart-reward-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.45;
}

.cart-reward-headline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.cart-reward-tag {
  padding: 0.2rem 0.55rem;
  background: var(--positive);
  border-radius: 999px;
  color: var(--block-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.cart-reward-text .cart-reward-name {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 800;
}

.cart-reward-remaining strong {
  color: var(--text-primary);
}

.cart-reward.is-reached .cart-reward-remaining {
  color: var(--positive);
  font-weight: 700;
}

.cart-reward-track {
  height: 10px;
  overflow: hidden;
  background: var(--block-dark);
  border-radius: 999px;
}

.cart-reward-fill {
  height: 100%;
  background: var(--positive);
  border-radius: 999px;
}

/* Short grey note below the progress bar, e.g. "Geldt bovenop alle acties en kortingen." */
.cart-reward-note {
  margin: -0.1rem 0 0;
  color: var(--text-secondary);
  font-size: 0.78rem;
  opacity: 0.8;
}

.cart-reward-progress {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cart-reward-progress .cart-reward-track {
  flex: 1;
  min-width: 0;
}

.cart-reward-goal {
  flex-shrink: 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
}

/* "Handig erbij": small extras in one row over the full width below the basket (no images: name, short text,
   yellow price, blue add button). Four cards on desktop; smaller screens show part of the next card. */
.cart-extras {
  margin-bottom: 2rem;
}

.cart-extras .package-section-header {
  margin-top: 0.5rem;
}

/* "Alleen te koop samen met een ander pakket": small grey line with a blue info icon below the subtitle */
.cart-extras-note {
  margin: 0.15rem 0 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
  opacity: 0.85;
}

/* The icon stays inline, so on two lines it sits in front of the centred text instead of hanging on the left */
.cart-extras-note i {
  margin-right: 0.4rem;
  color: var(--secondary-color);
}

.cart-extras-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 1rem) / 4);
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.cart-extras-track::-webkit-scrollbar {
  display: none;
}

.cart-extra {
  scroll-snap-align: start;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.1rem 1rem;
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
}

.cart-extra-name {
  margin: 0;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Always two lines of room, so every card in the row is the same height */
.cart-extra-desc {
  display: -webkit-box;
  min-height: calc(2 * 1.45em);
  margin: 0;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Info chips (e.g. "Breekt na 2.000 ores"): the same chips as on the rank cards */
.cart-extra-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.cart-extra-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.6rem;
}

.cart-extra-price {
  color: var(--primary-color);
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}

/* Price still loading: a calm placeholder of the same size instead of an empty gap */
.cart-extra-price:empty::before {
  content: "";
  display: block;
  width: 4.5rem;
  height: 1rem;
  background: var(--block-dark);
  border-radius: 4px;
}

.cart-extra-price[hidden] {
  display: none;
}

.cart-extra-button {
  flex-shrink: 0;
  gap: 0.5rem;
  height: 2.5rem;
  padding: 0 1rem;
}

.cart-extra-button .button-text {
  font-weight: 700;
}

span.cart-extra-button.is-in-basket {
  cursor: default;
}

/* Scroll control below the row: one calm pill with round arrows and a rounded progress bar between them
   (the bar is clickable too); hidden when all cards fit */
.cart-extras-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  margin: 1.25rem auto 0;
  padding: 0.3rem;
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: 999px;
}

.cart-extras-nav[hidden] {
  display: none;
}

.cart-extras-arrow {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--block-dark);
  border: none;
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cart-extras-arrow:hover:not(:disabled) {
  background: var(--secondary-color);
  color: var(--block-dark);
}

.cart-extras-arrow:disabled {
  background: transparent;
  color: var(--text-secondary);
  opacity: 0.4;
  cursor: default;
}

/* Taller invisible hit area around the 6px bar, so it is easy to click */
.cart-extras-progress {
  position: relative;
  width: 200px;
  height: 1.5rem;
  cursor: pointer;
}

.cart-extras-progress::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  transform: translateY(-50%);
  background: var(--block-dark);
  border-radius: 999px;
}

.cart-extras-progress-fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 6px;
  transform: translateY(-50%);
  background: var(--secondary-color);
  border-radius: 999px;
  /* follows the scrolling directly (a global "transition: all" made it lag behind) */
  transition: none;
}

@media (max-width: 560px) {
  .cart-extras-progress {
    width: 140px;
  }
}

@media (max-width: 1199px) {
  .cart-extras-track {
    grid-auto-columns: calc((100% - 2 * 1rem) / 3);
  }
}

@media (max-width: 991px) {
  .cart-extras-track {
    grid-auto-columns: calc((100% - 1rem) / 2.25);
  }
}

@media (max-width: 560px) {
  .cart-extras-track {
    grid-auto-columns: 82%;
    gap: 0.75rem;
  }

  .cart-extra {
    padding: 1rem;
  }
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem 0.85rem 0.85rem;
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.cart-item-image {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--block-dark);
  border-radius: calc(var(--border-radius) - 2px);
  color: var(--secondary-color);
  font-size: 1.5rem;
}

.cart-item-image img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* No image (small extras): no image block; the text keeps the height of the image so all rows are equally high */
.cart-item.no-image {
  padding-left: 1.25rem;
}

.cart-item.no-image .cart-item-info {
  min-height: 72px;
  justify-content: center;
}

.cart-item-name {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.cart-item-name:hover {
  color: var(--primary-color);
}

.cart-item-price {
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 700;
}

/* Quantity: - [n] + on a dark pill */
.quantity-field {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.25rem;
  background: var(--block-dark);
  border-radius: 999px;
}

.quantity-field .quantity {
  width: 2.5rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.quantity-field .quantity::-webkit-outer-spin-button,
.quantity-field .quantity::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-field .btn-tertiary {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--block-color);
  border: none;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
}

.quantity-field .btn-tertiary:hover:not(:disabled) {
  color: var(--primary-color);
}

.quantity-field .btn-tertiary:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Info: the same square yellow i-button as on the package cards, opens the info window */
.cart-item-info-btn {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  justify-content: center;
  padding: 0;
}

.cart-item-info-btn i {
  font-size: 1rem;
}

.cart-info-loading {
  color: var(--text-secondary);
}

/* Remove: a calm square that turns red on hover */
.cart-item-remove {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--block-dark);
  border-radius: calc(var(--border-radius) - 2px);
  color: var(--text-secondary);
  text-decoration: none;
}

.cart-item-remove:hover {
  background: var(--negative);
  color: var(--negative-text);
}

/* "Verder winkelen": a real button (a small text link was easy to miss) */
.cart-continue {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
  padding: 0.8rem 1.4rem;
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cart-continue i {
  color: var(--secondary-color);
}

.cart-continue:hover {
  background: var(--block-light);
}

/* Overview */
.cart-summary {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Total first and large: the focus of the overview together with the checkout button */
.cart-summary-total {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.cart-summary-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.cart-summary-label small {
  font-size: 0.8rem;
  font-weight: 500;
}

.cart-summary-price {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
}

.cart-checkout-button {
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  height: 3.25rem;
  font-size: 1.05rem;
}

.cart-checkout-button .button-text {
  font-weight: 700;
}

.cart-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: -0.25rem 0 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.cart-secure i {
  color: var(--positive);
}

/* Agreements: custom checkboxes with a yellow check, separated from the total by a thin line */
.checkout-agreements {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 2px solid var(--block-border);
}

.checkout-agreement-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  user-select: none;
}

.checkout-agreement-item .checkout-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkout-checkmark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--block-border);
  border-radius: 5px;
  background: transparent;
}

.checkout-checkmark::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 11px;
  color: var(--icon-primary);
  opacity: 0;
}

.checkout-agreement-item .checkout-checkbox:checked ~ .checkout-checkmark {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.checkout-agreement-item .checkout-checkbox:checked ~ .checkout-checkmark::after {
  opacity: 1;
}

.checkout-agreement-item:hover .checkout-checkmark,
.checkout-agreement-item .checkout-checkbox:focus-visible ~ .checkout-checkmark {
  border-color: var(--primary-color);
}

.checkout-agreement-text {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}

.checkout-agreement-text strong {
  color: var(--text-primary);
}

.checkout-agreement-link {
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
}

.checkout-agreement-link:hover {
  text-decoration: underline;
}

.checkout-agreement-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: color-mix(in srgb, var(--negative) 15%, transparent);
  border-radius: calc(var(--border-radius) - 2px);
  color: var(--negative);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Empty cart */
.cart-empty {
  margin: 0 0 2rem;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.cart-empty-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--block-dark);
  border-radius: 50%;
  color: var(--secondary-color);
  font-size: 1.5rem;
}

.cart-empty-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 800;
}

.cart-empty-text {
  margin: 0 0 0.6rem;
  color: var(--text-secondary);
}

.cart-empty-button {
  gap: 0.6rem;
  height: 3.25rem;
  padding: 0 1.5rem;
}

.cart-empty-button .button-text {
  font-weight: 700;
}

/* Global title sizes on smaller screens (kept from the original checkout styles) */
@media (max-width: 991px) {
  .text-title {
    font-size: 1.5rem;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 767px) {
  .text-title {
    font-size: 1.3rem;
  }
}

/* Phones: image, name and price on top; quantity and remove on a second line */
@media (max-width: 560px) {
  .cart-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .cart-item-image {
    width: 60px;
    height: 60px;
    grid-row: span 2;
  }

  .cart-item-image img {
    width: 48px;
    height: 48px;
  }

  .cart-item-info {
    grid-column: 2 / -1;
  }

  .cart-item.no-image {
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding-left: 1rem;
  }

  .cart-item.no-image .cart-item-info {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .cart-item-name {
    font-size: 1rem;
  }

  .cart-item-quantity {
    justify-self: start;
  }

  .cart-summary {
    padding: 1.25rem;
  }

  .cart-user {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.category-page-block {
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 3rem 2rem 2rem 2rem;
  position: relative;
}

.category-page-accent-block {
  width: 80px;
  height: 10px;
  background: var(--secondary-color);
  border-radius: 0px 0px 6px 6px;
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.category-page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.category-page-header h1 {
  margin: 0 0 1rem 0;
}

.category-page-header p {
  margin: 0;
}

.category-page-header h1 {
  color: var(--text-primary);
}

.category-page-description p {
  color: var(--text-secondary);
}

.category-page-content {
  color: var(--text-primary);
  line-height: 1.8;
}

.category-page-content h1,
.category-page-content h2,
.category-page-content h3,
.category-page-content h4,
.category-page-content h5,
.category-page-content h6 {
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.category-page-content p {
  margin-bottom: 1rem;
}

.category-page-content a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.category-page-content a:hover {
  opacity: 0.8;
}

.category-page-content ul,
.category-page-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.category-page-content li {
  margin-bottom: 0.5rem;
}

.category-page-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: 1rem 0;
}

.category-page-content code {
  background: var(--block-light);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

.category-page-content pre {
  background: var(--block-light);
  padding: 1rem;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin-bottom: 1rem;
}

.category-page-content pre code {
  background: none;
  padding: 0;
}

@media (max-width: 768px) {
  .category-page-block {
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  }

  .category-page-accent-block {
    display: none;
  }

  .category-page-header h1 {
    font-size: 1.3rem;
  }

  .category-page-header p {
    font-size: 0.9rem;
  }

  .category-page-content {
    font-size: 0.95rem;
  }
}

.packages-list-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.package-list-item {
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-list-info {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

.package-list-info .text-title {
  min-width: 200px;
}

.package-list-price {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  text-align: right;
  order: 5;
}

.package-list-price .package-price-row {
  margin-bottom: 0;
  justify-content: flex-end;
}

.package-price-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.upsell-package-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.upsell-package-price {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.2rem;
}

.package-price-old {
  color: var(--negative);
  text-decoration: line-through;
  font-weight: 600;
}

.package-price {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.2rem;
}

.package-countdown {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--negative);
  font-weight: 600;
  font-size: 0.9rem;
}

.package-list-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.package-list-actions .primary-button,
.package-list-actions .secondary-button,
.package-list-actions .negative-button {
  padding: 0.75rem;
  min-width: 45px;
  justify-content: center;
}

/* Featured Package Block Styles - Grid View */

.packages-grid-container {
  width: 100%;
}

.featured-package-block {
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  height: 100%;
}

.featured-eclipse {
  position: absolute;
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  background: var(--block-dark);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.featured-image-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  flex-shrink: 0;
}

.featured-image {
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.featured-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.featured-header {
  text-align: left;
}

.featured-title {
  color: var(--text-primary);
  margin: 0;
}

.featured-price-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.featured-price {
  color: var(--primary-color);
  font-weight: 700;
}

.featured-price-old {
  color: var(--negative);
  font-weight: 600;
  text-decoration: line-through;
}

.featured-price-sale {
  color: var(--primary-color);
  font-weight: 700;
}

.featured-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.featured-buttons .primary-button,
.featured-buttons .secondary-button,
.featured-buttons .negative-button {
  flex: 1;
  min-width: 45px;
  justify-content: center;
}

/* Responsive Styles */

@media (max-width: 991px) {
  .package-list-item {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .package-list-info {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .package-list-info .text-title {
    min-width: auto;
    text-align: left;
  }

  .package-list-price {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .package-list-item {
    padding: 1.5rem;
  }

  .package-price-row {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
  }

  .package-list-actions {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
  }

  .package-list-actions .primary-button,
  .package-list-actions .secondary-button,
  .package-list-actions .negative-button {
    flex: 1;
    justify-content: center;
  }

  /* Featured Package Block - Mobile */
  .featured-package-block {
    padding: 1.5rem;
    text-align: center;
    flex-direction: column;
  }

  .featured-eclipse {
    display: none;
  }

  .featured-image-container {
    order: 1;
    min-width: auto;
  }

  .featured-image {
    max-width: 200px;
    max-height: 200px;
  }

  .featured-content {
    order: 2;
    align-items: center;
  }

  .featured-header {
    text-align: center;
  }

  .featured-price-container {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .featured-buttons {
    width: 100%;
    flex-direction: row;
  }

  .featured-buttons .primary-button,
  .featured-buttons .secondary-button,
  .featured-buttons .negative-button {
    flex: 1;
  }
}

.grid-package-block {
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  height: 100%;
  margin-bottom: 2rem;
  min-height: 250px;
}

.grid-eclipse {
  position: absolute;
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  background: var(--block-dark);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.grid-image-container {
  background: var(--block-light);
  border-radius: var(--border-radius);
  width: 180px;
  height: 180px;
  padding: 1rem;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  flex-shrink: 0;
}

.grid-image {
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.grid-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.grid-header {
  text-align: left;
  margin: 0;
}

.grid-title {
  color: var(--text-primary);
  margin: 0;
}

.grid-price-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.grid-price {
  color: var(--primary-color);
  font-weight: 700;
  margin: 0;
}

.grid-price-old {
  color: var(--negative);
  font-weight: 600;
  text-decoration: line-through;
  margin: 0;
}

.grid-price-sale {
  color: var(--primary-color);
  font-weight: 700;
  margin: 0;
}

.grid-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.grid-buttons .primary-button,
.grid-buttons .secondary-button,
.grid-buttons .negative-button {
  flex: 1;
  min-width: 45px;
  justify-content: center;
}

@media (max-width: 991px) {
  .grid-image-container {
    background: transparent;
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
  }
}

@media (max-width: 768px) {
  .grid-package-block {
    padding: 1.5rem;
    text-align: center;
    flex-direction: column;
  }

  .grid-eclipse {
    display: none;
  }

  .grid-image-container {
    order: 1;
    min-width: auto;
  }

  .grid-image {
    max-width: 200px;
    max-height: 200px;
  }

  .grid-content {
    order: 2;
    align-items: center;
  }

  .grid-header {
    text-align: center;
  }

  .grid-price-container {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .grid-buttons {
    width: 100%;
    flex-direction: row;
  }

  .grid-buttons .primary-button,
  .grid-buttons .secondary-button,
  .grid-buttons .negative-button {
    flex: 1;
  }
}

.vote-button {
  background: var(--vote-button);
  border: var(--block-border-width) solid var(--vote-button-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  min-height: 200px;
  overflow: hidden;
  padding: 2rem;
  position: relative;
}

.vote-button:hover {
  transform: translateY(-3px);
  box-shadow: 0px 8px 30px 0px rgba(0, 0, 0, 0.4);
}

.vote-eclipse {
  position: absolute;
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 350px;
  height: 350px;
  background: var(--vote-eclipse);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.vote-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  z-index: 2;
  position: relative;
}

.vote-content h2 {
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.vote-content p {
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
  opacity: 0.9;
}

.vote-button:hover .vote-image-container img {
  transform: scale(1.1) rotate(1.1deg);
}

@media (max-width: 768px) {
  .vote-button {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    min-height: 250px;
    gap: 1rem;
  }

  .vote-eclipse {
    width: 200px;
    height: 200px;
    left: 50%;
    top: -50px;
    transform: translateX(-50%);
  }

  .vote-content {
    align-items: center;
    order: 2;
  }

  .vote-content p {
    font-size: 1.2rem;
  }

  .vote-image-container {
    width: 140px;
    height: 140px;
    order: 1;
  }

  .col-6 {
    grid-column: span 12;
  }
}

.patron-card {
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 320px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.patron-card:hover {
  transform: translateY(-3px);
  box-shadow: 0px 8px 30px 0px rgba(0, 0, 0, 0.4);
  border-color: var(--primary-color);
}

.patron-accent-block {
  width: 80px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 0px 0px 6px 6px;
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.patron-eclipse {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: var(--block-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

.patron-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.patron-header {
  margin-top: 1rem;
}

.patron-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.patron-image {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0;
}

.patron-image img {
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.patron-card:hover .patron-image img {
  transform: scale(1.05);
}

.patron-image-placeholder {
  font-size: 80px;
  color: var(--text-primary);
  opacity: 0.1;
}

.patron-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.patron-player-name {
  color: var(--primary-color);
  margin: 0;
  line-height: 1.2;
}

.patron-subtitle {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .patron-card {
    min-height: 280px;
    padding: 1.5rem;
  }

  .patron-accent-block {
    display: none;
  }

  .patron-eclipse {
    width: 200px;
    height: 200px;
    opacity: 0.4;
  }

  .patron-header {
    margin-top: 0.5rem;
  }

  .patron-icon {
    font-size: 1.3rem;
  }

  .patron-image {
    height: 100px;
  }

  .patron-image img {
    width: 100px;
    height: 100px;
  }

  .patron-player-name {
    font-size: 1.3rem;
  }

  .patron-subtitle {
    font-size: 0.85rem;
  }

  .col-3 {
    grid-column: span 12;
  }
}

.patron-tier-bar {
  border: var(--block-border-width) solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 16px 24px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-top: 1rem;
}

.patron-tier-diamond {
  background: #20c0e6;
}

.patron-tier-emerald {
  background: #20e650;
}

.patron-tier-netherite {
  background: #e4274a;
}

/* FAQ Page Styles */
.faq-block {
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: visible;
  margin-bottom: 2rem;
  width: 100%;
}

.faq-accent-block {
  width: 80px;
  height: 10px;
  background: var(--secondary-color);
  border-radius: 0px 0px 6px 6px;
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.faq-content {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  padding: 3rem 2rem 2rem 2rem;
}

.faq-icon-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  font-size: 35rem;
  font-weight: 700;
  color: var(--block-dark);
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
  -webkit-text-stroke: 2px var(--block-dark);
}

.faq-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.faq-title {
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}

.faq-description {
  color: var(--text-secondary);
  margin: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.faq-item {
  background: var(--block-light);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--block-dark);
}

.faq-text {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.faq-arrow {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: var(--block-dark);
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.faq-answer p {
  padding: 1.5rem;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

/* Rules Page Styles */
.rules-block {
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: visible;
  margin-bottom: 2rem;
  width: 100%;
}

.rules-accent-block {
  width: 80px;
  height: 10px;
  background: var(--negative);
  border-radius: 0px 0px 6px 6px;
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.rules-content {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  padding: 3rem 2rem 2rem 2rem;
}

.rules-icon-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  font-size: 35rem;
  font-weight: 700;
  color: var(--block-dark);
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
  -webkit-text-stroke: 2px var(--block-dark);
}

.rules-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.rules-title {
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}

.rules-description {
  color: var(--text-secondary);
  margin: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.rules-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.rule-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--block-light);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  align-items: flex-start;
  transition: all 0.3s ease;
}

.rule-item:hover {
  background: var(--block-dark);
  border-color: var(--negative);
}

.rule-number {
  background: var(--negative);
  color: var(--negative-text);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.rule-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.rule-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.3;
}

.rule-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 768px) {

  .faq-content,
  .rules-content {
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  }

  .faq-accent-block,
  .rules-accent-block {
    display: none;
  }

  .faq-icon-bg,
  .rules-icon-bg {
    font-size: 20rem;
    opacity: 0.3;
  }

  .faq-header,
  .rules-header {
    margin-bottom: 1.5rem;
  }

  .faq-title,
  .rules-title {
    font-size: 1.8rem;
  }

  .faq-description,
  .rules-description {
    font-size: 0.9rem;
  }

  .faq-question {
    padding: 1rem 1.25rem;
  }

  .faq-text {
    font-size: 0.9rem;
  }

  .faq-answer p {
    padding: 1.25rem;
    font-size: 0.85rem;
  }

  .rule-item {
    padding: 1rem 1.25rem;
    gap: 0.875rem;
  }

  .rule-number {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .rule-title {
    font-size: 0.9rem;
  }

  .rule-desc {
    font-size: 0.85rem;
  }
}

/* Package Upsell Styles */
.package-upsell-block {
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.package-img-block {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.package-img-block img {
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.package-name {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.package-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--negative);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.package-countdown i {
  font-size: 1rem;
}

.package-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.package-price {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
}

.package-price-old {
  color: var(--negative);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: line-through;
}

.package-grid-actions {
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.package-button-group {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  max-width: 300px;
}

.package-btn-info,
.package-btn-cart,
.package-btn-remove {
  flex: 1;
  background: var(--secondary-color);
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  color: var(--icon-secondary);
  font-weight: 600;
}

.package-btn-info i,
.package-btn-cart i,
.package-btn-remove i {
  font-size: 1.1rem;
}

.package-btn-info:hover,
.package-btn-cart:hover {
  background: var(--secondary-hover-color);
  transform: translateY(-1px);
}

.package-btn-info {
  background: var(--primary-color);
  color: var(--icon-primary);
}

.package-btn-info:hover {
  background: var(--primary-hover-color);
}

.package-btn-remove {
  background: var(--negative);
  color: var(--negative-text);
}

.package-btn-remove:hover {
  background: var(--negative-hover-color);
  transform: translateY(-1px);
}

.package-btn-cart[disabled],
.package-btn-info[disabled],
.package-btn-remove[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 768px) {
  .package-upsell-block {
    padding: 1.5rem;
  }

  .package-img-block img {
    max-width: 120px;
    max-height: 120px;
  }

  .package-price {
    font-size: 1.3rem;
  }

  .package-price-old {
    font-size: 1rem;
  }

  .package-button-group {
    max-width: 100%;
  }

  .package-btn-info,
  .package-btn-cart,
  .package-btn-remove {
    padding: 0.65rem 1.25rem;
  }
}

.ranktable-block {
  background-color: var(--block-color);
  width: 100%;
  padding: 30px;
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow-x: auto;
  margin-top: 1rem;
}

.rank-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0 5px;
  background-color: transparent;
  border: none;
}

.rank-table thead th {
  background-color: transparent;
  padding: 35px 20px;
  border: none;
  vertical-align: bottom;
}

.rank-table tbody tr:nth-child(odd) td,
.rank-table tbody tr:nth-child(odd) th {
  background-color: var(--footer-bg);
}

.rank-table tbody tr:nth-child(odd) th:first-child,
.rank-table tbody tr:nth-child(odd) td:first-child {
  border-radius: 8px 0 0 8px;
}

.rank-table tbody tr:nth-child(odd) th:last-child,
.rank-table tbody tr:nth-child(odd) td:last-child {
  border-radius: 0 8px 8px 0;
}

.rank-table tbody tr:nth-child(even) td,
.rank-table tbody tr:nth-child(even) th {
  background-color: transparent;
}

.rank-table tbody td,
.rank-table tbody th {
  border: none;
}

.rank-table tbody th,
.rank-table tbody td {
  padding: 20px;
  text-align: center;
  vertical-align: middle;
}

.rank-table .feature-description {
  text-align: left;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 250px;
  transition: color 0.3s;
}

.rank-table .feature-question {
  margin-left: 8px;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.rank-table .feature-question:hover {
  color: var(--primary-color);
}

.rank-table .feature-yes {
  color: var(--positive);
  font-size: 28px;
  transition: color 0.3s;
}

.rank-table .feature-no {
  color: var(--negative);
  font-size: 28px;
  transition: color 0.3s;
}

.rank-table .feature-text {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: color 0.3s;
}

.package-img-src {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.rank-table thead th:hover .package-img-src {
  transform: scale(1.1) rotate(3deg);
}

.rank-table .package-new-price {
  color: var(--primary-color);
  font-weight: 800;
  font-size: 1.1rem;
}

.block-header.rank-header {
  min-height: auto;
  margin-top: 30px;
  max-height: none;
}

.rank-table-header-cell {
  width: 250px;
}

.rank-header-content .package-countdown {
  justify-content: center;
  margin-bottom: 15px;
}

.rank-header-content .package-img-wrapper {
  margin-bottom: 15px;
}

.rank-header-content .text-title {
  margin-bottom: 15px !important;
  font-size: 1.2rem !important;
}

.rank-header-content .package-price-row {
  margin-bottom: 20px;
  align-items: center;
  justify-content: center;
  display: flex !important;
}

.rank-header-content .package-new-price,
.rank-header-content .package-price {
  font-size: 1rem !important;
}

.rank-header-content .package-new-price {
  margin-left: 10px;
}

.rank-header-content .package-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.rank-header-content .package-btn-info,
.rank-header-content .package-btn-cart,
.rank-header-content .package-btn-remove {
  padding: 10px 15px !important;
}

.rank-table-header-cell {
  padding: 15px !important;
  vertical-align: top;
  position: relative;
}

.rank-table-features-label {
  background-color: var(--giftcard-primary);
  color: var(--giftcard-text);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  text-transform: uppercase;
  position: absolute;
  top: 15px;
  left: 0px;
  right: 15px;
  bottom: 35px;
}

.rank-table-features-label i {
  font-size: 4.0rem;
}

.rank-table-header-cell .rank-table-features-label {
  margin: 0;
}

.mobile-only {
  display: none !important;
  margin-top: 1rem;
}

@media (max-width: 991px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }
}

@media (max-width: 991px) {
  .rank-table thead th {
    min-width: 200px;
  }
}


.gc-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 1rem;
}

.gc-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gc-amount-btn {
  background-color: var(--block-color);
  border-radius: var(--border-radius);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: var(--block-border-width) solid var(--block-border);
  transition: all 0.3s ease;
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
}

.gc-amount-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.gc-value-sm {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.gc-currency-sm {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.gc-row-premium {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.gc-card-premium {
  background-color: var(--block-color);
  border-radius: var(--border-radius);
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: var(--block-border-width) solid var(--block-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.gc-card-premium:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.gc-value-premium {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-primary);
}

.gc-currency-premium {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

@media (max-width: 991px) {
  .gc-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {

  .gc-row,
  .gc-row-premium {
    grid-template-columns: 1fr;
  }
}

.notice-grid {
  margin-top: 2rem;
}

.announcement-block {
  background-color: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  min-height: 300px;
  position: relative;
  margin-top: 2rem;
}

.announcement-image-wrapper {
  flex: 0 0 45%;
  height: 100%;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  border-right: var(--block-border-width) solid var(--block-border);
}

.announcement-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.announcement-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 40px 40px 0;
}

.announcement-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.announcement-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.announcement-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  text-transform: uppercase;
}

.announcement-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
}

.announcement-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary-color);
  color: var(--icon-primary);
  padding: 14px 28px;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.announcement-button:hover {
  background: var(--primary-hover-color);
  transform: translateY(-1px);
}

.announcement-button i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.announcement-button:hover i {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .announcement-block {
    flex-direction: column;
    min-height: auto;
    gap: 0;
  }

  .announcement-image-wrapper {
    flex: none;
    width: 100%;
    min-height: 200px;
    border-right: none;
  }

  .announcement-content {
    padding: 30px 20px;
    text-align: center;
    align-items: center;
  }

  .announcement-title {
    font-size: 1.6rem;
  }

  .announcement-text {
    max-width: 100%;
  }
}

.staff-tier-bar {
  border: var(--block-border-width) solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 16px 24px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-top: 1rem;
}

.staff-tier-owner {
  background: #f08c00;
}

.staff-tier-administrator {
  background: #e63946;
}

.staff-tier-moderator {
  background: #4361ee;
}

.staff-tier-helper {
  background: #2dc653;
}

.staff-tier-media {
  background: #9b5de5;
}

.staff-card {
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  height: 100%;
}

.staff-image {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0;
}

.staff-image img {
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.staff-image-placeholder {
  font-size: 80px;
  color: var(--text-primary);
  opacity: 0.1;
}

.staff-details {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.staff-player-name {
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .staff-card {
    padding: 1rem;
  }

  .staff-image {
    height: 100px;
  }

  .staff-image img {
    width: 100px;
    height: 100px;
  }

  .staff-player-name {
    font-size: 1.1rem;
  }
}

/* ========================================
   Coin Slider Addon
   ======================================== */

.coin-slider-wrap {
  width: 100%;
  position: relative;
  z-index: 2;
  margin-top: 20px;
  margin-bottom: 4px;
}

.coin-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.coin-slider-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #b9b6b3;
  transition: color 0.2s ease;
  flex: 1;
  text-align: center;
}

.coin-slider-label:first-child {
  text-align: left;
}

.coin-slider-label:last-child {
  text-align: right;
}

.coin-slider-label.active {
  color: var(--primary-color);
}

.coin-stage .package-card-price-row {
  margin-bottom: 16px;
}

.coin-slider-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--block-border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.coin-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  transition: transform 0.2s ease;
  border: 2px solid var(--block-dark);
}

.coin-slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.coin-slider-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  transition: transform 0.2s ease;
  border: 2px solid var(--block-dark);
  box-sizing: border-box;
}

.coin-slider-input::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.coin-stages {
  width: 100%;
  position: relative;
  z-index: 2;
  margin-top: 16px;
}

.coin-stage {
  display: block;
}

.coin-stage.d-none {
  display: none !important;
}

.coin-stage.active {
  display: block !important;
}

.coin-stage .primary-button {
  width: 100%;
  justify-content: center;
}
/* Package Info Modal Styles */

.legend-package-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.legend-package-modal.show {
    opacity: 1;
    visibility: visible;
    display: flex !important;
}

.legend-package-modal-content {
    background: var(--block-color);
    border: var(--block-border-width) solid var(--block-border);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.legend-package-modal.show .legend-package-modal-content {
    transform: scale(1);
}

/* Close button: calm grey instead of red */
.legend-package-modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--block-dark);
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
}

.legend-package-modal-close-btn:hover {
    background: var(--block-light);
    color: var(--text-primary);
}

.legend-package-modal-close-btn i {
    color: inherit;
}

/* Header: package image, optional label and the name (same layout as the full-width cards) */
.legend-package-modal-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem 4rem 1.5rem 1.75rem;
    border-bottom: 2px solid var(--block-border);
}

.legend-package-modal-image {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--block-dark);
    border-radius: var(--border-radius);
}

.legend-package-modal-image img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.legend-package-modal-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    min-width: 0;
}

.legend-package-modal-badge {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--icon-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.legend-package-modal-badge[hidden],
.legend-package-modal-image[hidden] {
    display: none;
}

.legend-package-modal-title {
    margin: 0;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.legend-package-modal-body {
    padding: 1.5rem 1.75rem 1.75rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Description: text as-is; bullet points become a two-column checklist with yellow checks */
.legend-package-modal-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: 45vh;
    overflow-y: auto;
    word-wrap: break-word;
}

.legend-package-modal-description p,
.legend-package-modal-description h1,
.legend-package-modal-description h2,
.legend-package-modal-description h3,
.legend-package-modal-description h4,
.legend-package-modal-description h5,
.legend-package-modal-description h6,
.legend-package-modal-description blockquote {
    margin: 0 0 0.9rem 0;
}

.legend-package-modal-description h1,
.legend-package-modal-description h2,
.legend-package-modal-description h3,
.legend-package-modal-description h4,
.legend-package-modal-description h5,
.legend-package-modal-description h6 {
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.legend-package-modal-description a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.legend-package-modal-description img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.legend-package-modal-description strong,
.legend-package-modal-description b {
    color: var(--primary-color);
}

.legend-package-modal-description ul,
.legend-package-modal-description ol {
    list-style: none;
    margin: 0 0 0.9rem 0;
    padding: 1rem 1.25rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1.5rem;
    background: var(--block-dark);
    border-radius: var(--border-radius);
}

.legend-package-modal-description li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.legend-package-modal-description li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 0.05em;
    color: var(--primary-color);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
}

/* Footer: price on the left, buttons on the right (same as the package cards) */
.legend-package-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 2px solid var(--block-border);
    padding-top: 1.25rem;
    margin-top: auto;
}

.legend-package-modal-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.legend-package-modal-pricing .package-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.legend-package-modal-pricing .package-original-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--negative);
    text-decoration: line-through;
}

.legend-package-modal-price-suffix {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.legend-package-modal-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.legend-package-modal-actions .secondary-button,
.legend-package-modal-actions .negative-button {
    box-sizing: border-box;
    height: 3rem;
    justify-content: center;
    gap: 0.5rem;
}

.legend-package-modal-gift {
    width: 3rem;
    padding: 0;
}

.legend-package-modal-buy {
    padding: 0 1.5rem;
}

.legend-package-modal-buy .button-text {
    font-weight: 700;
}

.legend-package-modal-buy.negative-button i,
.legend-package-modal-buy.negative-button .button-text {
    color: var(--negative-text);
}

@media (max-width: 768px) {
    .legend-package-modal {
        padding: 15px;
    }

    .legend-package-modal-content {
        max-width: none;
        max-height: 92vh;
    }

    .legend-package-modal-header {
        padding: 1.25rem 3.5rem 1.25rem 1.25rem;
        gap: 1rem;
    }

    .legend-package-modal-image {
        width: 64px;
        height: 64px;
    }

    .legend-package-modal-image img {
        width: 52px;
        height: 52px;
    }

    .legend-package-modal-title {
        font-size: 1.2rem;
    }

    .legend-package-modal-body {
        padding: 1.25rem;
    }

    .legend-package-modal-description ul,
    .legend-package-modal-description ol {
        grid-template-columns: 1fr;
    }

    .legend-package-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .legend-package-modal-actions .legend-package-modal-buy {
        flex: 1;
    }
}
/* ==========================================================================
   Realm Selector
   ========================================================================== */

.realm-grid { display: none; }
.realm-grid.is-active-realm { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }

/* Realm toggle (col-12 button above the category grid) */
.realm-toggle-row {
    margin-bottom: 1.5rem;
}

.realm-toggle-button {
    width: 100%;
    background: var(--block-color);
    border: var(--block-border-width) solid var(--block-border);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2.5rem 2rem;
    cursor: pointer;
    position: relative;
    overflow: visible;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.realm-toggle-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.realm-toggle-accent {
    width: 80px;
    height: 10px;
    background: var(--realm-color, var(--primary-color));
    border-radius: 0 0 6px 6px;
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    transition: background 0.3s ease;
}

.realm-toggle-title {
    color: var(--text-primary);
    margin: 0;
    text-align: center;
    line-height: 1.2;
}

.realm-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    display: flex;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.realm-modal.show {
    opacity: 1;
    visibility: visible;
}

.realm-modal-content {
    background: var(--block-color);
    border: var(--block-border-width) solid var(--block-border);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.realm-modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--negative);
    color: var(--negative-text);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    z-index: 2;
}

.realm-modal-close-btn:hover {
    background-color: var(--negative-hover-color);
}

.realm-modal-close-btn i {
    color: var(--negative-text);
}

.realm-modal-header {
    padding: 2rem 3rem 1rem 3rem;
    text-align: center;
}

.realm-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.02em;
}

.realm-modal-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.realm-card {
    --realm-color: #4ade80;
    --realm-text: #ffffff;
    background: var(--realm-color);
    border: none;
    border-radius: var(--border-radius);
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    cursor: pointer;
    color: var(--realm-text);
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    position: relative;
}

.realm-card:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.realm-card-icon {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    image-rendering: pixelated;
}

.realm-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.realm-card-icon i {
    font-size: 2.4rem;
    color: var(--realm-text);
    opacity: 0.9;
}

.realm-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.realm-card-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--realm-text);
    margin: 0;
    line-height: 1.1;
    letter-spacing: 0.01em;
}

.realm-color-green  { --realm-color: #77d84a; --realm-text: #ffffff; }
.realm-color-red    { --realm-color: #EF5B5B; --realm-text: #ffffff; }
.realm-color-purple { --realm-color: #DB64F9; --realm-text: #ffffff; }
.realm-color-blue   { --realm-color: #44bae6; --realm-text: #ffffff; }
.realm-color-yellow { --realm-color: #facc15; --realm-text: #ffffff; }
.realm-color-orange { --realm-color: #e75017; --realm-text: #ffffff; }
.realm-color-pink   { --realm-color: #f472b6; --realm-text: #ffffff; }
.realm-color-teal   { --realm-color: #2dd4bf; --realm-text: #ffffff; }
.realm-color-gold   { --realm-color: #fbbf24; --realm-text: #ffffff; }

@media (max-width: 768px) {
    .realm-modal-header {
        padding: 1.5rem 2rem 0.75rem 2rem;
    }

    .realm-card {
        padding: 0.9rem 1rem;
        gap: 1rem;
    }

    .realm-card-icon {
        width: 56px;
        height: 56px;
    }

    .realm-card-name {
        font-size: 1.15rem;
    }
}

[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background-color: var(--block-dark, #1E1E1E);
    color: var(--text-primary, #FFFFFF);
    border: 1px solid var(--block-border, #2B2B2B);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    line-height: 1.3;
    white-space: normal;
    max-width: 260px;
    width: max-content;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

[data-tooltip][disabled] {
    cursor: not-allowed;
}


/* Package sections (several groups of packages within one category) */

.package-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 2.5rem 0 1.5rem;
  text-align: center;
}

/* Centered heading: a line on both sides of the title */
.package-section-heading {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.package-section-heading::before {
  content: "";
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--block-border);
}

.package-section-title {
  font-size: 1.6rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.package-section-subtitle {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.package-section-line {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--block-border);
}

/* Ticket bar (bulk ticket packages with free bonus tickets) */

.ticket-bar {
  position: relative;
  margin-top: 1rem;
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.ticket-bar [hidden] {
  display: none !important;
}

/* Three layers in one card: heading, the tier selector on a dark band, the selected package */
.ticket-bar-tiers {
  display: grid;
  grid-template-columns: repeat(var(--tb-count, 4), minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--block-dark);
  border-bottom: 2px solid var(--block-border);
}

.ticket-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 2.9rem 1rem 1.1rem;
  background: transparent;
  border: 2px solid transparent;
  border-radius: calc(var(--border-radius) - 2px);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
}

/* Thin dividers between the options, hidden next to the selected one */
.ticket-tier + .ticket-tier::before {
  content: "";
  position: absolute;
  left: calc(-0.25rem - 3px);
  top: 22%;
  bottom: 22%;
  width: 2px;
  border-radius: 2px;
  background: var(--block-border);
}

.ticket-tier.is-active::before,
.ticket-tier.is-active + .ticket-tier::before {
  display: none;
}

.ticket-tier:hover {
  background: var(--block-color);
}

.ticket-tier:focus {
  outline: none;
  box-shadow: none;
}

.ticket-tier:focus-visible {
  border-color: var(--secondary-color);
}

.ticket-tier.is-active,
.ticket-tier.is-active:focus-visible {
  background: var(--block-color);
  border-color: var(--primary-color);
}

.ticket-tier-badge {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--secondary-color);
  color: var(--icon-secondary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticket-tier.is-active .ticket-tier-badge {
  background: var(--primary-color);
  color: var(--icon-primary);
}

.ticket-tier-amount {
  font-size: 2.2rem;
  line-height: 1.1;
}

.ticket-tier-unit {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.ticket-tier-bonus {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--sale-tag);
  color: var(--sale-tag-text);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticket-tier .ticket-tier-bonus {
  margin-top: 0.4rem;
}

.ticket-tier-bonus.is-empty {
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: none;
  opacity: 0.6;
}

.ticket-tier-price {
  margin-top: 0.5rem;
  color: var(--primary-color);
  font-size: 1.05rem;
  font-weight: 700;
}

.ticket-bar-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.75rem;
}

/* Ticket image + "you get" text, grouped on the left of the summary */
.ticket-bar-product {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.ticket-bar-result-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  object-fit: contain;
}

.ticket-bar-result {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.ticket-bar-result-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.ticket-bar-result-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
}

.ticket-bar-result-total {
  font-size: 2rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.ticket-bar-result-unit {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.ticket-bar-checkout {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.ticket-bar-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.ticket-bar-price .package-price {
  font-size: 1.5rem;
}

/* Both action buttons share one fixed height */
.ticket-bar-buy,
.ticket-bar-gift {
  box-sizing: border-box;
  height: 3.25rem;
}

.ticket-bar-buy {
  padding: 0 1.5rem;
}

.ticket-bar-buy .button-text {
  font-weight: 700;
}

.ticket-bar-gift {
  width: 3.25rem;
  padding: 0;
  justify-content: center;
  margin-right: -0.5rem;
}

@media (max-width: 991px) {
  .ticket-bar-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .ticket-bar-checkout {
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .ticket-bar-result-icon {
    width: 56px;
    height: 56px;
  }

  .ticket-bar-tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ticket-tier + .ticket-tier::before {
    display: none;
  }

  .ticket-tier {
    padding: 2.75rem 0.5rem 1rem;
  }

  .ticket-tier-amount {
    font-size: 1.8rem;
  }

  .ticket-bar-tiers {
    padding: 0.5rem;
  }

  .ticket-bar-summary {
    padding: 1rem 1.25rem;
  }

  .package-section-header {
    margin: 2rem 0 1rem;
  }

  .package-section-title {
    font-size: 1.3rem;
  }
}


/* Compact package card (3 per row): image on top, content centered below */

.grid-package-block.is-compact {
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  gap: 1.25rem;
  padding: 2.9rem 1.5rem 1.75rem;
}

/* Label on a compact card, same style as the ticket bar badges */
.grid-badge {
  position: absolute;
  top: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--secondary-color);
  color: var(--icon-secondary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* What's inside: the bullet points from the package description, as small wrapping chips */
.grid-contents {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.grid-content-chip {
  padding: 0.3rem 0.7rem;
  background: var(--block-dark);
  border: 1px solid var(--block-border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
}

.grid-content-chip strong,
.grid-content-chip b {
  color: var(--primary-color);
  font-weight: 700;
}

/* Price + buttons: invisible wrapper on normal cards, a footer bar on compact cards.
   The footer sits at the bottom so it lines up across cards with different contents. */
.grid-footer {
  display: contents;
}

.grid-package-block.is-compact .grid-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 2px solid var(--block-border);
}

.grid-package-block.is-compact .grid-price-container {
  flex-direction: row;
  align-items: baseline;
  gap: 0.5rem;
}

.grid-package-block.is-compact .grid-price,
.grid-package-block.is-compact .grid-price-sale,
.grid-package-block.is-compact .grid-price-old {
  white-space: nowrap;
}

.grid-package-block.is-compact .grid-price,
.grid-package-block.is-compact .grid-price-sale {
  font-size: 1.25rem;
}

.grid-package-block.is-compact .grid-buttons {
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.grid-package-block.is-compact .grid-buttons .primary-button,
.grid-package-block.is-compact .grid-buttons .secondary-button,
.grid-package-block.is-compact .grid-buttons .negative-button {
  flex: 0 0 auto;
  box-sizing: border-box;
  height: 3rem;
  padding: 0 1.1rem;
  gap: 0.5rem;
}

.grid-package-block.is-compact .grid-buttons .primary-button {
  width: 3rem;
  padding: 0;
}

.grid-package-block.is-compact .grid-buttons .button-text {
  font-weight: 700;
}

.grid-package-block.is-compact .grid-eclipse {
  display: none;
}

.grid-package-block.is-compact .grid-image-container {
  width: 150px;
  height: 150px;
  min-width: 0;
}

.grid-package-block.is-compact .grid-image {
  max-width: 124px;
  max-height: 124px;
}

.grid-package-block.is-compact .grid-content {
  flex: 1 1 auto;
  align-items: center;
  width: 100%;
}

.grid-package-block.is-compact .grid-header {
  text-align: center;
}


/* Full-width featured package (e.g. monthly exclusive bundles) */

.packages-wide-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.package-wide {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem 2rem;
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.package-wide-image {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--block-dark);
  border-radius: var(--border-radius);
}

.package-wide-image img {
  width: 124px;
  height: 124px;
  object-fit: contain;
}

.package-wide-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.package-wide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--primary-color);
  color: var(--icon-primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Title, description and chips have a fixed height (one line, one line on desktop / two below, two chip rows),
   so the full-width cards on Ranks (Astro Plus) and Extra's (bundle of the month) are always the same height
   and the page doesn't jump when switching categories */
.package-wide-title {
  max-width: 100%;
  margin: 0;
  font-size: 1.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.package-wide-description {
  --wide-description-lines: 1;
  width: 100%;
  height: calc(var(--wide-description-lines) * 1.6em);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: var(--wide-description-lines);
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 991px) {
  .package-wide-description {
    --wide-description-lines: 2;
  }
}

/* The description is the store's own HTML (Tebex has no striptags filter): paragraphs flow as one text */
.package-wide-description p,
.package-wide-description div {
  display: inline;
  margin: 0;
}

.package-wide-description strong,
.package-wide-description b {
  font-weight: inherit;
}

.package-wide-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--secondary-color);
}

/* On small phones a note can wrap: always reserve two lines there (same card height, see above) */
@media (max-width: 480px) {
  .package-wide-note {
    min-height: 3em;
    align-items: flex-start;
  }
}

.package-wide-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.package-wide-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.package-wide-price .package-price {
  font-size: 1.5rem;
}

.package-wide-actions {
  display: flex;
  gap: 0.75rem;
}

.package-wide-info,
.package-wide-buy {
  box-sizing: border-box;
  height: 3.25rem;
  justify-content: center;
}

.package-wide-info {
  width: 3.25rem;
  padding: 0;
}

.package-wide-buy {
  padding: 0 1.5rem;
}

.package-wide-buy .button-text {
  font-weight: 700;
}

/* Choice between several packages (e.g. 1 / 3 / 6 months): a small segmented control, selected = yellow */
.package-wide-options {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--block-dark);
  border-radius: 999px;
}

.package-wide-option {
  padding: 0.4rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.package-wide-option:hover:not(.is-active) {
  color: var(--text-primary);
}

.package-wide-option.is-active {
  background: var(--primary-color);
  color: var(--icon-primary);
}

.package-wide-option:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* "Bespaar X%": same tag as the discount/key-perk labels */
.package-wide-save {
  align-self: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--sale-tag);
  color: var(--sale-tag-text);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Keeps its space when there is nothing to save, so switching options doesn't move the price */
.package-wide-save.is-empty {
  visibility: hidden;
}

.package-wide-price .package-price,
.package-wide-price-suffix {
  white-space: nowrap;
}

/* Tablet and phone: the choice gets its own full-width row above price and buttons */
@media (max-width: 991px) {
  .package-wide[data-wide-options] .package-wide-side {
    flex-wrap: wrap;
    row-gap: 1rem;
  }

  .package-wide-options {
    width: 100%;
  }

  .package-wide-option {
    flex: 1;
  }

  /* The price is left-aligned/centred here: the tag goes behind it (or below it on phones) */
  .package-wide-price-break {
    order: 1;
  }

  .package-wide-save {
    order: 2;
  }
}

.package-wide-price-break {
  display: none;
}

/* Phone: the "Bespaar" tag always on its own line below the price (same card height for every option) */
@media (max-width: 768px) {
  .package-wide[data-wide-options] .package-wide-price {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.4rem;
  }

  .package-wide-price-break {
    display: block;
    flex-basis: 100%;
    height: 0;
  }
}

/* The section heading already provides the spacing above the ticket bar */
.package-section-header + .ticket-bar {
  margin-top: 0;
}

@media (max-width: 991px) {
  .package-wide {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .package-wide-side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .package-wide {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.25rem;
    padding: 1.5rem 1.25rem;
  }

  .package-wide-content {
    align-items: center;
  }

  .package-wide-side {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* "Naar tickets" button: fixed at the bottom of the screen, jumps to the ticket bar */

.ticket-bar-anchor {
  scroll-margin-top: 1rem;
}

.ticket-jump {
  position: fixed;
  left: 50%;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem 0.5rem 0.6rem;
  background: var(--primary-color);
  color: var(--icon-primary);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  /* hidden until .is-visible; fades in with a small rise */
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.ticket-jump.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
  .ticket-jump,
  .ticket-jump.is-visible {
    transition: none;
  }
}

.ticket-jump:hover {
  background: var(--primary-hover-color);
}

.ticket-jump:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 3px;
}

.ticket-jump-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

/* Category navigation (replaces the big category heading on category pages) */

.category-nav {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  padding: 0.55rem 1.1rem;
  border-radius: calc(var(--border-radius) - 2px);
  color: var(--text-secondary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* Centered when everything fits; still scrolls from the start when it does not */
.category-nav-link:first-child {
  margin-left: auto;
}

.category-nav-link:last-child {
  margin-right: auto;
}

.category-nav-link:hover {
  background: var(--block-light);
  color: var(--text-primary);
}

.category-nav-link.is-active {
  background: var(--primary-color);
  color: var(--icon-primary);
}

.category-nav-link i {
  font-size: 1rem;
}

.category-nav-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 4 per row: narrower compact cards; price centered above the buttons */

.grid-package-block.is-four {
  padding: 2.9rem 1.25rem 1.5rem;
}

.grid-package-block.is-four .grid-footer {
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
}

.grid-package-block.is-four .grid-price-container {
  justify-content: center;
}

.grid-package-block.is-four .grid-buttons .secondary-button,
.grid-package-block.is-four .grid-buttons .negative-button {
  flex: 1 1 auto;
  justify-content: center;
}

@media (max-width: 1100px) {
  .packages-grid-container .col-3 {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .packages-grid-container .col-3 {
    grid-column: span 12;
  }
}

/* Rank upgrades: small "from" icon, arrow, big "to" icon */

.grid-upgrade-visual {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.grid-upgrade-from {
  width: 56px;
  height: 56px;
  object-fit: contain;
  opacity: 0.8;
}

.grid-upgrade-arrow {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.grid-upgrade-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.grid-upgrade-title i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

/* Full-width card: benefit chips and a price suffix such as "/ maand" */

/* Benefit chips on a full-width card: shifted left by the chip padding + border,
   so the chip text starts on the same line as the title and text above it */
.package-wide-contents {
  /* A fixed number of chip rows (chip = text line + padding + border); the script in layout.html swaps
     chips that don't fit for "+X meer". Fewer chips are centred in the reserved space. */
  --wide-chip-rows: 2;
  align-content: center;
  justify-content: flex-start;
  height: calc(var(--wide-chip-rows) * (0.8rem * 1.4 + 0.6rem + 2px) + (var(--wide-chip-rows) - 1) * 0.4rem);
  overflow: hidden;
  margin: 0.25rem 0 0 calc(-0.7rem - 1px);
}

@media (max-width: 480px) {
  .package-wide-contents {
    --wide-chip-rows: 3;
  }
}

.package-wide-more[hidden] {
  display: none;
}

@media (max-width: 768px) {
  .package-wide-contents {
    justify-content: center;
    margin-left: 0;
  }
}

/* Highlighted card ("best choice"): yellow label and a very faint yellow glow from the top of the card */
.grid-package-block.is-highlight {
  background:
    radial-gradient(ellipse 90% 45% at 50% 0%, color-mix(in srgb, var(--primary-color) 9%, transparent), transparent 70%),
    var(--block-color);
}

.grid-package-block.is-highlight .grid-badge {
  background: var(--primary-color);
  color: var(--icon-primary);
}

/* Key perk tag under the name: same size as the other tags in the store ("Populair", "Beste keuze"),
   in the green of the "incl. gratis" tags */
.grid-key-perk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--sale-tag);
  color: var(--sale-tag-text);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.5;
  text-align: center;
}

.grid-key-perk i {
  font-size: 0.6rem;
}

/* Key perk in blue (section setting "Key perk colours"), e.g. the extra perk of the top rank */
.grid-key-perk.is-blue {
  background: var(--secondary-color);
  color: var(--icon-secondary);
}

/* Empty key perk spot on ranks without one, so the chips line up across the row */
.grid-key-perk.is-placeholder {
  visibility: hidden;
}

/* One card per row: nothing to line up with */
@media (max-width: 768px) {
  .grid-key-perk.is-placeholder {
    display: none;
  }
}

/* Ranks that build on each other: the numbers two per row, then "Alles van Cosmic" on its own row */
.grid-contents-break {
  flex-basis: 100%;
  height: 0;
}

.grid-content-includes {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-primary);
  font-weight: 600;
}

.grid-content-includes i {
  color: var(--sale-tag);
  font-size: 0.7rem;
}

/* Narrowest 4-per-row cards (just above the 2-per-row breakpoint): a bit less padding so
   "3 Veilingen" and "Bekijk alles" stay on one row */
@media (min-width: 1101px) and (max-width: 1250px) {
  .grid-package-block.is-four {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .grid-package-block.is-four .grid-contents .grid-content-chip {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }
}

/* "+X meer" / "Bekijk alles" chip: opens the info window with all benefits */
.grid-content-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Poppins', sans-serif;
  color: var(--secondary-color);
  font-weight: 700;
  cursor: pointer;
}

.grid-content-more i {
  font-size: 0.65rem;
}

.grid-content-more:hover {
  border-color: var(--secondary-color);
}

.package-wide-price-suffix {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}



/* ==========================================================================
   Homepage: same style as the category pages
   ========================================================================== */

/* Category cards: large name, description and a button on the left; a large icon on a dark circle on the right */
.home-categories {
  gap: 1.25rem;
}

.home-category-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
  min-height: 230px;
  padding: 2rem;
  overflow: hidden;
  --category-glow: var(--secondary-color);
  background: var(--category-glow);
  /* Same border width as the other blocks, in a darker shade of the card's own colour */
  border: var(--block-border-width) solid color-mix(in srgb, var(--category-glow) 65%, #000);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  color: #fff;
  text-decoration: none;
}

/* The whole card is filled with the category's own solid colour; slightly lighter on hover */
.home-category-card:hover {
  background: color-mix(in srgb, var(--category-glow) 88%, #fff);
}

.home-category-card .home-category-title {
  color: #fff;
}

.home-category-card .home-category-description {
  color: rgba(255, 255, 255, 0.88);
}

.home-category-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  min-width: 0;
  max-width: 60%;
}

.home-category-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
}

.home-category-description {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* The category description is Tebex HTML (usually one <p>) */
.home-category-description p {
  margin: 0;
}

.home-category-cta {
  margin-top: 0.5rem;
  padding: 0.7rem 1.25rem;
  gap: 0.6rem;
}

.home-category-cta .button-text {
  font-weight: 700;
}

.home-category-cta i {
  font-size: 0.9rem;
}

.home-category-image {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 170px;
}

.home-category-image img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

@media (max-width: 991px) {
  .home-category-title {
    font-size: 1.6rem;
  }

  .home-category-image,
  .home-category-image img {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 768px) {
  .home-category-card {
    min-height: 0;
    padding: 1.5rem;
  }

  .home-category-body {
    max-width: none;
  }

  .home-category-image,
  .home-category-image img {
    width: 96px;
    height: 96px;
  }
}

/* The section heading already provides the spacing above these grids */
.package-section-header + .notice-grid,
.package-section-header + .module-grid {
  margin-top: 0;
}

/* Calm blocks: no coloured tabs and no large background symbols, like the rest of the store */
.sale-accent-block,
.textbox-accent-block,
.textbox-icon-bg,
.serverstatus-accent-block,
.serverstatus-icon-bg,
.topdonator-accent-block,
.topdonator-icon-bg,
.giftcard-accent-block,
.giftcard-icon-bg,
.payments-accent-block,
.payments-icon-bg,
.community-goal-accent-block,
.payment-goal-icon-bg {
  display: none;
}

/* Gift card button in the store's blue instead of purple */
.giftcard-btn {
  background: var(--secondary-color);
  color: var(--icon-secondary);
}

.giftcard-btn:hover {
  background: var(--secondary-hover-color);
}

/* Space between the navigation and a sale banner directly below it */
.category-nav + .sale-banner {
  margin-top: 1.25rem;
}


/* Homepage: compact notice cards ("Goed om te weten") */
.home-notices {
  gap: 1.25rem;
}

.home-notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  height: 100%;
  padding: 1.5rem;
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.home-notice-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--block-dark);
  border-radius: calc(var(--border-radius) - 2px);
  color: var(--primary-color);
  font-size: 1.1rem;
}

.home-notice-title {
  margin: 0 0 0.3rem;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
}

.home-notice-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.home-notice-button {
  display: inline-flex;
  margin-top: 0.9rem;
  padding: 0.6rem 1.1rem;
  gap: 0.55rem;
}

.home-notice-button .button-text {
  font-weight: 700;
}

/* Homepage modules: top donator spotlight (5 columns) next to the recent donators (7 columns) */
.module-grid .col-6 {
  align-self: stretch;
}

.donor-spotlight {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
  padding: 1.5rem 1.75rem;
  background:
    radial-gradient(circle at 18% 50%, color-mix(in srgb, var(--primary-color) 12%, transparent), transparent 50%),
    var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.donor-spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--primary-color);
  color: var(--icon-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.donor-spotlight-skin {
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--block-dark);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  font-size: 3rem;
}

.donor-spotlight-skin img {
  width: 110px;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.4));
}

.donor-spotlight-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  min-width: 0;
}

.donor-spotlight-info .donor-spotlight-badge {
  margin-bottom: 0.35rem;
}

.donor-spotlight-name {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 800;
}

.donor-spotlight-amount {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 700;
}

.donor-spotlight-thanks {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.donor-list {
  height: 100%;
  padding: 1.5rem 1.75rem;
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.donor-list-title {
  margin: 0 0 0.9rem;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
}

.donor-list-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.donor-list-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  background: var(--block-dark);
  border-radius: calc(var(--border-radius) - 2px);
}

.donor-list-avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  background: var(--block-light);
  color: var(--text-secondary);
}

.donor-list-avatar img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.donor-list-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.donor-list-heart {
  color: var(--primary-color);
  font-size: 0.8rem;
}

.donor-empty {
  margin: 0;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .donor-spotlight {
    padding: 1.25rem;
    gap: 1rem;
  }

  .donor-spotlight-skin {
    width: 96px;
    height: 96px;
  }

  .donor-spotlight-skin img {
    width: 80px;
  }
}

/* Homepage: copy IP box */
.home-ip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.home-ip-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--block-dark);
  border-radius: var(--border-radius);
}

.home-ip-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.home-ip-body {
  flex: 1;
  min-width: 0;
}

.home-ip-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.6rem;
  font-weight: 800;
}

.home-ip-subtitle {
  margin: 0.3rem 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.home-ip-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.home-ip-address {
  display: inline-flex;
  align-items: center;
  height: 3rem;
  padding: 0 1.25rem;
  background: var(--block-dark);
  border: 2px solid var(--block-border);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
}

.home-ip-copy {
  box-sizing: border-box;
  height: 3rem;
  padding: 0 1.4rem;
  gap: 0.6rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.home-ip-copy .button-text {
  font-weight: 700;
}

@media (max-width: 991px) {
  .home-ip {
    flex-wrap: wrap;
  }

  .home-ip-actions {
    width: 100%;
  }

  .home-ip-address {
    flex: 1;
    justify-content: center;
  }
}

/* Homepage: FAQ */
.home-faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-faq-item {
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.home-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.home-faq-number {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--block-dark);
  border-radius: 8px;
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 800;
}

.home-faq-item.is-open .home-faq-number {
  background: var(--primary-color);
  color: var(--icon-primary);
}

.home-faq-text {
  flex: 1;
}

.home-faq-chevron {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.home-faq-item.is-open .home-faq-chevron {
  transform: rotate(180deg);
}

.home-faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem calc(1.5rem + 32px + 1rem);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.home-faq-item.is-open .home-faq-answer {
  display: block;
}

.home-faq-answer p {
  margin: 0 0 0.5rem;
}

@media (max-width: 768px) {
  .home-ip-title {
    font-size: 1.3rem;
  }

  .home-faq-question {
    padding: 1rem;
  }

  .home-faq-answer {
    padding: 0 1rem 1rem;
  }
}

/* Sale banner: a slim bar (tag + title on the left, compact countdown on the right),
   so the categories stay the main focus of the homepage */
.sale-banner {
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  margin-bottom: 0;
}

.sale-banner .sale-tag {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.sale-banner .sale-tag span {
  font-size: 0.8rem;
  font-weight: 800;
}

.sale-banner .sale-info {
  position: static;
  transform: none;
  flex: 1;
  align-items: flex-start;
  pointer-events: auto;
}

.sale-banner .sale-name {
  font-size: 1.15rem;
  text-align: left;
}

.sale-banner .sale-countdown {
  min-width: 0;
  padding: 0.4rem 0.9rem;
  background: var(--block-dark);
}

.sale-banner .countdown-grid {
  gap: 0.8rem;
}

.sale-banner .countdown-unit {
  min-width: 30px;
  gap: 0.1rem;
}

.sale-banner .countdown-unit strong {
  font-size: 1.1rem;
}

.sale-banner .countdown-unit small {
  font-size: 0.55rem;
}

@media (max-width: 768px) {
  .sale-banner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }

  .sale-banner .sale-tag {
    display: flex;
  }

  .sale-banner .sale-info {
    order: 0;
    width: auto;
  }

  .sale-banner .sale-name {
    margin-top: 0;
    font-size: 1rem;
  }

  .sale-banner .sale-countdown {
    width: 100%;
    order: 1;
  }

  .sale-banner .countdown-unit strong {
    font-size: 1.1rem;
  }
}

/* Sale banner (home) and category navigation (category pages) share the same height and spacing,
   so the page below does not jump when switching between home and a category */
.sale-banner,
.category-nav {
  box-sizing: border-box;
  height: 80px;
  align-items: center;
  margin-bottom: 1rem;
}

.category-nav {
  padding-top: 0;
  padding-bottom: 0;
}

@media (max-width: 768px) {
  .sale-banner,
  .category-nav {
    height: 68px;
  }

  .sale-banner {
    flex-wrap: nowrap;
    gap: 0.6rem;
    padding: 0 0.9rem;
  }

  .sale-banner .sale-tag {
    display: none;
  }

  .sale-banner .sale-info {
    min-width: 0;
  }

  .sale-banner .sale-name {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sale-banner .sale-countdown {
    width: auto;
    order: 0;
    flex-shrink: 0;
    padding: 0.3rem 0.6rem;
  }

  .sale-banner .countdown-grid {
    gap: 0.5rem;
  }

  .sale-banner .countdown-unit {
    min-width: 24px;
  }

  .sale-banner .countdown-unit strong {
    font-size: 0.95rem;
  }
}

/* Same distance to the first section as below the sale banner on the homepage */
.category-nav {
  margin-bottom: 0;
}

.category-nav ~ .packages-section > .grid-row {
  margin-top: 0 !important;
}


/* Sale banner: tag, title and countdown centered together */
.sale-banner {
  justify-content: center;
  gap: 1.25rem;
}

.sale-banner .sale-info {
  flex: 0 1 auto;
}

/* Banner type "Actie": the tag in the same size as all other tags in the store (0.7rem, capitals, pill),
   with a clock to show it is temporary (there is no countdown); the title in normal case, not in capitals */
.sale-banner.is-action .sale-tag {
  gap: 0.35rem;
  padding: 0.15rem 0.6rem;
}

.sale-banner.is-action .sale-tag span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.sale-banner.is-action .sale-tag i {
  color: var(--sale-tag-text);
  font-size: 0.65rem;
}

.sale-banner.is-action .sale-name {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: none;
}

/* Banner type "Actie": the free extras are the same chips as on the package cards, with a green icon
   (green = you get extra) */
.sale-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.sale-perk {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.sale-perk i {
  color: var(--positive);
  font-size: 0.75rem;
}

/* Phones: no room for everything in one row. The action bar shows the tag and a small title on the top line
   (so "tijdelijk" stays visible) and the extras below. */
@media (max-width: 768px) {
  .sale-banner.is-action {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-content: center;
    align-items: center;
    gap: 0.35rem 0.5rem;
  }

  .sale-banner.is-action .sale-tag {
    display: flex;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem;
  }

  .sale-banner.is-action .sale-tag span {
    font-size: 0.65rem;
  }

  .sale-banner.is-action .sale-tag i {
    font-size: 0.6rem;
  }

  .sale-banner.is-action .sale-info {
    min-width: 0;
  }

  .sale-banner.is-action .sale-perks {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .sale-banner.is-action .sale-name {
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .sale-perks {
    gap: 0.35rem;
    max-width: 100%;
  }

  .sale-perk {
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
  }

  .sale-perk i {
    font-size: 0.7rem;
  }
}

/* Supporters: top donator and recent donators side by side, each half */
.module-grid .col-6 {
  grid-column: span 6;
  align-self: stretch;
}

@media (max-width: 991px) {
  .module-grid .col-6 {
    grid-column: span 12;
  }
}

/* Top donator: bust in a blue circle with a faint yellow spotlight, blue crown label, large name, yellow amount */
.module-grid .donor-spotlight {
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background:
    radial-gradient(circle at 16% 50%, color-mix(in srgb, var(--primary-color) 14%, transparent), transparent 45%),
    var(--block-color);
}

.module-grid .donor-spotlight-skin {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  align-items: center;
  overflow: hidden;
  border: 4px solid var(--secondary-color);
  border-radius: 50%;
  background: var(--block-dark);
  color: var(--primary-color);
  font-size: 3.5rem;
}

/* The donator's head, like the recent donators but larger */
.module-grid .donor-spotlight-skin img {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  filter: none;
}

.module-grid .donor-spotlight-info {
  gap: 0.3rem;
}

.module-grid .donor-spotlight-name {
  font-size: 2rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.module-grid .donor-spotlight-amount {
  font-size: 1.25rem;
}

.module-grid .donor-spotlight-thanks {
  margin-top: 0.2rem;
  font-size: 0.9rem;
}

/* Recent donators: compact card with small heads */
.module-grid .donor-list {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

.donor-list-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.donor-list-title i {
  color: var(--secondary-color);
  font-size: 1rem;
}

.donor-tiles {
  list-style: none;
  margin: auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
}

.donor-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 1rem 0.15rem 0.8rem;
  background: var(--block-dark);
  border-radius: var(--border-radius);
}

.donor-tile-avatar {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--block-light);
  color: var(--text-secondary);
}

.donor-tile-avatar img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.donor-tile-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .module-grid .donor-spotlight {
    gap: 1.25rem;
    padding: 1.25rem;
    background:
      radial-gradient(circle at 20% 50%, color-mix(in srgb, var(--primary-color) 14%, transparent), transparent 50%),
      var(--block-color);
  }

  .module-grid .donor-spotlight-skin {
    width: 110px;
    height: 110px;
    border-width: 3px;
  }

  .module-grid .donor-spotlight-skin img {
    width: 58px;
    height: 58px;
    border-radius: 8px;
  }

  .module-grid .donor-spotlight-name {
    font-size: 1.45rem;
  }

  .module-grid .donor-spotlight-amount {
    font-size: 1.05rem;
  }

  .module-grid .donor-spotlight-thanks {
    font-size: 0.8rem;
  }

  .module-grid .donor-list {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .module-grid .donor-spotlight {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1.25rem;
    background:
      radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--primary-color) 14%, transparent), transparent 50%),
      var(--block-color);
  }

  .module-grid .donor-spotlight-info {
    align-items: center;
  }

  .donor-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .donor-tile:nth-child(n+5) {
    display: none;
  }

  .donor-tile-name {
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   Help button, help modal and help navigation
   ========================================================================== */

/* "Hulp & info" in the header: same shape as Inloggen / Winkelmand, in a calm dark colour */
.header-help-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: var(--block-light);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* "Patrons" next to it: same button, as a link */
.header-patron-button {
  text-decoration: none;
}

/* Tablet: the 400px logo leaves no room for buttons with text, so all header buttons show only their icon */
@media (min-width: 769px) and (max-width: 1299px) {
  .header-help-button,
  .header-primary-button,
  .header-secondary-button {
    width: 3rem;
    height: 3rem;
    padding: 0;
    justify-content: center;
  }

  .header-help-button .button-text,
  .header-primary-button .button-text,
  .header-secondary-button .button-text {
    display: none;
  }
}

.header-help-button:hover {
  background: color-mix(in srgb, var(--block-light) 85%, #fff);
  transform: translateY(-1px);
}

.header-help-button i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.header-help-button .button-text {
  color: var(--text-primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .header-help-button {
    width: 38px;
    height: 38px;
    padding: 0.5rem;
    justify-content: center;
  }

  .header-help-button i {
    font-size: 1rem;
  }

  .header-help-button .button-text {
    display: none;
  }
}

/* Popup with a button per page */
.help-modal-content {
  max-width: 620px;
}

/* The logged-in name in the header is a button (opens the account window) */
button.header-primary-button {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

/* Account window */
.account-modal-content {
  max-width: 480px;
}

/* Empty basket window */
.empty-cart-modal-content {
  max-width: 520px;
}

.empty-cart-icon {
  color: var(--secondary-color);
  font-size: 1.8rem;
}

.empty-cart-modal .help-link-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.account-modal-avatar img {
  image-rendering: pixelated;
  border-radius: 6px;
}

.legend-package-modal-badge.account-modal-badge {
  background: var(--secondary-color);
  color: var(--icon-secondary);
}

.account-modal-text {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.account-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.account-switch {
  gap: 0.6rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

.account-switch .button-text {
  font-weight: 600;
}

.account-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border-radius: var(--border-radius);
  background: var(--block-dark);
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.account-logout:hover {
  background: var(--negative);
  color: var(--negative-text);
}

/* Login page when already logged in */
.login-current {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--block-dark);
  border-radius: var(--border-radius);
}

.login-current img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  image-rendering: pixelated;
}

.login-current-name {
  display: block;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 800;
}

.login-current-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.login-current-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* Added to the basket without leaving the page: small message with a button to the basket */
.cart-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: calc(100vw - 48px);
  padding: 0.8rem 0.8rem 0.8rem 1rem;
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  font-family: 'Poppins', sans-serif;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cart-toast-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--positive);
  color: var(--positive-text);
}

.cart-toast-text {
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 600;
}

.cart-toast-button {
  flex-shrink: 0;
  padding: 0.55rem 1rem;
  gap: 0.5rem;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .cart-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

  .cart-toast-text {
    flex: 1;
    min-width: 0;
    font-size: 0.85rem;
  }

  .cart-toast-button {
    padding: 0.5rem 0.8rem;
  }

  .account-modal-actions > * {
    flex: 1;
    justify-content: center;
    padding: 0.75rem 0.8rem;
    white-space: nowrap;
  }
}

/* Add buttons while adding, and once the package is in the basket */
a.is-adding {
  opacity: 0.65;
  pointer-events: none;
}

a.is-in-basket .fa-check {
  color: inherit;
}

.help-modal-intro {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.help-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.help-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  background: var(--block-dark);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.help-link:hover,
.help-link:focus-visible {
  background: var(--block-light);
  color: var(--text-primary);
}

.help-link-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--block-light);
  border-radius: calc(var(--border-radius) - 2px);
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.help-link:hover .help-link-icon {
  background: var(--block-color);
}

.help-link-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.help-link-arrow {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

@media (max-width: 560px) {
  .help-links {
    grid-template-columns: 1fr;
  }
}


/* Room above the header for the logo, now that the link row above it is gone (mobile hides the logo) */
@media (min-width: 769px) {
  .header-block {
    margin-top: 80px;
  }
}

/* Help pages: no coloured tab on top of the page block, like the rest of the store */
.cms-page-accent-block {
  display: none;
}

/* ==========================================================================
   Help pages: terms, rules, FAQ, staff and vote
   ========================================================================== */

/* The section heading below the navigation provides the spacing; a plain page block gets its own */
.help-nav {
  margin-bottom: 0;
}

.help-nav + .grid-row {
  margin-top: 2rem;
}

/* Shared card */
.help-card {
  margin-top: 1.25rem;
  padding: 1.75rem;
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.package-section-header + .help-card,
.package-section-header + .help-rules .help-card {
  margin-top: 0;
}

.help-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.help-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--block-dark);
  border-radius: calc(var(--border-radius) - 2px);
  color: var(--secondary-color);
  font-size: 1.25rem;
}

.help-card-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
}

.help-card-text {
  margin: 0.35rem 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.help-rich-text p {
  margin: 0 0 0.75rem;
}

/* Terms */
.help-terms-intro {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.help-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

/* Rules: two numbered lists */
.help-rules {
  gap: 1.25rem;
}

.help-rules-card {
  height: 100%;
  margin-top: 0;
}

.help-rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  counter-reset: help-rule;
}

.help-rule {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.7rem 0.9rem 0.7rem 0.7rem;
  background: var(--block-dark);
  border-radius: calc(var(--border-radius) - 2px);
  counter-increment: help-rule;
}

.help-rule-number {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--block-light);
  border-radius: 8px;
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 800;
}

.help-rule-number::before {
  content: counter(help-rule);
}

.help-rule-text {
  padding-top: 0.2rem;
  color: var(--text-primary);
  font-size: 0.93rem;
  line-height: 1.55;
}

.help-note {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.help-note i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

/* FAQ: contact block below the questions */
.help-contact {
  margin-top: 2rem;
}

.help-contact .help-card-text {
  margin-top: 0.2rem;
}

.help-contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.help-contact-buttons .secondary-button {
  padding: 0.6rem 1.1rem;
  gap: 0.55rem;
}

/* Staff: one compact grid sorted by role, each role with its own tag colour */
.help-staff {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.help-staff-card {
  --role-color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.65rem;
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.role-owner { --role-color: #FF4D5E; }
.role-manager { --role-color: #FF9F1A; }
.role-srmod { --role-color: #B26BFF; }
.role-mod { --role-color: #4D9BFF; }
.role-helper { --role-color: #2ED98A; }
.role-jrhelper { --role-color: #8CE8C8; }

.help-staff-stage {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: var(--block-dark);
  border-radius: calc(var(--border-radius) - 2px);
}

.help-staff-stage img {
  display: block;
  width: 68px;
  height: auto;
  image-rendering: pixelated;
}

.help-staff-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.help-staff-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.5rem;
}

.help-staff-badge {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--role-color);
  color: #141414;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.help-staff-name {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.help-staff-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.45;
}

/* Thank-you message from the owners */
.help-staff-thanks {
  margin-top: 2.5rem;
}

.help-staff-thanks .help-card-icon {
  color: var(--primary-color);
}

.help-staff-thanks-text {
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.8;
}

.help-staff-signature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--block-border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.help-staff-signature strong {
  color: var(--text-primary);
}

.help-staff-signature-heads {
  display: flex;
  flex-shrink: 0;
}

.help-staff-signature-heads img {
  width: 32px;
  height: 32px;
  border: 2px solid var(--block-color);
  border-radius: 8px;
  image-rendering: pixelated;
}

.help-staff-signature-heads img + img {
  margin-left: -6px;
}

/* Patrons: built from the shared blocks (help-card, help-reward, section headings, staff cards) so the page
   matches the rest of the store; milestones fill the row whatever their number */
.help-reward-list.patron-milestones {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.patron-milestones .help-reward-icon {
  color: var(--secondary-color);
}

.patron-milestone-text {
  display: flex;
  flex-direction: column;
}

.patron-milestone-label {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.package-section-header + .patron-empty {
  margin-top: 0;
}

/* Phone: the milestones stay side by side, icon above the amount */
@media (max-width: 560px) {
  .help-reward-list.patron-milestones {
    grid-template-columns: repeat(auto-fit, minmax(66px, 1fr));
    gap: 0.5rem;
  }

  .patron-milestones .help-reward {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.75rem 0.35rem;
    text-align: center;
  }

  .patron-milestones .help-reward-text {
    font-size: 0.82rem;
  }
}

/* Vote: rewards, then one card per vote site */
.help-reward-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.help-reward {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: var(--block-dark);
  border-radius: calc(var(--border-radius) - 2px);
}

.help-reward-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--block-light);
  border-radius: 8px;
  color: var(--positive);
  font-size: 1rem;
}

.help-reward-text {
  color: var(--text-primary);
  font-size: 0.93rem;
  font-weight: 600;
}

.help-vote-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.help-vote-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 1.5rem 1.1rem;
  background: var(--block-color);
  border: var(--block-border-width) solid var(--block-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
}

.help-vote-number {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--block-dark);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 800;
}

.help-vote-name {
  flex: 1;
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.help-vote-button {
  width: 100%;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
}

.help-vote-soon {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 1rem;
  background: var(--block-dark);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 991px) {
  .help-reward-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-vote-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .help-vote-card {
    flex-direction: row;
    padding: 1rem 1.1rem;
    text-align: left;
  }

  .help-vote-button,
  .help-vote-soon {
    width: auto;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .help-rules .col-6 {
    grid-column: span 12;
  }

  .help-link-grid {
    grid-template-columns: 1fr;
  }

  .help-card {
    padding: 1.25rem;
  }

  .help-staff {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .help-staff {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .help-staff-stage {
    width: 64px;
    height: 64px;
  }

  .help-staff-stage img {
    width: 58px;
  }

  .help-vote-card {
    gap: 0.75rem;
  }

  .help-vote-number {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
}
