/* Mostaql Design System - Figma Tokens */
:root {
    --primary: #0D9488;
    --primary-dark: #0F766E;
    --cta: #0284C7;
    --cta-dark: #0369A1;
    --dark: #0F172A;
    --muted: #475569;
    --muted-light: #94A3B8;
    --border: #CBD5E1;
    --border-light: #E2E8F0;
    --bg: #F8FAFC;
    --bg-alt: #F1F5F9;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --teal-light: #CCFBF1;
    --white: #FFFFFF;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.1);
    --max-width: 1440px;
    --content-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    color: var(--dark);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
}

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

.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

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

.btn-cta { background: var(--cta); color: var(--white); }
.btn-cta:hover { background: var(--cta-dark); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--dark);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--teal-light); }

.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* Navbar */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.navbar-start {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    min-width: 0;
}

.navbar-platforms-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    white-space: nowrap;
}
.navbar-platforms-link:hover { color: var(--primary); border-color: var(--primary); }
.navbar-khamsat-link {
    color: #7C3AED;
    border-color: #DDD6FE;
}
.navbar-khamsat-link:hover { color: #5B21B6; border-color: #7C3AED; }

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 28px;
    font-weight: 900;
    color: var(--dark);
    flex-shrink: 0;
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.navbar-nav a {
    padding: 10px 14px;
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    white-space: nowrap;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--primary);
    background: var(--teal-light);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.navbar-form { display: inline; margin: 0; }

.navbar-search-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.navbar-search-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--teal-light);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--teal-light) 0%, var(--white) 50%, var(--bg) 100%);
    padding: 80px 0 100px;
}

.hero-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.stat-item strong { display: block; font-size: 24px; color: var(--primary); }
.stat-item span { font-size: 13px; color: var(--muted); }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--white); }
.section-bg { background: var(--bg-alt); }

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 17px;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Category card */
.category-card {
    text-align: center;
    padding: 32px 24px;
    cursor: pointer;
}

.category-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.category-card span {
    font-size: 14px;
    color: var(--muted-light);
}

/* Project card */
.project-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--muted);
}

.budget { color: var(--primary); font-weight: 600; }

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-open { background: var(--teal-light); color: var(--primary); }
.badge-progress { background: #DBEAFE; color: var(--cta); }
.badge-completed { background: #D1FAE5; color: var(--success); }

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-item {
    text-align: center;
    padding: 32px 24px;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-item h3 { font-size: 18px; margin-bottom: 8px; }
.step-item p { color: var(--muted); font-size: 15px; }

/* Guarantees */
.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.guarantee-item {
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.guarantee-item .icon {
    width: 48px;
    height: 48px;
    background: var(--teal-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.guarantee-item h3 { font-size: 18px; margin-bottom: 8px; }
.guarantee-item p { color: var(--muted); font-size: 15px; }

/* Testimonials */
.testimonial-card {
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.testimonial-text {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.avatar-lg { width: 80px; height: 80px; font-size: 28px; }

.author-info strong { display: block; font-size: 15px; }
.author-info span { font-size: 13px; color: var(--muted-light); }

.rating { color: var(--warning); font-size: 14px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--muted);
    font-size: 15px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--muted-light);
    padding: 64px 0 32px;
}

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

.footer-brand .logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p { font-size: 14px; line-height: 1.8; }

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

/* Page header */
.page-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 40px 0;
}

.page-header h1 { font-size: 32px; font-weight: 700; }
.page-header p { color: var(--muted); margin-top: 8px; }

/* Forms */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

textarea.form-control { min-height: 120px; resize: vertical; }

.form-error { color: var(--danger); font-size: 13px; margin-top: 4px; }

/* Auth Layout */
.auth-body { background: var(--bg); min-height: 100vh; }

.auth-floating-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
}

.auth-floating-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    height: 89px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-hsoub-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-hsoub-mark {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--danger);
    position: relative;
}

.auth-hsoub-mark::after {
    content: "";
    position: absolute;
    inset: 4px;
    background: var(--white);
    clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
}

.auth-hsoub-text {
    font-size: 22px;
    font-weight: 900;
    color: var(--dark);
}

.auth-shell {
    min-height: calc(100vh - 89px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px 60px;
}

.auth-alert {
    width: 100%;
    max-width: 500px;
    margin-bottom: 16px;
}

.login-card,
.register-card {
    width: 100%;
    max-width: 500px;
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--border-light);
}

.login-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.login-logo-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    flex-shrink: 0;
}

.login-header-text h1 {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 4px;
    line-height: 1.4;
}

.login-domain {
    font-size: 12px;
    color: var(--muted-light);
}

.register-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.register-card-header h1 {
    font-size: 22px;
    font-weight: 900;
}

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

.social-btn {
    width: 100%;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.2s;
}

.social-btn:hover {
    border-color: var(--primary);
    background: var(--bg);
}

.social-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.social-icon-google {
    background: conic-gradient(from 180deg, #EA4335, #FBBC05, #34A853, #4285F4, #EA4335);
}

.social-icon-microsoft {
    background: linear-gradient(135deg, #F25022 25%, #7FBA00 25% 50%, #00A4EF 50% 75%, #FFB900 75%);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: var(--muted-light);
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.btn-login-submit,
.btn-register-submit {
    width: 100%;
    height: 54px;
    font-size: 14px;
    font-weight: 900;
    margin-top: 8px;
}

.login-support-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    text-align: center;
}

.login-support-links a:first-child {
    font-size: 12px;
    font-weight: 700;
    color: var(--dark);
}

.login-support-links a:not(:first-child) {
    font-size: 12px;
    color: var(--muted-light);
}

.login-support-links a:hover { color: var(--primary); }

.login-security {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 12px;
    color: var(--muted-light);
}

.security-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--success);
    flex-shrink: 0;
}

.role-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.role-card input { display: none; }

.role-card-inner {
    padding: 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    height: 100%;
}

.role-card-inner strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 6px;
}

.role-card-inner p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
}

.role-card input:checked + .role-card-inner {
    border-color: var(--primary);
    background: var(--teal-light);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
    cursor: pointer;
}

.checkbox-label a { color: var(--primary); font-weight: 600; }

.register-login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 700;
}

.register-login-link a { color: var(--primary); }

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
}

.stat-card .label { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.stat-card .value { font-size: 32px; font-weight: 700; color: var(--primary); }

.sidebar-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: 40px 0;
}

.sidebar {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 16px;
    height: fit-content;
    position: sticky;
    top: 96px;
}

.sidebar a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar a:hover, .sidebar a.active {
    background: var(--teal-light);
    color: var(--primary);
}

/* Tables */
.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

th, td {
    padding: 14px 20px;
    text-align: right;
    border-bottom: 1px solid var(--border-light);
}

th {
    background: var(--bg);
    font-weight: 600;
    font-size: 14px;
    color: var(--muted);
}

/* Freelancer profile */
.profile-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 40px 0;
}

.profile-header-inner {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.profile-info h1 { font-size: 28px; margin-bottom: 4px; }
.profile-info .title { color: var(--muted); margin-bottom: 16px; }

.profile-stats {
    display: flex;
    gap: 32px;
    margin-top: 16px;
}

.profile-stat strong { display: block; font-size: 20px; color: var(--primary); }
.profile-stat span { font-size: 13px; color: var(--muted); }

.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--success);
}

.online-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

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

.pagination a, .pagination span {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.pagination .active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Alert */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success { background: #D1FAE5; color: #065F46; }
.alert-error { background: #FEE2E2; color: #991B1B; }

/* Skills tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.tag {
    padding: 4px 12px;
    background: var(--bg-alt);
    border-radius: 20px;
    font-size: 13px;
    color: var(--muted);
}

/* Enterprise banner */
.enterprise-banner {
    background: linear-gradient(135deg, var(--dark) 0%, #1E293B 100%);
    border-radius: var(--radius);
    padding: 48px;
    color: var(--white);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}

.enterprise-banner h3 { font-size: 24px; margin-bottom: 12px; }
.enterprise-banner p { opacity: 0.8; font-size: 15px; }

/* 404 */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.error-page h1 { font-size: 120px; color: var(--primary); font-weight: 800; line-height: 1; }
.error-page h2 { font-size: 28px; margin: 16px 0; }
.error-page p { color: var(--muted); margin-bottom: 32px; }

/* Filter bar */
.filter-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-bar .form-control { width: auto; min-width: 200px; }

/* Message list */
.message-list { display: flex; flex-direction: column; gap: 12px; }

.message-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.message-item:hover { border-color: var(--primary); }

.message-preview { flex: 1; }
.message-preview strong { display: block; margin-bottom: 4px; }
.message-preview span { font-size: 14px; color: var(--muted); }

/* Landing — Figma fidelity extras */
.hero {
    background: linear-gradient(180deg, #CCFBF1 0%, #F8FAFC 55%, #F8FAFC 100%);
    padding: 80px 0 96px;
    min-height: 520px;
}
.hero-inner { display: block; max-width: 800px; margin: 0 auto; text-align: center; }
.hero-content h1 {
    font-size: 44px;
    font-weight: 900;
    line-height: 1.35;
    color: var(--dark);
    margin-bottom: 18px;
}
.hero-sub { font-size: 18px; color: var(--muted); margin-bottom: 28px; }
.hero-search {
    display: flex;
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    box-shadow: var(--shadow-md);
}
.hero-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    padding: 10px 14px;
    background: transparent;
}
.hero-freelancer-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
}
.section-header-start { text-align: right; max-width: 720px; }
.section-header-start h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.section-header-start p { font-size: 16px; color: var(--muted); }
.how-grid {
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 40px;
}
.video-placeholder {
    height: 340px;
    background: linear-gradient(135deg, #0F172A, #115E59);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.play-btn {
    width: 72px; height: 72px; border-radius: 50%;
    background: rgba(255,255,255,0.2); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.how-steps { display: flex; flex-direction: column; gap: 28px; }
.step-label {
    display: inline-block;
    font-size: 12px; font-weight: 800;
    color: var(--primary); background: var(--teal-light);
    padding: 4px 10px; border-radius: 6px; margin-bottom: 8px;
}
.how-step h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.how-step p { font-size: 14px; color: var(--muted); }
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.benefit-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 28px 24px;
    min-height: 160px;
}
.benefit-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.benefit-card p { font-size: 14px; color: var(--muted); }
.categories-figma {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 36px;
}
.cat-tile {
    display: flex; align-items: center;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 28px 24px;
    font-weight: 800; font-size: 16px;
    transition: border-color .2s, box-shadow .2s;
}
.cat-tile:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.enterprise-figma {
    display: grid;
    grid-template-columns: 540px 1fr;
    gap: 64px;
    align-items: center;
}
.enterprise-mock {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
}
.mock-bar { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 16px; }
.mock-row {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 12px; margin-bottom: 10px;
    background: var(--bg-alt); border-radius: 8px; font-weight: 700; font-size: 14px;
}
.mock-row small { margin-right: auto; color: var(--muted-light); font-weight: 400; }
.eyebrow {
    display: inline-block; font-size: 13px; font-weight: 700;
    color: var(--primary); background: var(--teal-light);
    padding: 6px 12px; border-radius: 8px; margin-bottom: 12px;
}
.enterprise-copy h2 { font-size: 36px; font-weight: 900; margin-bottom: 14px; }
.enterprise-copy > p { color: var(--muted); margin-bottom: 20px; }
.enterprise-list { margin-bottom: 24px; }
.enterprise-list li {
    position: relative; padding-right: 22px; margin-bottom: 12px;
    font-size: 15px; color: var(--dark);
}
.enterprise-list li::before {
    content: "✓"; position: absolute; right: 0; color: var(--primary); font-weight: 800;
}
.testimonials-figma {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 36px;
}
.faq-narrow { max-width: 800px; }
.faq-item .faq-question { font-weight: 800; font-size: 16px; }
.faq-item .faq-answer { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }
.badge-done { background: #D1FAE5; color: #065F46; }
.social-row { display: flex; gap: 10px; margin: 12px 0 16px; }
.social-row a {
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
}
.payment-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pay-badge {
    background: rgba(255,255,255,0.12); padding: 4px 8px; border-radius: 4px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
}

/* Page Shell — 908 + 340 layout */
.page-shell {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 40px 64px;
    display: grid;
    grid-template-columns: minmax(0, 908px) 340px;
    gap: 32px;
    align-items: start;
}

.page-shell-single { grid-template-columns: minmax(0, 908px) 340px; }
.page-shell-narrow { grid-template-columns: 1fr; max-width: 960px; }
.page-shell-create { grid-template-columns: 340px minmax(0, 908px); }
.content-908 { min-width: 0; }
.content-full { min-width: 0; width: 100%; }
.sidebar-340 { min-width: 0; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--muted-light); }
.breadcrumb-current { color: var(--dark); font-weight: 700; }

.page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.page-heading {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.page-hero-compact {
    margin-bottom: 28px;
}

.page-hero-compact h1 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 10px;
}

.page-hero-compact p {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.7;
}

.sort-select {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    background: var(--white);
    color: var(--dark);
}

.panel-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.panel-title {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 20px;
}

.panel-title-sm { font-size: 16px; font-weight: 900; margin-bottom: 16px; }
.panel-title-lg { font-size: 22px; font-weight: 900; margin-bottom: 20px; }

/* Dashboard */
.dashboard-welcome {
    margin-bottom: 28px;
}

.dashboard-welcome h1 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 6px;
}

.dashboard-welcome p {
    font-size: 14px;
    color: var(--muted);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px 24px;
}

.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-label { font-size: 13px; color: var(--muted); }
.stat-refresh { font-size: 12px; font-weight: 700; color: var(--primary); }
.stat-value { font-size: 22px; font-weight: 900; color: var(--dark); }

.projects-table { border: none; border-radius: 0; }
.projects-table th { background: transparent; border-bottom: 1px solid var(--border-light); font-size: 13px; }
.projects-table td { font-size: 13px; vertical-align: middle; }
.td-title { font-weight: 800; font-size: 14px !important; }
.td-budget { font-weight: 700; color: var(--dark); }
.table-link { font-size: 12px; font-weight: 700; color: var(--primary); }
.badge-warning { background: #FEF3C7; color: #B45309; }
.badge-danger { background: #FEE2E2; color: #991B1B; }

.timeline { display: flex; flex-direction: column; gap: 0; }

.timeline-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.timeline-item:last-child { border-bottom: none; }

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.timeline-dot-primary { background: var(--primary); }
.timeline-dot-success { background: var(--success); }
.timeline-dot-cta { background: var(--cta); }
.timeline-dot-warning { background: var(--warning); }

.timeline-meta { font-size: 12px; color: var(--muted-light); margin-bottom: 4px; }
.timeline-content strong { display: block; font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.timeline-content p { font-size: 13px; color: var(--muted); line-height: 1.6; }

.quick-actions { position: sticky; top: 96px; }
.quick-action-link {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.quick-action-link:hover {
    border-color: var(--primary);
    background: var(--teal-light);
    color: var(--primary);
}

/* Project list cards */
.project-row-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    min-height: 170px;
    transition: all 0.2s;
}

.project-row-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-md);
}

.project-row-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.project-row-top h2 {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
}

.project-row-top h2 a:hover { color: var(--primary); }

.similar-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.project-row-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--muted-light);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.owner-name { font-weight: 700; color: var(--muted); }
.project-row-desc { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 12px; }

.project-row-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.project-budget {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.similar-link-bottom { font-size: 12px; font-weight: 700; color: var(--primary); }

/* Filter panel */
.filter-panel {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: 96px;
}

.filter-title {
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 20px;
}

.filter-group { margin-bottom: 24px; }
.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.filter-list { display: flex; flex-direction: column; gap: 8px; }

.filter-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
}

.filter-list a:hover { color: var(--primary); }
.filter-count { font-size: 12px; font-weight: 600; color: var(--muted-light); }

.filter-check-list { display: flex; flex-direction: column; gap: 10px; }
.filter-check-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    margin: 0;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.filter-tabs a {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    border: 1px solid var(--border-light);
    background: var(--white);
    transition: all 0.2s;
}

.filter-tabs a:hover,
.filter-tabs a.active {
    background: var(--teal-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Project details */
.project-detail-header { margin-bottom: 24px; }
.project-detail-header h1 { font-size: 28px; font-weight: 900; margin: 12px 0; line-height: 1.35; }
.project-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--muted-light);
    flex-wrap: wrap;
}

.project-owner-chip {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-owner-chip strong { display: block; font-size: 15px; font-weight: 800; color: var(--dark); }
.project-owner-chip span { font-size: 12px; color: var(--muted-light); }
.avatar-sm { width: 36px; height: 36px; font-size: 14px; }

.project-description p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 12px;
}

.tag-skill {
    background: var(--bg-alt);
    font-weight: 700;
    font-size: 12px;
    color: var(--dark);
}

.bids-header { margin-bottom: 20px; }
.bids-subtitle { font-size: 14px; color: var(--muted); display: block; margin-bottom: 4px; }

.bid-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 16px;
}

.bid-card-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 12px;
}

.bid-price { font-size: 16px; font-weight: 900; color: var(--dark); }
.bid-days { font-size: 13px; color: var(--muted-light); }

.bid-freelancer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.bid-freelancer strong { font-size: 15px; font-weight: 800; }
.bid-text { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }

.bid-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.bid-time { font-size: 13px; color: var(--muted-light); }

.project-actions-sidebar { position: sticky; top: 96px; }

.project-stat-row {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.project-stat-row:last-of-type { margin-bottom: 20px; }

.project-stat-value { font-size: 15px; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.project-stat-label { font-size: 14px; color: var(--muted); }

.btn-block { width: 100%; }

/* Create project */
.create-sidebar { position: sticky; top: 96px; }

.create-guide {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
}

.create-eyebrow { font-size: 15px; color: var(--muted); margin-bottom: 16px; display: block; }

.create-steps {
    list-style: none;
    margin-bottom: 24px;
}

.create-steps li {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 8px;
}

.create-guarantee {
    background: var(--teal-light);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}

.create-guarantee strong {
    display: block;
    font-size: 15px;
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 6px;
}

.create-guarantee p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.create-tip-link { font-size: 13px; font-weight: 700; color: var(--primary); }

.form-hint {
    display: block;
    font-size: 11px;
    color: var(--muted-light);
    margin-top: 6px;
}

.desc-mode-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.desc-mode-card {
    padding: 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.desc-mode-card input { display: none; }
.desc-mode-card strong { display: block; font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.desc-mode-card span { font-size: 12px; color: var(--muted); line-height: 1.5; }

.desc-mode-card:has(input:checked),
.desc-mode-card.active {
    border-color: var(--primary);
    background: var(--teal-light);
}

.skill-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.skill-chip {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.2s;
}

.skill-chip:hover {
    border-color: var(--primary);
    background: var(--teal-light);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-with-suffix {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--white);
}

.input-with-suffix .form-control {
    border: none;
    box-shadow: none;
}

.input-with-suffix:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.input-suffix {
    padding: 0 16px;
    font-size: 13px;
    color: var(--muted);
    background: var(--bg-alt);
    align-self: stretch;
    display: flex;
    align-items: center;
}

.btn-publish { margin-top: 8px; }

/* Freelancers */
.freelancer-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.freelancer-card-main {
    display: flex;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.freelancer-card-info h2 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
}

.freelancer-title { font-size: 13px; color: var(--muted); margin-bottom: 6px; }

.completion-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 10px;
}

.freelancer-bio {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Profile */
.profile-hero {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 40px 0;
}

.profile-hero-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }

.profile-hero-main {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
}

.avatar-xl { width: 96px; height: 96px; font-size: 36px; }

.profile-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 13px;
}

.profile-meta-item { color: var(--muted-light); }

.profile-hero-info h1 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 6px;
}

.profile-title { font-size: 16px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }

.profile-rating-row { display: flex; align-items: center; gap: 8px; }
.rating-count { font-size: 12px; color: var(--muted-light); }

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.profile-stat-box {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}

.profile-stat-box strong {
    display: block;
    font-size: 20px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 4px;
}

.profile-stat-box span { font-size: 13px; color: var(--muted); }

.profile-about { font-size: 14px; color: var(--muted); line-height: 1.8; }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.portfolio-item,
.portfolio-thumb,
.showcase-thumb {
    background: linear-gradient(135deg, var(--bg-alt), var(--teal-light));
    border-radius: var(--radius-sm);
}

.portfolio-thumb { height: 140px; margin-bottom: 12px; }

.showcase-thumb {
    height: 160px;
    border-radius: 0;
}

/* Gradient thumbs — portfolio & blog */
.grad-teal    { background: linear-gradient(135deg, #0D9488 0%, #5EEAD4 100%) !important; }
.grad-blue    { background: linear-gradient(135deg, #0284C7 0%, #7DD3FC 100%) !important; }
.grad-purple  { background: linear-gradient(135deg, #7C3AED 0%, #C4B5FD 100%) !important; }
.grad-orange  { background: linear-gradient(135deg, #EA580C 0%, #FDBA74 100%) !important; }
.grad-pink    { background: linear-gradient(135deg, #DB2777 0%, #F9A8D4 100%) !important; }
.grad-green   { background: linear-gradient(135deg, #059669 0%, #6EE7B7 100%) !important; }
.grad-rose    { background: linear-gradient(135deg, #E11D48 0%, #FDA4AF 100%) !important; }
.grad-amber   { background: linear-gradient(135deg, #D97706 0%, #FCD34D 100%) !important; }
.grad-indigo  { background: linear-gradient(135deg, #4338CA 0%, #A5B4FC 100%) !important; }

.portfolio-item h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.portfolio-item p { font-size: 13px; color: var(--muted); line-height: 1.6; }

.review-card {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.review-card:last-child { border-bottom: none; }
.review-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.review-time { font-size: 12px; color: var(--muted-light); }
.review-project { display: block; font-size: 12px; color: var(--muted-light); margin-bottom: 6px; }
.review-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }

.hire-sidebar { position: sticky; top: 96px; }

.hire-stat {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 16px;
}

.hire-stat-value { font-size: 20px; font-weight: 900; margin-bottom: 4px; }
.hire-stat-label { font-size: 14px; color: var(--muted); }

.hire-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
}

.hire-info-label { color: var(--muted); }
.hire-info-value { font-weight: 700; color: var(--success); }

/* Messages */
.messages-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    height: calc(100vh - 80px);
    max-width: var(--max-width);
    margin: 0 auto;
    background: var(--white);
    border-top: 1px solid var(--border-light);
}

.messages-inbox {
    border-left: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.inbox-search { padding: 16px; border-bottom: 1px solid var(--border-light); }
.inbox-list { overflow-y: auto; flex: 1; }

.inbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
    position: relative;
}

.inbox-item:hover,
.inbox-item.active { background: var(--bg); }

.inbox-item-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.inbox-item-top strong { font-size: 14px; font-weight: 800; }
.inbox-time { font-size: 11px; color: var(--muted-light); white-space: nowrap; }
.inbox-item-body { flex: 1; min-width: 0; }
.inbox-item-body p { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.unread-badge {
    min-width: 20px;
    height: 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.messages-chat {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
}

.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-header-info strong { display: block; font-size: 16px; font-weight: 800; }
.chat-project-tag { font-size: 12px; font-weight: 700; color: var(--primary); background: var(--teal-light); padding: 6px 12px; border-radius: 6px; }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg);
}

.chat-msg {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 12px;
    position: relative;
}

.chat-msg-in {
    align-self: flex-start;
    background: var(--white);
    border: 1px solid var(--border-light);
}

.chat-msg-out {
    align-self: flex-end;
    background: var(--teal-light);
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.chat-msg p { font-size: 14px; line-height: 1.7; margin-bottom: 4px; }
.chat-time { font-size: 11px; color: var(--muted-light); }

.chat-attachment {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    max-width: 320px;
    align-self: flex-end;
}

.attachment-icon {
    width: 40px;
    height: 40px;
    background: var(--danger);
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attachment-icon-pdf span {
    font-size: 10px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0.5px;
}

.chat-attachment strong { display: block; font-size: 13px; font-weight: 700; }
.chat-attachment span { font-size: 11px; color: var(--muted-light); }

.chat-compose {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
}

.chat-compose .form-control { flex: 1; }

/* Settings */
.settings-layout { grid-template-columns: 340px minmax(0, 908px); }

.settings-nav {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 8px;
    position: sticky;
    top: 96px;
}

.settings-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    transition: all 0.2s;
}

.settings-nav a:hover,
.settings-nav a.active {
    background: var(--teal-light);
    color: var(--primary);
}

.avatar-upload {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-light);
}

.avatar-upload-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-danger-text { color: var(--danger) !important; border-color: var(--border) !important; }

.input-with-badge { position: relative; }
.verified-badge {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 700;
    color: var(--success);
    background: #D1FAE5;
    padding: 2px 8px;
    border-radius: 4px;
}

.input-with-badge .form-control { padding-left: 70px; }

.tags-selectable .tag-active {
    background: var(--teal-light);
    color: var(--primary);
    font-weight: 700;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

/* Notifications */
.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.notif-header h1 { font-size: 32px; font-weight: 900; }
.mark-all-read { font-size: 14px; font-weight: 700; color: var(--primary); }

.notif-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
}

.notif-tabs a {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.notif-tabs a:hover,
.notif-tabs a.active {
    background: var(--teal-light);
    color: var(--primary);
}

.notif-list { display: flex; flex-direction: column; }

.notif-item {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    transition: background 0.2s;
    align-items: flex-start;
}

.notif-item.unread {
    background: linear-gradient(90deg, var(--teal-light) 0%, rgba(204, 251, 241, 0.3) 100%);
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-bottom: 1px solid rgba(13, 148, 136, 0.15);
    padding-right: 24px;
}

.notif-item.unread .notif-body p { font-weight: 800; color: var(--dark); }
.notif-item:not(.unread) .notif-body p { font-weight: 500; color: var(--muted); }

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.notif-icon::after {
    content: '';
    width: 18px;
    height: 18px;
    background: var(--white);
    border-radius: 4px;
    opacity: 0.9;
}

.notif-icon-project  { background: var(--primary); }
.notif-icon-message  { background: var(--cta); }
.notif-icon-payment  { background: var(--success); }
.notif-icon-system   { background: var(--muted); }
.notif-icon-review   { background: var(--warning); }
.notif-icon-reminder { background: var(--danger); }

.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    margin-top: 16px;
    flex-shrink: 0;
    order: 3;
}

.notif-item.unread .notif-dot {
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.25);
}

.notif-body { flex: 1; min-width: 0; }
.notif-body p { font-size: 14px; line-height: 1.6; margin-bottom: 4px; }
.notif-time { font-size: 12px; color: var(--muted-light); }

/* Wallet */
.wallet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.wallet-header h1 { font-size: 32px; font-weight: 900; }

.wallet-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.wallet-stat-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
}

.wallet-stat-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
}

.stat-link { font-size: 12px; font-weight: 800; color: var(--primary); }

.wallet-stat-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--dark);
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
}

.payment-method-icon {
    width: 48px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
    color: var(--white);
    flex-shrink: 0;
}

.payment-icon-mada { background: #004D40; }
.payment-icon-visa { background: #1A1F71; }
.payment-icon-paypal { background: #003087; }

.payment-method-card strong { display: block; font-size: 14px; font-weight: 700; }
.payment-method-card span { font-size: 13px; color: var(--muted-light); }

.tx-table th { font-size: 13px; }
.tx-table td { font-size: 14px; }
.tx-type { font-size: 12px; font-weight: 700; color: var(--muted); }
.tx-positive { font-weight: 700; color: var(--success); }
.tx-negative { font-weight: 700; color: var(--dark); }

/* Portfolio showcase */
.portfolio-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.showcase-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
}

.showcase-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

.showcase-body { padding: 16px; }
.showcase-body h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; line-height: 1.4; }
.showcase-cat { font-size: 12px; font-weight: 700; color: var(--primary); }
.showcase-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 12px;
}

.showcase-author { font-weight: 700; color: var(--muted); }
.showcase-stats { display: flex; gap: 12px; color: var(--muted-light); }

/* Community */
.community-layout .community-sidebar { position: sticky; top: 96px; }

.forum-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.forum-tabs { margin-bottom: 0; flex: 1; }
.forum-ask-btn { flex-shrink: 0; white-space: nowrap; }

.topic-card,
.forum-topic-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.topic-card:hover,
.forum-topic-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-md);
}

.topic-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.topic-author-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topic-author-block .forum-author {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--dark);
}

.topic-author-block .forum-time {
    display: block;
    font-size: 12px;
    color: var(--muted-light);
}

.forum-topic-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    margin-bottom: 8px;
}

.forum-time { color: var(--muted-light); }
.forum-author { font-weight: 700; color: var(--muted); }

.topic-card h2,
.forum-topic-card h2 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.4;
}

.topic-card h2 a:hover,
.forum-topic-card h2 a:hover { color: var(--primary); }

.topic-card > p,
.forum-topic-card > p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }

.forum-topic-footer,
.topic-card-footer {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 13px;
    color: var(--muted-light);
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.topic-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.tag-cat {
    background: var(--bg-alt);
    font-weight: 700;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
}

.community-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
}

.community-stat {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 14px 8px;
}

.community-stat strong {
    display: block;
    font-size: 18px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 4px;
}

.community-stat span { font-size: 12px; color: var(--muted); }

.active-members,
.trending-topics {
    list-style: none;
}

.active-members li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.member-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

.member-posts {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--muted-light);
}

.avatar-xs {
    width: 32px;
    height: 32px;
    font-size: 13px;
}

.trending-topics li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.trending-topics a {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.4;
}

.trending-topics span { font-size: 12px; color: var(--muted-light); }

/* Blog */
.blog-layout .blog-sidebar { position: sticky; top: 96px; }

.blog-search-widget {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.blog-featured,
.featured-post {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: center;
    background: linear-gradient(135deg, var(--teal-light), var(--white));
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 28px;
    overflow: hidden;
}

.blog-featured-image {
    height: 240px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--cta) 100%);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.blog-featured-content { min-width: 0; }

.featured-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: var(--white);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.featured-post h2 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 12px;
    line-height: 1.4;
}

.featured-post > p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.featured-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--muted-light);
}

.featured-author { font-weight: 700; color: var(--muted); }

.blog-post-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.blog-post-thumb {
    height: 120px;
    background: linear-gradient(135deg, var(--bg-alt), var(--teal-light));
    border-radius: var(--radius-sm);
}

.blog-post-body h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 8px 0;
    line-height: 1.4;
}

.blog-post-body > p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 10px;
}

.blog-post-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--muted-light);
}

.blog-categories,
.popular-posts { list-style: none; }

.blog-categories li,
.popular-posts li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.blog-categories a {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
}

.blog-categories span { font-size: 13px; color: var(--muted-light); font-weight: 400; }

.popular-posts a {
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.4;
}

.popular-posts span { font-size: 11px; color: var(--muted-light); }

/* Categories */
.categories-total {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: var(--teal-light);
    padding: 6px 12px;
    border-radius: 6px;
}

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

.category-detail-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.category-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--cta));
    opacity: 0;
    transition: opacity 0.2s;
}

.category-detail-card:hover::before { opacity: 1; }

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

.category-detail-card h2 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.4;
}

.category-detail-card > p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 14px;
}

.category-count-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}

/* About */
.about-hero {
    background: linear-gradient(180deg, var(--teal-light) 0%, var(--bg) 100%);
    padding: 80px 0 60px;
    text-align: center;
}

.about-hero h1 {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 16px;
}

.about-hero p {
    font-size: 18px;
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.about-stat {
    text-align: center;
    padding: 32px 16px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}

.about-stat strong {
    display: block;
    font-size: 36px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
}

.about-stat span { font-size: 14px; color: var(--muted); }

.about-story h2 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 20px;
}

.about-story p {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 16px;
    max-width: 800px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.value-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 28px;
}

.value-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.value-card p { font-size: 13px; color: var(--muted); line-height: 1.7; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.team-card { text-align: center; }

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-alt);
    margin: 0 auto 12px;
}

.team-card strong { display: block; font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.team-card span { font-size: 12px; color: var(--muted); }

.partners-title {
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--muted);
}

.partners-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    font-size: 18px;
    font-weight: 800;
    color: var(--muted-light);
}

/* Help */
.help-hero {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 60px 0;
    text-align: center;
}

.help-hero h1 {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 24px;
}

.help-search {
    max-width: 640px;
    margin: 0 auto;
    text-align: right;
}

.help-search label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-heading-lg {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-sub {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.help-topics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.help-topic-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.2s;
}

.help-topic-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.help-topic-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 16px;
    position: relative;
}

.help-icon-rocket  { background: linear-gradient(135deg, #0D9488, #5EEAD4); }
.help-icon-folder  { background: linear-gradient(135deg, #0284C7, #7DD3FC); }
.help-icon-wallet  { background: linear-gradient(135deg, #059669, #6EE7B7); }
.help-icon-user    { background: linear-gradient(135deg, #7C3AED, #C4B5FD); }
.help-icon-shield  { background: linear-gradient(135deg, #DC2626, #FCA5A5); }
.help-icon-scale   { background: linear-gradient(135deg, #D97706, #FCD34D); }

.help-topic-icon::after {
    content: '';
    position: absolute;
    inset: 12px;
    background: var(--white);
    border-radius: 4px;
    opacity: 0.85;
}

.help-topic-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.help-topic-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

.role-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.role-icon-freelancer { background: linear-gradient(135deg, var(--primary), #5EEAD4); }
.role-icon-client     { background: linear-gradient(135deg, var(--cta), #7DD3FC); }

.showcase-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.help-articles-list {
    list-style: none;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.help-articles-list li { border-bottom: 1px solid var(--border-light); }
.help-articles-list li:last-child { border-bottom: none; }

.help-articles-list a {
    display: block;
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.2s;
}

.help-articles-list a:hover { background: var(--bg); color: var(--primary); }

.help-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.help-contact-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
}

.help-contact-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.help-contact-card p { font-size: 14px; color: var(--muted); margin-bottom: 20px; line-height: 1.6; }

/* Enterprise */
.enterprise-hero {
    background: linear-gradient(135deg, var(--dark) 0%, #1E293B 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.enterprise-hero h1 {
    font-size: 44px;
    font-weight: 900;
    max-width: 800px;
    margin: 0 auto 16px;
    line-height: 1.3;
}

.enterprise-hero p {
    font-size: 18px;
    opacity: 0.85;
    max-width: 640px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.enterprise-dashboard-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.mock-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    font-size: 13px;
}

.mock-stat-row strong { font-size: 28px; font-weight: 900; color: var(--dark); }

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
}

.pricing-card-featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

.pricing-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }

.pricing-price {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 24px;
}

.pricing-card ul {
    list-style: none;
    text-align: right;
    margin-bottom: 24px;
}

.pricing-card li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--muted);
    border-bottom: 1px solid var(--border-light);
}

/* Terms */
.terms-layout { grid-template-columns: 340px minmax(0, 908px); }

.terms-header { margin-bottom: 24px; }
.terms-header h1 { font-size: 32px; font-weight: 900; margin-bottom: 8px; }
.terms-updated { font-size: 14px; color: var(--muted); }

.toc-list {
    list-style: none;
    counter-reset: toc;
}

.toc-list li { border-bottom: 1px solid var(--border-light); }

.toc-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
}

.toc-list a:hover { color: var(--primary); }
.toc-num { font-size: 12px; font-weight: 700; color: var(--muted-light); }

.terms-content section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-light);
}

.terms-content section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.terms-content h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}

.terms-content p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.8;
}

/* 404 */
.error-404 {
    min-height: calc(100vh - 80px - 200px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
}

.error-404-digits {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.error-404-digits > span {
    font-size: 140px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.error-404-zero {
    width: 100px;
    height: 100px;
    border: 16px solid var(--primary);
    border-radius: 50%;
    display: inline-block;
}

.error-404 h1 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 12px;
}

.error-404 > p {
    font-size: 16px;
    color: var(--muted);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.error-search {
    width: 100%;
    max-width: 480px;
    text-align: right;
    margin-bottom: 24px;
}

.error-search label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.error-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.error-links h2 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
}

.error-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.error-links a {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

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

.btn-dark:hover { background: #1E293B; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; }
    .card-grid-3, .card-grid-4, .steps, .guarantee-grid, .benefits-grid, .categories-figma { grid-template-columns: repeat(2, 1fr); }
    .how-grid, .enterprise-figma, .testimonials-figma { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
    .sidebar-layout { grid-template-columns: 1fr; }
    .page-shell,
    .page-shell-single,
    .page-shell-create,
    .settings-layout,
    .terms-layout { grid-template-columns: 1fr; }
    .messages-layout { grid-template-columns: 1fr; height: auto; min-height: calc(100vh - 80px); }
    .messages-inbox { max-height: 320px; border-left: none; border-bottom: 1px solid var(--border-light); }
    .wallet-stats { grid-template-columns: repeat(2, 1fr); }
    .portfolio-showcase-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .help-topics { grid-template-columns: repeat(2, 1fr); }
    .pricing-cards { grid-template-columns: 1fr; }
    .pricing-card-featured { transform: none; }
    .enterprise-dashboard-preview { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .desc-mode-cards { grid-template-columns: 1fr; }
    .form-row-2 { grid-template-columns: 1fr; }
    .blog-post-card { grid-template-columns: 1fr; }
    .blog-featured, .featured-post { grid-template-columns: 1fr; }
    .blog-featured-image { height: 180px; }
    .community-stats { grid-template-columns: 1fr; }
    .forum-actions-row { flex-direction: column; align-items: stretch; }
    .freelancer-card { flex-direction: column; }
    .error-404-digits > span { font-size: 80px; }
    .error-404-zero { width: 60px; height: 60px; border-width: 10px; }
}

@media (max-width: 768px) {
    .navbar-inner { padding: 0 16px; height: 64px; }
    .navbar-nav { display: none; }
    .navbar-brand { font-size: 22px; }
    .page-shell { padding: 20px 16px 48px; }
    .hero-content h1 { font-size: 32px; }
    .card-grid-3, .card-grid-4, .steps, .guarantee-grid, .dashboard-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .profile-header-inner { flex-direction: column; align-items: center; text-align: center; }
    .profile-stats { justify-content: center; }
    .profile-hero-main { flex-direction: column; align-items: center; text-align: center; }
    .profile-stats-grid { grid-template-columns: 1fr 1fr; }
    .wallet-stats { grid-template-columns: 1fr; }
    .portfolio-showcase-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr; }
    .help-topics, .help-contact-grid { grid-template-columns: 1fr; }
    .about-hero h1, .help-hero h1 { font-size: 28px; }
    .enterprise-hero h1 { font-size: 28px; }
    .role-cards { grid-template-columns: 1fr; }
    .login-card, .register-card { padding: 24px; }
    .auth-floating-inner { padding: 0 16px; height: 72px; }
    .project-row-top { flex-direction: column; }
    .notif-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .table-wrap { overflow-x: auto; }
    .projects-table { min-width: 640px; }
    .tx-table { min-width: 640px; }
}

.demo-credentials {
  background: #CCFBF1;
  border: 1px solid #99F6E4;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #115E59;
}
.demo-credentials strong { font-weight: 800; }
.dashboard-welcome { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
