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

:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #ccfbf1;
    --primary-ghost: #f0fdfa;
    --secondary: #0891b2;
    --accent: #e11d48;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-blue: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(13,148,136,0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ── Navbar ── */
.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 68px;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.navbar .logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.navbar .logo i { font-size: 1.4rem; }

.logo-sub {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.nav-links { display: flex; gap: 0.2rem; align-items: center; }

.nav-links a {
    color: var(--gray);
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-size: 0.88rem;
}

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

.nav-links .nav-btn {
    background: var(--primary);
    color: white !important;
    padding: 0.45rem 1.2rem;
    font-weight: 600;
}

.nav-links .nav-btn:hover { background: var(--primary-dark); }

.nav-links .btn-logout {
    background: var(--danger);
    color: white !important;
    padding: 0.45rem 1.2rem;
    font-weight: 600;
}
.nav-links .btn-logout:hover { background: #dc2626; }

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--dark);
    padding: 0.5rem;
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 30%, #f0fdf4 70%, #fefce8 100%);
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(13,148,136,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(8,145,178,0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(13,148,136,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content { max-width: 850px; position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(13,148,136,0.08);
    color: var(--primary);
    padding: 0.45rem 1.2rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(13,148,136,0.15);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 2.2rem;
    color: var(--gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }

.hero-stats { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }

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

.hero-stat-num {
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
}

.hero-stat-suffix {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-left: 2px;
}

.hero-stat-label {
    display: block;
    font-size: 0.82rem;
    color: var(--gray-light);
    font-weight: 500;
    margin-top: 2px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-xs);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.93rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(13,148,136,0.35);
    border-radius: 50px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13,148,136,0.45);
}

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

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

.btn-ghost {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--dark);
    border-radius: 50px;
}

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

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; }
.btn-warning { background: var(--warning); color: white; }
.btn-warning:hover { background: #d97706; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-info { background: var(--secondary); color: white; }
.btn-info:hover { background: #0284c7; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; border-radius: var(--radius-xs); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Section Header ── */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 3.5rem; }

.section-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(13,148,136,0.15);
}

.section-header h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -1px; line-height: 1.3; }
.section-header p { color: var(--gray); font-size: 1rem; }

/* ── About ── */
.about { padding: 6rem 5%; max-width: 1200px; margin: 0 auto; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.about-image { position: relative; }

.about-image-box {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary-light), #ecfeff);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(13,148,136,0.1);
}

.about-image-box i { font-size: 6rem; color: var(--primary); opacity: 0.3; }

.about-experience {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: white;
    padding: 1.2rem 1.8rem;
    border-radius: var(--radius-sm);
    text-align: center;
    box-shadow: 0 10px 30px rgba(13,148,136,0.3);
}

.about-exp-num { display: block; font-size: 1.8rem; font-weight: 800; line-height: 1; }
.about-experience span:last-child { font-size: 0.78rem; opacity: 0.9; }

.about-text .section-badge { margin-bottom: 1rem; }

.about-text h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 1.2rem; letter-spacing: -1px; line-height: 1.3; }

.about-text p { color: var(--gray); font-size: 1rem; margin-bottom: 1.5rem; }

.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 2rem; }

.about-feature { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; font-weight: 500; }

.about-feature i { color: var(--success); font-size: 1rem; }

/* ── Services ── */
.services { padding: 6rem 5%; background: var(--light); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), #ecfeff);
    color: var(--primary);
    border-radius: 16px;
    font-size: 1.5rem;
    margin: 0 auto 1.2rem;
}

.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.service-card p { color: var(--gray); font-size: 0.9rem; line-height: 1.6; }

/* ── Why Us ── */
.why-us {
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--dark-blue), var(--dark));
    color: white;
    text-align: center;
}

.why-us-content { max-width: 900px; margin: 0 auto; }

.why-us-content .section-badge { background: rgba(255,255,255,0.1); color: white; border-color: rgba(255,255,255,0.15); }

.why-us-content h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 3rem; letter-spacing: -1px; }

.why-us-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

.why-us-item { text-align: center; }

.why-us-item i {
    font-size: 2.2rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    margin: 0 auto 1rem;
    color: var(--primary-light);
}

.why-us-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.why-us-item p { font-size: 0.85rem; opacity: 0.7; }

/* ── Doctors ── */
.doctors { padding: 6rem 5%; }

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.doctor-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
}

.doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.doctor-avatar {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-ghost);
    color: var(--primary);
    border-radius: 50%;
    font-size: 2rem;
    margin: 0 auto 1.2rem;
}

.doctor-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.2rem; }

.doctor-spec {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.doctor-card p { color: var(--gray); font-size: 0.88rem; }

/* ── Testimonials ── */
.testimonials { padding: 6rem 5%; background: var(--light); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.testimonial-card:hover { box-shadow: var(--shadow-md); }

.testimonial-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }

.testimonial-card p { color: var(--gray); font-size: 0.92rem; font-style: italic; margin-bottom: 1.2rem; line-height: 1.7; }

.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }

.testimonial-avatar {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-ghost);
    color: var(--primary);
    border-radius: 50%;
    font-size: 1rem;
}

.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.78rem; color: var(--gray-light); }

/* ── Contact ── */
.contact { padding: 6rem 5%; max-width: 1100px; margin: 0 auto; }

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

.contact-info h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -1px; }
.contact-info > p { color: var(--gray); margin-bottom: 2rem; }

.contact-details { display: flex; flex-direction: column; gap: 1.2rem; }

.contact-item { display: flex; gap: 1rem; align-items: flex-start; }

.contact-item i {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-ghost);
    color: var(--primary);
    border-radius: 12px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item strong { display: block; font-size: 0.9rem; }
.contact-item span { font-size: 0.88rem; color: var(--gray); }

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.contact-form h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; }

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 0.92rem;
    transition: border 0.3s;
    font-family: inherit;
    background: var(--light);
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.contact-form .form-group textarea { resize: vertical; min-height: 100px; }

/* ── Footer ── */
footer { background: var(--dark-blue); color: white; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand h4 { font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; gap: 0.5rem; }
.footer-brand h4 i { color: var(--primary-light); }
.footer-brand h4 span { font-weight: 400; font-size: 0.9rem; opacity: 0.7; }

.footer-col p { color: var(--gray-light); font-size: 0.88rem; line-height: 1.7; margin-bottom: 0.5rem; }

.footer-col h4 { font-size: 1rem; font-weight: 700; margin-bottom: 1.2rem; }

.footer-col a {
    display: block;
    color: var(--gray-light);
    font-size: 0.88rem;
    margin-bottom: 0.6rem;
    transition: color 0.3s;
}

.footer-col a:hover { color: white; }

.footer-social { display: flex; gap: 0.7rem; margin-top: 1.2rem; }

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 0;
    transition: all 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--gray-light);
    font-size: 0.82rem;
}

.footer-bottom-links { display: flex; gap: 1.5rem; }

.footer-bottom-links a { color: var(--gray-light); transition: color 0.3s; }
.footer-bottom-links a:hover { color: white; }

/* ── Auth Forms ── */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 50%, #f0fdf4 100%);
}

.auth-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    border: 1px solid var(--border);
}

.auth-card h2 { text-align: center; margin-bottom: 0.5rem; font-size: 1.6rem; font-weight: 800; }
.auth-card .subtitle { text-align: center; color: var(--gray); margin-bottom: 2rem; font-size: 0.92rem; }

.form-group { margin-bottom: 1.2rem; }

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 0.95rem;
    transition: border 0.3s;
    font-family: inherit;
    background: var(--light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.auth-link { text-align: center; margin-top: 1.5rem; color: var(--gray); font-size: 0.9rem; }
.auth-link a { color: var(--primary); font-weight: 600; }
.auth-link a:hover { text-decoration: underline; }

/* ── Dashboard ── */
.dashboard { display: flex; min-height: calc(100vh - 68px); padding-top: 68px; }

.sidebar {
    width: 260px;
    background: white;
    padding: 2rem 0;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
    position: fixed;
    top: 68px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
}

.sidebar .user-info { padding: 0 1.5rem 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.sidebar .user-info h3 { font-size: 0.95rem; }
.sidebar .user-info p { font-size: 0.82rem; color: var(--gray); }

.sidebar a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1.5rem;
    color: var(--gray);
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.88rem;
}

.sidebar a:hover,
.sidebar a.active {
    background: var(--primary-ghost);
    color: var(--primary);
    border-right: 3px solid var(--primary);
}

.sidebar a i { width: 20px; }

.main-content { flex: 1; padding: 2rem; overflow-x: auto; margin-left: 260px; }
.main-content h1 { font-size: 1.5rem; margin-bottom: 2rem; font-weight: 800; letter-spacing: -0.5px; }
.sidebar.collapsed + .main-content { margin-left: 64px; }

/* ── Stats Cards ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }

.stat-card {
    background: white; padding: 1.5rem; border-radius: var(--radius-sm);
    border: 1px solid var(--border); display: flex; align-items: center; gap: 1rem; transition: all 0.3s;
}

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

.stat-card i {
    font-size: 1.5rem; width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center; border-radius: 12px;
}

.stat-card .stat-info h3 { font-size: 1.5rem; font-weight: 800; }
.stat-card .stat-info p { color: var(--gray); font-size: 0.82rem; }

.stat-card.blue i { background: var(--primary-ghost); color: var(--primary); }
.stat-card.green i { background: #ecfdf5; color: var(--success); }
.stat-card.yellow i { background: #fffbeb; color: var(--warning); }
.stat-card.red i { background: #fef2f2; color: var(--danger); }

/* ── Tables ── */
.table-container { background: white; border-radius: var(--radius-sm); border: 1px solid var(--border); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--light); }
th, td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-weight: 600; color: var(--gray); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }
td { font-size: 0.88rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--light); }

/* ── Badges ── */
.badge { padding: 0.2rem 0.7rem; border-radius: 50px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2px; }
.badge-pending { background: #fffbeb; color: #d97706; }
.badge-confirmed { background: var(--primary-ghost); color: var(--primary); }
.badge-completed { background: #ecfdf5; color: var(--success); }
.badge-cancelled { background: #fef2f2; color: var(--danger); }

.action-btns { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* ── Alerts ── */
.alert { padding: 0.85rem 1.2rem; border-radius: var(--radius-xs); margin-bottom: 1rem; font-weight: 500; font-size: 0.88rem; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Book Appointment ── */
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.doctor-list { background: white; border-radius: var(--radius-sm); border: 1px solid var(--border); overflow: hidden; }
.doctor-item { padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.3s; display: flex; justify-content: space-between; align-items: center; }
.doctor-item:last-child { border-bottom: none; }
.doctor-item:hover, .doctor-item.selected { background: var(--primary-ghost); }
.doctor-item h4 { margin-bottom: 0.2rem; font-size: 0.95rem; }
.doctor-item .specialty { color: var(--primary); font-size: 0.8rem; font-weight: 600; }
.doctor-item .fee { color: var(--success); font-weight: 700; font-size: 1.05rem; }
.doctor-item .availability { font-size: 0.75rem; color: var(--gray); margin-top: 0.2rem; }

/* ── Modal ── */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); z-index: 200; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-overlay.open { display: flex; }
.modal { background: white; border-radius: var(--radius); padding: 2rem; width: 90%; max-width: 550px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: modalIn 0.2s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.modal h2 { margin-bottom: 1.5rem; }
.modal .close-modal { float: right; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray); line-height: 1; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .book-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-image { max-width: 450px; margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; }
    .why-us-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
    .navbar { padding: 0 5%; height: 60px; }
    .nav-links {
        display: none;
        position: fixed;
        top: 60px; left: 0; right: 0;
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        backdrop-filter: blur(20px);
    }
    .nav-links.open { display: flex; }
    .hamburger { display: block; }

    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .hero-stats { gap: 1.2rem; }
    .hero-stat-num { font-size: 1.6rem; }

    .about-text h2 { font-size: 1.6rem; }
    .about-features { grid-template-columns: 1fr; }
    .about-experience { position: relative; bottom: auto; right: auto; margin-top: 1rem; display: inline-block; }

    .dashboard { flex-direction: column; }
    .sidebar { width: 100%; padding: 0.5rem 0; position: static; border-right: none; border-bottom: 1px solid var(--border); }
    .sidebar .user-info { display: none; }
    .sidebar a { padding: 0.6rem 1rem; }
    .main-content { padding: 1rem; margin-left: 0; }
    .dashboard { padding-top: 60px; }

    .stats-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .auth-card { padding: 1.5rem; }
    .auth-container { padding: 5rem 1rem 2rem; }

    .section-header h2 { font-size: 1.6rem; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .doctors-grid { grid-template-columns: 1fr 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .hero { padding: 6rem 1.2rem 3rem; }
    .hero-btns { flex-direction: column; align-items: center; }
    .hero-btns .btn { width: 100%; justify-content: center; }
    .services-grid { grid-template-columns: 1fr; }
    .doctors-grid { grid-template-columns: 1fr; }
    .why-us-grid { grid-template-columns: 1fr; }
    table { font-size: 0.75rem; }
    th, td { padding: 0.5rem 0.4rem; }
    .btn-lg { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
}
