/* NOVATRAX CSS Design System - Industrial Premium B2B Style */

/* CSS Reset & Variables */
:root {
    --bg-main: #0b0d13;
    --bg-surface: #131722;
    --bg-surface-elevated: #1e2334;
    --border-color: #262c41;
    --border-color-hover: #3a4363;
    
    /* Harmonious HSL Colors */
    --primary: #ff5e00;          /* Safety Orange */
    --primary-hover: #e05300;
    --primary-glow: rgba(255, 94, 0, 0.2);
    
    --accent: #ffae00;           /* BTP Yellow */
    --accent-hover: #e09900;
    
    --success: #00e676;          /* Connected Green */
    --success-glow: rgba(0, 230, 118, 0.15);
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-inverse: #0b0d13;
    
    --font-headings: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.25);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.4);
    --shadow-primary: 0 4px 15px rgba(255, 94, 0, 0.3);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

/* Utility Components */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.font-bold { font-weight: 700; }
.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Top Notification Banner */
.top-banner {
    background-color: #07090d;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    padding: 10px 0;
    color: var(--text-muted);
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.banner-links {
    display: flex;
    gap: 20px;
}

.banner-links a:hover {
    color: var(--text-main);
}

/* Main Navigation Header */
.main-header {
    background-color: rgba(19, 23, 34, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.header-container {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Design */
.logo {
    font-family: var(--font-headings);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

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

.logo-tag {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Navigation Links */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    font-family: var(--font-headings);
    font-weight: 500;
    font-size: 15px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--text-main);
}

.nav-menu a.active {
    border-bottom-color: var(--primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-quote-cart {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-quote-cart:hover {
    border-color: var(--primary);
    background-color: rgba(255, 94, 0, 0.05);
}

.btn-quote-cart .badge {
    background-color: var(--primary);
    color: var(--text-main);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
    box-shadow: var(--shadow-primary);
}

/* Profile B2B */
.client-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
}

.client-profile .avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.profile-role {
    font-size: 11px;
    color: var(--success);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-role::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--success);
    border-radius: var(--radius-full);
    display: inline-block;
}

/* Hero Section */
.hero-section {
    background-image: linear-gradient(rgba(11, 13, 19, 0.75), rgba(11, 13, 19, 0.95)), url('images/stark_excavator.png');
    background-size: cover;
    background-position: center;
    padding: 110px 0 150px 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

/* Cameroon Badge Styling */
.cameroon-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(19, 23, 34, 0.85);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    margin-bottom: 24px;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(4px);
}

.cameroon-badge span {
    display: inline-block;
    width: 12px;
    height: 18px;
    border-radius: 1px;
}

.flag-green { background-color: #007a5e; }
.flag-red { 
    background-color: #ce1126; 
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.flag-red i {
    font-size: 7px;
    color: #fcd116;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}
.flag-yellow { background-color: #fcd116; }

/* Image Visual Container inside Cards */
.visual-img-container {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-normal);
}

.engine-card:hover .visual-img-container {
    transform: scale(1.06);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-family: var(--font-headings);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 45px;
    font-weight: 400;
}

/* Search Widget */
.search-widget {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.widget-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr auto;
    gap: 16px;
    align-items: flex-end;
}

.widget-field {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.widget-field label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.widget-field input, .widget-field select {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 14px;
    width: 100%;
    transition: var(--transition-fast);
}

.widget-field input:focus, .widget-field select:focus {
    border-color: var(--primary);
}

.date-picker-mock {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 12px;
}

.date-picker-mock input {
    border: none;
    padding: 14px 0;
    background: none;
}

.date-picker-mock span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.btn-search-submit {
    background-color: var(--primary);
    color: var(--text-main);
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 15px;
    padding: 16px 30px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-primary);
    height: 52px;
}

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

/* Sections Controls */
.main-container {
    padding-top: 60px;
    padding-bottom: 80px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Section Header Styling */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.section-title {
    font-family: var(--font-headings);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.section-description {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 5px;
}

.fleet-availability {
    font-size: 14px;
    font-weight: 500;
    background-color: rgba(0, 230, 118, 0.05);
    border: 1px solid rgba(0, 230, 118, 0.15);
    padding: 8px 16px;
    border-radius: var(--radius-full);
}

/* Catalog Grid & Filters Layout */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar Filters styling */
.catalog-filters {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-lg);
    height: fit-content;
    position: sticky;
    top: 100px;
}

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

.filter-header h3 {
    font-family: var(--font-headings);
    font-size: 18px;
    font-weight: 700;
}

.btn-clear-filters {
    font-size: 12px;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
}

.btn-clear-filters:hover {
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.filter-group:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.filter-title {
    font-family: var(--font-headings);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-fast);
}

.checkbox-item input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-surface-elevated);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-fast);
}

.checkbox-item input:checked {
    border-color: var(--primary);
    background-color: var(--primary);
}

.checkbox-item input:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: var(--text-main);
}

.checkbox-item:hover {
    color: var(--text-main);
}

.checkbox-item:hover input {
    border-color: var(--border-color-hover);
}

/* Range Slider Styling */
.range-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.range-slider {
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-full);
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    background: var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow-primary);
    transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Telematics Sidebar Badge */
.telematics-badge-sidebar {
    background-color: rgba(255, 94, 0, 0.03);
    border: 1px dashed rgba(255, 94, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 24px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.telematics-badge-sidebar .icon-pulse {
    font-size: 20px;
    color: var(--primary);
    position: relative;
}

.telematics-badge-sidebar h5 {
    font-family: var(--font-headings);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.telematics-badge-sidebar p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Dynamic Catalog Cards grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* Engine Card Design */
.engine-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    position: relative;
}

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

.card-badge-status {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    background-color: rgba(11, 13, 19, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Machine Graphical Representation */
.card-media-visual {
    height: 180px;
    background: linear-gradient(135deg, #161a29 0%, #0d1017 100%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.card-media-visual::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 94, 0, 0.05) 0%, transparent 70%);
    border-radius: var(--radius-full);
}

.visual-img-container {
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.visual-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-normal);
}

.engine-card:hover .visual-img-container img {
    transform: scale(1.06);
}

.img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 24px;
    background-color: var(--bg-surface-elevated);
}

.img-fallback span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* SVG Machinery Styling */
.svg-machinery {
    width: 120px;
    height: 100px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 4px 10px rgba(255, 174, 0, 0.2));
    transition: var(--transition-normal);
}

.engine-card:hover .svg-machinery {
    stroke: var(--primary);
    filter: drop-shadow(0 4px 15px rgba(255, 94, 0, 0.4));
    transform: scale(1.05);
}

.energy-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}

.energy-tag.diesel { border-color: #3b82f6; color: #60a5fa; }
.energy-tag.hybride { border-color: #a855f7; color: #c084fc; }
.energy-tag.electrique { border-color: var(--success); color: var(--success); }

/* Card Content Details */
.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-brand {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 4px;
}

.card-title {
    font-family: var(--font-headings);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

/* Specifications bullet grid */
.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 11px;
    color: var(--text-muted);
}

.spec-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Tarifs box */
.price-degressive-box {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rate-line {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.rate-line.highlight {
    font-weight: 700;
    color: var(--text-main);
}

.rate-value {
    color: var(--text-main);
    font-weight: 600;
}

.btn-add-quote {
    background-color: var(--bg-surface-elevated);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    font-family: var(--font-headings);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    transition: var(--transition-normal);
}

.btn-add-quote:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

.btn-add-quote.added {
    background-color: rgba(0, 230, 118, 0.1);
    color: var(--success);
    border-color: var(--success);
}

/* ================= B2B TELEMATICS SPACE ================= */
.live-status-pill {
    font-size: 13px;
    font-weight: 600;
    background-color: rgba(0, 230, 118, 0.05);
    border: 1px solid rgba(0, 230, 118, 0.2);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: var(--radius-full);
}

.animate-pulse {
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.portal-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.portal-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    position: relative;
    gap: 20px;
}

.portal-card .card-icon {
    width: 48px;
    height: 48px;
    background-color: var(--bg-surface-elevated);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: var(--primary);
}

.portal-card .card-data h3 {
    font-family: var(--font-headings);
    font-size: 20px;
    font-weight: 700;
}

.portal-card .card-data p {
    font-size: 13px;
    color: var(--text-muted);
}

.card-trend {
    position: absolute;
    bottom: 24px;
    right: 24px;
    font-size: 11px;
    font-weight: 600;
}

/* Telematics Layout Area */
.telematics-workspace {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.telematics-list-wrapper h3 {
    font-family: var(--font-headings);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.telematics-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.telematics-row {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.telematics-row:hover, .telematics-row.active {
    border-color: var(--primary);
    background-color: var(--bg-surface-elevated);
}

.telematics-row-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 14px;
}

.telematics-row-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.telematics-row-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-top: 10px;
}

/* Telematics Details Board styling */
.telematics-details-panel {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.details-header h3 {
    font-family: var(--font-headings);
    font-size: 16px;
    font-weight: 700;
}

.machine-tag {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--primary);
}

.telematics-visualizer {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

/* Simulated Map */
.telematics-map-wrapper {
    background-color: #0d1017;
    height: 280px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.map-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.map-pin {
    position: absolute;
    left: 60%;
    top: 40%;
    font-size: 24px;
    color: var(--primary);
    z-index: 10;
    transition: all 0.5s ease;
}

.pin-sonar {
    position: absolute;
    left: -10px;
    top: -10px;
    width: 44px;
    height: 44px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: sonar 1.8s infinite ease-out;
}

@keyframes sonar {
    0% { transform: scale(0.2); opacity: 0.8; }
    80% { transform: scale(1.2); opacity: 0; }
    100% { opacity: 0; }
}

.map-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(11, 13, 19, 0.85);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    border: 1px solid var(--border-color);
}

.map-coordinates {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 10px;
    font-family: monospace;
    color: var(--text-muted);
}

/* Sensor Gauges */
.sensor-gauges {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.gauge-card {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gauge-title {
    font-size: 12px;
    color: var(--text-muted);
}

.gauge-bar-wrapper {
    height: 8px;
    background-color: var(--bg-surface);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.gauge-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
}

.energy-fill { background: linear-gradient(90deg, #3b82f6, var(--success)); }
.temp-fill { background: linear-gradient(90deg, #ffae00, #ef4444); }
.load-fill { background: linear-gradient(90deg, #10b981, #f59e0b); }

.gauge-value {
    font-size: 16px;
    font-weight: 700;
    text-align: right;
}

/* Diagnostics Logs console */
.diagnostics-logs {
    background-color: #07090d;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    font-family: monospace;
    font-size: 11px;
    max-height: 150px;
    overflow-y: auto;
}

.diagnostics-logs h4 {
    font-family: var(--font-headings);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.logs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.logs-list li {
    display: flex;
    gap: 12px;
}

.log-time { color: var(--primary); }
.log-msg { color: var(--text-main); }

/* ================= MODAL DIALOGS ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 13, 19, 0.85);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: modal-enter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-enter {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

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

.modal-header h2 {
    font-family: var(--font-headings);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    cursor: pointer;
    font-size: 20px;
    color: var(--text-muted);
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
}

.modal-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}

/* Cart list inside modal */
.cart-items-section h3, .quote-form-section h3 {
    font-family: var(--font-headings);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item-row {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-info h4 {
    font-family: var(--font-headings);
    font-size: 15px;
}

.cart-item-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-remove-item {
    color: #ef4444;
    cursor: pointer;
}

/* Pricing summary inside quote cart */
.logistics-calculator {
    margin-bottom: 24px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 12px;
    color: var(--text-muted);
}

.form-group input, .form-group textarea {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    width: 100%;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
}

.input-helper {
    font-size: 11px;
    color: var(--text-muted);
}

.pricing-summary-box {
    background-color: #0d1017;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

.summary-line.highlight {
    color: var(--text-main);
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 4px 0;
}

.summary-line.total {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
}

/* Quote Request Submit Form */
.btn-submit-quote {
    background-color: var(--primary);
    color: var(--text-main);
    font-family: var(--font-headings);
    font-weight: 700;
    padding: 14px;
    border-radius: var(--radius-md);
    width: 100%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-primary);
    transition: var(--transition-normal);
}

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

/* Success Modal styling */
.success-content {
    max-width: 550px;
    padding: 40px;
    align-items: center;
    text-align: center;
}

.success-icon {
    font-size: 64px;
    color: var(--success);
    margin-bottom: 20px;
}

.success-reference {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    display: inline-block;
    margin: 10px 0 20px 0;
}

.success-next-steps {
    text-align: left;
    background-color: #0d1017;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    width: 100%;
    margin-top: 20px;
}

.success-next-steps h4 {
    margin-bottom: 12px;
    font-size: 14px;
}

.success-next-steps ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
}

.success-next-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-close-success {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    margin-top: 30px;
    width: 100%;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-close-success:hover {
    border-color: var(--primary);
}

/* Chat bubble mockup */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.chat-trigger {
    width: 56px;
    height: 56px;
    background-color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.chat-trigger:hover {
    transform: scale(1.08);
}

.chat-header {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-body {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 var(--radius-lg);
    font-size: 13px;
    max-width: 250px;
}

/* Footer Styling */
.main-footer {
    background-color: #07090d;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px 0;
    font-size: 14px;
    color: var(--text-muted);
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand p {
    line-height: 1.6;
}

.social-icons {
    display: flex;
    gap: 14px;
    font-size: 20px;
}

.social-icons a:hover {
    color: var(--primary);
}

.footer-links h4 {
    font-family: var(--font-headings);
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.bottom-links {
    display: flex;
    gap: 20px;
    font-size: 13px;
}

.bottom-links a:hover {
    color: var(--text-main);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    .catalog-filters {
        position: static;
    }
    .telematics-workspace {
        grid-template-columns: 1fr;
    }
    .portal-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .modal-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .widget-row {
        grid-template-columns: 1fr;
    }
    .header-container {
        height: auto;
        padding: 16px 0;
        flex-direction: column;
        gap: 16px;
    }
    .nav-menu ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .hero-content h1 {
        font-size: 24px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ================= NEW COMPONENT STYLES ================= */

/* Glassmorphism Header */
.main-header {
    backdrop-filter: blur(16px) saturate(120%);
    background-color: rgba(19, 23, 34, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Tab menu item hover glow */
.nav-menu a {
    position: relative;
    overflow: hidden;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
.nav-menu a:hover::after, .nav-menu a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Sensor Fill Colors */
.rpm-fill { background: linear-gradient(90deg, #10b981, #ffae00); }
.consumption-fill { background: linear-gradient(90deg, #60a5fa, #f59e0b); }

/* Telematics Remote Controls */
.telematics-remote-control {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 20px;
}
.telematics-remote-control h4 {
    font-family: var(--font-headings);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.remote-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.btn-remote-action {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 6px;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-normal);
}
.btn-remote-action i {
    font-size: 18px;
}
.btn-remote-action.btn-horn { color: var(--accent); }
.btn-remote-action.btn-horn:hover {
    border-color: var(--accent);
    background-color: rgba(255, 174, 0, 0.05);
    box-shadow: 0 0 10px rgba(255, 174, 0, 0.15);
}
.btn-remote-action.btn-kill { color: #ef4444; }
.btn-remote-action.btn-kill:hover {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}
.btn-remote-action.btn-service { color: var(--success); }
.btn-remote-action.btn-service:hover {
    border-color: var(--success);
    background-color: rgba(0, 230, 118, 0.05);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.15);
}

/* Chantiers / Services styles */
.btn-filter-chantier {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
}
.btn-filter-chantier:hover, .btn-filter-chantier.active {
    color: var(--text-main);
    border-color: var(--primary);
    background-color: rgba(255, 94, 0, 0.05);
}

.chantier-card {
    transition: var(--transition-normal);
}
.chantier-card:hover {
    transform: translateY(-5px);
}
.chantier-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 10px;
    font-weight: 700;
    background-color: rgba(255, 174, 0, 0.9);
    color: #0b0d13;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}
.chantier-status-badge.success {
    background-color: rgba(0, 230, 118, 0.9);
}
.chantier-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary);
}
.chantier-desc {
    line-height: 1.5;
}

/* Agences / Depots styles */
.agences-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
}
.depot-card {
    border: 1px solid var(--border-color);
}
.depot-card:hover {
    border-color: var(--primary-hover) !important;
}
.btn-whatsapp-depot:hover {
    background-color: #1ebd59 !important;
    transform: translateY(-2px);
}
.map-depot-pin:hover {
    transform: translate(-50%, -60%) scale(1.1) !important;
}
.map-depot-pin.glow-pin .pin-sonar {
    display: block !important;
}

/* Invoice Print Modal Styles */
.invoice-modal-content {
    background-color: #fff !important;
}
.invoice-sheet {
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.btn-preview-quote:hover {
    background-color: rgba(255,94,0,0.1) !important;
    border-color: var(--primary-hover) !important;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .agences-layout {
        grid-template-columns: 1fr;
    }
    .remote-actions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .remote-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= PRINT STYLE SHEETS ================= */
@media print {
    body * {
        visibility: hidden;
    }
    #invoice-modal, #invoice-modal * {
        visibility: visible;
    }
    #invoice-modal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background-color: #fff !important;
        box-shadow: none !important;
    }
    .modal-header, #btn-print-invoice, #btn-back-to-cart, .modal-close {
        display: none !important;
    }
    .invoice-sheet {
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
}

/* ================= GALLERY & LIGHTBOX CUSTOM STYLES ================= */
.btn-gallery-filter {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-gallery-filter:hover, .btn-gallery-filter.active {
    color: var(--text-main);
    border-color: var(--primary);
    background-color: rgba(255, 94, 0, 0.05);
    box-shadow: 0 0 8px rgba(255, 94, 0, 0.15);
}

.gallery-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

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

.gallery-img-container {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #0b0d13;
}

.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.gallery-card:hover .gallery-img-container img {
    transform: scale(1.08);
}

.gallery-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(11, 13, 19, 0.8) 100%);
    opacity: 0;
    transition: var(--transition-normal);
    display: flex;
    align-items: flex-end;
    padding: 15px;
}

.gallery-card:hover .gallery-img-overlay {
    opacity: 1;
}

.gallery-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gallery-card-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 6px;
    display: inline-block;
}

.gallery-card-title {
    font-family: var(--font-headings);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.3;
}

.gallery-card-location {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.btn-lang-toggle:hover {
    color: var(--primary) !important;
}

@media (max-width: 768px) {
    .lightbox-grid {
        grid-template-columns: 1fr !important;
    }
    .lightbox-content {
        max-height: 95vh;
        overflow-y: auto;
    }
}

/* Dynamic Gallery Video Overlay & Badges */
.gallery-video-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background-color: rgba(255, 94, 0, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 94, 0, 0.3);
    transition: var(--transition-normal);
}

.gallery-card:hover .gallery-video-badge {
    transform: scale(1.05);
    background-color: var(--primary);
    box-shadow: 0 4px 15px rgba(255, 94, 0, 0.5);
}

.gallery-img-container video {
    transition: var(--transition-normal);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-card:hover .gallery-img-container video {
    transform: scale(1.08);
}


