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;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Header */
.maya-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(6, 12, 9, 0.97), rgba(6, 12, 9, 0.9));
  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;
}

/* Hero */
.dash-hero {
  padding-block: 3.5rem 2.5rem;
  background: radial-gradient(circle at top, #1a2f24 0, #050b08 85%);
  border-bottom: 1px solid rgba(38, 66, 51, 0.9);
}

.dash-hero-inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.dash-hero-inner h1 {
  margin: 0 0 0.7rem;
  font-size: 1.8rem;
}

.dash-hero-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Layout */
.dash-section {
  padding-block: 3rem 4rem;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: flex-start;
}

.dash-main,
.dash-side {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Card */
.dash-card {
  background: rgba(9, 15, 11, 0.98);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem 1.5rem;
  border: 1px solid rgba(46, 125, 106, 0.6);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.dash-side-card {
  border-color: rgba(75, 85, 99, 0.9);
}

.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.dash-card-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

/* Badge */
.badge {
  font-size: 0.78rem;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(34, 197, 94, 0.7);
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.15);
}

/* Active plan */
.dash-plan-title {
  margin: 0 0 0.8rem;
  font-size: 1.25rem;
}

.dash-plan-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.meta-label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.meta-value {
  font-size: 0.95rem;
}

.dash-plan-note {
  margin: 0 0 0.8rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.dash-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.7rem 1.3rem;
  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);
}

.btn-primary {
  background: linear-gradient(135deg, #ec4899, #f97316);
  color: #111827;
  font-weight: 600;
  box-shadow: 0 14px 35px rgba(236, 72, 153, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn-secondary {
  border-color: rgba(148, 163, 184, 0.85);
  color: var(--fg);
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.9);
}

/* Progress */
.dash-progress {
  margin-bottom: 1.2rem;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding-inline: 0.25rem;
  margin-bottom: 0.3rem;
}

.progress-steps::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.5rem;
  inset-inline-end: 0.5rem;
  top: 50%;
  height: 2px;
  background: rgba(55, 65, 81, 0.8);
  transform: translateY(-50%);
  z-index: 0;
}

.progress-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  margin: 0 auto 0.3rem;
  border: 2px solid rgba(148, 163, 184, 0.9);
  background: #020617;
}

.progress-step.done .step-dot {
  border-color: rgba(34, 197, 94, 0.9);
  background: rgba(22, 163, 74, 0.9);
}

.progress-step.active .step-dot {
  border-color: rgba(249, 115, 22, 0.9);
  background: rgba(248, 250, 252, 0.95);
}

.step-label {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Timeline */
.dash-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.timeline-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.timeline-item.muted h3,
.timeline-item.muted p {
  opacity: 0.7;
}

/* Quick stats */
.quick-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quick-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.qs-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.qs-value {
  font-size: 0.95rem;
}

/* Tips */
.tips-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.tips-list li {
  position: relative;
  padding-inline-start: 0.9rem;
}

.tips-list li::before {
  content: "•";
  position: absolute;
  inset-inline-start: 0;
  color: var(--brand-light);
}

.side-cta-text {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.btn-full {
  width: 100%;
}

/* ===== Affiliate Card (NEW) ===== */
.affiliate-card{
  position: relative;
  overflow: hidden;
  border-color: rgba(236, 72, 153, 0.22);
  background: linear-gradient(180deg, rgba(9, 15, 11, 0.98), rgba(12, 20, 15, 0.96));
}

.affiliate-card::after{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(circle at 0% 0%, rgba(236, 72, 153, 0.22), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(249, 115, 22, 0.18), transparent 55%);
  pointer-events:none;
  opacity:0.85;
}

.affiliate-head{
  position: relative;
  z-index: 1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:0.75rem;
  margin-bottom:0.6rem;
}

.affiliate-pill{
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(236, 72, 153, 0.35);
  background: rgba(236, 72, 153, 0.12);
  color: rgba(249, 250, 251, 0.95);
}

.affiliate-sub{
  position: relative;
  z-index: 1;
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.affiliate-levels{
  position: relative;
  z-index: 1;
  display:flex;
  flex-wrap:wrap;
  gap:0.5rem;
  margin-bottom:0.9rem;
}

.aff-level{
  font-size: 0.82rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(46, 125, 106, 0.45);
  background: rgba(6, 95, 70, 0.12);
  color: var(--fg);
}

.affiliate-note{
  position: relative;
  z-index: 1;
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Footer */
.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);
}

/* Links */
a {
  color: var(--brand-light);
}

/* Responsive */
@media (max-width: 960px) {
  .dash-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dash-plan-meta {
    grid-template-columns: minmax(0, 1fr);
  }
}

@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;
  }

  .dash-hero {
    padding-block: 3rem 2.2rem;
  }
}

