/* ============================================
   LocalPro - Complete CSS Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --secondary-color: #0ea5e9;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-family: 'Poppins', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--gray-600);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
}

.admin-link {
    color: var(--gray-400);
    font-size: 0.9rem;
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gray-700);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: var(--gradient-primary);
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title .highlight {
    display: block;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-search {
    margin-bottom: 50px;
}

.search-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 8px;
    display: flex;
    gap: 10px;
    box-shadow: var(--shadow-xl);
    flex-wrap: wrap;
}

.search-select {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    border: none;
    font-size: 1rem;
    color: var(--gray-700);
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    cursor: pointer;
}

.search-location-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-lg);
    color: var(--gray-700);
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-location-btn:hover {
    background: var(--gray-200);
}

.search-location-btn.active {
    background: var(--success-color);
    color: var(--white);
}

.search-btn {
    padding: 15px 30px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-image {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 20px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 3s ease-in-out infinite;
}

.floating-card .card-icon {
    font-size: 2rem;
}

.floating-card .card-text {
    font-weight: 600;
    color: var(--gray-700);
}

.card-1 { top: 10%; left: 10%; animation-delay: 0s; }
.card-2 { top: 25%; right: 10%; animation-delay: 0.5s; }
.card-3 { top: 50%; left: 5%; animation-delay: 1s; }
.card-4 { bottom: 25%; right: 5%; animation-delay: 1.5s; }
.card-5 { bottom: 10%; left: 20%; animation-delay: 2s; }

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

/* ============================================
   Categories Section
   ============================================ */
.categories {
    padding: 100px 0;
    background: var(--white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 15px;
}

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

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.category-card {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.category-name {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 5px;
}

.category-count {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.view-all-btn {
    display: block;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    color: var(--primary-dark);
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
    padding: 100px 0;
    background: var(--gray-50);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.step-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 10px;
}

.step p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    padding: 100px 0;
    background: var(--gradient-secondary);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-btn {
    display: inline-block;
    padding: 18px 40px;
    background: var(--white);
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo-icon,
.footer-brand .logo-text {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
}

.footer-brand p {
    margin-top: 15px;
    color: var(--gray-400);
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: var(--gray-400);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

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

.footer-contact p {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.offline-notice {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
}

/* ============================================
   Registration Page
   ============================================ */
.register-section {
    padding: 60px 0;
    min-height: calc(100vh - 70px);
}

.register-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 50px;
}

.register-header {
    text-align: center;
    margin-bottom: 40px;
}

.register-header h1 {
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.register-header p {
    color: var(--gray-500);
}

.profile-preview {
    text-align: center;
    margin-bottom: 30px;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: var(--shadow-lg);
}

.avatar-note {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--gray-800);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: var(--danger-color);
}

.phone-input {
    display: flex;
    align-items: center;
}

.country-code {
    background: var(--gray-100);
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    color: var(--gray-600);
    font-weight: 500;
}

.phone-input input {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.location-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

.detect-location-btn {
    width: 100%;
    padding: 12px;
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    color: var(--gray-600);
    font-weight: 500;
    transition: all 0.3s ease;
}

.detect-location-btn:hover {
    background: var(--gray-200);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.detect-location-btn.active {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.coordinates-display {
    margin-top: 10px;
    padding: 10px 15px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    color: var(--gray-600);
}

.rate-input {
    display: flex;
    align-items: center;
}

.rate-input .currency {
    background: var(--gray-100);
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    color: var(--gray-600);
    font-weight: 600;
    font-size: 1.1rem;
}

.rate-input input {
    border-radius: 0;
    text-align: center;
    flex: 1;
}

.rate-input .per-hour {
    background: var(--gray-100);
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-left: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--gray-600);
    font-weight: 500;
}

.helper-text {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 5px;
}

.error-message {
    display: block;
    font-size: 0.85rem;
    color: var(--danger-color);
    margin-top: 5px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 25px;
    line-height: 1.6;
}

/* ============================================
   Search Page
   ============================================ */
.search-section {
    padding: 40px 0;
    min-height: calc(100vh - 70px);
}

.search-header {
    text-align: center;
    margin-bottom: 40px;
}

.search-header h1 {
    font-size: 2.2rem;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.search-header p {
    color: var(--gray-500);
}

.search-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.filter-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--gray-700);
    cursor: pointer;
}

.location-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 15px;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.location-btn:hover {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
}

.location-btn.active {
    background: var(--success-color);
    border-color: var(--success-color);
    color: var(--white);
}

.search-filters .search-btn {
    min-width: 150px;
    align-self: flex-end;
}

.location-info {
    margin-bottom: 20px;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    font-weight: 500;
}

.results-info {
    margin-bottom: 20px;
    color: var(--gray-600);
    font-weight: 500;
}

.category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.category-filter-btn {
    padding: 8px 16px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-filter-btn:hover,
.category-filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Freelancer Card */
.freelancer-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.freelancer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    background: var(--gradient-primary);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.card-avatar {
    width: 70px;
    height: 70px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: var(--shadow-md);
}

.card-title {
    flex: 1;
}

.card-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 5px;
}

.card-profession {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-body {
    padding: 25px;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.info-icon {
    width: 24px;
    text-align: center;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

.card-rate {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.card-rate span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--gray-500);
}

.card-distance {
    background: var(--gray-100);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
    padding: 4px 10px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--gray-700);
    margin-bottom: 10px;
}

.no-results p {
    color: var(--gray-500);
    margin-bottom: 25px;
}

.reset-btn {
    padding: 12px 25px;
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    color: var(--white);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.page-btn {
    padding: 12px 25px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: var(--gray-600);
    font-weight: 500;
}

/* ============================================
   Modal
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.success-modal {
    text-align: center;
    padding: 50px 40px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.success-modal h2 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 15px;
}

.success-modal p {
    color: var(--gray-500);
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 25px;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.modal-btn.primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.modal-btn.secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

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

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Freelancer Detail Modal */
.freelancer-detail-modal {
    max-width: 600px;
    padding: 0;
}

.freelancer-detail .detail-header {
    background: var(--gradient-primary);
    padding: 40px;
    text-align: center;
}

.freelancer-detail .detail-avatar {
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-lg);
}

.freelancer-detail .detail-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.freelancer-detail .detail-profession {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.freelancer-detail .detail-body {
    padding: 40px;
}

.freelancer-detail .detail-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.freelancer-detail .detail-item {
    text-align: center;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.freelancer-detail .detail-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.freelancer-detail .detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.freelancer-detail .contact-btn {
    width: 100%;
    padding: 18px;
    background: var(--gradient-secondary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.freelancer-detail .contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Admin Panel
   ============================================ */
.admin-body {
    background: var(--gray-100);
}

.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 50px;
    max-width: 400px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.admin-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.login-header h1 {
    font-size: 1.8rem;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.login-header p {
    color: var(--gray-500);
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Admin Dashboard */
.admin-navbar {
    background: var(--gray-900);
    box-shadow: var(--shadow-lg);
}

.admin-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.admin-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 15px;
}

.admin-nav-menu {
    display: flex;
    gap: 10px;
}

.admin-nav-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--gray-400);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-nav-btn:hover,
.admin-nav-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.admin-nav-btn.logout {
    color: var(--danger-color);
}

.admin-nav-btn.logout:hover {
    background: rgba(239, 68, 68, 0.2);
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px;
}

.admin-title {
    font-size: 1.8rem;
    color: var(--gray-900);
    margin-bottom: 30px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.chart-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.chart-card h3 {
    font-size: 1.2rem;
    color: var(--gray-800);
    margin-bottom: 25px;
}

.chart-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.chart-bar-label {
    width: 120px;
    font-size: 0.9rem;
    color: var(--gray-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart-bar-fill {
    flex: 1;
    height: 25px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.chart-bar-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    transition: width 0.5s ease;
}

.chart-bar-value {
    width: 50px;
    text-align: right;
    font-weight: 600;
    color: var(--gray-700);
}

/* Admin Filters */
.admin-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.admin-filters input,
.admin-filters select {
    padding: 12px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
}

.admin-filters input {
    flex: 1;
    min-width: 250px;
}

.filter-btn {
    padding: 12px 25px;
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    color: var(--white);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Admin Table */
.table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.admin-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    color: var(--gray-600);
}

.admin-table tr:hover td {
    background: var(--gray-50);
}

.admin-table .profile-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-table .profile-avatar {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.status-badge.inactive {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.status-badge.verified {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
}

.action-btns {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn.verify {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.action-btn.toggle {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.action-btn.delete {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.action-btn:hover {
    transform: scale(1.1);
}

/* Admin Pagination */
.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

/* Confirm Modal */
.confirm-modal {
    padding: 40px;
    text-align: center;
}

.confirm-modal h3 {
    font-size: 1.4rem;
    color: var(--gray-900);
    margin-bottom: 15px;
}

.confirm-modal p {
    color: var(--gray-500);
    margin-bottom: 30px;
}

/* ============================================
   Profile Page
   ============================================ */
.profile-section {
    padding: 40px 0;
    min-height: calc(100vh - 70px);
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.profile-header {
    background: var(--gradient-primary);
    padding: 60px 40px;
    text-align: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin: 0 auto 25px;
    box-shadow: var(--shadow-lg);
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.profile-profession {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.profile-body {
    padding: 50px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.profile-stat {
    text-align: center;
    padding: 25px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.profile-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.profile-stat-label {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.profile-details {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.profile-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.profile-detail-icon {
    font-size: 1.5rem;
}

.profile-detail-info {
    flex: 1;
}

.profile-detail-label {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.profile-detail-value {
    font-weight: 600;
    color: var(--gray-800);
}

.profile-contact {
    width: 100%;
    padding: 20px;
    background: var(--gradient-secondary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-contact:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        display: none;
    }

    .hero-stats {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

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

    .charts-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        gap: 10px;
    }

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

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .search-box {
        flex-direction: column;
    }

    .search-select,
    .search-location-btn,
    .search-btn {
        width: 100%;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .register-container {
        padding: 30px 20px;
    }

    .location-inputs {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .search-filters {
        flex-direction: column;
    }

    .search-filters .filter-group {
        width: 100%;
    }

    .admin-nav-menu {
        flex-wrap: wrap;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-table {
        font-size: 0.85rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 12px;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .freelancer-detail .detail-info {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 25px;
    }

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

    .section-title {
        font-size: 1.8rem;
    }

    .cta h2 {
        font-size: 1.8rem;
    }
}

.text-input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: inherit;
    width: 100%;
}
/* ===== MODAL STYLE (SCREENSHOT DESIGN) ===== */

.freelancer-detail-modal {
    border-radius: 20px;
    overflow: hidden;
    max-width: 520px;
}

.detail-header {
    background: linear-gradient(135deg,#6a4cff,#5a3fff);
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.detail-avatar {
    width: 90px;
    height: 90px;
    margin: auto;
    border-radius: 50%;
    background: white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:40px;
}

.detail-name {
    font-size: 28px;
    font-weight: 700;
    margin-top: 15px;
}

.detail-profession {
    margin-top: 8px;
    font-size: 18px;
}

.detail-body {
    padding: 25px;
}

.detail-grid {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
    margin-bottom:20px;
}

.detail-item {
    background:#f7f7f7;
    border-radius:14px;
    padding:16px;
    text-align:center;
}

.detail-label {
    color:#777;
    font-size:14px;
}

.detail-value {
    font-size:20px;
    font-weight:700;
    margin-top:6px;
}

.contact-btn {
    display:block;
    width:100%;
    text-align:center;
    background:#13b5e7;
    color:white;
    padding:14px;
    border-radius:12px;
    font-size:20px;
    font-weight:600;
    text-decoration:none;
}
/* ===== FIX MODAL SCROLL ===== */

.modal {
    overflow-y: auto;
}

.freelancer-detail-modal {
    max-height: 90vh;
    overflow-y: auto;
}

