/* ========================================
   Moji's Translations — Style System
   Yellow & Purple Theme · RTL + LTR
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  --purple-50:  #f5f0ff;
  --purple-100: #ede5ff;
  --purple-200: #d4c4ff;
  --purple-300: #b89dff;
  --purple-400: #9b6dff;
  --purple-500: #7c3aed;
  --purple-600: #6d28d9;
  --purple-700: #5b21b6;
  --purple-800: #4c1d95;
  --purple-900: #3b0e7a;

  --yellow-50:  #fffdf0;
  --yellow-100: #fef9c3;
  --yellow-200: #fef08a;
  --yellow-300: #fde047;
  --yellow-400: #facc15;
  --yellow-500: #eab308;
  --yellow-600: #ca8a04;

  --grey-50:  #fafafa;
  --grey-100: #f4f4f5;
  --grey-200: #e4e4e7;
  --grey-300: #d4d4d8;
  --grey-500: #71717a;
  --grey-700: #3f3f46;
  --grey-800: #27272a;
  --grey-900: #18181b;

  --bg:        #ffffff;
  --bg-alt:    var(--purple-50);
  --text:      var(--grey-800);
  --text-mute: var(--grey-500);
  --accent:    var(--purple-500);
  --accent-dark: var(--purple-700);
  --highlight: var(--yellow-400);
  --highlight-soft: var(--yellow-100);

  --container: 1140px;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(124, 58, 237, .08);
  --shadow-lg: 0 12px 48px rgba(124, 58, 237, .12);
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 1.05rem;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Container --- */
.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
}

/* --- Typography --- */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--grey-900); }
.section-tag {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--text-mute);
  max-width: 560px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}
.services, .pricing, .contact, .reviews, .books { text-align: center; }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-block;
  padding: .8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  min-height: 44px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  font-family: inherit;
  touch-action: manipulation;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, .3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, .4);
}
.btn-outline {
  border-color: var(--purple-300);
  color: var(--purple-600);
  background: transparent;
}
.btn-outline:hover {
  background: var(--purple-50);
  border-color: var(--purple-500);
}
.btn-nav {
  padding: .55rem 1.4rem;
  background: var(--highlight);
  color: var(--grey-900);
  font-weight: 600;
  border-radius: 50px;
}
.btn-nav:hover { background: var(--yellow-300); }
.btn-block { width: 100%; text-align: center; }
.btn-sm {
  padding: .4rem 1rem;
  font-size: .85rem;
}

/* ========================================
   LANGUAGE TOGGLE
   ======================================== */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  min-height: 44px;
  border-radius: 50%;
  border: 2px solid var(--purple-300);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: .85rem;
  color: var(--purple-700);
  transition: var(--transition);
  font-family: inherit;
}
.lang-toggle:hover {
  background: var(--purple-50);
  border-color: var(--purple-500);
}
.lang-toggle-prominent {
  width: auto;
  padding: 0 1.2rem;
  border-radius: 50px;
  background: var(--highlight);
  border-color: var(--yellow-300);
  color: var(--grey-900);
  font-size: .9rem;
}
.lang-toggle-prominent:hover {
  background: var(--yellow-300);
  border-color: var(--yellow-400);
}

/* ========================================
   HERO LANGUAGE SWITCHER
   ======================================== */
.hero-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: 1.4rem;
  background: #fff;
  border: 2px solid var(--purple-200);
  border-radius: 50px;
  padding: .3rem .35rem;
  box-shadow: 0 2px 12px rgba(124,58,237,.1);
}
.hero-lang-icon {
  font-size: 1.15rem;
  margin: 0 .3rem 0 .5rem;
  line-height: 1;
}
[dir="rtl"] .hero-lang-icon {
  margin: 0 .5rem 0 .3rem;
}
.hero-lang-btn {
  padding: .55rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 50px;
  background: transparent;
  color: var(--purple-700);
  font-weight: 700;
  font-size: 1rem;
  min-height: 44px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  letter-spacing: .02em;
}
.hero-lang-btn:hover {
  background: var(--purple-50);
  border-color: var(--purple-200);
}
.hero-lang-btn.active {
  background: var(--purple-700);
  color: #fff;
  border-color: var(--purple-700);
  box-shadow: 0 2px 8px rgba(124,58,237,.25);
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--grey-200);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo-img-sm {
  height: 42px;
}
.logo-img-login {
  height: 100px;
  margin: 0 auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--grey-700);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--accent); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--grey-700);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(170deg, var(--purple-50) 0%, #fff 40%, var(--yellow-50) 100%);
  padding-top: 72px;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: .12;
}
.shape-1 {
  width: 500px; height: 500px;
  background: var(--purple-400);
  top: -120px; right: -100px;
  animation: float 8s ease-in-out infinite;
}
.shape-2 {
  width: 300px; height: 300px;
  background: var(--highlight);
  bottom: 10%; left: -80px;
  animation: float 10s ease-in-out infinite reverse;
}
.shape-3 {
  width: 200px; height: 200px;
  background: var(--purple-300);
  bottom: 20%; right: 15%;
  animation: float 7s ease-in-out infinite 1s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.04); }
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero-tag {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero-sub {
  font-size: 1.2rem;
  color: var(--text-mute);
  max-width: 520px;
  margin-bottom: 2rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-langs {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.lang-badge {
  background: #fff;
  padding: .5rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  box-shadow: var(--shadow);
  color: var(--purple-700);
}
.lang-badge.farsi { font-size: 1rem; }
.lang-arrow { font-size: 1.4rem; color: var(--highlight); font-weight: 700; }

/* ========================================
   SERVICES
   ======================================== */
.services {
  padding: 6rem 0;
  background: var(--bg);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.service-card {
  text-align: start;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-200);
}
.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-50);
  border-radius: var(--radius);
}
.service-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.service-card p { color: var(--text-mute); font-size: 1rem; }

/* ========================================
   PRICING TABLE
   ======================================== */
.pricing {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--purple-50) 0%, #fff 100%);
}
.pricing-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}
.pricing-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  text-align: start;
}
.pricing-table th,
.pricing-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--grey-200);
}
.pricing-table thead th {
  background: var(--purple-600);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pricing-table thead th:first-child {
  border-radius: var(--radius) 0 0 0;
}
[dir="rtl"] .pricing-table thead th:first-child {
  border-radius: 0 var(--radius) 0 0;
}
.pricing-table thead th:last-child {
  border-radius: 0 var(--radius) 0 0;
}
[dir="rtl"] .pricing-table thead th:last-child {
  border-radius: var(--radius) 0 0 0;
}
.pricing-table tbody tr {
  transition: var(--transition);
}
.pricing-table tbody tr:hover {
  background: var(--purple-50);
}
.pricing-table td {
  font-size: 1rem;
}
.pricing-table .price-val {
  font-weight: 700;
  color: var(--purple-600);
}
.pricing-table .direction-badge {
  display: inline-block;
  padding: .2rem .7rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  background: var(--yellow-100);
  color: var(--yellow-600);
}

/* ========================================
   ABOUT
   ======================================== */
.about {
  padding: 6rem 0;
  background: var(--bg);
}
.about-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text .section-tag,
.about-text .section-title { text-align: start; }
.about-text p { color: var(--text-mute); margin-bottom: 1.5rem; }
.about-list li {
  padding: .5rem 0;
  padding-inline-start: 1.6rem;
  position: relative;
  font-weight: 500;
}
.about-list li::before {
  content: '◆';
  position: absolute;
  inset-inline-start: 0;
  color: var(--highlight);
  font-size: .7rem;
  top: .65rem;
}
.about-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.about-card {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-800));
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  color: #fff;
}
.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--highlight);
}
.stat-label {
  display: block;
  font-size: .9rem;
  margin-top: .3rem;
  opacity: .85;
}

/* ========================================
   REVIEWS
   ======================================== */
.reviews {
  padding: 6rem 0;
  background: linear-gradient(180deg, #fff 0%, var(--yellow-50) 60%, #fff 100%);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.review-card {
  text-align: start;
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
}
.review-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-200);
}
.review-stars {
  color: var(--yellow-400);
  font-size: 1.3rem;
  margin-bottom: .8rem;
}
.review-text {
  color: var(--grey-700);
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.review-author {
  font-weight: 700;
  color: var(--purple-700);
  font-size: 1rem;
}
.reviews-empty {
  color: var(--text-mute);
  font-style: italic;
}

/* --- Public review form --- */
/* Review Modal */
.review-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn .2s ease;
}
.review-modal-overlay[hidden] { display: none; }
.review-modal {
  position: relative;
  max-width: 560px;
  width: 100%;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.5rem 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: slideUp .25s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.review-modal h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}
.review-modal-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--grey-500);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
[dir="rtl"] .review-modal-close {
  right: auto;
  left: .75rem;
}
.review-modal-close:hover {
  background: var(--grey-100);
  color: var(--grey-800);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.star-picker {
  display: flex;
  gap: .2rem;
  padding-top: .3rem;
}
.star-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--grey-300);
  cursor: pointer;
  padding: 0;
  transition: color .15s;
}
.star-btn.active {
  color: var(--yellow-400);
}
.star-btn:hover {
  color: var(--yellow-500);
}

/* ========================================
   BOOKS SHOWCASE — Horizontal Marquee
   ======================================== */
.books {
  padding: 6rem 0 4rem;
  background: linear-gradient(180deg, var(--purple-50) 0%, #fff 100%);
  text-align: center;
  overflow: hidden;
}
.books-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 2rem;
  padding: 1.5rem 0;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.books-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: books-scroll 30s linear infinite;
}
.books-track:hover {
  animation-play-state: paused;
}
@keyframes books-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
[dir="rtl"] .books-track {
  animation-name: books-scroll-rtl;
}
@keyframes books-scroll-rtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}
.book-card {
  flex: 0 0 auto;
  width: 200px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem 1.2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(124,58,237,.06);
}
a.book-card { cursor: pointer; }
.book-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 40px rgba(124,58,237,.18);
  border-color: var(--purple-300);
}
.book-cover {
  position: relative;
  margin-bottom: 1rem;
}
.book-cover img {
  width: 150px;
  height: 210px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  transition: filter .3s ease, transform .3s ease;
}
.book-card:hover .book-cover img {
  transform: scale(1.04);
}
.book-card.in-dev .book-cover img {
  filter: grayscale(100%);
  opacity: .7;
}
.book-cover-placeholder {
  width: 150px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: var(--grey-100);
  border-radius: var(--radius);
}
.book-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  padding: .25rem .8rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.book-badge.dev {
  background: var(--yellow-400);
  color: var(--grey-900);
}
.book-info {
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.book-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: .2rem;
  line-height: 1.3;
}
.book-author {
  color: var(--text-mute);
  font-size: .85rem;
  margin-bottom: .6rem;
}
.book-buy-btn {
  display: inline-block;
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
}
.book-card:hover .book-buy-btn {
  box-shadow: 0 4px 12px rgba(124,58,237,.35);
}
.books-empty {
  color: var(--text-mute);
  font-style: italic;
}
@media (max-width: 640px) {
  .book-card { width: 170px; padding: 1.2rem .8rem 1rem; }
  .book-cover img { width: 130px; height: 185px; }
  .book-cover-placeholder { width: 130px; height: 185px; }
  .books-track { gap: 1.2rem; }
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
  padding: 6rem 0;
  background: linear-gradient(180deg, #fff 0%, var(--yellow-50) 100%);
}
.contact-form {
  max-width: 720px;
  margin: 0 auto;
  text-align: start;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: .4rem;
  font-size: 1rem;
  color: var(--grey-700);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple-400);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .1);
}
.form-group textarea { resize: vertical; }
.form-error {
  color: #dc2626;
  font-size: .88rem;
  margin-top: .8rem;
  text-align: center;
}
.form-success {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
}
.success-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.form-success h3 { margin-bottom: .5rem; }
.form-success p { color: var(--text-mute); }

/* --- Other ways to contact --- */
.contact-alt {
  max-width: 720px;
  margin: 3.5rem auto 0;
  text-align: center;
}
.contact-alt-title {
  font-size: 1.3rem;
  margin-bottom: .5rem;
}
.contact-alt-response {
  color: var(--text-mute);
  font-size: .95rem;
  margin-bottom: 1.5rem;
}
.contact-alt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}
.contact-alt-card {
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
a.contact-alt-card:hover {
  border-color: var(--purple-200);
  box-shadow: var(--shadow-lg);
}
.contact-alt-icon {
  font-size: 1.8rem;
  margin-bottom: .6rem;
}
.contact-alt-label {
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: .35rem;
}
.contact-alt-value {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--purple-700);
  word-break: break-all;
}
.contact-alt-note {
  margin-top: .6rem;
  font-size: .82rem;
  color: var(--text-mute);
  line-height: 1.5;
}

.audit-badge-section {
  padding: 0 0 4rem;
}
.audit-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  text-align: center;
}
.audit-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.audit-badge-copy {
  max-width: 480px;
}
.audit-badge-copy h3 {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  color: var(--grey-900);
}
.audit-badge-copy p {
  margin: 0;
  color: var(--text-mute);
  line-height: 1.6;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--grey-900);
  color: var(--grey-300);
  padding: 2.5rem 0;
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}
.footer-brand .logo-img {
  height: 38px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--grey-400);
  font-size: .85rem;
  text-decoration: none;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--highlight);
}
.footer p { font-size: .9rem; }
.footer-admin-link {
  font-size: .75rem;
  color: var(--grey-500);
  transition: var(--transition);
  opacity: .6;
}
.footer-admin-link:hover {
  color: var(--highlight);
  opacity: 1;
}
.footer-dev {
  font-size: .8rem;
  color: var(--grey-500);
  margin-top: .2rem;
}
.footer-dev a {
  color: var(--grey-400);
  text-decoration: underline;
  transition: var(--transition);
}
.footer-dev a:hover {
  color: var(--highlight);
}

/* ========================================
   LEGAL PAGES
   ======================================== */
.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.08), transparent 35%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.1), transparent 30%),
    linear-gradient(180deg, #fff 0%, var(--yellow-50) 100%);
}
.legal-shell {
  padding: 4rem 0 5rem;
}
.legal-card {
  max-width: 940px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  backdrop-filter: blur(8px);
}
.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.legal-nav-links {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
}
.legal-nav-links a {
  color: var(--purple-700);
  font-weight: 600;
  text-decoration: none;
}
.legal-kicker {
  margin: 0 0 .5rem;
  color: var(--accent);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
}
.legal-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--grey-900);
}
.legal-lead {
  margin: 1rem 0 0;
  color: var(--grey-700);
  line-height: 1.8;
  font-size: 1.02rem;
}
.legal-meta {
  margin: 1rem 0 2rem;
  color: var(--text-mute);
  font-size: .92rem;
}
.legal-section + .legal-section {
  margin-top: 2rem;
}
.legal-section h2 {
  margin: 0 0 .8rem;
  font-size: 1.35rem;
  color: var(--grey-900);
}
.legal-section p,
.legal-section li {
  color: var(--grey-700);
  line-height: 1.8;
}
.legal-section ul {
  margin: 0;
  padding-inline-start: 1.3rem;
}
.legal-section a {
  color: var(--purple-700);
}
.legal-bilingual {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-200);
}
.legal-bilingual h2,
.legal-bilingual p,
.legal-bilingual li {
  direction: rtl;
  text-align: right;
}

/* ========================================
   ADMIN PAGE
   ======================================== */

/* --- Login --- */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(170deg, var(--purple-50) 0%, #fff 50%, var(--yellow-50) 100%);
  padding: 2rem;
}
.login-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.login-card .logo {
  justify-content: center;
  margin-bottom: 2rem;
}
.login-card h2 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}
.login-card input {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}
.login-card input:focus {
  outline: none;
  border-color: var(--purple-400);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .1);
}
.login-error {
  color: #dc2626;
  font-size: .88rem;
  margin-bottom: .8rem;
}

/* --- Admin layout --- */
.admin-header {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-900));
  color: #fff;
  padding: 2rem 0;
  margin-top: 72px;
}
.admin-header h1 { color: #fff; font-size: 1.8rem; }
.admin-header p { opacity: .8; margin-top: .3rem; }

.admin-body {
  padding: 2rem 0 4rem;
  min-height: 60vh;
}

/* --- Tabs --- */
.admin-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--grey-200);
  padding-bottom: 0;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
}
.admin-tab {
  position: relative;
  padding: .7rem 1.4rem;
  border: none;
  background: none;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 500;
  min-height: 44px;
  white-space: nowrap;
  color: var(--grey-500);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}
.admin-tab:hover { color: var(--purple-600); }
.admin-tab.active {
  color: var(--purple-600);
  border-bottom-color: var(--purple-500);
  font-weight: 600;
}
.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 50px;
  background: #dc2626;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  margin-inline-start: .4rem;
  line-height: 1;
}
.admin-panel { display: none; }
.admin-panel.active { display: block; }

/* --- Stats --- */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.admin-stat-card {
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
}
.admin-stat-card .stat-number {
  font-size: 1.8rem;
  color: var(--purple-600);
}
.admin-stat-card .stat-label {
  font-size: .82rem;
  color: var(--text-mute);
}

/* --- Admin toolbar --- */
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-toolbar h2 { font-size: 1.2rem; }
.admin-filters {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: .4rem .9rem;
  border: 1.5px solid var(--grey-200);
  border-radius: 50px;
  background: #fff;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  color: var(--grey-700);
}
.filter-btn:hover { border-color: var(--purple-300); }
.filter-btn.active {
  background: var(--purple-500);
  border-color: var(--purple-500);
  color: #fff;
}

/* --- Query cards --- */
.query-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.query-card {
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  text-align: start;
  transition: var(--transition);
}
.query-card:hover { box-shadow: var(--shadow); border-color: var(--purple-200); }
.query-card.status-new    { border-inline-start: 4px solid var(--highlight); }
.query-card.status-read   { border-inline-start: 4px solid var(--purple-400); }
.query-card.status-replied{ border-inline-start: 4px solid #22c55e; }
.query-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: .4rem;
  align-items: center;
}
.query-name { font-weight: 600; color: var(--grey-900); }
.query-service {
  background: var(--purple-50);
  color: var(--purple-600);
  font-size: .78rem;
  font-weight: 600;
  padding: .2rem .7rem;
  border-radius: 50px;
}
.query-date { font-size: .8rem; color: var(--text-mute); }
.query-email { font-size: .85rem; color: var(--purple-600); margin-bottom: .3rem; }
.query-message {
  color: var(--grey-700);
  font-size: .92rem;
  line-height: 1.5;
}
.query-actions {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.query-status-btn {
  padding: .35rem .8rem;
  border: 1.5px solid var(--grey-200);
  border-radius: 8px;
  background: #fff;
  font-size: .78rem;
  font-weight: 500;
  min-height: 44px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}
.query-status-btn:hover { background: var(--purple-50); border-color: var(--purple-300); }
.query-status-btn.danger { color: #dc2626; }
.query-status-btn.danger:hover { background: #fef2f2; border-color: #fca5a5; }

.status-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  padding: .15rem .55rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.status-badge.new     { background: var(--yellow-100); color: var(--yellow-600); }
.status-badge.read    { background: var(--purple-100); color: var(--purple-600); }
.status-badge.replied { background: #dcfce7; color: #16a34a; }

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-mute);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; }

/* --- Admin forms (modals inline) --- */
.admin-form-card {
  background: var(--purple-50);
  border: 1px solid var(--purple-200);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  text-align: start;
}
.admin-form-card .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.admin-form-card .form-group { margin-bottom: .8rem; }
.admin-form-card label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .3rem;
  color: var(--grey-700);
}
.admin-form-card input,
.admin-form-card textarea,
.admin-form-card select {
  width: 100%;
  padding: .55rem .8rem;
  border: 1.5px solid var(--grey-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: .88rem;
  background: #fff;
}
.admin-form-card input:focus,
.admin-form-card textarea:focus,
.admin-form-card select:focus {
  outline: none;
  border-color: var(--purple-400);
}
.admin-form-card textarea { resize: vertical; min-height: 60px; }
.admin-form-actions {
  display: flex;
  gap: .5rem;
  margin-top: .5rem;
}

/* --- Service/Review admin cards --- */
.admin-item-list {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.admin-item-card {
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: start;
  transition: var(--transition);
}
.admin-item-card:hover { box-shadow: var(--shadow); }
.admin-item-info { flex: 1; min-width: 0; }
.admin-item-info strong { color: var(--grey-900); }
.admin-item-info .sub {
  font-size: .82rem;
  color: var(--text-mute);
  margin-top: .2rem;
}
.admin-item-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.admin-nav-links {
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .about-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-visual { flex-direction: row; }
  .about-card { flex: 1; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 2rem;
    gap: 1.4rem;
    transform: translateY(-120%);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    border-bottom: 2px solid var(--purple-200);
    z-index: 999;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links li > a,
  .nav-links li > button { width: 100%; justify-content: center; }
  .admin-nav-links {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    background: transparent;
    flex-direction: row;
    padding: 0;
    gap: .75rem;
    transform: none;
    box-shadow: none;
    border-bottom: 0;
    width: 100%;
    justify-content: center;
    max-height: none;
    overflow: visible;
  }
  .admin-nav-links li { width: auto; }
  .admin-nav-links li > a,
  .admin-nav-links li > button { width: auto; }
  .hero-content { padding: 2rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; text-align: center; }
  .legal-card { padding: 1.5rem; }
  .legal-nav { align-items: flex-start; }
  .query-card { grid-template-columns: 1fr; }
  .query-actions { flex-direction: row; flex-wrap: wrap; }
  .admin-filters { flex-wrap: wrap; }
  .admin-form-card .form-grid { grid-template-columns: 1fr; }
  .admin-item-card { flex-direction: column; align-items: flex-start; }
  .hero-lang-btn { padding: .4rem 1.2rem; font-size: .9rem; }
  .review-modal { padding: 1.5rem; }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
  }
  .hero-lang-switch {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 24px;
  }
  .hero-cta {
    flex-direction: column;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .pricing-table {
    min-width: 560px;
  }
  .about-visual {
    flex-direction: column;
  }
  .contact-alt-grid {
    grid-template-columns: 1fr;
  }
  .query-card,
  .admin-form-card,
  .admin-item-card {
    padding: 1rem;
  }
  .query-actions,
  .admin-item-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .query-status-btn,
  .btn-sm {
    min-height: 44px;
  }
}

/* ========================================
   RTL-SPECIFIC OVERRIDES
   ======================================== */
[dir="rtl"] .shape-1 { right: auto; left: -100px; }
[dir="rtl"] .shape-3 { right: auto; left: 15%; }
[dir="rtl"] body { line-height: 1.8; font-size: 1.1rem; }
