:root {
    /* Color Palette - Premium Rose Gold (Landing Page Match) */
    --bg-color: #FAFAFA;
    --surface-color: #FFFFFF;
    --surface-hover: #FFF5F7;
    --surface-border: rgba(232, 107, 138, 0.15);
    
    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    
    --primary-color: #E86B8A;
    --primary-light: #F9B2C3;
    --primary-hover: #D14F72;
    --accent-color: #E86B8A;
    
    /* Spacing & Radii */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-full: 9999px;
    
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Shadows & Transitions */
    --shadow-soft: 0 10px 15px -3px rgba(183, 110, 121, 0.1);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    /* Soft gradient background */
    background-image: 
        radial-gradient(at 0% 0%, rgba(232, 107, 138, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(249, 178, 195, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Layout */
.app-container {
    max-width: 480px; /* Mobile optimal width */
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 100px;
}

/* Header */
.app-header {
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-md);
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(232, 107, 138, 0.1);
}

.brand-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
}

.brand-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 0 var(--spacing-lg) var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Glassmorphism Cards */
.service-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.service-card:hover, .service-card:active {
    background: var(--surface-hover);
    transform: translateY(-2px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 15px -3px rgba(183, 110, 121, 0.15);
}

.service-card.selected {
    border-color: var(--primary-color);
    background: rgba(232, 107, 138, 0.05);
    box-shadow: 0 0 0 1px var(--primary-color);
}


.service-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.service-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.service-duration {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.service-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--spacing-sm);
}

.service-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-color);
}

.btn-select {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 6px rgba(183, 110, 121, 0.2);
}

.btn-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(183, 110, 121, 0.3);
}

.btn-select.selected-btn {
    background: var(--surface-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: none;
}

.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--surface-border);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
    z-index: 100;
    transform: translateX(-50%) translateY(100%);
    transition: transform var(--transition-smooth);
}

.sticky-footer.visible {
    transform: translateX(-50%) translateY(0);
}

.footer-info {
    display: flex;
    flex-direction: column;
}

.footer-total-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-total-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
}

.btn-continue {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(232, 107, 138, 0.3);
    transition: var(--transition-fast);
}

.btn-continue:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(232, 107, 138, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

/* Loader */
.loader-container {
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    padding: var(--spacing-xl) 0;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--surface-border);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Calendar & Timeslots */
.calendar-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.date-scroller {
    display: flex;
    overflow-x: auto;
    gap: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.date-scroller::-webkit-scrollbar {
    display: none;
}

.date-card {
    flex: 0 0 calc(25% - var(--spacing-sm));
    min-width: 70px;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md) var(--spacing-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.date-card.active {
    background: var(--primary-color);
    border-color: var(--primary-hover);
}

.date-day {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.date-card.active .date-day {
    color: rgba(255, 255, 255, 0.9);
}

.date-number {
    font-size: 1.3rem;
    font-weight: 700;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--spacing-sm);
}

.time-slot {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    padding: 12px 0;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.time-slot:hover {
    background: var(--surface-hover);
}

.time-slot.active {
    background: var(--primary-color);
    border-color: var(--primary-hover);
    color: white;
}

.time-slot.occupied {
    background: #F3F4F6;
    border-color: #E5E7EB;
    color: #9CA3AF;
    opacity: 0.8;
}

.time-slot.occupied:hover {
    background: #E5E7EB;
    border-color: #D1D5DB;
    color: var(--text-secondary);
}

.waitlist-icon {
    font-size: 0.8em;
    margin-left: 4px;
}

/* Utils */
.fade-out {
    animation: fadeOut 0.4s forwards;
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}

/* Summary View */
.summary-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    box-shadow: var(--shadow-soft);
    margin-bottom: var(--spacing-xl);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.summary-value {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.summary-value.total {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

/* CALENDAR GRID */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: 8px;
}

.weekday {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.calendar-day {
    padding: 6px 0;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: transparent;
}

.calendar-day.today {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
}

.calendar-day:not(.disabled):not(.empty):not(.selected):hover {
    background-color: rgba(183, 110, 121, 0.05);
}

.calendar-day.selected {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.calendar-day.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-day.empty {
    visibility: hidden;
}

.month-nav {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s;
}

.month-nav:hover {
    background-color: rgba(255,255,255,0.05);
}


/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
  -webkit-transform: translateX(22px);
  -ms-transform: translateX(22px);
  transform: translateX(22px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline.active {
    background: var(--primary-color);
    color: white;
}
