:root {
  --green-950: #0d2138;
  --green-900: #17344f;
  --green-800: #234a69;
  --green-700: #345f7d;
  --green-500: #6a8298;
  --sage: #d9dee5;
  --sage-soft: #eef1f5;
  --lime: #ecd79f;
  --ivory: #fbf7ed;
  --cream: #f3e5c2;
  --peach: #ead7bd;
  --terracotta: #d3a84f;
  --paper: #fcfbf8;
  --white: #ffffff;
  --ink: #142334;
  --muted: #687482;
  --muted-2: #929aa4;
  --line: #e4e1da;
  --line-green: #dce2e8;
  --danger: #a94c49;
  --danger-soft: #fbefed;
  --warning: #8d6b22;
  --warning-soft: #fff7dc;
  --info-soft: #eef3f7;
  --shadow-sm: 0 8px 24px rgba(13, 33, 56, .06);
  --shadow-md: 0 22px 60px rgba(13, 33, 56, .10);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
html[dir="rtl"] body,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
html[dir="rtl"] button { font-family: "Vazirmatn", Tahoma, Arial, sans-serif; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
input[type="hidden"] { display: none !important; }
button { color: inherit; }
::selection { color: var(--green-950); background: var(--lime); }

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(820px, 100%); }
.skip-link { position: fixed; inset-inline-start: 16px; top: -80px; z-index: 200; padding: 10px 14px; color: #fff; background: var(--green-950); border-radius: 10px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(231, 224, 211, .78);
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(18px);
}
.nav-wrap { min-height: 84px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; color: var(--green-950); }
.brand-mark,
.mini-brand {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  color: var(--lime);
  background: var(--green-900);
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { max-width: 215px; overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: 780; white-space: nowrap; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .02em; }
.main-nav { display: flex; align-items: center; gap: 25px; margin-inline-end: auto; }
.main-nav > a { position: relative; color: #425048; font-size: 13px; font-weight: 600; }
.main-nav > a::after { position: absolute; inset-inline: 0; bottom: -9px; width: 0; height: 2px; margin: auto; content: ""; background: var(--green-700); transition: width .2s ease; }
.main-nav > a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions form { margin: 0; }
.account-link, .link-button { color: var(--green-900); font-size: 13px; font-weight: 650; }
.link-button { padding: 0; border: 0; background: transparent; cursor: pointer; }
.language-pill { display: inline-grid; min-width: 38px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--green-900); background: #fff; cursor: pointer; font-size: 12px; font-weight: 800; }
.language-pill:hover { border-color: var(--sage); background: var(--ivory); }
.menu-btn { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.menu-btn span { display: block; height: 2px; margin: 4px 0; border-radius: 99px; background: var(--green-950); }
.mobile-only { display: none; }

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--green-900); box-shadow: 0 8px 18px rgba(13, 33, 56, .13); }
.btn-primary:hover { background: var(--green-950); box-shadow: 0 12px 24px rgba(13, 33, 56, .18); }
.btn-secondary, .btn-light { color: var(--green-950); border-color: var(--line); background: rgba(255,255,255,.86); }
.btn-secondary:hover, .btn-light:hover { border-color: var(--sage); background: var(--ivory); }
.btn-ghost { color: var(--green-900); border-color: var(--sage); background: transparent; }
.btn-accent { color: var(--green-950); background: var(--lime); box-shadow: 0 12px 28px rgba(236, 243, 158, .15); }
.btn-accent:hover { background: #f2f7b6; }
.btn-danger { color: #fff; background: var(--danger); }
.btn-danger-outline { color: var(--danger); border-color: #e4b9b5; background: transparent; }
.btn-lg { min-height: 52px; padding: 13px 23px; border-radius: 15px; font-size: 14px; }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--green-900); font-size: 14px; font-weight: 750; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translate(2px, -2px); }
html[dir="rtl"] .text-link:hover span { transform: translate(-2px, -2px); }

.messages { position: fixed; inset-inline: 0; top: 96px; z-index: 110; pointer-events: none; }
.alert { max-width: 760px; margin: 0 auto 10px; padding: 13px 16px; border: 1px solid var(--line-green); border-radius: 14px; color: var(--green-950); background: #f4f8ee; box-shadow: var(--shadow-sm); pointer-events: auto; font-size: 14px; }
.alert.error { color: #7c302f; border-color: #efd0cd; background: var(--danger-soft); }
.alert.warning { color: #705314; border-color: #eadca9; background: var(--warning-soft); }
.alert.info { color: var(--green-900); background: var(--info-soft); }

.hero { position: relative; overflow: hidden; padding: 88px 0 74px; background: linear-gradient(180deg, #fffdf8 0%, #faf6eb 100%); }
.hero::before { position: absolute; top: -140px; inset-inline-end: -110px; width: 390px; height: 390px; content: ""; border-radius: 50%; background: rgba(236, 243, 158, .42); filter: blur(2px); }
.hero::after { position: absolute; bottom: -170px; inset-inline-start: -130px; width: 360px; height: 360px; content: ""; border-radius: 50%; background: rgba(244, 206, 189, .28); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr); gap: 76px; align-items: center; }
.hero-copy { max-width: 670px; }
.hero-kicker, .eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--green-700); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-kicker span { width: 24px; height: 2px; background: var(--lime); box-shadow: 8px 0 0 var(--green-700); }
html[dir="rtl"] .hero-kicker, html[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; }
.eyebrow.light { color: #e8efdb; }
.hero h1, .page-hero h1, .section h2 { color: var(--green-950); letter-spacing: -.035em; }
html[dir="rtl"] .hero h1, html[dir="rtl"] .page-hero h1, html[dir="rtl"] .section h2 { letter-spacing: -.01em; }
.hero h1 { max-width: 720px; margin: 18px 0 20px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(46px, 5.2vw, 76px); font-weight: 500; line-height: 1.03; }
html[dir="rtl"] .hero h1 { font-family: "Vazirmatn", Tahoma, sans-serif; font-size: clamp(42px, 5vw, 68px); font-weight: 750; line-height: 1.25; }
.hero-lead { max-width: 610px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 29px; color: var(--muted); font-size: 12px; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row i { display: inline-grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; color: var(--green-950); background: var(--lime); font-size: 11px; font-style: normal; font-weight: 900; }
.hero-visual-wrap { position: relative; min-height: 520px; }
.hero-visual { position: absolute; inset: 0 18px 24px 0; overflow: hidden; margin: 0; border-radius: 38px 38px 110px 38px; box-shadow: 0 32px 80px rgba(13, 33, 56, .16); }
html[dir="rtl"] .hero-visual { inset: 0 0 24px 18px; border-radius: 38px 38px 38px 110px; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(.96); }
.hero-visual::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 55%, rgba(32, 61, 46, .18)); }
.floating-card { position: absolute; z-index: 3; border: 1px solid rgba(255,255,255,.6); background: rgba(255, 253, 248, .94); box-shadow: var(--shadow-md); backdrop-filter: blur(10px); }
.hero-note { inset-inline-start: -38px; bottom: 0; display: flex; width: min(315px, 78%); align-items: flex-start; gap: 12px; padding: 17px 18px; border-radius: 18px; }
.hero-note small, .hero-note strong { display: block; }
.hero-note small { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.hero-note strong { margin-top: 3px; color: var(--green-950); font-size: 13px; line-height: 1.55; }
.note-dot { width: 12px; height: 12px; margin-top: 4px; flex: 0 0 auto; border: 3px solid var(--green-900); border-radius: 50%; background: var(--lime); }
.privacy-note { top: 34px; inset-inline-end: -10px; padding: 10px 15px; border-radius: 999px; color: var(--green-950); font-size: 11px; font-weight: 800; }

.confidence-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.confidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.confidence-grid > div { display: flex; align-items: baseline; gap: 11px; padding: 22px 28px; border-inline-end: 1px solid var(--line); }
.confidence-grid > div:last-child { border-inline-end: 0; }
.confidence-grid strong { color: var(--green-900); font-family: Georgia, serif; font-size: 19px; font-weight: 600; }
html[dir="rtl"] .confidence-grid strong { font-family: "Vazirmatn"; font-weight: 800; }
.confidence-grid span { color: var(--muted); font-size: 12px; }

.section { padding: 96px 0; }
.section:nth-of-type(even) { }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.section-head > div { max-width: 720px; }
.section h2, .section-head h2 { margin: 8px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4vw, 52px); font-weight: 500; line-height: 1.13; }
html[dir="rtl"] .section h2, html[dir="rtl"] .section-head h2 { font-family: "Vazirmatn"; font-size: clamp(31px, 4vw, 46px); font-weight: 750; line-height: 1.4; }
.section-muted { background: #f8f5ec; }
.section-copy p, .rich-content { color: var(--muted); }
.editorial-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 82px; align-items: center; }
.image-panel { position: relative; overflow: hidden; min-height: 455px; margin: 0; border-radius: 32px; background: var(--sage-soft); }
.image-panel img { width: 100%; height: 455px; object-fit: cover; }
.image-panel figcaption { position: absolute; inset-inline: 20px; bottom: 20px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.55); border-radius: 15px; color: var(--green-950); background: rgba(255,253,248,.9); backdrop-filter: blur(10px); font-size: 12px; font-weight: 700; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card:hover { transform: translateY(-4px); border-color: #d9d3c4; box-shadow: 0 22px 50px rgba(42,63,50,.09); }
.card-image-link { position: relative; display: block; overflow: hidden; }
.card-media { width: 100%; height: 228px; object-fit: cover; filter: saturate(.82); transition: transform .4s ease; }
.card:hover .card-media { transform: scale(1.025); }
.card-body { padding: 21px 22px 23px; }
.card-body h3, .card h3 { margin: 6px 0 10px; color: var(--green-950); font-size: 19px; line-height: 1.4; }
.card-body p, .card > p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.card-topline, .content-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted-2); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.card-footer a { color: var(--green-900); font-weight: 750; }
.service-number { position: absolute; top: 15px; inset-inline-end: 15px; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: var(--green-950); background: var(--lime); font-family: Georgia, serif; font-size: 12px; font-weight: 700; }
.service-card:nth-child(2) .service-number { background: var(--peach); }
.service-card:nth-child(3) .service-number { background: var(--cream); }
.service-card:nth-child(4) .service-number { background: var(--sage-soft); }
.image-icon { position: absolute; inset-inline-start: 16px; bottom: 16px; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: var(--green-950); background: rgba(255,253,248,.91); backdrop-filter: blur(8px); }
.price { margin: 16px 0; color: var(--green-900); font-size: 25px; font-weight: 850; }

.process-section { background: var(--ivory); }
.process-panel { padding: 48px; border: 1px solid #e3e5c6; border-radius: 32px; background: rgba(255,255,255,.62); }
.process-head { margin-bottom: 28px; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #dfe2c7; }
.process-step { padding: 30px 30px 2px; border-inline-end: 1px solid #dfe2c7; }
.process-step:first-child { padding-inline-start: 0; }
.process-step:last-child { border-inline-end: 0; }
.process-step > span { color: var(--terracotta); font-family: Georgia, serif; font-size: 14px; font-weight: 700; }
.process-step h3 { margin: 15px 0 8px; color: var(--green-950); font-size: 17px; }
.process-step p { margin: 0; color: var(--muted); font-size: 13px; }

.team-section { background: #fff; }
.lawyer-card .lawyer-photo { height: 290px; }
.avatar { display: grid; width: 100%; height: 290px; place-items: center; color: var(--green-950); background: linear-gradient(145deg, var(--sage-soft), var(--cream)); font-family: Georgia, serif; font-size: 72px; }
.avatar.large { width: 130px; height: 130px; margin: 0 auto 18px; border-radius: 50%; font-size: 44px; }
.lawyer-card .role { margin: -3px 0 0; color: var(--green-700); font-size: 12px; font-weight: 650; }

.testimonial-section { background: #f8f5ec; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-grid blockquote { min-height: 245px; margin: 0; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.testimonial-grid .quote-mark { color: var(--terracotta); font-family: Georgia, serif; font-size: 45px; line-height: .8; }
.testimonial-grid blockquote > p { color: var(--ink); font-size: 14px; line-height: 1.95; }
.testimonial-grid footer { display: flex; flex-direction: column; margin-top: 26px; padding: 0; color: inherit; background: transparent; }
.testimonial-grid footer b { color: var(--green-950); font-size: 13px; }
.testimonial-grid footer span { color: var(--muted); font-size: 11px; }

.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; align-items: start; }
.faq-layout > div:first-child > p { color: var(--muted); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 0; cursor: pointer; color: var(--green-950); font-size: 15px; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { display: grid; width: 27px; height: 27px; place-items: center; flex: 0 0 auto; border: 1px solid var(--sage); border-radius: 50%; color: var(--green-900); background: var(--ivory); }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: -3px 0 20px; color: var(--muted); font-size: 13px; }
.final-cta-section { padding-top: 20px; }
.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 46px 52px; border-radius: 30px; color: #fff; background: var(--green-900); }
.final-cta h2 { max-width: 760px; margin: 8px 0 0; color: #fff; }

.page-hero { min-height: 60vh; padding: 72px 0 90px; background: linear-gradient(180deg, #fffdf8 0%, #faf7ef 100%); }
.page-heading { max-width: 760px; margin-bottom: 36px; }
.page-heading h1, .page-hero h1 { margin: 10px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 62px); font-weight: 500; line-height: 1.12; }
html[dir="rtl"] .page-heading h1, html[dir="rtl"] .page-hero h1 { font-family: "Vazirmatn"; font-weight: 750; line-height: 1.4; }
.page-heading p, .lead { max-width: 700px; color: var(--muted); font-size: 15px; }
.back-link { display: inline-flex; margin-bottom: 22px; color: var(--green-900); font-size: 13px; font-weight: 700; }

.panel, .booking-summary, .auth-card { border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.panel { padding: 28px; }
.booking-summary { padding: 25px; }
.booking-summary h3 { margin-top: 0; color: var(--green-950); }
.booking-summary > div, .detail-list > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.booking-summary > div:last-of-type { border-bottom: 0; }
.booking-summary span, .detail-list span { color: var(--muted); font-size: 12px; }
.booking-summary b, .detail-list b { text-align: end; color: var(--green-950); font-size: 13px; }
.booking-summary ul { margin: 18px 0 0; padding-inline-start: 20px; color: var(--muted); font-size: 12px; }

.service-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) 300px; gap: 30px; align-items: start; }
.detail-visual { overflow: hidden; margin: 0; border-radius: 26px; }
.detail-visual img { width: 100%; min-height: 430px; object-fit: cover; }
.service-detail-copy .rich-content { font-size: 15px; }
.team-banner { position: relative; overflow: hidden; min-height: 390px; margin-bottom: 58px; border-radius: 32px; }
.team-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.6) saturate(.75); }
.team-banner > div { position: relative; z-index: 2; max-width: 650px; padding: 75px 55px; color: #fff; }
.team-banner h1 { color: #fff; }
.team-banner p { color: rgba(255,255,255,.8); }
.team-heading { margin-bottom: 26px; }
.lawyer-portrait { width: 100%; max-height: 330px; object-fit: cover; border-radius: 18px; }
.profile-context-visual { overflow: hidden; margin: 30px 0 0; border-radius: 22px; }
.profile-context-visual img { width: 100%; height: 280px; object-fit: cover; }
.profile-context-visual figcaption { padding: 11px 14px; color: var(--muted); background: #fff; font-size: 11px; }

.auth-section { min-height: calc(100vh - 84px); display: grid; place-items: center; padding: 60px 20px; background: linear-gradient(135deg, #f7f2e7 0%, #fefae0 55%, #f1f1d3 100%); }
.auth-shell { display: grid; width: min(1040px, 100%); grid-template-columns: .93fr 1.07fr; overflow: hidden; border: 1px solid rgba(231,224,211,.9); border-radius: 32px; background: #fff; box-shadow: 0 32px 85px rgba(42,63,50,.12); }
.auth-shell-compact { width: min(930px, 100%); }
.auth-intro { position: relative; overflow: hidden; padding: 54px 46px; color: #fff; background: var(--green-900); }
.auth-intro::after { position: absolute; right: -90px; bottom: -120px; width: 270px; height: 270px; content: ""; border-radius: 50%; background: var(--lime); opacity: .12; }
.auth-intro h2 { position: relative; z-index: 2; margin: 16px 0 18px; color: #fff; font-family: Georgia, serif; font-size: 38px; font-weight: 500; line-height: 1.15; }
html[dir="rtl"] .auth-intro h2 { font-family: "Vazirmatn"; font-size: 34px; font-weight: 750; line-height: 1.45; }
.auth-intro p { position: relative; z-index: 2; max-width: 430px; color: rgba(255,255,255,.72); font-size: 14px; }
.auth-benefits { position: relative; z-index: 2; display: grid; gap: 10px; margin-top: 30px; color: #edf4e3; font-size: 12px; }
.otp-explainer { position: relative; z-index: 2; display: grid; grid-template-columns: 30px auto 1fr 30px auto 1fr 30px auto; gap: 8px; align-items: center; margin-top: 36px; font-size: 11px; }
.otp-explainer span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: var(--green-950); background: var(--lime); font-weight: 900; }
.otp-explainer i { height: 1px; background: rgba(255,255,255,.25); }
.auth-card { padding: 48px 52px; border: 0; border-radius: 0; box-shadow: none; }
.auth-card-head { margin-bottom: 26px; }
.auth-card-head .mini-brand { margin-bottom: 20px; }
.auth-card h1 { margin: 0 0 8px; color: var(--green-950); font-family: Georgia, serif; font-size: 34px; font-weight: 500; }
html[dir="rtl"] .auth-card h1 { font-family: "Vazirmatn"; font-size: 30px; font-weight: 800; }
.auth-card-head p, .auth-card > p { margin: 0; color: var(--muted); font-size: 13px; }
.auth-links, .auth-helper, .auth-footer-note, .otp-resend { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.auth-links a, .auth-helper a, .auth-footer-note a, .auth-back { color: var(--green-900); font-weight: 750; }
.auth-helper { margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); }
.auth-method-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted-2); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.auth-method-divider::before, .auth-method-divider::after { flex: 1; height: 1px; content: ""; background: var(--line); }
html[dir="rtl"] .auth-method-divider { text-transform: none; letter-spacing: 0; }
.auth-back { display: inline-block; margin-top: 22px; font-size: 12px; }
.otp-card { text-align: center; }
.otp-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 16px; place-items: center; border-radius: 18px; color: var(--green-950); background: var(--lime); font-size: 22px; }
.otp-card .field label { text-align: start; }
.otp-input { text-align: center !important; direction: ltr; letter-spacing: .55em; font-size: 24px !important; font-weight: 850 !important; }
.otp-resend { justify-content: center; }
.otp-expired { margin-top: 12px !important; color: var(--danger) !important; font-size: 12px !important; }

.field { margin-bottom: 17px; }
.field label { display: block; margin-bottom: 7px; color: var(--green-950); font-size: 12px; font-weight: 720; }
.field small { display: block; margin-top: 6px; color: var(--muted-2); font-size: 11px; line-height: 1.6; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea,
.panel input:not([type="checkbox"]):not([type="radio"]), .panel select, .panel textarea {
  width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #ded8ca; border-radius: 12px; outline: none; color: var(--ink); background: #fffdf9; transition: border .16s ease, box-shadow .16s ease, background .16s ease;
}
.field textarea, .panel textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .panel input:focus, .panel select:focus, .panel textarea:focus { border-color: var(--green-500); background: #fff; box-shadow: 0 0 0 4px rgba(236,243,158,.42); }
.field input[type="checkbox"], .field input[type="radio"] { width: 17px; height: 17px; accent-color: var(--green-900); }
.field ul.errorlist, .errorlist { margin: 7px 0 0; padding: 0; color: var(--danger); font-size: 11px; list-style: none; }
.error, .form-errors { color: var(--danger); font-size: 11px; }
.form-errors { margin-bottom: 14px; padding: 11px 13px; border: 1px solid #efd0cd; border-radius: 11px; background: var(--danger-soft); }
.form-errors ul { margin: 0; padding-inline-start: 18px; }
.optional-note { color: var(--muted-2); font-size: 11px; font-weight: 500; }

.booking-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; align-items: start; }
.booking-grid > div:first-child > p { color: var(--muted); }
#booking-form h3 { margin: 31px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--green-950); font-size: 15px; }
#booking-form h3:first-of-type { margin-top: 8px; padding-top: 0; border-top: 0; }
.booking-summary { position: sticky; top: 110px; }
.date-options, .slots { display: flex; flex-wrap: wrap; gap: 8px; }
.date-options button, .slot { min-width: 76px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--green-950); background: #fff; cursor: pointer; font-size: 12px; transition: .15s; }
.date-options button:hover, .slot:hover { border-color: var(--sage); background: var(--ivory); }
.date-options button.active, .slot.active { border-color: var(--green-900); color: #fff; background: var(--green-900); }
.slot-status { min-height: 23px; margin-bottom: 9px; color: var(--muted); font-size: 11px; }
.booking-review { margin-top: 26px; padding: 18px; border: 1px solid var(--line-green); border-radius: 16px; background: #f8faef; }
.booking-review h3 { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; }
.booking-review dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 15px; margin: 0; }
.booking-review dt { color: var(--muted); font-size: 11px; }
.booking-review dd { margin: 0; color: var(--green-950); font-size: 12px; font-weight: 700; }
.payment-amount { margin: 20px 0; color: var(--green-900); font-family: Georgia, serif; font-size: 38px; font-weight: 600; }
.secure-note, .muted { color: var(--muted); font-size: 12px; }

.calendar-box { margin: 20px 0; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.calendar-head button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.weekdays span { text-align: center; color: var(--muted); font-size: 11px; }
.calendar-day { min-height: 64px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; }
.calendar-day.available { border-color: #cfdcb4; background: #f7fae9; }
.calendar-day.selected { color: #fff; background: var(--green-900); }
.calendar-day.full { border-color: #ead7ba; background: #fff7ec; }
.calendar-day.disabled { color: #b2b7b3; background: #f7f5f0; cursor: not-allowed; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; color: var(--muted); font-size: 11px; }
.calendar-legend i { display: inline-block; width: 9px; height: 9px; margin-inline-end: 5px; border-radius: 3px; }
.calendar-legend i.available { background: var(--sage); }.calendar-legend i.full { background: var(--cream); }.calendar-legend i.disabled { background: #ddd; }

.dashboard-page { min-height: 76vh; }
.mini-stats, .admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0; }
.mini-stats > div, .admin-stats > div, .stat-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.mini-stats span, .admin-stats span, .stat-card span { display: block; color: var(--muted); font-size: 11px; }
.mini-stats b, .admin-stats b, .stat-card b { display: block; margin-top: 5px; color: var(--green-950); font-family: Georgia, serif; font-size: 28px; font-weight: 600; }
html[dir="rtl"] .mini-stats b, html[dir="rtl"] .admin-stats b, html[dir="rtl"] .stat-card b { font-family: "Vazirmatn"; font-weight: 800; }
.dashboard-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; align-items: start; }
.account-menu { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 5px; padding: 12px; }
.account-menu a { padding: 10px 12px; border-radius: 10px; color: var(--muted); font-size: 12px; font-weight: 650; }
.account-menu a:hover, .account-menu a.active { color: var(--green-950); background: var(--ivory); }
.compact-head { margin-bottom: 14px; }
.compact-head h2 { font-size: 28px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: start; white-space: nowrap; font-size: 11px; }
th { color: var(--muted); background: #fbf9f3; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
html[dir="rtl"] th { text-transform: none; letter-spacing: 0; }
tr:last-child td { border-bottom: 0; }
.table-link { color: var(--green-900); font-weight: 750; }
.status { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; color: #5a635e; background: #eff1ed; font-size: 11px; font-weight: 750; }
.status.confirmed, .status.paid { color: #27633f; background: #e7f4e7; }
.status.pending_payment, .status.checkout_open, .status.created, .status.processing { color: #7a5b18; background: #fff3d4; }
.status.failed, .status.expired, .status.cancelled, .status.canceled { color: #873d3b; background: #fbe9e7; }
.status.review { color: #66532f; background: #f5edd8; }
.status.refunded { color: #446458; background: #e7f0ea; }
.status-lg { padding: 8px 12px; font-size: 11px; }
.empty-state { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 30px; color: var(--muted); }
.empty-state b { color: var(--green-950); font-size: 15px; }
.booking-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 22px 0; }
.booking-facts > div { display: flex; min-height: 86px; flex-direction: column; justify-content: center; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fbfaf5; }
.booking-facts small { color: var(--muted-2); font-size: 11px; }
.appointment-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.appointment-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.payment-history { margin-top: 16px; }
.action-panel { margin-top: 20px; }
.inline-form { display: inline; }
.timeline { margin: 18px 0; padding-inline-start: 22px; border-inline-start: 2px solid var(--sage-soft); }
.timeline-item { position: relative; margin-bottom: 18px; }
.timeline-item::before { position: absolute; top: 7px; inset-inline-start: -28px; width: 10px; height: 10px; content: ""; border: 2px solid #fff; border-radius: 50%; background: var(--green-700); box-shadow: 0 0 0 2px var(--sage); }
.management-grid, .capacity-grid, .quick-links { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.revenue-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }

.article-page .article-cover { width: 100%; max-height: 510px; object-fit: cover; margin: 28px 0; border-radius: 26px; }
.article-meta, .content-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 11px; }
.prose, .rich-content { color: #47544c; font-size: 15px; line-height: 2; }
.prose h2, .rich-content h2 { margin-top: 35px; color: var(--green-950); }
.blog-page .cards { margin-top: 28px; }
.learning-hub, .learning-latest { margin-top: 30px; }
.learning-section-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.learning-section-card { padding: 22px; border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.content-section-switch { display: flex; gap: 8px; margin: 18px 0 25px; }
.content-section-switch a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; }
.content-section-switch a.active { color: #fff; border-color: var(--green-900); background: var(--green-900); }
.static-page .prose { max-width: 780px; }
.contact-summary { color: var(--muted); }
.contact-visual, .about-image { overflow: hidden; margin: 0; border-radius: 26px; }
.contact-visual img, .about-image img { width: 100%; height: 380px; object-fit: cover; }
.contact-visual figcaption, .about-image figcaption { padding: 12px 14px; color: var(--muted); background: #fff; font-size: 11px; }
.about-layout { display: grid; grid-template-columns: 1fr .9fr; gap: 60px; align-items: start; }

.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.error-page h1 { color: var(--green-950); font-family: Georgia, serif; font-size: 80px; }

.site-footer { padding: 64px 0 22px; color: #dfe8df; background: var(--green-950); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, .8fr); gap: 50px; }
.footer-grid h3, .footer-grid h4 { color: #fff; }
.footer-grid h3 { margin: 14px 0 8px; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
html[dir="rtl"] .footer-grid h3 { font-family: "Vazirmatn"; font-weight: 800; }
.footer-grid h4 { margin: 0 0 14px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
html[dir="rtl"] .footer-grid h4 { text-transform: none; letter-spacing: 0; }
.footer-grid a { display: block; margin: 7px 0; color: #bdcabf; font-size: 12px; }
.footer-grid a:hover { color: var(--lime); }
.footer-brand p, .footer-grid p { max-width: 350px; color: #aab8ad; font-size: 12px; }
.footer-mark { color: var(--green-950); background: var(--lime); }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); color: #8fa091; font-size: 11px; }

@media (max-width: 1080px) {
  .brand-copy small { display: none; }
  .main-nav { gap: 17px; }
  .main-nav > a { font-size: 12px; }
  .nav-actions { gap: 8px; }
  .nav-cta { padding-inline: 13px; }
  .hero-grid { grid-template-columns: 1fr .9fr; gap: 45px; }
  .service-detail-grid { grid-template-columns: 1fr 1fr; }
  .service-detail-grid .booking-summary { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .service-detail-grid .booking-summary h3, .service-detail-grid .booking-summary .btn { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .container { width: min(100% - 30px, var(--container)); }
  .nav-wrap { min-height: 72px; }
  .brand-copy strong { max-width: 180px; }
  .menu-btn { display: block; margin-inline-start: auto; }
  .main-nav { position: fixed; top: 72px; inset-inline: 15px; display: none; max-height: calc(100vh - 90px); align-items: stretch; gap: 3px; overflow: auto; padding: 13px; border: 1px solid var(--line); border-radius: 18px; background: #fffdf8; box-shadow: 0 30px 70px rgba(32,61,46,.16); }
  .main-nav.open { display: flex; flex-direction: column; }
  .main-nav > a, .main-nav .link-button { padding: 11px 12px; border-radius: 10px; font-size: 13px; }
  .main-nav > a:hover { background: var(--ivory); }
  .main-nav > a::after { display: none; }
  .mobile-only { display: block; }
  .mobile-logout { display: block; }
  .nav-actions .account-link, .nav-actions > form:not(.language-switch) { display: none; }
  .hero { padding-top: 58px; }
  .hero-grid, .editorial-split, .booking-grid, .faq-layout, .about-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 45px; }
  .hero-visual-wrap { min-height: 480px; }
  .hero-visual { inset-inline: 20px; }
  html[dir="rtl"] .hero-visual { inset-inline: 20px; }
  .hero-note { inset-inline-start: 0; }
  .section { padding: 72px 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: 1fr; border-top: 0; }
  .process-step, .process-step:first-child { padding: 22px 0; border-top: 1px solid #dfe2c7; border-inline-end: 0; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .final-cta { align-items: flex-start; flex-direction: column; }
  .booking-summary { position: static; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .account-menu { position: static; flex-direction: row; flex-wrap: wrap; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-detail-grid .booking-summary { display: block; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-intro { padding: 36px 34px; }
  .auth-intro h2 { max-width: 680px; font-size: 32px; }
  .otp-explainer { max-width: 560px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { width: min(100% - 24px, var(--container)); }
  .site-header { background: rgba(255,253,248,.97); }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .brand-copy strong { max-width: 135px; font-size: 12px; }
  .nav-actions { gap: 6px; }
  .nav-cta { min-height: 38px; padding: 8px 10px; border-radius: 11px; font-size: 11px; }
  .language-pill { min-width: 34px; height: 34px; }
  .menu-btn { width: 38px; height: 38px; }
  .hero { padding: 48px 0 44px; }
  .hero h1 { font-size: 42px; }
  html[dir="rtl"] .hero h1 { font-size: 38px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .trust-row { gap: 9px 16px; }
  .hero-visual-wrap { min-height: 390px; }
  .hero-visual { inset: 0 0 32px; border-radius: 28px 28px 70px 28px; }
  html[dir="rtl"] .hero-visual { inset: 0 0 32px; border-radius: 28px 28px 28px 70px; }
  .privacy-note { top: 14px; inset-inline-end: 12px; }
  .hero-note { inset-inline: 12px auto; bottom: 2px; width: 82%; }
  .confidence-grid { grid-template-columns: 1fr; }
  .confidence-grid > div { padding: 15px 4px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .confidence-grid > div:last-child { border-bottom: 0; }
  .section { padding: 58px 0; }
  .section-head { align-items: flex-start; flex-direction: column; margin-bottom: 25px; }
  .section h2, .section-head h2 { font-size: 34px; }
  html[dir="rtl"] .section h2, html[dir="rtl"] .section-head h2 { font-size: 31px; }
  .cards, .testimonial-grid, .learning-section-cards { grid-template-columns: 1fr; }
  .card-media { height: 215px; }
  .process-panel { padding: 25px 21px; border-radius: 24px; }
  .final-cta { padding: 30px 25px; border-radius: 23px; }
  .page-hero { padding: 48px 0 64px; }
  .page-heading h1, .page-hero h1 { font-size: 38px; }
  .panel, .booking-summary { padding: 20px; border-radius: 18px; }
  .auth-section { padding: 24px 12px; }
  .auth-shell { border-radius: 23px; }
  .auth-intro { padding: 30px 25px; }
  .auth-intro h2 { font-size: 28px; }
  html[dir="rtl"] .auth-intro h2 { font-size: 27px; }
  .otp-explainer { grid-template-columns: 28px 1fr; }
  .otp-explainer i { display: none; }
  .auth-card { padding: 32px 24px; }
  .auth-card h1 { font-size: 30px; }
  .booking-facts, .mini-stats, .admin-stats, .management-grid, .capacity-grid, .quick-links { grid-template-columns: 1fr; }
  .booking-review dl { grid-template-columns: 90px 1fr; }
  .appointment-title-row { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-grid .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 5px; }
  .team-banner > div { padding: 50px 25px; }
  .service-detail-grid .booking-summary { grid-template-columns: 1fr; }
}


@media (max-width: 440px) {
  .brand-copy { display: none; }
  .nav-cta { display: none; }
  .nav-actions { margin-inline-start: 0; }
  .menu-btn { margin-inline-start: auto; }
}

/* Contact + editorial learning additions */
.contact-choice { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 18px 0 20px; }
.summary-kicker { margin-bottom: 18px; color: var(--green-800); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
html[dir="rtl"] .summary-kicker { letter-spacing: 0; text-transform: none; }
.summary-note { margin-top: 22px; padding: 14px 15px; border: 1px solid #eadfc8; border-radius: 14px; color: #776849; background: #fff8e8; font-size: 11px; line-height: 1.8; }
.tutorials-home-section { background: linear-gradient(180deg, rgba(233,237,201,.38), rgba(254,250,224,.18)); border-block: 1px solid rgba(219,228,206,.75); }
.tutorial-card .content-meta span:first-child { padding: 3px 8px; border-radius: 999px; color: var(--green-950); background: var(--lime); font-weight: 800; }

@media (max-width: 640px) {
  .contact-choice { align-items: stretch; flex-direction: column; }
  .contact-choice .btn, .contact-choice .text-link { width: 100%; justify-content: center; }
}

/* Private booking documents */
.document-upload-form{display:grid;gap:14px;margin:18px 0 22px}.document-list{display:grid;gap:12px}.document-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-top:1px solid rgba(20,28,38,.1)}.document-row p{margin:4px 0}.document-row small{opacity:.72}.document-row .appointment-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.document-row form{margin:0}@media(max-width:720px){.document-row{align-items:flex-start;flex-direction:column}.document-row .appointment-actions{width:100%}}
