/* ================= PLAN REDESIGN ================= */
.plan-screen {
  --plan-card: linear-gradient(180deg, rgba(22, 36, 13, 0.96), rgba(11, 21, 10, 0.98));
  --plan-border: rgba(224, 255, 111, 0.14);
  --plan-text: #f6ffd7;
  --plan-muted: rgba(228, 241, 181, 0.72);
  --plan-accent: #e7ff63;
  --plan-accent-soft: #f4ff97;
  --plan-shadow: rgba(0, 0, 0, 0.28);
  background:
    linear-gradient(180deg, rgba(7, 17, 7, 0.55), rgba(8, 18, 8, 0.72)),
    url("../images/plan-bg.png") center top / cover no-repeat fixed;
  min-height: 100vh;
}

.plan-page {
  width: 100%;
  max-width: 430px;
  margin: auto;
  padding: 110px 12px 110px;
  color: var(--plan-text);
}

.plan-hero {
  margin-bottom: 18px;
  padding: 18px 16px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(18, 29, 13, 0.92), rgba(11, 20, 10, 0.98));
  border: 1px solid var(--plan-border);
  box-shadow: 0 18px 34px var(--plan-shadow);
  text-align: center;
}

.plan-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plan-accent);
  margin-bottom: 10px;
}

.plan-title {
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--plan-muted);
}

.plan-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.plan-card {
  width: 100%;
  padding: 18px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(12, 23, 10, 0.78), rgba(9, 18, 8, 0.88)),
    url("../images/plan-bg.png") center center / cover no-repeat;
  backdrop-filter: blur(12px);
  border: 1px solid var(--plan-border);
  box-shadow:
    0 20px 36px var(--plan-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(231, 255, 99, 0.1), transparent 34%),
    radial-gradient(circle at bottom, rgba(231, 255, 99, 0.16), transparent 38%);
  pointer-events: none;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 26px 42px rgba(0, 0, 0, 0.34),
    0 0 32px rgba(231, 255, 99, 0.08);
}

.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.badge1 {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(231, 255, 99, 0.12);
  border: 1px solid rgba(231, 255, 99, 0.16);
  color: var(--plan-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.plan-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(231, 255, 99, 0.1);
  color: var(--plan-accent-soft);
  border: 1px solid rgba(231, 255, 99, 0.12);
}

.plan-name {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--plan-text);
}

.plan-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin: 18px 0 14px;
}

.plan-coin-stack {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(246, 255, 151, 0.34), rgba(180, 214, 43, 0.18) 42%, rgba(20, 33, 10, 0.45) 82%),
    linear-gradient(180deg, rgba(38, 58, 20, 0.92), rgba(14, 25, 10, 0.98));
  box-shadow:
    0 0 0 10px rgba(231, 255, 99, 0.05),
    0 0 30px rgba(231, 255, 99, 0.18);
}

.plan-coin-stack i {
  font-size: 2.3rem;
  color: var(--plan-accent);
}

.plan-highlight,
.plan-rate {
  position: relative;
  z-index: 1;
  text-align: center;
}

.plan-highlight strong {
  display: block;
  font-size: 1.75rem;
  color: var(--plan-accent-soft);
  line-height: 1.1;
}

.plan-highlight span,
.plan-rate span {
  font-size: 0.82rem;
  color: var(--plan-muted);
}

.plan-rate {
  margin-top: 10px;
}

.plan-rate strong {
  display: block;
  font-size: 1.35rem;
  color: var(--plan-text);
  margin-bottom: 2px;
}

.plan-substats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.plan-mini-stat {
  padding: 12px;
  border-radius: 18px;
  background: rgba(231, 255, 99, 0.06);
  border: 1px solid rgba(231, 255, 99, 0.08);
  text-align: center;
}

.plan-mini-stat span {
  display: block;
  font-size: 0.72rem;
  color: var(--plan-muted);
  margin-bottom: 5px;
}

.plan-mini-stat b {
  font-size: 0.88rem;
  color: var(--plan-text);
}

.plan-features {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(231, 255, 99, 0.1), rgba(92, 116, 21, 0.06));
  border: 1px solid rgba(231, 255, 99, 0.08);
  color: var(--plan-text);
  font-size: 0.75rem;
  line-height: 1.35;
}

.feature i {
  color: var(--plan-accent);
  font-size: 0.92rem;
  flex: 0 0 auto;
}

.plan-btn {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 18px;
  text-align: center;
  padding: 14px 16px;
  border-radius: 999px;
  text-decoration: none;
  background: linear-gradient(180deg, #efff77 0%, #ceef4d 100%);
  color: #182109;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow:
    0 18px 28px rgba(201, 255, 84, 0.18),
    inset 0 -3px 0 rgba(88, 117, 18, 0.14);
  transition: 0.25s ease;
}

.plan-btn:hover {
  box-shadow:
    0 20px 34px rgba(201, 255, 84, 0.26),
    inset 0 -3px 0 rgba(88, 117, 18, 0.12);
}

.plan-btn.btn-loading span {
  visibility: hidden;
}

.plan-btn.btn-loading::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid #24310d;
  border-top-color: transparent;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: planSpin 0.6s linear infinite;
}

@keyframes planSpin {
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (min-width: 350px) {
  .plan-card {
    padding: 16px;
  }

  .plan-name {
    font-size: 1.2rem;
  }

  .plan-highlight strong {
    font-size: 1.45rem;
  }

  .plan-rate strong {
    font-size: 1.15rem;
  }

  .plan-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .feature {
    font-size: 0.66rem;
    min-height: 42px;
    padding: 8px 8px;
    gap: 6px;
  }

  .feature i {
    font-size: 0.8rem;
  }
}

@media (max-width: 520px) {
  .plan-page {
    padding: 102px 12px 108px;
  }

  .plan-card {
    padding: 16px;
  }

  .plan-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
