/* ────────────────────────────────────────────────────────────────────────────
   Премиальный салон красоты — Основные стили
   ──────────────────────────────────────────────────────────────────────────── */

/* ── Fonts ─────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
  --gold: #C9A96E;
  --gold-light: #E0CDA5;
  --gold-dark: #A6814A;
  --rose: #D4A5A5;
  --rose-light: #F5E6E6;
  --cream: #FAF7F2;
  --cream-dark: #F0EBE0;
  --white: #FFFFFF;
  --dark: #1A1A1A;
  --dark-soft: #2C2C2C;
  --gray: #666666;
  --gray-light: #999999;
  --gray-lighter: #E0E0E0;
  --success: #7CA982;
  --error: #C97B7B;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', Arial, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

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

/* ── Typography ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, .heading {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

.section-title {
  text-align: center;
  margin-bottom: 8px;
  color: var(--dark);
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 48px;
  font-weight: 300;
}

.gold-text { color: var(--gold); }
.gold-accent {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 12px auto 0;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.4);
}
.btn-primary:hover {
  background: var(--gold-dark);
  box-shadow: 0 6px 25px rgba(166, 129, 74, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.82rem;
}

.btn-danger {
  background: var(--error);
  color: var(--white);
}
.btn-danger:hover {
  opacity: 0.9;
}

/* ── Header / Navigation ───────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-soft);
  transition: var(--transition);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: var(--transition);
}

.nav a:hover { color: var(--gold); }
.nav a:hover::after { width: 100%; }

.nav .btn {
  padding: 10px 24px;
  font-size: 0.82rem;
}

.nav .user-greeting {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 500;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: var(--transition);
}

/* ── Hero Section ──────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.75) 0%,
    rgba(26, 26, 26, 0.35) 50%,
    rgba(26, 26, 26, 0.6) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  color: var(--white);
  padding: 120px 0 80px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--gold-light);
  border-radius: 50px;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Sections ──────────────────────────────────────────────────────────────── */
.section {
  padding: 100px 0;
}

.section-light {
  background: var(--cream);
}

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

/* ── About ─────────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-text h2 {
  margin-bottom: 20px;
  text-align: left;
}

.about-text .gold-accent {
  margin: 0 0 24px;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 16px;
  font-size: 0.98rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--gold);
  font-weight: 700;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Services ──────────────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-light);
}

.service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--rose-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 36px;
  height: 36px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.service-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 600;
}

/* ── Booking Form Section ──────────────────────────────────────────────────── */
.booking-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.booking-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.booking-form-card h3 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.booking-form-card .gold-accent {
  margin: 0 0 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-soft);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-lighter);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--gray);
}

.consent-check input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  accent-color: var(--gold);
}

.form-message {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  display: block;
  background: #EDF7EE;
  color: var(--success);
  border: 1px solid var(--success);
}

.form-message.error {
  display: block;
  background: #FDEDED;
  color: var(--error);
  border: 1px solid var(--error);
}

/* ── Calendar ──────────────────────────────────────────────────────────────── */
.calendar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.calendar-card h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.calendar-nav button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gray-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1rem;
  color: var(--dark);
}

.calendar-nav button:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.calendar-month {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}

.calendar-day-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-light);
  text-transform: uppercase;
  padding: 8px 0;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.calendar-day:hover:not(.empty):not(.past) {
  background: var(--cream-dark);
}

.calendar-day.empty { cursor: default; }
.calendar-day.past { color: var(--gray-lighter); cursor: default; }

.calendar-day.today {
  border-color: var(--gold);
  font-weight: 700;
}

.calendar-day.selected {
  background: var(--gold);
  color: var(--white);
  font-weight: 600;
}

.calendar-day.has-slots {
  position: relative;
}

.calendar-day.has-slots::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rose);
}

.calendar-day.selected.has-slots::after {
  background: var(--white);
}

/* Time slots */
.time-slots {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--cream-dark);
}

.time-slots h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--dark-soft);
}

.time-slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.time-slot-btn {
  padding: 8px 18px;
  border: 1px solid var(--gray-lighter);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--dark-soft);
  transition: var(--transition);
  cursor: pointer;
}

.time-slot-btn:hover:not(.booked) {
  border-color: var(--gold);
  color: var(--gold);
}

.time-slot-btn.selected {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.time-slot-btn.booked {
  background: var(--gray-lighter);
  color: var(--gray-light);
  cursor: not-allowed;
  text-decoration: line-through;
}

.no-slots-msg {
  color: var(--gray-light);
  font-size: 0.9rem;
  text-align: center;
  padding: 16px 0;
}

/* ── Testimonials ──────────────────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-author span {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--gray-light);
}

/* ── Contacts ──────────────────────────────────────────────────────────────── */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.contact-info h2 {
  text-align: left;
  margin-bottom: 8px;
}

.contact-info .gold-accent {
  margin: 0 0 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--rose-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon img {
  width: 20px;
  height: 20px;
}

.contact-item h4 {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-item p {
  color: var(--gray);
  font-size: 0.9rem;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 360px;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--dark-soft);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 12px;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
}

/* ── Auth Pages (login / register / cabinet) ───────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: 100px 24px 40px;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 440px;
}

.auth-card .logo {
  text-align: center;
  display: block;
  margin-bottom: 8px;
}

.auth-card h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.auth-card .gold-accent {
  margin-bottom: 32px;
}

.auth-alt {
  text-align: center;
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--gray);
}

.auth-alt a {
  color: var(--gold);
  font-weight: 600;
}

.auth-alt a:hover {
  text-decoration: underline;
}

/* ── Cabinet Page ──────────────────────────────────────────────────────────── */
.cabinet-page {
  padding: 100px 0 60px;
  min-height: 100vh;
  background: var(--cream);
}

.cabinet-header {
  margin-bottom: 40px;
}

.cabinet-header h1 {
  font-size: 2rem;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.cabinet-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.cabinet-sidebar .user-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--gold);
}

.cabinet-sidebar h3 {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.cabinet-sidebar .user-role {
  font-size: 0.8rem;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.cabinet-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-soft);
  margin-bottom: 4px;
  transition: var(--transition);
}

.cabinet-menu a:hover,
.cabinet-menu a.active {
  background: var(--cream-dark);
  color: var(--gold);
}

.cabinet-menu a img {
  width: 18px;
  height: 18px;
  opacity: 0.6;
}

.cabinet-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  min-height: 400px;
}

.cabinet-content h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
}

/* Bookings list */
.bookings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-lighter);
  transition: var(--transition);
}

.booking-item:hover {
  border-color: var(--gold-light);
}

.booking-item-info h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.booking-item-info p {
  font-size: 0.82rem;
  color: var(--gray-light);
}

.booking-status {
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 600;
}

.booking-status.confirmed {
  background: #EDF7EE;
  color: var(--success);
}

.booking-status.pending {
  background: #FFF8E7;
  color: #C9A020;
}

/* ── Admin Page ────────────────────────────────────────────────────────────── */
.admin-page {
  padding: 100px 0 60px;
  min-height: 100vh;
  background: var(--cream);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-header h1 {
  font-size: 2rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.admin-stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.admin-stat-card .stat-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}

.admin-stat-card .stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
}

.admin-stat-card .stat-title {
  font-size: 0.8rem;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--gray-lighter);
  padding-bottom: 0;
}

.admin-tab {
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  margin-bottom: -1px;
}

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

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

.admin-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  padding: 14px 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-light);
  background: var(--cream);
  border-bottom: 1px solid var(--gray-lighter);
}

.admin-table td {
  padding: 14px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--cream-dark);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: var(--cream);
}

.admin-table .badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-free {
  background: #EDF7EE;
  color: var(--success);
}

.badge-booked {
  background: #E8E0F5;
  color: #7C6BA0;
}

.badge-cancelled {
  background: #FDEDED;
  color: var(--error);
}

/* Slot management form */
.slot-form {
  display: flex;
  gap: 12px;
  padding: 20px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: end;
}

.slot-form .form-group {
  margin-bottom: 0;
  flex: 1;
  min-width: 160px;
}

.slot-form input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-lighter);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.slot-form input:focus {
  outline: none;
  border-color: var(--gold);
}

.time-input-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.time-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--white);
  border: 1px solid var(--gray-lighter);
  border-radius: 50px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}

.time-tag:hover {
  border-color: var(--error);
  color: var(--error);
}

.time-tag .remove {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}

/* ── Modal ─────────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal h3 {
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.4rem;
  color: var(--gray-light);
  cursor: pointer;
}

/* ── Toast ─────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 3000;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.4s ease;
  max-width: 400px;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--error); }
.toast.info { background: var(--dark-soft); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── Loader ────────────────────────────────────────────────────────────────── */
.loader {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid var(--gray-lighter);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.8);
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: var(--radius);
}

.loading-overlay.active {
  display: flex;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about-image {
    order: -1;
  }

  .booking-wrapper {
    grid-template-columns: 1fr;
  }

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

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

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

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

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-md);
    gap: 16px;
  }

  .nav.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 140px 0 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 60px 0;
  }

  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

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

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

  .booking-form-card {
    padding: 24px;
  }

  .auth-card {
    padding: 32px 24px;
  }

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

  .admin-tabs {
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

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

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

/* ── Utility ───────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }
