﻿/* =============================================
   GigFlow - CSS Principal
   ============================================= */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --secondary: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    --bg: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --font: 'Inter', sans-serif;
    --transition: all 0.2s ease;
}

/* Dark Mode */
body.dark {
    --bg: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --border: #334155;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; transition: background 0.3s, color 0.3s; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }

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

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    position: sticky; top: 0; z-index: 1000;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 0;
}
.navbar .container {
    display: flex; align-items: center; gap: 20px;
    height: 70px;
}
.navbar-brand {
    display: flex; align-items: center; gap: 8px;
    font-size: 1.5rem; font-weight: 800;
    flex-shrink: 0;
}
.logo-icon { color: var(--primary); font-size: 1.3rem; }
.logo-text { color: var(--text); }
.logo-accent { color: var(--primary); }

.navbar-search { flex: 1; max-width: 500px; }
.search-box {
    display: flex; align-items: center;
    background: var(--bg-secondary); border: 1.5px solid var(--border);
    border-radius: var(--radius-full); overflow: hidden;
    padding: 0 16px; gap: 10px;
    transition: var(--transition);
}
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.search-box i { color: var(--text-muted); }
.search-box input { flex: 1; border: none; background: none; padding: 10px 0; font-size: 0.9rem; color: var(--text); outline: none; }
.search-box button { background: var(--primary); color: white; border: none; padding: 8px 18px; border-radius: var(--radius-full); cursor: pointer; font-weight: 600; font-size: 0.85rem; transition: var(--transition); }
.search-box button:hover { background: var(--primary-dark); }

.navbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* =============================================
   STATIC PAGES (FAQ, Contact, Terms, Privacy)
   ============================================= */
.static-page-hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 60px 0; text-align: center; color: white; }
.static-page-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; }
.static-page-hero p { font-size: 1rem; opacity: 0.85; }
.static-container { max-width: 1100px; margin: 0 auto; padding: 48px 20px; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; }
.faq-sidebar { position: sticky; top: 90px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.faq-sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.faq-nav-link { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.faq-nav-link:hover, .faq-nav-link.active { background: rgba(99,102,241,0.08); color: var(--primary); font-weight: 600; }
.faq-content section h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 16px; color: var(--text); padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-question { width: 100%; padding: 16px 20px; background: var(--bg-card); border: none; text-align: left; font-family: var(--font); font-size: 0.9rem; font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: var(--transition); }
.faq-question:hover { background: var(--bg-secondary); color: var(--primary); }
.faq-question i { color: var(--text-muted); transition: var(--transition); flex-shrink: 0; }
.faq-item.open .faq-question { color: var(--primary); background: rgba(99,102,241,0.04); }
.faq-item.open .faq-question i { transform: rotate(180deg); color: var(--primary); }
.faq-answer { display: none; padding: 16px 20px; background: var(--bg-secondary); border-top: 1px solid var(--border); font-size: 0.875rem; line-height: 1.7; color: var(--text-muted); }
.faq-item.open .faq-answer { display: block; }
.faq-cta { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: var(--radius); padding: 36px; text-align: center; color: white; margin-top: 40px; }
.faq-cta h3 { font-size: 1.3rem; margin-bottom: 8px; }
.faq-cta p { opacity: 0.85; margin-bottom: 20px; }
.faq-cta .btn-primary { background: white; color: var(--primary); }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.contact-info-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-info-icon { width: 42px; height: 42px; border-radius: var(--radius-sm); background: rgba(99,102,241,0.1); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.contact-info-item h4 { font-size: 0.875rem; font-weight: 700; margin-bottom: 2px; }
.contact-info-item p { font-size: 0.825rem; color: var(--text-muted); }
.contact-form-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .form-group { display: flex; flex-direction: column; gap: 6px; }
.contact-form .form-group label { font-size: 0.875rem; font-weight: 600; }
.contact-form .form-control { padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font-size: 0.9rem; font-family: var(--font); outline: none; transition: var(--transition); width: 100%; }
.contact-form .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.contact-form textarea.form-control { resize: vertical; min-height: 140px; line-height: 1.6; }

/* Legal (Terms, Privacy) */
.legal-layout { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; }
.legal-sidebar { position: sticky; top: 90px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.legal-sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.legal-nav-link { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.825rem; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.legal-nav-link:hover { background: rgba(99,102,241,0.08); color: var(--primary); }
.legal-content section { margin-bottom: 36px; }
.legal-content h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; color: var(--text); padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.legal-content p { font-size: 0.9rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 12px; }
.legal-content ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal-content ul li { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* How It Works */
.hiw-section { margin-bottom: 20px; }
.hiw-section-header { text-align: center; margin-bottom: 40px; }
.hiw-badge { display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.hiw-badge.buyer { background: rgba(99,102,241,0.12); color: var(--primary); }
.hiw-badge.seller { background: rgba(16,185,129,0.12); color: var(--success); }
.hiw-section-header h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.hiw-section-header p { color: var(--text-muted); font-size: 1rem; }
.hiw-steps { display: flex; align-items: center; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hiw-step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; text-align: center; flex: 1; min-width: 200px; max-width: 260px; position: relative; transition: var(--transition); }
.hiw-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hiw-step-number { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; background: var(--primary); color: white; border-radius: 50%; font-size: 0.8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.hiw-step-icon { width: 60px; height: 60px; border-radius: var(--radius-sm); background: rgba(99,102,241,0.1); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 16px; }
.hiw-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.hiw-step p { font-size: 0.825rem; color: var(--text-muted); line-height: 1.6; }
.hiw-arrow { color: var(--text-light); font-size: 1.2rem; flex-shrink: 0; }
.hiw-divider { height: 1px; background: var(--border); margin: 50px 0; }
.hiw-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; }
.hiw-trust-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.hiw-trust-item i { font-size: 1.8rem; color: var(--primary); margin-bottom: 12px; display: block; }
.hiw-trust-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.hiw-trust-item p { font-size: 0.8rem; color: var(--text-muted); }

@media (max-width: 768px) {
    .faq-layout, .legal-layout { grid-template-columns: 1fr; }
    .faq-sidebar, .legal-sidebar { position: static; }
    .contact-layout { grid-template-columns: 1fr; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .static-page-hero h1 { font-size: 1.6rem; }
    .hiw-steps { flex-direction: column; align-items: stretch; }
    .hiw-arrow { transform: rotate(90deg); text-align: center; }
    .hiw-trust { grid-template-columns: 1fr 1fr; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius-full); font-weight: 600; font-size: 0.875rem; cursor: pointer; transition: var(--transition); border: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.3); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(239,68,68,0.3); }
.btn-danger:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 13px 28px; font-size: 1rem; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg-secondary); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.text-danger { color: var(--danger) !important; }

/* Notifications */
.navbar-notif, .navbar-user { position: relative; }
.notif-btn, .user-btn {
    display: flex; align-items: center; gap: 8px;
    background: none; border: none; cursor: pointer;
    padding: 8px; border-radius: var(--radius); color: var(--text);
    transition: var(--transition);
}
.notif-btn:hover, .user-btn:hover { background: var(--bg-secondary); }
.notif-btn { position: relative; }
.badge {
    position: absolute; top: 2px; right: 2px;
    background: var(--danger); color: white;
    font-size: 10px; font-weight: 700;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.user-btn img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.avatar-initials { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }

.notif-dropdown, .user-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    min-width: 280px; display: none; z-index: 100;
    overflow: hidden;
}
.notif-dropdown.open, .user-dropdown.open { display: block; }
.notif-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.notif-header h4 { font-size: 0.9rem; font-weight: 600; }
.notif-header a { font-size: 0.8rem; color: var(--primary); }
.notif-item { display: block; padding: 12px 16px; border-bottom: 1px solid var(--border); transition: var(--transition); }
.notif-item:hover { background: var(--bg-secondary); }
.notif-item.unread { background: rgba(99,102,241,0.05); border-left: 3px solid var(--primary); }
.notif-item p { font-size: 0.875rem; margin-bottom: 4px; }
.notif-item small { color: var(--text-muted); font-size: 0.75rem; }
.notif-empty { padding: 20px; text-align: center; color: var(--text-muted); font-size: 0.875rem; }
.user-dropdown a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 0.875rem; transition: var(--transition); }
.user-dropdown a:hover { background: var(--bg-secondary); color: var(--primary); }
.user-dropdown a i { width: 16px; }
.dropdown-divider { border-top: 1px solid var(--border); margin: 4px 0; }

/* Theme Toggle */
.theme-toggle { background: none; border: 1.5px solid var(--border); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: var(--transition); }
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }

.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; font-size: 1.3rem; color: var(--text); }

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    padding: 80px 0;
}
body.dark .hero { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); }
.hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(99,102,241,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(99,102,241,0.1); color: var(--primary); padding: 6px 14px; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 32px; }

.hero-search { max-width: 550px; }
.hero-search-box { display: flex; align-items: center; background: var(--bg); border: 2px solid var(--border); border-radius: var(--radius-full); padding: 6px 6px 6px 20px; gap: 12px; box-shadow: var(--shadow); margin-bottom: 12px; }
.hero-search-box:focus-within { border-color: var(--primary); }
.hero-search-box i { color: var(--text-muted); }
.hero-search-box input { flex: 1; border: none; background: none; font-size: 0.95rem; color: var(--text); outline: none; }
.hero-suggestions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.85rem; }
.hero-suggestions span { color: var(--text-muted); }
.hero-suggestions a { background: var(--bg); border: 1px solid var(--border); padding: 4px 12px; border-radius: var(--radius-full); color: var(--text); font-size: 0.8rem; transition: var(--transition); }
.hero-suggestions a:hover { border-color: var(--primary); color: var(--primary); }

.hero-image { position: relative; display: flex; justify-content: center; }
.hero-card {
    position: absolute; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 12px 16px;
    display: flex; align-items: center; gap: 12px; min-width: 200px;
}
.hero-card img { width: 40px; height: 40px; border-radius: 50%; }
.hero-card strong { display: block; font-size: 0.875rem; font-weight: 600; }
.hero-card span { font-size: 0.75rem; color: var(--text-muted); }
.hero-card:first-child { top: 20%; left: 0; }
.hero-card:last-child { bottom: 20%; right: 0; }
.floating { animation: float 3s ease-in-out infinite; }
.floating-delay { animation: float 3s ease-in-out infinite 1.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.text-success { color: var(--success); }

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar { background: var(--primary); padding: 30px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item strong { display: block; font-size: 1.8rem; font-weight: 800; color: white; }
.stat-item span { font-size: 0.875rem; color: rgba(255,255,255,0.8); }

/* =============================================
   SECTIONS
   ============================================= */
.section { padding: 70px 0; }
.section-gray { background: var(--bg-secondary); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.section-header h2 { font-size: 1.75rem; font-weight: 700; }
.section-header p { color: var(--text-muted); margin-top: 4px; }

/* =============================================
   CATEGORIES
   ============================================= */
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card {
    background: var(--bg-card); border: 1.5px solid var(--border);
    border-radius: var(--radius); padding: 24px 20px; text-align: center;
    transition: var(--transition); cursor: pointer;
}
.category-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.category-icon { width: 60px; height: 60px; background: rgba(99,102,241,0.1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 1.5rem; color: var(--primary); transition: var(--transition); }
.category-card:hover .category-icon { background: var(--primary); color: white; }
.category-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; }
.category-card span { font-size: 0.8rem; color: var(--text-muted); }

/* =============================================
   GIG CARDS
   ============================================= */
.gigs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gig-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.gig-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.gig-card-image { display: block; height: 180px; overflow: hidden; position: relative; background: var(--bg-secondary); }
.gig-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gig-card:hover .gig-card-image img { transform: scale(1.05); }
.gig-no-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--text-light); }
.gig-badge { position: absolute; top: 10px; left: 10px; background: var(--secondary); color: white; font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-full); }
.gig-card-body { padding: 14px 14px 10px; }
.gig-seller { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.gig-seller img { width: 28px; height: 28px; border-radius: 50%; }
.gig-seller a { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); }
.gig-seller a:hover { color: var(--primary); }
.seller-rating { margin-left: auto; font-size: 0.75rem; color: var(--secondary); font-weight: 600; }
.seller-rating i { font-size: 0.7rem; }
.gig-title { font-size: 0.875rem; font-weight: 600; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gig-title a:hover { color: var(--primary); }
.gig-meta { display: flex; gap: 12px; }
.gig-rating, .gig-orders { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.gig-rating i { color: var(--secondary); }
.gig-card-footer { padding: 10px 14px 14px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); }
.gig-delivery { font-size: 0.75rem; color: var(--text-muted); }
.gig-delivery i { margin-right: 4px; }
.gig-price { font-size: 0.8rem; color: var(--text-muted); }
.gig-price strong { font-size: 1rem; font-weight: 700; color: var(--text); }

/* =============================================
   CUM FUNCTIONEAZA
   ============================================= */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card { text-align: center; padding: 32px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); position: relative; transition: var(--transition); }
.step-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.step-number { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; }
.step-icon { font-size: 2rem; color: var(--primary); margin-bottom: 14px; }
.step-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.step-card p { font-size: 0.875rem; color: var(--text-muted); }

/* =============================================
   CTA
   ============================================= */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.cta-box { text-align: center; padding: 60px 20px; }
.cta-box h2 { font-size: 2rem; font-weight: 800; color: white; margin-bottom: 12px; }
.cta-box p { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; }
.cta-actions .btn-primary { background: white; color: var(--primary); }
.cta-actions .btn-primary:hover { background: var(--bg-secondary); }
.cta-actions .btn-ghost { color: white; border: 2px solid rgba(255,255,255,0.4); }
.cta-actions .btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); margin: 12px 0 20px; line-height: 1.7; }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 36px; height: 36px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.875rem; transition: var(--transition); }
.social-links a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.footer-col h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: var(--text-muted); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .gigs-grid { grid-template-columns: repeat(3, 1fr); }
    .categories-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-image { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .gigs-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .navbar-search { display: none; }
    .mobile-menu-btn { display: block; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
    .gigs-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-actions { flex-direction: column; align-items: center; }
}

/* Gig Page */
.gig-page-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: flex-start; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i { font-size: 0.6rem; }
.gig-page-title { font-size: 1.6rem; font-weight: 800; line-height: 1.3; margin-bottom: 16px; }
.gig-seller-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.seller-name { font-weight: 700; font-size: 0.95rem; color: var(--primary); }
.stars { display: flex; align-items: center; gap: 4px; font-size: 0.8rem; }
.stars i { color: var(--border); font-size: 0.75rem; }
.stars i.active { color: var(--secondary); }
.stars span { color: var(--text-muted); }
.stars.small i { font-size: 0.65rem; }
.gig-views { font-size: 0.8rem; color: var(--text-muted); margin-left: auto; }
.gig-views i { margin-right: 4px; }
.gig-page-image { width: 100%; border-radius: var(--radius); margin-bottom: 28px; max-height: 420px; object-fit: cover; }
.gig-page-no-image { height: 250px; background: var(--bg-secondary); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text-light); font-size: 2rem; margin-bottom: 28px; }
.gig-page-no-image span { font-size: 0.9rem; }
.gig-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.gig-section h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.gig-description { font-size: 0.9rem; line-height: 1.8; color: var(--text); white-space: pre-wrap; }
.gig-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--bg-secondary); border: 1px solid var(--border); padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.8rem; color: var(--text-muted); transition: var(--transition); }
.tag:hover { border-color: var(--primary); color: var(--primary); }
.review-count { font-size: 0.875rem; font-weight: 400; color: var(--text-muted); }
.no-reviews { color: var(--text-muted); font-size: 0.875rem; }
.reviews-list { display: flex; flex-direction: column; gap: 20px; }
.review-item { padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: none; padding-bottom: 0; }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-header strong { font-size: 0.875rem; }
.review-item p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.ml-auto { margin-left: auto; color: var(--text-muted); font-size: 0.75rem; }

/* Order Box */
.order-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; position: sticky; top: 90px; }
.order-box-price { margin-bottom: 20px; }
.order-box-price span { font-size: 0.8rem; color: var(--text-muted); display: block; margin-bottom: 4px; }
.order-box-price strong { font-size: 2rem; font-weight: 800; }
.order-box-meta { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.order-meta-item { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; }
.order-meta-item i { color: var(--primary); width: 16px; }

/* Seller Card */
.seller-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.seller-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.seller-card-header a { font-size: 0.95rem; }
.seller-card-header a:hover { color: var(--primary); }
.seller-bio { font-size: 0.825rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.seller-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; margin-bottom: 16px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.seller-stats strong { display: block; font-size: 1rem; font-weight: 800; }
.seller-stats span { font-size: 0.75rem; color: var(--text-muted); }

.avatar-initials.medium { width: 40px; height: 40px; font-size: 0.85rem; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.avatar-initials.small { width: 32px; height: 32px; font-size: 0.75rem; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }

@media (max-width: 1024px) { .gig-page-grid { grid-template-columns: 1fr; } .order-box { position: static; } }

/* =============================================
   Search Page
   ============================================= */
.search-page { padding: 40px 0; }
.search-header { margin-bottom: 28px; }
.search-header h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 4px; }
.search-header p { color: var(--text-muted); }

.search-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: flex-start; }

/* Filters Sidebar */
.search-filters { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: sticky; top: 90px; }
.filter-section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.filter-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.filter-section h3 { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 12px; }
.filter-options { display: flex; flex-direction: column; gap: 8px; }
.filter-option { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.875rem; color: var(--text-muted); transition: var(--transition); }
.filter-option:hover { color: var(--primary); }
.filter-option input[type="radio"] { accent-color: var(--primary); }
.filter-option i { width: 14px; font-size: 0.8rem; }
.price-inputs { display: flex; align-items: center; gap: 6px; width: 100%; }
.price-inputs .input-prefix { flex: 1; min-width: 0; }
.price-inputs .input-prefix .form-control { padding: 8px 6px 8px 22px; font-size: 0.82rem; width: 100%; min-width: 0; }
.price-inputs > span { color: var(--text-muted); flex-shrink: 0; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 36px; }
.page-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 600; color: var(--text-muted); transition: var(--transition); }
.page-btn:hover, .page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* My Gigs Table */
.gigs-table-wrapper { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.gigs-table { width: 100%; border-collapse: collapse; }
.gigs-table th { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); padding: 14px 16px; text-align: left; background: var(--bg-secondary); border-bottom: 1px solid var(--border); }
.gigs-table td { padding: 14px 16px; font-size: 0.875rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.gigs-table tr:last-child td { border-bottom: none; }
.gigs-table tr:hover td { background: var(--bg-secondary); }
.gig-table-title { display: flex; align-items: center; gap: 12px; }
.gig-table-title img { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.gig-table-no-img { width: 56px; height: 40px; background: var(--bg-secondary); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--text-light); flex-shrink: 0; }
.gig-table-title a { font-weight: 600; font-size: 0.85rem; }
.gig-table-title a:hover { color: var(--primary); }

@media (max-width: 768px) {
    .search-layout { grid-template-columns: 1fr; }
    .search-filters { position: static; }
}

/* =============================================
   Orders CSS
   ============================================= */

/* Order page grid */
.order-page-grid { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: flex-start; }

/* Payment options */
.payment-options { display: flex; flex-direction: column; gap: 12px; }
.payment-option { border: 2px solid var(--border); border-radius: var(--radius); padding: 16px; cursor: pointer; transition: var(--transition); }
.payment-option input { display: none; }
.payment-option.active { border-color: var(--primary); background: rgba(99,102,241,0.04); }
.payment-option-content { display: flex; align-items: center; gap: 14px; }
.payment-option-content i { font-size: 1.4rem; color: var(--primary); }
.payment-option-content strong { display: block; font-size: 0.9rem; }
.payment-option-content span { font-size: 0.8rem; color: var(--text-muted); }
.payment-status { margin-left: auto; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-full); }
.payment-status.ok { background: rgba(16,185,129,0.1); color: var(--success); }
.payment-status.err { background: rgba(239,68,68,0.1); color: var(--danger); }
.requirements-hint { background: var(--bg-secondary); border-radius: var(--radius-sm); padding: 14px; border-left: 4px solid var(--primary); }
.requirements-hint strong { font-size: 0.875rem; margin-bottom: 6px; display: block; }
.requirements-hint p { font-size: 0.85rem; color: var(--text-muted); }

/* Order Summary Box */
.order-summary-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 90px; }
.order-summary-box h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.order-summary-gig { display: flex; gap: 12px; margin-bottom: 20px; }
.order-summary-gig img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.order-summary-gig p { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.order-summary-gig small { color: var(--text-muted); font-size: 0.8rem; }
.order-summary-lines { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.summary-line { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--text-muted); }
.summary-total { display: flex; justify-content: space-between; padding-top: 16px; border-top: 2px solid var(--border); font-size: 1.1rem; margin-bottom: 16px; }
.summary-total strong { font-size: 1.3rem; font-weight: 800; }
.summary-note { display: flex; gap: 8px; background: rgba(99,102,241,0.06); border-radius: var(--radius-sm); padding: 12px; font-size: 0.78rem; color: var(--text-muted); }
.summary-note i { color: var(--primary); flex-shrink: 0; margin-top: 2px; }

/* Order Detail */
.order-detail-grid { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: flex-start; }
.order-detail-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.order-detail-header h1 { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.order-detail-header p { color: var(--text-muted); font-size: 0.875rem; }
.order-gig-card { display: flex; gap: 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.order-gig-card img { width: 80px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.order-gig-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.order-gig-card h3 a:hover { color: var(--primary); }
.order-gig-card p { font-size: 0.8rem; color: var(--text-muted); }
.order-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.order-section h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.order-section p { font-size: 0.875rem; line-height: 1.7; color: var(--text-muted); }
.order-section.delivered { border-color: var(--success); }
.order-info-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: sticky; top: 90px; }
.order-info-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }
.order-info-list { display: flex; flex-direction: column; gap: 12px; }
.order-info-item { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.order-info-item span:first-child { color: var(--text-muted); }

/* Orders List */
.orders-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 2px solid var(--border); }
.orders-tabs .tab { padding: 10px 20px; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.orders-tabs .tab:hover { color: var(--primary); }
.orders-tabs .tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.status-filter { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-chip { padding: 6px 14px; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600; border: 1.5px solid var(--border); color: var(--text-muted); transition: var(--transition); }
.filter-chip:hover, .filter-chip.active { border-color: var(--primary); color: var(--primary); background: rgba(99,102,241,0.06); }
.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; align-items: center; gap: 16px; transition: var(--transition); }
.order-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.order-card-img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.order-card-no-img { width: 72px; height: 54px; background: var(--bg-secondary); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--text-light); flex-shrink: 0; }
.order-card-info { flex: 1; min-width: 0; }
.order-card-info h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-card-info h3 a:hover { color: var(--primary); }
.order-card-info p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 3px; }
.order-card-info small { font-size: 0.75rem; color: var(--text-light); }
.order-card-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.order-card-meta strong { font-size: 1rem; font-weight: 800; }

@media (max-width: 768px) {
    .order-page-grid, .order-detail-grid { grid-template-columns: 1fr; }
    .order-card { flex-wrap: wrap; }
}

/* =============================================
   MESSAGES / CHAT
   ============================================= */
.messages-layout { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 70px); overflow: hidden; }
.conv-list { border-right: 1px solid var(--border); overflow-y: auto; display: flex; flex-direction: column; background: var(--bg-card); }
.conv-list-header { padding: 20px; border-bottom: 1px solid var(--border); }
.conv-list-header h2 { font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.conv-empty { padding: 40px 20px; text-align: center; color: var(--text-muted); }
.conv-empty i { font-size: 2rem; margin-bottom: 12px; opacity: 0.4; }
.conv-empty p { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.conv-empty small { font-size: 0.8rem; }
.conv-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: var(--transition); text-decoration: none; color: var(--text); }
.conv-item:hover, .conv-item.active { background: rgba(99,102,241,0.06); }
.conv-item.active { border-left: 3px solid var(--primary); }
.conv-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.conv-info { flex: 1; min-width: 0; }
.conv-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.conv-name { font-weight: 600; font-size: 0.875rem; }
.conv-time { font-size: 0.72rem; color: var(--text-muted); }
.conv-preview { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--text-muted); }
.conv-badge { background: var(--primary); color: white; font-size: 0.65rem; font-weight: 700; padding: 2px 6px; border-radius: 999px; min-width: 18px; text-align: center; }

.chat-window { display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
.chat-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: var(--bg-card); }
.chat-header-user { display: flex; align-items: center; gap: 12px; }
.chat-order-label { font-size: 0.78rem; color: var(--text-muted); display: block; margin-top: 2px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); gap: 12px; text-align: center; padding: 40px; }
.chat-empty.full { min-height: 60vh; }
.chat-empty i { font-size: 3rem; opacity: 0.25; }
.chat-date-divider { text-align: center; position: relative; margin: 8px 0; }
.chat-date-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.chat-date-divider span { position: relative; background: var(--bg); padding: 0 12px; font-size: 0.72rem; color: var(--text-muted); }
.chat-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 70%; }
.chat-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg.theirs { align-self: flex-start; }
.msg-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.65rem; flex-shrink: 0; }
.msg-bubble { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 18px 18px 18px 4px; padding: 10px 14px; max-width: 100%; }
.chat-msg.mine .msg-bubble { background: var(--primary); color: white; border-color: var(--primary); border-radius: 18px 18px 4px 18px; }
.msg-bubble p { font-size: 0.875rem; line-height: 1.5; margin: 0; }
.msg-time { font-size: 0.68rem; opacity: 0.6; display: block; margin-top: 4px; text-align: right; }
.chat-input-area { padding: 16px 20px; border-top: 1px solid var(--border); background: var(--bg-card); }
.chat-form { display: flex; gap: 10px; align-items: flex-end; }
.chat-input { flex: 1; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 24px; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 0.9rem; resize: none; outline: none; transition: var(--transition); line-height: 1.4; max-height: 120px; overflow-y: auto; }
.chat-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.chat-send-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: var(--transition); flex-shrink: 0; }
.chat-send-btn:hover { background: var(--primary-dark); transform: scale(1.05); }

/* =============================================
   WALLET
   ============================================= */
.wallet-stats { display: grid; grid-template-columns: 1fr repeat(3, auto); gap: 16px; margin-bottom: 28px; align-items: center; }
.wallet-balance-card { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); border-radius: var(--radius); padding: 24px; display: flex; align-items: center; gap: 16px; color: white; }
.wallet-balance-icon { width: 52px; height: 52px; background: rgba(255,255,255,0.15); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.wallet-balance-label { font-size: 0.8rem; opacity: 0.85; display: block; margin-bottom: 4px; }
.wallet-balance-amount { font-size: 2rem; font-weight: 800; display: block; }
.wallet-stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; display: flex; align-items: center; gap: 14px; min-width: 160px; }
.wallet-stat-card i { font-size: 1.3rem; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); display: block; margin-bottom: 2px; }
.stat-value { font-size: 1.1rem; font-weight: 700; }
.wallet-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.wallet-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.wallet-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.wallet-card-icon { width: 42px; height: 42px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.wallet-card-icon.green { background: rgba(16,185,129,0.1); color: var(--success); }
.wallet-card-icon.red { background: rgba(239,68,68,0.1); color: var(--danger); }
.wallet-card-header h3 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.wallet-card-header p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.quick-amounts { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.quick-amount-btn { padding: 6px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-full); background: var(--bg); color: var(--text); font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: var(--transition); font-family: var(--font); }
.quick-amount-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(99,102,241,0.05); }
.payment-methods-small { display: flex; gap: 8px; margin-bottom: 12px; }
.pm-option { padding: 8px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; gap: 6px; transition: var(--transition); color: var(--text-muted); }
.pm-option.active { border-color: var(--primary); color: var(--primary); background: rgba(99,102,241,0.05); }
.demo-notice { background: rgba(59,130,246,0.08); color: var(--info); border: 1px solid rgba(59,130,246,0.2); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 0.78rem; display: flex; align-items: center; gap: 6px; }
.wallet-history { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.wallet-history-header { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.wallet-history-header h2 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.transactions-list { padding: 8px 0; }
.tx-item { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-bottom: 1px solid var(--border); transition: var(--transition); }
.tx-item:last-child { border-bottom: none; }
.tx-item:hover { background: var(--bg-secondary); }
.tx-icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.tx-info { flex: 1; min-width: 0; }
.tx-desc { font-size: 0.875rem; font-weight: 600; display: block; }
.tx-date { font-size: 0.75rem; color: var(--text-muted); }
.tx-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tx-amount { font-size: 0.95rem; font-weight: 700; }
.tx-amount.credit { color: var(--success); }
.tx-amount.debit { color: var(--danger); }
.tx-status { font-size: 0.7rem; padding: 2px 8px; border-radius: 999px; font-weight: 600; }

/* =============================================
   PROFILE PAGE
   ============================================= */
.profile-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.profile-avatar-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px; text-align: center; margin-bottom: 16px; }
.profile-avatar-img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; border: 3px solid var(--border); }
.profile-avatar-initials { width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; font-size: 2rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.profile-avatar-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.profile-country, .profile-member-since { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.profile-stats-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.profile-stats-card h4 { font-size: 0.875rem; font-weight: 700; margin-bottom: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.profile-stat-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.profile-stat-row:last-child { border-bottom: none; }
.profile-stat-row span { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.profile-tabs { display: flex; gap: 4px; margin-bottom: 16px; background: var(--bg-secondary); padding: 4px; border-radius: var(--radius-sm); }
.profile-tab { flex: 1; padding: 10px; border: none; background: transparent; border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font); font-size: 0.875rem; font-weight: 600; color: var(--text-muted); transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 6px; }
.profile-tab.active { background: var(--bg-card); color: var(--primary); box-shadow: var(--shadow-sm); }
.avatar-upload-area { display: flex; align-items: center; gap: 16px; }
.avatar-upload-placeholder { width: 80px; height: 80px; border-radius: 50%; border: 2px dashed var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted); font-size: 0.7rem; gap: 4px; }
.avatar-upload-placeholder i { font-size: 1.3rem; }
.avatar-preview-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.avatar-upload-info { display: flex; flex-direction: column; gap: 8px; }
.avatar-upload-info small { font-size: 0.75rem; color: var(--text-muted); }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.875rem; }

/* =============================================
   PUBLIC USER PROFILE (user.php)
   ============================================= */
.user-profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.user-profile-card, .user-stats-card, .user-bio-card, .user-skills-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; text-align: center; }
.user-profile-avatar-img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; border: 3px solid var(--border); }
.user-profile-avatar-initials { width: 100px; height: 100px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; font-size: 2.2rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.user-profile-card h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.user-fullname { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 8px; }
.user-rating { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 10px 0; font-size: 0.875rem; color: var(--text-muted); }
.user-meta { margin: 12px 0; text-align: left; }
.user-meta-item { font-size: 0.825rem; color: var(--text-muted); padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.user-meta-item i { width: 14px; color: var(--primary); }
.user-social { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.user-social-btn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: var(--transition); font-size: 0.9rem; }
.user-social-btn:hover { border-color: var(--primary); color: var(--primary); }
.user-stats-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; padding: 16px; }
.user-stat { padding: 8px 4px; }
.user-stat-value { font-size: 1.4rem; font-weight: 800; display: block; color: var(--primary); }
.user-stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.user-bio-card, .user-skills-card { text-align: left; }
.user-bio-card h4, .user-skills-card h4 { font-size: 0.875rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.user-bio-card p { font-size: 0.875rem; line-height: 1.7; color: var(--text-muted); }
.skills-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tag { padding: 4px 12px; background: rgba(99,102,241,0.08); color: var(--primary); border-radius: var(--radius-full); font-size: 0.78rem; font-weight: 600; }
.user-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.reviews-list { display: flex; flex-direction: column; gap: 12px; }
.review-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: white; font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.review-meta { flex: 1; }
.review-meta strong { font-size: 0.875rem; display: block; }
.review-stars { margin-top: 2px; }
.review-date { font-size: 0.75rem; color: var(--text-muted); }
.review-text { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 6px; }
.review-gig { font-size: 0.78rem; color: var(--text-light); }
.review-gig a:hover { color: var(--primary); }

/* Responsive */
@media (max-width: 992px) {
    .messages-layout { grid-template-columns: 260px 1fr; }
    .wallet-stats { grid-template-columns: 1fr 1fr; }
    .wallet-balance-card { grid-column: 1 / -1; }
    .profile-grid, .user-profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .messages-layout { grid-template-columns: 1fr; }
    .conv-list { max-height: 300px; border-right: none; border-bottom: 1px solid var(--border); }
    .wallet-actions-grid { grid-template-columns: 1fr; }
    .wallet-stats { grid-template-columns: 1fr; }
}
