/* ── Vazirmatn self-hosted ──────────────────────────────────────────────────── */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn[wght].woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-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;
}

/* ── Design tokens ──────────────────────────────────────────────────────────── */
:root {
  --brand:        #5A8C6E;
  --brand-dark:   #477559;
  --brand-light:  #EDF4F0;
  --brand-subtle: #F0F7F3;
  --accent:       #C4956A;
  --accent-light: #FDF5EE;
  --dark:         #1E1E2E;
  --dark-80:      rgba(30,30,46,.8);
  --charcoal:     #2D2D3F;
  --text:         #2C2C3A;
  --text-muted:   #6B7280;
  --text-faint:   #9CA3AF;
  --border:       #E5E7EB;
  --border-soft:  #F0F0F3;
  --bg:           #FFFFFF;
  --bg-soft:      #F8F7F5;
  --bg-warm:      #FAF9F7;
  --shadow-sm:    0 1px 3px rgba(30,30,46,.08), 0 1px 2px rgba(30,30,46,.06);
  --shadow:       0 4px 16px rgba(30,30,46,.10), 0 1px 4px rgba(30,30,46,.06);
  --shadow-md:    0 8px 30px rgba(30,30,46,.12), 0 2px 8px rgba(30,30,46,.06);
  --shadow-lg:    0 20px 60px rgba(30,30,46,.15), 0 4px 16px rgba(30,30,46,.08);
  --shadow-brand: 0 6px 20px rgba(90,140,110,.25);
  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    20px;
  --radius-xl:    32px;
  --radius-full:  999px;
  --font:         'Vazirmatn', Tahoma, Arial, sans-serif;
  --header-h:     72px;
  --container:    1200px;
  --gap:          2rem;
}

/* ── Reset + base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ── Typography scale ──────────────────────────────────────────────────────── */
.t-hero   { font-size: clamp(1.75rem, 4.5vw, 3rem);    font-weight: 700; line-height: 1.2; }
.t-h1     { font-size: clamp(1.5rem, 3vw, 2.25rem);    font-weight: 700; line-height: 1.3; }
.t-h2     { font-size: clamp(1.25rem, 2.5vw, 1.875rem);font-weight: 700; line-height: 1.35;}
.t-h3     { font-size: clamp(1.1rem, 2vw, 1.375rem);   font-weight: 600; line-height: 1.4; }
.t-h4     { font-size: 1.125rem; font-weight: 600; }
.t-body   { font-size: 1rem;     line-height: 1.8; }
.t-sm     { font-size: .875rem; }
.t-xs     { font-size: .8125rem; }
.t-muted  { color: var(--text-muted); }
.t-brand  { color: var(--brand); }
.t-accent { color: var(--accent); }

/* ── Layout helpers ─────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.section { padding-block: 5rem; }
.section-sm { padding-block: 3.5rem; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
  padding: .35rem .9rem;
  border-radius: var(--radius-full);
  margin-bottom: .875rem;
}
.section-header h2 { color: var(--dark); }
.section-header p {
  color: var(--text-muted);
  max-width: 540px;
  margin-inline: auto;
  margin-top: .625rem;
  font-size: .9375rem;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: .5rem; }
.gap { gap: 1rem; }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  transition: all .2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-sm { padding: .55rem 1.25rem; font-size: .875rem; }
.btn-lg { padding: .9rem 2.25rem; font-size: 1rem; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(90,140,110,.35); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
.btn-ghost:hover { background: var(--brand-light); }

.btn-ghost-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.7);
}
.btn-ghost-white:hover { background: rgba(255,255,255,.12); }

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ── Icon helpers ───────────────────────────────────────────────────────────── */
.icon-sm  { width: 18px; height: 18px; }
.icon-md  { width: 22px; height: 22px; }
.icon-lg  { width: 28px; height: 28px; }
.icon-xl  { width: 36px; height: 36px; }

/* ── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--header-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  z-index: 1000;
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 42px; height: 42px;
  background: var(--brand);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; gap: 0; }
.logo-brand { font-size: .9375rem; font-weight: 700; color: var(--dark); line-height: 1.2; }
.logo-sub   { font-size: .6875rem; color: var(--text-muted); line-height: 1; }
.logo--light .logo-brand { color: #fff; }
.logo--light .logo-sub   { color: rgba(255,255,255,.6); }

/* Nav */
.main-nav { flex: 1; }
.nav-list {
  display: flex;
  align-items: center;
  gap: .25rem;
  justify-content: center;
}
.nav-link {
  padding: .45rem .875rem;
  border-radius: var(--radius-full);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  transition: all .18s;
}
.nav-link:hover, .nav-link.active {
  color: var(--brand);
  background: var(--brand-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}
.header-phone:hover { color: var(--brand); }

.mobile-menu-toggle { display: none; }
.hamburger {
  display: block;
  width: 22px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  position: relative;
  transition: background .2s;
}
.hamburger::before, .hamburger::after {
  content: '';
  display: block;
  width: 22px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  position: absolute;
  transition: transform .25s;
}
.hamburger::before { top: -7px; }
.hamburger::after  { top:  7px; }

/* ── Mobile nav ──────────────────────────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline-end: 0;
  width: min(85vw, 320px);
  height: 100dvh;
  background: var(--bg);
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
[dir="rtl"] .mobile-nav { transform: translateX(100%); }
.mobile-nav.open { transform: translateX(0) !important; }

.mobile-nav-inner {
  padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem;
  display: flex;
  flex-direction: column;
}
.mobile-nav-list { display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav-link {
  display: block;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  transition: all .18s;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--brand);
  background: var(--brand-light);
}
.mobile-nav-phone {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,30,46,.45);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

/* ── Hero section ───────────────────────────────────────────────────────────── */
.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 4rem 2rem;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: .35rem .875rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  width: fit-content;
}
.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--dark);
  margin-bottom: .875rem;
}
.hero-title em {
  font-style: normal;
  color: var(--brand);
}
.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 420px;
  margin-bottom: 2rem;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
  display: block;
  line-height: 1;
}
.hero-stat-label {
  font-size: .8125rem;
  color: var(--text-muted);
  margin-top: .25rem;
}

.hero-image {
  position: relative;
  overflow: hidden;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Floating decorators */
.hero-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.hero-deco-1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(90,140,110,.12) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
}
.hero-deco-2 {
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(196,149,106,.15) 0%, transparent 70%);
  top: 20%;
  left: 5%;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}

/* ── Services section ───────────────────────────────────────────────────────── */
.services-section { background: var(--bg-soft); }

.service-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.service-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.service-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.05); }

.service-card-body {
  padding: 1.25rem 1.375rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-cat {
  font-size: .75rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-light);
  padding: .2rem .625rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: .625rem;
}
.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .375rem;
  line-height: 1.4;
}
.service-card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}
.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .875rem;
  border-top: 1px solid var(--border-soft);
  margin-top: auto;
}
.service-price {
  font-size: .875rem;
  font-weight: 700;
  color: var(--accent);
}

/* ── Gallery section ─────────────────────────────────────────────────────────── */
.gallery-section { background: var(--bg); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(30,30,46,.65) 100%);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-label {
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
}

/* ── Features section ────────────────────────────────────────────────────────── */
.features-section { background: var(--bg-warm); }
.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon-wrap {
  width: 64px; height: 64px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.feature-card h3 { color: var(--dark); margin-bottom: .5rem; }
.feature-card p  { font-size: .875rem; color: var(--text-muted); line-height: 1.7; }

/* ── Testimonials ────────────────────────────────────────────────────────────── */
.testimonials-section {
  background: var(--bg-soft);
  overflow: hidden;
}
.testimonials-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.testimonials-track::-webkit-scrollbar { display: none; }

.testimonial-card {
  flex: 0 0 320px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
  border: 1px solid var(--border-soft);
}
.testimonial-stars {
  color: var(--accent);
  display: flex;
  gap: .25rem;
  margin-bottom: .875rem;
}
.testimonial-body {
  font-size: .9375rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.testimonial-avatar {
  width: 42px; height: 42px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9375rem;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: .9375rem; color: var(--dark); }

/* ── About section ───────────────────────────────────────────────────────────── */
.about-section { background: var(--bg); }
.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-content { display: flex; flex-direction: column; justify-content: center; }
.about-content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-light);
  padding: .35rem .9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  width: fit-content;
}
.about-content h2 { color: var(--dark); margin-bottom: 1rem; }
.about-content p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.85; }
.about-creds {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  margin-top: 1.25rem;
}
.about-cred {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9rem;
  color: var(--text);
}
.about-cred-icon {
  width: 32px; height: 32px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}

/* ── Booking banner ──────────────────────────────────────────────────────────── */
.booking-banner {
  background: var(--brand);
  position: relative;
  overflow: hidden;
}
.booking-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/img/booking_banner.webp') center/cover no-repeat;
  opacity: .18;
}
.booking-banner-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 5rem 1.5rem;
  max-width: 700px;
  margin-inline: auto;
}
.booking-banner h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: .875rem;
}
.booking-banner p {
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.8;
}
.booking-banner .btn-ghost-white { border-color: rgba(255,255,255,.6); }

/* ── Contact section ─────────────────────────────────────────────────────────── */
.contact-section { background: var(--bg-soft); }
.contact-info-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.contact-info-card h3 { color: var(--dark); margin-bottom: 1.5rem; }
.contact-info-list { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  font-size: .9375rem;
}
.contact-info-item-icon {
  width: 38px; height: 38px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-item-text strong { display: block; font-size: .8125rem; color: var(--text-muted); margin-bottom: .2rem; }
.contact-info-item-text span, .contact-info-item-text a { color: var(--dark); font-weight: 500; }
.contact-info-item-text a:hover { color: var(--brand); }

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.contact-map-placeholder {
  text-align: center;
  color: var(--brand);
}
.contact-map-placeholder p { font-size: .875rem; color: var(--text-muted); margin-top: .5rem; }

/* ── Contact form ────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.125rem; }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--dark); margin-bottom: .375rem; }
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: .9375rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
  direction: rtl;
}
.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(90,140,110,.12);
}
.form-control::placeholder { color: var(--text-faint); }
textarea.form-control { resize: vertical; min-height: 120px; }

.alert {
  padding: .875rem 1.125rem;
  border-radius: var(--radius);
  font-size: .9rem;
  margin-bottom: 1rem;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 3rem;
}
.footer-desc {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  line-height: 1.8;
  margin-top: 1.25rem;
  max-width: 300px;
}
.footer-socials {
  display: flex;
  gap: .625rem;
  margin-top: 1.5rem;
}
.social-link {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.75);
  border-radius: 10px;
  transition: all .2s;
}
.social-link:hover { background: var(--brand); color: #fff; }

.footer-heading {
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.footer-links { display: flex; flex-direction: column; gap: .625rem; }
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color .18s;
}
.footer-links a:hover { color: var(--brand); }

.footer-contact-list { display: flex; flex-direction: column; gap: .875rem; }
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .875rem;
  color: rgba(255,255,255,.6);
}
.footer-contact-list svg { color: var(--brand); margin-top: .1rem; flex-shrink: 0; }
.footer-contact-list a { color: rgba(255,255,255,.75); }
.footer-contact-list a:hover { color: var(--brand); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 1.25rem;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8125rem;
  color: rgba(255,255,255,.45);
}
.footer-admin-link a { color: rgba(255,255,255,.3); }
.footer-admin-link a:hover { color: var(--brand); }

/* ── Page hero (inner pages) ─────────────────────────────────────────────────── */
.page-hero {
  background: var(--brand-subtle);
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  border-bottom: 1px solid var(--border-soft);
}
.page-hero h1 { color: var(--dark); }
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--text-muted);
  margin-top: .5rem;
}
.page-hero .breadcrumb a { color: var(--brand); }

/* ── Stub pages ──────────────────────────────────────────────────────────────── */
.stub-section {
  padding: 5rem 1.5rem;
  text-align: center;
  min-height: 60dvh;
  display: flex;
  align-items: center;
}
.stub-inner {
  max-width: 560px;
  margin-inline: auto;
}
.stub-icon {
  width: 72px; height: 72px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.stub-inner h1 { color: var(--dark); margin-bottom: .875rem; }
.stub-inner p  { color: var(--text-muted); margin-bottom: 1.75rem; }

/* ── Utilities ───────────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }

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

@media (max-width: 768px) {
  :root { --header-h: 64px; --gap: 1.25rem; }

  .main-nav,
  .header-phone { display: none; }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: var(--radius);
    margin-inline-start: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-content {
    order: 2;
    padding: 2.5rem 1.25rem 3rem;
  }
  .hero-image {
    order: 1;
    height: 55vw;
    max-height: 320px;
  }
  .hero-image img { height: 100%; }
  .hero-stats { gap: 1.25rem; }

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

  .section { padding-block: 3.5rem; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: span 2; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; padding-top: 2.5rem; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom-inner { flex-direction: column; gap: .5rem; text-align: center; }

  .testimonial-card { flex: 0 0 85vw; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .booking-banner-inner { padding: 3rem 1rem; }
  .hero-stats { flex-wrap: wrap; }
}

/* ── Admin styles ────────────────────────────────────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100dvh;
  padding-top: var(--header-h);
}
.admin-sidebar {
  background: var(--dark);
  padding: 1.5rem 0;
  position: sticky;
  top: var(--header-h);
  height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.5rem;
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  transition: all .18s;
}
.admin-nav-link:hover, .admin-nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.admin-nav-link svg { flex-shrink: 0; }
.admin-content { padding: 2rem; background: var(--bg-soft); }
.admin-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.admin-card h2 { font-size: 1.125rem; font-weight: 700; color: var(--dark); margin-bottom: 1.25rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th { text-align: right; padding: .625rem .875rem; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid var(--border); font-size: .8125rem; }
td { padding: .75rem .875rem; border-bottom: 1px solid var(--border-soft); color: var(--text); }
tr:last-child td { border-bottom: none; }
.badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
}
.badge-green   { background: #d1fae5; color: #065f46; }
.badge-yellow  { background: #fef3c7; color: #92400e; }
.badge-red     { background: #fee2e2; color: #991b1b; }
.badge-gray    { background: var(--border); color: var(--text-muted); }

/* Admin login */
.admin-login-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  padding: 2rem;
}
.admin-login-card {
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.admin-login-card .logo { justify-content: center; margin-bottom: 1.75rem; }
.admin-login-card h1 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: .25rem;
}
.admin-login-card .sub {
  font-size: .875rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.75rem;
}

/* ── Cart badge (header) ──────────────────────────────────────────────────────── */
.header-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: color .2s, background .2s;
}
.header-cart:hover { color: var(--brand); background: var(--brand-light); }
.cart-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--accent);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Auth tabs ────────────────────────────────────────────────────────────────── */
.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: .25rem;
}
.auth-tab {
  flex: 1;
  padding: .625rem 1rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all .18s;
}
.auth-tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.auth-tab:hover:not(.active) { color: var(--text); }

/* ── Shop filter tabs ─────────────────────────────────────────────────────────── */
.shop-filter-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-soft);
}
.shop-filter-tab {
  display: inline-flex;
  align-items: center;
  padding: .45rem 1.125rem;
  border-radius: var(--radius-full);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  transition: all .18s;
  white-space: nowrap;
}
.shop-filter-tab:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-light); }
.shop-filter-tab.active { color: var(--brand); border-color: var(--brand); background: var(--brand-light); font-weight: 600; }

/* ── Product detail ───────────────────────────────────────────────────────────── */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.product-gallery {}
.product-main-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-soft);
}
.product-main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbnails {
  display: flex;
  gap: .625rem;
  margin-top: .875rem;
  flex-wrap: wrap;
}
.product-thumb {
  width: 72px; height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  padding: 0;
  background: none;
  cursor: pointer;
  transition: border-color .18s;
  flex-shrink: 0;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumb.active { border-color: var(--brand); }
.product-thumb:hover { border-color: var(--brand); }

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-block: .875rem;
}

.product-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .875rem;
  font-weight: 600;
  color: #065f46;
  background: #ecfdf5;
  padding: .35rem .875rem;
  border-radius: var(--radius-full);
  border: 1px solid #a7f3d0;
}
.product-stock-badge--out {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fca5a5;
}

.product-option-group {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.product-option-label {
  cursor: pointer;
}
.product-option-label input[type="radio"] { display: none; }
.product-option-label span {
  display: inline-block;
  padding: .4rem .875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  transition: all .18s;
}
.product-option-label input:checked + span {
  border-color: var(--brand);
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 600;
}
.product-option-label:hover span { border-color: var(--brand); }

/* Quantity control */
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: 140px;
}
.qty-btn {
  width: 40px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg-soft);
  transition: all .18s;
  flex-shrink: 0;
}
.qty-btn:hover { color: var(--brand); background: var(--brand-light); }
.qty-input {
  flex: 1;
  text-align: center;
  border: none;
  border-inline: 1px solid var(--border);
  height: 42px;
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--dark);
  background: var(--bg);
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { display: none; }
.qty-control--sm { width: 120px; }
.qty-input--sm { height: 36px; font-size: .875rem; }
.qty-btn.qty-btn-sm { height: 36px; width: 36px; }

.product-meta-box {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  margin-top: 1.5rem;
  padding: 1rem 1.125rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
}
.product-meta-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .875rem;
  color: var(--text-muted);
}
.product-meta-item svg { color: var(--brand); flex-shrink: 0; }

/* ── Cart page ────────────────────────────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
.cart-table-wrap { overflow-x: auto; }
.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.cart-table th {
  text-align: right;
  padding: .75rem 1rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  font-size: .8125rem;
  white-space: nowrap;
}
.cart-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.cart-product-cell {
  display: flex;
  align-items: center;
  gap: .875rem;
}
.cart-product-cell img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.cart-product-name {
  font-weight: 600;
  color: var(--dark);
  font-size: .9375rem;
}
.cart-product-name:hover { color: var(--brand); }
.cart-price, .cart-subtotal { font-weight: 600; white-space: nowrap; }
.cart-subtotal { color: var(--accent); }
.cart-remove-btn {
  color: var(--text-faint);
  transition: color .18s;
}
.cart-remove-btn:hover { color: #dc2626; }

.cart-summary-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--dark);
  border-top: 2px solid var(--border);
  padding-top: .875rem;
  margin-top: .5rem;
}

/* ── Checkout page ────────────────────────────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
.checkout-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  font-size: .875rem;
  color: var(--text);
  padding-block: .5rem;
  border-bottom: 1px solid var(--border-soft);
}
.checkout-item-row:last-child { border-bottom: none; }

/* ── Responsive for new pages ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cart-layout         { grid-template-columns: 1fr; }
  .checkout-layout     { grid-template-columns: 1fr; }
  .cart-summary-card   { position: static; }
}
@media (max-width: 600px) {
  .product-thumbnails { gap: .375rem; }
  .product-thumb      { width: 58px; height: 58px; }
  .shop-filter-tabs   { gap: .375rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   STANDALONE ADMIN PANEL  (adm-* prefix — does not conflict with
   the old .admin-* classes used when the site header is included)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Page shell ───────────────────────────────────────────────────── */
.adm-body-bg  { background: #f1f5f9; }
.adm-login-bg { background: linear-gradient(135deg, #1e1e2e 0%, #2d2d3f 100%); }

.adm-wrap {
  display: flex;
  min-height: 100vh;
  direction: rtl;
  font-family: var(--font);
}

/* ── Sidebar ──────────────────────────────────────────────────────── */
.adm-sidebar {
  width: 232px;
  flex-shrink: 0;
  background: #1e1e2e;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.adm-sidebar-logo {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.adm-sidebar-brand {
  font-size: .9375rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.adm-sidebar-sub {
  font-size: .6875rem;
  color: rgba(255,255,255,.4);
  margin-top: 3px;
  letter-spacing: .04em;
}

.adm-nav {
  padding: .625rem .75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.adm-nav-sep {
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  padding: .875rem .625rem .3rem;
  margin-top: .25rem;
}

.adm-nav-link {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .575rem .75rem;
  border-radius: 8px;
  color: rgba(255,255,255,.62);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .14s, color .14s;
}
.adm-nav-link:hover         { background: rgba(255,255,255,.07); color: #fff; }
.adm-nav-link.active        { background: var(--brand); color: #fff; }
.adm-nav-link-muted         { color: rgba(255,255,255,.38); }
.adm-nav-link-muted:hover   { color: rgba(255,255,255,.7); background: rgba(255,255,255,.05); }
.adm-nav-spacer             { flex: 1; }

/* ── Main area ────────────────────────────────────────────────────── */
.adm-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.adm-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(30,30,46,.04);
}
.adm-topbar-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--dark);
}
.adm-topbar-user {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  color: var(--text-muted);
}
.adm-topbar-avatar {
  width: 28px; height: 28px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.adm-topbar-logout {
  color: var(--text-faint);
  font-size: .75rem;
  text-decoration: underline;
  margin-right: .25rem;
}
.adm-topbar-logout:hover { color: #ef4444; }

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

/* ── Alerts ───────────────────────────────────────────────────────── */
.adm-alert {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-radius: 8px;
  font-size: .875rem;
  margin-bottom: 1.25rem;
}
.adm-alert-ok  { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.adm-alert-err { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Stat grid ────────────────────────────────────────────────────── */
.adm-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.adm-stat {
  background: #fff;
  border-radius: 12px;
  padding: 1.125rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 1px 3px rgba(30,30,46,.05);
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .18s, transform .18s;
}
.adm-stat:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.adm-stat-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.adm-stat-val   { font-size: 1.375rem; font-weight: 700; color: var(--dark); line-height: 1; }
.adm-stat-lbl   { font-size: .75rem; color: var(--text-muted); margin-top: 4px; }

/* ── Two-column grid ──────────────────────────────────────────────── */
.adm-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

/* ── Card ─────────────────────────────────────────────────────────── */
.adm-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 1px 3px rgba(30,30,46,.05);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.adm-card-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-soft);
}
.adm-card-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}
.adm-link-sm {
  font-size: .8rem;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}
.adm-link-sm:hover { text-decoration: underline; }

/* ── Table ────────────────────────────────────────────────────────── */
.adm-table-wrap { overflow-x: auto; }
.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.adm-table th {
  text-align: right;
  padding: .75rem 1.25rem;
  background: #fafafa;
  color: var(--text-muted);
  font-weight: 600;
  font-size: .75rem;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.adm-table td {
  padding: .8rem 1.25rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
  color: var(--text);
}
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr:hover td      { background: #fafbfc; }
.adm-empty-cell {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: .875rem;
}
.adm-empty-cell a { color: var(--brand); }
.adm-truncate {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adm-actions { white-space: nowrap; }

/* ── Badges ───────────────────────────────────────────────────────── */
.adm-badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .625rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
}
.adm-badge-green  { background: #dcfce7; color: #15803d; }
.adm-badge-yellow { background: #fef9c3; color: #854d0e; }
.adm-badge-red    { background: #fee2e2; color: #dc2626; }
.adm-badge-gray   { background: #f1f5f9; color: #64748b; }
.adm-badge-blue   { background: #dbeafe; color: #1d4ed8; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.adm-btn {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .5rem 1rem;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  text-decoration: none;
  transition: opacity .15s, box-shadow .15s, transform .15s;
  white-space: nowrap;
}
.adm-btn:hover { opacity: .88; }
.adm-btn-primary   { background: var(--brand); color: #fff; box-shadow: 0 2px 6px rgba(90,140,110,.25); }
.adm-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(90,140,110,.3); opacity:1; }
.adm-btn-danger    { background: #ef4444; color: #fff; }
.adm-btn-secondary { background: var(--bg-soft); color: var(--text); border: 1px solid var(--border); }
.adm-btn-sm        { padding: .3rem .7rem; font-size: .8125rem; }

/* ── Form panel ───────────────────────────────────────────────────── */
.adm-form-panel {
  background: var(--brand-subtle);
  border: 1px solid #c8dfd2;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.adm-form-panel .adm-card-title { margin-bottom: 1rem; }
.adm-form-note {
  font-size: .8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding: .5rem .75rem;
  background: rgba(90,140,110,.08);
  border-radius: 6px;
}

/* ── Form grid ────────────────────────────────────────────────────── */
.adm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.adm-full-col { grid-column: 1 / -1; }

.adm-field {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}
.adm-label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--dark);
}
.adm-req { color: #ef4444; }
.adm-slug-cur {
  font-size: .75rem;
  font-weight: 400;
  color: var(--brand);
  margin-right: .5rem;
  font-family: monospace;
}

.adm-input {
  padding: .6rem .75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  color: var(--text);
  background: #fff;
  font-family: var(--font);
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.adm-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(90,140,110,.12);
}
.adm-input-sm {
  padding: .3rem .5rem;
  font-size: .8rem;
  border-radius: 6px;
  height: auto;
  width: auto;
}
.adm-textarea { resize: vertical; min-height: 90px; }
.adm-input-file {
  font-size: .8125rem;
  padding: .35rem 0;
  color: var(--text-muted);
  background: transparent;
  border: none;
}

.adm-img-preview {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: .5rem;
}
.adm-thumb {
  width: 44px; height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
}
.adm-no-img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--bg-soft);
  border-radius: 6px;
  color: var(--text-faint);
}

.adm-check-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  cursor: pointer;
}
.adm-form-actions {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
}
.adm-msg-text {
  font-size: .875rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Login page ───────────────────────────────────────────────────── */
.adm-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  font-family: var(--font);
}
.adm-login-box {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 25px 60px rgba(0,0,0,.3);
}
.adm-login-header {
  text-align: center;
  margin-bottom: 1.75rem;
}
.adm-login-icon {
  width: 60px; height: 60px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .875rem;
}
.adm-login-header h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .25rem;
}
.adm-login-header p {
  font-size: .875rem;
  color: var(--text-muted);
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .adm-sidebar   { width: 200px; }
  .adm-cols-2    { grid-template-columns: 1fr; }
  .adm-stat-grid { grid-template-columns: repeat(2,1fr); }
  .adm-form-grid { grid-template-columns: 1fr; }
  .adm-full-col  { grid-column: 1; }
}
@media (max-width: 640px) {
  .adm-sidebar { display: none; }
  .adm-stat-grid { grid-template-columns: 1fr 1fr; }
}

/* fix 2026-08-06: mobile-nav drawer floated mid-page on desktop (RTL transform + ancestor containing-block left it in view). Force hidden until .open, on all widths. */
.mobile-nav:not(.open){ visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.mobile-nav.open{ visibility: visible !important; opacity: 1 !important; pointer-events: auto !important; }
.mobile-overlay:not(.open){ visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
