/* ===== VARIABLES ===== */
:root {
    --primary: #4F46E5;
    --primary-dark: #3730A3;
    --primary-light: #EEF2FF;
    --secondary: #06B6D4;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --dark: #0F172A;
    --gray: #64748B;
    --gray-light: #F1F5F9;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --shadow: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 8px;
    --font: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: var(--font);
    text-decoration: none;
}
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(79,70,229,0.3);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79,70,229,0.4);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}
.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-white:hover { transform: translateY(-2px); }
.btn-danger { background: var(--danger); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}
.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link {
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--gray);
    transition: all 0.2s;
    font-size: 0.9rem;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}
.nav-auth { display: flex; align-items: center; gap: 10px; }
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== FLASH MESSAGE ===== */
.flash-message {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    padding: 14px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    max-width: 400px;
}
.flash-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.flash-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.flash-message button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.6;
}
@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0;
    color: white;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 35px;
    line-height: 1.7;
}
.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}
.hero-stat h3 {
    font-size: 2rem;
    font-weight: 800;
}
.hero-stat p { opacity: 0.8; font-size: 0.9rem; }

/* ===== SECTION ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-light); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 12px;
}
.section-header p { color: var(--gray); font-size: 1.05rem; }
.section-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* ===== CARDS ===== */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.card-body { padding: 24px; }

/* ===== CATEGORY GRID ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.category-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}
.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.category-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--primary);
}
.category-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 5px; }
.category-card p { font-size: 0.85rem; color: var(--gray); }

/* ===== PROFESSIONAL CARD ===== */
.professionals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.prof-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s;
}
.prof-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.prof-card-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.prof-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.5);
    object-fit: cover;
}
.prof-card-header h3 { color: white; font-size: 1.1rem; font-weight: 700; }
.prof-card-header p { color: rgba(255,255,255,0.8); font-size: 0.85rem; }
.prof-card-body { padding: 20px; }
.prof-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.prof-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--gray);
}
.prof-meta-item i { color: var(--primary); }
.prof-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 15px;
}
.price-tag { font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.price-label { font-size: 0.8rem; color: var(--gray); }
.prof-actions { display: flex; gap: 10px; }
.prof-actions .btn { flex: 1; justify-content: center; }

/* ===== STARS ===== */
.stars { color: #F59E0B; font-size: 1rem; }
.rating-text { font-size: 0.85rem; color: var(--gray); }

/* ===== BADGE ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #ECFDF5; color: #065F46; }
.badge-warning { background: #FFFBEB; color: #92400E; }
.badge-danger { background: #FEF2F2; color: #991B1B; }
.badge-gray { background: var(--gray-light); color: var(--gray); }

/* ===== FORM ===== */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--dark);
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: white;
    color: var(--dark);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.form-control::placeholder { color: #94A3B8; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-error { color: var(--danger); font-size: 0.82rem; margin-top: 5px; }
.form-hint { color: var(--gray); font-size: 0.82rem; margin-top: 5px; }

/* ===== HOW IT WORKS ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.step-card {
    text-align: center;
    padding: 40px 25px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}
.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 20px;
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { color: var(--gray); font-size: 0.9rem; }

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 70px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
}
.footer-social a:hover { background: var(--primary); }
.footer-col h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li {
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-col ul li a { transition: color 0.2s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px;
    background: var(--dark);
    padding: 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-user { display: flex; align-items: center; gap: 12px; }
.sidebar-user img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}
.sidebar-user-info h4 { color: white; font-size: 0.95rem; font-weight: 600; }
.sidebar-user-info p { color: rgba(255,255,255,0.5); font-size: 0.78rem; }
.sidebar-nav { padding: 15px 0; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    color: white;
    background: rgba(79,70,229,0.3);
    border-right: 3px solid var(--primary);
}
.sidebar-nav a i { width: 20px; text-align: center; }
.sidebar-section-title {
    padding: 15px 20px 5px;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.dashboard-main { flex: 1; background: #F8FAFC; overflow-y: auto; }
.dashboard-header {
    background: white;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dashboard-header h1 { font-size: 1.4rem; font-weight: 700; }
.dashboard-content { padding: 30px; }

/* ===== STATS CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
}
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.stat-icon.blue { background: #EEF2FF; color: var(--primary); }
.stat-icon.green { background: #ECFDF5; color: var(--success); }
.stat-icon.yellow { background: #FFFBEB; color: var(--warning); }
.stat-icon.red { background: #FEF2F2; color: var(--danger); }
.stat-info h3 { font-size: 1.6rem; font-weight: 800; }
.stat-info p { font-size: 0.82rem; color: var(--gray); }

/* ===== TABLE ===== */
.table-wrapper {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.table-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.table-header h3 { font-size: 1rem; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
table th {
    padding: 12px 20px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gray-light);
}
table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: #FAFAFA; }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state i {
    font-size: 3rem;
    color: var(--border);
    margin-bottom: 15px;
}
.empty-state h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--gray); font-size: 0.9rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-menu, .nav-auth { display: none; }
    .nav-menu.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: var(--shadow);
        z-index: 999;
        gap: 5px;
    }
    .nav-menu.open + .nav-auth {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: auto;
        padding: 0 20px 20px;
    }
    .hamburger { display: flex; }
    .hero { padding: 60px 0; }
    .hero-btns { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1/-1; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .dashboard-layout { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: relative; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    table { font-size: 0.82rem; }
    table th, table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
    .professionals-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}