:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0891b2;
    --accent: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --gradient: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
}

/* ── Global ────────────────────────────────────────────────────────── */

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

a {
    text-decoration: none;
}

/* ── Hero ──────────────────────────────────────────────────────────── */

.hero {
    background: var(--gradient);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    bottom: -150px;
    left: -100px;
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    top: -200px;
    right: -100px;
}

.hero h1 {
    font-weight: 800;
    font-size: 2.8rem;
    line-height: 1.15;
}

.hero p.lead {
    opacity: .9;
    font-size: 1.15rem;
}

/* ── Status badges ─────────────────────────────────────────────────── */

.badge-open {
    background: #dcfce7;
    color: #166534;
}

.badge-booked {
    background: #dbeafe;
    color: #1e40af;
}

.badge-in_progress {
    background: #fef9c3;
    color: #854d0e;
}

.badge-completed {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-accepted {
    background: #d1fae5;
    color: #065f46;
}

.badge-rejected {
    background: #fce7f3;
    color: #9d174d;
}

/* ── Stat cards ────────────────────────────────────────────────────── */

.stat-card {
    border-radius: 1rem;
    padding: 1.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.stat-card .stat-icon {
    font-size: 3rem;
    opacity: .2;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
}

.stat-card p {
    margin: 0;
    opacity: .85;
    font-size: .9rem;
}

.stat-services {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.stat-bookings {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
}

.stat-capabilities {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.stat-users {
    background: linear-gradient(135deg, #059669, #10b981);
}

/* ── Category icons ────────────────────────────────────────────────── */

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

.category-freight {
    background: #dbeafe;
    color: #2563eb;
}

.category-express {
    background: #fef3c7;
    color: #d97706;
}

.category-warehouse {
    background: #e0e7ff;
    color: #4f46e5;
}

.category-cold_chain {
    background: #cffafe;
    color: #0891b2;
}

.category-hazmat {
    background: #fee2e2;
    color: #dc2626;
}

.category-bulk {
    background: #f3e8ff;
    color: #7c3aed;
}

.category-last_mile {
    background: #d1fae5;
    color: #059669;
}

.category-other {
    background: #f1f5f9;
    color: #64748b;
}

/* ── Route display ─────────────────────────────────────────────────── */

.route-display {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    color: #64748b;
}

.route-display .ti-arrow-right {
    color: var(--primary);
}

/* ── Detail page ───────────────────────────────────────────────────── */

.detail-header {
    background: var(--gradient);
    color: #fff;
    padding: 3rem 0 2rem;
    margin-bottom: -2rem;
}

/* ── Empty state ───────────────────────────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

.empty-state .ti {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* ── Avatar ────────────────────────────────────────────────────────── */

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .9rem;
    flex-shrink: 0;
}

/* ── Tables ─────────────────────────────────────────────────────────── */

.table th {
    font-weight: 600;
    color: #374151;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 3rem 0 2.5rem;
    }

    .stat-card h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero .btn-lg {
        font-size: .95rem;
        padding: .6rem 1.25rem;
    }
}