        /* JS STATUS INDICATOR */
        #js-status { color: #555; font-size: 10px; margin-top: 5px; }
        
        .service-inactive {
            opacity: 0.45;
            background: rgba(255, 69, 58, 0.04) !important;
        }
        .service-inactive td:first-child {
            text-decoration: line-through;
            color: #ff453a;
        }
        .service-inactive input {
            pointer-events: none;
            opacity: 0.5;
        }
        
        #form-shipping-config input.has-custom-value {
            color: #30d158 !important;
            font-weight: 600;
        }
        
        /* INLINED PREMIUM FALLBACK */
        select.select2-filter, select.select2-simple {
            background-color: #1e212d !important;
            color: #fff !important;
            border: 1px solid rgba(255, 255, 255, 0.2) !important;
            border-radius: 12px !important;
            padding: 10px !important;
            min-height: 45px !important;
            appearance: none !important;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
            background-repeat: no-repeat !important;
            background-position: right 15px center !important;
            background-size: 14px !important;
        }

/* --- End of Block (65-99) --- */

        /* --- CORRECTIFS LAYOUT PROFIL & BOUTIQUE --- */
        
        /* 1. Décoller tout le profil du header */
        .page-wrapper.profile-layout {
            margin-top: 50px !important;
        }

        /* 2. Centrage des images dans l'onglet Boutique / Dispoliste */
        .img-container {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            height: 200px !important;
            background: #15171e !important;
            border-radius: 12px !important;
            padding: 10px !important;
            box-sizing: border-box !important;
        }

        .img-container img.stamp-img {
            max-width: 100% !important;
            max-height: 100% !important;
            width: auto !important;
            height: auto !important;
            object-fit: contain !important;
            margin: auto !important;
            display: block !important;
        }

/* --- End of Block (102-129) --- */

        /* --- STRUCTURE & GLASSMORPHISM ADAPTÉ (Style Global) --- */
        .glass-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 20px;
            box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.4);
        }

        .page-wrapper.profile-layout {
            display: grid;
            grid-template-columns: 215px 1fr;
            gap: 20px;
            height: calc(100vh - 120px);
            overflow: hidden;
            width: 100%;
            padding: 0 20px;
        }

        /* Responsive : Single column on mobile */
        @media (max-width: 1024px) {
            .page-wrapper.profile-layout {
                grid-template-columns: 1fr;
                height: auto;
                overflow: visible;
            }
        }

        .profile-sidebar {
            padding: 20px 15px;
            text-align: center;
            display: flex;
            flex-direction: column;
            gap: 20px;
            height: 100%;
        }

        .profile-main {
            padding: 0 40px 0 40px;
            /* Removed bottom padding here */
            overflow-y: auto;
            overscroll-behavior-y: contain;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
            height: 100%;
            min-height: 0;
            position: relative;
            display: flex;
            flex-direction: column;
        }

        .profile-main::-webkit-scrollbar {
            width: 6px;
        }

        .profile-main::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 3px;
        }

        /* Avatar Styling */
        .profile-avatar-wrapper {
            position: relative;
            display: inline-block;
            margin: 0 auto;
        }

        .profile-avatar {
            width: 130px;
            height: 130px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid rgba(255, 255, 255, 0.15);
            background: rgba(0, 0, 0, 0.3);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        }

        .profile-avatar-placeholder {
            width: 130px;
            height: 130px;
            border-radius: 50%;
            background: linear-gradient(135deg, #6e8efb, #a777e3);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            font-weight: bold;
            border: 4px solid rgba(255, 255, 255, 0.15);
            margin: 0 auto;
        }

        /* Badge Vendeur */
        .badge-certified {
            background: rgba(30, 190, 165, 0.2);
            color: #16a085;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            border: 1px solid rgba(30, 190, 165, 0.3);
            margin-top: 10px;
        }



        /* Sidebar Meta & Actions */
        .profile-meta {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9rem;
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 10px;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .profile-actions {
            margin-top: auto;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        /* Buttons */
        .btn-glass {
            padding: 12px 20px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.05);
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-decoration: none;
            color: #e2e8f0;
        }

        .btn-glass:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-2px);
            color: #fff;
        }

        .btn-glass.primary {
            background: linear-gradient(135deg, rgba(110, 142, 251, 0.2), rgba(167, 119, 227, 0.2));
            color: #a777e3;
            border-color: rgba(167, 119, 227, 0.3);
        }

        .btn-glass.primary:hover {
            background: linear-gradient(135deg, rgba(110, 142, 251, 0.3), rgba(167, 119, 227, 0.3));
            color: #fff;
        }

        .btn-glass.danger {
            color: #ff6b6b;
            border-color: rgba(255, 107, 107, 0.3);
        }

        .btn-glass.danger:hover {
            background: rgba(255, 107, 107, 0.1);
            color: #ff8787;
        }


        /* Pagination following catalogue model - Sticky & Flush */
        .shop-pagination-container {
            position: sticky;
            bottom: 0;
            z-index: 101;
            margin: auto -40px 0 -40px;
            /* margin-top: auto pushes to bottom */
            padding: 20px 40px;
            background: rgba(22, 24, 33, 0.98);
            backdrop-filter: blur(20px);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            border-bottom-left-radius: 20px;
            border-bottom-right-radius: 20px;
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        /* Added wrapper padding for content */
        .shop-content-wrapper {
            padding-bottom: 40px;
        }

        .per-page-selector {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.7);
            white-space: nowrap;
        }

        .per-page-selector select {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #fff;
            padding: 8px 35px 8px 12px;
            border-radius: 8px;
            outline: none;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.2s ease;
            appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 10px center;
            background-size: 14px;
        }

        .per-page-selector select:hover {
            background-color: rgba(255, 255, 255, 0.1);
            border-color: #3b82f6;
        }

        .shop-pagination {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .pagination-link {
            padding: 8px 16px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 8px;
            color: #fff;
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 600;
            transition: all 0.2s ease;
            min-width: 42px;
            height: 38px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            gap: 6px;
        }

        .pagination-link:hover:not(.disabled) {
            background: rgba(255, 255, 255, 0.15);
            border-color: #3b82f6;
            transform: translateY(-1px);
            color: #fff;
        }

        .pagination-link.active {
            background: #3b82f6;
            border-color: #3b82f6;
            font-weight: 700;
            color: #fff;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }

        .pagination-link.disabled {
            opacity: 0.3;
            cursor: not-allowed;
            pointer-events: none;
            background: rgba(255, 255, 255, 0.03);
        }

        /* Go to Page Styling */
        .goto-page-container {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-right: 15px;
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
        }

        .goto-page-input {
            width: 70px !important;
            height: 38px !important;
            padding: 0 10px !important;
            background: rgba(255, 255, 255, 0.05) !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            border-radius: 8px !important;
            color: #fff !important;
            text-align: center;
            outline: none;
            font-size: 0.9rem;
        }

        .goto-page-btn {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #fff;
            height: 38px;
            padding: 0 18px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .goto-page-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: #3b82f6;
            color: #fff;
        }

        /* TABS */
        .tabs-header {
            display: flex;
            gap: 15px;
            position: sticky;
            top: 0;
            z-index: 110;
            background: #161821;
            /* brand-darker opaque */
            backdrop-filter: blur(10px);
            margin: 0 -40px 20px -40px;
            /* Full width of container, added 20px margin bottom */
            padding: 15px 40px 0px 40px;
            /* Adjusted padding */
            height: 75px;
            /* Increased height */
            border-radius: 20px 20px 0 0;
            /* Match container top radius */
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .tab-btn {
            padding: 15px 25px;
            border: none;
            background: none;
            cursor: pointer;
            font-weight: 700;
            color: #94a3b8;
            /* var(--text-muted) */
            font-size: 1.05em;
            position: relative;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 10px;
            opacity: 0.7;
        }

        .tab-btn:hover {
            color: #fff;
            opacity: 1;
        }

        .tab-btn.active {
            color: #3b82f6;
            /* var(--accent-blue) */
            opacity: 1;
        }

        .tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 3px;
            background: #3b82f6;
            border-radius: 3px 3px 0 0;
        }

        .tab-content {
            display: none;
            animation: fadeIn 0.4s ease;
            padding-top: 30px;
            padding-bottom: 40px;
        }

        .tab-content.active {
            display: flex;
            flex-direction: column;
            flex-grow: 1;
            min-height: 100%;
            /* Force fill to ensure pagination pushed to bottom */
        }

        /* Layout spécifique pour la boutique avec sidebar intégrée */
        #tab-shop.active,
        #tab-dispoliste.active {
            display: flex;
            flex-direction: row;
            gap: 25px;
            align-items: stretch !important;
            /* Allow children to fill height */
            position: relative;
            padding-top: 10px;
        }

        /* Redéfinition de la sidebar pour l'intégrer comme un cartouche / profil-section */
        #tab-shop #filterSidebar,
        #tab-dispoliste #filterSidebar {
            position: relative !important;
            top: 0 !important;
            left: 0 !important;
            height: auto !important;
            min-height: 500px;
            z-index: 10 !important;
            margin: 0 !important;
            flex-shrink: 0;
            width: 300px;
            box-shadow: none;
            background: rgba(255, 255, 255, 0.02) !important;
            border: 1px solid rgba(255, 255, 255, 0.05) !important;
            border-radius: 16px !important;
            padding: 20px 0 !important;
        }

        #tab-shop .shop-main-content,
        #tab-dispoliste .shop-main-content {
            flex-grow: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            padding: 0;
        }

        /* S'assurer que le contenu scrolle normalement */
        #tab-shop .sidebar-content,
        #tab-dispoliste .sidebar-content {
            max-height: none !important;
            opacity: 1 !important;
            display: block !important;
            padding: 0 20px !important;
        }

        /* Adaptation de la section Bienvenue quand elle est à côté de la sidebar */
        #tab-shop .sticky-welcome,
        #tab-dispoliste .sticky-welcome {
            margin: 0 0 30px 0 !important;
            border-radius: 16px !important;
            border: 1px solid rgba(255, 255, 255, 0.05) !important;
            padding: 25px !important;
            position: relative;
            top: 0;
            background: rgba(255, 255, 255, 0.02) !important;
            box-shadow: none !important;
        }

        /* Pagination adjustment for side-by-side */
        #tab-shop .shop-pagination-container,
        #tab-dispoliste .shop-pagination-container {
            margin: auto 0 0 0 !important;
            border-radius: 0 0 16px 16px !important;
            padding: 15px 20px;
            box-shadow: none !important;
            z-index: 50;
            position: sticky !important;
            bottom: 0;
            background: rgba(21, 23, 30, 0.95);
            /* Close to --bg-page #15171e */
            backdrop-filter: blur(10px);
            /* Blur content behind */
            border-top: none !important;
            border: none !important;
        }

        /* Select2 Premium CSS is now linked in the head */

        /* Supprimer les ombres et comportements flottants en mode profil */
        #tab-shop .sidebar.collapsible .sidebar-header,
        #tab-dispoliste .sidebar.collapsible .sidebar-header {
            cursor: default;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            padding-bottom: 15px;
            margin-bottom: 20px;
        }

        #tab-shop .sidebar-toggle-icon,
        #tab-dispoliste .sidebar-toggle-icon {
            display: none;
        }

        @media (max-width: 1280px) {

            #tab-shop.active,
            #tab-dispoliste.active {
                flex-direction: column;
            }

            #tab-shop .sidebar,
            #tab-dispoliste .sidebar {
                width: 100%;
                min-height: auto;
            }

            #tab-shop .sticky-welcome,
            #tab-dispoliste .sticky-welcome {
                margin: 0 -40px 30px -40px !important;
                border-radius: 0 !important;
            }
        }

        /* Form styling from profil.view.php */
        input[type="text"],
        input[type="email"],
        input[type="password"],
        input[type="date"],
        input[type="number"],
        textarea,
        select {
            background: rgba(255, 255, 255, 0.03) !important;
            border: 1px solid rgba(255, 255, 255, 0.15) !important;
            color: #fff !important;
            border-radius: 12px;
            padding: 12px 15px;
            width: 100%;
            transition: all 0.2s;
        }

        input:focus,
        textarea:focus {
            border-color: #3b82f6 !important;
            background: rgba(255, 255, 255, 0.06) !important;
            outline: none;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
        }

        .section-title {
            font-size: 1.25em;
            color: #fff;
            font-weight: 800;
            margin: 40px 0 25px 0;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .section-title:first-of-type {
            margin-top: 0;
        }

        .section-title::after {
            content: '';
            flex: 1;
            height: 1px;
            background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
        }

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

        .payment-method-row {
            background: rgba(255, 255, 255, 0.02);
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 20px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.2s;
        }

        .payment-toggle {
            display: flex;
            align-items: center;
            gap: 15px;
            cursor: pointer;
            font-weight: 700;
            margin-bottom: 0;
            color: #fff;
        }

        .payment-toggle input {
            width: 20px;
            height: 20px;
            accent-color: var(--accent-blue);
        }

        .hidden-config {
            display: none;
            padding-top: 20px;
            margin-top: 20px;
            border-top: 1px dashed rgba(255, 255, 255, 0.1);
            animation: slideIn 0.3s ease-out;
        }

        .disabled-section {
            opacity: 0.4;
            pointer-events: none;
            filter: grayscale(0.8);
            transition: all 0.4s ease;
        }

        .seller-status-banner {
            padding: 15px 20px;
            border-radius: 12px;
            margin-bottom: 25px;
            display: flex;
            align-items: center;
            gap: 15px;
            font-weight: 700;
            font-size: 0.95rem;
            border: 1px solid transparent;
        }

        .status-incomplete {
            background: rgba(255, 159, 10, 0.1);
            color: #ff9f0a;
            border-color: rgba(255, 159, 10, 0.2);
        }

        .status-complete {
            background: rgba(52, 199, 89, 0.1);
            color: #34c759;
            border-color: rgba(52, 199, 89, 0.2);
        }

        .status-verified {
            background: rgba(59, 130, 246, 0.1);
            color: #60a5fa;
            border-color: rgba(59, 130, 246, 0.2);
        }

        .field-error-mandatory {
            border-color: #ff453a !important;
            background: rgba(255, 69, 58, 0.05) !important;
            box-shadow: 0 0 0 1px #ff453a !important;
        }

        .field-error {
            border-color: #ff453a !important;
            background: rgba(255, 69, 58, 0.05) !important;
        }

        .form-footer {
            position: sticky;
            bottom: 20px;
            margin-top: 40px;
            padding: 15px 25px;
            background: rgba(15, 23, 42, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            text-align: right;
            z-index: 100;
            box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: flex-end;
            align-items: center;
        }

        .btn-save {
            background: linear-gradient(90deg, var(--accent-blue) 0%, #2563eb 100%);
            color: #fff;
            border: none;
            padding: 14px 45px;
            border-radius: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        }

        .btn-save:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
            filter: brightness(1.1);
        }

        /* Avatar Gallery Styles */
        .avatar-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
            gap: 15px;
            margin-top: 15px;
            background: rgba(255, 255, 255, 0.02);
            padding: 20px;
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .gallery-item {
            cursor: pointer;
            border-radius: 12px;
            overflow: hidden;
            border: 2px solid transparent;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            aspect-ratio: 1;
            background: #1a1c24;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }

        .gallery-item:hover {
            border-color: var(--accent-blue);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 122, 255, 0.3);
        }

        .gallery-item.active {
            border-color: var(--accent-blue);
            box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
        }

        /* Shipping Table */
        #table-frais-port {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
        }

        #table-frais-port th {
            text-align: left;
            font-size: 0.75em;
            color: rgba(255, 255, 255, 0.5);
            padding: 10px;
            text-transform: uppercase;
        }

        #table-frais-port td {
            padding: 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .btn-add {
            background: rgba(52, 199, 89, 0.1);
            color: #34c759;
            border: 1px solid rgba(52, 199, 89, 0.2);
            padding: 8px 15px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.85em;
            transition: all 0.2s;
        }

        .btn-add:hover {
            background: rgba(52, 199, 89, 0.2);
        }

        /* MARKETPLACE ORDERS STYLES */
        .sub-nav-container {
            margin-bottom: 25px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            gap: 20px;
            overflow-x: auto;
            padding-bottom: 5px;
        }

        .sub-nav-link {
            padding: 10px 5px;
            text-decoration: none;
            color: #94a3b8;
            font-size: 0.9rem;
            font-weight: 700;
            position: relative;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s;
        }

        .sub-nav-link:hover {
            color: #fff;
        }

        .sub-nav-link.active {
            color: #3b82f6;
        }

        .sub-nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -6px;
            left: 0;
            width: 100%;
            height: 2px;
            background: #3b82f6;
            box-shadow: 0 0 10px #3b82f6;
        }

        .sub-count {
            background: rgba(255, 255, 255, 0.08);
            padding: 2px 7px;
            border-radius: 5px;
            font-size: 0.7rem;
            color: inherit;
            transition: all 0.3s;
        }

        .sub-count.has-count {
            background: #ff453a;
            color: #fff;
            font-weight: 800;
            box-shadow: 0 0 10px rgba(255, 69, 58, 0.5);
        }

        /* Order Cards */
        .order-card-v2 {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            margin-bottom: 24px;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .order-card-v2:hover {
            border-color: rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.04);
            transform: translateY(-2px);
        }
 
        /* ROLE SELECTOR (ACHATS / VENTES) */
        .role-selector-v2 {
            display: flex;
            gap: 15px;
            margin-bottom: 25px;
            padding: 5px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 18px;
            width: fit-content;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }
 
        .role-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 24px;
            border-radius: 14px;
            text-decoration: none;
            color: #94a3b8;
            font-weight: 700;
            font-size: 0.95rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid transparent;
        }
 
        .role-btn:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.05);
        }
 
        .role-btn.active {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            color: #fff;
            box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
 
        .role-btn .role-count {
            background: rgba(0, 0, 0, 0.2);
            padding: 2px 10px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 800;
            color: rgba(255, 255, 255, 0.6);
        }
 
        .role-btn.active .role-count {
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
        }
 
        /* Correction for Sub-nav alignment when role selector is present */
        .sub-nav-container {
            margin-top: 10px;
        }
 
        .order-banner {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 24px;
            background: rgba(255, 255, 255, 0.02);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .txn-ref {
            font-family: 'Monaco', monospace;
            font-weight: 800;
            color: #3b82f6;
            font-size: 1rem;
        }

        .status-pill {
            padding: 6px 14px;
            border-radius: 8px;
            font-size: 0.7rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .status-CONFIRMATION_VENDEUR,
        .status-CONFIRMATION_ACHETEUR {
            background: rgba(255, 159, 10, 0.15);
            color: #ff9f0a;
            border: 1px solid rgba(255, 159, 10, 0.3);
        }

        .status-EN_ATTENTE_PAIEMENT {
            background: rgba(59, 130, 246, 0.15);
            color: #60a5fa;
            border: 1px solid rgba(59, 130, 246, 0.3);
        }

        .status-PAYE {
            background: rgba(52, 199, 89, 0.15);
            color: #34c759;
            border: 1px solid rgba(52, 199, 89, 0.3);
        }

        .order-grid-details {
            display: grid;
            grid-template-columns: 1fr 380px;
            gap: 1px;
            background: rgba(255, 255, 255, 0.05);
        }

        @media (max-width: 1100px) {
            .order-grid-details {
                grid-template-columns: 1fr;
            }
        }

        .items-area {
            background: rgba(22, 24, 33, 0.5);
            padding: 24px;
        }

        .info-area {
            background: rgba(255, 255, 255, 0.01);
            padding: 24px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .item-row-v2 {
            display: flex;
            gap: 20px;
            padding: 15px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            align-items: center;
        }

        .item-row-v2:last-child {
            border-bottom: none;
        }

        .item-info-v2 h4 {
            margin: 0 0 8px 0;
            font-size: 1.3rem;
            color: #fff;
            line-height: 1.2;
        }

        .item-info-v2 p {
            margin: 0;
            font-size: 1.3rem;
            color: #94a3b8;
            line-height: 1.5;
        }

        .item-price-v2 {
            margin-left: auto;
            font-weight: 800;
            font-size: 1.1rem;
            color: #fff;
        }

        .detail-block h5 {
            margin: 0 0 10px 0;
            font-size: 0.75rem;
            color: #3b82f6;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .summary-mini {
            display: flex;
            justify-content: space-between;
            font-size: 0.9rem;
            margin-bottom: 6px;
            color: #94a3b8;
        }

        .summary-total-v2 {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            font-weight: 900;
            font-size: 1.4rem;
            color: #fff;
        }

        .btn-market {
            width: 100%;
            padding: 14px;
            border-radius: 12px;
            border: none;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.2s;
            text-align: center;
            text-decoration: none;
            display: block;
            font-size: 0.9rem;
        }

        .btn-market-primary {
            background: #34c759;
            color: #fff;
            box-shadow: 0 4px 12px rgba(52, 199, 89, 0.2);
        }

        .btn-market-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(52, 199, 89, 0.3);
        }

        .btn-market-outline {
            background: transparent;
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.1);
            margin-top: 10px;
        }

        /* MODALS MARKETPLACE */
        .modal-market {
            display: none;
            position: fixed;
            z-index: 10000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(10px);
            align-items: center;
            justify-content: center;
        }

        .modal-content-market {
            background: #1e212b;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 28px;
            padding: 35px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            animation: slideIn 0.3s ease-out;
        }

        .modal-title {
            margin: 0 0 15px 0;
            font-size: 1.4rem;
            font-weight: 800;
            color: #fff;
        }

        .modal-body {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 25px;
        }

        .modal-footer {
            display: flex;
            gap: 12px;
        }

        .btn-modal {
            flex: 1;
            padding: 14px;
            border-radius: 14px;
            border: none;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-modal-confirm {
            background: #3b82f6;
            color: #fff;
        }

        .btn-modal-cancel {
            background: rgba(255, 255, 255, 0.05);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .btn-modal-danger {
            background: #ff453a;
            color: #fff;
        }

        /* MODAL THEMES */
        .theme-blue .modal-title {
            color: #3b82f6;
        }

        .theme-danger .modal-title {
            color: #ff453a;
        }

        .theme-orange .modal-title {
            color: #ff9f0a;
        }

        .theme-green .modal-title {
            color: #34c759;
        }

        /* Status Messages */
        .message-box {
            padding: 15px 25px;
            border-radius: 12px;
            margin-bottom: 30px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 12px;
            animation: slideIn 0.3s ease-out;
            transition: all 0.5s ease;
        }

        .message-box.success {
            background: rgba(52, 199, 89, 0.1);
            color: #34c759;
            border: 1px solid rgba(52, 199, 89, 0.3);
        }

        .message-box.error {
            background: rgba(255, 69, 58, 0.1);
            color: #ff453a;
            border: 1px solid rgba(255, 69, 58, 0.3);
        }

        /* Stats Grid */
        .sticky-stats-container {
            position: sticky;
            top: 55px;
            /* Offset for the sticky tabs-header */
            z-index: 10;
            background: rgba(22, 24, 33, 0.95);
            /* brand-darker with transparency */
            margin: -20px -20px 20px -20px;
            padding: 20px 20px 10px 20px;
            border-bottom: 1px solid var(--glass-border);
            backdrop-filter: blur(20px);
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 20px;
            margin-bottom: 0;
        }

        .stat-item {
            text-align: center;
            padding: 20px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .stat-icon {
            font-size: 1.5rem;
            color: #a777e3;
            margin-bottom: 10px;
        }

        .stat-value {
            font-size: 1.8rem;
            font-weight: 800;
            color: #fff;
        }

        .stat-label {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #94a3b8;
            margin-top: 5px;
        }

        /* Profile Section (Bio) */
        .profile-section {
            background: rgba(255, 255, 255, 0.02);
            border-radius: 16px;
            padding: 25px;
            margin-bottom: 25px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .sticky-welcome {
            position: sticky;
            top: 65px;
            /* Matches tabs-header height exactly */
            z-index: 100;
            background: #161821;
            backdrop-filter: blur(15px);
            margin: 0 -40px 30px -40px;
            /* Removed negative margin top to prevent jump */
            padding: 20px 40px;
            border-radius: 0;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            /* Subtle separator */
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        .profile-section h3 {
            margin-top: 0;
            color: #fff;
            font-size: 1.1em;
            margin-bottom: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 10px;
        }

        .profile-section p {
            line-height: 1.6;
            color: #d1d5db;
        }

        .btn-view-item:hover {
            background: #2563eb;
            text-decoration: none;
        }

        .empty-state {
            grid-column: 1 / -1;
            text-align: center;
            padding: 60px;
            color: #94a3b8;
        }

        .empty-state i {
            font-size: 3rem;
            margin-bottom: 20px;
            opacity: 0.5;
        }

        .card-resizer { 
            gap: 12px; 
            display: flex;
            align-items: center;
            padding: 0 12px;
            height: 42px;
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.1); 
            background: rgba(255,255,255,0.05);
            transition: all 0.3s ease;
        }
        .resizer-label { font-size: 0.65rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; }
        .resizer-slider {
            -webkit-appearance: none; width: 80px; height: 3px;
            background: rgba(255,255,255,0.1); border-radius: 5px; outline: none;
        }
        .resizer-slider::-webkit-slider-thumb {
            -webkit-appearance: none; width: 14px; height: 14px;
            background: #fff; border-radius: 50%; cursor: pointer;
            box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
            transition: 0.2s;
        }
        .resizer-slider::-webkit-slider-thumb:hover { transform: scale(1.2); background: #3b82f6; }

        /* View Toggle Styles */
        .view-toggle-v2 {
            display: flex;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        .view-toggle-btn {
            background: transparent;
            border: none;
            color: #94a3b8;
            padding: 10px 15px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            font-weight: 600;
        }
        .view-toggle-btn.active {
            background: rgba(59, 130, 246, 0.2);
            color: #fff;
        }
        .view-toggle-btn:not(.active):hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
        }
        .toggle-separator {
            width: 1px;
            background: rgba(255, 255, 255, 0.1);
            align-self: stretch;
        }

        /* Modal Signalement */
        .modal-glass {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
        }

        .modal-content {
            position: relative;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            max-width: 500px;
            width: 90%;
            background: #2c3040;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
            color: #fff;
        }


        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            font-size: 0.9em;
            color: #cbd5e1;
        }

        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 12px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(0, 0, 0, 0.2);
            color: #fff;
            font-family: inherit;
        }

        .form-group textarea {
            height: 120px;
            resize: none;
        }

        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #3b82f6;
        }

        .modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 15px;
            margin-top: 25px;
        }

        /* Shop List View (Table-style) */
        .shop-list-container {
            width: 100%;
            overflow-x: auto;
            margin-top: 20px;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 16px;
        }
        .shop-list-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.95rem;
        }
        .shop-list-table th {
            text-align: left;
            padding: 15px 20px;
            background: rgba(255, 255, 255, 0.03);
            color: #94a3b8;
            font-weight: 700;
            text-transform: uppercase;
            font-size: 0.75rem;
            letter-spacing: 1px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }
        .shop-list-table td {
            padding: 12px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.03);
            vertical-align: middle;
            color: #d1d5db;
        }
        .shop-list-table tr:last-child td { border-bottom: none; }
        .shop-list-table tr:hover { background: rgba(59, 130, 246, 0.05); cursor: pointer; }
        
        .list-img-thumb {
            width: 50px;
            height: 50px;
            object-fit: contain;
            background: #1f222e;
            padding: 5px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        .list-ref { font-size: 0.85rem; font-weight: 800; color: #3b82f6; }
        .list-title { font-size: 0.95rem; font-weight: 600; color: #fff; }
        .list-price { font-size: 1rem; font-weight: 900; color: #fff; text-align: right; white-space: nowrap; }

        /* Correction pour les badges dans la liste : ne pas suivre le zoom des cartes */
        .shop-list-table .badge-etat {
            font-size: 0.75rem !important;
            padding: 4px 10px !important;
            font-weight: 700 !important;
        }

        /* Evaluations List Styles */
        .evaluation-row {
            display: flex;
            gap: 20px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            margin-bottom: 5px;
            transition: all 0.3s ease;
            align-items: flex-start;
        }

        .evaluation-row:hover {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.15);
        }

        .eval-author-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid rgba(255, 255, 255, 0.1);
            flex-shrink: 0;
            background: #1f222e;
        }

        .eval-content {
            flex-grow: 1;
        }

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

        .eval-author-name {
            font-weight: 700;
            color: #fff;
            font-size: 1rem;
        }

        .eval-date {
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.5);
        }

        .eval-rating {
            margin-bottom: 10px;
            display: flex;
            gap: 4px;
        }

        .eval-comment {
            color: #d1d5db;
            line-height: 1.5;
            font-size: 0.95rem;
        }

        .star-mini {
            width: 14px;
            height: 14px;
            background-size: contain;
            background-repeat: no-repeat;
            display: inline-block;
        }

        .star-mini.yellow-full {
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffcc00'%3e%3cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3e%3c/svg%3e");
        }

        .star-mini.grey-border {
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='0.2' stroke-width='2'%3e%3cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3e%3c/svg%3e");
        }

        /* --- 10. MODERN TABLES (FOR SHIPPING CONFIG) --- */
        .modern-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0 8px;
            margin-top: -8px;
        }

        .modern-table th {
            background: transparent !important;
            border: none !important;
            color: rgba(255, 255, 255, 0.5) !important;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 10px 15px !important;
            text-align: left !important;
        }

        .modern-table td {
            background: rgba(255, 255, 255, 0.03) !important;
            border: none !important;
            padding: 12px 15px !important;
            height: auto !important;
            vertical-align: middle;
        }

        .modern-table tr td:first-child {
            border-radius: 12px 0 0 12px;
        }

        .modern-table tr td:last-child {
            border-radius: 0 12px 12px 0;
        }

        .modern-table input:not([type="radio"]):not([type="checkbox"]) {
            height: 38px;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: #fff;
            padding: 0 10px;
            width: 100%;
        }

        .modern-table input:not([type="radio"]):not([type="checkbox"]):focus {
            border-color: #3b82f6;
            outline: none;
        }

        .modern-table input[type="radio"] {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.3);
            cursor: pointer;
            position: relative;
            outline: none;
            vertical-align: middle;
            margin: 0;
            display: inline-block;
            transition: all 0.2s ease;
        }

        .modern-table input[type="radio"]:hover {
            border-color: rgba(255, 255, 255, 0.6);
            box-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
        }

        .modern-table input[type="radio"]:checked {
            border-color: #3b82f6;
            background: rgba(59, 130, 246, 0.1);
        }

        .modern-table input[type="radio"]:checked::after {
            content: '';
            width: 8px;
            height: 8px;
            background-color: #3b82f6;
            border-radius: 50%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            box-shadow: 0 0 6px rgba(59, 130, 246, 0.6);
        }

        .modern-table td input[type="number"] {
            display: inline-block;
            margin: 0 auto;
        }

        .sub-tab-btn {
            padding: 8px 20px;
            font-size: 0.9rem;
            opacity: 0.6;
        }

        .sub-tab-btn.active {
            opacity: 1;
            background: rgba(59, 130, 246, 0.2);
            border-color: #3b82f6;
        }

/* --- End of Block (132-1775) --- */

        /* CSS Override for Pagination - Force Translucency & Bottom Position */
        #tab-shop .shop-pagination-container,
        #tab-dispoliste .shop-pagination-container {
            position: sticky !important;
            /* Fallback */
            position: -webkit-sticky !important;
            bottom: 20px !important;
            /* Marge du bas */
            margin-top: auto !important;
            /* Pousse vers le bas si le contenu est court */
            z-index: 900 !important;

            /* Style Visual */
            background: rgba(21, 23, 30, 0.85) !important;
            backdrop-filter: blur(12px) !important;
            -webkit-backdrop-filter: blur(12px) !important;
            border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
            box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3) !important;
            border-radius: 16px !important;
            padding: 15px 20px !important;
        }

        /* Si le contenu est plus petit que l'écran, on veut que la pagination colle au bas */
        #tab-shop.active,
        #tab-dispoliste.active {
            display: flex;
            flex-direction: row;
            /* Sidebar + Main */
            min-height: calc(100vh - 200px);
            /* Assure une hauteur min pour le sticky */
        }

        #tab-shop .shop-main-content,
        #tab-dispoliste .shop-main-content {
            display: flex;
            flex-direction: column;
            width: 100%;
        }

        /* Centrage forcé pour le tableau des propositions commerciales */
        #tab-seller-propositions .shop-list-table th,
        #tab-seller-propositions .shop-list-table td {
            text-align: center !important;
        }

        /* Select2 Premium CSS is now linked in the head */

/* --- End of Block (3763-3808) --- */

