/* ═══════════════════════════════════════
   BookTheDoctor - Main Stylesheet
   ═══════════════════════════════════════ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #0891b2;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* ─── Animations ─── */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes morphBg {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

.fade-up { animation: fadeUp 0.6s ease-out forwards; }
.fade-in { animation: fadeIn 0.4s ease-out forwards; }
.pulse-icon { animation: heartbeat 2s infinite; display: inline-block; }

/* ─── Navbar ─── */

.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-logo i { font-size: 1.5rem; color: var(--danger); }

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

.nav-links a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--primary); background: var(--primary-light); }

.btn-nav { border: 2px solid transparent; }
.btn-nav.btn-outline {
    border-color: var(--primary);
    color: var(--primary) !important;
}
.btn-nav.btn-outline:hover {
    background: var(--primary);
    color: var(--white) !important;
}
.btn-nav.btn-primary {
    background: var(--primary);
    color: var(--white) !important;
}
.btn-nav.btn-primary:hover {
    background: var(--primary-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ─── Buttons ─── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

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

.btn-success { background: var(--success); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-warning { background: var(--warning); color: var(--white); }

.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-ghost { color: var(--text-light); background: transparent; }
.btn-ghost:hover { color: var(--primary); background: var(--primary-light); }

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

.btn-outline-white { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-white:hover { background: var(--white); color: var(--primary); }

.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-block { width: 100%; justify-content: center; }

/* ─── Hero ─── */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 50%, #ecfeff 100%);
    padding: 80px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: morphBg 8s ease-in-out infinite;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--secondary), var(--success));
    bottom: -50px;
    left: -50px;
    animation-delay: -3s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    top: 50%;
    left: 30%;
    animation-delay: -6s;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-cta { display: flex; gap: 16px; margin-bottom: 48px; }

.hero-stats {
    display: flex;
    gap: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat i { font-size: 1.5rem; color: var(--primary); }
.stat-number { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.stat-label { font-size: 0.75rem; color: var(--text-lighter); text-transform: uppercase; letter-spacing: 0.05em; }

/* Hero illustration */

.hero-illustration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
}

.hero-phone {
    width: 260px;
    background: var(--white);
    border-radius: 28px;
    padding: 8px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
}

.phone-screen {
    background: linear-gradient(180deg, #eff6ff, var(--white));
    border-radius: 22px;
    padding: 20px 16px;
    min-height: 360px;
}

.phone-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
}

.phone-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.phone-calendar { margin-bottom: 20px; }

.cal-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-lighter);
    margin-bottom: 8px;
}

.cal-dates span {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 50%;
    font-weight: 600;
    color: var(--text);
}

.cal-active {
    background: var(--primary) !important;
    color: var(--white) !important;
}

.phone-slots { display: flex; flex-direction: column; gap: 8px; }

.phone-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: var(--shadow);
}

.phone-slot.selected {
    background: var(--primary);
    color: var(--white);
}

.badge-ok { color: var(--success); font-size: 0.7rem; font-weight: 600; }
.badge-sel { color: rgba(255,255,255,0.9); font-size: 0.7rem; font-weight: 600; }

.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 3;
    animation: float 3s ease-in-out infinite;
}

.floating-card i { font-size: 1.2rem; }

.card-1 {
    top: 40px;
    left: -20px;
    color: var(--primary);
    animation-delay: 0s;
}

.card-2 {
    bottom: 80px;
    right: -30px;
    color: var(--success);
    animation-delay: -1s;
}

.card-3 {
    top: 50%;
    left: -40px;
    color: var(--warning);
    animation-delay: -2s;
}

/* ─── Features ─── */

.features {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 48px;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 40px 28px;
    border-radius: var(--radius-lg);
    background: var(--bg);
    transition: var(--transition);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feature-icon i { font-size: 1.8rem; color: var(--white); }

.feature-step {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    background: var(--danger);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p { color: var(--text-light); font-size: 0.95rem; }

/* ─── Doctors section ─── */

.doctors-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg), var(--white));
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.doctor-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.doctor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.doctor-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary-light), #e0f2fe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-avatar i { font-size: 2rem; color: var(--primary); }

.doctor-card h3 { font-size: 1.1rem; margin-bottom: 8px; }

.doctor-spec, .doctor-addr {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.doctor-card .btn { margin-top: 16px; }

/* ─── CTA Section ─── */

.cta-section { padding: 80px 0; }

.cta-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    color: var(--white);
}

.cta-card h2 { font-size: 2rem; margin-bottom: 12px; }
.cta-card p { opacity: 0.9; margin-bottom: 32px; font-size: 1.1rem; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── Auth Pages ─── */

.auth-section {
    padding: 60px 0;
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
}

.auth-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-card-wide { max-width: 640px; }

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

.auth-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-icon i { font-size: 1.5rem; color: var(--white); }

.auth-header h2 { font-size: 1.5rem; font-weight: 700; }
.auth-header p { color: var(--text-light); font-size: 0.9rem; margin-top: 4px; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.9rem; color: var(--text-light); }
.auth-footer p { margin-bottom: 4px; }

/* ─── Forms ─── */

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.form-group label i { color: var(--primary); width: 16px; }

.form-control {
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

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

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

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

/* ─── Alerts ─── */

.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    position: relative;
}

.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid var(--success); }
.alert-error { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--danger); }
.alert-info { background: var(--primary-light); color: var(--primary-dark); border-left: 4px solid var(--primary); }

.alert-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.5;
}

/* ─── Dashboard ─── */

.dashboard-section { padding: 40px 0; }

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.dash-welcome h1 { font-size: 1.8rem; }
.dash-welcome p { color: var(--text-light); }

.dash-actions { display: flex; gap: 8px; }

.dash-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
}

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

.dash-card-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-card-header h2 i { color: var(--primary); }

/* ─── Appointments List ─── */

.appointments-list { padding: 8px; }

.appointment-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    animation: slideRight 0.3s ease-out forwards;
}

.appointment-item:hover { background: var(--bg); }

.appt-time {
    min-width: 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.appt-time i { color: var(--primary); margin-bottom: 2px; }
.appt-time strong { font-size: 0.95rem; }
.appt-time span { font-size: 0.75rem; color: var(--text-lighter); }

.appt-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.appt-reason {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
}

.appt-actions { display: flex; gap: 6px; }

.appt-past { opacity: 0.6; }

/* Badges */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-booked { background: #dbeafe; color: #1e40af; }
.badge-confirmed { background: #d1fae5; color: #065f46; }
.badge-completed { background: #f0fdf4; color: #15803d; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-no_show { background: #fef3c7; color: #92400e; }
.badge-guest { background: #f3e8ff; color: #7c3aed; }

/* Slots overview */

.slots-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 24px;
}

.slot-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--primary-light);
    color: var(--primary-dark);
}

.slot-chip i { font-size: 0.7rem; }
.slot-inactive { background: #f1f5f9; color: var(--text-lighter); }

/* ─── Booking Page ─── */

.booking-section { padding: 40px 0; }

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

.booking-header h1 { font-size: 2rem; margin-bottom: 8px; }
.booking-header p { color: var(--text-light); }

.booking-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-lighter);
    transition: var(--transition);
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition);
}

.step-active { color: var(--primary); }
.step-active .step-num { background: var(--primary); color: var(--white); }
.step-done { color: var(--success); }
.step-done .step-num { background: var(--success); color: var(--white); }

.step-line {
    width: 40px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
}

/* Doctor select */

.doctor-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    padding: 16px 24px;
}

.doctor-select-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    color: var(--text);
}

.doctor-select-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--text);
}

.doctor-select-card.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.doctor-select-card.selected .doctor-avatar-sm {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

.doctor-avatar-sm {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.doctor-select-card strong { display: block; font-size: 0.9rem; }
.doctor-select-card span { font-size: 0.75rem; opacity: 0.8; }

/* Date grid */

.date-grid {
    display: flex;
    gap: 8px;
    padding: 16px 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.date-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    min-width: 72px;
    transition: var(--transition);
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}

.date-cell:hover { border-color: var(--primary); background: var(--primary-light); color: var(--text); }

.date-cell.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.date-day { font-size: 0.7rem; text-transform: uppercase; opacity: 0.7; }
.date-num { font-size: 1.3rem; font-weight: 800; }
.date-month { font-size: 0.7rem; opacity: 0.7; }

/* Time grid */

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    padding: 16px 24px;
}

.slot-book-form { display: contents; }

.time-slot-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-family: inherit;
}

.time-slot-btn:hover {
    border-color: var(--success);
    background: #d1fae5;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.time-slot-btn i { color: var(--primary); font-size: 1.2rem; }
.time-display { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.slot-label { font-size: 0.7rem; color: var(--success); font-weight: 600; text-transform: uppercase; }

/* ─── Confirmation ─── */

.confirmation-section {
    padding: 60px 0;
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
}

.confirmation-card {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
}

.confirmation-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 16px;
    animation: pulse 1s ease-in-out;
}

.confirmation-card h1 {
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.confirmation-details {
    text-align: left;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.95rem;
}

.detail-row i { color: var(--primary); width: 20px; text-align: center; }

.confirmation-note {
    font-size: 0.85rem;
    color: var(--text-light);
    padding: 12px;
    background: #fffbeb;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

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

/* ─── Empty state ─── */

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-lighter);
}

.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.3; }
.empty-state p { font-size: 0.95rem; }

/* ─── Footer ─── */

.footer {
    background: var(--text);
    color: rgba(255,255,255,0.7);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
}

.footer-brand i { color: var(--danger); }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 4px; font-weight: 400; }

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active { display: flex; }

    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-subtitle { margin: 0 auto 24px; }
    .hero-cta { justify-content: center; flex-wrap: wrap; }
    .hero-stats { justify-content: center; }
    .hero-illustration { display: none; }

    .features-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

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

    .booking-steps { flex-wrap: wrap; }

    .dashboard-header { flex-direction: column; align-items: flex-start; }

    .appointment-item { flex-direction: column; align-items: flex-start; }

    .footer-content { flex-direction: column; gap: 16px; }

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

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.8rem; }
    .auth-card { padding: 24px; margin: 0 8px; }
    .btn-lg { padding: 12px 20px; font-size: 0.9rem; }
}
