body {
  margin: 0;
  min-height: 100vh;
  color: #f4f2e9;
  background: #111713;
}

.plans-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.plans-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 20px 80px;
  position: relative;
  z-index: 1;
}

.plans-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.plans-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plans-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f0c98a, #ef9d7a);
  color: #121812;
  font-weight: 800;
}
.brand-mark { background-image: url('/assets/ico.jpg'); background-position: center; background-size: cover; color: transparent; font-size: 0; }

.eyebrow.gold {
  color: #ef9d7a;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

.plans-hero {
  transform-style: preserve-3d;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 260px;
  gap: 18px;
  align-items: center;
  padding: 24px 26px;
  border-radius: 20px;
  background: rgba(18, 23, 19, 0.72);
  border: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 28px;
  animation: plansHeroEnter .75s cubic-bezier(.2, .76, .24, 1) both;
}

@keyframes plansHeroEnter {
  from { opacity: 0; transform: perspective(900px) translate3d(0, 24px, -70px) rotateX(-8deg); }
  to { opacity: 1; transform: perspective(900px) translate3d(0, 0, 0) rotateX(0); }
}

.plans-hero h2 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.plans-hero p {
  margin: 0;
  color: rgba(244,242,233,0.78);
  max-width: 56ch;
}

.summary-pill {
  transform: translateZ(18px);
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 18px 14px;
  border-radius: 18px;
  background: rgba(241,209,123,0.08);
  border: 1px solid rgba(241,209,123,0.35);
}

.summary-pill span,
.summary-pill small,
.payment-note {
  color: rgba(244,242,233,0.72);
}

.summary-pill strong {
  font-size: 2rem;
  color: #f1d17b;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.plan-card {
  transform-style: preserve-3d;
  background: rgba(18, 23, 19, 0.8);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  padding: 22px;
  min-height: 300px;
  transition: transform .35s cubic-bezier(.2,.76,.24,1), border-color .35s ease, box-shadow .35s ease;
  cursor: pointer;
}

.plan-card:hover,
.plan-card.selected {
  transform: perspective(850px) translate3d(0, -5px, 14px) rotateX(2deg) rotateY(-2deg);
  border-color: rgba(241,209,123,0.7);
  box-shadow: 0 25px 48px rgba(0,0,0,0.32);
}

.plan-card.featured {
  border-color: rgba(241,209,123,0.7);
}

.plan-badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(239,163,142,0.1);
  color: #ef9d7a;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan-card h2 {
  margin: 18px 0 12px;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
}

.plan-price {
  font-size: 2.4rem;
  font-weight: 700;
  color: #f1d17b;
  margin: 10px 0 18px;
}

.plan-price span {
  font-size: .9rem;
  color: rgba(244,242,233,0.7);
}

.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
  color: rgba(244,242,233,0.8);
}

.plan-card li::before {
  content: "✓";
  color: #f1d17b;
  margin-right: 10px;
}

.cta-button, .ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 12px;
  text-decoration: none;
  font: inherit;
  border: none;
  cursor: pointer;
}

.cta-button {
  background: linear-gradient(135deg, #f0c98a, #ef9d7a);
  color: #121812;
  padding: 0 18px;
  font-weight: 700;
}

.small-button {
  min-width: 160px;
}

.ghost-link {
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,0.18);
  color: #f4f2e9;
  background: rgba(255,255,255,0.04);
}

.payment-section {
  margin-top: 28px;
  padding: 24px 26px;
  border-radius: 20px;
  background: rgba(18, 23, 19, 0.72);
  border: 1px solid rgba(255,255,255,0.12);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-header h3 {
  margin: 8px 0 0;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  text-align: left;
  color: #f4f2e9;
}

.payment-option strong,
.payment-option small {
  display: block;
}

.payment-option small {
  color: rgba(244,242,233,0.7);
}

.payment-option.active {
  border-color: rgba(241,209,123,0.7);
  background: rgba(241,209,123,0.08);
}

.method-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: #f1d17b;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6,10,9,0.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 30;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  width: min(520px, 100%);
  background: rgba(16, 22, 19, 0.96);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.7rem;
}

.close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #f4f2e9;
  font-size: 1.5rem;
  line-height: 1;
}

.membership-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.membership-summary > div {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
}

.membership-summary span {
  display: block;
  color: rgba(244,242,233,0.7);
  font-size: 11px;
  margin-bottom: 4px;
}

.membership-summary strong {
  color: #f4f2e9;
  font-size: 0.95rem;
}

.membership-form {
  display: grid;
  gap: 14px;
}

.membership-form label {
  display: grid;
  gap: 8px;
  color: rgba(244,242,233,0.8);
  font-size: 12px;
}

.membership-form input,
.membership-form select {
  height: 46px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: #f4f2e9;
  padding: 0 12px;
}

.full-width {
  width: 100%;
}

.form-message {
  min-height: 18px;
  margin: 0;
  color: #f1d17b;
  font-size: 12px;
}

.form-message.success {
  color: #bfe7c9;
}

@media (max-width: 760px) {
  .plans-grid,
  .payment-methods,
  .instagram-grid,
  .membership-summary,
  .plans-hero {
    grid-template-columns: 1fr;
  }

  @media (prefers-reduced-motion: reduce) {
    .plans-hero { animation: none; }
    .plan-card { transition: none; }
    .plan-card:hover, .plan-card.selected { transform: none; }
  }

  .plans-topbar,
  .section-header,
  .plans-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
