/* Keep the original Discord Bot game-card presentation under its ServerHub name. */
#planGrid[data-serverhub-plan] {
  width: min(100%, 360px);
  max-width: none;
  margin: 0;
  justify-self: center;
  grid-template-columns: minmax(0, 1fr);
}

#planGrid[data-serverhub-plan] .game-card {
  border-color: rgba(87, 242, 135, 0.22);
  background:
    linear-gradient(155deg, rgba(35, 165, 90, 0.14), transparent 40%),
    linear-gradient(170deg, rgba(14, 24, 18, 0.96), rgba(8, 14, 10, 0.98));
}

#planGrid[data-serverhub-plan] .plan-price {
  display: block;
}

#planGrid[data-serverhub-plan] .sh-plan-price-amount {
  display: block;
  margin: 0;
  color: #fff;
  font-size: 1em;
  letter-spacing: .01em;
  text-transform: none;
}

#planGrid[data-serverhub-plan] #serverHubFeaturesPricePeriod {
  display: block;
  margin-top: .08rem;
  color: var(--accent-cool);
  font-family: inherit;
  font-size: .54em;
  font-weight: inherit;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

#planGrid[data-serverhub-plan] [hidden] {
  display: none !important;
}

#planGrid[data-serverhub-plan] .game-card-content {
  padding-top: 1.15rem;
}

#planGrid[data-serverhub-plan] .genre-pill {
  width: fit-content;
}

#planGrid[data-serverhub-plan] .game-card-content h3 {
  margin: .45rem 0;
  color: #fff;
  font-family: "Teko", Impact, sans-serif;
  font-size: 1.5rem;
  letter-spacing: .02em;
  line-height: 1;
  text-shadow: none;
}

#planGrid[data-serverhub-plan] #serverHubFeaturesPlanName {
  margin-bottom: .7rem;
}

#planGrid[data-serverhub-plan] .sh-features-plan-benefits {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
  opacity: .88;
}

#planGrid[data-serverhub-plan] .button.small {
  width: 100%;
  margin-top: auto;
  justify-content: center;
  font-size: .95rem;
}

#planGrid[data-serverhub-plan] .sh-features-plan-status {
  margin: .7rem 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}

#planGrid[data-serverhub-plan] .sh-features-plan-status:empty {
  display: none;
}

#planGrid[data-serverhub-plan] .sh-features-retry {
  min-height: 36px;
  align-self: flex-start;
  margin-top: .4rem;
  padding: 0;
  border: 0;
  background: none;
  color: #e5e9ee;
  font-family: inherit;
  font-size: .9rem;
  cursor: pointer;
}

#planGrid[data-serverhub-plan] :is(a, button):focus-visible {
  outline: 2px solid #7de3ff;
  outline-offset: 4px;
}

@media (max-width: 350px) {
  #planGrid[data-serverhub-plan] .plan-price {
    top: 1.25rem;
    right: 1.25rem;
  }
}

/* /serverhub/features keeps its compact square presentation. */
.serverhub-features-page #planGrid[data-serverhub-plan] .game-card {
  border: 1px solid #43494f;
  border-top: 2px solid var(--sh-start-red, #f33836);
  border-radius: 2px;
  background: #111518;
  box-shadow: none;
  transform: none;
}

.serverhub-features-page #planGrid[data-serverhub-plan] .game-card,
.serverhub-features-page #planGrid[data-serverhub-plan] .game-card *,
.serverhub-features-page #planGrid[data-serverhub-plan] .game-card::before {
  animation: none;
  transition: none;
}

.serverhub-features-page #planGrid[data-serverhub-plan] .game-card::before {
  content: none;
}

.serverhub-features-page #planGrid[data-serverhub-plan] .game-card:is(:hover, :focus-within) {
  border-color: #43494f;
  border-top-color: var(--sh-start-red, #f33836);
  box-shadow: none;
  transform: none;
}

.serverhub-features-page #planGrid[data-serverhub-plan] .plan-price {
  position: static;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 7px;
  margin: 0;
  padding: 14px 18px 12px;
  border-bottom: 1px solid #333a40;
  font-size: 42px;
  line-height: 1;
  text-align: left;
  text-shadow: none;
  transform: none;
}

.serverhub-features-page #planGrid[data-serverhub-plan] .game-card:is(:hover, :focus-within) .plan-price {
  text-shadow: none;
  transform: none;
}

.serverhub-features-page #planGrid[data-serverhub-plan] .plan-price .sh-features-price-label {
  display: block;
  width: 100%;
  margin: 0 0 6px;
  color: #b8c0c9;
  font-family: "Rajdhani", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.serverhub-features-page #planGrid[data-serverhub-plan] #serverHubFeaturesPrice {
  display: inline;
  margin: 0;
  color: #fff;
  font-size: 1em;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.serverhub-features-page #planGrid[data-serverhub-plan] #serverHubFeaturesPricePeriod {
  display: inline;
  margin: 0;
  color: #c0c8d0;
  font-family: "Rajdhani", sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.serverhub-features-page #planGrid[data-serverhub-plan] .game-card-content {
  padding: 16px 18px;
}

.serverhub-features-page #planGrid[data-serverhub-plan] .genre-pill {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #b8c0c9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
}

.serverhub-features-page #planGrid[data-serverhub-plan] .game-card-content h2 {
  margin: 0 0 8px;
  color: #fff;
  font-family: "Teko", Impact, sans-serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.05;
}

.serverhub-features-page #planGrid[data-serverhub-plan] #serverHubFeaturesPlanName {
  margin: 0;
  color: #edf0f3;
  font-size: 15px;
  font-weight: 700;
}

.serverhub-features-page #planGrid[data-serverhub-plan] .sh-features-plan-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
  opacity: 1;
}

.serverhub-features-page #planGrid[data-serverhub-plan] .sh-features-plan-benefits li {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #dce1e7;
  font-size: 15px;
  line-height: 1.35;
}

.serverhub-features-page #planGrid[data-serverhub-plan] .sh-features-plan-benefits li:last-child {
  grid-column: 1 / -1;
}

.serverhub-features-page #planGrid[data-serverhub-plan] .sh-features-plan-benefits li::before {
  content: "✓";
  flex-shrink: 0;
  color: #77dca5;
  font-size: 13px;
}

.serverhub-features-page #planGrid[data-serverhub-plan] .button.small {
  min-height: 40px;
  margin-top: auto;
  padding: 9px 12px;
  border-radius: 2px;
  background: #d90d09;
  box-shadow: none;
  font-size: 16px;
  transform: none;
}

.serverhub-features-page #planGrid[data-serverhub-plan] .sh-features-plan-status {
  margin: 8px 0 0;
  color: #b5bec8;
  font-size: 13px;
  line-height: 1.35;
}

.serverhub-features-page #planGrid[data-serverhub-plan] .sh-features-plan-existing {
  padding-top: 10px;
  margin: 10px 0 0;
  border-top: 1px solid #333a40;
  color: #c5cdd5;
  font-size: 13px;
  line-height: 1.35;
}

.serverhub-features-page #planGrid[data-serverhub-plan] .sh-features-plan-existing a {
  color: #7de3ff;
  text-underline-offset: 3px;
}
