:root{
  --bg:#050816;
  --bg-2:#091225;
  --card:#0c1630cc;
  --stroke:rgba(255,255,255,.09);
  --text:#f4f7ff;
  --muted:rgba(244,247,255,.72);
  --cyan:#24e7ff;
  --cyan-soft:rgba(36,231,255,.18);
  --gold:#ffd76b;
  --gold-soft:rgba(255,215,107,.18);
  --violet:#8c7dff;
  --shadow:0 20px 60px rgba(0,0,0,.45);
}

*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
  font-family:"Vazirmatn", sans-serif;
  background:var(--bg);
  color:var(--text);
  min-height:100%;
}

body{
  position:relative;
  overflow-x:hidden;
}

.page-bg{
  position:fixed;
  inset:0;
  z-index:-3;
  background:
    radial-gradient(900px 400px at 50% -10%, rgba(36,231,255,.12), transparent 60%),
    radial-gradient(600px 300px at 10% 20%, rgba(140,125,255,.12), transparent 60%),
    radial-gradient(600px 300px at 90% 15%, rgba(255,215,107,.08), transparent 60%),
    linear-gradient(180deg, #040816 0%, #07101f 100%);
}

.page-noise{
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  opacity:.08;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size:28px 28px;
  mask-image:radial-gradient(circle at center, black 35%, transparent 100%);
}

.topbar{
  width:min(1280px, calc(100% - 32px));
  margin:18px auto 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 18px;
  border:1px solid var(--stroke);
  border-radius:20px;
  background:rgba(10,18,38,.62);
  backdrop-filter:blur(16px);
  box-shadow:var(--shadow);
}

.brand{
  font-size:1rem;
  font-weight:900;
  letter-spacing:2px;
  color:var(--cyan);
  text-shadow:0 0 16px rgba(36,231,255,.35);
}

.back-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:#fff;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  padding:10px 16px;
  border-radius:14px;
  transition:.25s ease;
}

.back-btn:hover{
  transform:translateY(-2px);
  border-color:rgba(36,231,255,.35);
  box-shadow:0 0 18px rgba(36,231,255,.12);
}

.pricing-page{
  width:min(1280px, calc(100% - 32px));
  margin:0 auto;
  padding:48px 0 72px;
}

.hero{
  text-align:center;
  max-width:920px;
  margin:0 auto 42px;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid rgba(36,231,255,.22);
  background:rgba(36,231,255,.08);
  color:#dffcff;
  box-shadow:0 0 20px rgba(36,231,255,.12);
  margin-bottom:18px;
  font-weight:700;
}

.hero h1{
  margin:0 0 14px;
  font-size:clamp(2.2rem, 5vw, 4.8rem);
  line-height:1.15;
  font-weight:900;
  letter-spacing:-.5px;
}

.hero p{
  margin:0 auto;
  max-width:780px;
  color:var(--muted);
  font-size:1.05rem;
  line-height:2;
}

.plans-wrap{
  position:relative;
}

.plans-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
  align-items:stretch;
}

.plan-card{
  position:relative;
  display:flex;
  flex-direction:column;
  padding:28px 22px 22px;
  border-radius:28px;
  border:1px solid var(--stroke);
  background:linear-gradient(180deg, rgba(12,22,48,.92), rgba(8,15,33,.82));
  backdrop-filter:blur(18px);
  box-shadow:var(--shadow);
  overflow:hidden;
  min-height:620px;
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.plan-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(300px 140px at 50% 0%, rgba(255,255,255,.06), transparent 60%);
  pointer-events:none;
}

.plan-card:hover{
  transform:translateY(-10px);
  box-shadow:0 28px 80px rgba(0,0,0,.52);
}

.featured-plan{
  transform:translateY(-14px) scale(1.01);
  border:1px solid rgba(36,231,255,.34);
  box-shadow:
    0 28px 90px rgba(0,0,0,.58),
    0 0 30px rgba(36,231,255,.12);
}

.featured-plan:hover{
  transform:translateY(-18px) scale(1.015);
}

.vip-plan{
  border-color:rgba(255,215,107,.28);
  box-shadow:
    0 24px 80px rgba(0,0,0,.55),
    0 0 24px rgba(255,215,107,.09);
}

.plan-icon{
  width:78px;
  height:78px;
  border-radius:24px;
  display:grid;
  place-items:center;
  margin:0 auto 16px;
  font-size:1.9rem;
  color:#fff;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
}

.pro-icon{
  color:var(--cyan);
  background:rgba(36,231,255,.08);
  border-color:rgba(36,231,255,.18);
  box-shadow:0 0 22px rgba(36,231,255,.12);
}

.vip-icon{
  color:var(--gold);
  background:rgba(255,215,107,.10);
  border-color:rgba(255,215,107,.22);
  box-shadow:0 0 24px rgba(255,215,107,.12);
}

.plan-card h2{
  margin:0;
  text-align:center;
  font-size:1.6rem;
  font-weight:900;
}

.plan-desc{
  margin:10px 0 22px;
  text-align:center;
  color:var(--muted);
  min-height:52px;
  line-height:1.8;
}

.price-box{
  text-align:center;
  padding:20px 12px 18px;
  border-top:1px solid rgba(255,255,255,.07);
  border-bottom:1px solid rgba(255,255,255,.07);
  margin-bottom:22px;
}

.currency{
  display:block;
  font-size:.95rem;
  color:var(--muted);
  margin-bottom:8px;
}

.price{
  font-size:clamp(3rem, 6vw, 4.8rem);
  line-height:1;
  font-weight:900;
  letter-spacing:-2px;
  color:#fff;
  text-shadow:0 0 18px rgba(255,255,255,.1);
}

.featured-plan .price{
  color:var(--cyan);
  text-shadow:0 0 22px rgba(36,231,255,.22);
}

.vip-plan .price{
  color:var(--gold);
  text-shadow:0 0 22px rgba(255,215,107,.18);
}

.per{
  display:block;
  margin-top:10px;
  color:var(--muted);
  font-size:.9rem;
}

.features-list{
  list-style:none;
  margin:0 0 22px;
  padding:0;
  display:grid;
  gap:12px;
}

.features-list li{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.05);
  color:#f4f7ff;
  line-height:1.8;
}

.features-list li i{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  flex-shrink:0;
  border-radius:10px;
  font-size:.85rem;
  color:var(--cyan);
  background:rgba(36,231,255,.08);
  border:1px solid rgba(36,231,255,.14);
}

.card-footer-note{
  margin-top:auto;
  margin-bottom:16px;
  text-align:center;
  padding:12px 14px;
  border-radius:14px;
  font-weight:700;
  color:#fff;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.06);
}

.plan-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:54px;
  padding:14px 18px;
  border-radius:16px;
  text-decoration:none;
  font-weight:800;
  transition:.25s ease;
  border:1px solid transparent;
}

.solid-btn{
  color:#031019;
  background:linear-gradient(135deg, #6ff6ff, #1fdfff);
  box-shadow:0 12px 30px rgba(36,231,255,.24);
}

.solid-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(36,231,255,.3);
}

.ghost-btn{
  color:#fff;
  background:rgba(255,255,255,.05);
  border-color:rgba(255,255,255,.1);
}

.ghost-btn:hover{
  border-color:rgba(255,255,255,.22);
  transform:translateY(-2px);
}

.gold-btn{
  color:#201400;
  background:linear-gradient(135deg, #ffe08b, #f3c34d);
  box-shadow:0 12px 30px rgba(255,215,107,.2);
}

.gold-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(255,215,107,.28);
}

.featured-badge{
  position:absolute;
  top:18px;
  left:18px;
  padding:8px 12px;
  border-radius:999px;
  font-size:.8rem;
  font-weight:800;
  color:#04131c;
  background:linear-gradient(135deg, #8ff7ff, #22deff);
  box-shadow:0 8px 24px rgba(36,231,255,.24);
}

.vip-ribbon{
  position:absolute;
  top:18px;
  right:-34px;
  transform:rotate(45deg);
  background:linear-gradient(135deg,#ffe08a,#e4b341);
  color:#1c1300;
  font-size:.82rem;
  font-weight:900;
  padding:8px 44px;
  box-shadow:0 10px 24px rgba(0,0,0,.3);
}

.pricing-benefits{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
  margin-top:28px;
}

.benefit-card{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:74px;
  padding:16px 18px;
  border-radius:20px;
  background:rgba(10,18,38,.68);
  border:1px solid var(--stroke);
  box-shadow:var(--shadow);
  text-align:center;
  font-weight:700;
}

.benefit-card i{
  color:var(--gold);
}

@media (max-width: 1100px){
  .plans-grid{
    grid-template-columns:repeat(2, 1fr);
  }

  .featured-plan{
    transform:none;
    order:-1;
  }

  .featured-plan:hover{
    transform:translateY(-10px);
  }

  .pricing-benefits{
    grid-template-columns:1fr;
  }
}

@media (max-width: 768px){
  .topbar{
    width:min(100% - 20px, 100%);
    padding:12px 14px;
    border-radius:16px;
    margin-top:10px;
    flex-direction:column;
  }

  .pricing-page{
    width:min(100% - 20px, 100%);
    padding:28px 0 46px;
  }

  .hero{
    margin-bottom:26px;
  }

  .hero h1{
    line-height:1.25;
  }

  .hero p{
    font-size:.96rem;
    line-height:1.9;
  }

  .plans-grid{
    grid-template-columns:1fr;
    gap:16px;
  }

  .plan-card{
    min-height:auto;
    padding:22px 16px 18px;
    border-radius:22px;
  }

  .plan-icon{
    width:68px;
    height:68px;
    border-radius:20px;
    font-size:1.6rem;
  }

  .plan-card h2{
    font-size:1.3rem;
  }

  .plan-desc{
    min-height:auto;
    margin-bottom:18px;
    font-size:.95rem;
  }

  .price{
    font-size:clamp(2.8rem, 14vw, 4.4rem);
  }

  .features-list li{
    font-size:.94rem;
    padding:11px 12px;
  }

  .benefit-card{
    min-height:auto;
    padding:15px;
    border-radius:16px;
  }

  .vip-ribbon{
    right:-38px;
    font-size:.75rem;
    padding:7px 42px;
  }
}

@media (max-width: 480px){
  .back-btn,
  .brand,
  .hero-badge,
  .benefit-card,
  .card-footer-note{
    font-size:.9rem;
  }

  .hero h1{
    font-size:2rem;
  }

  .price-box{
    padding:16px 10px 14px;
  }

  .plan-btn{
    min-height:50px;
    border-radius:14px;
  }
}
