:root {
  --bg: #060606;
  --panel: #111111;
  --panel-2: #181818;
  --text: #f7f3eb;
  --muted: #b8af9c;
  --accent: #d4af37;
  --accent-2: #a57f12;
  --border: rgba(212, 175, 55, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Tahoma, Arial, sans-serif;
  background: linear-gradient(135deg, #040404, #131313);
  color: var(--text);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header { background: linear-gradient(90deg, rgba(6,6,6,0.95), rgba(17,17,17,0.95)); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border); -webkit-transform: translateZ(0); transform: translateZ(0); }
.compact-header { position: sticky; }
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { font-size: 1.35rem; font-weight: 800; letter-spacing: 3px; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { color: var(--text); transition: 0.3s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.4rem; }

.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: center; padding: 72px 0 84px; min-height: 88vh; }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; color: var(--accent); font-size: 0.77rem; margin-bottom: 10px; font-weight: 700; }
.hero h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); color: var(--accent); margin-bottom: 8px; }
.hero h2 { font-size: clamp(1.3rem, 2.3vw, 1.8rem); margin-bottom: 16px; }
.hero-copy { color: var(--muted); font-size: 1.1rem; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; cursor: pointer; transition: 0.3s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #111; }
.btn-secondary, .btn-outline { border-color: rgba(255,255,255,0.2); color: var(--text); background: transparent; }
.btn-small { padding: 8px 14px; font-size: 0.9rem; }
.hero-highlights { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); }
.hero-highlights span { padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,0.03); }
.hero-card, .about-card, .contact-card, .booking-form-card, .auth-card, .profile-card, .service-card, .map-card {
  background: rgba(17,17,17,0.95); border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 18px 45px rgba(0,0,0,0.3); }
.hero-card { padding: 18px; overflow: hidden; }
.hero-card img { border-radius: 22px; min-height: 320px; object-fit: cover; }
.hero-image { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border: 1px solid rgba(255,255,255,0.08); }
.contact-photo { width: 100%; height: 220px; object-fit: cover; border-radius: 18px; margin-bottom: 18px; border: 1px solid var(--border); }
.nav-links a { font-weight: 600; }

.section { padding: 70px 0; }
.section-heading { margin-bottom: 28px; text-align: center; }
.section-heading h3 { font-size: 1.7rem; color: var(--accent); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 20px; }
.service-card { padding: 24px; text-align: center; transition: 0.3s ease; }
.service-card:hover, .profile-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.service-card h4 { color: var(--accent); font-size: 1.05rem; margin-bottom: 10px; }
.service-card p { font-size: 1.2rem; font-weight: 700; }
.service-card span { color: var(--muted); font-size: 0.95rem; }

.barbers-grid { grid-template-columns: repeat(3, minmax(240px, 1fr)); }
.profile-card { padding: 24px; text-align: center; }
.profile-card img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 2px solid var(--accent); }
.profile-card.barber-card { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.barber-photo-wrap { position: relative; width: 140px; height: 140px; margin: 0 auto 4px; }
.barber-photo-wrap img.barber-photo { width: 100%; height: 100%; margin: 0; }
.barber-status { position: absolute; bottom: 6px; right: 4px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #111; box-shadow: 0 0 0 2px rgba(255,255,255,0.08); }
.barber-status.available { background: #22c55e; }
.barber-status.waiting { background: #facc15; }
.barber-status.busy { background: #ef4444; }
.barber-status-label { font-size: 0.95rem; font-weight: 700; }
.barber-status-label.available { color: #8fffb0; }
.barber-status-label.waiting { color: #fde68a; }
.barber-status-label.busy { color: #ffb2b2; }
.calendar-widget { display: grid; gap: 12px; margin-top: 8px; }
.calendar-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.calendar-nav { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; background: rgba(255,255,255,0.04); color: var(--text); cursor: pointer; }
.calendar-title { font-weight: 700; color: var(--accent); }
.calendar-days, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.calendar-days span { text-align: center; color: var(--muted); font-size: 0.85rem; }
.calendar-cell { padding: 10px 0; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,0.03); color: var(--text); cursor: pointer; }
.calendar-cell.selected { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #111; border-color: transparent; font-weight: 700; }
.calendar-cell.disabled { opacity: 0.4; cursor: not-allowed; }
.calendar-hint { color: var(--muted); font-size: 0.9rem; }
.profile-actions { display: flex; justify-content: center; gap: 10px; margin: 12px 0 10px; }
.text-link { color: var(--accent); font-weight: 700; }

.about-card { padding: 34px; text-align: center; max-width: 900px; margin: 0 auto; }
.about-card p { color: var(--muted); margin-top: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(140px, 1fr)); gap: 14px; margin-top: 24px; }
.stats-grid div { padding: 16px; border-radius: 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); }
.stats-grid strong { display: block; color: var(--accent); font-size: 1.3rem; }

.site-footer { padding: 24px 0 34px; border-top: 1px solid var(--border); margin-top: 20px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }

.page-section { padding: 56px 0 72px; }

.contact-page { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.contact-card { padding: 30px; }
.contact-list { display: grid; gap: 10px; margin-top: 16px; }
.contact-list a, .contact-list span { color: var(--text); }
.map-card iframe { width: 100%; min-height: 320px; border: 0; border-radius: 20px; }

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(460px, 100%); padding: 32px; }
.customer-form { display: grid; gap: 12px; margin-top: 16px; }
.customer-form input, .customer-form textarea { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: #171717; color: var(--text); }
.customer-form textarea { resize: vertical; min-height: 90px; }
.form-message { margin-top: 12px; color: var(--accent); min-height: 22px; }

.booking-shell { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.booking-progress { padding: 22px; border-radius: 22px; background: rgba(17,17,17,0.95); border: 1px solid var(--border); }
.booking-progress ul { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.booking-progress li { padding: 10px 12px; border-radius: 12px; color: var(--muted); background: rgba(255,255,255,0.04); }
.booking-progress li.active { color: var(--accent); border: 1px solid var(--accent); }
.booking-form-card { padding: 24px; }
.booking-step { display: none; }
.booking-step.active { display: block; }
.date-list, .time-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.date-list button, .time-list button, .service-card button, .booking-step button { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,0.04); color: var(--text); cursor: pointer; }
.date-list button.active, .time-list button.active, .service-card.active { border-color: var(--accent); color: var(--accent); }
.summary-card { padding: 18px; border-radius: 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); margin-top: 14px; }
.success-card { margin-top: 16px; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(34,197,94,0.16), rgba(16,16,16,0.95)); border: 1px solid rgba(74,222,128,0.35); box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
.success-card.hidden { display: none; }
.success-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(74,222,128,0.2); color: #7CFFAA; font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.success-card h5 { color: #fef3c7; margin-bottom: 6px; }
.success-card p { color: var(--muted); margin-bottom: 10px; }
.success-list { list-style: none; display: grid; gap: 6px; color: var(--text); }
.success-list strong { color: var(--accent); }
.step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.step-actions.hidden { display: none; }
#next-step {
  min-width: 180px;
  font-size: 1rem;
  box-shadow: 0 10px 24px rgba(212,175,55,0.25);
}
#next-step:hover {
  transform: translateY(-2px) scale(1.01);
}

.admin-shell { padding: 32px 0 60px; }
.admin-grid { display: grid; gap: 18px; }
.admin-card { padding: 20px; border-radius: 20px; background: rgba(17,17,17,0.95); border: 1px solid var(--border); }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 14px; }
.admin-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 18px; }
.admin-table th, .admin-table td { padding: 12px; border-bottom: 1px solid var(--border); text-align: right; }
.admin-table th { color: var(--accent); }
