/**
 * Colis Chine-Togo — Portail client public & PWA de réception.
 *
 * Les couleurs, polices, rayons et ombres viennent de cct-tokens.css.
 * Ne JAMAIS réécrire une valeur hexadécimale ici : ajouter le jeton
 * dans cct-tokens.css, puis le référencer via var(--cct-*).
 *
 * Les @font-face sont chargés séparément (handle WordPress « cct-fonts »
 * ou <link> dans les templates standalone) : un @import en cascade
 * retarderait l'affichage du texte sur connexion lente.
 */

@import url('cct-tokens.css');

:root {
    /* --- Alias hérités : conservés pour ne rien casser, tous adossés aux jetons --- */
    --cct-primary-dark:  var(--cct-primary-strong);
    --cct-primary-light: var(--cct-primary-soft);
    --cct-secondary:     var(--cct-air);
    --cct-accent:        var(--cct-ocean-300);
    --cct-cyan:          var(--cct-sea);
    --cct-violet:        var(--cct-info);

    --cct-slate-950: #060B14;
    --cct-slate-900: var(--cct-text);
    --cct-slate-800: #1E293B;
    --cct-slate-700: #334155;
    --cct-slate-600: #475569;
    --cct-slate-500: #475569; /* contraste WCAG AA (4.5:1+) */
    --cct-slate-400: var(--cct-text-soft);
    --cct-slate-300: var(--cct-border-strong);
    --cct-slate-200: var(--cct-border);
    --cct-slate-100: var(--cct-surface-sunk);
    --cct-slate-50:  var(--cct-surface);

    --cct-error:    var(--cct-danger);
    --cct-error-bg: var(--cct-danger-bg);

    /* Lueurs conservées pour les écrans publics, recalées sur la marque */
    --cct-shadow-glow:         0 0 25px rgba(2, 132, 199, .28);
    --cct-shadow-glow-emerald: 0 0 25px rgba(5, 150, 105, .28);
}

/* Accessibility Focus Rings & Skip Link */
:focus-visible {
    outline: 2.5px solid var(--cct-primary) !important;
    outline-offset: 2px !important;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.cct-skip-link {
    position: absolute;
    top: -60px;
    left: 12px;
    background: #0284c7;
    color: #ffffff !important;
    padding: 10px 18px;
    z-index: 100000;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
    transition: top 0.2s ease-in-out;
}

.cct-skip-link:focus {
    top: 0;
}


/* Base Wrapper */
.cct-app-container {
    font-family: var(--cct-font);
    color: var(--cct-slate-800);
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 16px;
    box-sizing: border-box;
    line-height: 1.5;
}

.cct-app-container * {
    box-sizing: border-box;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.cct-title-lg {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--cct-slate-900);
    letter-spacing: -0.03em;
    margin: 0 0 8px 0;
}

.cct-title-md {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cct-slate-900);
    margin: 0 0 12px 0;
}

.cct-subtitle {
    color: var(--cct-slate-500);
    font-size: 0.95rem;
    margin: 0 0 20px 0;
}

.cct-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cct-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.cct-badge-air {
    background: #e0f2fe;
    color: #0369a1;
}

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

.cct-badge-success {
    background: var(--cct-success-bg);
    color: var(--cct-success);
}
.cct-badge-success .cct-badge-dot { background: var(--cct-success); }

.cct-badge-warning {
    background: var(--cct-warning-bg);
    color: var(--cct-warning);
}
.cct-badge-warning .cct-badge-dot { background: var(--cct-warning); }

.cct-badge-error {
    background: var(--cct-error-bg);
    color: var(--cct-error);
}
.cct-badge-error .cct-badge-dot { background: var(--cct-error); }

.cct-badge-info {
    background: var(--cct-info-bg);
    color: var(--cct-info);
}
.cct-badge-info .cct-badge-dot { background: var(--cct-info); }

/* Buttons */
.cct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--cct-font);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--cct-radius-md);
    cursor: pointer;
    transition: var(--cct-transition);
    border: none;
    text-decoration: none;
    outline: none;
}

.cct-btn:active {
    transform: scale(0.98);
}

.cct-btn-primary {
    background: linear-gradient(135deg, var(--cct-primary) 0%, var(--cct-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.cct-btn-primary:hover {
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
    background: var(--cct-primary-dark);
    color: #fff;
}

.cct-btn-secondary {
    background: var(--cct-slate-100);
    color: var(--cct-slate-700);
}

.cct-btn-secondary:hover {
    background: var(--cct-slate-200);
    color: var(--cct-slate-900);
}

.cct-btn-outline {
    background: transparent;
    border: 1.5px solid var(--cct-slate-300);
    color: var(--cct-slate-700);
}

.cct-btn-outline:hover {
    border-color: var(--cct-primary);
    color: var(--cct-primary);
    background: var(--cct-primary-light);
}

.cct-btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--cct-radius-sm);
}

.cct-btn-block {
    width: 100%;
}

/* ==========================================================================
   Header & User Profile Banner
   ========================================================================== */
.cct-portal-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0369a1 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.cct-portal-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(2, 132, 199, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cct-hero-left {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.cct-avatar-badge {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.cct-hero-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cct-hero-name {
    font-size: 1.6rem;
    font-weight: 900;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.02em;
    font-family: var(--cct-font-heading);
}

.cct-client-code-pill {
    background: rgba(2, 132, 199, 0.4);
    border: 1.5px solid rgba(56, 189, 248, 0.6);
    color: #ffffff;
    font-family: var(--cct-font-mono);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 8px;
    letter-spacing: 0.04em;
}

.cct-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
}

.cct-dot-sep {
    color: rgba(255, 255, 255, 0.4);
}

.cct-hero-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cct-stat-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    padding: 14px 20px;
    border-radius: 14px;
    text-align: center;
    min-width: 110px;
    transition: all 0.25s ease;
}

.cct-stat-pill:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.cct-stat-pill-highlight {
    background: rgba(16, 185, 129, 0.25) !important;
    border-color: rgba(52, 211, 153, 0.6) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.cct-stat-pill-highlight .cct-stat-num {
    color: #6ee7b7 !important;
}

.cct-stat-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
    font-family: var(--cct-font-mono);
    line-height: 1.1;
}

.cct-stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #bae6fd;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
    display: block;
}

/* ==========================================================================
   Navigation Tabs
   ========================================================================== */
.cct-nav-tabs {
    display: flex;
    gap: 12px;
    background: #ffffff;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
    margin-bottom: 28px;
    overflow-x: auto;
    scrollbar-width: none;
}

.cct-nav-tabs::-webkit-scrollbar {
    display: none;
}

.cct-tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    font-family: var(--cct-font);
    font-size: 0.94rem;
    font-weight: 700;
    color: #475569;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.cct-tab-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
    transform: translateY(-1px);
}

.cct-tab-btn.active {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.cct-tab-badge {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    font-size: 0.8rem;
    padding: 3px 9px;
    border-radius: 9999px;
    font-weight: 800;
}

.cct-tab-btn.active .cct-tab-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.cct-tab-badge-alert {
    background: #ef4444 !important;
    color: #ffffff !important;
}

/* Tab Content Panels */
.cct-tab-pane {
    display: none;
    animation: cctFadeIn 0.3s ease-out;
}

.cct-tab-pane.active {
    display: block;
}

@keyframes cctFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Parcels List & Filter Bar
   ========================================================================== */
.cct-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 24px;
    background: #ffffff;
    padding: 16px 22px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.03);
}

.cct-filter-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cct-chip {
    padding: 9px 18px;
    font-size: 0.86rem;
    font-weight: 700;
    border-radius: 9999px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cct-chip:hover {
    border-color: #0284c7;
    color: #0284c7;
    background: #f0f9ff;
    transform: translateY(-1px);
}

.cct-chip.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.25);
}

.cct-search-box {
    position: relative;
    min-width: 300px;
}

.cct-search-box input {
    width: 100%;
    padding: 11px 18px 11px 42px;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    font-family: var(--cct-font);
    font-size: 0.92rem;
    font-weight: 600;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
}


.cct-search-box input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.18);
}

.cct-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    font-size: 1rem;
}

/* ==========================================================================
   Parcel Cards (Stripe / Linear / Vercel style)
   ========================================================================== */
.cct-parcel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.cct-parcel-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    padding: 24px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.cct-parcel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px -5px rgba(15, 23, 42, 0.12);
    border-color: #0284c7;
}

.cct-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1.5px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.cct-card-id-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cct-card-id {
    font-family: var(--cct-font-mono);
    font-weight: 900;
    font-size: 1.15rem;
    color: #0284c7;
    background: #f0f9ff;
    border: 1.5px solid #bae6fd;
    padding: 3px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
}

.cct-btn-copy-id {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 6px;
    color: #475569;
    transition: all 0.2s ease;
}

.cct-btn-copy-id:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.cct-card-tracking {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    margin-top: 6px;
}

.cct-card-tracking code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    color: #0f172a;
    font-size: 0.85rem;
}

.cct-card-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.cct-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cct-badge-air {
    background: #e0f2fe;
    color: #0369a1;
    border: 1.5px solid #7dd3fc;
}

.cct-badge-sea {
    background: #f0fdf4;
    color: #15803d;
    border: 1.5px solid #86efac;
}

.cct-badge-status-available {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1.5px solid #6ee7b7 !important;
    font-weight: 900 !important;
}

.cct-badge-status-arrived_togo {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border: 1.5px solid #86efac !important;
}

.cct-badge-status-departed_china {
    background: #f0f9ff !important;
    color: #0369a1 !important;
    border: 1.5px solid #7dd3fc !important;
}

.cct-badge-status-measured,
.cct-badge-status-stored {
    background: #fffbeb !important;
    color: #92400e !important;
    border: 1.5px solid #fcd34d !important;
}

.cct-badge-status-disputed {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border: 1.5px solid #fca5a5 !important;
}

.cct-badge-status-delivered {
    background: #f8fafc !important;
    color: #334155 !important;
    border: 1.5px solid #cbd5e1 !important;
}

/* ==========================================================================
   Visual Stepper Tracker (High-Contrast)
   ========================================================================== */
.cct-stepper-tracker {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 20px 0 24px 0;
    padding: 0 6px;
}

.cct-stepper-line {
    position: absolute;
    top: 16px;
    left: 24px;
    right: 24px;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
}

.cct-stepper-progress {
    position: absolute;
    top: 16px;
    left: 24px;
    height: 4px;
    background: #0284c7;
    z-index: 2;
    transition: width 0.4s ease;
}

.cct-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    width: 64px;
    text-align: center;
}

.cct-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: #64748b;
    transition: all 0.25s ease;
}

.cct-step-item.completed .cct-step-dot {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

.cct-step-item.active .cct-step-dot {
    background: #ffffff;
    border-color: #0284c7;
    color: #0284c7;
    box-shadow: 0 0 0 5px rgba(2, 132, 199, 0.25);
}

.cct-step-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #475569;
    margin-top: 8px;
    line-height: 1.2;
}

.cct-step-item.completed .cct-step-label,
.cct-step-item.active .cct-step-label {
    color: #0f172a;
    font-weight: 900;
}

/* ==========================================================================
   Card Body Specs & Actions
   ========================================================================== */
.cct-card-specs {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

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

.cct-spec-label {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
}

.cct-spec-val {
    font-weight: 800;
    font-size: 0.95rem;
    color: #0f172a;
}

.cct-spec-amount {
    font-family: var(--cct-font-mono);
    font-size: 1.25rem;
    font-weight: 900;
    color: #0284c7;
}

.cct-pending-text {
    color: #94a3b8;
    font-style: italic;
    font-size: 0.85rem;
}

.cct-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    border-top: 1.5px solid #f1f5f9;
    padding-top: 18px;
}

.cct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--cct-font);
    font-size: 0.9rem;
    font-weight: 800;
    border-radius: 12px;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.cct-btn-primary {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.cct-btn-primary:hover {
    background: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
}

.cct-btn-outline {
    background: #ffffff;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
}

.cct-btn-outline:hover {
    background: #f8fafc;
    border-color: #0284c7;
    color: #0284c7;
}

.cct-btn-ghost {
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid #e2e8f0;
}

.cct-btn-ghost:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.cct-btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: 10px;
}

.cct-btn-block {
    width: 100%;
}

/* Empty State Card */
.cct-empty-state-card {
    background: #ffffff;
    border-radius: 20px;
    border: 2px dashed #cbd5e1;
    padding: 56px 28px;
    text-align: center;
}

.cct-empty-state-icon {
    font-size: 3.6rem;
    margin-bottom: 16px;
}

.cct-empty-state-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
}

/* Floating Toast Notification */
.cct-toast-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.cct-toast {
    background: #0f172a;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 14px;
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.4);
    font-size: 0.9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: cctToastSlideIn 0.3s ease-out;
    pointer-events: auto;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

@keyframes cctToastSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Pre-declaration & Claim Forms
   ========================================================================== */
.cct-form-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    padding: 36px;
    max-width: 800px;
    margin: 0 auto;
}

.cct-title-md {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 8px;
    font-family: var(--cct-font-heading);
}

.cct-subtitle {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 24px;
}

.cct-form-row {
    margin-bottom: 20px;
}

.cct-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.cct-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.cct-input, .cct-select, .cct-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-family: var(--cct-font);
    font-size: 0.95rem;
    font-weight: 600;
    background: #ffffff;
    color: #0f172a;
    transition: all 0.2s ease;
    outline: none;
}

.cct-input:focus, .cct-select:focus, .cct-textarea:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.18);
}


/* Mode Selection Cards */
.cct-mode-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.cct-mode-card {
    border: 2px solid var(--cct-slate-200);
    border-radius: var(--cct-radius-md);
    padding: 16px;
    cursor: pointer;
    transition: var(--cct-transition);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cct-mode-card:hover {
    border-color: var(--cct-slate-300);
    background: var(--cct-slate-50);
}

.cct-mode-card.active {
    border-color: var(--cct-primary);
    background: var(--cct-primary-light);
}

.cct-mode-icon {
    font-size: 1.6rem;
}

.cct-mode-content h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cct-slate-900);
}

.cct-mode-content p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--cct-slate-500);
    line-height: 1.35;
}

/* ==========================================================================
   Public Tracking Pro Widget ([cct_tracking])
   ========================================================================== */
.cct-tracking-pro-widget {
    background: #ffffff;
    border-radius: var(--cct-radius-xl);
    border: 1px solid var(--cct-slate-200);
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.06);
    max-width: 820px;
    margin: 30px auto;
}

.cct-tracking-pro-search {
    max-width: 680px;
    margin: 0 auto;
}

.cct-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.cct-search-icon {
    position: absolute;
    left: 16px;
    pointer-events: none;
    z-index: 2;
}

.cct-search-input {
    width: 100%;
    height: 52px;
    padding-left: 48px;
    padding-right: 175px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--cct-font-mono);
    border-radius: 12px;
    border: 2px solid #cbd5e1;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.cct-search-input:focus {
    background: #ffffff;
    border-color: var(--cct-primary);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.cct-search-submit-btn {
    position: absolute;
    right: 6px;
    height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .cct-search-input-wrap {
        flex-direction: column;
        gap: 8px;
    }
    .cct-search-input {
        padding-right: 16px;
    }
    .cct-search-submit-btn {
        position: static;
        width: 100%;
        height: 46px;
    }
}

.cct-tracking-suggestions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.cct-sample-track-btn {
    padding: 4px 10px;
    border-radius: 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #0284c7;
    font-family: var(--cct-font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cct-sample-track-btn:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
}

.cct-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(2, 132, 199, 0.2);
    border-top-color: #0284c7;
    border-radius: 50%;
    animation: cctSpin 0.7s linear infinite;
}

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

/* ==========================================================================
   Pricing Calculator Widget ([cct_pricing_calculator])
   ========================================================================== */
/* ==========================================================================
   Pricing Calculator Pro (2-Column Interactive Simulator)
   ========================================================================== */
.cct-calculator-pro-layout {
    background: #ffffff;
    border-radius: var(--cct-radius-xl);
    border: 1px solid var(--cct-slate-200);
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.cct-calc-guarantee-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.cct-guarantee-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--cct-slate-700);
}

.cct-calc-main-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 28px;
    align-items: start;
}

@media (max-width: 960px) {
    .cct-calc-main-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Step Sections */
.cct-calc-step-section {
    margin-bottom: 24px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    padding: 18px;
}

.cct-calc-step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.cct-calc-step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--cct-primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cct-calc-step-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--cct-slate-900);
    margin: 0;
}

/* Mode Cards */
.cct-calc-mode-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 580px) {
    .cct-calc-mode-cards-grid {
        grid-template-columns: 1fr;
    }
}

.cct-calc-mode-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    width: 100%;
}

.cct-calc-mode-card:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -2px rgba(2, 132, 199, 0.12);
}

.cct-calc-mode-card.active {
    border-color: var(--cct-primary);
    background: #f0f9ff;
    box-shadow: 0 0 0 1px var(--cct-primary), 0 8px 20px -4px rgba(2, 132, 199, 0.18);
}

.cct-calc-mode-radio-dot {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
    transition: all 0.2s ease;
}

.cct-calc-mode-card.active .cct-calc-mode-radio-dot {
    border-color: var(--cct-primary);
    background: var(--cct-primary);
    box-shadow: inset 0 0 0 3px #ffffff;
}

.cct-calc-mode-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.cct-calc-mode-icon-box.air {
    background: #e0f2fe;
    color: #0284c7;
}

.cct-calc-mode-icon-box.sea {
    background: #e0e7ff;
    color: #4338ca;
}

.cct-calc-mode-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--cct-slate-900);
    margin-bottom: 4px;
}

.cct-calc-mode-rate {
    font-size: 1.12rem;
    font-weight: 900;
    color: var(--cct-primary-dark);
    font-family: var(--cct-font-mono);
}

.cct-calc-mode-rate span {
    font-size: 0.78rem;
    color: var(--cct-slate-500);
    font-weight: 600;
}

.cct-calc-mode-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    color: var(--cct-slate-500);
    font-weight: 600;
    margin-top: 6px;
}

/* Unit Wrap */
.cct-input-unit-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.cct-input-unit-wrap .cct-input {
    padding-right: 80px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--cct-font-mono);
}

.cct-input-unit {
    position: absolute;
    right: 14px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--cct-slate-500);
    pointer-events: none;
}

/* Quick Chips */
.cct-calc-quick-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.cct-quick-chip {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 16px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--cct-slate-700);
    cursor: pointer;
    transition: all 0.15s ease;
}

.cct-quick-chip:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.cct-quick-chip.active {
    border-color: var(--cct-primary);
    background: #e0f2fe;
    color: #0369a1;
}

/* Dimension Box */
.cct-calc-dim-box {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.cct-input-sm {
    padding: 8px 10px;
    font-size: 0.82rem;
}

.cct-calc-vol-notice {
    margin-top: 8px;
    padding: 8px 12px;
    font-size: 0.76rem;
    line-height: 1.4;
    border-radius: 8px;
    background: #fefce8;
    border: 1px solid #fef08a;
    color: #854d0e;
}

/* Options */
.cct-calc-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cct-calc-option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cct-calc-option-item:hover {
    border-color: #cbd5e1;
    background: #fcfdfe;
}

.cct-calc-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--cct-primary);
    cursor: pointer;
}

.cct-calc-option-icon {
    font-size: 1.2rem;
}

.cct-calc-option-text {
    flex: 1;
}

.cct-calc-option-name {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--cct-slate-900);
}

.cct-calc-option-desc {
    font-size: 0.74rem;
    color: var(--cct-slate-500);
    margin-top: 2px;
}

.cct-calc-option-price {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--cct-primary-dark);
    font-family: var(--cct-font-mono);
    white-space: nowrap;
}

/* 1-Click Presets Grid */
.cct-calc-presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}

.cct-preset-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.cct-preset-btn:hover {
    border-color: #93c5fd;
    background: #f0f9ff;
    transform: translateY(-1px);
}

.cct-preset-btn span {
    font-size: 1.25rem;
}

.cct-preset-btn strong {
    display: block;
    font-size: 0.78rem;
    color: var(--cct-slate-900);
    font-weight: 800;
    line-height: 1.2;
}

.cct-preset-btn small {
    display: block;
    font-size: 0.68rem;
    color: var(--cct-slate-500);
    font-weight: 600;
    margin-top: 2px;
}

/* ==========================================================================
   Right Column: Sticky Pro Receipt Card
   ========================================================================== */
.cct-calc-receipt-col {
    position: sticky;
    top: 90px;
}

.cct-calc-receipt-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.cct-receipt-header {
    background: linear-gradient(135deg, #090d16 0%, #1e293b 100%);
    color: #ffffff;
    padding: 20px;
}

.cct-receipt-tag {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.cct-receipt-route {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.88rem;
    font-weight: 800;
}

.cct-route-arrow {
    color: var(--cct-accent);
}

.cct-receipt-body {
    padding: 20px;
}

.cct-receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.84rem;
}

.cct-receipt-label {
    color: var(--cct-slate-600);
    font-weight: 600;
}

.cct-receipt-val {
    font-weight: 800;
    color: var(--cct-slate-900);
    font-family: var(--cct-font-mono);
}

.cct-receipt-row-muted {
    font-size: 0.76rem;
    color: #64748b;
}

.cct-receipt-free {
    color: #15803d;
    font-weight: 700;
}

.cct-receipt-divider {
    height: 1px;
    background: #f1f5f9;
    border-top: 1px dashed #cbd5e1;
    margin: 14px 0;
}

.cct-receipt-total-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    margin: 16px 0;
}

.cct-receipt-total-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--cct-slate-500);
}

.cct-receipt-total-amount {
    font-family: var(--cct-font-mono);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--cct-primary-dark);
    margin: 4px 0;
    letter-spacing: -0.02em;
}

.cct-receipt-total-note {
    font-size: 0.72rem;
    color: var(--cct-slate-500);
    font-weight: 600;
}

.cct-receipt-delay-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #0369a1;
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
}

.cct-receipt-actions {
    padding: 0 20px 20px 20px;
}

/* ==========================================================================
   Modals (Photo Preview, QR Pass, Payment)
   ========================================================================== */
.cct-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    padding: 20px;
    animation: cctFadeIn 0.2s ease-out;
}

.cct-modal-card {
    background: #fff;
    border-radius: var(--cct-radius-xl);
    max-width: 520px;
    width: 100%;
    padding: 26px;
    box-shadow: var(--cct-shadow-lg);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.cct-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cct-slate-100);
    border: none;
    font-size: 1.1rem;
    color: var(--cct-slate-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--cct-transition);
}

.cct-modal-close:hover {
    background: var(--cct-slate-200);
    color: var(--cct-slate-900);
}

.cct-qr-display {
    text-align: center;
    padding: 20px 0;
}

.cct-qr-code-img {
    width: 180px;
    height: 180px;
    margin: 0 auto 14px auto;
    border: 8px solid #fff;
    border-radius: var(--cct-radius-md);
    box-shadow: var(--cct-shadow-md);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Alerts & Notifications
   ========================================================================== */
.cct-alert {
    padding: 14px 18px;
    border-radius: var(--cct-radius-md);
    font-size: 0.88rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.cct-alert-success {
    background: var(--cct-success-bg);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.cct-alert-error {
    background: var(--cct-error-bg);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.cct-alert-warning {
    background: var(--cct-warning-bg);
    color: #92400e;
    border: 1px solid #fde68a;
}

.cct-alert-info {
    background: var(--cct-info-bg);
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cct-portal-hero {
        padding: 20px;
    }
    .cct-hero-stats {
        width: 100%;
        justify-content: space-between;
    }
    .cct-stat-pill {
        flex: 1;
        padding: 8px 12px;
        min-width: 80px;
    }
    .cct-parcel-grid {
        grid-template-columns: 1fr;
    }
    .cct-form-grid, .cct-mode-selector {
        grid-template-columns: 1fr;
    }
    .cct-tracking-search {
        flex-direction: column;
    }
}

/* ==========================================================================
   Multi-Country Warehouse Cards & Addresses
   ========================================================================== */
.cct-warehouse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.cct-warehouse-card {
    background: #ffffff;
    border-radius: var(--cct-radius-lg);
    border: 1px solid var(--cct-slate-200);
    padding: 22px;
    box-shadow: var(--cct-shadow-sm);
    transition: var(--cct-transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cct-warehouse-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cct-shadow-lg);
    border-color: rgba(2, 132, 199, 0.35);
}

.cct-warehouse-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.cct-warehouse-country-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--cct-slate-100);
    color: var(--cct-slate-800);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    text-transform: uppercase;
}

.cct-warehouse-address-box {
    background: var(--cct-slate-50);
    border: 1px dashed var(--cct-slate-300);
    border-radius: var(--cct-radius-md);
    padding: 12px 14px;
    margin: 12px 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--cct-slate-700);
    position: relative;
}

.cct-btn-copy-address {
    background: var(--cct-primary-light);
    color: var(--cct-primary-dark);
    border: 1px solid rgba(2, 132, 199, 0.2);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: var(--cct-radius-sm);
    cursor: pointer;
    transition: var(--cct-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cct-btn-copy-address:hover {
    background: var(--cct-primary);
    color: #fff;
    box-shadow: 0 4px 10px var(--cct-primary-glow);
}

/* ==========================================================================
   Micro-Animations & Laser Scanner
   ========================================================================== */
@keyframes cct-pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(2, 132, 199, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

@keyframes cct-laser-scan {
    0% { top: 0%; opacity: 0.8; }
    50% { top: 95%; opacity: 1; }
    100% { top: 0%; opacity: 0.8; }
}

@keyframes cctFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.cct-step-node.active {
    animation: cct-pulse-ring 2s infinite;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Engine
   ========================================================================== */
@media (max-width: 1024px) {
    .cct-app-container {
        padding: 0 12px;
        margin: 16px auto;
    }
    .cct-portal-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    .cct-hero-stats {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .cct-title-lg {
        font-size: 1.45rem;
    }
    .cct-title-md {
        font-size: 1.1rem;
    }
    .cct-nav-tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        gap: 6px;
    }
    .cct-tab-btn {
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 0.82rem;
    }
    .cct-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .cct-filter-chips {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    .cct-search-box {
        width: 100%;
    }
    .cct-search-box input {
        width: 100%;
    }
    .cct-parcel-card {
        padding: 16px;
    }
    .cct-parcel-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .cct-parcel-card-actions {
        flex-direction: column;
        gap: 8px;
    }
    .cct-parcel-card-actions .cct-btn {
        width: 100%;
        justify-content: center;
    }
    .cct-timeline-stepper {
        overflow-x: auto;
        padding-bottom: 12px;
    }
    .cct-warehouse-grid {
        grid-template-columns: 1fr;
    }
    .cct-form-grid {
        grid-template-columns: 1fr;
    }
    .cct-pricing-calc-box {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .cct-app-container {
        padding: 0 8px;
        margin: 10px auto;
    }
    .cct-hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .cct-stat-pill {
        padding: 8px 10px;
    }
    .cct-stat-num {
        font-size: 1.15rem;
    }
    .cct-stat-label {
        font-size: 0.68rem;
    }
    .cct-btn {
        min-height: 44px;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   CONSOLIDATION FLOATING BAR & SELECTION STYLES
   ========================================================================== */
.cct-cons-floating-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, calc(100% - 32px));
    z-index: 999;
    animation: cctSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cctSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.cct-cons-bar-content {
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(2, 132, 199, 0.3);
    color: #ffffff;
}

.cct-cons-badge-count {
    background: #0284c7;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 3px 10px;
    border-radius: 9999px;
    display: inline-block;
}

.cct-cons-select-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-right: 8px;
}

.cct-cons-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0284c7;
}

.cct-btn-secondary {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    font-weight: 700;
}

.cct-btn-secondary:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

/* ==========================================================================
   Quick Actions Hub (Raccourcis 1 Clic)
   ========================================================================== */
.cct-quick-hub {
    margin-bottom: 24px;
}

.cct-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.cct-quick-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.cct-quick-card:hover {
    transform: translateY(-2px);
    border-color: #0284c7;
    box-shadow: 0 8px 18px -4px rgba(2, 132, 199, 0.15);
    background: #f8fafc;
}

.cct-quick-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.cct-quick-icon-primary { background: #e0f2fe; color: #0284c7; }
.cct-quick-icon-info { background: #e0e7ff; color: #4338ca; }
.cct-quick-icon-success { background: #dcfce7; color: #15803d; }
.cct-quick-icon-amber { background: #fef3c7; color: #b45309; }
.cct-quick-icon-purple { background: #f3e8ff; color: #7e22ce; }
.cct-quick-icon-danger { background: #fee2e2; color: #b91c1c; }

.cct-quick-info {
    display: flex;
    flex-direction: column;
}

.cct-quick-title {
    font-family: var(--cct-font-heading);
    font-weight: 800;
    font-size: 0.88rem;
    color: #0f172a;
    line-height: 1.2;
}

.cct-quick-desc {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 2px;
}

/* ==========================================================================
   View Switcher (Tableau vs Grille)
   ========================================================================== */
.cct-view-toggle {
    display: inline-flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.cct-view-btn {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cct-view-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.cct-view-btn:hover:not(.active) {
    color: #0f172a;
}

/* ==========================================================================
   Modern Neo-Logistics Data Table & Action Buttons
   ========================================================================== */
.cct-table-responsive {
    width: 100%;
    overflow-x: auto;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(226, 232, 240, 0.8);
    margin-bottom: 30px;
}

.cct-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
    text-align: left;
}

.cct-data-table thead th {
    background: linear-gradient(135deg, var(--cct-primary) 0%, var(--cct-primary-dark) 100%);
    color: #f0f9ff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 20px;
    border-bottom: 1.5px solid var(--cct-primary-dark);
    white-space: nowrap;
}

.cct-data-table thead th:first-child {
    border-top-left-radius: 17px;
}

.cct-data-table thead th:last-child {
    border-top-right-radius: 17px;
}

/* ==========================================================================
   Mobile parcel cards — shown instead of the desktop table below 768px
   (a horizontally-scrolling 9-column table is unusable with a thumb).
   ========================================================================== */
.cct-parcels-cards {
    display: none;
}

.cct-parcel-card {
    background: #ffffff;
    border: 1px solid var(--cct-slate-200);
    border-radius: 16px;
    box-shadow: var(--cct-shadow-sm);
    padding: 14px;
    margin-bottom: 12px;
}

.cct-parcel-card-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cct-parcel-card-photo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--cct-slate-200);
    padding: 0;
    background: none;
    cursor: pointer;
}

.cct-parcel-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cct-parcel-card-photo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.cct-parcel-card-id-block {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cct-parcel-card-id-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cct-parcel-card-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.cct-parcel-card-body {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--cct-slate-200);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cct-parcel-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.cct-parcel-card-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cct-parcel-card-desc {
    font-size: 0.82rem;
    color: #64748b;
}

.cct-parcel-card-spec {
    font-size: 0.82rem;
    color: #1e293b;
    font-weight: 600;
    margin-left: auto;
}

.cct-parcel-card-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cct-parcel-card-actions .cct-btn {
    flex: 1;
    justify-content: center;
    min-width: 0;
}

@media (max-width: 768px) {
    .cct-table-responsive {
        display: none;
    }
    .cct-parcels-cards {
        display: block;
    }
}

.cct-data-table tbody tr {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid #f1f5f9;
}

.cct-data-table tbody tr:last-child {
    border-bottom: none;
}

.cct-data-table tbody tr:hover {
    background: #f8fafc;
    box-shadow: inset 3px 0 0 #0284c7;
}

.cct-data-table td {
    padding: 18px 20px;
    vertical-align: middle;
    color: #1e293b;
}

.cct-table-id {
    font-family: var(--cct-font-mono);
    font-weight: 900;
    color: #0f172a;
    font-size: 0.95rem;
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.cct-tracking-code {
    font-family: var(--cct-font-mono);
    font-size: 0.84rem;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 7px;
    color: #334155;
    font-weight: 700;
    border: 1px solid #e2e8f0;
}

.cct-table-desc {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 5px;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cct-table-amount {
    font-family: var(--cct-font-mono);
    font-weight: 900;
    color: #0284c7;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.cct-table-actions-group {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.cct-btn-xs {
    padding: 8px 15px;
    font-size: 0.82rem;
    border-radius: 9px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.cct-btn-xs:hover {
    transform: translateY(-2px);
}

.cct-table-actions-group .cct-btn-qr-pass {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.28);
}

.cct-table-actions-group .cct-btn-qr-pass:hover {
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.42);
}

.cct-table-actions-group .cct-btn-request-delivery {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.28);
}

.cct-table-actions-group .cct-btn-request-delivery:hover {
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.42);
}

.cct-table-actions-group .cct-btn-view-photo {
    background: #f8fafc;
    color: #1e293b;
    border: 1.5px solid #cbd5e1;
}

.cct-table-actions-group .cct-btn-view-photo:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0284c7;
}

/* Lightbox Thumbnail Component in Table */
.cct-photo-thumb-btn {
    position: relative;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #0f172a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cct-photo-thumb-btn:hover {
    border-color: #0284c7;
    transform: scale(1.08);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.cct-table-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cct-photo-thumb-zoom-icon {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cct-photo-thumb-btn:hover .cct-photo-thumb-zoom-icon {
    opacity: 1;
}

.cct-photo-thumb-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.cct-table-actions-group .cct-btn-trigger-claim {
    background: #fff1f2;
    color: #e11d48;
    border: 1.5px solid #fecdd3;
}

.cct-table-actions-group .cct-btn-trigger-claim:hover {
    background: #ffe4e6;
    border-color: #fda4af;
    color: #be123c;
}

/* ==========================================================================
   SHADCN UI COMPONENT DESIGN SYSTEM & UTILITIES
   ========================================================================== */

/* Shadcn Card */
.cct-shadcn-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cct-shadcn-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.08);
}

.cct-shadcn-card-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.cct-shadcn-card-title {
    font-family: var(--cct-font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
}

.cct-shadcn-card-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.cct-shadcn-card-content {
    padding: 24px;
}

/* Shadcn Tabs (Segmented Control) */
.cct-shadcn-tabs-list {
    display: inline-flex;
    height: 48px;
    align-items: center;
    justify-content: flex-start;
    border-radius: 14px;
    background: #f1f5f9;
    padding: 4px;
    color: #64748b;
    border: 1px solid #e2e8f0;
    gap: 4px;
    overflow-x: auto;
    max-width: 100%;
}

.cct-shadcn-tabs-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
    border: none;
    background: transparent;
    cursor: pointer;
    gap: 8px;
}

.cct-shadcn-tabs-trigger:hover {
    color: #0f172a;
}

.cct-shadcn-tabs-trigger.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

/* Shadcn Table */
.cct-shadcn-table-wrap {
    position: relative;
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
}

.cct-shadcn-table {
    width: 100%;
    caption-side: bottom;
    font-size: 0.875rem;
    border-collapse: separate;
    border-spacing: 0;
}

.cct-shadcn-th {
    height: 44px;
    padding: 12px 16px;
    text-align: left;
    vertical-align: middle;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.cct-shadcn-tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
}

.cct-shadcn-tr:hover {
    background-color: #f8fafc;
}

.cct-shadcn-td {
    padding: 16px;
    vertical-align: middle;
    color: #1e293b;
}

/* Shadcn Badges */
.cct-shadcn-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid transparent;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    gap: 6px;
}

.cct-shadcn-badge-primary {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}

.cct-shadcn-badge-success {
    background: #dcfce7;
    color: #15803d;
    border-color: #bbf7d0;
}

.cct-shadcn-badge-warning {
    background: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
}

.cct-shadcn-badge-destructive {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

.cct-shadcn-badge-outline {
    background: #ffffff;
    color: #334155;
    border-color: #cbd5e1;
}

/* Shadcn Inputs & Controls */
.cct-shadcn-input {
    display: flex;
    height: 42px;
    width: 100%;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

.cct-shadcn-input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.cct-shadcn-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    display: block;
    margin-bottom: 6px;
}

/* ==========================================================================
   DASHBOARD WITH LATERAL SIDEBAR LAYOUT
   ========================================================================== */

.cct-dashboard-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: #f8fafc;
    color: #0f172a;
    position: relative;
}

/* 1. Colonne Latérale (Sidebar) */
.cct-sidebar {
    width: 280px;
    min-width: 280px;
    background: #090d16;
    color: #f8fafc;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 50;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cct-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 22px 16px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

.cct-sidebar-brand-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cct-sidebar-brand-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cct-sidebar-brand-title {
    font-family: var(--cct-font-heading);
    font-weight: 800;
    font-size: 1.12rem;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cct-sidebar-brand-title span {
    color: #38bdf8;
}

.cct-sidebar-brand-subtitle {
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cct-sidebar-close-btn {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    line-height: 1;
}

.cct-sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* User Profile Card in Sidebar */
.cct-sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 24px;
}

.cct-sidebar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.cct-sidebar-user-details {
    flex: 1;
    min-width: 0;
}

.cct-sidebar-user-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cct-sidebar-user-code-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 2px 0;
}

.cct-sidebar-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 900;
}

.cct-sidebar-user-phone {
    font-size: 0.76rem;
    color: #94a3b8;
    font-family: var(--cct-font-mono);
}

/* Sidebar Navigation Items */
.cct-sidebar-section-heading {
    font-size: 0.68rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 10px;
    margin-bottom: 8px;
}

.cct-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.cct-sidebar-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    outline: none;
}

.cct-sidebar-nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transform: translateX(2px);
}

.cct-sidebar-nav-item.active {
    background: #0284c7;
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.4);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.cct-sidebar-nav-item .cct-nav-icon {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.cct-sidebar-nav-item .cct-nav-text {
    flex: 1;
    text-align: left;
}

.cct-sidebar-nav-item .cct-nav-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.cct-sidebar-nav-item.active .cct-nav-badge {
    background: #ffffff;
    color: #0284c7;
}

.cct-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cct-sidebar-footer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cct-sidebar-footer-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.cct-sidebar-logout {
    color: #f87171 !important;
}

.cct-sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #fca5a5 !important;
}

/* 2. Zone Principale (Main Content Area) */
.cct-main-content-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    background: #f8fafc;
}

.cct-dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(10px);
}

.cct-topbar-left-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cct-mobile-hamburger {
    display: none;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    color: #0f172a;
    line-height: 1;
}

.cct-mobile-hamburger:hover {
    background: #e2e8f0;
}

.cct-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.cct-breadcrumb-root {
    color: #64748b;
    font-weight: 500;
}

.cct-breadcrumb-sep {
    color: #cbd5e1;
}

.cct-breadcrumb-current {
    color: #0f172a;
    font-weight: 800;
    font-family: var(--cct-font-heading);
    font-size: 1.05rem;
}

.cct-topbar-right-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cct-agency-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #15803d;
}

.cct-dashboard-body {
    padding: 30px 32px 60px 32px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    flex: 1;
}

.cct-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.cct-kpi-grid .cct-stat-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    text-align: left;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: none;
}

.cct-kpi-grid .cct-stat-pill:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.cct-kpi-grid .cct-stat-pill-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cct-kpi-grid .cct-stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0;
}

.cct-kpi-grid .cct-stat-num {
    font-size: 1.85rem;
    font-weight: 900;
    color: #0f172a;
    font-family: var(--cct-font-mono);
    line-height: 1;
}

.cct-kpi-grid .cct-stat-pill-highlight {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
}

.cct-kpi-grid .cct-stat-pill-highlight .cct-stat-label {
    color: #15803d;
}


/* Mobile Responsive Drawer (< 1024px) */
@media (max-width: 1023px) {
    .cct-mobile-hamburger {
        display: flex;
    }
    
    .cct-sidebar-close-btn {
        display: block;
    }

    .cct-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 290px;
        z-index: 1000;
        transform: translateX(-100%);
        box-shadow: none;
    }

    .cct-sidebar.cct-sidebar-open {
        transform: translateX(0);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
    }

    .cct-sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.65);
        backdrop-filter: blur(4px);
        z-index: 999;
    }

    .cct-sidebar-overlay.active {
        display: block;
    }

    .cct-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cct-dashboard-topbar {
        padding: 12px 16px;
    }

    .cct-dashboard-body {
        padding: 20px 16px 40px 16px;
    }
}

@media (max-width: 640px) {
    .cct-agency-status-badge {
        display: none;
    }
}







