/* ==========================================================================
   Castle Group stylesheet.
   Site currently uses the theme-cleaning palette (green/navy/white).
   theme-main (black/white) is kept below in case a second brand line is
   introduced later.
   ========================================================================== */

:root {
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 15, 15, 0.06), 0 1px 2px rgba(15,15,15,0.08);
  --shadow-md: 0 8px 24px rgba(15, 15, 15, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 15, 15, 0.12);
  --maxw: 1180px;
  --transition: 200ms ease;
}

/* ---- Theme: Main (Castle Group / black & white) ---- */
.theme-main {
  --bg: #ffffff;
  --bg-alt: #f6f6f4;
  --surface: #ffffff;
  --text: #121212;
  --text-muted: #5c5f63;
  --primary: #121212;
  --primary-contrast: #ffffff;
  --accent: #121212;
  --accent-soft: #ececea;
  --border: #e6e5e2;
  --badge-bg: #121212;
  --badge-text: #ffffff;
}

/* ---- Theme: Cleaning Division (green / navy / white) ---- */
.theme-cleaning {
  --bg: #ffffff;
  --bg-alt: #f1f8f3;
  --surface: #ffffff;
  --text: #132239;
  --text-muted: #4d5c70;
  --primary: #152a52;
  --secondary: #2e9a4e;
  --primary-contrast: #ffffff;
  --accent: #2e9a4e;
  --accent-soft: #e4f4e9;
  --border: #dde8e1;
  --badge-bg: #2e9a4e;
  --badge-text: #ffffff;
}

/* ---- Reset ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 96px 0;
}
.section-alt { background: var(--bg-alt); }
.section-header {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-header h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 14px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 17px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-contrast);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); transform: translateY(-2px); }
.theme-cleaning .btn-primary { background: var(--secondary); }
.btn-block { width: 100%; }

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 -3px 0 0 var(--accent);
  transition: box-shadow 200ms ease;
}
.navbar.scrolled {
  box-shadow: inset 0 -3px 0 0 var(--accent), 0 6px 20px rgba(15,15,15,0.08);
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; }
.brand-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.02em;
}
.brand-castle { color: var(--secondary); }
.brand-group { color: var(--primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
  z-index: 110;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text); display: block;
  transition: transform 250ms ease, opacity 200ms ease;
}

/* ---- Hero ---- */
.hero {
  padding: 88px 0 96px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
}
.hero-stats div span {
  font-size: 13px;
  color: var(--text-muted);
}
.trust-strip {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.trust-strip svg { color: var(--accent); flex-shrink: 0; }
.hero-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual img { width: 80%; height: auto; }

/* ---- About feature grid ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.feature-card {
  text-align: center;
  padding: 8px 16px;
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.feature-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 14px; }

/* ---- Logo strip ---- */
.logo-strip {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.logo-strip p {
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.logo-strip-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.55;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 320ms cubic-bezier(.2,.8,.2,1),
              box-shadow 320ms cubic-bezier(.2,.8,.2,1),
              border-color 320ms ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 360ms cubic-bezier(.2,.8,.2,1);
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 120px at 50% 0%, var(--accent-soft), transparent 70%);
  opacity: 0;
  z-index: -1;
  transition: opacity 320ms ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { opacity: 1; }
.service-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--accent);
  transition: transform 320ms cubic-bezier(.2,.8,.2,1), background 320ms ease, color 320ms ease;
}
.service-card:hover .service-icon {
  background: var(--accent);
  color: var(--primary-contrast);
  transform: translateY(-2px) scale(1.08);
}
.service-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  transition: color 320ms ease;
}
.service-card:hover h3 { color: var(--accent); }
.service-card p { color: var(--text-muted); font-size: 14.5px; }
.service-card.linked {
  border-color: var(--accent);
}
.service-icon-photo { overflow: hidden; padding: 0; }
.service-icon-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.content-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 14.5px;
  padding: 20px 0;
}

/* ---- Testimonials ---- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
}
.testimonial-stars { color: var(--accent); font-size: 15px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-quote { font-size: 15.5px; color: var(--text); margin-bottom: 20px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--accent); font-size: 14px;
  overflow: hidden;
  flex-shrink: 0;
}
.testimonial-avatar-photo img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-person strong { display: block; font-size: 14px; }
.testimonial-person span { font-size: 12.5px; color: var(--text-muted); }

/* ---- Booking ---- */
.booking-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: stretch;
}
.booking-copy h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; }
.booking-copy p { color: var(--text-muted); margin-bottom: 24px; }
.booking-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 14.5px;
}
.booking-points li .check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--primary-contrast);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0; margin-top: 2px;
}
.booking-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px;
}
.booking-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px;
}
.booking-card-header h3 { font-size: 16px; }
.calendar-mock {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
}
.calendar-mock-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; font-weight: 600; margin-bottom: 14px;
}
.cal-nav {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 15px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.cal-nav:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
.cal-nav:disabled { opacity: 0.35; cursor: not-allowed; }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
  font-size: 12.5px;
}
.calendar-grid span.dow { color: var(--text-muted); font-weight: 600; font-size: 11px; }
.calendar-grid span.day {
  padding: 7px 0; border-radius: 6px; color: var(--text);
}
.calendar-grid span.day.avail { background: var(--accent-soft); color: var(--accent); font-weight: 600; cursor: pointer; }
.calendar-grid span.day.avail:hover { background: var(--accent); color: var(--primary-contrast); }
.calendar-grid span.day.selected { background: var(--accent); color: var(--primary-contrast); font-weight: 700; }
.calendar-grid span.day.muted { color: var(--border); }
.calendar-grid span.day.today:not(.selected) { box-shadow: inset 0 0 0 1.5px var(--accent); }
.time-slots { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.time-slots span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.time-slots span:hover { border-color: var(--accent); }
.time-slots span.selected { background: var(--accent); border-color: var(--accent); color: var(--primary-contrast); }
.booking-form .form-group { margin-bottom: 14px; }
.booking-note {
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
}
.form-error {
  display: none;
  font-size: 13px;
  color: #b3261e;
  background: #fdecea;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 4px 0 14px;
}
.form-error.visible { display: block; }
.form-success {
  font-size: 13px;
  color: #1e7a3d;
  margin: 4px 0 14px;
}

/* ---- Contact ---- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}
.contact-info-card {
  background: var(--primary);
  color: var(--primary-contrast);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
}
.contact-info-card h3 { font-size: 20px; margin-bottom: 8px; }
.contact-info-card > p { opacity: 0.75; font-size: 14.5px; margin-bottom: 28px; }
.contact-item {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 22px;
}
.contact-item .icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 14px; margin-bottom: 2px; }
.contact-item span { font-size: 13.5px; opacity: 0.8; }
.contact-social { display: flex; gap: 10px; margin-top: 28px; }
.contact-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 14px;
  background: var(--bg-alt);
  color: var(--text);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent);
}
.form-disclaimer {
  font-size: 12px; color: var(--text-muted); margin-top: 12px; text-align: center;
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--primary);
  color: var(--primary-contrast);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 28px; margin-bottom: 8px; }
.cta-band p { opacity: 0.8; }
.cta-band .btn-primary { background: var(--primary-contrast); color: var(--primary); }
.theme-cleaning .cta-band .btn-primary { background: #fff; color: var(--primary); }

/* ---- Footer ---- */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
}
.theme-cleaning footer { background: var(--primary); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-grid.footer-grid-contact-only {
  grid-template-columns: 1fr;
  max-width: 320px;
  margin-bottom: 48px;
}
.footer-brand img { height: 64px; margin-bottom: 16px; background: #fff; padding: 8px; border-radius: 8px; }
.footer-brand p { font-size: 13.5px; max-width: 260px; }
.footer-col h4 {
  color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Modal ---- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.55);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.modal .icon-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; font-size: 24px;
}
.modal h3 { margin-bottom: 10px; font-size: 20px; }
.modal p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 24px; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .booking-wrap, .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .navbar .container { height: 76px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 6px 24px 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  body.nav-open .nav-links { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .nav-cta { flex: 1; justify-content: flex-end; }
  .nav-cta .btn-outline { display: none; }
  .nav-cta .btn-primary {
    flex: 1;
    max-width: 220px;
    justify-content: center;
    padding: 16px 20px;
    font-size: 15.5px;
  }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }

  /* Touch devices have no hover, so mirror the hover treatment by
     "activating" each service card once it scrolls into view (JS adds
     .in-view - see activateCardsOnScroll in main.js). Desktop hover above
     is untouched. */
  .service-card.in-view {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
  }
  .service-card.in-view::before { transform: scaleX(1); }
  .service-card.in-view::after { opacity: 1; }
  .service-card.in-view .service-icon {
    background: var(--accent);
    color: var(--primary-contrast);
    transform: translateY(-2px) scale(1.08);
  }
  .service-card.in-view h3 { color: var(--accent); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-band { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   Admin panel
   ========================================================================== */
.admin-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
}
.admin-login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
  text-align: center;
}
.admin-login-card h2 { margin-bottom: 8px; }
.admin-login-card p { color: var(--text-muted); margin-bottom: 24px; font-size: 14.5px; }
.admin-login-card .form-group { text-align: left; }

.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.admin-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 6px;
  margin-right: 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}
.admin-tab-btn:hover { color: var(--text); }
.admin-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.admin-panel-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}
.admin-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 100px;
}
.admin-form-card h3 { margin-bottom: 18px; font-size: 17px; }

.photo-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.photo-preview img {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
}

.admin-list { display: flex; flex-direction: column; gap: 14px; }
.admin-list-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.admin-list-thumb {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.admin-list-body { flex: 1; }
.admin-list-body strong { display: block; font-size: 14.5px; }
.admin-list-sub { display: block; font-size: 12.5px; color: var(--text-muted); margin-bottom: 6px; }
.admin-list-body p { font-size: 14px; color: var(--text); margin-top: 4px; }
.admin-item-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-danger { border-color: #e2b0ab; color: #b3261e; }
.btn-danger:hover { background: #fdecea; border-color: #b3261e; }

.admin-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  overflow-x: auto;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.admin-table tr:last-child td { border-bottom: none; }

@media (max-width: 900px) {
  .admin-panel-grid { grid-template-columns: 1fr; }
  .admin-form-card { position: static; }
}
