:root {
    --primary-blue: #0f172a;
    --accent-gold: #d4af37;
    --gold-light: #f1c40f;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Auth Page Split Card Style (v10) */
.auth-page-v10 {
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.split-card {
    background: var(--white);
    width: 100%;
    max-width: 900px;
    min-height: 550px;
    border-radius: 24px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.split-card.narrow { max-width: 800px; }

/* Right Side: Info Panel */
.card-info-panel {
    flex: 1;
    background: var(--primary-blue);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    position: relative;
    border-left: 4px solid var(--accent-gold);
}

.card-info-panel .nav-logo {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-info-panel .nav-logo i { color: var(--accent-gold); }

.card-info-panel h2 { font-size: 28px; font-weight: 800; line-height: 1.3; margin-bottom: 15px; }
.card-info-panel h2 span { color: var(--accent-gold); }
.card-info-panel p { font-size: 14px; color: rgba(255, 255, 255, 0.7); margin-bottom: 30px; }

.card-system-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.v-badge { font-size: 11px; background: rgba(212, 175, 55, 0.1); color: var(--accent-gold); padding: 4px 12px; border-radius: 50px; border: 1px solid rgba(212, 175, 55, 0.2); }

/* Left Side: Form Panel */
.card-form-panel {
    flex: 1.2;
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header-v10 { margin-bottom: 30px; }
.form-header-v10 h3 { font-size: 22px; font-weight: 800; color: var(--primary-blue); }
.form-header-v10 p { font-size: 13px; color: var(--text-muted); }

/* Small fonts and inputs */
.auth-form .form-group { margin-bottom: 15px; }
.auth-form label { font-size: 12px; font-weight: 700; color: var(--primary-blue); margin-bottom: 5px; display: block; }
.auth-form input, .auth-form select, .auth-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
}

.input-icon-wrapper { position: relative; }
.input-icon-wrapper i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--accent-gold); font-size: 14px; }
.input-icon-wrapper input { padding-right: 38px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn-primary { background: var(--accent-gold); color: var(--primary-blue); border: none; padding: 12px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 14px; width: 100%; }
.btn-primary:hover { background: var(--gold-light); }

.auth-divider { text-align: center; margin: 20px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: #f1f5f9; }
.auth-divider span { background: var(--white); padding: 0 10px; position: relative; font-size: 11px; color: var(--text-muted); }

.social-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-social { background: var(--white); border: 1px solid #e2e8f0; padding: 8px; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }

.auth-bottom { text-align: center; margin-top: 20px; font-size: 12px; color: var(--text-muted); }
.auth-bottom a { color: var(--accent-gold); font-weight: 700; text-decoration: none; }

/* Role Selection v10 */
.role-options-v10 { display: flex; flex-direction: column; gap: 12px; }
.role-btn-v10 {
    display: flex; align-items: center; gap: 15px; padding: 15px;
    border: 2px solid #f1f5f9; border-radius: 15px; text-decoration: none;
    transition: var(--transition);
}
.role-btn-v10:hover { border-color: var(--accent-gold); background: #fffcf0; }
.role-btn-v10 .icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: white; }
.role-btn-v10 h4 { font-size: 14px; color: var(--primary-blue); }
.role-btn-v10 p { font-size: 11px; color: var(--text-muted); }

/* Mobile Adjustments v10 */
@media (max-width: 850px) {
    .split-card { flex-direction: column; max-width: 450px; min-height: auto; }
    .card-info-panel { padding: 30px; border-left: none; border-bottom: 4px solid var(--accent-gold); }
    .card-info-panel h2 { font-size: 22px; }
    .card-info-panel p { display: none; }
    .card-form-panel { padding: 30px; }
    .form-grid { grid-template-columns: 1fr; }
}

/* Common Nav */
.nav { background-color: var(--primary-blue); padding: 15px 0; position: fixed; width: 100%; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { color: var(--white); font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-logo i { color: var(--accent-gold); }

/* Dashboard & Client Panel Styles v11 */
.dashboard-body { background: #f1f5f9; min-height: 100vh; }

.dashboard-wrapper {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    min-height: 100vh;
}

/* Sidebar */
.dash-sidebar {
    width: 240px;
    background: var(--primary-blue);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1000;
}

.profile-section { padding: 30px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); text-align: center; }
.avatar { width: 60px; height: 60px; background: var(--accent-gold); color: var(--primary-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; font-weight: 800; font-size: 20px; }
.user-info h3 { font-size: 16px; margin-bottom: 5px; }
.user-info p { font-size: 12px; color: var(--accent-gold); }
.company-tag { font-size: 11px; color: rgba(255,255,255,0.5); display: block; margin-top: 5px; }

.dash-nav { flex: 1; padding: 20px 0; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 25px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; transition: var(--transition); border-right: 3px solid transparent; }
.nav-item:hover, .nav-item.active { color: var(--white); background: rgba(255,255,255,0.05); border-right-color: var(--accent-gold); }
.nav-item i { font-size: 18px; }
.nav-item .badge { margin-right: auto; font-size: 10px; background: #ef4444; color: white; padding: 2px 6px; border-radius: 50px; }
.nav-item .badge.gold { background: var(--accent-gold); color: var(--primary-blue); }

.sidebar-footer { padding: 20px; border-top: 1px solid rgba(255,255,255,0.05); }
.logout-btn { color: #f87171; text-decoration: none; font-size: 14px; display: flex; align-items: center; gap: 10px; }

/* Main Content */
.dash-main { flex: 1; min-width: 0; padding: 20px; }
.main-header { display: flex; justify-content: space-between; align-items: center; background: var(--white); padding: 15px 25px; border-radius: 15px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); margin-bottom: 25px; }
.header-search { position: relative; flex: 1; max-width: 400px; }
.header-search i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.header-search input { width: 100%; padding: 10px 45px; border: 1px solid #f1f5f9; border-radius: 10px; background: #f8fafc; font-size: 13px; outline: none; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.btn-post-project { background: var(--primary-blue); color: var(--white); border: none; padding: 10px 20px; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.icon-btn { font-size: 20px; color: var(--text-muted); cursor: pointer; position: relative; }
.icon-btn.dot::after { content: ''; position: absolute; top: 0; right: 0; width: 8px; height: 8px; background: #ef4444; border-radius: 50%; border: 2px solid var(--white); }

/* Feed */
.feed-content { max-width: 800px; margin: 0 auto; }
.quick-post-card { background: var(--white); padding: 20px; border-radius: 15px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); margin-bottom: 20px; }
.qp-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.mini-avatar { width: 40px; height: 40px; background: #e2e8f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.mini-avatar.gold { background: var(--accent-gold); color: var(--primary-blue); }
.qp-input { flex: 1; background: #f8fafc; padding: 12px 20px; border-radius: 10px; color: var(--text-muted); font-size: 13px; cursor: pointer; }
.qp-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f1f5f9; padding-top: 15px; }
.qp-tools { display: flex; gap: 15px; }
.qp-tools button { background: none; border: none; color: var(--text-muted); font-size: 12px; display: flex; align-items: center; gap: 5px; cursor: pointer; }
.qp-tools button i { color: var(--accent-gold); font-size: 16px; }
.btn-primary-sm { background: var(--accent-gold); color: var(--primary-blue); border: none; padding: 8px 20px; border-radius: 8px; font-weight: 700; font-size: 12px; cursor: pointer; }

/* Filters */
.feed-filters { display: flex; gap: 10px; margin-bottom: 20px; align-items: center; flex-wrap: wrap; }
.filter-tag { padding: 6px 15px; border-radius: 50px; border: 1px solid #e2e8f0; background: var(--white); font-size: 12px; cursor: pointer; transition: var(--transition); }
.filter-tag.active { background: var(--primary-blue); color: var(--white); border-color: var(--primary-blue); }
.sort-select { margin-right: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; }
.sort-select select { border: 1px solid #e2e8f0; padding: 4px 8px; border-radius: 6px; outline: none; }

/* Post Card */
.post-card { background: var(--white); padding: 25px; border-radius: 15px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); border: 1px solid transparent; }
.post-card.highlighted { border-color: var(--accent-gold); background: #fffdf5; }
.post-header { display: flex; justify-content: space-between; margin-bottom: 15px; }
.post-user { display: flex; gap: 12px; }
.user-meta h4 { font-size: 14px; margin-bottom: 2px; }
.user-meta h4 span { color: var(--accent-gold); font-size: 11px; }
.user-meta p { font-size: 11px; color: var(--text-muted); }
.badge-tag { font-size: 10px; padding: 3px 10px; border-radius: 50px; font-weight: 700; margin-right: 5px; }
.badge-tag.gold { background: rgba(212, 175, 55, 0.1); color: var(--accent-gold); }
.badge-tag.blue { background: rgba(15, 23, 42, 0.05); color: var(--primary-blue); }

.post-title { font-size: 16px; font-weight: 800; margin-bottom: 10px; color: var(--primary-blue); }
.post-text { font-size: 13px; color: var(--text-dark); margin-bottom: 15px; }
.post-images { display: flex; gap: 10px; margin-bottom: 15px; }
.p-img { flex: 1; height: 80px; background: #f1f5f9; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #cbd5e1; }
.p-img.more { background: var(--primary-blue); color: var(--white); font-size: 14px; }

.post-skills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.skill-tag { font-size: 10px; background: #f8fafc; border: 1px solid #e2e8f0; padding: 3px 10px; border-radius: 50px; color: var(--text-muted); }
.post-price { border-top: 1px solid #f1f5f9; padding-top: 15px; margin-bottom: 15px; }
.post-price .amount { font-size: 16px; font-weight: 800; color: #10b981; }
.post-price .period { font-size: 11px; color: var(--text-muted); }

.post-footer { display: flex; justify-content: space-between; align-items: center; }
.post-stats { display: flex; gap: 15px; font-size: 11px; color: var(--text-muted); }
.post-stats span { display: flex; align-items: center; gap: 5px; }
.post-btns { display: flex; gap: 10px; }
.btn-outline-sm { background: none; border: 1px solid #e2e8f0; padding: 6px 15px; border-radius: 8px; font-size: 12px; cursor: pointer; }
.btn-icon { background: none; border: 1px solid #e2e8f0; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); cursor: pointer; }

/* Right Panel */
.dash-right-panel { width: 280px; padding: 20px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.rp-card { background: var(--white); padding: 20px; border-radius: 15px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.rp-title { font-size: 12px; font-weight: 800; color: var(--primary-blue); text-transform: uppercase; margin-bottom: 15px; border-bottom: 1px solid #f1f5f9; padding-bottom: 10px; }
.stat-item { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 12px; }
.stat-item i { color: var(--accent-gold); }
.stat-item .val { font-weight: 800; color: var(--primary-blue); }

.progress-item { margin-bottom: 15px; }
.p-info { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 5px; }
.p-bar { height: 6px; background: #f1f5f9; border-radius: 50px; overflow: hidden; }
.p-fill { height: 100%; background: var(--accent-gold); border-radius: 50px; }

.mini-offer { display: flex; gap: 12px; margin-bottom: 12px; align-items: center; }
.mini-ava { width: 32px; height: 32px; border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.mini-ava.gold { background: var(--accent-gold); }
.offer-details h5 { font-size: 12px; margin-bottom: 2px; }
.offer-details p { font-size: 10px; color: #10b981; font-weight: 700; }

/* Mobile Adjustments */
.mobile-header { display: none; background: var(--primary-blue); color: var(--white); padding: 15px 20px; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1100; }
.menu-toggle { font-size: 24px; cursor: pointer; }

@media (max-width: 1200px) {
    .dash-right-panel { display: none; }
}

@media (max-width: 992px) {
    .dash-sidebar { position: fixed; right: -240px; transition: var(--transition); }
    .dash-sidebar.active { right: 0; }
    .mobile-header { display: flex; }
    .dash-main { padding: 15px; }
    .main-header { display: none; }
}

@media (max-width: 576px) {
    .post-header { flex-direction: column; gap: 10px; }
    .post-footer { flex-direction: column; gap: 15px; align-items: flex-start; }
    .post-btns { width: 100%; justify-content: space-between; }
    .btn-primary-sm { flex: 1; }
}
