@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700;800&display=swap");

:root {
    --bg-dark: #0e2453;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --card-dark: #0e2453;
    --card-accent: #3182b2;
    --text-light: #f5f7fa;
    --text-dark: #1a1a1a;
    --primary: #3cb197;
    --primary-dark: #2d9a82;
    --primary-light: #5cc9af;
    --primary-contrast: #ffffff;
    --secondary: #3182b2;
    --secondary-dark: #266a96;
    --secondary-light: #4a9bc9;
    --accent: #0e2453;
    --muted: #6c757d;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --gray-light: #f8f9fa;
    --shadow: 0 4px 20px rgba(14, 36, 83, 0.08);
    --shadow-lg: 0 10px 40px rgba(14, 36, 83, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    direction: rtl;
    background: var(--bg-white);
    color: var(--text-dark);
    font-family: "Tajawal", "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    padding-top: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
}

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

/* Navbar Styles */
.navbar {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-contrast);
    font-size: 1.3rem;
}

.main-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-weight: 800;
    color: var(--text-dark);
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
}

.navbar-nav .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-contrast);
    font-weight: 700;
}

.navbar-nav .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.app-hero {
    background: linear-gradient(135deg, rgba(14, 36, 83, 0.9), rgba(49, 130, 178, 0.3));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.hero-badges .badge {
    background: rgba(60, 177, 151, 0.12);
    color: var(--primary);
    border: 1px solid rgba(60, 177, 151, 0.4);
}

.section-card {
    border: 1px solid var(--border);
    background: linear-gradient(160deg, var(--bg-dark), #0a1a3d);
    color: var(--text-light);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.section-card h5 {
    color: var(--primary);
    font-weight: 700;
}

.section-card .muted {
    color: var(--muted);
    font-size: 0.95rem;
}

.list-check {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-check li {
    position: relative;
    padding-right: 26px;
    margin-bottom: 10px;
}

.list-check li::before {
    content: "✔";
    position: absolute;
    right: 0;
    top: 2px;
    color: var(--primary);
    font-weight: 700;
}

.control-panel {
    border: 1px solid var(--border);
    background: linear-gradient(150deg, var(--bg-dark) 0%, #0a1a3d 60%, rgba(14, 36, 83, 0.9));
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.control-panel .panel-title {
    color: var(--primary);
    font-weight: 700;
}

.kpi-pill {
    background: rgba(60, 177, 151, 0.12);
    color: var(--primary);
    border: 1px solid rgba(60, 177, 151, 0.4);
    border-radius: 12px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.95rem;
}

.badge-muted {
    background: rgba(126, 138, 162, 0.18);
    color: var(--text-light);
    border: 1px solid rgba(126, 138, 162, 0.35);
}

.divider {
    border-bottom: 1px dashed var(--border);
    margin: 16px 0;
}

.card-lite {
    background: var(--bg-light);
    color: var(--text-dark);
    border-radius: 16px;
    border: 1px solid #e5e9f2;
    box-shadow: 0 8px 24px rgba(11, 22, 37, 0.08);
}

.card-lite h5 {
    color: var(--primary-contrast);
    font-weight: 700;
}

.text-accent {
    color: var(--primary);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--primary-contrast);
    font-weight: 700;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: #ffffff;
}

.btn-outline-light {
    border-color: rgba(245, 247, 250, 0.6);
    color: var(--text-light);
}

.btn-outline-light:hover {
    background: rgba(245, 247, 250, 0.1);
    color: #fff;
}

.table-theme th,
.table-theme td {
    border-color: var(--border);
    vertical-align: middle;
}

.table-theme thead {
    background: rgba(60, 177, 151, 0.08);
    color: var(--primary);
}

.badge-warning {
    background: rgba(60, 177, 151, 0.2);
    color: var(--primary-contrast);
    border: 1px solid rgba(60, 177, 151, 0.35);
}

.badge-success {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.35);
}

.badge-danger {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.35);
}

.footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.text-muted {
    color: var(--muted) !important;
}

/* Hero Slider Styles */
.hero-slider-section {
    margin-top: -20px;
    margin-bottom: 80px;
}

.hero-slide {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(14, 36, 83, 0.95), rgba(49, 130, 178, 0.3));
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(60, 177, 151, 0.15), transparent 70%);
    pointer-events: none;
}

.hero-slide.slide-2 {
    background: linear-gradient(135deg, rgba(49, 130, 178, 0.3), rgba(14, 36, 83, 0.98));
}

.hero-slide.slide-3 {
    background: linear-gradient(135deg, rgba(14, 36, 83, 0.95), rgba(60, 177, 151, 0.2));
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-stats {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats > div {
    text-align: center;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Carousel Customization */
.carousel {
    border-radius: 24px;
    overflow: hidden;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.carousel-indicators button.active {
    background-color: var(--primary);
    border-color: var(--primary);
    width: 32px;
    border-radius: 6px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(248, 184, 3, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    opacity: 0.7;
    transition: all 0.3s;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(248, 184, 3, 0.4);
}

.carousel-control-prev {
    right: 20px;
    left: auto;
}

.carousel-control-next {
    left: 20px;
    right: auto;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

/* Control Panel Preview */
.control-panel-preview {
    background: linear-gradient(150deg, var(--bg-dark) 0%, #0a1a3d 60%, rgba(14, 36, 83, 0.9));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
    animation: fadeInRight 0.8s ease-out;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.panel-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-card {
    background: rgba(60, 177, 151, 0.1);
    border: 1px solid rgba(60, 177, 151, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

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

.stat-label {
    font-size: 0.85rem;
    color: var(--muted);
}

/* Payment Flow */
.payment-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    animation: fadeInLeft 0.8s ease-out;
}

.flow-step {
    flex: 1;
    text-align: center;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-contrast);
    margin: 0 auto 15px;
    box-shadow: 0 4px 15px rgba(60, 177, 151, 0.3);
}

.step-content h6 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 5px;
}

.step-content p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

/* Hidden Identity Demo */
.hidden-identity-demo {
    animation: fadeInRight 0.8s ease-out;
}

.offer-card {
    background: linear-gradient(160deg, var(--bg-dark), #0a1a3d);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
}

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

.company-code {
    font-weight: 700;
    color: var(--text-light);
    font-size: 1.1rem;
}

.offer-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.offer-details {
    display: flex;
    gap: 20px;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Section Spacing */
.section-py {
    padding: 80px 0;
}

.bg-section {
    background: linear-gradient(180deg, transparent, rgba(20, 55, 90, 0.3), transparent);
}

/* Step Cards */
.step-card {
    background: linear-gradient(160deg, var(--bg-dark), #0a1a3d);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    height: 100%;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: translateX(100%);
    transition: transform 0.5s;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(60, 177, 151, 0.2);
    border-color: var(--primary);
}

.step-card:hover::before {
    transform: translateX(0);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-contrast);
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(60, 177, 151, 0.3);
}

.step-card h5 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 15px;
}

.step-icon {
    font-size: 3rem;
    margin-top: 20px;
    opacity: 0.7;
}

/* Feature Cards */
.feature-card {
    background: linear-gradient(160deg, var(--bg-dark), #0a1a3d);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(60, 177, 151, 0.15);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h5 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 15px;
}

/* Story Cards */
.story-card {
    background: linear-gradient(160deg, var(--bg-dark), #0a1a3d);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s;
}

.story-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(60, 177, 151, 0.15);
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.story-header h5 {
    color: var(--primary);
    font-weight: 700;
    margin: 0;
}

.story-result {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.result-stat {
    flex: 1;
    text-align: center;
}

.result-stat .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.result-stat .stat-label {
    font-size: 0.85rem;
    color: var(--muted);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(14, 36, 83, 0.9), rgba(49, 130, 178, 0.3));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: var(--shadow);
}

/* List Check Large */
.list-check-large {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-check-large li {
    position: relative;
    padding-right: 35px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.list-check-large li::before {
    content: "✓";
    position: absolute;
    right: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background: rgba(60, 177, 151, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Dashboard Styles */
.dashboard-header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.dashboard-header h2 {
    color: var(--primary);
    font-weight: 800;
}

/* Statistics Cards */
.stat-card {
    background: linear-gradient(160deg, var(--bg-dark), #0a1a3d);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(60, 177, 151, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 5px;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 5px;
}

.stat-content small {
    font-size: 0.85rem;
}

/* Dashboard Tabs */
.dashboard-tabs {
    border-bottom: 2px solid var(--border);
    margin-bottom: 30px;
}

.dashboard-tabs .nav-link {
    color: var(--muted);
    border: none;
    border-bottom: 3px solid transparent;
    padding: 15px 25px;
    font-weight: 600;
    transition: all 0.3s;
    background: transparent;
}

.dashboard-tabs .nav-link:hover {
    color: var(--primary);
    border-bottom-color: rgba(60, 177, 151, 0.3);
}

.dashboard-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}

.dashboard-tabs .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
}

/* Table Dashboard */
.table-dashboard {
    color: var(--text-light);
    background: transparent;
}

.table-dashboard thead th {
    background: rgba(60, 177, 151, 0.08);
    color: var(--primary);
    font-weight: 700;
    border-bottom: 2px solid var(--border);
    padding: 15px;
    text-align: right;
}

.table-dashboard tbody td {
    border-bottom: 1px solid var(--border);
    padding: 15px;
    vertical-align: middle;
}

.table-dashboard tbody tr {
    transition: all 0.2s;
}

.table-dashboard tbody tr:hover {
    background: rgba(60, 177, 151, 0.05);
}

.project-info strong {
    color: var(--text-light);
    display: block;
    margin-bottom: 5px;
}

.project-info small {
    color: var(--muted);
    font-size: 0.85rem;
}

/* Offer Cards Dashboard */
.offer-card-dashboard {
    background: linear-gradient(160deg, var(--bg-dark), #0a1a3d);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    height: 100%;
    transition: all 0.3s;
}

.offer-card-dashboard:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(60, 177, 151, 0.15);
}

.offer-card-dashboard h6 {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 15px;
}

.offer-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}

.offer-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 0.9rem;
}

.offer-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Request Cards */
.request-card {
    background: linear-gradient(160deg, var(--bg-dark), #0a1a3d);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    height: 100%;
    transition: all 0.3s;
}

.request-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(60, 177, 151, 0.15);
}

.request-card h6 {
    color: var(--text-light);
    font-weight: 700;
}

.request-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.9rem;
}

.request-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Project Cards Dashboard */
.project-card-dashboard {
    background: linear-gradient(160deg, var(--bg-dark), #0a1a3d);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    height: 100%;
    transition: all 0.3s;
}

.project-card-dashboard:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(60, 177, 151, 0.15);
}

.project-progress {
    margin-bottom: 20px;
}

.project-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Earnings Summary */
.earnings-summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-item {
    padding-bottom: 15px;
}

.summary-item:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.summary-label {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
}

/* Notifications List */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notification-item {
    background: linear-gradient(160deg, var(--bg-dark), #0a1a3d);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: start;
    gap: 15px;
    transition: all 0.3s;
}

.notification-item:hover {
    border-color: var(--primary);
    background: linear-gradient(160deg, rgba(60, 177, 151, 0.05), var(--bg-dark));
}

.notification-item.unread {
    border-right: 4px solid var(--primary);
}

.notification-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-content h6 {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 5px;
}

.notification-content p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Dispute Cards */
.dispute-card {
    background: linear-gradient(160deg, var(--bg-dark), #0a1a3d);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    height: 100%;
    transition: all 0.3s;
}

.dispute-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 15px 40px rgba(49, 130, 178, 0.15);
}

.dispute-parties {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.party-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.9rem;
}

.evidence-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(248, 184, 3, 0.05);
    border-radius: 8px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.evidence-item i {
    color: var(--primary);
}

/* Modal Dark */
.modal-dark .modal-content {
    background: linear-gradient(160deg, var(--bg-dark), #0a1a3d);
    border: 1px solid var(--border);
    color: var(--text-light);
}

.modal-dark .modal-header {
    border-bottom: 1px solid var(--border);
}

.modal-dark .modal-footer {
    border-top: 1px solid var(--border);
}

.modal-dark .form-control,
.modal-dark .form-select {
    background: rgba(14, 36, 83, 0.5);
    border-color: var(--border);
    color: var(--text-light);
}

.modal-dark .form-control:focus,
.modal-dark .form-select:focus {
    background: rgba(14, 36, 83, 0.7);
    border-color: var(--primary);
    color: var(--text-light);
    box-shadow: 0 0 0 0.25rem rgba(60, 177, 151, 0.25);
}

.modal-dark .form-control::placeholder {
    color: var(--muted);
}

/* Badge Items */
.badges-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.badge-item {
    padding: 15px;
    background: rgba(60, 177, 151, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* Badge Colors */
.badge-info {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.35);
}

.badge-muted {
    background: rgba(126, 138, 162, 0.18);
    color: var(--text-light);
    border: 1px solid rgba(126, 138, 162, 0.35);
}

/* Form Controls */
.form-control,
.form-select {
    background: rgba(14, 36, 83, 0.5);
    border-color: var(--border);
    color: var(--text-light);
}

.form-control:focus,
.form-select:focus {
    background: rgba(14, 36, 83, 0.7);
    border-color: var(--primary);
    color: var(--text-light);
    box-shadow: 0 0 0 0.25rem rgba(60, 177, 151, 0.25);
}

.form-control::placeholder {
    color: var(--muted);
}

/* Progress Bar */
.progress {
    background: rgba(14, 36, 83, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.bg-warning {
    background: linear-gradient(90deg, var(--primary), var(--primary-light)) !important;
}

.bg-success {
    background: linear-gradient(90deg, #2ecc71, #27ae60) !important;
}

.bg-info {
    background: linear-gradient(90deg, #3498db, #2980b9) !important;
}

.bg-danger {
    background: linear-gradient(90deg, var(--secondary), #e74c3c) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
}

/* Theme Color Classes */
.bg-theme-primary {
    background: var(--primary) !important;
}

.bg-theme-secondary {
    background: var(--secondary) !important;
}

.bg-theme-accent {
    background: var(--accent) !important;
}

.bg-theme-danger {
    background: #dc3545 !important;
}

.text-theme-primary {
    color: var(--primary) !important;
}

.text-theme-secondary {
    color: var(--secondary) !important;
}

.text-theme-accent {
    color: var(--accent) !important;
}

/* Categories Section */
.categories-section {
    background: var(--bg-white);
}

.category-card {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

.category-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.category-card span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Request Widget Cards */
.requests-section {
    background: var(--bg-white);
}

.request-widget-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

.request-header {
    margin-bottom: 16px;
}

.category-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--primary-contrast);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
}

.time-badge {
    color: var(--muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.request-title {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 12px 0 0;
}

.request-description {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.request-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--primary);
}

.request-footer {
    margin-top: auto;
    padding-top: 16px;
}

.offers-count {
    color: var(--muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Offer Widget Cards */
.offers-section {
    background: #f8f9fa;
}

.offer-widget-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

.company-badge {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-dark);
    font-weight: 600;
}

.offer-title {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 12px 0;
}

.offer-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.offer-description {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.offer-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.offer-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 0.9rem;
}

.offer-footer {
    margin-top: auto;
    padding-top: 16px;
}

/* Footer Styles */
.footer-main {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: white;
    margin-top: 80px;
}

.footer-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--primary);
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    color: var(--primary-contrast);
    transform: translateY(-3px);
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, rgba(60, 177, 151, 0.05), rgba(49, 130, 178, 0.05));
    border-radius: 20px;
    padding: 60px 40px;
    margin-bottom: 40px;
}

.hero-stats-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.stat-box-mini {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.d-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.d-label {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Profile Page Styles */
.profile-page,
.company-profile-page {
    padding: 30px 0;
}

.company-header {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    border-radius: 20px;
    padding: 40px;
    color: white;
    margin-bottom: 30px;
}

.company-header .company-name {
    color: white;
}

.company-header .company-title {
    color: rgba(255, 255, 255, 0.9);
}

.company-header .stat-number {
    color: white;
}

.company-header .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.company-logo {
    position: relative;
    display: inline-block;
}

.company-logo img {
    width: 150px;
    height: 150px;
    border: 5px solid white;
    box-shadow: var(--shadow-lg);
}

.logo-edit-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.company-tabs {
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 30px;
}

.company-tabs .nav-link {
    color: var(--muted);
    border: none;
    border-bottom: 3px solid transparent;
    padding: 15px 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.company-tabs .nav-link:hover {
    color: var(--secondary);
    border-bottom-color: rgba(85, 107, 47, 0.3);
}

.company-tabs .nav-link.active {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
    background: transparent;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.service-card {
    background: #f8f9fa;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    height: 100%;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.5rem;
}

.service-title {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 10px;
}

.service-description {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.service-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 15px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.rating-stars {
    display: flex;
    gap: 3px;
}

.review-text {
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

.feature-box {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 20px;
    padding: 40px;
    color: var(--primary-contrast);
    margin-bottom: 30px;
}

.profile-avatar {
    position: relative;
    display: inline-block;
}

.profile-avatar img {
    width: 150px;
    height: 150px;
    border: 5px solid white;
    box-shadow: var(--shadow-lg);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.profile-name {
    color: var(--primary-contrast);
    font-weight: 800;
    font-size: 2rem;
}

.profile-title {
    color: rgba(26, 26, 26, 0.8);
    font-size: 1.1rem;
}

.profile-stats {
    margin-top: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-contrast);
}

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

.profile-tabs {
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 30px;
}

.profile-tabs .nav-link {
    color: var(--muted);
    border: none;
    border-bottom: 3px solid transparent;
    padding: 15px 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.profile-tabs .nav-link:hover {
    color: var(--primary);
    border-bottom-color: rgba(248, 184, 3, 0.3);
}

.profile-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}

.profile-card {
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.profile-card .card-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 20px;
}

.profile-card .card-body {
    padding: 24px;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-item {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-box-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.stat-box-item .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-box-item .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.stat-box-item .stat-label {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    color: var(--primary-contrast);
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 10px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--primary-contrast);
    transform: translateY(-2px);
}

/* Hero Slider Update for White Theme */
.hero-slide {
    background: linear-gradient(135deg, rgba(248, 184, 3, 0.1), rgba(85, 107, 47, 0.1));
    border-radius: 24px;
    border: 1px solid var(--border-light);
}

.hero-slide .hero-content h1,
.hero-slide .hero-content .text-accent {
    color: var(--text-dark);
}

.hero-slide .hero-content .text-muted {
    color: var(--muted);
}

/* Section Cards Update */
.section-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    box-shadow: var(--shadow);
}

.section-card h5 {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slide {
        min-height: auto;
        padding: 40px 0;
    }
    
    .min-vh-75 {
        min-height: auto;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .payment-flow {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .section-py {
        padding: 50px 0;
    }
    
    .cta-section {
        padding: 40px 20px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: start !important;
        gap: 15px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .dashboard-tabs .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    /* Mobile Specific Styles */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .category-card {
        padding: 15px;
    }
    
    .category-card i {
        font-size: 1.5rem;
    }
    
    .category-card span {
        font-size: 0.85rem;
    }
    
    .request-widget-card,
    .offer-widget-card {
        padding: 20px;
    }
    
    .request-title,
    .offer-title {
        font-size: 1rem;
    }
    
    .offer-price {
        font-size: 1.5rem;
    }
    
    .request-meta,
    .offer-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .meta-item {
        font-size: 0.85rem;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-stats-card {
        padding: 20px;
    }
    
    .d-number {
        font-size: 1.5rem;
    }
    
    .profile-header,
    .company-header {
        padding: 30px 20px;
    }
    
    .profile-name,
    .company-name {
        font-size: 1.5rem;
    }
    
    .profile-avatar img,
    .company-logo img {
        width: 120px;
        height: 120px;
    }
    
    .profile-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .profile-tabs .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .footer-main {
        padding: 40px 0;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .display-6 {
        font-size: 1.8rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .category-card {
        padding: 12px;
    }
    
    .request-widget-card,
    .offer-widget-card {
        padding: 16px;
    }
    
    .request-title,
    .offer-title {
        font-size: 0.95rem;
    }
    
    .offer-price {
        font-size: 1.3rem;
    }
    
    .profile-header {
        padding: 20px 15px;
    }
    
    .profile-name {
        font-size: 1.3rem;
    }
    
    .profile-avatar img {
        width: 100px;
        height: 100px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .profile-tabs .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .profile-tabs .nav-link i {
        display: none;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 8px 16px;
        font-size: 0.95rem;
    }
    
    .footer-main .row {
        text-align: center;
    }
    
    .footer-main .col-md-6 {
        margin-bottom: 20px;
    }
}
