/* ── Unified Shop (shop.html) ── */

.shop-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  width: 100%;
  margin: 0 0 1.35rem;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.28);
}

.shop-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.6rem 0.45rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.shop-tab-ico {
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
}

.shop-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.shop-tab.active {
  color: #050608;
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  border-color: rgba(34, 197, 94, 0.85);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.28);
}

.shop-tab-panes {
  min-height: 200px;
}

.shop-membership-status {
  margin: 0 0 0.75rem;
}

.shop-membership-status.hidden {
  display: none;
}

.shop-tab-pane {
  display: none;
  flex-direction: column;
  gap: 1rem;
  animation: shop-pane-in 0.22s ease;
}

.shop-tab-pane.active {
  display: flex;
}

.shop-tab-pane.hidden {
  display: none !important;
}

@keyframes shop-pane-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shop-pane-lead {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 72ch;
}

.shop-unified {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.shop-section {
  scroll-margin-top: 5rem;
}

.shop-section-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-section-icon {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.shop-section-bp .shop-section-icon {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.35);
}

.shop-section-membership .shop-section-icon {
  background: rgba(240, 193, 77, 0.12);
  border-color: rgba(240, 193, 77, 0.35);
}

.shop-section-donate .shop-section-icon {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.35);
}

.shop-section-spend .shop-section-icon {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.35);
}

.shop-section-head h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.shop-section-head p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 52ch;
}

.shop-subsection {
  margin-top: 1.75rem;
}

.shop-subsection:first-of-type {
  margin-top: 0;
}

.shop-subsection-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.shop-subsection-title span {
  font-family: var(--font-body, inherit);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.shop-product-grid,
.shop-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.15rem;
  max-width: none;
  margin: 0;
}

.shop-hub-page .hub-tier-grid.shop-tier-grid {
  max-width: none;
}

@media (min-width: 1100px) {
  .shop-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-tier-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

.shop-notice {
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.06);
}

.shop-notice h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.shop-notice p {
  margin: 0 0 0.65rem;
}

.shop-foot {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  text-align: center;
}

.shop-balance-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

/* Donate cards */
.shop-donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.shop-donate-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem 1.1rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(22, 27, 38, 0.98), rgba(10, 12, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.shop-donate-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.shop-donate-card.is-you {
  border-color: rgba(240, 193, 77, 0.55);
  box-shadow: 0 0 0 1px rgba(240, 193, 77, 0.2);
}

.shop-donate-card-gem {
  font-size: 1.75rem;
  line-height: 1;
}

.shop-donate-card-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.shop-donate-card-income {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.shop-donate-card-income strong {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #4ade80;
}

.shop-donate-card-eur {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #f0c14d;
}

.shop-donate-card .shop-donate-btn {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-donate-status {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.35);
  font-size: 0.88rem;
}

.shop-donate-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.35rem;
  text-align: center;
}

.shop-donate-rules {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(251, 146, 60, 0.3);
  background: rgba(251, 146, 60, 0.05);
  font-size: 0.82rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.shop-donate-rules ul {
  margin: 0;
  padding-left: 1.1rem;
}

.shop-donate-rules li + li {
  margin-top: 0.3rem;
}

.shop-blue-support {
  position: relative;
  margin: 0 0 1.75rem;
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.45);
  background: linear-gradient(145deg, rgba(30, 58, 138, 0.35) 0%, rgba(15, 23, 42, 0.85) 55%);
  overflow: hidden;
}

.shop-blue-support-below-stripe {
  margin: 1.75rem 0 0;
}

.shop-blue-support-glow {
  position: absolute;
  inset: -40% auto auto -20%;
  width: 55%;
  height: 120%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.shop-blue-support-body {
  position: relative;
  padding: 1.35rem 1.4rem 1.25rem;
  text-align: center;
}

.shop-blue-support-heart {
  font-size: 1.75rem;
  line-height: 1;
  display: block;
  margin-bottom: 0.35rem;
}

.shop-blue-support-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93c5fd;
}

.shop-blue-support-lead {
  margin: 0 auto 0.85rem;
  max-width: 42ch;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.shop-blue-support-points {
  margin: 0 auto 1.1rem;
  padding: 0;
  list-style: none;
  max-width: 38ch;
  text-align: left;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.shop-blue-support-points li {
  position: relative;
  padding-left: 1.1rem;
}

.shop-blue-support-points li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #60a5fa;
  font-weight: 700;
}

.shop-blue-support-points li + li {
  margin-top: 0.35rem;
}

.shop-blue-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: min(100%, 280px);
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  border: 1px solid rgba(147, 197, 253, 0.5);
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #fff !important;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.shop-blue-support-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

.shop-blue-support-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 800;
  font-family: system-ui, sans-serif;
}

.shop-blue-support-foot {
  margin: 0.85rem 0 0;
}

.shop-donate-tiers-heading {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.shop-donate-tiers-sub {
  margin: 0 0 1rem;
}

/* Spend BP grid */
.shop-spend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.shop-spend-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(165deg, rgba(22, 27, 38, 0.95), rgba(12, 14, 20, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.shop-spend-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
}

.shop-spend-card.accent-green:hover { border-color: rgba(74, 222, 128, 0.45); }
.shop-spend-card.accent-purple:hover { border-color: rgba(167, 139, 250, 0.45); }
.shop-spend-card.accent-gold:hover { border-color: rgba(240, 193, 77, 0.45); }
.shop-spend-card.accent-blue:hover { border-color: rgba(56, 189, 248, 0.45); }

.shop-spend-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-spend-body strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.shop-spend-body span {
  display: block;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.shop-spend-arrow {
  margin-left: auto;
  align-self: center;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.2s, transform 0.2s;
}

.shop-spend-card:hover .shop-spend-arrow {
  color: rgba(142, 200, 255, 0.85);
  transform: translateX(3px);
}

.shop-hub-main {
  max-width: 1320px;
}

/* Membership grids — multi-column; override nexus-ui single-column hub-tier-grid */
.shop-hub-page .hub-tier-grid.shop-tier-grid,
.shop-hub-page .membership-monthly-grid.hub-tier-grid,
.shop-hub-page .membership-compact-grid.hub-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem 1.5rem;
  width: 100%;
  max-width: none;
  margin: 0;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .shop-hub-page .hub-tier-grid.shop-tier-grid,
  .shop-hub-page .membership-monthly-grid.hub-tier-grid,
  .shop-hub-page .membership-compact-grid.hub-tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .shop-hub-page .hub-tier-grid.shop-tier-grid,
  .shop-hub-page .membership-monthly-grid.hub-tier-grid,
  .shop-hub-page .membership-compact-grid.hub-tier-grid {
    grid-template-columns: 1fr;
  }
}

.shop-hub-page .hub-tier-card {
  min-height: 0;
  padding: 1rem 0.95rem 0.9rem;
}

.shop-hub-page .tier-icon-wrap {
  width: 52px;
  height: 52px;
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.shop-hub-page .hub-tier-value-badge {
  margin-bottom: 0.45rem;
}

.shop-hub-page .hub-tier-card h3 {
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.55rem;
}

.shop-hub-page .tier-price-inset {
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.7rem;
}

.shop-hub-page .tier-price-num {
  font-size: 1.1rem;
}

.shop-hub-page .tier-income-box {
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.65rem;
}

.shop-hub-page .membership-perks {
  max-height: 190px;
  margin-bottom: 0.75rem;
  font-size: 0.74rem;
}

.shop-hub-page .hub-tier-perks li {
  padding: 0.25rem 0;
}

.shop-hub-page .hub-tier-card .hub-tier-btn {
  margin-top: auto;
}

.shop-hub-page .hub-tier-note {
  font-size: 0.72rem;
  line-height: 1.4;
  min-height: 2.5rem;
}

@media (max-width: 900px) {
  .shop-hub-page .shop-product-grid,
  .shop-hub-page .shop-tier-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 720px) {
  .shop-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .shop-tab {
    font-size: 0.65rem;
    padding: 0.55rem 0.35rem;
  }

  .shop-tab-ico {
    font-size: 0.85rem;
  }
}
