
/* Base import context: tokens.css already defines variables */

body.maya-body {
  background: radial-gradient(circle at top, #16281f 0, #0e1b14 55%, #050a07 100%);
  color: var(--fg);
  font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  direction: rtl;
}

/* Reuse container style */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Header re-use (بسيط – نفس روح main styles.css) */
.maya-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(6, 12, 9, 0.96), rgba(6, 12, 9, 0.88));
  border-bottom: 1px solid rgba(38, 66, 51, 0.9);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #ffffff22, #2e7d6a 35%, #16281f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #f7f7f5;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35);
}

.brand-mark.small {
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.nav-links a:hover {
  color: var(--fg);
  background: rgba(46, 125, 106, 0.12);
  transform: translateY(-1px);
}

.nav-links .nav-active {
  color: var(--fg);
  background: rgba(46, 125, 106, 0.2);
}

.nav-btn {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.nav-login {
  border-color: rgba(46, 125, 106, 0.6);
  color: var(--brand-light);
  background: transparent;
}

.nav-login:hover {
  background: rgba(46, 125, 106, 0.12);
}

.nav-cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #050a07;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.nav-cta:hover {
  filter: brightness(1.05);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 999px;
}

/* ===== Plans Hero ===== */
.plans-hero {
  padding-block: 4rem 2.5rem;
  background: radial-gradient(circle at top, #1a2f24 0, #050b08 85%);
  border-bottom: 1px solid rgba(38, 66, 51, 0.9);
}

.plans-hero-inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.plans-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(6, 95, 70, 0.1);
  color: var(--accent-gold);
  font-size: 0.8rem;
  margin-bottom: 0.9rem;
}

.plans-hero h1 {
  margin: 0 0 0.7rem;
  font-size: 1.8rem;
}

.plans-hero-sub {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

.plans-hero-badges {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.plans-hero-badges span {
  font-size: 0.85rem;
  color: var(--brand-light);
  background: rgba(6, 95, 70, 0.16);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(46, 125, 106, 0.6);
}

/* ===== Plans Section ===== */
.plans-section {
  padding-block: 3rem 4rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
}

/* Plan Card */
.plan-card {
  position: relative;
  background: rgba(9, 15, 11, 0.96);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.2rem 1.25rem;
  border: 1px solid rgba(46, 125, 106, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.plan-featured {
  background: radial-gradient(circle at top, #1f3b2f 0, #060b09 85%);
  border-color: rgba(212, 175, 55, 0.7);
  transform: translateY(-6px);
}

.plan-ribbon {
  position: absolute;
  inset-block-start: 0.7rem;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  padding: 0.18rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  background: linear-gradient(135deg, var(--accent-gold), #ffe58f);
  color: #3b2f09;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.plan-header {
  margin-top: 0.4rem;
}

.plan-name {
  margin: 0 0 0.2rem;
  font-size: 1.2rem;
}

.plan-tagline {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Prices */
.plan-price-block {
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  background: rgba(5, 10, 7, 0.9);
  border: 1px solid rgba(46, 125, 106, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.price-current {
  font-size: 1.7rem;
  font-weight: 700;
}

.price-currency {
  font-size: 0.9rem;
  color: var(--muted);
}

.price-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.price-meta strong {
  color: var(--brand-light);
}

/* Features */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.plan-features li {
  position: relative;
  padding-inline-start: 0.9rem;
}

.plan-features li::before {
  content: "•";
  position: absolute;
  inset-inline-start: 0;
  color: var(--brand-light);
}

/* CTA block */
.plan-cta-block {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.plan-primary-btn {
  background: linear-gradient(135deg, #ec4899, #f97316);
  color: #111827;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.3);
}

.plan-primary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.plan-secondary-btn {
  border-color: rgba(148, 163, 184, 0.8);
  color: var(--fg);
  background: transparent;
}

.plan-secondary-btn:hover {
  background: rgba(15, 23, 42, 0.9);
}

.plan-note {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Selected state (عن طريق JS) */
.plan-card.selected {
  box-shadow: 0 22px 55px rgba(236, 72, 153, 0.35);
  border-color: rgba(236, 72, 153, 0.9);
}

/* Summary under plans */
.plans-summary {
  margin-top: 2.5rem;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
}

.plans-summary-note {
  margin-top: 0.8rem;
  font-size: 0.8rem;
}

/* Footer (copy of main style) */
.maya-footer {
  border-top: 1px solid rgba(38, 66, 51, 0.9);
  padding-block: 1.8rem;
  background: #050a07;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 0.9rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-title {
  margin: 0 0 0.15rem;
  font-weight: 600;
}

.footer-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--fg);
}

.footer-copy {
  width: 100%;
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* General anchor color */
a {
  color: var(--brand-light);
}

/* Responsive */
@media (max-width: 960px) {
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset-inline: 0;
    inset-block-start: 64px;
    background: rgba(5, 10, 7, 0.98);
    border-top: 1px solid rgba(38, 66, 51, 0.9);
    flex-direction: column;
    padding: 0.75rem 1.25rem 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .plans-hero {
    padding-block: 3rem 2.2rem;
  }

  .plans-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
