/* ── Vazirmatn @font-face ────────────────────────────────────────────────── */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Design tokens ───────────────────────────────────────────────────────── */
:root {
  --cream:       #F5F0E6;
  --cream-dark:  #EDE7D7;
  --yellow:      #F5C418;
  --yellow-dark: #E0AD00;
  --yellow-light:#FFF3C4;
  --green:       #1B4332;
  --green-mid:   #2D6A4F;
  --green-light: #40916C;
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --navy:        #1A2340;
  --white:       #FFFFFF;
  --gray-100:    #F8F8F5;
  --gray-200:    #EBEBDF;
  --gray-400:    #9B9680;
  --gray-600:    #6B6550;
  --shadow-sm:   0 2px 8px rgba(27,67,50,.08);
  --shadow-md:   0 6px 24px rgba(27,67,50,.12);
  --shadow-lg:   0 16px 48px rgba(27,67,50,.16);
  --shadow-card: 0 4px 16px rgba(27,67,50,.10);
  --radius:      12px;
  --radius-sm:   8px;
  --radius-pill: 999px;
  --transition:  0.22s ease;
}

/* ── Reset & base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  direction: rtl;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ── Typography scale ────────────────────────────────────────────────────── */
.t-hero    { font-size: clamp(28px, 4vw, 44px); font-weight: 700; line-height: 1.35; color: var(--green); }
.t-h1      { font-size: clamp(22px, 3vw, 34px); font-weight: 700; color: var(--green); }
.t-h2      { font-size: clamp(20px, 2.5vw, 28px); font-weight: 700; color: var(--green); }
.t-h3      { font-size: clamp(17px, 2vw, 22px); font-weight: 600; color: var(--green); }
.t-body    { font-size: 15px; line-height: 1.8; color: var(--navy); }
.t-small   { font-size: 13px; color: var(--gray-600); }
.t-gold    { color: var(--gold); }
.t-green   { color: var(--green); }
.t-navy    { color: var(--navy); }
.t-cream   { color: var(--cream); }
.t-white   { color: var(--white); }

/* ── Layout helpers ──────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.section { padding-block: clamp(48px, 8vw, 96px); }
.section--sm { padding-block: clamp(32px, 5vw, 56px); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.flex     { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

/* ── Section heading ─────────────────────────────────────────────────────── */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--gold);
  background: var(--yellow-light);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  margin-bottom: 12px;
}
.section-head__title {
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}
.section-head__underline {
  display: inline-block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--yellow));
  border-radius: 2px;
  margin-bottom: 16px;
}
.section-head__sub {
  font-size: 15px;
  color: var(--gray-600);
  max-width: 540px;
  margin-inline: auto;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--yellow);
  color: var(--green);
  border-color: var(--yellow);
  box-shadow: 0 4px 16px rgba(245,196,24,.3);
}
.btn-primary:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,196,24,.4);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}

.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 40px; font-size: 17px; }

.btn svg { width: 18px; height: 18px; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

/* ── Course card ─────────────────────────────────────────────────────────── */
.course-card { display: flex; flex-direction: column; }
.course-card__img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.course-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.course-card:hover .course-card__img img { transform: scale(1.05); }
.course-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--yellow);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.course-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.course-card__cat { font-size: 12px; color: var(--gold); font-weight: 600; }
.course-card__title { font-size: 16px; font-weight: 700; color: var(--green); line-height: 1.45; }
.course-card__excerpt { font-size: 13px; color: var(--gray-600); line-height: 1.7; flex: 1; }
.course-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid var(--gray-200);
  gap: 12px;
}
.course-card__price { font-size: 15px; font-weight: 700; color: var(--green); }

/* ── Blog card ───────────────────────────────────────────────────────────── */
.blog-card { display: flex; flex-direction: column; }
.blog-card__img { height: 200px; overflow: hidden; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-card__img img { transform: scale(1.05); }
.blog-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.blog-card__date { font-size: 12px; color: var(--gold); font-weight: 600; }
.blog-card__title { font-size: 17px; font-weight: 700; color: var(--green); line-height: 1.45; }
.blog-card__excerpt { font-size: 14px; color: var(--gray-600); line-height: 1.75; flex: 1; }
.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  margin-top: 4px;
  transition: gap var(--transition);
}
.blog-card__link:hover { gap: 10px; }
.blog-card__link svg { width: 16px; height: 16px; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(27,67,50,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  gap: 24px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo__icon {
  width: 42px;
  height: 42px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
}
.header-logo__icon svg { width: 22px; height: 22px; }
.header-logo__text { line-height: 1.25; }
.header-logo__brand { font-size: 16px; font-weight: 700; color: var(--green); }
.header-logo__sub { font-size: 11px; color: var(--gold); }

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.header-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--green);
  background: rgba(27,67,50,.06);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--gray-200);
  color: var(--green);
  transition: all var(--transition);
}
.cart-btn:hover { background: var(--green); color: var(--white); }
.cart-btn svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--yellow);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--cream);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  color: var(--green);
}
.menu-toggle svg { width: 22px; height: 22px; }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10,20,15,.55);
  backdrop-filter: blur(4px);
}
.mobile-nav.open { display: flex; justify-content: flex-end; }
.mobile-nav__panel {
  background: var(--white);
  width: min(320px, 85vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
  transform: translateX(0);
  animation: slideIn 0.28s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.mobile-nav__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.mobile-nav__close { background: none; border: none; color: var(--green); }
.mobile-nav__close svg { width: 24px; height: 24px; }
.mobile-nav__links { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav__links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.mobile-nav__links a:hover { color: var(--green); background: var(--cream); }
.mobile-nav__cta { margin-top: 24px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--cream);
  overflow: hidden;
  position: relative;
  min-height: 600px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 70% 50%, rgba(245,196,24,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  align-items: center;
  min-height: 600px;
  gap: 0;
}
.hero-img {
  position: relative;
  height: 560px;
  overflow: hidden;
}
.hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, transparent 60%, var(--cream) 100%);
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-content {
  padding: 48px 48px 48px 16px;
  position: relative;
  z-index: 1;
}
.hero-watermark {
  position: absolute;
  left: -20px;
  bottom: 20px;
  opacity: .06;
  pointer-events: none;
  color: var(--green);
}
.hero-watermark svg { width: 200px; height: 200px; }
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  background: var(--yellow-light);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  margin-bottom: 20px;
}
.hero-label svg { width: 14px; height: 14px; }
.hero-title { margin-bottom: 16px; }
.hero-subtitle {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 32px;
  max-width: 440px;
  line-height: 1.8;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}
.hero-stat__num {
  font-size: 24px;
  font-weight: 700;
  color: var(--green);
}
.hero-stat__label { font-size: 13px; color: var(--gray-600); }

/* ── Features strip ──────────────────────────────────────────────────────── */
.features-strip {
  background: var(--green);
  padding-block: 24px;
}
.features-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.feature-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
}
.feature-badge__icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-badge__icon svg { width: 22px; height: 22px; }
.feature-badge__label { font-size: 15px; font-weight: 600; color: var(--cream); }
.feature-badge__sub { font-size: 12px; color: rgba(245,240,230,.6); }
.feature-sep { width: 1px; height: 36px; background: rgba(255,255,255,.2); }

/* ── Courses section ─────────────────────────────────────────────────────── */
.courses-section { background: var(--cream); }

/* ── Age categories ──────────────────────────────────────────────────────── */
.age-section { background: var(--cream-dark); }
.age-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.age-track {
  display: flex;
  gap: 20px;
  padding: 8px 4px;
  min-width: max-content;
}
.age-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.age-tile:hover { transform: translateY(-4px); }
.age-tile__circle {
  width: 88px;
  height: 88px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.age-tile:hover .age-tile__circle { background: var(--green-mid); box-shadow: var(--shadow-md); }
.age-tile__circle svg { width: 36px; height: 36px; }
.age-tile__label { font-size: 14px; font-weight: 600; color: var(--green); }

/* ── About strip ─────────────────────────────────────────────────────────── */
.about-strip { background: var(--white); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid var(--gold);
  border-radius: calc(var(--radius) + 8px);
  opacity: .4;
  z-index: -1;
}
.about-img img { width: 100%; height: 480px; object-fit: cover; object-position: top center; }
.about-content { display: flex; flex-direction: column; gap: 20px; }
.about-content .t-h2 { margin-bottom: 0; }
.credentials { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--navy);
}
.credential-item__icon {
  width: 24px;
  height: 24px;
  background: var(--yellow-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}
.credential-item__icon svg { width: 12px; height: 12px; }

/* ── Community section ───────────────────────────────────────────────────── */
.community-section {
  position: relative;
  overflow: hidden;
  background: var(--green);
}
.community-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  min-height: 440px;
}
.community-img {
  height: 440px;
  overflow: hidden;
  border-radius: var(--radius);
  opacity: .8;
}
.community-img img { width: 100%; height: 100%; object-fit: cover; }
.community-content { color: var(--cream); display: flex; flex-direction: column; gap: 20px; }
.community-content .t-h2 { color: var(--cream); }
.community-content p { color: rgba(245,240,230,.75); font-size: 15px; }

/* ── Blog section ────────────────────────────────────────────────────────── */
.blog-section { background: var(--cream); }

/* ── Newsletter ──────────────────────────────────────────────────────────── */
.newsletter { background: var(--yellow); padding-block: 56px; }
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.newsletter-text { flex: 1; }
.newsletter-text h3 { font-size: 22px; font-weight: 700; color: var(--green); margin-bottom: 8px; }
.newsletter-text p { font-size: 15px; color: rgba(27,67,50,.7); }
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter-form input {
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(27,67,50,.2);
  background: rgba(255,255,255,.7);
  font-size: 15px;
  font-family: inherit;
  min-width: 260px;
  direction: rtl;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input:focus { border-color: var(--green); background: var(--white); }
.newsletter-form input::placeholder { color: var(--gray-400); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--green);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.footer-watermark {
  position: absolute;
  left: -40px;
  bottom: -40px;
  opacity: .04;
  color: var(--white);
  pointer-events: none;
}
.footer-watermark svg { width: 320px; height: 320px; }
.footer-top { padding-block: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.footer-col { display: flex; flex-direction: column; gap: 16px; }
.footer-col__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--yellow);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201,168,76,.25);
  margin-bottom: 4px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.footer-logo__circle {
  width: 40px; height: 40px;
  background: rgba(245,196,24,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--yellow);
}
.footer-logo__circle svg { width: 20px; height: 20px; }
.footer-logo__name { font-size: 15px; font-weight: 700; color: var(--cream); }
.footer-about { font-size: 14px; color: rgba(245,240,230,.65); line-height: 1.85; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: rgba(245,240,230,.7);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a::before { content: '›'; color: var(--gold); font-size: 16px; }
.footer-links a:hover { color: var(--yellow); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(245,240,230,.7);
}
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--gold); margin-top: 3px; }
.footer-contact-item a { color: inherit; }
.footer-contact-item a:hover { color: var(--yellow); }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(245,240,230,.7);
  transition: all var(--transition);
}
.social-btn:hover { background: var(--yellow); color: var(--green); border-color: var(--yellow); transform: translateY(-3px); }
.social-btn svg { width: 18px; height: 18px; }
.footer-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .3;
}
.footer-bottom {
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: rgba(245,240,230,.5); }

/* ── Page banner ─────────────────────────────────────────────────────────── */
.page-banner {
  background: var(--green);
  padding-block: 48px;
  text-align: center;
}
.page-banner h1 { font-size: clamp(22px, 3vw, 32px); font-weight: 700; color: var(--cream); margin-bottom: 8px; }
.page-banner p { font-size: 15px; color: rgba(245,240,230,.7); }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: rgba(245,240,230,.6);
}
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { color: var(--yellow); }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 14px; font-weight: 600; color: var(--green); }
.form-input,
.form-textarea,
.form-select {
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--navy);
  transition: border-color var(--transition);
  direction: rtl;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(27,67,50,.08);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-error { font-size: 13px; color: #E53E3E; }
.form-success { font-size: 14px; color: var(--green-mid); background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius-sm); padding: 12px 16px; }
.form-hint { font-size: 12px; color: var(--gray-600); }

/* ── Alert / flash ───────────────────────────────────────────────────────── */
.alert { padding: 12px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }

/* ── Admin ───────────────────────────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--green); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.admin-sidebar__logo { color: var(--yellow); font-size: 16px; font-weight: 700; margin-bottom: 24px; }
.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: rgba(245,240,230,.8);
  font-size: 14px;
  transition: all var(--transition);
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: rgba(255,255,255,.1);
  color: var(--yellow);
}
.admin-sidebar a svg { width: 18px; height: 18px; }
.admin-main { background: var(--cream); padding: 32px; overflow-y: auto; }
.admin-page-title { font-size: 22px; font-weight: 700; color: var(--green); margin-bottom: 24px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.stat-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-card__icon svg { width: 24px; height: 24px; }
.stat-card__num { font-size: 22px; font-weight: 700; color: var(--green); }
.stat-card__label { font-size: 13px; color: var(--gray-600); }
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.data-table th { background: var(--green); color: var(--cream); font-size: 13px; font-weight: 600; padding: 12px 16px; text-align: right; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-100); }

/* ── Admin extended ──────────────────────────────────────────────────────── */
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}
.admin-topbar__user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
  background: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gray-200);
}
.admin-topbar__user svg { width: 16px; height: 16px; color: var(--green); }

.admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-actions h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--green);
  margin: 0;
}

.admin-card {
  background: var(--white);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.admin-form-grid .span-2 { grid-column: span 2; }

.img-preview {
  width: 130px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200);
  display: block;
  margin-bottom: 8px;
}
.img-preview-placeholder {
  width: 130px;
  height: 96px;
  background: var(--gray-100);
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 12px;
  margin-bottom: 8px;
}

.admin-empty {
  text-align: center;
  padding: 40px 24px;
  color: var(--gray-400);
  font-size: 14px;
}

.contact-msg {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.85;
  border-right: 3px solid var(--gold);
}

.status-select {
  padding: 7px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  direction: rtl;
  background: var(--white);
  cursor: pointer;
  color: var(--navy);
}
.status-select:focus { outline: none; border-color: var(--green); }

.admin-msg-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: all var(--transition);
  text-decoration: none;
}
.admin-msg-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
  transform: translateX(-2px);
}
.admin-msg-card__name { font-size: 14px; font-weight: 700; color: var(--green); }
.admin-msg-card__preview { font-size: 13px; color: var(--gray-600); margin-top: 4px; }
.admin-msg-card__date { font-size: 11px; color: var(--gray-400); margin-top: 6px; }

@media (max-width: 900px) {
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-grid .span-2 { grid-column: span 1; }
  .admin-card { padding: 20px; }
}

/* ── Auth pages ──────────────────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo__circle {
  width: 56px; height: 56px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-inline: auto;
  margin-bottom: 12px;
  color: var(--yellow);
}
.auth-logo__circle svg { width: 28px; height: 28px; }
.auth-title { font-size: 20px; font-weight: 700; color: var(--green); margin-bottom: 4px; }
.auth-sub { font-size: 13px; color: var(--gray-600); }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-divider { text-align: center; font-size: 13px; color: var(--gray-400); margin-block: 4px; }
.auth-divider a { color: var(--green); font-weight: 600; }

/* ── Cart / Checkout ─────────────────────────────────────────────────────── */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: right; font-size: 14px; font-weight: 700; color: var(--green); padding: 12px 0; border-bottom: 2px solid var(--gold-light); }
.cart-table td { padding: 16px 0; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
.cart-summary { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card); }
.cart-summary__row { display: flex; justify-content: space-between; font-size: 15px; padding-block: 10px; border-bottom: 1px solid var(--gray-200); }
.cart-summary__total { font-weight: 700; color: var(--green); font-size: 17px; border: none; }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--navy);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--green); color: var(--green); }
.pagination .current { background: var(--green); color: var(--white); border-color: var(--green); }

/* ── Utilities ───────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.relative { position: relative; }

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.badge-yellow { background: var(--yellow); color: var(--green); }
.badge-green  { background: var(--green); color: var(--cream); }
.badge-gold   { background: var(--gold-light); color: var(--green); }

.divider-gold { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .3; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .about-inner { gap: 40px; }
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .menu-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { height: 300px; }
  .hero-img::after { background: linear-gradient(to top, var(--cream) 0%, transparent 60%); }
  .hero-content { padding: 32px 0; order: 2; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .community-inner { grid-template-columns: 1fr; }
  .community-img { height: 260px; }
  .features-strip__inner { gap: 20px; flex-direction: column; align-items: flex-start; padding-inline: 24px; }
  .feature-sep { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-form { justify-content: center; }
  .newsletter-form input { min-width: 0; width: 100%; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .admin-stats { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 20px; }
}

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
.age-scroll::-webkit-scrollbar { height: 4px; }
.age-scroll::-webkit-scrollbar-track { background: var(--gray-200); border-radius: 2px; }
.age-scroll::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* QA cart card layout — zero horizontal overflow, no hidden data */
@media (max-width: 768px) {
  .cart-grid { grid-template-columns: 1fr !important; }
  .cart-table, .cart-table tbody, .cart-table tr { display: block !important; width: 100%; }
  .cart-table thead { display: none !important; }
  .cart-table tr { border: 1px solid rgba(128,128,128,.28); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
  .cart-table td { display: flex !important; border: 0; padding: 6px 0; text-align: right !important; align-items: center; justify-content: space-between; gap: 12px; width: 100% !important; white-space: normal !important; }
  .cart-table td:first-child { display: block !important; }
  .cart-table td:nth-child(2)::before { content: "قیمت"; font-weight:700;color:#888;font-size:.82rem;flex:none; }
}
