/* ==========================================================================
   KHDAMA — Moroccan Maid Marketplace
   Single CSS file · No preprocessor · Mobile-first · RTL-ready
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
  --green: #2D8B4E;
  --green-light: #e8f5e9;
  --green-dark: #1e6b38;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --paper: #f8f7f4;
  --white: #ffffff;
  --line: #e5e5e5;
  --orange: #f59e0b;
  --red: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --serif: 'Inter', sans-serif;
  --sans: 'Inter', sans-serif;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

body.menu-open {
  overflow: hidden;
}

button {
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.125rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.875rem;
}

p {
  color: var(--muted);
}

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 3rem;
}

/* --------------------------------------------------------------------------
   4. UTILITY CLASSES
   -------------------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--green);
}

.btn-white:hover {
  background: var(--green-light);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-verified {
  background: var(--green-light);
  color: var(--green);
}

.badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   5. HEADER / NAVBAR
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.navbar-links {
  display: none;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.navbar-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.navbar-links a:hover {
  color: var(--green);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.lang-switcher {
  display: flex;
  gap: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}

.lang-switcher button {
  padding: 0.375rem 0.75rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s ease;
}

.lang-switcher button.active {
  background: var(--green);
  color: var(--white);
}

.mobile-menu-btn {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 99;
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease;
}

.mobile-menu a:hover {
  color: var(--green);
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  padding: 4rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-light);
  color: var(--green);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   7. SEARCH CARD
   -------------------------------------------------------------------------- */
.search-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  width: 100%;
}

.search-card h3 {
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.form-group input,
.form-group select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-light);
}

.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
  min-height: 80px;
  width: 100%;
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-light);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.search-card .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   8. TRUST BAR
   -------------------------------------------------------------------------- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  padding: 2rem 0;
  margin-top: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
  font-weight: 500;
}

.trust-item svg,
.trust-item span:first-child {
  color: var(--green);
  font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   9. MAID CARDS / GRID
   -------------------------------------------------------------------------- */
.maids-section {
  padding: 4rem 0;
}

.maids-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.maid-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.maid-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.maid-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--line);
}

.maid-card-body {
  padding: 1.25rem;
}

.maid-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.maid-card-name {
  font-size: 1.125rem;
  font-weight: 700;
}

.maid-card-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--orange);
}

.maid-card-location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.maid-card-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.maid-card-services .tag {
  padding: 0.25rem 0.625rem;
  background: var(--paper);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.maid-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.maid-card-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
}

.maid-card-price small {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--muted);
}

.maid-card-availability {
  font-size: 0.8125rem;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.maid-card-availability::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

/* --------------------------------------------------------------------------
   10. HOW IT WORKS
   -------------------------------------------------------------------------- */
.how-section {
  padding: 4rem 0;
  background: var(--white);
}

.how-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.how-step {
  text-align: center;
  padding: 2rem 1.5rem;
}

.how-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  margin: 0 auto 1.25rem;
}

.how-step h3 {
  margin-bottom: 0.75rem;
}

.how-step p {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   11. WHY KHDAMA
   -------------------------------------------------------------------------- */
.why-section {
  padding: 4rem 0;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.why-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.why-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
}

.why-card p {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   12. CTA SECTIONS
   -------------------------------------------------------------------------- */
.cta-section {
  padding: 5rem 0;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn + .btn {
  margin-left: 1rem;
}

.cta-green {
  background: var(--green-light);
}

.cta-dark {
  background: var(--ink);
  color: var(--white);
}

.cta-dark h2,
.cta-dark p {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9375rem;
  padding: 0.375rem 0;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s ease;
  font-size: 1.125rem;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   14. MAIDS LISTING PAGE
   -------------------------------------------------------------------------- */
.maids-hero {
  padding: 3rem 0 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.maids-hero h1 {
  margin-bottom: 0.5rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.filter-bar select,
.filter-bar input {
  padding: 0.625rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s ease;
}

.filter-bar select:focus,
.filter-bar input:focus {
  outline: none;
  border-color: var(--green);
}

.filter-toggle-mobile {
  display: none;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  margin-bottom: 1rem;
}

.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sort-bar select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--white);
}

.results-count {
  font-size: 0.9375rem;
  color: var(--muted);
}

.maids-list {
  padding: 3rem 0;
}

.maids-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   15. MAID PROFILE PAGE
   -------------------------------------------------------------------------- */
.profile-hero {
  padding: 3rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.profile-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--green-light);
  margin: 0 auto;
}

.profile-info h1 {
  margin-bottom: 0.5rem;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.profile-body {
  padding: 3rem 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.profile-section {
  margin-bottom: 2.5rem;
}

.profile-section h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.services-tags .tag {
  padding: 0.5rem 1rem;
  background: var(--green-light);
  color: var(--green);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.availability-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.availability-day {
  text-align: center;
  padding: 0.625rem 0.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
}

.availability-day.available {
  background: var(--green-light);
  color: var(--green);
}

.availability-day.unavailable {
  background: var(--paper);
  color: var(--muted);
}

.review-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.review-stars {
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.review-text {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.review-author {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   16. BOOKING SIDEBAR (desktop)
   -------------------------------------------------------------------------- */
.booking-sidebar {
  position: sticky;
  top: 5rem;
}

.booking-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
}

.booking-card h3 {
  margin-bottom: 1.25rem;
}

.booking-card .form-group {
  margin-bottom: 1rem;
}

.booking-card .btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
   17. BECOME A MAID PAGE
   -------------------------------------------------------------------------- */
.register-hero {
  padding: 4rem 0;
  text-align: center;
}

.register-steps {
  max-width: 600px;
  margin: 3rem auto;
}

.register-step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.register-step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.register-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.register-step h3 {
  font-size: 1.125rem;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkbox-item:hover {
  border-color: var(--green);
}

.checkbox-item input:checked + span {
  color: var(--green);
}

.checkbox-item.selected {
  border-color: var(--green);
  background: var(--green-light);
}

/* --------------------------------------------------------------------------
   18. DASHBOARD
   -------------------------------------------------------------------------- */
.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - 60px);
}

.dashboard-sidebar {
  background: var(--white);
  border-right: 1px solid var(--line);
  padding: 1.5rem;
}

.dashboard-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dashboard-sidebar a.active {
  background: var(--green-light);
  color: var(--green);
}

.dashboard-sidebar a:hover {
  background: var(--paper);
}

.dashboard-content {
  padding: 2rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
}

.stat-card-label {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.dashboard-table th {
  text-align: left;
  padding: 0.875rem 1rem;
  background: var(--paper);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.dashboard-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.status-badge {
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-accepted {
  background: var(--green-light);
  color: var(--green);
}

.status-completed {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-cancelled {
  background: #fee2e2;
  color: #dc2626;
}

/* --------------------------------------------------------------------------
   19. ADMIN DASHBOARD
   -------------------------------------------------------------------------- */
.admin-header {
  background: var(--ink);
  color: var(--white);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--line);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.admin-tab {
  padding: 0.75rem 1.5rem;
  border: none;
  background: none;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.admin-tab:hover {
  color: var(--ink);
}

.admin-tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.dashboard-panel {
  display: none;
}

.dashboard-panel.active {
  display: block;
}

/* --------------------------------------------------------------------------
   20. BOOKING CONFIRMATION
   -------------------------------------------------------------------------- */
.booking-confirm {
  max-width: 600px;
  margin: 3rem auto;
  text-align: center;
}

.booking-confirm-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.booking-details {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
  text-align: left;
  box-shadow: var(--shadow);
}

.booking-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.booking-detail-row:last-child {
  border-bottom: none;
}

.booking-detail-label {
  color: var(--muted);
  font-size: 0.9375rem;
}

.booking-detail-value {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   21. WHATSAPP FAB
   -------------------------------------------------------------------------- */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 50;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   22. SKELETON LOADING
   -------------------------------------------------------------------------- */
.skeleton {
  background: linear-gradient(90deg, var(--line) 25%, #f0f0f0 50%, var(--line) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-pulse {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  height: 380px;
  border-radius: var(--radius);
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 1.5rem;
  width: 60%;
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   23. EMPTY & ERROR STATES
   -------------------------------------------------------------------------- */
.empty-state,
.error-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state-icon,
.error-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state h3,
.error-state h3 {
  margin-bottom: 0.75rem;
}

.empty-state p,
.error-state p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   24. ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeIn 0.4s ease forwards;
}

/* --------------------------------------------------------------------------
   25. MEDIA QUERIES — 900px (Desktop)
   -------------------------------------------------------------------------- */
@media (min-width: 900px) {
  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  .navbar-links {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .navbar-links a {
    white-space: nowrap;
    font-size: 0.8125rem;
  }

  .mobile-menu-btn {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  .hero-inner {
    grid-template-columns: 1fr 1fr;
  }

  .maids-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .how-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .maids-list-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }

  .profile-hero-inner {
    grid-template-columns: 300px 1fr;
  }

  .profile-photo {
    margin: 0;
  }

  .profile-grid {
    grid-template-columns: 2fr 1fr;
  }

  .dashboard-layout {
    grid-template-columns: 250px 1fr;
  }

  .dashboard-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .dashboard-table th {
    text-align: left;
  }

  .cta-section .btn + .btn {
    margin-left: 1rem;
  }
}

/* --------------------------------------------------------------------------
   26. MEDIA QUERIES — 650px (Small Tablet)
   -------------------------------------------------------------------------- */
@media (min-width: 650px) {
  .maids-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .maids-list-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .booking-details {
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   27. MEDIA QUERIES — max-width: 520px (Small Mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 520px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .maids-grid {
    grid-template-columns: 1fr;
  }

  .maids-list-grid {
    grid-template-columns: 1fr;
  }

  .how-steps {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding: 0.75rem;
    gap: 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
    -webkit-overflow-scrolling: touch;
  }

  .dashboard-sidebar h3 {
    display: none;
  }

  .dashboard-sidebar a {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    border-bottom: 2px solid transparent;
    border-radius: 0;
  }

  .dashboard-sidebar a.active {
    border-bottom-color: var(--green);
    background: transparent;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .admin-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .admin-tabs {
    justify-content: flex-start;
  }

  .profile-photo {
    width: 150px;
    height: 150px;
  }

  .profile-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .availability-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
  }

  .availability-day {
    font-size: 0.6875rem;
    padding: 0.5rem 0.125rem;
  }

  .booking-detail-row {
    flex-direction: column;
    gap: 0.25rem;
  }

  .cta-section {
    padding: 3rem 0;
  }

  .cta-section .btn + .btn {
    margin-left: 0;
    margin-top: 0.75rem;
  }

  .whatsapp-fab {
    width: 52px;
    height: 52px;
    bottom: 1rem;
    right: 1rem;
  }

  .filter-bar {
    flex-direction: column;
  }

  .filter-bar select,
  .filter-bar input {
    width: 100%;
  }

  .register-step {
    padding: 1.5rem;
  }

  .checkbox-group {
    flex-direction: column;
  }

  .checkbox-item {
    width: 100%;
  }
}

.mobile-booking-bar {
  z-index: 90 !important;
}

/* --------------------------------------------------------------------------
   27b. MEDIA QUERIES — max-width: 650px (Filter Toggle)
   -------------------------------------------------------------------------- */
@media (max-width: 650px) {
  .filter-toggle-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .filter-bar {
    display: none;
  }

  .filter-bar.open {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   27c. MEDIA QUERIES — max-width: 900px (Hide Mobile CTA)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .navbar-actions .btn {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   28. RTL SUPPORT
   -------------------------------------------------------------------------- */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .navbar-links {
  direction: rtl;
}

[dir="rtl"] .footer-col a {
  text-align: right;
}

[dir="rtl"] .footer-bottom {
  text-align: center;
}

[dir="rtl"] .section-title,
[dir="rtl"] .section-subtitle {
  text-align: center;
}

[dir="rtl"] .hero-text {
  margin-left: auto;
  margin-right: 0;
}

[dir="rtl"] .maid-card-location {
  direction: rtl;
}

[dir="rtl"] .how-step {
  text-align: center;
}

[dir="rtl"] .why-card {
  text-align: right;
}

[dir="rtl"] .booking-details {
  text-align: right;
}

[dir="rtl"] .booking-detail-row {
  direction: rtl;
}

[dir="rtl"] .dashboard-table th {
  text-align: right;
}

[dir="rtl"] .sort-bar {
  flex-direction: row-reverse;
}

[dir="rtl"] .sort-bar select {
  direction: rtl;
}

[dir="rtl"] .filter-bar select,
[dir="rtl"] .filter-bar input {
  direction: rtl;
}

[dir="rtl"] .mobile-menu {
  left: 0;
  right: 0;
}

[dir="rtl"] .filter-bar {
  direction: rtl;
}

[dir="rtl"] .sort-bar {
  direction: rtl;
}

[dir="rtl"] .profile-meta {
  direction: rtl;
}

[dir="rtl"] .dashboard-sidebar a {
  text-align: right;
}

[dir="rtl"] .mobile-booking-bar {
  right: auto;
  left: 0;
}

[dir="rtl"] .whatsapp-fab {
  right: auto;
  left: 1.5rem;
}

@media (max-width: 520px) {
  [dir="rtl"] .whatsapp-fab {
    left: 1rem;
  }
}

/* --------------------------------------------------------------------------
   29. PREFERS REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .skeleton {
    animation: none;
  }

  .animate-in {
    animation: none;
    opacity: 1;
  }

  .maid-card:hover {
    transform: none;
  }

  .whatsapp-fab:hover {
    transform: none;
  }
}
