/* ================================================================
   CareGiver – Complete Design System
   Google Inter font · Modern cards · Dashboard · Auth · Services
   ================================================================ */

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --primary:       #06a77d;
    --primary-dark:  #048a67;
    --primary-light: #e8faf5;
    --secondary:     #3498db;
    --accent:        #f59e0b;
    --danger:        #ef4444;
    --danger-light:  #fee2e2;
    --warning:       #f59e0b;
    --warning-light: #fef3c7;
    --info:          #3b82f6;
    --info-light:    #dbeafe;
    --success:       #10b981;
    --success-light: #d1fae5;
    --success-text: #065f46;
    --danger-text:  #991b1b;
    --warning-text: #92400e;
    --info-text:    #1e40af;

    --dark:    #0f172a;
    --dark-2:  #1e293b;
    --gray:    #64748b;
    --gray-light: #94a3b8;
    --white:   #ffffff;
    --bg:      #f8fafc;
    --bg-2:    #f1f5f9;
    --border:  #e2e8f0;
    --border-light: #f1f5f9;
    
    --sidebar-bg: #0f172a;
    --footer-bg:  #0f172a;

    --grad-primary: linear-gradient(135deg, #06a77d 0%, #3498db 100%);

    --radius:    10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm:  0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.02);
    --shadow:     0 4px 12px rgba(0,0,0,.05);
    --shadow-lg:  0 12px 32px rgba(0,0,0,.08);
    --shadow-xl:  0 24px 64px rgba(0,0,0,.12);

    --navbar-h: 70px;
    --sidebar-w: 260px;
    --transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Dark Theme Variables ── */
.dark-theme {
    --dark:       #f8fafc;
    --dark-2:     #e2e8f0;
    --gray:       #94a3b8;
    --gray-light: #64748b;
    --white:      #1e293b;
    --bg:         #0f172a;
    --bg-2:       #1e293b;
    --border:     #334155;
    --border-light: #1e293b;
    
    --sidebar-bg: #090e17;
    --footer-bg:  #090e17;
    
    --shadow-sm:  0 1px 3px rgba(0,0,0,.2), 0 1px 2px rgba(0,0,0,.1);
    --shadow:     0 4px 12px rgba(0,0,0,.3);
    --shadow-lg:  0 12px 32px rgba(0,0,0,.4);

    --success-light: rgba(16, 185, 129, 0.15);
    --danger-light:  rgba(239, 68, 68, 0.15);
    --warning-light: rgba(245, 158, 11, 0.15);
    --info-light:    rgba(59, 130, 246, 0.15);
    --success-text: #34d399;
    --danger-text:  #f87171;
    --warning-text: #fbbf24;
    --info-text:    #60a5fa;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font);
    color: var(--dark);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--navbar-h);
}

main, .dashboard-wrap {
    flex: 1;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
textarea { resize: vertical; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--dark);
}

/* ── Containers ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Grid ── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ─────────────────────────────────────────────────────
   NAVBAR
───────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--navbar-h);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); background: var(--white); }
.navbar .container { display: flex; align-items: center; gap: 24px; height: 100%; }

.navbar-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -.03em;
}
.navbar-brand a i { font-size: 1.5rem; }

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-wrap: nowrap;
}
.navbar-menu li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: .875rem;
    font-weight: 500;
    color: var(--gray);
    transition: all var(--transition);
}
.navbar-menu li a:hover, .navbar-menu li a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.lang-switcher {
    display: flex;
    align-items: center;
    background: var(--light-color, #f4f6f8);
    border-radius: var(--radius);
    padding: 2px 4px;
    margin: 0 4px;
}
.lang-switcher a {
    padding: 4px 8px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    color: var(--gray) !important;
    border-radius: var(--radius-sm) !important;
    transition: all var(--transition);
}
.lang-switcher a:hover, .lang-switcher a.lang-active {
    background: var(--white, #ffffff) !important;
    color: var(--primary) !important;
    box-shadow: var(--shadow-sm);
    font-weight: 700 !important;
}
.lang-divider {
    color: var(--border);
    font-size: 10px;
    margin: 0 2px;
}

.btn-login {
    padding: 8px 16px !important;
    border-radius: var(--radius) !important;
    background: var(--grad-primary) !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: .8rem !important;
    transition: opacity var(--transition) !important;
}
.btn-login:hover { opacity: .88 !important; background: var(--grad-primary) !important; }

/* ── Notification badge ── */
.nav-notifications a { position: relative; }
.notif-count {
    position: absolute;
    top: 2px; right: 2px;
    min-width: 18px; height: 18px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}

/* ── Avatar Dropdown ── */
.avatar-container { position: relative; }
.avatar-btn {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: none;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
}
.avatar-img { width: 100%; height: 100%; object-fit: cover; }
.avatar-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.avatar-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 8px;
    z-index: 999;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s;
    pointer-events: none;
}
.avatar-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.avatar-dropdown-header {
    padding: 12px 12px 10px;
    display: flex; flex-direction: column; gap: 2px;
}
.avatar-dropdown-header strong { font-size: .9rem; color: var(--dark); }
.avatar-dropdown-header small { font-size: .75rem; color: var(--gray); }
.avatar-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.avatar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius);
    font-size: .875rem;
    color: var(--dark-2);
    transition: background var(--transition);
}
.avatar-dropdown-item:hover { background: var(--bg); }
.avatar-dropdown-item i { width: 16px; color: var(--gray); font-size: 13px; }
.logout-item { color: var(--danger) !important; }
.logout-item i { color: var(--danger) !important; }

/* ── Hamburger ── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    margin-left: auto;
    cursor: pointer;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Back to Top ── */
.back-to-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff;
    border: none;
    font-size: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .3s, transform .3s;
    pointer-events: none;
    z-index: 500;
    display: flex; align-items: center; justify-content: center;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }

/* ─────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: .875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary { background: var(--grad-primary); color: #fff; }
.btn-primary:hover { opacity: .9; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary:active { transform: translateY(0) scale(0.97); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { opacity: .9; transform: translateY(-1px); }
.btn-secondary:active { transform: translateY(0) scale(0.97); }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { opacity: .9; }
.btn-warning:active { transform: scale(0.97); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-outline-primary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline-primary:hover { background: var(--primary-light); }
.btn-ghost { background: var(--bg-2); color: var(--dark-2); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--border); }
.btn-sm { padding: 8px 16px; font-size: .8rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: .9; }
.btn-danger:active { transform: scale(0.97); }

@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ─────────────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
}
.hero-bg-slide {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 0;
}
.hero-bg-slide.active { opacity: 1; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6,55,45,.78) 0%, rgba(10,30,70,.68) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 80px 24px 60px;
    max-width: 780px;
    margin: 0 auto;
    width: 100%;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    padding: 8px 20px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.hero-content h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 18px;
    letter-spacing: -.03em;
    line-height: 1.1;
}
.hero-content h1 em { font-style: normal; color: #6ee7b7; }
.hero-content p { font-size: 1.1rem; color: rgba(255,255,255,.8); margin-bottom: 32px; }

/* Hero Search */
.hero-search {
    display: flex;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 999px;
    overflow: hidden;
    margin: 0 auto 28px;
    max-width: 560px;
}
.hero-search input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 24px;
    font-size: .95rem;
    color: #fff;
    font-family: var(--font);
    outline: none;
}
.hero-search input::placeholder { color: rgba(255,255,255,.6); }
.hero-search button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 24px;
    font-size: .875rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    transition: background var(--transition);
}
.hero-search button:hover { background: var(--primary-dark); }

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

.modern-category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}
.modern-category-card:hover img {
    transform: scale(1.05);
}
.modern-category-card img {
    transition: transform 0.5s ease;
}

/* Auth Pages */
/* Hero Nav */
.hero-nav-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 16px;
    transition: background var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.hero-nav-btn.left  { left: 20px; }
.hero-nav-btn.right { right: 20px; }
.hero-nav-btn:hover { background: rgba(255,255,255,.3); }

/* Hero Dots */
.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%; transform: translateX(-50%);
    z-index: 3;
    display: flex; gap: 8px;
}
.hero-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    border: none;
    cursor: pointer;
    transition: all .3s;
}
.hero-dot.active { background: #fff; width: 24px; border-radius: 4px; }

/* ─────────────────────────────────────────────────────
   SECTIONS
───────────────────────────────────────────────────── */
.section-title {
    text-align: center;
    margin-bottom: 52px;
}
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.section-title h2 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 14px;
    letter-spacing: -.03em;
}
.section-title h2 span { color: var(--primary); }
.section-title p { color: var(--gray); font-size: 1rem; max-width: 540px; margin: 0 auto; }

/* ─────────────────────────────────────────────────────
   CARDS
───────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 1.05rem; }
.card-body { padding: 20px 24px; }

/* ─────────────────────────────────────────────────────
   HOW IT WORKS
───────────────────────────────────────────────────── */
.how-it-works { padding: 80px 0; background: var(--white); }

.step-card {
    background: var(--bg);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid var(--border-light);
    position: relative;
    transition: all var(--transition);
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--primary); }
.step-icon-wrap {
    width: 64px; height: 64px;
    border-radius: var(--radius-lg);
    background: var(--grad-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    color: #fff;
    margin: 0 auto 18px;
}
.step-number {
    position: absolute;
    top: 16px; right: 20px;
    font-size: 3rem;
    font-weight: 900;
    color: var(--border);
    line-height: 1;
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step-card p  { font-size: .875rem; color: var(--gray); line-height: 1.6; }

/* ─────────────────────────────────────────────────────
   CATEGORIES
───────────────────────────────────────────────────── */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 20px;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    cursor: pointer;
    color: var(--dark);
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.cat-icon-wrap {
    width: 68px; height: 68px;
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    transition: transform var(--transition);
}
.category-card:hover .cat-icon-wrap { transform: scale(1.1); }
.cat-icon { font-size: 28px; }
.category-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.category-card p  { font-size: .8rem; color: var(--gray); line-height: 1.5; }

/* ─────────────────────────────────────────────────────
   STATS SECTION
───────────────────────────────────────────────────── */
.stats-section { padding: 72px 0; background: var(--grad-primary); }
.stats-container { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; }
.stat-box { text-align: center; color: #fff; }
.stat-icon-wrap {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    font-size: 22px;
    border: 2px solid rgba(255,255,255,.25);
}
.stat-number { font-size: 2.5rem; font-weight: 900; line-height: 1; margin-bottom: 8px; }
.stat-label  { font-size: .85rem; opacity: .85; font-weight: 500; }

/* ─────────────────────────────────────────────────────
   FEATURES
───────────────────────────────────────────────────── */
.features-section { padding: 80px 0; background: var(--white); }
.feature-item {
    background: var(--bg);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}
.feature-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.feature-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-lg);
    background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 16px;
}
.feature-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.feature-item p  { font-size: .85rem; color: var(--gray); line-height: 1.6; }

/* ─────────────────────────────────────────────────────
   TESTIMONIALS
───────────────────────────────────────────────────── */
.testimonial-section { padding: 80px 0; background: var(--bg); }
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quote-icon { font-size: 3.5rem; color: var(--primary); opacity: .15; line-height: 1; margin-bottom: 8px; font-family: Georgia, serif; }
.star-rating { color: #f59e0b; font-size: 14px; margin-bottom: 12px; }
.testimonial-text { font-size: .9rem; color: var(--gray); line-height: 1.7; margin-bottom: 20px; }
.testimonial-author-row { display: flex; align-items: center; gap: 12px; }
.author-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.testimonial-author { font-size: .9rem; font-weight: 700; color: var(--dark); }
.testimonial-role   { font-size: .78rem; color: var(--gray); }
.testimonial-empty  { text-align: center; padding: 48px 20px; }

/* ─────────────────────────────────────────────────────
   CTA
───────────────────────────────────────────────────── */
.cta-section { padding: 80px 0; background: var(--grad-primary); }
.cta-glass {
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    color: #fff;
}
.cta-glass h2 { font-size: clamp(1.6rem,4vw,2.5rem); font-weight: 900; color: #fff; margin-bottom: 12px; }
.cta-glass p  { font-size: 1.05rem; opacity: .85; margin-bottom: 32px; }
.cta-buttons  { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────── */
.footer { background: var(--footer-bg); color: rgba(255,255,255,.7); padding: 64px 0 0; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 48px; }
.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
}
.footer-section h3 i { color: var(--primary); }
.footer-section h4 { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em; }
.footer-section p  { font-size: .875rem; line-height: 1.7; margin-bottom: 20px; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section ul li a { font-size: .875rem; color: rgba(255,255,255,.6); transition: color var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-section ul li a:hover { color: var(--primary); }

.footer-social { display: flex; gap: 10px; }
.social-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.7);
    font-size: 14px;
    transition: all var(--transition);
}
.social-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.footer-contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.footer-contact-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.06);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 14px;
    flex-shrink: 0;
}
.footer-contact-text { font-size: .85rem; line-height: 1.5; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .8rem;
    color: rgba(255,255,255,.4);
}

/* ─────────────────────────────────────────────────────
   AUTH PAGES
───────────────────────────────────────────────────── */
.auth-page {
    display: flex;
    min-height: calc(100vh - var(--navbar-h));
}
.auth-visual {
    flex: 1;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    min-height: 100%;
}
.auth-visual-content { color: #fff; max-width: 420px; }
.auth-visual-icon {
    width: 72px; height: 72px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    margin-bottom: 24px;
}
.auth-visual-content h2 { font-size: 2rem; font-weight: 900; color: #fff; margin-bottom: 16px; }
.auth-visual-content p  { opacity: .85; line-height: 1.7; margin-bottom: 32px; }
.auth-visual-features { display: flex; flex-direction: column; gap: 14px; }
.auth-visual-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .875rem;
    background: rgba(255,255,255,.1);
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.15);
}
.auth-visual-feature i { font-size: 14px; }

.auth-form-panel {
    width: 480px;
    flex-shrink: 0;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 56px;
    overflow-y: auto;
}
.auth-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 32px;
}
.auth-logo i { font-size: 1.3rem; }
.auth-form-panel h2 { font-size: 1.75rem; font-weight: 900; color: var(--dark); margin-bottom: 6px; }
.auth-subtitle { font-size: .9rem; color: var(--gray); margin-bottom: 28px; }
.auth-links a { color: var(--primary); font-weight: 600; }
.auth-divider {
    text-align: center;
    position: relative;
    color: var(--gray);
    font-size: .78rem;
    font-weight: 600;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

/* ─────────────────────────────────────────────────────
   FORMS
───────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--dark-2);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: .875rem;
    color: var(--dark);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6,167,125,.12);
}

.input-group.has-icon { position: relative; }
.input-group.has-icon > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-light);
    font-size: 14px;
    pointer-events: none;
}
.input-group.has-icon input { padding-left: 38px; }

.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 44px; }
.toggle-password, .password-wrapper .fa-eye, .password-wrapper .fa-eye-slash {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-light);
    cursor: pointer;
    font-size: 14px;
    transition: color var(--transition);
}
.toggle-password:hover { color: var(--primary); }

/* ─────────────────────────────────────────────────────
   ALERTS
───────────────────────────────────────────────────── */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: .875rem;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid transparent;
}
.alert i { margin-top: 1px; flex-shrink: 0; }
.alert-success { background: var(--success-light); color: var(--success-text); border-color: transparent; }
.alert-danger   { background: var(--danger-light);  color: var(--danger-text); border-color: transparent; }
.alert-warning  { background: var(--warning-light); color: var(--warning-text); border-color: transparent; }
.alert-info     { background: var(--info-light);    color: var(--info-text); border-color: transparent; }

/* ─────────────────────────────────────────────────────
   BADGES
───────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: capitalize;
    white-space: nowrap;
}
.badge-success { background: var(--success-light); color: var(--success-text); }
.badge-danger  { background: var(--danger-light);  color: var(--danger-text); }
.badge-warning { background: var(--warning-light); color: var(--warning-text); }
.badge-info    { background: var(--info-light);    color: var(--info-text); }

/* Booking Status Badges */
.status-pending   { background: var(--warning-light); color: var(--warning-text); }
.status-accepted  { background: var(--info-light);    color: var(--info-text); }
.status-completed { background: var(--success-light); color: var(--success-text); }
.status-cancelled { background: var(--danger-light);  color: var(--danger-text); }
.status-rejected  { background: var(--danger-light);  color: var(--danger-text); }

/* ─────────────────────────────────────────────────────
   TABLES
───────────────────────────────────────────────────── */
.table-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}
.table { width: 100%; border-collapse: collapse; }
.table th {
    background: var(--bg);
    padding: 12px 16px;
    text-align: left;
    font-size: .75rem;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom: 1px solid var(--border);
}
.table td {
    padding: 14px 16px;
    font-size: .875rem;
    color: var(--dark-2);
    border-bottom: 1px solid var(--border-light);
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover { background: var(--bg); }

/* ─────────────────────────────────────────────────────
   DASHBOARD
───────────────────────────────────────────────────── */
.dashboard-wrap {
    display: flex;
}

/* ── Sidebar ── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    flex-shrink: 0;
    position: sticky;
    top: var(--navbar-h);
    height: calc(100vh - var(--navbar-h));
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.1) transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

.sidebar-header {
    padding: 28px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    text-align: center;
}
.sidebar-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 12px;
    border: 3px solid rgba(255,255,255,.15);
    overflow: hidden;
}
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-name { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.sidebar-role {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.7);
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sidebar-nav { padding: 16px 12px; flex: 1; }
.sidebar-section-label {
    font-size: .68rem;
    font-weight: 700;
    color: rgba(255,255,255,.3);
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 0 8px;
    margin-bottom: 6px;
    margin-top: 8px;
}
.sidebar-nav ul { display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: .875rem;
    font-weight: 500;
    color: rgba(255,255,255,.6);
    transition: all var(--transition);
}
.sidebar-nav ul li a i { width: 16px; font-size: 14px; }
.sidebar-nav ul li a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-nav ul li a.active { background: var(--primary); color: #fff; font-weight: 600; }
.logout-link { color: rgba(239,68,68,.75) !important; }
.logout-link:hover { background: rgba(239,68,68,.12) !important; color: var(--danger) !important; }

/* ── Dashboard Content ── */
.dashboard-content {
    flex: 1;
    padding: 32px;
    overflow-x: hidden;
    background: var(--bg);
    min-width: 0;
}

.dash-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}
.dash-title h1 { font-size: 1.5rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.dash-title p  { font-size: .875rem; color: var(--gray); }

.dash-section { margin-bottom: 28px; }
.dash-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.dash-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.dash-section-title i { color: var(--primary); }

/* ── Widget Cards ── */
.widget-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.widget-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.widget-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.widget-icon.green  { background: var(--success-light); color: var(--success); }
.widget-icon.blue   { background: var(--info-light);    color: var(--info); }
.widget-icon.orange { background: var(--warning-light); color: var(--warning); }
.widget-icon.purple { background: #ede9fe;              color: #7c3aed; }
.widget-icon.teal   { background: #ccfbf1;              color: #0d9488; }
.widget-icon.red    { background: var(--danger-light);  color: var(--danger); }
.widget-value { font-size: 1.6rem; font-weight: 800; color: var(--dark); line-height: 1; margin-bottom: 4px; }
.widget-label { font-size: .78rem; color: var(--gray); font-weight: 500; }

/* ── Chart Cards ── */
.chart-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}
.chart-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.chart-card-title  { font-size: .95rem; font-weight: 700; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.chart-card-title i { color: var(--primary); }
.chart-container { height: 220px; position: relative; }

/* ── Quick Actions ── */
.quick-action-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    cursor: pointer;
    color: var(--dark);
}
.quick-action-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.qa-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    margin-bottom: 4px;
}
.qa-label { font-size: .9rem; font-weight: 700; color: var(--dark); }
.qa-desc  { font-size: .78rem; color: var(--gray); }

/* ── Account Info ── */
.account-info {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}
.account-info-header {
    background: var(--bg);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 16px;
}
.account-info-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: #fff;
    overflow: hidden; flex-shrink: 0;
}
.account-info-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-info-meta h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.account-info-meta span { font-size: .8rem; color: var(--gray); }
.account-info-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.info-row { display: flex; align-items: flex-start; gap: 12px; font-size: .875rem; }
.info-row > i { width: 32px; height: 32px; border-radius: var(--radius); background: var(--primary-light); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 13px; flex-shrink: 0; }
.info-label { font-size: .72rem; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.info-value { font-size: .875rem; font-weight: 600; color: var(--dark); }

/* ─────────────────────────────────────────────────────
   PROVIDER CARDS (Services Page)
───────────────────────────────────────────────────── */
.provider-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}
.provider-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.provider-card-header {
    background: var(--grad-primary);
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.provider-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    border: 3px solid rgba(255,255,255,.4);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: #fff;
    overflow: hidden; flex-shrink: 0;
}
.provider-avatar img { width: 100%; height: 100%; object-fit: cover; }
.provider-header-info h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.provider-verified { font-size: .72rem; background: rgba(255,255,255,.2); color: #fff; padding: 2px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }

.provider-card-body { padding: 18px 20px; flex: 1; }
.provider-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.provider-rating .stars { color: #f59e0b; font-size: 13px; }
.provider-rating .score { font-size: .85rem; font-weight: 700; color: var(--dark); }
.provider-rating .count { font-size: .75rem; color: var(--gray); }
.provider-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.provider-meta span { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; color: var(--gray); background: var(--bg); padding: 4px 10px; border-radius: 999px; }
.provider-meta i { color: var(--primary); font-size: 10px; }
.provider-price { font-size: 1.5rem; font-weight: 900; color: var(--primary); margin-bottom: 14px; }
.provider-price span { font-size: .8rem; font-weight: 400; color: var(--gray); }

.provider-card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 10px;
    background: var(--bg);
}

/* ─────────────────────────────────────────────────────
   SCROLL REVEAL ANIMATION
───────────────────────────────────────────────────── */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s ease, transform .5s ease;
}
.fade-in-on-scroll.visible { opacity: 1; transform: translateY(0); }

@keyframes scaleIn {
    from { opacity:0; transform: scale(.95); }
    to   { opacity:1; transform: scale(1); }
}

/* ─────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
    .stats-container { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .sidebar { width: 220px; }
    --sidebar-w: 220px;
}

@media (max-width: 900px) {
    .dashboard-wrap { flex-direction: column; }
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 12px;
    }
    .sidebar-header { display: none; }
    .sidebar-nav { padding: 0; flex: 1; }
    .sidebar-nav ul { flex-direction: row; flex-wrap: wrap; gap: 4px; }
    .sidebar-nav ul li a { padding: 8px 12px; font-size: .8rem; }
    .sidebar-section-label { display: none; }
    .dashboard-content { padding: 20px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .auth-page { flex-direction: column; }
    .auth-visual { min-height: 280px; }
    .auth-form-panel { width: 100%; padding: 36px 28px; }
}

@media (max-width: 768px) {
    body { padding-top: var(--navbar-h); }
    .hamburger { display: flex; }
    .navbar-menu {
        display: none;
        position: fixed;
        top: var(--navbar-h);
        left: 0; right: 0;
        background: var(--white);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        max-height: calc(100vh - var(--navbar-h));
        overflow-y: auto;
    }
    .navbar-menu.open { display: flex; }
    .navbar-menu li a { padding: 12px 16px; border-radius: var(--radius); font-size: 1rem; }
    .navbar-menu .btn-login { text-align: center; justify-content: center; }
    .hero { min-height: 520px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-search { border-radius: var(--radius); flex-direction: column; }
    .hero-search input, .hero-search button { border-radius: 0; width: 100%; justify-content: center; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .stats-container { grid-template-columns: 1fr 1fr; }
    .dash-topbar { flex-direction: column; align-items: flex-start; }
    .cta-glass { padding: 40px 20px; }
}

@media (max-width: 480px) {
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .stats-container { grid-template-columns: 1fr 1fr; }
    .container { padding: 0 16px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
