/* ========================================
   BEAUTY STUDIO - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
  --color-bg: #F5F5F5;
  --color-card: #FFFFFF;
  --color-accent: #8B7355;
  --color-accent-hover: #6B5A45;
  --color-text: #1A1A1A;
  --color-text-muted: #6B6B6B;
  --color-border: #E5E5E5;
  --color-success: #22C55E;
  --color-error: #EF4444;
  --color-warning: #F59E0B;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);

  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --color-bg: #0F0F11;
  --color-card: #16161A;
  --color-text: #F3F3F5;
  --color-text-muted: #B7B7BE;
  --color-border: #2A2A33;
}

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

html {
  scroll-behavior: smooth;
  /* Responsive base font size for vertical/mobile screens */
  font-size: clamp(14px, 3.2vw, 16px);
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Avoid browser default tap/focus highlight */
* {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

.heading-1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
}

.heading-2 {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 5vw, 1.8rem);
  font-weight: 600;
  line-height: 1.3;
}

.heading-3 {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 4.2vw, 1.25rem);
  font-weight: 600;
}

.text-muted {
  color: var(--color-text-muted);
}

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

.text-balance {
  text-wrap: balance;
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 15px;
}

.page {
  min-height: 100vh;
  padding-bottom: 60px;
}

.section-header {
  margin-bottom: 14px;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-8 { gap: 8px; }
.gap-12 { gap: 10px; }
.gap-16 { gap: 10px; }
.gap-24 { gap: 24px; }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 10px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 10px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 15px; }

/* ========================================
   COMPONENTS - Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0.1vmin solid;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--color-card);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-bg);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background-color: var(--color-accent);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
}

.btn-ghost:hover {
  background-color: var(--color-border);
  color: var(--color-text);
}

.btn-block {
  width: 100%;
}

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

.btn-lg {
  padding: 10px 45px;
  font-size: 1.125rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   COMPONENTS - Cards
   ======================================== */

.card {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin: 10px 0;
  overflow: hidden;
}

.card-body {
  padding: 20px;
}

.card-header {
  padding: 20px 20px 0;
}

.card-footer {
  padding: 0 20px 20px;
}

/* Service Card */
.service-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background-color: var(--color-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.service-card.selected {
  border-color: var(--color-accent);
  background-color: rgba(139, 115, 85, 0.05);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.service-card-content {
  flex: 1;
  min-width: 0;
}

.service-card-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.service-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.service-card-price {
  font-weight: 600;
  color: var(--color-accent);
  white-space: nowrap;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background-color: var(--color-accent);
  color: white;
}

.badge-outline {
  background: transparent;
  border: 1px solid currentColor;
  color: var(--color-accent);
}

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

.badge-warning {
  background-color: var(--color-warning);
}

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

/* ========================================
   COMPONENTS - Forms
   ======================================== */

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.875rem;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-card);
  transition: all var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: none;
}

/* Remove focus glow on buttons/links (let our transitions handle feedback) */
.btn:focus,
.btn:focus-visible,
a:focus,
a:focus-visible,
.nav-item:focus,
.nav-item:focus-visible,
button:focus,
button:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

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

.form-input.error {
  border-color: var(--color-error);
}

.form-error {
  margin-top: 6px;
  font-size: 0.813rem;
  color: var(--color-error);
}

.form-hint {
  margin-top: 6px;
  font-size: 0.813rem;
  color: var(--color-text-muted);
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

/* Checkbox / Radio */
.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-item,
.radio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.checkbox-item input,
.radio-item input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-accent);
}

/* ========================================
   COMPONENTS - Header
   ======================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-card);
  border-bottom: 1px solid var(--color-border);
}

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

.header-back {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.header-back:hover {
  background-color: var(--color-bg);
}

.header-title {
  font-weight: 600;
  font-size: 1.125rem;
}

.header-action {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  user-select: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

/* ========================================
   COMPONENTS - Navigation
   ======================================== */

.nav-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--color-card);
  border-top: 1px solid var(--color-border);
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-bottom-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 64px;
  max-width: 480px;
  margin: 0 auto;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  transition: color var(--transition);
}

.nav-item:hover,
.nav-item.active {
  color: var(--color-accent);
}

.nav-item svg {
  width: 24px;
  height: 24px;
}

/* ========================================
   COMPONENTS - Calendar
   ======================================== */

.calendar {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 20px;
}

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

.calendar-title {
  font-weight: 600;
  font-size: 1.125rem;
}

.calendar-nav {
  display: flex;
  gap: 8px;
}

.calendar-nav button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.calendar-nav button:hover {
  background-color: var(--color-bg);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.calendar-weekday {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 8px 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.calendar-day:hover:not(.disabled):not(.selected) {
  background-color: var(--color-bg);
}

.calendar-day.today {
  font-weight: 600;
  color: var(--color-accent);
}

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

.calendar-day.disabled {
  color: var(--color-border);
  cursor: not-allowed;
}

.calendar-day.other-month {
  color: var(--color-text-muted);
  opacity: 0.5;
}

/* Time Slots */
.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.time-slot {
  padding: 12px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.time-slot:hover:not(.disabled):not(.selected) {
  border-color: var(--color-accent);
}

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

.time-slot.disabled {
  background-color: var(--color-bg);
  color: var(--color-text-muted);
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ========================================
   COMPONENTS - Review Card
   ======================================== */

.review-card {
  padding: 20px;
  background-color: var(--color-card);
  border-radius: var(--radius-md);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.review-info {
  flex: 1;
}

.review-name {
  font-weight: 600;
  margin-bottom: 2px;
}

.review-date {
  font-size: 0.813rem;
  color: var(--color-text-muted);
}

.review-rating {
  display: flex;
  gap: 2px;
  color: var(--color-warning);
}

.review-text {
  font-size: 0.938rem;
  line-height: 1.6;
  color: var(--color-text);
}

/* Star Rating Input */
.star-rating {
  display: flex;
  gap: 4px;
}

.star-rating button {
  padding: 4px;
  color: var(--color-border);
  transition: color var(--transition);
}

.star-rating button:hover,
.star-rating button.active {
  color: var(--color-warning);
}

.star-rating button svg {
  width: 28px;
  height: 28px;
}

/* ========================================
   COMPONENTS - Booking Card
   ======================================== */

.booking-card {
  padding: 16px;
  background-color: var(--color-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.booking-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.booking-card-service {
  font-weight: 600;
  margin-bottom: 4px;
}

.booking-card-datetime {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.booking-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.booking-card-price {
  font-weight: 600;
  color: var(--color-accent);
}

/* ========================================
   COMPONENTS - Admin status badges
   ======================================== */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.status-badge.upcoming {
  background-color: rgba(196, 162, 122, 0.15);
  color: var(--color-accent);
}

.status-badge.completed {
  background-color: rgba(129, 199, 132, 0.15);
  color: var(--color-success);
}

.status-badge.cancelled {
  background-color: rgba(229, 115, 115, 0.15);
  color: var(--color-error);
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

/* ========================================
   COMPONENTS - Modal
   ======================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

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

.modal {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  background-color: var(--color-card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

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

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

.modal-title {
  font-weight: 600;
  font-size: 1.25rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.modal-close:hover {
  background-color: var(--color-bg);
}

/* ========================================
   COMPONENTS - Toast
   ======================================== */

.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  width: calc(100% - 32px);
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background-color: var(--color-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toast-in 0.3s ease;
}

.toast.toast-out {
  animation: toast-out 0.3s ease forwards;
}

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

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

.toast-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.toast-icon.success { color: var(--color-success); }
.toast-icon.error { color: var(--color-error); }
.toast-icon.warning { color: var(--color-warning); }

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.toast-message {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ========================================
   COMPONENTS - Tabs
   ======================================== */

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
}

.tab {
  flex: 1;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

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

.tab.active {
  background-color: var(--color-card);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

/* ========================================
   COMPONENTS - Stats
   ======================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 10px;
  gap: 12px;
}

.stat-card {
  padding: 16px;
  text-align: center;
  background-color: var(--color-card);
  border-radius: var(--radius-md);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 4px;
}

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

/* ========================================
   COMPONENTS - Table (Admin)
   ======================================== */

.table-wrapper {
  overflow-x: auto;
  background-color: var(--color-card);
  border-radius: var(--radius-md);
}

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

.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.table th {
  font-weight: 600;
  font-size: 0.813rem;
  color: var(--color-text-muted);
  background-color: var(--color-bg);
}

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

.table tr:hover td {
  background-color: var(--color-bg);
}

/* ========================================
   COMPONENTS - Progress Steps
   ======================================== */

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
}

.progress-step {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-border);
  transition: all var(--transition);
}

.progress-step.active {
  width: 24px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent);
}

.progress-step.completed {
  background-color: var(--color-accent);
}

/* ========================================
   PAGE - Hero Section
   ======================================== */

.hero {
  padding: 30px 0 30px;
  text-align: center;
}

.hero-title {
  margin-bottom: 16px;
}

.hero-subtitle {
  color: var(--color-text-muted);
  font-size: 1.063rem;
  max-width: 320px;
  margin: 0 auto 32px;
}

/* ========================================
   PAGE - Price List
   ======================================== */

.price-section {
  padding: 20px 0;
}

.price-category-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.813rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px;
  background-color: var(--color-card);
  border-radius: var(--radius-md);
  flex-direction: column;
}

.price-item-info {
  flex: 1;
}

.price-item-name {
  font-weight: 500;
  margin-bottom: 4px;
}

.price-item-duration {
  font-size: 0.813rem;
  color: var(--color-text-muted);
}

.price-item-value {
  font-weight: 600;
  color: var(--color-accent);
  white-space: nowrap;
}

/* ========================================
   PAGE - Reviews Section
   ======================================== */

.reviews-section {
  padding-bottom: 10px;
  padding-top: 30px;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  margin: 10px 0;
  gap: 10px;
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background-color: var(--color-card);
  border-radius: var(--radius-md);
}

.reviews-average {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

.reviews-count {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ========================================
   PAGE - Footer
   ======================================== */

.footer {
  padding: 40px 0;
  background-color: var(--color-card);
  border-top: 1px solid var(--color-border);
}

.footer-content {
  text-align: center;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-link {
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--color-accent);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: all var(--transition);
}

.footer-social a:hover {
  background-color: var(--color-accent);
  color: white;
}

.footer-copyright {
  font-size: 0.813rem;
  color: var(--color-text-muted);
}

/* ========================================
   PAGE - Auth Forms
   ======================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 16px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-title {
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--color-text-muted);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 15px 0;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--color-border);
}

.auth-footer {
  text-align: center;
  font-size: 0.875rem;
  margin: 15px 0;
  color: var(--color-text-muted);
}

.auth-footer a {
  color: var(--color-accent);
  font-weight: 500;
}

/* ========================================
   PAGE - Success Animation
   ======================================== */

.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  text-align: center;
}

.success-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 24px;
  background-color: var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: success-pop 0.5s ease;
}

.success-icon svg {
  width: 48px;
  height: 48px;
  color: white;
  animation: success-check 0.3s ease 0.2s both;
}

@keyframes success-pop {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes success-check {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-title {
  margin-bottom: 12px;
}

.success-message {
  color: var(--color-text-muted);
  margin-bottom: 15px;
  max-width: 280px;
}

.success-details {
  width: 100%;
  max-width: 320px;
  padding: 20px;
  background-color: var(--color-card);
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  text-align: left;
}

.success-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.success-detail-row:last-child {
  border-bottom: none;
}

.success-detail-label {
  color: var(--color-text-muted);
}

.success-detail-value {
  font-weight: 500;
}

/* ========================================
   PAGE - Admin Panel
   ======================================== */

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background-color: var(--color-card);
  border-right: 1px solid var(--color-border);
  padding: 24px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}

.admin-logo {
  margin-bottom: 32px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  transition: all var(--transition);
}

.admin-nav-item:hover {
  background-color: var(--color-bg);
  color: var(--color-text);
}

.admin-nav-item.active {
  background-color: var(--color-accent);
  color: white;
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  padding: 24px;
}

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

.admin-title {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Admin mobile sidebar toggle */
@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 100;
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-menu-toggle {
    display: flex;
  }
}

.admin-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

/* ========================================
   UTILITIES
   ======================================== */

.hidden {
  display: none !important;
}

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

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

.divider {
  height: 1px;
  background-color: var(--color-border);
  margin: 24px 0;
}

/* Loading Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
}

/* Empty State */
.empty-state {
  padding: 48px 24px;
  text-align: center;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--color-text-muted);
  opacity: 0.5;
}

.empty-state-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.empty-state-text {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }

  .heading-1 {
    font-size: 3rem;
  }

  .heading-2 {
    font-size: 2rem;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .time-slots {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .nav-bottom {
    display: none;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 960px;
  } 
}
