/* ================================
   MILGRAU CORTES — Global Styles
================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

:root {
  --navy: #0f1e3a;
  --navy-light: #1a2f5a;
  --navy-card: #162244;
  --red: #cc2936;
  --red-hover: #e8303f;
  --gold: #d4a843;
  --cream: #f5f0e8;
  --white: #ffffff;
  --gray: #8a97b0;
  --gray-light: #c4cce0;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--navy);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--red);
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  background: rgba(15, 30, 58, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.navbar-brand img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--red);
}

.brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 1px;
}

.brand-sub {
  font-size: 0.65rem;
  color: var(--red);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-top: -4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links .btn-nav {
  background: var(--red);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  transition: var(--transition);
}

.nav-links .btn-nav:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(204, 41, 54, 0.4);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #1a2f5a 0%, #0f1e3a 60%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid var(--red);
  box-shadow: 0 0 40px rgba(204, 41, 54, 0.3);
  margin-bottom: 1.5rem;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-10px)
  }
}

.hero-badge {
  display: inline-block;
  background: rgba(204, 41, 54, 0.15);
  border: 1px solid rgba(204, 41, 54, 0.4);
  color: var(--red);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--red);
}

.hero p {
  font-size: 1.1rem;
  color: var(--gray-light);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(204, 41, 54, 0.35);
}

.btn-primary:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(204, 41, 54, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* ── SECTIONS ── */
section {
  padding: 5rem 1.5rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  color: var(--red);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.section-header p {
  color: var(--gray);
  margin-top: 0.5rem;
}

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(204, 41, 54, 0.04));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(204, 41, 54, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.service-desc {
  font-size: 0.83rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.service-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--red);
}

.service-duration {
  font-size: 0.75rem;
  color: var(--gray);
}

/* ── BOOKING SECTION ── */
#agendar {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
}

.booking-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.booking-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.booking-info p {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--gray-light);
  font-size: 0.9rem;
}

.info-item .icon {
  font-size: 1.2rem;
}

.booking-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  padding: 0.75rem 1rem;
  /* Mínimo 16px evita zoom automático no iOS Safari */
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(204, 41, 54, 0.06);
}

.form-group select option {
  background: var(--navy-card);
  color: var(--white);
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(0.6);
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(204, 41, 54, 0.4);
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

.modal-box {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0
  }

  to {
    transform: translateY(0);
    opacity: 1
  }
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.modal-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.modal-box p {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.modal-details {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
  font-size: 0.88rem;
}

.modal-details div {
  padding: 0.3rem 0;
  color: var(--gray-light);
}

.modal-details strong {
  color: var(--white);
}

/* ── FOOTER ── */
footer {
  background: #080f1e;
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

footer img {
  height: 50px;
  margin-bottom: 0.5rem;
  border-radius: 50%;
}

footer p {
  color: var(--gray);
  font-size: 0.85rem;
}

footer a {
  color: var(--red);
  text-decoration: none;
}

/* ── ADMIN LOGIN ── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #1a2f5a 0%, #0f1e3a 70%);
  padding: 1rem;
}

.login-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: var(--shadow);
}

.login-card img {
  height: 80px;
  width: 80px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--red);
  margin-bottom: 1rem;
}

.login-card h2 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.25rem;
}

.login-card p {
  color: var(--gray);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.login-error {
  background: rgba(204, 41, 54, 0.15);
  border: 1px solid rgba(204, 41, 54, 0.4);
  color: #ff6b78;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

/* ── ADMIN LAYOUT ── */
.admin-body {
  background: #080f1e;
}

.admin-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 30, 58, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
}

.admin-nav .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-nav .brand img {
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--red);
}

.admin-nav .brand span {
  font-weight: 700;
  font-size: 1rem;
}

.admin-nav .brand small {
  color: var(--red);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.btn-logout {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--gray-light);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.btn-logout:hover {
  border-color: var(--red);
  color: var(--red);
}

.admin-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.admin-header {
  margin-bottom: 2rem;
}

.admin-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
}

.admin-header p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

/* ── KPI CARDS ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.kpi-card:hover {
  border-color: rgba(204, 41, 54, 0.3);
  transform: translateY(-3px);
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.kpi-icon.red {
  background: rgba(204, 41, 54, 0.15);
}

.kpi-icon.blue {
  background: rgba(30, 100, 210, 0.15);
}

.kpi-icon.green {
  background: rgba(34, 197, 94, 0.15);
}

.kpi-icon.gold {
  background: rgba(212, 168, 67, 0.15);
}

.kpi-badge {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}

.kpi-value {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 0.1rem;
}

.kpi-label {
  color: var(--gray);
  font-size: 0.82rem;
}

/* ── CHARTS ── */
.charts-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.chart-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.chart-title {
  font-weight: 700;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.chart-title span {
  display: block;
  color: var(--gray);
  font-size: 0.78rem;
  font-weight: 400;
  margin-top: 0.1rem;
}

canvas {
  max-height: 260px;
}

/* ── APPOINTMENTS TABLE ── */
.table-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.table-header h3 {
  font-weight: 700;
}

.table-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gray);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.table-wrap {
  overflow-x: auto;
}

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

th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-pending {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.badge-confirmed {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.badge-cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.badge-done {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

.action-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gray-light);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: var(--transition);
  margin-right: 0.25rem;
}

.action-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.action-btn.confirm:hover {
  border-color: #4ade80;
  color: #4ade80;
}

.action-btn.done:hover {
  border-color: #a5b4fc;
  color: #a5b4fc;
}

.empty-table {
  text-align: center;
  padding: 3rem;
  color: var(--gray);
}

.empty-table .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* ── SEED BTN ── */
.seed-section {
  text-align: center;
  margin-bottom: 1.5rem;
}

.btn-seed {
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.3);
  color: var(--gold);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.btn-seed:hover {
  background: rgba(212, 168, 67, 0.2);
}

/* ── AGENDA DA SEMANA ── */
.agenda-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.agenda-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.agenda-title {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.agenda-title span {
  color: var(--gray);
  font-size: 0.82rem;
  font-weight: 400;
}

.agenda-nav {
  display: flex;
  gap: 0.4rem;
}

.agenda-nav-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gray-light);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.agenda-nav-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.agenda-nav-btn.today-btn {
  border-color: rgba(204, 41, 54, 0.4);
  color: var(--red);
}

.agenda-body {
  padding: 1.2rem 1.5rem;
  overflow-x: auto;
}

.agenda-loading {
  text-align: center;
  color: var(--gray);
  padding: 2rem;
}

.agenda-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 0.75rem;
  min-width: 780px;
}

.agenda-day {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.agenda-day.agenda-today {
  border-color: rgba(204, 41, 54, 0.5);
  box-shadow: 0 0 0 1px rgba(204, 41, 54, 0.2);
}

.agenda-day-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.agenda-today .agenda-day-header {
  background: rgba(204, 41, 54, 0.1);
}

.agenda-day-name {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray);
}

.agenda-day-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-left: auto;
}

.agenda-today .agenda-day-num {
  color: var(--red);
}

.agenda-day-count {
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 50px;
}

.agenda-slots {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.4rem;
  max-height: 340px;
  overflow-y: auto;
}

.agenda-slot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem;
  border-radius: 5px;
  font-size: 0.75rem;
  cursor: default;
  transition: var(--transition);
}

.slot-time {
  font-weight: 600;
  color: var(--gray);
  min-width: 36px;
}

.slot-info {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-free {
  background: transparent;
}

.slot-free .slot-info {
  color: rgba(255, 255, 255, 0.15);
}

.slot-free:hover {
  background: rgba(255, 255, 255, 0.03);
}

.slot-pending {
  background: rgba(251, 191, 36, 0.12);
}

.slot-pending .slot-time {
  color: #fbbf24;
}

.slot-pending .slot-info {
  color: #fbbf24;
  font-weight: 600;
}

.slot-confirmed {
  background: rgba(34, 197, 94, 0.12);
}

.slot-confirmed .slot-time {
  color: #4ade80;
}

.slot-confirmed .slot-info {
  color: #4ade80;
  font-weight: 600;
}

.slot-done {
  background: rgba(99, 102, 241, 0.1);
}

.slot-done .slot-time {
  color: #a5b4fc;
}

.slot-done .slot-info {
  color: #a5b4fc;
  font-weight: 600;
}

/* ── CALENDÁRIO DE GRADE (.cal-*) ── */
.cal-outer {
  display: flex;
  flex-direction: column;
  min-width: 700px;
}

.cal-header-row {
  display: grid;
  grid-template-columns: 52px repeat(6, 1fr);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--navy-card);
}


.cal-day-header {
  padding: 0.6rem 0.4rem;
  text-align: center;
  border-left: 1px solid var(--border);
}

.cal-day-header.is-today {
  background: rgba(204, 41, 54, 0.08);
  border-top: 2px solid var(--red);
}

.cal-day-name {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray);
}

.cal-day-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.cal-day-header.is-today .cal-day-num {
  color: var(--red);
}

/* ── Scroll body ── */
.cal-scroll {
  display: flex;
  max-height: 520px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.cal-scroll::-webkit-scrollbar {
  width: 5px;
}

.cal-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

/* ── Coluna de horas ── */
.cal-time-col {
  width: 52px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.cal-time-label {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 0.65rem;
  color: var(--gray);
  border-bottom: 1px solid transparent;
  flex-shrink: 0;
}

.cal-time-label.cal-hour {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  align-items: flex-start;
  padding-top: 4px;
}

/* ── Container de dias ── */
.cal-days-container {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.cal-day-col {
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

/* ── Slots ── */
.cal-slot {
  height: 28px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
}

.cal-slot:nth-child(even) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cal-slot:hover {
  background: rgba(255, 255, 255, 0.04);
}

.cal-slot.has-event {
  cursor: default;
  padding: 2px;
  overflow: hidden;
}

.cal-slot.has-event:hover {
  background: transparent;
}

/* ── Eventos ── */
.cal-event {
  height: 100%;
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 0.65rem;
  line-height: 1.2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cal-event-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-event-svc {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.8;
}

/* Status colors para eventos do calendário */
.cal-event.status-pending {
  background: rgba(251, 191, 36, 0.2);
  border-left: 3px solid #fbbf24;
  color: #fef9c3;
}

.cal-event.status-confirmed {
  background: rgba(34, 197, 94, 0.2);
  border-left: 3px solid #4ade80;
  color: #dcfce7;
}

.cal-event.status-done {
  background: rgba(99, 102, 241, 0.2);
  border-left: 3px solid #a5b4fc;
  color: #ede9fe;
}

.cal-event.status-cancelled {
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #f87171;
  color: #fee2e2;
  opacity: 0.6;
}

/* ── HAMBURGUER & MOBILE MENU ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100dvh;
  background: var(--navy-card);
  border-left: 1px solid var(--border);
  z-index: 1050;
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  gap: 0.25rem;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
}

.mobile-menu.open {
  right: 0;
}

.mobile-link {
  display: block;
  padding: 1rem 0;
  color: var(--gray-light);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.mobile-link:hover,
.mobile-link:active {
  color: var(--white);
  padding-left: 0.5rem;
}

.mobile-link.admin-link {
  margin-top: 1rem;
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 0.9rem 1.5rem;
  border-radius: 50px;
  border: none;
  font-weight: 700;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  backdrop-filter: blur(3px);
}

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

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  /* Hero mais compacto */
  .hero {
    padding: 5rem 1.25rem 3rem;
    min-height: auto;
  }

  .hero-logo {
    width: 110px;
    height: 110px;
  }

  .hero p {
    font-size: 0.95rem;
  }

  /* Services: 2 colunas no mobile */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .service-card {
    padding: 1.25rem 1rem;
  }

  .service-icon {
    font-size: 2rem;
  }

  /* Booking form */
  .booking-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .booking-info {
    display: none;
  }

  .booking-form {
    padding: 1.5rem 1.25rem;
  }

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

  section {
    padding: 3.5rem 1rem;
  }

  /* Admin */
  .charts-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-content {
    padding: 1rem;
  }

  .admin-nav {
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

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

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

  .service-card {
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
  }

  .service-icon {
    font-size: 1.8rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .section-header {
    margin-bottom: 1.75rem;
  }

  .btn-submit {
    font-size: 1rem;
    padding: 1rem;
  }

  .modal-box {
    padding: 1.75rem 1.25rem;
  }
}