/* ============================================
   TransportRO - Portal de Transport Romania
   Professional Stylesheet
   ============================================ */

/* === VARIABLES === */
:root {
    --primary: #1a5276;
    --primary-dark: #0e3a54;
    --primary-light: #2980b9;
    --secondary: #e67e22;
    --secondary-dark: #d35400;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;
    --dark: #2c3e50;
    --gray-900: #1a1a2e;
    --gray-800: #333;
    --gray-700: #555;
    --gray-600: #777;
    --gray-500: #999;
    --gray-400: #bbb;
    --gray-300: #ddd;
    --gray-200: #eee;
    --gray-100: #f5f6fa;
    --white: #ffffff;
    --bg: #f0f2f5;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 5px 25px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-sm: 4px;
    --transition: all 0.3s ease;
    --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* === LAYOUT === */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.main-content { flex: 1; padding: 30px 0; }
.page-header { margin-bottom: 25px; }
.page-header h1 { font-size: 24px; font-weight: 700; color: var(--dark); }
.page-header p { color: var(--gray-600); margin-top: 5px; }

/* === TOP BAR === */
.top-bar {
    background: var(--gray-900);
    color: var(--gray-400);
    font-size: 12px;
    padding: 6px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar a { color: var(--gray-400); }
.top-bar a:hover { color: var(--white); }
.top-bar-links { display: flex; gap: 15px; align-items: center; }
.top-bar-links i { margin-right: 4px; }

/* === HEADER / NAVBAR === */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
}
.navbar-brand .logo-img { height: 42px; width: auto; }
.navbar-brand span { color: var(--secondary); }
.navbar-brand .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}
.navbar-menu { display: flex; align-items: center; gap: 5px; }
.navbar-menu a, .navbar-menu .nav-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.navbar-menu a:hover { background: var(--gray-100); color: var(--primary); }
.navbar-menu a.active { color: var(--primary); background: rgba(26,82,118,0.08); }
.navbar-menu .nav-divider { width: 1px; height: 24px; background: var(--gray-300); margin: 0 5px; }

/* Nav dropdowns */
.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: pointer; user-select: none; }
.nav-dropdown-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    min-width: 210px;
    padding: 6px;
    z-index: 1100;
    transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
    pointer-events: none;
}
/* Invisible bridge so mouse can travel from toggle to menu */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
    display: none;
}
.nav-dropdown:hover::after { display: block; }
/* Desktop: open on hover OR when JS adds .open class */
.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown.open > .nav-dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--white);
    border-left: 1px solid var(--gray-200);
    border-top: 1px solid var(--gray-200);
}
.nav-dropdown-menu a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 14px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
    color: var(--gray-700) !important;
    white-space: nowrap;
}
.nav-dropdown-menu a:hover {
    background: var(--gray-100) !important;
    color: var(--primary) !important;
}
.nav-dropdown-menu a.active {
    background: rgba(26,82,118,0.06) !important;
    color: var(--primary) !important;
    font-weight: 600;
}
.nav-dropdown-menu a i { width: 18px; text-align: center; font-size: 13px; opacity: 0.7; }
.nav-dropdown > a .fa-chevron-down { transition: transform 0.2s; font-size: 10px; opacity: 0.5; }
.nav-dropdown:hover > a .fa-chevron-down,
.nav-dropdown.open > a .fa-chevron-down { transform: rotate(180deg); }

/* Auth buttons */
.btn-login {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    border-radius: var(--radius) !important;
    font-weight: 600 !important;
    cursor: pointer;
}
.btn-login:hover { background: var(--primary); color: var(--white) !important; }
.btn-register {
    background: var(--secondary) !important;
    color: var(--white) !important;
    border-radius: var(--radius) !important;
    font-weight: 600 !important;
    border: 2px solid var(--secondary);
}
.btn-register:hover { background: var(--secondary-dark) !important; border-color: var(--secondary-dark); }

/* Mobile menu */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-700);
    cursor: pointer;
}

/* === HERO SECTION === */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--white);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,138.7C672,128,768,160,864,181.3C960,203,1056,213,1152,192C1248,171,1344,117,1392,90.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom center;
    background-size: cover;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
}
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stat { text-align: center; }
.hero-stat .number {
    font-size: 32px;
    font-weight: 800;
    display: block;
}
.hero-stat .label {
    font-size: 13px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === SEARCH BOX (HERO) === */
.search-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-lg);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}
.search-box h3 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.search-tab {
    padding: 10px 24px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-600);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
}
.search-tab:hover { border-color: var(--primary-light); color: var(--primary); }
.search-tab.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(26,82,118,0.05);
}
.search-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
.search-form .form-group { display: flex; flex-direction: column; }
.search-form label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === FORMS === */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 5px;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font);
    color: var(--gray-800);
    transition: var(--transition);
    background: var(--white);
}
.form-control:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(41,128,185,0.15);
}
.form-control::placeholder { color: var(--gray-500); }
select.form-control { cursor: pointer; appearance: auto; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-inline { display: flex; gap: 10px; align-items: end; }
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }
.form-error { color: var(--danger); font-size: 12px; margin-top: 4px; }
.required::after { content: ' *'; color: var(--danger); }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: var(--secondary-dark); color: var(--white); }
.btn-success { background: var(--success); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-group { display: flex; gap: 8px; }

/* === CARDS === */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-header h3 { font-size: 16px; font-weight: 700; color: var(--dark); }
.card-body { padding: 20px; }
.card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-100);
}

/* === LOAD / TRUCK LISTING CARDS === */
.listing-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    transition: var(--transition);
    border-left: 4px solid var(--primary);
    overflow: hidden;
}
.listing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(2px);
}
.listing-card.urgent { border-left-color: var(--danger); }
.listing-card .listing-content {
    padding: 16px 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}
.listing-route {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
}
.route-point { text-align: center; min-width: 100px; }
.route-point .city {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}
.route-point .country {
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.route-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gray-400);
}
.route-arrow .distance {
    font-size: 11px;
    color: var(--gray-600);
    white-space: nowrap;
}
.route-arrow i { font-size: 18px; color: var(--primary-light); }
.listing-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.listing-detail {
    display: flex;
    flex-direction: column;
}
.listing-detail .label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    font-weight: 600;
}
.listing-detail .value {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}
.listing-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.listing-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--success);
}
.listing-price .currency { font-size: 13px; font-weight: 600; }
.listing-price.negotiable { color: var(--secondary); font-size: 14px; }
.listing-meta {
    font-size: 11px;
    color: var(--gray-500);
    display: flex;
    gap: 12px;
}
.listing-meta i { margin-right: 3px; }

.urgent-badge {
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* === FEATURES SECTION === */
.features {
    padding: 60px 0;
    background: var(--white);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
}
.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.feature-card:hover { background: var(--gray-100); transform: translateY(-3px); }
.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: white;
    font-size: 28px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--dark); }
.feature-card p { font-size: 13px; color: var(--gray-600); line-height: 1.7; }

/* === SECTION HEADERS === */
.section-title {
    text-align: center;
    margin-bottom: 10px;
}
.section-title h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
}
.section-title p {
    color: var(--gray-600);
    font-size: 15px;
    margin-top: 8px;
}

/* === TABLES === */
.table-responsive { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
}
table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}
table th {
    background: var(--gray-100);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-600);
}
table tr:hover { background: rgba(26,82,118,0.03); }

/* === BADGES === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-success { background: rgba(39,174,96,0.12); color: var(--success); }
.badge-danger { background: rgba(231,76,60,0.12); color: var(--danger); }
.badge-warning { background: rgba(243,156,18,0.12); color: var(--warning); }
.badge-info { background: rgba(52,152,219,0.12); color: var(--info); }
.badge-secondary { background: rgba(153,153,153,0.12); color: var(--gray-600); }
.badge-primary { background: rgba(26,82,118,0.12); color: var(--primary); }

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    background: var(--white);
    border: 1px solid var(--gray-300);
    transition: var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* === ALERTS === */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success { background: rgba(39,174,96,0.1); color: #1e8449; border-left: 4px solid var(--success); }
.alert-danger { background: rgba(231,76,60,0.1); color: #c0392b; border-left: 4px solid var(--danger); }
.alert-warning { background: rgba(243,156,18,0.1); color: #d68910; border-left: 4px solid var(--warning); }
.alert-info { background: rgba(52,152,219,0.1); color: #2471a3; border-left: 4px solid var(--info); }

/* === HOW IT WORKS === */
.how-it-works {
    padding: 60px 0;
    background: var(--gray-100);
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.step {
    text-align: center;
    position: relative;
}
.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin: 0 auto 15px;
}
.step h3 { font-size: 16px; margin-bottom: 8px; color: var(--dark); }
.step p { font-size: 13px; color: var(--gray-600); }

/* === PRICING === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.pricing-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}
.pricing-card.popular {
    border-color: var(--secondary);
    transform: scale(1.05);
}
.pricing-card.popular::before {
    content: 'POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 3px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card h3 { font-size: 20px; color: var(--dark); margin-bottom: 8px; }
.pricing-price {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    margin: 15px 0;
}
.pricing-price .period { font-size: 14px; font-weight: 400; color: var(--gray-600); }
.pricing-price .currency { font-size: 18px; }
.pricing-features {
    text-align: left;
    margin: 20px 0;
}
.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 13px;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 8px;
}
.pricing-features li i { color: var(--success); font-size: 14px; }

/* === SIDEBAR === */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 25px;
}
.sidebar .card { margin-bottom: 15px; }
.sidebar .card-header { padding: 12px 16px; }
.sidebar .card-body { padding: 16px; }
.sidebar .filter-group { margin-bottom: 15px; }
.sidebar .filter-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

/* === DASHBOARD === */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
}
.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}
.stat-icon.blue { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.stat-icon.orange { background: linear-gradient(135deg, var(--secondary), #f39c12); }
.stat-icon.green { background: linear-gradient(135deg, var(--success), #2ecc71); }
.stat-icon.red { background: linear-gradient(135deg, var(--danger), #e74c3c); }
.stat-info .stat-number {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}
.stat-info .stat-label {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* === FOOTER === */
.footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 50px 0 20px;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}
.footer h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 18px;
    font-weight: 700;
}
.footer p { font-size: 13px; line-height: 1.8; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--gray-400); font-size: 13px; }
.footer-links a:hover { color: var(--white); padding-left: 5px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

/* === AUTH PAGES === */
.auth-container {
    max-width: 460px;
    margin: 40px auto;
}
.auth-container .card { border-top: 4px solid var(--primary); }
.auth-container .card-body { padding: 30px; }
.auth-title {
    text-align: center;
    margin-bottom: 25px;
}
.auth-title h2 { font-size: 22px; color: var(--dark); }
.auth-title p { color: var(--gray-600); font-size: 14px; margin-top: 5px; }

/* === ADMIN === */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 260px;
    background: var(--gray-900);
    color: var(--white);
    padding-top: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}
.admin-sidebar .sidebar-brand {
    padding: 20px;
    font-size: 20px;
    font-weight: 800;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-sidebar .sidebar-brand span { color: var(--secondary); }
.admin-nav { padding: 15px 0; }
.admin-nav-section { padding: 8px 20px; font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gray-500); margin-top: 10px; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: var(--gray-400);
    font-size: 14px;
    transition: var(--transition);
}
.admin-nav a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.admin-nav a.active { background: rgba(41,128,185,0.2); color: var(--primary-light); border-left: 3px solid var(--primary-light); }
.admin-nav a i { width: 20px; text-align: center; }
.admin-content { margin-left: 260px; flex: 1; padding: 25px; background: var(--bg); }
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background: var(--white);
    padding: 16px 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* === TABS === */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--gray-200); margin-bottom: 20px; }
.tab-btn {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* === MODALS === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 550px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 { font-size: 18px; }
.modal-close {
    background: none; border: none; font-size: 22px;
    cursor: pointer; color: var(--gray-500);
}
.modal-body { padding: 22px; }
.modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* === RATING STARS === */
.stars { color: var(--warning); }
.stars .empty { color: var(--gray-300); }

/* === TRUCK TYPE ICONS === */
.truck-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
}

/* === LOADING === */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--gray-500);
}
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--gray-500);
}
.empty-state i { font-size: 60px; margin-bottom: 15px; color: var(--gray-300); }
.empty-state h3 { font-size: 18px; color: var(--gray-700); margin-bottom: 8px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .features-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
    .content-with-sidebar { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-stats { gap: 25px; }
    .listing-card .listing-content { grid-template-columns: 1fr; gap: 12px; }
    .listing-route { min-width: auto; }
}
@media (max-width: 768px) {
    .navbar-brand .logo-img { height: 34px; }
    .navbar-menu { display: none; }
    .navbar-toggle { display: block; }
    .navbar-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow-lg);
        padding: 15px;
        gap: 5px;
    }
    .navbar-menu .nav-divider { display: none; }
    /* Mobile dropdowns - collapsed by default, toggle with JS */
    .nav-dropdown::after { display: none !important; }
    .nav-dropdown-menu {
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 0 0 15px !important;
        min-width: auto !important;
        pointer-events: auto !important;
        background: transparent !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }
    .nav-dropdown.open > .nav-dropdown-menu {
        max-height: 500px;
    }
    .nav-dropdown-menu::before { display: none !important; }
    .nav-dropdown-menu a { padding: 8px 12px !important; font-size: 13px !important; }
    .nav-dropdown > a .fa-chevron-down {
        display: inline-block;
        transition: transform 0.2s;
        font-size: 10px;
        opacity: 0.5;
    }
    .nav-dropdown.open > a .fa-chevron-down { transform: rotate(180deg); }
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 15px; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .search-form { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .features-grid, .steps-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card.popular { transform: none; }
    .dashboard-stats { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .admin-content { margin-left: 0; }
}

/* ============================================
   DARK MODE
   ============================================ */
.dark-mode-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: inherit;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.3s;
}
.dark-mode-toggle:hover { background: rgba(255,255,255,0.1); }

[data-theme="dark"] {
    --gray-50: #1a1a2e;
    --gray-100: #16213e;
    --gray-200: #1e3054;
    --gray-300: #2a4070;
    --gray-400: #4a6080;
    --gray-500: #7a8da0;
    --gray-600: #a0b0c0;
    --gray-700: #c0d0e0;
    --gray-800: #e0e8f0;
    --gray-900: #f0f4f8;
}

.dark-mode {
    background-color: #0f1117;
    color: #e0e8f0;
}
.dark-mode .top-bar { background: #0a0e1a; }
.dark-mode .navbar { background: #111827; border-bottom-color: #1e3054; }
.dark-mode .navbar-brand span { color: #e67e22; }
.dark-mode .navbar-brand .logo-img { filter: brightness(1.3) saturate(1.1); }
.dark-mode .card { background: #1a1f2e; border-color: #2a3548; }
.dark-mode .card-header { background: #151a28; border-color: #2a3548; }
.dark-mode .form-control { background: #111827; border-color: #2a3548; color: #e0e8f0; }
.dark-mode .form-control:focus { border-color: #2980b9; }
.dark-mode .main-content { background: #0f1117; }
.dark-mode .hero { background: linear-gradient(135deg, #0a1628 0%, #1a2744 100%); }
.dark-mode .footer { background: #080c14; }
.dark-mode .alert-success { background: #0a2e1a; color: #6ee7b7; border-color: #27ae60; }
.dark-mode .alert-danger { background: #2e0a0a; color: #fca5a5; border-color: #e74c3c; }
.dark-mode .alert-warning { background: #2e2a0a; color: #fcd34d; }
.dark-mode .btn-outline { border-color: #2a3548; color: #a0b0c0; }
.dark-mode .btn-outline:hover { border-color: #2980b9; color: #2980b9; }
.dark-mode .listing-card { background: #1a1f2e; border-color: #2a3548; }
.dark-mode .listing-card:hover { border-color: #2980b9; }
.dark-mode .pricing-card { background: #1a1f2e; border-color: #2a3548; }
.dark-mode .badge { opacity: 0.9; }
.dark-mode .auth-container .card { background: #1a1f2e; }
.dark-mode a { color: #60a5fa; }
.dark-mode .tabs .tab { color: #a0b0c0; border-color: #2a3548; }
.dark-mode .tabs .tab.active { color: #60a5fa; border-color: #60a5fa; }
.dark-mode .search-box { background: #1a1f2e; border-color: #2a3548; }
.dark-mode table th { background: #151a28; }
.dark-mode table td { border-color: #2a3548; }

/* ============================================
   TOPBAR BADGES
   ============================================ */
.topbar-badge-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.topbar-badge {
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 16px;
}
.nav-admin-link {
    color: var(--secondary) !important;
    font-weight: 600;
}

/* ============================================
   MESSAGING SYSTEM
   ============================================ */
.message-item {
    display: flex;
    gap: 15px;
    padding: 15px 18px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    align-items: center;
    background: var(--gray-50);
}
.message-item:hover { border-color: var(--primary-light); background: #fff; transform: translateX(3px); }
.dark-mode .message-item { background: #151a28; border-color: #2a3548; }
.dark-mode .message-item:hover { background: #1a1f2e; }
.message-item.unread { background: #fff; border-left: 4px solid var(--primary); font-weight: 500; }
.dark-mode .message-item.unread { background: #1a2744; }
.message-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.message-content { flex: 1; min-width: 0; }
.message-header { display: flex; justify-content: space-between; margin-bottom: 3px; }
.message-time { font-size: 12px; color: var(--gray-500); white-space: nowrap; }
.message-subject { font-size: 14px; margin-bottom: 3px; }
.message-preview { font-size: 13px; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================
   TABS
   ============================================ */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    gap: 0;
}
.tab {
    padding: 10px 20px;
    text-decoration: none;
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ============================================
   NOTIFICATIONS
   ============================================ */
.notification-item {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    align-items: center;
    background: var(--gray-50);
}
.notification-item:hover { background: #fff; border-color: var(--primary-light); }
.dark-mode .notification-item { background: #151a28; border-color: #2a3548; }
.notification-item.unread { background: #fff; border-left: 4px solid var(--secondary); }
.dark-mode .notification-item.unread { background: #1a2744; }
.notif-icon {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.notif-content { flex: 1; }
.notif-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.notif-message { font-size: 13px; color: var(--gray-600); }
.notif-time { font-size: 12px; color: var(--gray-400); margin-top: 3px; }
.notif-dot { width: 10px; height: 10px; background: var(--secondary); border-radius: 50%; flex-shrink: 0; }

/* ============================================
   PROFILE
   ============================================ */
.profile-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 32px; flex-shrink: 0;
}
.profile-header-card .card-body { background: linear-gradient(to right, #f8fafc, #fff); }
.dark-mode .profile-header-card .card-body { background: linear-gradient(to right, #151a28, #1a1f2e); }
.review-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}
.review-item:last-child { border-bottom: none; }

/* Star Rating Input */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}
.star-rating-input input { display: none; }
.star-rating-input label {
    cursor: pointer;
    font-size: 24px;
    color: #d1d5db;
    transition: color 0.2s;
}
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label { color: #f59e0b; }

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.faq-item:hover { border-color: var(--gray-300); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.faq-item.open { border-color: var(--primary); box-shadow: 0 4px 15px rgba(26,82,118,0.1); }
.dark-mode .faq-item { border-color: #2a3548; }
.dark-mode .faq-item.open { border-color: var(--primary); }
.faq-question {
    width: 100%;
    padding: 16px 20px;
    background: var(--white);
    border: none;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    color: inherit;
    transition: background 0.2s;
    gap: 12px;
}
.faq-question span { display: flex; align-items: center; gap: 12px; }
.faq-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.2s;
}
.faq-item.open .faq-num { background: var(--primary); color: #fff; }
.dark-mode .faq-question { background: #151a28; }
.faq-question:hover { background: var(--gray-50); }
.dark-mode .faq-question:hover { background: #1a1f2e; }
.faq-icon { 
    transition: transform 0.3s; 
    color: var(--gray-400); 
    font-size: 14px; 
    flex-shrink: 0; 
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--primary); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner {
    padding: 0 20px 18px 58px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray-600);
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-content h2 { font-size: 18px; margin: 25px 0 12px; color: var(--primary); }
.legal-content h3 { font-size: 16px; margin: 20px 0 10px; }
.legal-content p { font-size: 14px; line-height: 1.8; margin-bottom: 12px; }
.legal-content ul { margin: 10px 0 10px 25px; }
.legal-content li { font-size: 14px; line-height: 1.7; }

/* ============================================
   MAP
   ============================================ */
.leaflet-container { font-family: inherit; }

/* ============================================
   AUTOCOMPLETE
   ============================================ */
.autocomplete-wrapper { position: relative; }
.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--gray-300);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
}
.dark-mode .autocomplete-list { background: #1a1f2e; border-color: #2a3548; }
.autocomplete-list.active { display: block; }
.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
}
.autocomplete-item:hover { background: var(--gray-50); }
.dark-mode .autocomplete-item:hover { background: #151a28; }
.autocomplete-item .city-name { font-weight: 500; }
.autocomplete-item .city-county { font-size: 12px; color: var(--gray-500); }

/* ============================================
   PROMOTED LOADS
   ============================================ */
.listing-card.promoted {
    border: 2px solid #f59e0b;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
    position: relative;
}
.listing-card.promoted:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.25);
}

/* ============================================
   FLOATING WHATSAPP BUTTON (global)
   ============================================ */
.wa-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 8000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all 0.3s;
    animation: waPulse 2s infinite;
}
.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}
@keyframes waPulse {
    0% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 25px rgba(37,211,102,0.6); }
    100% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
}

/* ============================================
   STICKY GUEST CTA BAR (bottom)
   ============================================ */
.guest-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 8500;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    font-size: 14px;
}
.guest-cta-bar a {
    color: #fff;
    text-decoration: none;
}
.guest-cta-bar .btn-cta {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}
.guest-cta-bar .btn-cta:hover {
    background: linear-gradient(135deg, #15803d, #16a34a);
}
.guest-cta-bar .close-cta {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
}

@media (max-width: 768px) {
    .wa-float { width: 48px; height: 48px; font-size: 24px; bottom: 70px; right: 15px; }
    .guest-cta-bar { flex-wrap: wrap; gap: 8px; padding: 8px 15px; font-size: 12px; }
    .guest-cta-bar span { display: none; }
}
