/* === Sponsor page === */

body.page-sponsor {
  background: linear-gradient(270deg, #1a1a1a, #222, #1a1a1a);
  background-size: 600% 600%;
  animation: spGradient 15s ease infinite;
  overflow-x: hidden;
}

@keyframes spGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Background image ── */

.sp-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(4px);
  transform: scale(1.04);
  z-index: 0;
  pointer-events: none;
}

.sp-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(26, 26, 26, 0.5) 0%, rgba(26, 26, 26, 0.95) 50%, #1a1a1a 100%);
}

.honeycomb-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.sp-page {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 100px 20px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── Hero ── */

.sp-hero {
  text-align: center;
  padding: 40px 0 8px;
}

.sp-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #D4A373;
  background: rgba(212, 163, 115, 0.1);
  border: 1px solid rgba(212, 163, 115, 0.2);
  padding: 6px 16px;
  margin-bottom: 20px;
}

.sp-heading {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.sp-sub {
  font-size: 1rem;
  color: #949494;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Notice banner ── */

.sp-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(212, 163, 115, 0.06);
  border: 1px solid rgba(212, 163, 115, 0.15);
  padding: 16px 20px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #c4b8a8;
}

.sp-notice-icon {
  flex-shrink: 0;
  color: #D4A373;
  margin-top: 1px;
}

.sp-notice p {
  margin: 0;
}

/* ── Price card ── */

.sp-price-card {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.sp-price-top {
  padding: 32px 32px 24px;
  text-align: center;
}

.sp-price-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #D4A373;
  margin-bottom: 12px;
}

.sp-price-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.sp-price-amount {
  font-size: 56px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.sp-price-currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

.sp-price-period {
  font-size: 1.2rem;
  color: #757575;
}

.sp-price-note {
  font-size: 0.8rem;
  color: #757575;
  margin: 0;
}

.sp-price-bottom {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #D4A373;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 36px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.sp-btn:hover {
  background: #e0b58a;
  transform: translateY(-1px);
}

.sp-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.sp-btn svg {
  flex-shrink: 0;
}

.sp-btn-hint {
  font-size: 0.75rem;
  color: #5a5a5a;
}

/* ── Perks ── */

.sp-section-title {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  text-align: center;
}

.sp-perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sp-perk-flip {
  cursor: pointer;
  display: grid;
  perspective: 600px;
}

.sp-perk-flip .sp-perk-front,
.sp-perk-flip .sp-perk-back {
  backface-visibility: hidden;
  transition: transform 0.5s ease, border-color 0.4s ease;
  grid-area: 1 / 1;
}

.sp-perk-flip:hover .sp-perk-front {
  border-color: #D4A373;
  transform: scale(1.03);
}

.sp-perk-flip.flipped:hover .sp-perk-front {
  transform: rotateY(180deg);
}

.sp-perk-flip .sp-perk-front {
  display: flex;
  flex-direction: column;
}

.sp-perk-flip .sp-perk-back {
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  padding: 20px;
  background: #2a2b2b;
  border: 1px solid rgba(212, 163, 115, 0.2);
}

.sp-perk-flip .sp-perk-back p {
  font-size: 0.78rem;
  color: #b0b0b0;
  line-height: 1.6;
  margin: 0;
}

.sp-perk-flip .sp-perk-back--discord {
  border-color: rgba(88, 101, 242, 0.25);
}

.sp-perk-flip.flipped .sp-perk-front {
  transform: rotateY(180deg);
}

.sp-perk-flip.flipped .sp-perk-back {
  transform: rotateY(0deg);
}

.sp-perk {
  background: #242525;
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 24px 20px;
}

.sp-perk-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 163, 115, 0.08);
  color: #D4A373;
  margin-bottom: 14px;
}

.sp-perk h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  font-family: 'Noto Sans Mono', monospace, inherit;
}

.sp-perk p {
  font-size: 0.8rem;
  color: #757575;
  line-height: 1.5;
  margin: 0;
}

.sp-perk--discord .sp-perk-icon {
  background: rgba(88, 101, 242, 0.12);
  color: #5865F2;
}

/* ── How it works ── */

.sp-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sp-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #242525;
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: -1px;
}

.sp-step:first-child {
  margin-top: 0;
}

.sp-step-num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 163, 115, 0.1);
  color: #D4A373;
  font-size: 0.8rem;
  font-weight: 900;
  flex-shrink: 0;
}

.sp-step p {
  font-size: 0.9rem;
  color: #c4c4c4;
  line-height: 1.5;
  margin: 0;
}

/* ── Sponsor modal ── */

.sp-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sp-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sp-modal {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 420px;
  margin: 20px;
  padding: 28px 24px;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
}

.sp-modal-overlay.active .sp-modal {
  transform: translateY(0) scale(1);
}

.sp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.sp-modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.sp-modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s;
}

.sp-modal-close:hover {
  color: rgba(255, 255, 255, 0.8);
}

.sp-modal-field {
  margin-bottom: 16px;
}

.sp-modal-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.sp-modal-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.sp-modal-input:focus {
  border-color: #D4A373;
}

.sp-modal-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.sp-modal-input--error {
  border-color: rgba(220, 80, 80, 0.7) !important;
}

.sp-modal-textarea {
  resize: vertical;
  min-height: 60px;
  line-height: 1.5;
}

.sp-modal-field-error {
  display: none;
  font-size: 12px;
  color: rgba(220, 80, 80, 0.9);
  margin-top: 4px;
}

.sp-amount-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 10px;
}

.sp-amount-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.sp-amount-btn:hover {
  background: rgba(212, 163, 115, 0.15);
  color: #D4A373;
}

.sp-amount-btn:first-child {
  border-right: none;
}

.sp-amount-btn:last-child {
  border-left: none;
}

.sp-amount-display {
  flex: 1;
  text-align: center;
  padding: 8px 16px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sp-amount-per {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.35);
}

.sp-amount-months {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  margin-bottom: 10px;
}

.sp-currency-toggle {
  display: flex;
  gap: 6px;
}

.sp-currency-btn {
  flex: 1;
  padding: 6px 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-align: center;
}

.sp-currency-btn:hover {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.sp-currency-btn.active {
  background: rgba(212, 163, 115, 0.15);
  border-color: rgba(212, 163, 115, 0.3);
  color: #D4A373;
}

.sp-modal-submit {
  width: 100%;
  margin-top: 4px;
}

/* ── Success state ── */

.sp-modal-success {
  text-align: center;
  padding: 20px 0;
}

.sp-modal-success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: rgba(100, 200, 100, 0.12);
  color: #64c864;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.sp-modal-success h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.sp-modal-success p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin: 0 0 20px;
}



/* ── Discord auth ── */

.sp-discord-auth {
  padding: 32px 16px;
  text-align: center;
}

.sp-discord-auth-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sp-discord-auth-logo {
  color: #5865F2;
}

.sp-discord-auth-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.sp-discord-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #5865F2;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.sp-discord-auth-btn:hover {
  background: #4752C4;
  transform: translateY(-1px);
}

.sp-discord-user {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.2);
  padding: 10px 14px;
  margin-bottom: 16px;
}

.sp-discord-user-icon {
  color: #5865F2;
  flex-shrink: 0;
}

.sp-discord-user-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.sp-discord-user-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.sp-discord-logout {
  margin-left: auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.sp-discord-logout:hover {
  background: rgba(220, 80, 80, 0.15);
  color: rgba(220, 80, 80, 0.9);
}

.sp-discord-error {
  background: rgba(220, 80, 80, 0.08);
  border: 1px solid rgba(220, 80, 80, 0.2);
  color: rgba(220, 80, 80, 0.9);
  font-size: 13px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

/* ── Scroll animations ── */

.sp-anim {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.sp-anim--up {
  transform: translateY(40px);
}

.sp-anim--left {
  transform: translateX(-40px);
}

.sp-anim--right {
  transform: translateX(40px);
}

.sp-anim.sp-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .sp-page {
    padding: 80px 16px 60px;
    gap: 24px;
  }

  .sp-hero {
    padding: 24px 0 0;
  }

  .sp-heading {
    font-size: 24px;
  }

  .sp-sub {
    font-size: 0.9rem;
  }

  .sp-perks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sp-price-amount {
    font-size: 48px;
  }

  .sp-price-top {
    padding: 24px 20px 20px;
  }

  .sp-price-bottom {
    padding: 16px 20px;
  }

  .sp-modal {
    padding: 24px 20px;
    margin: 16px;
  }

}

@media (max-width: 480px) {
  .sp-heading {
    font-size: 22px;
  }

  .sp-perks-grid {
    grid-template-columns: 1fr;
  }

  .sp-notice {
    padding: 14px 16px;
    font-size: 0.8rem;
  }

  .sp-perk {
    padding: 20px 16px;
  }

  .sp-step {
    padding: 14px 16px;
  }
}

@media (min-width: 1440px) {
  .sp-page {
    max-width: 860px;
    padding: 110px 24px 80px;
  }

  .sp-heading {
    font-size: 36px;
  }
}

@media (min-width: 1920px) {
  .sp-page {
    max-width: 960px;
    padding: 120px 32px 80px;
  }

  .sp-heading {
    font-size: 40px;
  }

  .sp-sub {
    font-size: 1.05rem;
  }
}
