        :root {
            --primary-color: #2196f3;
            --primary-light: #f8faff;
            --secondary-color: #1e86da;
            --bg-color: #f5f6f8fc;
            --card-bg: #ffffff;
            --text-dark: #2a3540fc;
            --text-muted: #6c757d;
            --border-color: #e9ecef;
            --success: #2ecc71;
            --warning: #ffc107;
            --danger: #dc3545;
            --info: #0dcaf0;
            --radius: 8px;
        }

        body {
            margin: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-dark);
            -webkit-text-size-adjust: 100%;
            -webkit-tap-highlight-color: transparent;
        }

        .container-custom {
            max-width: 1340px;
            margin: 60px auto;
            padding: 0 15px;
        }

        .box-content {
            background-color: var(--card-bg);
            border-radius: var(--radius);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
            border: 1px solid rgba(0, 0, 0, 0.04);
        }

        .section-title {
            margin-bottom: 30px;
            border-bottom: 1px solid #E1E8EE;
            padding-bottom: 20px;
        }

        .section-title h1, .section-title h2 {
            font-size: 21px;
            font-weight: 500;
            color: var(--text-dark);
            margin-bottom: 10px;
            margin-top: 0;
        }

        .section-title p {
            font-size: 14px;
            color: var(--text-muted);
            max-width: 860px;
            margin: 14px 0px 0px 0px;
            line-height: 1.5;
        }

        .main-wrapper {
            display: flex;
            gap: 20px;
            height: 750px;
            margin-bottom: 40px;
        }

        .info-panel {
            flex: 0 0 420px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .preview-panel {
            flex-grow: 1;
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .card-header-custom {
            background: #fff;
            border-bottom: 1px solid var(--border-color);
            padding: 20px 25px;
            font-size: 16px;
            font-weight: 600;
            color: var(--text-dark);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .search-area {
            padding: 20px 25px;
            border-bottom: 1px solid var(--border-color);
            background: #fff;
        }

        .search-input-group {
            position: relative;
        }

        .search-input-group input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ced4da8f;
            border-radius: 4px;
            font-size: 13px;
            color: #495057;
            background: #fff;
            transition: all 0.2s;
            outline: none;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .search-input-group input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 1px #bee3f8;
        }

        .search-input-group input::placeholder {
            color: #b1b9c1;
            opacity: 0.9;
            text-transform: none;
            letter-spacing: normal;
        }

        .search-input-group button {
            position: absolute;
            right: 5px;
            top: 5px;
            bottom: 5px;
            border-radius: 4px;
            background: var(--text-muted);
            border: none;
            color: white;
            padding: 0 20px;
            transition: background-color 0.2s;
        }

        .search-input-group button:hover, .search-input-group button:not([disabled]) {
            background: var(--primary-color);
        }

        .panel-tabs {
            padding: 15px 25px 0 25px;
            background: #fff;
            border-bottom: 1px solid var(--border-color);
        }

        .nav-pills .nav-link {
            font-size: 13px;
            font-weight: 400;
            color: var(--text-muted);
            background: transparent;
            border: 1px solid transparent;
            padding: 10px 15px;
            border-radius: 4px 4px 0 0;
            margin-right: 5px;
            border-bottom: 2px solid transparent;
        }

        .nav-pills .nav-link.active {
            background: transparent;
            color: var(--primary-color);
            border-bottom: 2px solid var(--primary-color);
        }

        .nav-pills .nav-link i {
            margin-right: 8px;
        }

        .shipment-header {
            padding: 20px 25px;
            border-bottom: 1px solid var(--border-color);
            background: #fff;
        }

        .shipment-id {
            font-size: 18px;
            font-weight: 600;
            color: var(--primary-color);
            letter-spacing: 0.5px;
        }

        .carrier-name {
            font-size: 12px;
            font-weight: 500;
            color: var(--text-muted);
            margin-top: 2px;
        }

        .status-badge {
            font-size: 11px;
            padding: 6px 12px;
            border-radius: 4px;
            font-weight: 400;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .bg-light-success { background: #e8fff3; color: var(--success); }
        .bg-light-warning { background: #fff4de; color: var(--warning); }
        .bg-light-danger { background: #ffe2e5; color: var(--danger); }
        .bg-light-primary { background: #e1f0ff96; color: var(--primary-color); }
        .bg-light-secondary { background: #f5f8fa; color: #a1a5b7; }
        .bg-light-info { background: #e6f6ff; color: var(--info); }

        .panel-scroll-content {
            flex-grow: 1;
            overflow-y: auto;
            padding: 25px;
            background: #fff;
        }

        .progress-container {
            margin-bottom: 20px;
        }

        .progress {
            height: 6px;
            background-color: #e9ecef;
            border-radius: 4px;
            margin-bottom: 8px;
            overflow: hidden;
        }

        .progress-bar {
            background: var(--primary-color);
            height: 100%;
            transition: width 0.4s ease;
        }

        .timeline-custom {
            list-style: none;
            padding: 0;
            margin: 0;
            position: relative;
        }

        .timeline-custom::before {
            content: '';
            position: absolute;
            left: 14px;
            top: 15px;
            bottom: 0;
            width: 2px;
            background: #e9ecef;
            z-index: 0;
            max-height: 90%;
        }

        .timeline-item {
            position: relative;
            padding-left: 50px;
            margin-bottom: 25px;
            opacity: 0;
            animation: fadeIn 0.3s forwards;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(5px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .timeline-icon {
            position: absolute;
            left: 0;
            top: 0;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: #fff;
            border: 2px solid #e9ecef;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: #adb5bd;
            z-index: 2;
            transition: all 0.3s;
        }

        .timeline-item.completed .timeline-icon {
            border-color: var(--primary-color);
            color: var(--primary-color);
        }

        .timeline-item.is-current .timeline-icon {
            background: var(--primary-color);
            color: #fff;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 4px #bee3f8;
        }

        .event-desc { font-size: 13px; font-weight: 500; color: var(--text-dark); display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
        .event-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: flex; align-items: center; }

        .t-badge {
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 4px;
            background: #f5f8fa;
            border: 1px solid #e9ecef;
            color: #a1a5b7;
        }

        .t-spinner {
            display: none; width: 12px; height: 12px; border: 2px solid rgba(0,0,0,0.1); 
            border-left-color: var(--primary-color); border-radius: 50%; animation: spin 0.8s linear infinite; margin-right: 6px;
        }
        .timeline-item.is-current .t-spinner { display: inline-block; }
        @keyframes spin { 100% { transform: rotate(360deg); } }

        .system-status-box {
            padding: 20px 25px;
            border-bottom: 1px solid var(--border-color);
            background: #fbfbfc;
        }
        
        .sys-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 10px; }
        .sys-row:last-child { margin-bottom: 0; }
        .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
        .dot.green { background: var(--success); box-shadow: 0 0 5px rgba(46, 204, 113, 0.4); }

        .data-sources-list { padding: 20px 25px; }
        .source-item { 
            display: flex; align-items: center; font-size: 13px; color: var(--text-dark); 
            padding: 12px 0; border-bottom: 1px dashed var(--border-color); 
        }
        .source-item i:first-child { width: 20px; text-align: center; color: var(--primary-color); margin-right: 10px; }
        .source-check { margin-left: auto; color: var(--success); }

        .history-card-stats {
            background: #fbfbfc;
            border-radius: var(--radius);
            border: 1px solid var(--border-color);
            padding: 25px;
            text-align: center;
            margin-bottom: 20px;
        }

        .preview-overlay {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(255, 255, 255, 0.6);
            backdrop-filter: blur(4px);
            z-index: 5;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
            transition: opacity 0.4s ease;
        }

        .preview-overlay i { font-size: 40px; margin-bottom: 15px; }
        .preview-overlay h4 { font-size: 18px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
        .preview-overlay p { font-size: 13px; color: var(--text-muted); }

        .report-content {
            padding: 0;
            overflow-y: auto;
            height: 100%;
            display: none;
            background: #fff;
            flex-direction: column;
        }

        .report-header-card {
            background: #fff;
            padding: 20px 25px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .report-title-main { font-size: 18px; font-weight: 600; color: var(--text-dark); margin-bottom: 4px; }
        .report-vin-sub { font-size: 13px; color: var(--text-muted); letter-spacing: 0.5px; }

        .car-specs-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            padding: 25px;
            background: #fbfbfc;
            border-bottom: 1px solid var(--border-color);
        }

        .spec-box {
            background: #fff;
            padding: 15px;
            border-radius: var(--radius);
            border: 1px solid var(--border-color);
        }

        .spec-title { font-size: 11px; text-transform: uppercase; color: var(--text-muted); font-weight: 500; margin-bottom: 6px; }
        .spec-val { font-size: 14px; font-weight: 600; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

        .history-section { padding: 25px; border-bottom: 1px solid var(--border-color); }
        .section-header-small { font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.5px; }

        .history-card {
            background: #fff;
            border-radius: var(--radius);
            border: 1px solid var(--border-color);
            overflow: hidden;
            margin-bottom: 20px;
        }

        .history-row {
            display: flex;
            justify-content: space-between;
            padding: 15px 20px;
            border-bottom: 1px dashed var(--border-color);
            font-size: 13px;
            align-items: center;
        }

        .history-row:last-child { border-bottom: none; }
        .h-label { color: var(--text-muted); font-weight: 500; }
        .h-val { font-weight: 400; color: var(--text-dark); padding: 4px 10px; border-radius: 4px; display: inline-block; }

        .h-val.danger { color: var(--danger); background-color: #ffe2e5; }
        .h-val.success { color: var(--success); background-color: #e8fff3; }
        .h-val.warning { color: var(--warning); background-color: #fff4de; }

        .sales-table { width: 100%; border-collapse: collapse; font-size: 13px; }
        .sales-table th { text-align: left; background: #fbfbfc; padding: 12px 20px; color: var(--text-muted); font-weight: 500; border-bottom: 1px solid var(--border-color); }
        .sales-table td { padding: 12px 20px; border-bottom: 1px solid var(--border-color); color: var(--text-dark); }
        .sales-table tr:last-child td { border-bottom: none; }

        .purchase-bar {
            background: #fff;
            border-top: 1px solid var(--border-color);
            padding: 20px 25px;
            margin-top: auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .price-display { font-size: 18px; font-weight: 600; color: var(--primary-color); }
        .price-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

        .loading-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(255, 255, 255, 0.8); display: none; justify-content: center;
            align-items: center; z-index: 9999; backdrop-filter: blur(4px);
        }

        .modal-content { border-radius: var(--radius); border: none; box-shadow: 0 10px 40px rgba(0,0,0,0.1); }
        .modal-header { padding: 20px 25px; border-bottom: 1px solid var(--border-color); }
        .modal-title { font-size: 16px; font-weight: 600; color: var(--text-dark); }
        
        .blik-input-row { display: flex; gap: 10px; justify-content: center; margin: 30px 0; }
        .blik-digit { 
            width: 45px; height: 55px; border: 1px solid var(--border-color); border-radius: var(--radius); 
            text-align: center; font-size: 20px; font-weight: 600; color: var(--text-dark);
            background: #fbfbfc;
        }
        .blik-digit:focus { border-color: var(--primary-color); background: #fff; outline: none; box-shadow: 0 0 0 1px #bee3f8; }

        .seo-wrapper {
            background-color: #ffffff;
            width: 100%;
            border-top: 1px solid rgba(0, 0, 0, 0.04);
            border-bottom: 1px solid rgba(0, 0, 0, 0.04);
            margin-bottom: 60px;
        }

        .seo-section {
            padding: 40px 15px;
            color: #5c7489;
            font-size: 14px;
            line-height: 1.6;
        }

        .seo-section h2 {
            color: var(--primary-color);
            font-size: 15px;
            font-weight: 400;
            margin-top: 35px;
            margin-bottom: 15px;
        }

        .seo-section h2:first-child { margin-top: 0; }
        .seo-section p { margin-bottom: 18px; }
        .seo-section ul { margin-bottom: 18px; padding-left: 20px; }
        .seo-section li { margin-bottom: 8px; }

        @media (max-width: 992px) {
            .main-wrapper { flex-direction: column; height: auto; }
            .info-panel { flex: none; width: 100%; margin-bottom: 20px; }
            .preview-panel { height: 600px; }
            .panel-scroll-content { max-height: 400px; }
        }

        @media (max-width: 576px) {
            .container-custom { margin: 20px auto; }
            .section-title h1, .section-title h2 { font-size: 18px; }
            .section-title p { font-size: 12px; }
            .seo-section { padding: 25px 15px; }
            .blik-digit { width: 35px; height: 45px; font-size: 16px; }
        }
