/* ============================================================
   RESERVA CERTA — Global Styles
   Design: Luxury minimal · Dark accents · Geometric precision
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --brand: #7c3aed;
  --brand-light: #a78bfa;
  --brand-dark: #5b21b6;
  --brand-glow: rgba(124, 58, 237, 0.25);

  --surface: #0f0e17;
  --surface-2: #161523;
  --surface-3: #1e1c2e;
  --surface-4: #27253e;

  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);

  --text-primary: #f0eeff;
  --text-secondary: #8b85a8;
  --text-muted: #5a5572;

  --available: #10b981;
  --pending: #f59e0b;
  --confirmed: #ef4444;
  --holiday: #6366f1;
  --expired: #6b7280;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;

  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.6);
  --shadow-brand: 0 8px 32px var(--brand-glow);

  --font: 'Sora', sans-serif;
  --mono: 'DM Mono', monospace;

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text-primary); }

img { max-width: 100%; display: block; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-secondary); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 640px; margin: 0 auto; padding: 0 24px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.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 12px 40px var(--brand-glow);
}

.btn-secondary {
  background: var(--surface-3);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--surface-4);
  border-color: var(--border-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface-3);
  color: var(--text-primary);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.25); }

.btn-success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.btn-success:hover { background: rgba(16, 185, 129, 0.25); }

.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-input, .form-select, .form-textarea {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
}

.form-select option { background: var(--surface-2); }
.form-textarea { resize: vertical; min-height: 100px; }

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-error {
  font-size: 0.8rem;
  color: #ef4444;
  display: none;
}

.field-error .form-input,
.field-error .form-select {
  border-color: #ef4444;
}
.field-error .form-error { display: block; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-glass {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-pending { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.badge-confirmed { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.badge-cancelled { background: rgba(107,114,128,0.15); color: #9ca3af; border: 1px solid rgba(107,114,128,0.3); }
.badge-expired { background: rgba(107,114,128,0.1); color: #6b7280; border: 1px solid rgba(107,114,128,0.2); }
.badge-available { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.badge-recurring { background: rgba(99,102,241,0.15); color: #818cf8; font-size: 0.65rem; padding: 2px 8px; border-radius: 100px; }

/* ============================================================
   CALENDAR
   ============================================================ */
.calendar-wrapper {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.cal-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.cal-month {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.cal-year {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

.cal-nav {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-nav:hover {
  background: var(--surface-4);
  color: var(--text-primary);
  border-color: var(--brand);
}

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

.cal-day-name {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 0;
}

.cal-cell {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
  min-height: 44px;
  border: 1px solid transparent;
  overflow: hidden;
}

.cal-day-num {
  position: relative;
  z-index: 1;
  line-height: 1;
}

.cal-holiday-name {
  font-size: 0.55rem;
  text-align: center;
  line-height: 1;
  margin-top: 2px;
  opacity: 0.85;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-empty { background: transparent; border: none; }

/* Status colors */
.cal-available {
  background: rgba(16,185,129,0.08);
  color: #10b981;
  border-color: rgba(16,185,129,0.15);
}

.cal-pending {
  background: rgba(245,158,11,0.1);
  color: #f59e0b;
  border-color: rgba(245,158,11,0.2);
}

.cal-confirmed {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  border-color: rgba(239,68,68,0.2);
}

.cal-expired, .cal-past {
  background: transparent;
  color: var(--text-muted);
  opacity: 0.5;
}

.cal-holiday {
  outline: 2px solid rgba(99,102,241,0.4);
  outline-offset: -2px;
}

.cal-holiday-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.cal-today {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 1px var(--brand-glow);
}

.cal-clickable {
  cursor: pointer;
}
.cal-clickable:hover {
  background: rgba(16,185,129,0.2) !important;
  transform: scale(1.05);
  z-index: 2;
  border-color: #10b981 !important;
}

.cal-selected {
  background: rgba(16,185,129,0.3) !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 0 2px rgba(16,185,129,0.3);
}

/* Legend */
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-slow);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
  font-size: 1.4rem;
  line-height: 1;
}
.modal-close:hover { color: var(--text-primary); }

.modal-body { display: flex; flex-direction: column; gap: 16px; }
.modal-footer { margin-top: 24px; display: flex; gap: 12px; justify-content: flex-end; }

/* ============================================================
   TOAST
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform var(--transition-slow);
  pointer-events: all;
  max-width: 340px;
}

.toast.show { transform: translateX(0); }
.toast-success { border-left: 3px solid var(--available); }
.toast-error { border-left: 3px solid #ef4444; }
.toast-info { border-left: 3px solid var(--brand-light); }

/* ============================================================
   LOADING OVERLAY
   ============================================================ */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 14, 23, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--brand);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.logo span { color: var(--brand-light); }

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

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-nav {
  padding: 16px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.sidebar-link:hover { background: var(--surface-3); color: var(--text-primary); }
.sidebar-link.active { background: var(--brand-glow); color: var(--brand-light); }

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}

.admin-content {
  flex: 1;
  overflow-x: hidden;
}

.admin-header {
  padding: 32px 40px 24px;
  border-bottom: 1px solid var(--border);
}

.admin-body { padding: 32px 40px; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--border-hover); }

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.stat-card.stat-pending .stat-value { color: #f59e0b; }
.stat-card.stat-confirmed .stat-value { color: #ef4444; }
.stat-card.stat-revenue .stat-value { color: #10b981; }

/* Table */
.table-container {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-pill:hover { border-color: var(--brand); color: var(--brand-light); }
.filter-pill.active { background: var(--brand-glow); border-color: var(--brand); color: var(--brand-light); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: var(--surface-3);
  border-bottom: 1px solid var(--border);
}

tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: var(--surface-3); }

.client-info { display: flex; flex-direction: column; gap: 2px; }
.client-name { font-weight: 600; color: var(--text-primary); }
.client-phone { font-size: 0.78rem; color: var(--text-muted); font-family: var(--mono); }

.actions-cell { white-space: nowrap; }

.btn-action {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  margin-right: 4px;
}
.btn-confirm:hover { background: rgba(16,185,129,0.15); color: #10b981; border-color: #10b981; }
.btn-cancel:hover { background: rgba(239,68,68,0.15); color: #ef4444; border-color: #ef4444; }
.btn-whatsapp:hover { background: rgba(37,211,102,0.15); color: #25d366; border-color: #25d366; }

.expiry-cell { font-family: var(--mono); font-size: 0.78rem; color: var(--text-muted); }
.price-cell { font-family: var(--mono); font-weight: 600; color: var(--text-primary); }

.empty-text { color: var(--text-muted); text-align: center; padding: 40px; }

/* Tabs */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

[data-tab] {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 12px 20px;
  transition: all var(--transition);
  margin-bottom: -1px;
}
[data-tab]:hover { color: var(--text-primary); }
[data-tab].active { border-bottom-color: var(--brand); color: var(--brand-light); font-weight: 600; }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.25s ease; }

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

/* Settings grid */
.settings-section { margin-bottom: 40px; }
.settings-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.variables-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.variable-tag {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--brand-light);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 3px 10px;
  transition: all var(--transition);
}
.variable-tag:hover { background: var(--brand-glow); border-color: var(--brand); }

/* Feriados */
.feriados-form {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 24px;
}

.feriado-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.feriado-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.feriado-date { font-family: var(--mono); font-size: 0.85rem; color: var(--text-secondary); }
.feriado-name { flex: 1; font-weight: 500; }

.btn-remove-feriado {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all var(--transition);
}
.btn-remove-feriado:hover { background: rgba(239,68,68,0.15); color: #ef4444; }

/* ============================================================
   HERO / LANDING
   ============================================================ */
.hero {
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 100px;
  color: var(--brand-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero h1 { margin-bottom: 16px; }
.hero p { font-size: 1.1rem; margin-bottom: 32px; max-width: 540px; margin-left: auto; margin-right: auto; }

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   AGENDA PÚBLICA
   ============================================================ */
.agenda-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
}

.agenda-company-header {
  text-align: center;
  margin-bottom: 40px;
}

.agenda-company-name {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.agenda-company-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.agenda-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

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

.reservation-panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.reservation-panel-placeholder {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-muted);
}

.reservation-panel-placeholder .icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.selected-date-display {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  color: #10b981;
  font-weight: 600;
}

.price-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--surface-3);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.price-display .label { font-size: 0.8rem; color: var(--text-muted); }
.price-display .value { font-family: var(--mono); font-weight: 700; color: var(--text-primary); }

/* Success state */
.success-state {
  text-align: center;
  padding: 32px 24px;
}
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.success-state h3 { margin-bottom: 8px; color: #10b981; }
.success-state p { font-size: 0.9rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .sidebar {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    width: 100%;
  }
  .sidebar.open { display: flex; }
  .admin-content { width: 100%; }
  .admin-header, .admin-body { padding: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  table { font-size: 0.8rem; }
  thead th, tbody td { padding: 10px 12px; }
  .feriados-form { grid-template-columns: 1fr 1fr; }
  .modal { padding: 24px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cal-grid { gap: 3px; }
  .cal-cell { min-height: 36px; font-size: 0.8rem; }
  .hero { padding: 60px 16px; }
  .hero h1 { font-size: 2rem; }
}

/* ============================================================
   MISC
   ============================================================ */
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.text-sm { font-size: 0.85rem; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--available); }
.text-warning { color: var(--pending); }
.text-danger { color: var(--confirmed); }
.text-brand { color: var(--brand-light); }

.hidden { display: none !important; }

/* Scrollbar customization */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
