/*
 * TrueTrace - Bright White & Blue Theme
 * Modern, clean, professional GPS tracking platform
 */

/* ============================================================
   CSS VARIABLES / DESIGN TOKENS
   ============================================================ */
:root {
    /* Core palette - Light */
    --bg-primary: #f5f7fb;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f4ff;
    --bg-input: #f5f7fb;
    --bg-glass: rgba(255, 255, 255, 0.85);

    /* Accent colors - Blue */
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-glow: rgba(37, 99, 235, 0.2);
    --accent-subtle: rgba(37, 99, 235, 0.08);
    --accent-2: #7c3aed;
    --accent-2-glow: rgba(124, 58, 237, 0.2);

    /* Status colors */
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #2563eb;

    /* Text */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    /* Borders */
    --border: #e2e8f0;
    --border-accent: rgba(37, 99, 235, 0.3);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 4px 16px rgba(37, 99, 235, 0.15);
    --shadow-glow-lg: 0 8px 32px rgba(37, 99, 235, 0.2);

    /* Radius */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;

    /* Font */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

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

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

img {
    max-width: 100%;
    display: block;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0 4px 4px 0;
    margin: 0 -4px -4px 0;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

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

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar .container.dashboard-nav {
    max-width: 100%;
    padding: 0 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.nav-brand .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    box-shadow: var(--shadow-glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Desktop nav dropdown */
.nav-dropdown {
    position: relative;
}
.nav-dropdown > a::after {
    display: none;
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    min-width: 220px;
    padding: 8px 0;
    z-index: 1000;
    list-style: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(-50%) translateY(4px);
}
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: #fff;
    border-top: 0;
}
.nav-dropdown-menu::after {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu li a {
    display: flex !important;
    align-items: center;
    padding: 10px 18px !important;
    font-size: 0.88rem !important;
    color: var(--text) !important;
    white-space: nowrap;
    transition: background 0.15s ease;
}
.nav-dropdown-menu li a:hover {
    background: var(--bg-secondary);
    color: var(--accent) !important;
}
.nav-dropdown-menu li a::after {
    display: none !important;
}

/* Mobile nav section label & indent */
.mobile-nav-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    border-bottom: none;
}
.mobile-nav-section-label i {
    width: 20px;
    text-align: center;
    font-size: 0.75rem;
}
.mobile-nav-indent {
    padding-left: 32px !important;
    font-size: 0.92rem !important;
}

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

.cart-icon {
    position: relative;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
}
.cart-icon:hover { color: var(--accent); }

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile slide-in menu */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    transition: right 0.3s ease;
    padding: 24px 24px 32px;
    overflow-y: auto;
}
.mobile-nav.active {
    right: 0;
}
.mobile-nav-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    line-height: 1;
}
.mobile-nav-close:hover { color: var(--text-primary); }
.mobile-nav a:not(.btn):not(.mobile-nav-lang-btn) {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}
.mobile-nav a:not(.btn):not(.mobile-nav-lang-btn) i {
    width: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.mobile-nav a:not(.btn):not(.mobile-nav-lang-btn):hover,
.mobile-nav a:not(.btn):not(.mobile-nav-lang-btn).active {
    color: var(--accent);
}
.mobile-nav a:not(.btn):not(.mobile-nav-lang-btn).active i {
    color: var(--accent);
}
.mobile-nav .mobile-nav-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mobile-nav .mobile-nav-actions .btn {
    border-bottom: none;
}
.mobile-nav-lang {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.mobile-nav-lang-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.mobile-nav-lang-options {
    display: flex;
    gap: 8px;
}
.mobile-nav-lang-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm);
    color: var(--text-secondary) !important;
    text-decoration: none;
    transition: var(--transition-fast);
}
.mobile-nav-lang-btn:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}
.mobile-nav-lang-btn.active {
    background: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font);
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-lg);
    color: #ffffff;
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border-accent);
}
.btn-outline:hover {
    background: var(--accent-subtle);
    color: var(--accent);
}

.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
}

.btn-icon {
    padding: 10px;
    width: 40px;
    height: 40px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.card-glow:hover {
    box-shadow: var(--shadow-glow);
}

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

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.product-card .product-image {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card .product-image i {
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.5;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-badge.portable {
    background: var(--accent-2);
    color: white;
}

.product-card .product-info {
    padding: 20px;
}

.product-card .product-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.product-card .product-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
}

.product-card .product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

.product-card .product-monthly {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.product-card .product-features {
    list-style: none;
    margin-bottom: 16px;
}

.product-card .product-features li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 3px 0;
}

.product-card .product-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--success);
    margin-right: 8px;
    font-size: 0.7rem;
}

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

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-family: var(--font);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
    background: #ffffff;
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

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

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

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

/* ============================================================
   TABLE
   ============================================================ */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: var(--bg-primary);
    padding: 14px 16px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

.table td {
    padding: 14px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: var(--bg-card-hover);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.badge-primary { background: rgba(37, 99, 235, 0.1); color: var(--info); }
.badge-success { background: rgba(5, 150, 105, 0.1); color: var(--success); }
.badge-warning { background: rgba(217, 119, 6, 0.1); color: var(--warning); }
.badge-danger { background: rgba(220, 38, 38, 0.1); color: var(--danger); }
.badge-info { background: rgba(37, 99, 235, 0.1); color: var(--accent); }
.badge-accent { background: rgba(124, 58, 237, 0.1); color: var(--accent-2); }
.badge-secondary { background: rgba(148, 163, 184, 0.15); color: var(--text-muted); }

/* ============================================================
   HERO SECTION - Animated Map
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 68px;
    background: #ffffff;
}

.hero-map {
    background: #f8faff;
}

.hero-map #heroMapCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-map-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.92) 0%,
        rgba(255,255,255,0.75) 35%,
        rgba(248,250,255,0.45) 65%,
        rgba(245,247,251,0.3) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-map .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(37, 99, 235, 0.06), transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(124, 58, 237, 0.04), transparent 60%);
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    padding: 20px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    width: fit-content;
}

.hero-stat .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent);
}

.hero-stat .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Floating HUD cards */
.hero-hud {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
}

.hud-card {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 200px;
    box-shadow: var(--shadow-md);
    animation: hudFadeIn 0.8s ease both;
}

.hud-card:nth-child(1) { animation-delay: 0.5s; }
.hud-card:nth-child(2) { animation-delay: 0.8s; }
.hud-card:nth-child(3) { animation-delay: 1.1s; }

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

.hud-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.hud-data {
    display: flex;
    flex-direction: column;
}

.hud-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1.2;
}

.hud-unit {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hud-live {
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hud-coord-val {
    font-size: 1rem;
}

.hero-visual {
    position: relative;
    z-index: 1;
}

/* Pulse animation for live indicator */
.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    display: inline-block;
    position: relative;
}
.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--success);
    opacity: 0.4;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.8); opacity: 0; }
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-subtle);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.text-center .feature-icon {
    margin-left: auto;
    margin-right: auto;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.section.cta-section,
section[style*="background: linear-gradient"],
section[style*="background:linear-gradient"] {
    background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: #1e293b;
    border-top: 1px solid #334155;
    padding: 60px 0 30px;
    color: #cbd5e1;
}

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

.footer-brand p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 12px;
    line-height: 1.6;
}

.footer .nav-brand {
    color: #f1f5f9;
}

.footer h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 68px;
}

.sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid var(--border);
    padding: 24px 0;
    position: fixed;
    top: 72px;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-nav {
    list-style: none;
    padding: 0 12px;
}

.sidebar-nav li {
    margin-bottom: 2px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition-fast);
}

.sidebar-nav a:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.sidebar-nav a.active {
    background: var(--accent-subtle);
    color: var(--accent);
    font-weight: 600;
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.sidebar-section {
    padding: 16px 16px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.dashboard-content {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    min-height: calc(100vh - 72px);
    background: var(--bg-primary);
}

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

.page-header h1 {
    font-size: 1.75rem;
}

.page-header .page-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-card .stat-icon.blue { background: rgba(37, 99, 235, 0.1); color: var(--info); }
.stat-card .stat-icon.green { background: rgba(5, 150, 105, 0.1); color: var(--success); }
.stat-card .stat-icon.purple { background: rgba(124, 58, 237, 0.1); color: var(--accent-2); }
.stat-card .stat-icon.cyan { background: rgba(37, 99, 235, 0.1); color: var(--accent); }
.stat-card .stat-icon.yellow { background: rgba(217, 119, 6, 0.1); color: var(--warning); }
.stat-card .stat-icon.red { background: rgba(220, 38, 38, 0.1); color: var(--danger); }

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================================
   MAP CONTAINER
   ============================================================ */
.tracking-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
}
.map-container {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.map-container.fullscreen {
    height: calc(100vh - 180px);
}

.map-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-device-list {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    max-width: 280px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
}

.map-device-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.map-device-item:hover {
    background: var(--accent-subtle);
}

.map-device-item .device-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.map-device-item .device-info {
    flex: 1;
    min-width: 0;
}

.map-device-item .device-info .name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.map-device-item .device-info .meta {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success { background: rgba(5, 150, 105, 0.08); border: 1px solid rgba(5, 150, 105, 0.2); color: var(--success); }
.alert-danger { background: rgba(220, 38, 38, 0.08); border: 1px solid rgba(220, 38, 38, 0.2); color: var(--danger); }
.alert-warning { background: rgba(217, 119, 6, 0.08); border: 1px solid rgba(217, 119, 6, 0.2); color: var(--warning); }
.alert-info { background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.2); color: var(--accent); }

/* ============================================================
   CART & CHECKOUT
   ============================================================ */
.cart-table {
    width: 100%;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: #eef2ff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.cart-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.qty-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.cart-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 100px;
    text-align: right;
}

.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cart-summary-row.total {
    border-top: 1px solid var(--border);
    margin-top: 10px;
    padding-top: 16px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.cart-summary-row.total .amount {
    color: var(--accent);
}

/* ============================================================
   ORDER CARDS (Orders List)
   ============================================================ */
.order-card {
    transition: box-shadow 0.2s ease;
}
.order-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.order-progress-wrap {
    margin: 14px 0;
}
.order-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.order-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--success));
    border-radius: 4px;
    transition: width 0.5s ease;
}
.order-progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
}
.order-progress-labels span.done {
    color: var(--success);
    font-weight: 600;
}
.order-items-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}
.order-item-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--bg-tertiary, #f8fafc);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}
.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

/* ============================================================
   ORDER TIMELINE
   ============================================================ */
.order-timeline {
    position: relative;
    padding-left: 32px;
}

.order-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

.timeline-item.active .timeline-dot {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.timeline-item.completed .timeline-dot {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.timeline-content h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

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

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
}
.modal-close:hover { color: var(--text-primary); }

/* ============================================================
   LOADING / SKELETON
   ============================================================ */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 32px;
}

.pagination a, .pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: var(--transition-fast);
    background: var(--bg-card);
}

.pagination a:hover {
    background: var(--bg-card-hover);
    color: var(--accent);
    border-color: var(--border-accent);
}

.pagination .active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h3 {
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ============================================================
   TABS
   ============================================================ */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font);
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active {
    background: #ffffff;
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   SIDEBAR MOBILE OPEN STATE
   ============================================================ */
.sidebar.mobile-open {
    display: block;
    position: fixed;
    top: 64px;
    right: 0;
    left: auto;
    bottom: auto;
    width: 240px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 200;
    border-radius: 0 0 0 12px;
    box-shadow: -4px 4px 24px rgba(0,0,0,0.12);
}

/* ============================================================
   HOMEPAGE — RICH SECTIONS
   ============================================================ */

/* ── Comment ça fonctionne — Steps ── */
.hp-how { background: var(--bg-primary); }
.hp-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}
.hp-steps-line {
    position: absolute;
    top: 48px;
    left: 12%;
    right: 12%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #6366f1);
    opacity: 0.15;
    border-radius: 2px;
    z-index: 0;
}
.hp-step {
    text-align: center;
    position: relative;
    z-index: 1;
}
.hp-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #6366f1);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
.hp-step-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    color: var(--accent);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.hp-step:hover .hp-step-icon {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent);
}
.hp-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.hp-step p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 260px;
    margin: 0 auto;
}

/* ── Couverture et Performance ── */
.hp-coverage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.hp-coverage-left h2 {
    font-size: 2rem;
    font-weight: 800;
}
.hp-coverage-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.hp-cov-feat {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.hp-cov-feat-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
}
.hp-cov-feat h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}
.hp-cov-feat p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.hp-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.hp-stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
}
.hp-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}
.hp-stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}
.hp-stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.hp-stat-bar {
    height: 5px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.hp-stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #6366f1);
    border-radius: 3px;
    transition: width 1s ease;
}

/* ── Comparaison des traceurs ── */
.hp-compare { background: var(--bg-primary); }
.hp-compare-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
}
.hp-compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}
.hp-compare-table th,
.hp-compare-table td {
    padding: 14px 18px;
    text-align: center;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
}
.hp-compare-table thead th {
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 2;
}
.hp-compare-feature {
    text-align: left !important;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 180px;
}
.hp-compare-head {
    min-width: 130px;
}
.hp-compare-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.hp-compare-product strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}
.hp-compare-price {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
}
.hp-compare-table tbody tr:hover {
    background: var(--accent-subtle);
}
.hp-compare-table .text-success { color: var(--success); font-size: 1.1rem; }
.hp-compare-table .text-muted { color: var(--text-muted); font-size: 1.1rem; }
.hp-compare-cta-row td {
    border-bottom: none;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* ── Compare: Mobile card carousel (hidden on desktop) ── */
.hp-compare-mobile { display: none; }

.hp-compare-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    scrollbar-width: none;
}
.hp-compare-carousel::-webkit-scrollbar { display: none; }

.hp-compare-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin: 0 8px;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.hp-compare-card:first-child { margin-left: 7.5%; }
.hp-compare-card:last-child { margin-right: 7.5%; }

.hp-compare-card-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 20px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.hp-compare-card-name {
    font-size: 1.15rem;
    color: var(--text-primary);
}
.hp-compare-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
}

.hp-compare-card-features {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}
.hp-compare-card-features li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 20px;
    font-size: 0.84rem;
    border-bottom: 1px solid var(--border);
}
.hp-compare-card-features li:last-child { border-bottom: none; }
.hp-compare-card-label {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}
.hp-compare-card-value {
    text-align: right;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-left: 12px;
}
.hp-compare-card-value .text-success { color: var(--success); font-size: 1.05rem; }
.hp-compare-card-value .text-muted { color: var(--text-muted); font-size: 1.05rem; }

.hp-compare-card-cta {
    padding: 16px 20px 20px;
}

/* Dot indicators */
.hp-compare-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.hp-compare-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.hp-compare-dot.active {
    background: var(--accent);
    transform: scale(1.25);
}

/* ── Témoignages clients ── */
.hp-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.hp-testimonial-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}
.hp-testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.hp-testimonial-stars {
    color: #f59e0b;
    font-size: 0.82rem;
    margin-bottom: 16px;
    display: flex;
    gap: 2px;
}
.hp-testimonial-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
    font-style: italic;
}
.hp-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}
.hp-testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #6366f1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
}
.hp-testimonial-author strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text-primary);
}
.hp-testimonial-author span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── FAQ Homepage ── */
.hp-faq { background: var(--bg-primary); }
.hp-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.hp-faq-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── CTA Homepage ── */
.hp-cta {
    background: var(--bg-primary);
    padding: 64px 0;
}
.hp-cta-trust {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 28px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.8);
}
.hp-cta-trust span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hp-cta-trust i { font-size: 0.9rem; }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */

/* Breadcrumb */
.pd-breadcrumb {
    background: var(--bg-primary);
    padding: 14px 0;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--border);
}
.pd-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.pd-breadcrumb a:hover { color: var(--accent); }
.pd-breadcrumb i.fa-chevron-right {
    font-size: 0.6rem;
    margin: 0 10px;
    color: var(--text-muted);
}
.pd-breadcrumb-current {
    color: var(--text-primary);
    font-weight: 600;
}

/* Hero Section */
.pd-hero {
    padding: 48px 0 32px;
}
.pd-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
.pd-image-wrapper {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 50%, #eef2ff 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    position: relative;
    overflow: hidden;
}
.pd-image-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(37,99,235,0.04) 0%, transparent 50%);
    pointer-events: none;
}
.pd-image-wrapper img {
    width: 100%;
    height: 100%;
    max-height: 360px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.08));
}
.pd-image-placeholder {
    font-size: 7rem;
    color: var(--accent);
    opacity: 0.35;
}

/* Trust badges under image */
.pd-trust-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.pd-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 14px;
}
.pd-trust-badge i {
    color: var(--accent);
    font-size: 0.85rem;
}

/* Purchase info - sticky sidebar */
.pd-info-sticky {
    position: sticky;
    top: 100px;
}
.pd-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.badge-promo {
    background: rgba(220,38,38,0.08);
    color: var(--danger);
    font-weight: 600;
}
.pd-title {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.pd-short-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Rating */
.pd-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.pd-stars {
    color: #f59e0b;
    font-size: 0.9rem;
    display: flex;
    gap: 2px;
}
.pd-rating-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Pricing */
.pd-pricing {
    background: var(--accent-subtle);
    border: 1px solid rgba(37,99,235,0.12);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 20px;
}
.pd-price {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
}
.pd-price-old {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 12px;
}
.pd-savings {
    display: inline-block;
    margin-left: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--danger);
    background: rgba(220,38,38,0.06);
    padding: 4px 10px;
    border-radius: 20px;
}
.pd-monthly {
    margin-top: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.pd-monthly .text-muted { font-size: 0.78rem; }

/* Stock */
.pd-stock { margin-bottom: 20px; font-size: 0.88rem; }
.pd-stock-ok { color: var(--success); font-weight: 600; }
.pd-stock-low { color: var(--warning); font-weight: 600; }
.pd-stock-out { color: var(--danger); font-weight: 600; }

/* Actions */
.pd-actions { margin-bottom: 16px; }
.pd-add-cart {
    width: 100%;
    font-size: 1.05rem;
    padding: 16px 32px;
    font-weight: 700;
    border-radius: var(--radius-lg);
}
.pd-sku {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Section titles */
.pd-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.pd-section-title i { margin-right: 8px; }
.pd-section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
}

/* Highlights */
.pd-highlights { background: var(--bg-primary); }
.pd-highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
}
.pd-highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
}
.pd-highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}
.pd-highlight-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.3rem;
    color: var(--accent);
}
.pd-highlight-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.pd-highlight-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Description */
.pd-description { background: var(--bg-secondary); }
.pd-description-text {
    color: var(--text-secondary);
    line-height: 1.85;
    font-size: 0.95rem;
}

/* Features list */
.pd-features { background: var(--bg-primary); }
.pd-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 24px;
}
.pd-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-card);
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.pd-feature-item i {
    margin-top: 2px;
    flex-shrink: 0;
}

/* Use Cases */
.pd-usecases { background: var(--bg-secondary); }
.pd-usecases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.pd-usecase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    transition: transform 0.25s, box-shadow 0.25s;
}
.pd-usecase-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.pd-usecase-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.15rem;
    color: #ffffff;
}
.pd-usecase-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.pd-usecase-card p {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Specifications Table */
.pd-specs { background: var(--bg-primary); }
.pd-specs-card { overflow: hidden; padding: 0; }
.pd-specs-table {
    width: 100%;
    border-collapse: collapse;
}
.pd-specs-table tr { border-bottom: 1px solid var(--border); }
.pd-specs-table tr:last-child { border-bottom: none; }
.pd-specs-even { background: var(--accent-subtle); }
.pd-specs-key {
    padding: 14px 24px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
    width: 40%;
    text-transform: capitalize;
}
.pd-specs-val {
    padding: 14px 24px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* What's in the Box */
.pd-inbox { background: var(--bg-secondary); }
.pd-inbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 8px 0;
}
.pd-inbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-primary);
    padding: 10px 0;
}
.pd-inbox-item i {
    color: var(--success);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* FAQ Accordion */
.pd-faq { background: var(--bg-primary); }
.pd-faq-list {
    max-width: 800px;
    margin: 24px auto 0;
}
.pd-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.pd-faq-item:hover { box-shadow: var(--shadow-sm); }
.pd-faq-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    gap: 16px;
}
.pd-faq-toggle:hover { color: var(--accent); }
.pd-faq-arrow {
    transition: transform 0.3s;
    color: var(--text-muted);
    flex-shrink: 0;
}
.pd-faq-item.open .pd-faq-arrow {
    transform: rotate(180deg);
    color: var(--accent);
}
.pd-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
}
.pd-faq-item.open .pd-faq-answer {
    max-height: 300px;
    padding: 0 24px 18px;
}
.pd-faq-answer p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Related Products */
.pd-related { background: var(--bg-secondary); }
.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}
.pd-related-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}
.pd-related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}
.pd-related-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8faff, #eef2ff);
    padding: 20px;
}
.pd-related-img img {
    max-height: 140px;
    width: auto;
    object-fit: contain;
}
.pd-related-img i {
    font-size: 3.5rem;
    color: var(--accent);
    opacity: 0.4;
}
.pd-related-info {
    padding: 20px;
}
.pd-related-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.pd-related-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pd-related-price { display: flex; align-items: center; gap: 10px; }
.pd-price-sm {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
}
.pd-price-old-sm {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* CTA Banner */
.pd-cta {
    padding: 64px 0;
    background: var(--bg-primary);
}
.pd-cta-card {
    background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 50%, #6366f1 100%);
    border-radius: var(--radius-xl);
    padding: 56px 48px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
.pd-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}
.pd-cta-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.pd-cta-content { position: relative; z-index: 1; }
.pd-cta-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}
.pd-cta-content p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
.pd-cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.pd-cta-actions .btn-primary {
    background: #ffffff;
    color: var(--accent);
    border-color: #ffffff;
}
.pd-cta-actions .btn-primary:hover {
    background: rgba(255,255,255,0.9);
}
.pd-cta-actions .btn-outline {
    border-color: rgba(255,255,255,0.5);
    color: #ffffff;
}
.pd-cta-actions .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #ffffff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { gap: 24px; }
    .hero-map .container { flex-direction: column; }
    .hero-hud { flex-direction: row; flex-wrap: wrap; gap: 10px; }
    .hud-card { min-width: 160px; }

    /* Product Detail responsive - tablet */
    .pd-highlights-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-usecases-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-hero-grid { gap: 36px; }

    /* Homepage responsive - tablet */
    .hp-steps { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .hp-steps-line { display: none; }
    .hp-coverage-grid { grid-template-columns: 1fr; gap: 40px; }
    .hp-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .section { padding: 48px 0; }
    
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .mobile-nav { display: block; }
    
    /* Compact navbar on mobile: only logo + hamburger */
    .navbar { height: 68px; }
    .navbar .container { padding: 0 16px; }
    .navbar .container.dashboard-nav { padding-right: 64px; } /* room for hamburger toggle */
    .nav-brand img { height: 36px !important; }
    .nav-actions { gap: 12px; }
    .nav-actions .lang-switcher { display: none; }
    .nav-actions .btn-sm { display: none; }
    .nav-actions .text-secondary { display: none; }
    .cart-icon { font-size: 1.15rem; }
    .mobile-toggle { font-size: 1.35rem; padding: 6px; }
    
    .sidebar { display: none; }
    .dashboard-content { margin-left: 0; }
    
    /* Page header: stack on mobile */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }
    .page-header h1 {
        font-size: 1.25rem;
    }
    .page-header .page-subtitle {
        font-size: 0.8rem;
        margin-top: 2px;
    }
    .page-header .flex.gap-1 {
        width: 100%;
        display: flex;
    }
    .page-header .flex.gap-1 select {
        flex: 1;
        min-width: 0;
    }
    .page-header .flex.gap-1 .btn {
        white-space: nowrap;
    }
    
    /* Tracking page: stack map on top, device list below */
    .tracking-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    .tracking-layout .map-container.fullscreen {
        height: 50vh;
        min-height: 280px !important;
        order: -1;
    }
    .tracking-layout > .card {
        max-height: none !important;
        overflow-y: auto;
    }
    
    /* Order cards mobile */
    .order-card-header {
        flex-direction: column;
        gap: 8px;
    }
    .order-card-header > div:last-child {
        text-align: left;
    }
    .order-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .order-card-footer .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-stats { flex-direction: row; gap: 16px; padding: 16px 20px; }
    .hero-stat .stat-value { font-size: 1.35rem; }
    .hero-stat .stat-label { font-size: 0.7rem; }
    .hero-hud { display: none; }
    .hero-map-overlay {
        background: linear-gradient(
            180deg,
            rgba(255,255,255,0.95) 0%,
            rgba(255,255,255,0.85) 50%,
            rgba(248,250,255,0.7) 100%
        );
    }
    
    .cart-item { flex-direction: column; text-align: center; }
    .cart-item-price { text-align: center; }

    /* Product Detail responsive - mobile */
    .pd-hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .pd-info-sticky { position: static; }
    .pd-title { font-size: 1.6rem; }
    .pd-price { font-size: 1.8rem; }
    .pd-highlights-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .pd-usecases-grid { grid-template-columns: 1fr; }
    .pd-features-grid { grid-template-columns: 1fr; }
    .pd-inbox-grid { grid-template-columns: 1fr; }
    .pd-related-grid { grid-template-columns: 1fr; }
    .pd-specs-key { width: 45%; padding: 12px 16px; }
    .pd-specs-val { padding: 12px 16px; }
    .pd-trust-row { gap: 12px; }
    .pd-trust-badge { font-size: 0.72rem; padding: 6px 10px; }
    .pd-cta-card { padding: 36px 24px; }
    .pd-cta-content h2 { font-size: 1.5rem; }
    .pd-section-title { font-size: 1.3rem; }

    /* Homepage responsive - mobile */
    .hp-steps { grid-template-columns: 1fr 1fr; gap: 24px; }
    .hp-steps-line { display: none; }
    .hp-stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .hp-testimonials-grid { grid-template-columns: 1fr; }
    .hp-faq-grid { grid-template-columns: 1fr; }
    .hp-cta-trust { gap: 16px; font-size: 0.75rem; }
    .hp-compare-table { min-width: 600px; }
    .hp-compare-desktop { display: none; }
    .hp-compare-mobile { display: block; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .dashboard-content { padding: 16px; }
    .card { padding: 16px; }
    .hero-stats { gap: 12px; flex-wrap: wrap; }

    /* Product Detail responsive - small mobile */
    .pd-highlights-grid { grid-template-columns: 1fr; }
    .pd-highlight-card { padding: 20px 16px; }
    .pd-image-wrapper { min-height: 280px; padding: 20px; }
    .pd-pricing { padding: 16px 18px; }
    .pd-faq-toggle { padding: 14px 18px; font-size: 0.85rem; }
    .pd-breadcrumb { font-size: 0.75rem; }
    .pd-breadcrumb i.fa-chevron-right { margin: 0 6px; }
    .pd-savings { display: block; margin-left: 0; margin-top: 8px; }

    /* Homepage responsive - small mobile */
    .hp-steps { grid-template-columns: 1fr; gap: 20px; }
    .hp-step-icon { width: 60px; height: 60px; font-size: 1.3rem; }
    .hp-stat-card { padding: 18px; }
    .hp-stat-number { font-size: 1.3rem; }
    .hp-testimonial-card { padding: 20px; }
    .hp-cta-trust { flex-direction: column; gap: 8px; align-items: center; }
}


/* ============================================================
   Fleet Management Service Page
   ============================================================ */

/* ── Fleet Hero ── */
.fleet-hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #fff;
}
.fleet-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
}
.fleet-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.fleet-hero-content h1 {
    font-size: 2.75rem;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
}
.fleet-hero-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 520px;
}
.fleet-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 28px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}
.fleet-hero-trust i {
    color: var(--success);
    margin-right: 6px;
}
.fleet-hero .btn-outline {
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}
.fleet-hero .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* ── Fleet Hero Dashboard mockup ── */
.fleet-hero-visual {
    perspective: 1000px;
}
.fleet-hero-dashboard {
    background: #1a2332;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: rotateY(-4deg) rotateX(2deg);
    transition: transform 0.5s ease;
}
.fleet-hero-dashboard:hover {
    transform: rotateY(0deg) rotateX(0deg);
}
.fleet-dash-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.fleet-dash-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.fleet-dash-title {
    margin-left: 10px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}
.fleet-dash-body {
    display: grid;
    grid-template-columns: 1fr 160px;
    min-height: 220px;
}
.fleet-dash-map {
    position: relative;
    background: linear-gradient(135deg, #0d1b2a, #1b2838);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(37, 99, 235, 0.15);
}
.fleet-dash-pins {
    position: absolute;
    inset: 0;
}
.fleet-pin {
    position: absolute;
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: #fff;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
    animation: fleetPinPulse 2s ease infinite;
}
.fleet-pin-alert {
    background: var(--danger);
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.5);
    animation: fleetPinAlert 1s ease infinite;
}
@keyframes fleetPinPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
@keyframes fleetPinAlert {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
}
.fleet-dash-sidebar {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fleet-dash-vehicle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}
.fleet-dash-vehicle strong {
    display: block;
    color: #fff;
    font-size: 0.72rem;
}
.fleet-dash-vehicle small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.62rem;
}
.fleet-dash-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.fleet-status-active { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, 0.5); }
.fleet-status-idle { background: #f59e0b; }
.fleet-status-alert { background: #ef4444; animation: fleetPinAlert 1s ease infinite; }

/* ── Pain points / problems ── */
.fleet-pain-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--transition);
}
.fleet-pain-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}
.fleet-pain-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
}
.fleet-pain-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}
.fleet-pain-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
}
.fleet-pain-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.fleet-pain-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
}

/* ── Fleet Features 2-column grid ── */
.fleet-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.fleet-feat-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.fleet-feat-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md);
}
.fleet-feat-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.fleet-feat-card h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
}
.fleet-feat-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Fleet Stats bar ── */
.fleet-stats-section {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    padding: 48px 0;
}
.fleet-stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.fleet-stat-item {
    text-align: center;
    color: #fff;
}
.fleet-stat-num {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.fleet-stat-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 4px;
}
.fleet-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* ── Use cases grid ── */
.fleet-use-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
}
.fleet-use-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.fleet-use-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}
.fleet-use-card h4 {
    font-size: 1rem;
    margin-bottom: 10px;
}
.fleet-use-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Product recommendation cards ── */
.fleet-prod-grid {
    max-width: 800px;
    margin: 0 auto;
}
.fleet-prod-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    position: relative;
    transition: var(--transition);
}
.fleet-prod-card:hover {
    box-shadow: var(--shadow-lg);
}
.fleet-prod-recommended {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}
.fleet-prod-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.fleet-prod-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.fleet-prod-header h3 {
    font-size: 1.5rem;
    margin: 10px 0;
}
.fleet-prod-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.fleet-prod-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent);
}
.fleet-prod-period {
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.fleet-prod-features {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}
.fleet-prod-features li {
    padding: 8px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.fleet-prod-features li i {
    color: var(--success);
    font-size: 0.85rem;
    width: 18px;
    text-align: center;
}

/* ── Fleet page responsive ── */
@media (max-width: 768px) {
    .fleet-hero { padding: 110px 0 60px; }
    .fleet-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .fleet-hero-content h1 { font-size: 2rem; }
    .fleet-hero-visual { display: none; }
    .fleet-hero-trust { flex-direction: column; gap: 10px; }
    .fleet-pain-grid { grid-template-columns: 1fr !important; }
    .fleet-features-grid { grid-template-columns: 1fr; }
    .fleet-use-grid { grid-template-columns: 1fr 1fr !important; }
    .fleet-stats-bar { gap: 24px; }
    .fleet-stat-num { font-size: 1.5rem; }
    .fleet-stat-divider { display: none; }
    .fleet-prod-grid { grid-template-columns: 1fr !important; }
    .fleet-prod-card { padding: 28px 24px; }
}

@media (max-width: 480px) {
    .fleet-hero-content h1 { font-size: 1.65rem; }
    .fleet-hero-text { font-size: 0.95rem; }
    .fleet-use-grid { grid-template-columns: 1fr !important; }
    .fleet-stats-bar { gap: 16px; }
    .fleet-feat-card { flex-direction: column; gap: 12px; }
}


/* ============================================================
   Object & Personal Tracking Service Page
   ============================================================ */

/* ── OT Hero ── */
.ot-hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 50%, #1a0a2e 100%);
    color: #fff;
}
.ot-hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 70% 40%, rgba(124,58,237,0.15) 0%, transparent 60%),
                radial-gradient(circle at 30% 80%, rgba(37,99,235,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.ot-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.ot-hero-content h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #fff;
}
.ot-hero-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    max-width: 520px;
}
.ot-hero-trust {
    display: flex; flex-wrap: wrap; gap: 20px;
    margin-top: 28px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}
.ot-hero-trust i {
    color: #7c3aed;
    margin-right: 5px;
}
.ot-hero .btn-outline {
    border-color: rgba(255,255,255,0.3); color: #fff;
}
.ot-hero .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* ── OT Hero Device Mockup ── */
.ot-hero-visual {
    display: flex; justify-content: center; align-items: center;
}
.ot-hero-device {
    position: relative;
    width: 220px; height: 220px;
    display: flex; justify-content: center; align-items: center;
}
.ot-device-body {
    width: 160px; height: 160px;
    background: linear-gradient(145deg, #1e1e2e, #2a2a3e);
    border-radius: 50%;
    border: 3px solid rgba(124,58,237,0.4);
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 40px rgba(124,58,237,0.25), inset 0 0 20px rgba(0,0,0,0.3);
}
.ot-device-screen {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.ot-device-led {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(34,197,94,0.6);
    animation: otLedPulse 2s ease infinite;
}
@keyframes otLedPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(34,197,94,0.6); }
    50% { opacity: 0.4; box-shadow: 0 0 4px rgba(34,197,94,0.3); }
}
.ot-device-icon {
    font-size: 2rem;
    color: #7c3aed;
}
.ot-device-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
}
.ot-device-btn {
    position: absolute;
    bottom: 18px;
    background: #ef4444;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 10px;
    letter-spacing: 1px;
    box-shadow: 0 0 12px rgba(239,68,68,0.4);
}
.ot-device-ring {
    position: absolute;
    width: 190px; height: 190px;
    border-radius: 50%;
    border: 1px solid rgba(124,58,237,0.2);
    z-index: 1;
    animation: otRingSpin 20s linear infinite;
}
@keyframes otRingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.ot-device-ring::before {
    content: '';
    position: absolute;
    top: -3px; left: 50%;
    width: 6px; height: 6px;
    background: #7c3aed;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(124,58,237,0.5);
}
.ot-device-signals {
    position: absolute;
    top: 15px; right: 15px;
    z-index: 3;
}
.ot-signal {
    display: block;
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(124,58,237,0.3);
    position: absolute;
    top: 0; right: 0;
    animation: otSignalPulse 2.5s ease-out infinite;
}
.ot-signal-2 { width: 36px; height: 36px; top: -6px; right: -6px; animation-delay: 0.5s; }
.ot-signal-3 { width: 48px; height: 48px; top: -12px; right: -12px; animation-delay: 1s; }
@keyframes otSignalPulse {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.2); }
}
.ot-device-size {
    position: absolute;
    bottom: -10px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 1px;
    white-space: nowrap;
}

/* ── OT Pain Cards ── */
.ot-pain-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ot-pain-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.ot-pain-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    background: rgba(124,58,237,0.1);
    color: var(--accent-2);
}
.ot-pain-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.ot-pain-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
}
.ot-pain-stat {
    display: flex; align-items: center; gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.ot-pain-number {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── OT Features Grid ── */
.ot-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.ot-feat-card {
    display: flex; gap: 18px; align-items: flex-start;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ot-feat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.ot-feat-icon {
    width: 48px; height: 48px; min-width: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.ot-feat-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.ot-feat-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ── OT Stats Bar ── */
.ot-stats-section {
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 100%);
    padding: 48px 0;
}
.ot-stats-bar {
    display: flex; justify-content: center; align-items: center;
    gap: 48px; flex-wrap: wrap;
}
.ot-stat-item {
    text-align: center;
    color: #fff;
}
.ot-stat-num {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.ot-stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}
.ot-stat-divider {
    width: 1px; height: 40px;
    background: rgba(255,255,255,0.15);
}

/* ── OT Use Cases ── */
.ot-use-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ot-use-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.ot-use-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}
.ot-use-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.ot-use-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── OT Steps (How it works) ── */
.ot-steps-grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin-top: 32px;
}
.ot-step-card {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 48px 28px 40px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ot-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.ot-step-num {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}
.ot-step-icon {
    font-size: 2rem;
    color: var(--accent-2);
    margin-bottom: 16px;
}
.ot-step-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.ot-step-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.ot-step-connector {
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: var(--accent-2);
    font-size: 1.2rem;
    opacity: 0.4;
}

/* ── OT Product Cards ── */
.ot-prod-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}
.ot-prod-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    border: 1px solid var(--border);
    display: flex; flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.ot-prod-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.ot-prod-main {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 1px var(--accent-2), 0 8px 24px rgba(124,58,237,0.1);
}
.ot-prod-badge {
    position: absolute;
    top: -12px; right: 20px;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ot-prod-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.ot-prod-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 10px 0 12px;
}
.ot-prod-price {
    display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.ot-prod-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-2);
}
.ot-prod-period {
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.ot-prod-features {
    list-style: none;
    padding: 0; margin: 0 0 24px;
    flex: 1;
}
.ot-prod-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.88rem;
    color: var(--text);
    border-bottom: 1px solid var(--border-light, rgba(0,0,0,0.04));
}
.ot-prod-features li i {
    color: var(--accent-2);
    font-size: 0.8rem;
    width: 18px;
    text-align: center;
}

/* ── OT Responsive ── */
@media (max-width: 768px) {
    .ot-hero { padding: 110px 0 60px; }
    .ot-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .ot-hero-content h1 { font-size: 2rem; }
    .ot-hero-visual { display: none; }
    .ot-hero-trust { flex-direction: column; gap: 10px; }
    .ot-pain-grid { grid-template-columns: 1fr !important; }
    .ot-features-grid { grid-template-columns: 1fr; }
    .ot-use-grid { grid-template-columns: 1fr 1fr !important; }
    .ot-stats-bar { gap: 24px; }
    .ot-stat-num { font-size: 1.5rem; }
    .ot-stat-divider { display: none; }
    .ot-steps-grid { flex-direction: column; align-items: center; gap: 24px; }
    .ot-step-connector { transform: rotate(90deg); padding: 0; }
    .ot-prod-grid { grid-template-columns: 1fr !important; }
    .ot-prod-card { padding: 28px 24px; }
}
@media (max-width: 480px) {
    .ot-hero-content h1 { font-size: 1.65rem; }
    .ot-hero-text { font-size: 0.95rem; }
    .ot-use-grid { grid-template-columns: 1fr !important; }
    .ot-stats-bar { gap: 16px; }
    .ot-feat-card { flex-direction: column; gap: 12px; }
}


/* ============================================================
   Service Pages — Shared Hero & Stats (sv-*)
   ============================================================ */

/* ── SV Hero Base (mirrors ot-hero layout) ── */
.sv-hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
    color: #fff;
}
.sv-hero .ot-hero-bg {
    position: absolute; inset: 0;
    pointer-events: none;
}
.sv-hero .ot-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.sv-hero .ot-hero-content h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #fff;
}
.sv-hero .ot-hero-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    max-width: 520px;
}
.sv-hero .ot-hero-trust {
    display: flex; flex-wrap: wrap; gap: 20px;
    margin-top: 28px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}
.sv-hero .ot-hero-trust i {
    margin-right: 5px;
}
.sv-hero .btn-outline {
    border-color: rgba(255,255,255,0.3); color: #fff;
}
.sv-hero .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}
.sv-hero .ot-hero-visual {
    display: flex; justify-content: center; align-items: center;
}

/* ── SV Hero Gradients (per page) ── */
.sv-hero-family {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
}
.sv-hero-family .ot-hero-bg {
    background: radial-gradient(circle at 70% 40%, rgba(99,102,241,0.15) 0%, transparent 60%),
                radial-gradient(circle at 30% 80%, rgba(37,99,235,0.1) 0%, transparent 50%);
}
.sv-hero-family .ot-hero-trust i { color: #6366f1; }

.sv-hero-equip {
    background: linear-gradient(135deg, #1a0f00 0%, #451a03 50%, #1a0f00 100%);
}
.sv-hero-equip .ot-hero-bg {
    background: radial-gradient(circle at 60% 30%, rgba(245,158,11,0.15) 0%, transparent 60%),
                radial-gradient(circle at 20% 70%, rgba(217,119,6,0.1) 0%, transparent 50%);
}
.sv-hero-equip .ot-hero-trust i { color: #f59e0b; }

.sv-hero-dealer {
    background: linear-gradient(135deg, #0c1222 0%, #1e293b 50%, #0c1222 100%);
}
.sv-hero-dealer .ot-hero-bg {
    background: radial-gradient(circle at 65% 35%, rgba(59,130,246,0.15) 0%, transparent 60%),
                radial-gradient(circle at 25% 75%, rgba(37,99,235,0.1) 0%, transparent 50%);
}
.sv-hero-dealer .ot-hero-trust i { color: #3b82f6; }

.sv-hero-delivery {
    background: linear-gradient(135deg, #042f2e 0%, #134e4a 50%, #042f2e 100%);
}
.sv-hero-delivery .ot-hero-bg {
    background: radial-gradient(circle at 60% 40%, rgba(20,184,166,0.15) 0%, transparent 60%),
                radial-gradient(circle at 30% 80%, rgba(13,148,136,0.1) 0%, transparent 50%);
}
.sv-hero-delivery .ot-hero-trust i { color: #14b8a6; }

.sv-hero-construct {
    background: linear-gradient(135deg, #1a0f00 0%, #3b1e00 50%, #1a0f00 100%);
}
.sv-hero-construct .ot-hero-bg {
    background: radial-gradient(circle at 55% 35%, rgba(234,88,12,0.15) 0%, transparent 60%),
                radial-gradient(circle at 25% 75%, rgba(245,158,11,0.1) 0%, transparent 50%);
}
.sv-hero-construct .ot-hero-trust i { color: #ea580c; }

/* ── SV Stats Section (gradient bar like ot-stats-section) ── */
.sv-stats-section {
    padding: 48px 0;
}
.sv-stats-family { background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%); }
.sv-stats-equip { background: linear-gradient(135deg, #1a0f00 0%, #451a03 100%); }
.sv-stats-dealer { background: linear-gradient(135deg, #0c1222 0%, #1e293b 100%); }
.sv-stats-delivery { background: linear-gradient(135deg, #042f2e 0%, #134e4a 100%); }
.sv-stats-construct { background: linear-gradient(135deg, #1a0f00 0%, #3b1e00 100%); }

/* ── SV Hero Dashboard Mockup (shared by equip, dealer, delivery, construct) ── */
.sv-hero-dashboard {
    background: #1a2332;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
    transform: rotateY(-4deg) rotateX(2deg);
    transition: transform 0.5s ease;
}
.sv-hero-dashboard:hover {
    transform: rotateY(0deg) rotateX(0deg);
}
.sv-dash-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sv-dash-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.sv-dash-title {
    margin-left: 10px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}
.sv-dash-body {
    display: grid;
    grid-template-columns: 1fr 160px;
    min-height: 220px;
}
.sv-dash-map {
    position: relative;
    background: linear-gradient(135deg, #0d1b2a, #1b2838);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(37,99,235,0.15);
}
.sv-dash-pins {
    position: absolute;
    inset: 0;
}
.sv-pin {
    position: absolute;
    width: 28px; height: 28px;
    background: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.6rem;
    color: #fff;
    box-shadow: 0 0 12px rgba(37,99,235,0.5);
    animation: fleetPinPulse 2s ease infinite;
}
.sv-pin-alert {
    background: var(--danger);
    box-shadow: 0 0 12px rgba(220,38,38,0.5);
    animation: fleetPinAlert 1s ease infinite;
}
.sv-pin-available { background: #22c55e; box-shadow: 0 0 12px rgba(34,197,94,0.5); }
.sv-pin-test-drive { background: #3b82f6; box-shadow: 0 0 12px rgba(59,130,246,0.5); }
.sv-pin-rented { background: #f59e0b; box-shadow: 0 0 12px rgba(245,158,11,0.5); }
.sv-pin-overdue { background: #ef4444; box-shadow: 0 0 12px rgba(239,68,68,0.5); animation: fleetPinAlert 1s ease infinite; }

.sv-dash-sidebar {
    border-left: 1px solid rgba(255,255,255,0.06);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sv-dash-vehicle,
.sv-dash-asset {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.03);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
}
.sv-dash-vehicle strong,
.sv-dash-asset strong {
    display: block;
    color: #fff;
    font-size: 0.72rem;
}
.sv-dash-vehicle small,
.sv-dash-asset small {
    color: rgba(255,255,255,0.5);
    font-size: 0.62rem;
}
.sv-dash-status {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.sv-status-active { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.sv-status-available { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.sv-status-idle { background: #f59e0b; }
.sv-status-alert { background: #ef4444; animation: fleetPinAlert 1s ease infinite; }
.sv-status-test-drive { background: #3b82f6; box-shadow: 0 0 6px rgba(59,130,246,0.5); }
.sv-status-rented { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.5); }
.sv-status-overdue { background: #ef4444; animation: fleetPinAlert 1s ease infinite; }

/* Dealer legend bar */
.sv-dash-legend {
    display: flex;
    gap: 16px;
    padding: 8px 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.62rem;
    color: rgba(255,255,255,0.5);
}
.sv-dash-legend span { display: flex; align-items: center; gap: 5px; }

/* ── Delivery Route Visualization ── */
.sv-dash-route {
    position: relative;
    padding: 48px 24px 24px;
    background: linear-gradient(135deg, #0d1b2a, #1b2838);
}
.sv-route-line {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 3px;
    background: linear-gradient(90deg, #22c55e 0%, #22c55e 55%, rgba(255,255,255,0.15) 55%);
    border-radius: 2px;
    transform: translateY(-50%);
}
.sv-route-waypoints {
    position: relative;
    height: 60px;
}
.sv-waypoint {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.sv-waypoint-marker {
    display: inline-flex;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    font-size: 0.6rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
}
.sv-waypoint-done .sv-waypoint-marker {
    background: #22c55e;
    color: #fff;
    box-shadow: 0 0 8px rgba(34,197,94,0.4);
}
.sv-waypoint-active .sv-waypoint-marker {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 8px rgba(37,99,235,0.4);
    animation: fleetPinPulse 2s ease infinite;
}
.sv-waypoint-label {
    display: block;
    font-size: 0.55rem;
    color: rgba(255,255,255,0.45);
    margin-top: 4px;
    white-space: nowrap;
}
.sv-route-truck {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    color: var(--accent);
    filter: drop-shadow(0 0 8px rgba(37,99,235,0.5));
    animation: svTruckBounce 2s ease infinite;
}
@keyframes svTruckBounce {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, -55%); }
}

/* Delivery info bar */
.sv-dash-info {
    display: flex;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.sv-dash-info-item {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.06);
}
.sv-dash-info-item:last-child { border-right: none; }
.sv-info-label {
    font-size: 0.58rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}
.sv-info-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

/* ── SV Hero Responsive ── */
@media (max-width: 768px) {
    .sv-hero { padding: 120px 0 60px; }
    .sv-hero .ot-hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .sv-hero .ot-hero-content h1 { font-size: 2rem; }
    .sv-hero .ot-hero-text { margin: 0 auto; }
    .sv-hero .ot-hero-trust { justify-content: center; }
    .sv-hero-dashboard { transform: none; }
    .sv-dash-body { grid-template-columns: 1fr; }
    .sv-dash-sidebar { border-left: none; border-top: 1px solid rgba(255,255,255,0.06); flex-direction: row; flex-wrap: wrap; }
    .sv-dash-vehicle, .sv-dash-asset { flex: 1; min-width: 120px; }
}
@media (max-width: 480px) {
    .sv-hero .ot-hero-content h1 { font-size: 1.65rem; }
    .sv-hero .ot-hero-text { font-size: 0.95rem; }
    .sv-dash-legend { flex-wrap: wrap; gap: 8px; }
}


/* ── Section Header Spacing ── */
.section-header {
    margin-bottom: 36px;
}


/* ============================================================
   Track Order Page
   ============================================================ */

/* ── Status Guide Grid ── */
.tro-status-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.tro-status-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.tro-status-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.tro-status-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.tro-status-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.tro-status-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.2rem;
}
.tro-status-pending   { background: rgba(234,179,8,0.12);  color: #eab308; }
.tro-status-paid      { background: rgba(37,99,235,0.12);  color: #2563eb; }
.tro-status-processing{ background: rgba(168,85,247,0.12); color: #a855f7; }
.tro-status-shipped   { background: rgba(20,184,166,0.12); color: #14b8a6; }
.tro-status-delivered  { background: rgba(34,197,94,0.12);  color: #22c55e; }

/* ── FAQ ── */
.tro-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tro-faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.tro-faq-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.tro-faq-item summary {
    padding: 18px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}
.tro-faq-item summary::-webkit-details-marker { display: none; }
.tro-faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}
.tro-faq-item[open] summary::after {
    transform: rotate(180deg);
}
.tro-faq-item p {
    padding: 0 24px 18px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .tro-status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tro-status-grid .tro-status-card:last-child {
        grid-column: 1 / -1;
        max-width: 280px;
        margin: 0 auto;
    }
}
@media (max-width: 480px) {
    .tro-status-grid {
        grid-template-columns: 1fr;
    }
    .tro-status-grid .tro-status-card:last-child {
        max-width: none;
    }
    .tro-faq-item summary {
        padding: 14px 16px;
        font-size: 0.88rem;
    }
    .tro-faq-item p {
        padding: 0 16px 14px;
    }
}


/* ============================================================
   Add-to-Cart Animation
   ============================================================ */

/* Success state on the Add to Cart button after item is added */
.btn-cart-success {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: #fff !important;
    box-shadow: 0 0 16px rgba(22, 163, 74, 0.45);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Cart icon bounce animation triggered by JS */
@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.35); }
    60% { transform: scale(0.9); }
    80% { transform: scale(1.1); }
}
.cart-icon.bounce {
    animation: cartBounce 0.5s ease;
}

/* Cart badge flash animation */
@keyframes badgeFlash {
    0% { transform: scale(1); }
    50% { transform: scale(1.6); background: #7c3aed; }
    100% { transform: scale(1); }
}
.cart-badge.flash {
    animation: badgeFlash 0.4s ease;
}


/* ============================================================
   AI Live Chat Widget
   ============================================================ */

/* ── Floating Toggle Button ── */
.chat-toggle {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9998;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37,99,235,0.4), 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s;
}
.chat-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(37,99,235,0.5), 0 4px 12px rgba(0,0,0,0.2);
}
.chat-toggle .chat-toggle-close { display: none; }
.chat-toggle.active .chat-toggle-open { display: none; }
.chat-toggle.active .chat-toggle-close { display: block; }
.chat-toggle.active {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

/* Unread badge on toggle */
.chat-toggle-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff;
    display: none;
}
.chat-toggle-badge.visible { display: block; animation: chatPulse 1.5s infinite; }

@keyframes chatPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ── Chat Window ── */
.chat-window {
    position: fixed;
    bottom: 100px;
    right: 28px;
    z-index: 9999;
    width: 400px;
    max-height: calc(100vh - 140px);
    border-radius: 20px;
    background: var(--bg-card);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2), 0 4px 16px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s cubic-bezier(.4,0,.2,1),
                transform 0.3s cubic-bezier(.4,0,.2,1),
                visibility 0.3s;
}
.chat-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* ── Chat Header ── */
.chat-header {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    padding: 20px 24px;
    color: #fff;
    flex-shrink: 0;
}
.chat-header-top {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-header-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
}
.chat-header-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}
.chat-header-info p {
    font-size: 0.78rem;
    opacity: 0.85;
    margin: 2px 0 0;
}
.chat-header-status {
    display: flex;
    align-items: center;
    gap: 6px;
}
.chat-header-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: chatPulse 2s infinite;
}

/* ── Chat Messages Area ── */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 300px;
    max-height: 400px;
    scroll-behavior: smooth;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* ── Message Bubbles ── */
.chat-msg {
    display: flex;
    gap: 10px;
    max-width: 88%;
    animation: chatMsgIn 0.3s cubic-bezier(.4,0,.2,1);
}
@keyframes chatMsgIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg-bot { align-self: flex-start; }
.chat-msg-user { align-self: flex-end; flex-direction: row-reverse; }

.chat-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.chat-msg-bot .chat-msg-avatar {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
}
.chat-msg-user .chat-msg-avatar {
    background: #e2e8f0;
    color: #475569;
}

.chat-msg-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.chat-msg-bot .chat-msg-bubble {
    background: #fff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.chat-msg-user .chat-msg-bubble {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* Markdown-style formatting in bot messages */
.chat-msg-bot .chat-msg-bubble strong { font-weight: 700; color: #0f172a; }
.chat-msg-bot .chat-msg-bubble a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.chat-msg-bot .chat-msg-bubble a:hover { color: #7c3aed; }

/* ── Typing Indicator ── */
.chat-typing {
    display: flex;
    gap: 10px;
    align-self: flex-start;
    max-width: 88%;
    animation: chatMsgIn 0.3s cubic-bezier(.4,0,.2,1);
}
.chat-typing-bubble {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    padding: 14px 20px;
    display: flex;
    gap: 5px;
    align-items: center;
}
.chat-typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #94a3b8;
    animation: chatTyping 1.4s infinite;
}
.chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* ── Quick Reply Suggestions ── */
.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 20px;
    margin-top: -4px;
    animation: chatMsgIn 0.3s cubic-bezier(.4,0,.2,1);
}
.chat-suggestion-btn {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #2563eb;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.chat-suggestion-btn:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

/* ── Chat Input Area ── */
.chat-input-area {
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    flex-shrink: 0;
}
.chat-input-wrap {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}
.chat-input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 0.88rem;
    font-family: inherit;
    background: #f8fafc;
    outline: none;
    resize: none;
    min-height: 40px;
    max-height: 100px;
    line-height: 1.4;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.chat-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
    background: #fff;
}
.chat-input::placeholder { color: #94a3b8; }
.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37,99,235,0.35);
}
.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Powered-by footer */
.chat-powered {
    text-align: center;
    padding: 8px;
    font-size: 0.7rem;
    color: #94a3b8;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}
.chat-powered i { color: #2563eb; }

/* ── Responsive ── */
@media (max-width: 480px) {
    .chat-window {
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    .chat-toggle {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
        font-size: 1.3rem;
    }
    .chat-messages {
        min-height: 250px;
        max-height: calc(100vh - 240px);
    }
}

/* ═══════════════════════════════════════════════════════════════
   APP BANNER — Android download CTA
   ═══════════════════════════════════════════════════════════════ */

.app-banner-section {
    padding: 80px 0;
}

.app-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 64px;
}

.app-banner-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(124, 58, 237, 0.10) 0%, transparent 50%);
    pointer-events: none;
}

.app-banner-glow {
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: bannerGlowPulse 6s ease-in-out infinite;
}

@keyframes bannerGlowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.app-banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 64px;
}

.app-banner-left {
    flex: 1;
    min-width: 0;
}

.app-banner-badge {
    margin-bottom: 20px;
    background: rgba(124, 58, 237, 0.15);
    color: #a78bfa;
    gap: 6px;
    font-size: 0.8rem;
}

.app-banner-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.app-banner-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #94a3b8;
    margin-bottom: 32px;
    max-width: 480px;
}

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

.app-banner-download-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.3);
}

.app-banner-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.45);
    color: #ffffff !important;
}

.app-banner-download-btn i {
    margin-right: 8px;
    font-size: 1.15em;
}

.app-banner-learn-btn {
    border-color: rgba(255, 255, 255, 0.2);
    color: #e2e8f0 !important;
}

.app-banner-learn-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff !important;
}

.app-banner-learn-btn i {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.app-banner-learn-btn:hover i {
    transform: translateX(4px);
}

/* ── Phone Mockup ── */

.app-banner-right {
    flex-shrink: 0;
}

.app-banner-phone {
    position: relative;
}

.app-banner-phone-frame {
    width: 220px;
    height: 420px;
    border-radius: 32px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    background: #1a1a2e;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.app-banner-phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #0f172a;
    border-radius: 0 0 14px 14px;
    z-index: 2;
}

.app-banner-phone-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-banner-phone-map {
    flex: 1;
    background:
        linear-gradient(135deg, #1a2332 0%, #0f1923 100%);
    position: relative;
    overflow: hidden;
}

/* Grid lines to simulate a map */
.app-banner-phone-map::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* ── Tracker Dots ── */

.app-banner-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    z-index: 1;
}

.app-banner-dot::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    animation: bannerDotPulse 2s ease-out infinite;
}

.app-banner-dot.dot-a {
    top: 30%;
    left: 25%;
    background: var(--accent);
}
.app-banner-dot.dot-a::before {
    background: rgba(37, 99, 235, 0.3);
}

.app-banner-dot.dot-b {
    top: 55%;
    left: 65%;
    background: var(--accent-2);
}
.app-banner-dot.dot-b::before {
    background: rgba(124, 58, 237, 0.3);
    animation-delay: 0.7s;
}

.app-banner-dot.dot-c {
    top: 75%;
    left: 40%;
    background: var(--success);
}
.app-banner-dot.dot-c::before {
    background: rgba(5, 150, 105, 0.3);
    animation-delay: 1.4s;
}

@keyframes bannerDotPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

.app-banner-route {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ── Phone Bottom Bar ── */

.app-banner-phone-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 500;
}

.app-banner-phone-bar-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 6px rgba(5, 150, 105, 0.5);
}

.app-banner-phone-shadow {
    position: absolute;
    bottom: -20px;
    left: 10%;
    right: 10%;
    height: 40px;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    filter: blur(10px);
}

/* ── App Banner Responsive ── */

@media (max-width: 900px) {
    .app-banner {
        padding: 48px 32px;
    }

    .app-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 48px;
    }

    .app-banner-text {
        margin-left: auto;
        margin-right: auto;
    }

    .app-banner-actions {
        justify-content: center;
    }

    .app-banner-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 600px) {
    .app-banner-section {
        padding: 48px 0;
    }

    .app-banner {
        padding: 36px 24px;
        border-radius: var(--radius-lg);
    }

    .app-banner-title {
        font-size: 1.5rem;
    }

    .app-banner-text {
        font-size: 1rem;
    }

    .app-banner-actions {
        flex-direction: column;
        align-items: center;
    }

    .app-banner-phone-frame {
        width: 180px;
        height: 340px;
        border-radius: 26px;
    }

    .app-banner-phone-notch {
        width: 64px;
        height: 20px;
    }
}
