/* ── Vazirmatn Variable Font ─────────────────────────────────────────────── */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn[wght].woff2') format('woff2 supports variations'),
       url('/assets/fonts/Vazirmatn[wght].woff2') format('woff2');
  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-SemiBold.woff2') format('woff2');
  font-weight: 600;
  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;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ── Custom Properties ───────────────────────────────────────────────────── */
:root {
  --navy:        #0B1B3D;
  --navy-deep:   #060D1F;
  --navy-mid:    #0F2248;
  --gold:        #C9A96E;
  --gold-light:  #DFC28F;
  --gold-dark:   #A8834A;
  --gold-glow:   rgba(201,169,110,.18);
  --cream:       #F5F0E8;
  --cream-muted: #BDB5A4;
  --white:       #FFFFFF;
  --border:      rgba(201,169,110,.22);
  --card-bg:     rgba(11,27,61,.7);
  --shadow-gold: 0 8px 40px rgba(201,169,110,.22);
  --shadow-card: 0 4px 28px rgba(6,13,31,.55);
  --shadow-hero: 0 2px 60px rgba(6,13,31,.8);
  --radius:      12px;
  --radius-sm:   8px;
  --radius-full: 9999px;
  --transition:  .3s ease;
  --font:        'Vazirmatn', system-ui, sans-serif;
  --max-w:       1240px;
  --section-py:  80px;
}

/* ── Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--cream);
  line-height: 1.75;
  direction: rtl;
  overflow-x: hidden;
  min-height: 100vh;
}
img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
button, input, select, textarea {
  font-family: var(--font);
  font-size: inherit;
}

/* ── Container ───────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Typography ──────────────────────────────────────────────────────────── */
.section-tag {
  display: inline-block;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.4;
  margin-bottom: 12px;
}
.section-sub {
  font-size: .95rem;
  color: var(--cream-muted);
  max-width: 540px;
  line-height: 1.8;
}
.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header .section-sub {
  margin-inline: auto;
}
.gold { color: var(--gold); }
.cream { color: var(--cream); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--navy-deep);
  box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  color: var(--navy-deep);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 8px 20px;
  font-size: .82rem;
}

/* ── Gold Divider ────────────────────────────────────────────────────────── */
.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 16px auto 0;
}
.gold-line-start {
  margin-inline-start: 0;
}

/* ══ HEADER ═════════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  background: rgba(6,13,31,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 4px 32px rgba(6,13,31,.8);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}
/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-emblem {
  width: 44px;
  height: 44px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-deep);
  animation: logo-spin 12s linear infinite;
  overflow: hidden;
}
.logo-emblem svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
}
@keyframes logo-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-text .brand-fa {
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .02em;
}
.logo-text .brand-lat {
  font-size: .65rem;
  color: var(--cream-muted);
  font-weight: 400;
}
/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  padding: 8px 14px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--cream);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--gold);
  background: rgba(201,169,110,.08);
}
/* Header CTA */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.header-cart {
  position: relative;
  color: var(--cream);
  padding: 6px;
  transition: color var(--transition);
}
.header-cart:hover { color: var(--gold); }
.cart-badge {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: .6rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══ HERO ════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(6,13,31,.88) 0%,
    rgba(11,27,61,.75) 50%,
    rgba(6,13,31,.9) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 60px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
}
.hero-text .section-tag { margin-bottom: 20px; }
.hero-title {
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1.35;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(201,169,110,.25);
}
.hero-subtitle {
  font-size: 1rem;
  color: var(--cream);
  line-height: 1.9;
  margin-bottom: 36px;
  max-width: 520px;
  opacity: .9;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
/* Hero seal */
.hero-seal-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-seal {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: rgba(6,13,31,.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px var(--gold-glow), inset 0 0 40px rgba(6,13,31,.8);
  position: relative;
}
.hero-seal::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(201,169,110,.3);
}
.hero-seal-num {
  font-size: 4rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 30px rgba(201,169,110,.5);
}
.hero-seal-text {
  font-size: .75rem;
  color: var(--cream-muted);
  margin-top: 6px;
  letter-spacing: .06em;
}

/* ── Stats Strip ─────────────────────────────────────────────────────────── */
.stats-strip {
  background: var(--navy-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 36px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.stat-item {
  background: var(--navy-deep);
  padding: 28px 24px;
  text-align: center;
}
.stat-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.stat-label {
  font-size: .88rem;
  color: var(--cream-muted);
  font-weight: 500;
}

/* ══ ABOUT TEASER ════════════════════════════════════════════════════════════ */
.about-teaser {
  padding-block: var(--section-py);
  background: var(--navy);
}
.about-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-teaser-img {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
}
.about-teaser-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.about-teaser-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  pointer-events: none;
}
.about-teaser-text .section-sub { max-width: none; }
.about-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  margin-bottom: 32px;
}
.about-badge {
  background: rgba(201,169,110,.08);
  border: 1px solid var(--border);
  color: var(--cream);
  font-size: .8rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

/* ══ DEPARTMENTS ═════════════════════════════════════════════════════════════ */
.departments {
  padding-block: var(--section-py);
  background: var(--navy-deep);
}
.dept-scroll {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.dept-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px 24px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.dept-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.dept-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.dept-card:hover::after { transform: scaleX(1); }
.dept-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--gold);
  transition: all var(--transition);
}
.dept-card:hover .dept-icon {
  background: rgba(201,169,110,.12);
  border-color: var(--gold);
}
.dept-icon svg { width: 22px; height: 22px; }
.dept-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}
.dept-desc {
  font-size: .76rem;
  color: var(--cream-muted);
  line-height: 1.6;
}

/* ══ LAWYERS ═════════════════════════════════════════════════════════════════ */
.lawyers {
  padding-block: var(--section-py);
  background: var(--navy);
}
.lawyers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.lawyer-card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px 28px;
  text-align: center;
  transition: all var(--transition);
}
.lawyer-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
  border-color: var(--gold);
}
.lawyer-portrait {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(201,169,110,.15);
  margin: 0 auto 18px;
  transition: box-shadow var(--transition);
}
.lawyer-card:hover .lawyer-portrait {
  box-shadow: 0 0 0 6px rgba(201,169,110,.25), var(--shadow-gold);
}
.lawyer-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lawyer-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}
.lawyer-title {
  font-size: .8rem;
  color: var(--cream-muted);
  margin-bottom: 10px;
}
.lawyer-tag {
  display: inline-block;
  background: rgba(201,169,110,.1);
  border: 1px solid var(--border);
  color: var(--cream);
  font-size: .72rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

/* ══ FEATURED PRODUCTS ══════════════════════════════════════════════════════ */
.featured {
  padding-block: var(--section-py);
  background: var(--navy-deep);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
  border-color: rgba(201,169,110,.5);
}
.product-thumb {
  height: 170px;
  overflow: hidden;
  position: relative;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform var(--transition);
}
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-cat {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: rgba(6,13,31,.8);
  color: var(--gold);
  font-size: .68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}
.product-body {
  padding: 18px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 10px;
  line-height: 1.45;
  flex: 1;
}
.product-price {
  font-size: .88rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
}
.product-actions {
  display: flex;
  gap: 8px;
}
.product-actions form { flex: 1; }
.product-actions .btn { width: 100%; justify-content: center; }

/* ══ EDUCATION ═══════════════════════════════════════════════════════════════ */
.education {
  padding-block: var(--section-py);
  position: relative;
  overflow: hidden;
}
.education-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.education-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .12;
}
.education > .container { position: relative; z-index: 1; }
.edu-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.edu-card {
  background: rgba(11,27,61,.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
  border-color: var(--gold);
}
.edu-card-head {
  background: linear-gradient(135deg, rgba(201,169,110,.15), rgba(201,169,110,.05));
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.edu-card-head svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
  flex-shrink: 0;
}
.edu-card-head h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}
.edu-card-body { padding: 22px 24px 26px; }
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.edu-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
  color: var(--cream);
  line-height: 1.5;
}
.edu-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ══ FAQ ═════════════════════════════════════════════════════════════════════ */
.faq-section {
  padding-block: var(--section-py);
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}
.faq-section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.faq-section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .06;
}
.faq-section > .container { position: relative; z-index: 1; }
.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open {
  border-color: rgba(201,169,110,.5);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
}
.faq-q:hover { background: rgba(201,169,110,.04); }
.faq-q span {
  font-size: .92rem;
  font-weight: 600;
  color: var(--gold);
  flex: 1;
}
.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--gold);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding var(--transition);
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner {
  padding: 0 22px 20px;
  font-size: .88rem;
  color: var(--cream);
  line-height: 1.85;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ══ TESTIMONIALS ════════════════════════════════════════════════════════════ */
.testimonials {
  padding-block: var(--section-py);
  background: var(--navy);
  border-top: 1px solid var(--border);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  position: relative;
  transition: all var(--transition);
}
.testimonial-card:hover {
  border-color: rgba(201,169,110,.4);
  box-shadow: var(--shadow-gold);
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 14px;
  inset-inline-end: 20px;
  font-size: 5rem;
  font-weight: 800;
  color: var(--gold);
  opacity: .12;
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}
.testimonial-stars svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}
.testimonial-quote {
  font-size: .9rem;
  color: var(--cream);
  line-height: 1.85;
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 16px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy-deep);
  flex-shrink: 0;
}
.testimonial-info .name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--gold);
}
.testimonial-info .title {
  font-size: .76rem;
  color: var(--cream-muted);
}

/* ══ BLOG PREVIEW ════════════════════════════════════════════════════════════ */
.blog-preview {
  padding-block: var(--section-py);
  background: var(--navy-deep);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
  border-color: rgba(201,169,110,.4);
}
.blog-thumb {
  height: 180px;
  overflow: hidden;
}
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
.blog-body {
  padding: 22px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-author {
  font-size: .75rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}
.blog-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.5;
  margin-bottom: 10px;
  flex: 1;
}
.blog-excerpt {
  font-size: .8rem;
  color: var(--cream-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

/* ══ CTA BAND ════════════════════════════════════════════════════════════════ */
.cta-band {
  padding-block: 60px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 12px;
}
.cta-band p {
  font-size: 1rem;
  color: rgba(6,13,31,.7);
  margin-bottom: 30px;
}
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-deep);
  color: var(--gold);
  border-radius: var(--radius-full);
  padding: 12px 28px;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all var(--transition);
  margin-inline: 8px;
}
.cta-phone:hover {
  background: var(--navy);
  transform: translateY(-2px);
  color: var(--gold-light);
}
.cta-phone span { direction: ltr; }

/* ══ FOOTER ══════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--navy-deep);
  border-top: 2px solid var(--gold);
  padding-top: 60px;
  padding-bottom: 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 320px 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo-emblem { animation: none; }
.footer-brand .site-logo { margin-bottom: 16px; }
.footer-desc {
  font-size: .85rem;
  color: var(--cream-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.social-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-muted);
  transition: all var(--transition);
}
.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,169,110,.08);
}
.social-link svg { width: 16px; height: 16px; }
.footer-col h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: .84rem;
  color: var(--cream-muted);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a::before {
  content: '‹';
  color: var(--gold);
  font-size: .9rem;
}
.footer-links a:hover { color: var(--gold); }
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .84rem;
  color: var(--cream-muted);
  line-height: 1.6;
}
.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-contact-item .ltr { direction: ltr; display: inline-block; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: .8rem;
  color: var(--cream-muted);
}
.footer-bottom a {
  color: var(--gold);
  transition: opacity var(--transition);
}
.footer-bottom a:hover { opacity: .8; }
.trust-badges {
  display: flex;
  gap: 12px;
  align-items: center;
}
.trust-badge {
  font-size: .72rem;
  color: var(--cream-muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
}
.trust-badge svg { width: 12px; height: 12px; color: var(--gold); }

/* ══ INNER PAGES ═════════════════════════════════════════════════════════════ */
.page-hero {
  background: var(--navy-deep);
  border-bottom: 1px solid var(--border);
  padding-block: 80px 48px;
  margin-top: 70px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}
.page-hero p {
  font-size: .95rem;
  color: var(--cream-muted);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: .8rem;
  color: var(--cream-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { opacity: .5; }
.inner-section {
  padding-block: 60px;
  background: var(--navy);
}

/* ══ CART ════════════════════════════════════════════════════════════════════ */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
.cart-table th,
.cart-table td {
  padding: 14px 16px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
}
.cart-table th {
  color: var(--gold);
  font-weight: 600;
  background: rgba(201,169,110,.05);
}
.cart-table td { color: var(--cream); }
.cart-total-box {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 360px;
  margin-inline-start: auto;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .9rem;
  color: var(--cream);
  padding-block: 8px;
}
.cart-total-row strong { color: var(--gold); font-size: 1.1rem; }

/* ══ CONTACT ═════════════════════════════════════════════════════════════════ */
.contact-form {
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-group label {
  display: block;
  font-size: .85rem;
  color: var(--cream-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-control {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--cream);
  font-size: .9rem;
  transition: border-color var(--transition);
  direction: rtl;
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
}
.form-control::placeholder { color: var(--cream-muted); opacity: .6; }
textarea.form-control { resize: vertical; min-height: 130px; }

/* ══ STUB PAGES ══════════════════════════════════════════════════════════════ */
.stub-placeholder {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
}
.stub-placeholder svg {
  width: 56px;
  height: 56px;
  color: var(--gold);
  margin: 0 auto 20px;
  opacity: .5;
}
.stub-placeholder p {
  font-size: .9rem;
  color: var(--cream-muted);
}

/* ══ INNER PAGE GRIDS ════════════════════════════════════════════════════════ */
.inner-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}
.inner-grid-sidebar {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) {
  .inner-grid,
  .inner-grid-sidebar { grid-template-columns: 1fr; }
}

/* ══ UTILITY ═════════════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.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; }
.d-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  margin-bottom: 20px;
}
.alert-success {
  background: rgba(52,168,83,.1);
  border: 1px solid rgba(52,168,83,.3);
  color: #4CAF82;
}

/* ══ HEADER ICON BTN ═════════════════════════════════════════════════════════ */
.header-icon-btn {
  position: relative;
  color: var(--cream);
  padding: 6px;
  transition: color var(--transition);
  display: flex;
  align-items: center;
}
.header-icon-btn:hover { color: var(--gold); }

/* ══ SHOP ════════════════════════════════════════════════════════════════════ */
.shop-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: .82rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--cream-muted);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  display: inline-block;
}
.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,169,110,.08);
}
.filter-btn.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--navy-deep);
  border-color: transparent;
}

/* ══ PRODUCT DETAIL ══════════════════════════════════════════════════════════ */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 60px;
  align-items: start;
}
.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  background: var(--navy-deep);
}
.gallery-main img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
}
.gallery-thumb {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: none;
  padding: 0;
  transition: border-color var(--transition);
  flex-shrink: 0;
}
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--gold); }
.gallery-thumb img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  display: block;
}
.product-detail-price {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(201,169,110,.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 4px;
}
.price-label {
  font-size: .85rem;
  color: var(--cream-muted);
}
.price-amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
}
.qty-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}
.qty-group label {
  font-size: .85rem;
  color: var(--cream-muted);
  white-space: nowrap;
  font-weight: 500;
}
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-control button {
  width: 36px;
  height: 36px;
  background: rgba(201,169,110,.06);
  border: none;
  color: var(--gold);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--transition);
  font-family: var(--font);
  line-height: 1;
}
.qty-control button:hover { background: rgba(201,169,110,.16); }
.qty-control input[type="number"] {
  width: 52px;
  border: none;
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: transparent;
  color: var(--cream);
  font-size: .9rem;
  padding: 6px 4px;
  font-family: var(--font);
}
.product-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  color: var(--cream-muted);
}
.trust-item svg { color: var(--gold); flex-shrink: 0; }

/* ══ CHECKOUT ════════════════════════════════════════════════════════════════ */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}
.order-summary {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.order-summary-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
}
.order-item-img {
  width: 60px;
  height: 50px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.order-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.order-item-info { flex: 1; min-width: 0; }
.order-item-name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-item-qty { font-size: .76rem; color: var(--cream-muted); }
.order-item-price {
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}
.order-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 2px solid var(--gold);
  font-size: .92rem;
  color: var(--cream);
}
.order-summary-total strong { color: var(--gold); font-size: 1.1rem; }

/* ══ AUTH ════════════════════════════════════════════════════════════════════ */
.auth-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 360px;
}
.auth-card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
}
.auth-card-head {
  text-align: center;
  margin-bottom: 28px;
}
.auth-card-head h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}
.auth-card-head p {
  font-size: .85rem;
  color: var(--cream-muted);
}
.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: .85rem;
  color: var(--cream-muted);
}
.auth-switch a { color: var(--gold); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* ══ ACCOUNT ═════════════════════════════════════════════════════════════════ */
.account-sidebar {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}
.account-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(201,169,110,.1);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--gold);
}
.account-avatar svg { width: 36px; height: 36px; }
.account-sidebar h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}
.account-username {
  font-size: .78rem;
  color: var(--cream-muted);
  margin-bottom: 10px;
}
.account-info-item {
  font-size: .82rem;
  color: var(--cream-muted);
  margin-bottom: 4px;
}
.order-card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.order-card:hover { border-color: rgba(201,169,110,.4); }
.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(201,169,110,.04);
  gap: 12px;
}
.order-id {
  font-size: .85rem;
  font-weight: 700;
  color: var(--gold);
  margin-left: 10px;
}
.order-date {
  font-size: .76rem;
  color: var(--cream-muted);
}
.order-status {
  font-size: .75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.order-status-pending  { background: rgba(255,165,0,.12); color: #ffac30; border: 1px solid rgba(255,165,0,.3); }
.order-status-paid     { background: rgba(52,168,83,.12); color: #4CAF82; border: 1px solid rgba(52,168,83,.3); }
.order-status-cancelled{ background: rgba(220,50,50,.12); color: #e07070; border: 1px solid rgba(220,50,50,.3); }
.order-card-body { padding: 14px 18px; }
.order-total { font-size: .88rem; color: var(--cream); }
.order-total strong { color: var(--gold); }

/* ══ RESPONSIVE ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .dept-scroll { grid-template-columns: repeat(4, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-seal-wrap { display: none; }
  .about-teaser-inner { grid-template-columns: 1fr; }
  .about-teaser-img { order: -1; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-py: 56px; }
  .site-nav { display: none; flex-direction: column; align-items: stretch; }
  .site-nav.open {
    display: flex;
    position: fixed;
    top: 70px;
    inset-inline: 0;
    background: rgba(6,13,31,.98);
    padding: 16px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
    z-index: 999;
  }
  .site-nav.open a { padding: 12px 16px; border-radius: var(--radius-sm); }
  .menu-toggle { display: flex; }
  .dept-scroll { grid-template-columns: repeat(2, 1fr); }
  .lawyers-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .edu-cards { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; background: none; gap: 1px; }
  .stat-item { border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .trust-badges { justify-content: center; flex-wrap: wrap; }
  .hero-inner { padding-block: 20px; }
}

@media (max-width: 480px) {
  :root { --section-py: 44px; }
  .dept-scroll { grid-template-columns: 1fr; }
  .lawyers-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { justify-content: center; }
  .container { padding-inline: 16px; }
}

@media (max-width: 390px) {
  .products-grid { grid-template-columns: 1fr; }
  .dept-scroll { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════════════════════════════════════ */
.adm-body { background: var(--navy-deep); min-height: 100vh; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.adm-wrap { display: flex; min-height: 100vh; }

.adm-sidebar {
  width: 248px; min-height: 100vh;
  background: #060a1a;
  border-left: 1px solid var(--border);
  position: fixed; top: 0; right: 0;
  overflow-y: auto; z-index: 100;
  display: flex; flex-direction: column;
}

.adm-logo {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: .625rem;
}
.adm-logo-text {
  font-size: .875rem; font-weight: 700;
  color: var(--gold); letter-spacing: .02em;
}

.adm-nav { padding: .75rem 0; flex: 1; }
.adm-nav a {
  display: flex; align-items: center; gap: .625rem;
  padding: .625rem 1.25rem;
  color: var(--cream-muted);
  text-decoration: none; font-size: .825rem;
  transition: all .18s;
  border-right: 3px solid transparent;
}
.adm-nav a svg { flex-shrink: 0; opacity: .7; }
.adm-nav a:hover   { color: var(--gold); background: rgba(201,169,110,.05); }
.adm-nav a.active  { color: var(--gold); background: rgba(201,169,110,.08); border-right-color: var(--gold); }
.adm-nav a.active svg { opacity: 1; }

.adm-sidebar-foot {
  padding: .875rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: .5rem;
}
.adm-ext-link {
  display: flex; align-items: center; gap: .5rem;
  color: var(--cream-muted); font-size: .775rem; text-decoration: none;
  transition: color .18s;
}
.adm-ext-link:hover { color: var(--cream); }
.adm-logout:hover   { color: #f87171 !important; }

.adm-main {
  margin-right: 248px; flex: 1;
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--navy-deep);
}

.adm-topbar {
  background: var(--navy);
  border-bottom: 1px solid var(--border);
  padding: .875rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.adm-topbar-title { font-size: 1rem; font-weight: 600; color: var(--cream); }
.adm-topbar-user  {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; color: var(--cream-muted);
}

.adm-content { padding: 1.5rem; flex: 1; }

/* ── Stats ──────────────────────────────────────────────────────────────── */
.adm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.adm-stat {
  background: var(--navy-mid); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.125rem 1.25rem;
}
.adm-stat .num {
  font-size: 1.875rem; font-weight: 700; color: var(--gold);
  display: block; margin-bottom: .2rem; line-height: 1;
}
.adm-stat .lbl { font-size: .775rem; color: var(--cream-muted); }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.adm-card {
  background: var(--navy-mid); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.25rem; margin-bottom: 1.25rem;
}
.adm-card-title {
  font-size: .9rem; font-weight: 600; color: var(--gold-light);
  margin-bottom: 1.125rem; padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

/* ── Tables ─────────────────────────────────────────────────────────────── */
.adm-table-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.adm-table th {
  padding: .625rem 1rem; text-align: right; font-weight: 600;
  color: var(--gold-light); background: rgba(201,169,110,.05);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.adm-table td {
  padding: .625rem 1rem; border-bottom: 1px solid rgba(201,169,110,.07);
  color: var(--cream); vertical-align: middle;
}
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tr:hover td      { background: rgba(201,169,110,.03); }
.adm-table tfoot td { border-top: 1px solid var(--border); font-weight: 600; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.adm-form-row          { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.adm-form-row.full     { grid-template-columns: 1fr; }
.adm-form-row.three    { grid-template-columns: repeat(3, 1fr); }
.adm-field             { display: flex; flex-direction: column; gap: .35rem; }
.adm-label             { font-size: .775rem; color: var(--cream-muted); font-weight: 500; }
.adm-input,
.adm-select,
.adm-textarea {
  background: rgba(6,10,26,.7);
  border: 1px solid var(--border);
  border-radius: 8px; padding: .575rem .875rem;
  color: var(--cream); font-family: inherit;
  font-size: .875rem; width: 100%;
  transition: border-color .18s; box-sizing: border-box;
}
.adm-input:focus, .adm-select:focus, .adm-textarea:focus {
  outline: none; border-color: var(--gold);
}
.adm-textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.adm-select   { cursor: pointer; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.adm-btn {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .5rem .975rem; border-radius: 8px;
  font-size: .8rem; font-weight: 600; font-family: inherit;
  cursor: pointer; border: none; text-decoration: none;
  transition: all .18s; white-space: nowrap;
}
.adm-btn-gold    { background: var(--gold); color: #06060a; }
.adm-btn-gold:hover    { background: var(--gold-light); }
.adm-btn-outline { background: transparent; border: 1px solid var(--border); color: var(--cream); }
.adm-btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.adm-btn-danger  { background: rgba(239,68,68,.12); color: #f87171; border: 1px solid rgba(239,68,68,.25); }
.adm-btn-danger:hover  { background: rgba(239,68,68,.22); }
.adm-btn-sm      { padding: .3rem .65rem; font-size: .75rem; }

/* ── Badges ─────────────────────────────────────────────────────────────── */
.adm-badge {
  display: inline-block; padding: .175rem .55rem;
  border-radius: 9999px; font-size: .72rem; font-weight: 600;
}
.adm-badge-green  { background: rgba(34,197,94,.14);  color: #4ade80; }
.adm-badge-red    { background: rgba(239,68,68,.14);   color: #f87171; }
.adm-badge-yellow { background: rgba(234,179,8,.14);   color: #fbbf24; }
.adm-badge-gray   { background: rgba(156,163,175,.14); color: #9ca3af; }

/* ── Alerts ─────────────────────────────────────────────────────────────── */
.adm-alert {
  padding: .75rem 1rem; border-radius: 8px;
  margin-bottom: 1rem; font-size: .85rem;
}
.adm-alert-success { background: rgba(34,197,94,.09);  border: 1px solid rgba(34,197,94,.28);  color: #4ade80; }
.adm-alert-danger  { background: rgba(239,68,68,.09);   border: 1px solid rgba(239,68,68,.28);  color: #f87171; }

/* ── Misc ───────────────────────────────────────────────────────────────── */
.adm-page-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.adm-page-head h1 { font-size: 1.1rem; font-weight: 700; color: var(--cream); }

.adm-img-sm {
  width: 44px; height: 44px; border-radius: 6px;
  object-fit: cover; border: 1px solid var(--border);
}
.adm-img-preview {
  width: 90px; height: 90px; border-radius: 8px;
  object-fit: cover; border: 1px solid var(--border);
}

/* ── Login page ─────────────────────────────────────────────────────────── */
.adm-login-wrap {
  background: var(--navy-mid); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem 2.25rem;
  width: 100%; max-width: 380px;
}
.adm-login-logo {
  text-align: center; margin-bottom: 1.75rem;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.adm-login-title { font-size: 1.1rem; font-weight: 700; color: var(--cream); margin: 0; }
.adm-login-sub   { font-size: .8rem; color: var(--cream-muted); margin: 0; }
.adm-login-form  { margin-top: 1rem; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .adm-sidebar { display: none; }
  .adm-main    { margin-right: 0; }
  .adm-form-row       { grid-template-columns: 1fr; }
  .adm-form-row.three { grid-template-columns: 1fr; }
  .adm-stats { grid-template-columns: repeat(2, 1fr); }
}

/* QA-Fixes 2026-07-26 (#1 login/cart align, #3 face-focus, #4 cart-toast) */
.header-cart{display:flex;align-items:center;}
.lawyer-portrait img{object-position:center 22%;}
.cart-toast{position:fixed;top:16px;left:50%;transform:translateX(-50%);background:var(--navy-deep,#12233b);color:var(--cream,#f5efe3);border:1px solid var(--gold,#c9a24a);padding:11px 20px;border-radius:10px;z-index:9999;box-shadow:0 10px 34px rgba(0,0,0,.34);font-size:.9rem;}
.cart-toast a{color:var(--gold,#c9a24a);margin-inline-start:12px;font-weight:700;text-decoration:none;}

/* QA-Fixes 2026-07-26c (#9 face-frame, #10 mobile CTA off-screen, #11 contact spacing) */
.lawyer-portrait img{object-position:center 12% !important;}
@media (max-width:768px){
  .header-actions .btn-outline{display:none !important;}
  .inner-grid{gap:44px !important;}
  .contact-form{margin-inline:auto !important;}
}

/* QA#16 CTA phone/button spacing — mobile: stack phone + form-button with a clear gap */
@media (max-width: 640px) {
  .cta-band .cta-phone,
  .cta-band .btn-outline {
    display: flex;
    width: -moz-fit-content;
    width: fit-content;
    max-width: 92%;
    margin-inline: auto !important;
    justify-content: center;
  }
  .cta-band .btn-outline {
    margin-top: 18px !important;
  }
}

/* ivos-qa58 cart-toast */
.cart-toast{position:fixed;top:20px;left:50%;transform:translateX(-50%);z-index:9999;background:#1f7a4d;color:#fff;padding:13px 22px;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.22);font-size:14px;font-weight:600;line-height:1;display:flex;align-items:center;gap:12px;direction:rtl;max-width:92vw;animation:cartToastIn .28s cubic-bezier(.2,.8,.2,1)}
.cart-toast a{color:#ffd772;text-decoration:underline;font-weight:700;white-space:nowrap}
@keyframes cartToastIn{from{opacity:0;transform:translate(-50%,-14px)}to{opacity:1;transform:translate(-50%,0)}}
@media(max-width:600px){.cart-toast{top:12px;font-size:13px;padding:11px 16px;width:auto}}

/* ivos-qa57 edu-card button align */
.edu-card{display:flex;flex-direction:column}
.edu-card-body{display:flex;flex-direction:column;flex:1 1 auto}
.edu-card-body .btn{margin-top:auto;align-self:flex-start}

/* ivos-qa56 logo fa/lat spacing */
.logo-text{gap:3px}

/* ivos-qa60 justify article prose */
.blog-body{text-align:justify;text-align-last:right;line-height:2;word-spacing:.02em}


/* QA-Fixes 2026-07-27 (#9 face-frame zoom, #55 CTA button align, #59 contact form/heading align) */
/* #9 portraits are 1000x1000 square inside a square circular frame -> object-position is a no-op;
   zoom toward the face region so heads stay inside the round frame */
.lawyer-portrait img{transform:scale(1.35);transform-origin:50% 20%;}
/* #55 CTA band: equal-size, vertically centered phone + form buttons on one row */
.cta-band .cta-phone,.cta-band .btn-outline{vertical-align:middle;}
.cta-band .btn-outline{font-size:1.1rem;}
/* #59 /contact: anchor the form to the same start edge as the heading above it */
.inner-grid .contact-form{margin-inline:0 !important;}

/* ivos-qa8: distinct monogram avatar for lawyers without a unique photo (removes duplicate faces) */
.lawyer-monogram{ display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#1a2b4a 0%,#2c4a7a 100%);color:var(--gold,#c9a96e);font-weight:800;line-height:1;font-family:inherit;border-radius:50% }

/* QA cart card layout — zero horizontal overflow, no hidden data */
@media (max-width: 768px) {
  .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 !important; padding: 6px 0 !important; 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; font-weight: 600; }
  .cart-table td:nth-child(2)::before { content: "قیمت واحد"; font-weight:700;color:#888;font-size:.82rem;flex:none; }
  .cart-table td:nth-child(3)::before { content: "تعداد"; font-weight:700;color:#888;font-size:.82rem;flex:none; }
  .cart-table td:nth-child(4)::before { content: "جمع"; font-weight:700;color:#888;font-size:.82rem;flex:none; }
}
