
    
        @font-face { 
            font-family: 'Bebas Neue'; 
            src: url('/static/fonts/BebasNeue-Regular.ttf') format('truetype'); font-display: block; 
        }
        link[rel="manifest"] { 
            --pwacompat-splash-font: 28px 'Bebas Neue', sans-serif; 
        }
    
        #nprogress .bar{background:#10B981}
        #nprogress .peg{box-shadow:0 0 10px #10B981,0 0 5px #10B981}
        #nprogress .spinner-icon{border-top-color:#10B981;border-left-color:#10B981}

    
        @font-face {
            font-family: "Inter";
            src: url("/static/fonts/Inter-Regular.ttf?v={{ deploy_version }}") format("truetype");
            font-display: swap;
        }

        :root {
            --sidebar-width: 18rem;

            --dark: #1E1E2D;
            --darker: #151521;
            --darkest: #0a0a0a;

            --primary: #0D6EFD;
            --blue-600: #0a58ca;
            --red-500: #dc3545;
            --gray-300: #d1d5db;
            --gray-400: #9ca3af;
            --gray-500: #6c757d;
            --gray-600: #4b5563;
            --gray-700: #2D2D3D;
            --gray-800: #1A1A2A;
        }

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

        body {
            color: white;
            font-family: 'Inter', sans-serif;
            line-height: 1.5;
        }

        /* Estructura principal */
        .sidebar {
            position: fixed;
            /* height: 100%; */
            width: var(--sidebar-width);
            background-color: var(--darkest);
            border-right: 1px solid #212021;
            /* padding: 1.5rem; */
            z-index: 40;
            overflow-y: auto;
            transition: width 0.25s ease, transform 0.3s ease, opacity 0.25s ease;
            overflow-x: hidden;
        }

        .main-content {
            margin-left: var(--sidebar-width);
            min-height: 100vh;
            background-color: #000;
            transition: margin-left 0.25s ease;
        }

        /* Sidebar resize handle */
        .sidebar-resize-handle {
            position: absolute; top: 0; right: -3px; width: 6px; height: 100%;
            cursor: col-resize; z-index: 50;
            background: transparent; transition: background 0.15s;
        }
        .sidebar-resize-handle:hover, .sidebar-resize-handle.dragging {
            background: rgba(0, 214, 125, 0.4);
        }

        /* Sidebar AI view transitions */
        .sidebar-view-container {
            position: relative; overflow: hidden; flex: 1;
        }
        .sidebar-view {
            transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
        }
        .sidebar-view.slide-out-left {
            transform: translateX(-100%); opacity: 0; pointer-events: none;
            position: absolute; inset: 0;
        }
        .sidebar-view.slide-in-right {
            transform: translateX(0); opacity: 1;
            position: relative;
        }
        .sidebar-view.off-right {
            transform: translateX(100%); opacity: 0; pointer-events: none;
            position: absolute; inset: 0;
        }

        /* Navegación */
        .sidebar-nav {
            /* padding: 0 1.5rem; */
        }

        #sidebarNavView{
            padding: 0 1.5rem;
        }
        #desktopSearchRow{
            padding: 0 1.5rem;
        }

        .sidebar-link {
            display: flex;
            align-items: center;
            padding: 0.5rem 0;
            color: var(--gray-400);
            font-weight: 400;
            text-decoration: none;
            transition: color 0.2s;
        }

        .sidebar-link:hover {
            color: var(--primary);
        }

        .sidebar-link.text-white {
            color: white;
        }

        .sidebar-divider {
            padding-top: 1.5rem;
            border-top: 1px solid var(--gray-800);
            margin-top: 1.5rem;
        }

        /* Iconos SVG */
        .icon-svg {
            width: 1.25em;
            height: 1.25em;
            display: inline-block;
            margin-right: 0.75rem;
            flex-shrink: 0;
            color: currentColor;
            vertical-align: -0.125em;
        }

        .sidebar-link:hover .icon-svg {
            color: var(--primary);
        }

        .sidebar-link.text-white .icon-svg {
            color: white;
        }

        /* Header móvil */
        .mobile-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            /* background-color: var(--dark); */
            background-color: var(--darkest);
            border-bottom: 1px solid var(--gray-800);
            padding: 0.75rem 1rem;
            z-index: 50;
            display: none;
        }


        /* Botón de menú móvil */
        .mobile-menu-btn {
            background: none;
            border: none;
            color: var(--primary);
            padding: 10px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s;
        }

        .mobile-menu-btn:hover {
            background-color: rgba(13, 110, 253, 0.1);
        }

        .mobile-menu-btn .icon-svg {
            margin-right: 0;
            width: 1.75em;
            height: 1.75em;
        }

        /* Menú móvil rediseñado */
        .mobile-menu-redesign {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--dark);
            z-index: 100;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
        }

        .mobile-menu-redesign.hidden {
            display: none;
        }

        .mobile-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.25rem;
            border-bottom: 1px solid var(--gray-800);
            position: sticky;
            top: 0;
            background-color: var(--dark);
            z-index: 5;
        }

        .mobile-menu-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: white;
        }

        .mobile-menu-close {
            background: none;
            border: none;
            color: var(--gray-400);
            padding: 10px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s;
        }

        .mobile-menu-close:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .mobile-menu-close .icon-svg {
            width: 1.5em;
            height: 1.5em;
            margin-right: 0;
        }

        .mobile-menu-content {
            flex: 1;
            padding: 1rem;
            overflow-y: auto;
        }

        .mobile-menu-section {
            margin-bottom: 2rem;
        }

        .mobile-menu-section-title {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--gray-400);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 1rem;
            padding-left: 0.5rem;
        }

        .mobile-menu-item {
            display: flex;
            align-items: center;
            padding: 1rem;
            border-radius: 0.75rem;
            margin-bottom: 0.5rem;
            transition: background-color 0.3s;
            text-decoration: none;
            color: white;
        }

        .mobile-menu-item:hover,
        .mobile-menu-item.active {
            background-color: rgba(13, 110, 253, 0.1);
        }

        .mobile-menu-item.active {
            color: var(--primary);
        }

        .mobile-menu-item-icon {
            width: 2.5rem;
            height: 2.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 0.75rem;
            background-color: rgba(255, 255, 255, 0.1);
            margin-right: 1rem;
            flex-shrink: 0;
        }

        .mobile-menu-item-icon svg {
            width: 1.25rem;
            height: 1.25rem;
            color: var(--primary);
        }

        .mobile-menu-item.active .mobile-menu-item-icon {
            background-color: rgba(13, 110, 253, 0.2);
        }

        .mobile-menu-item-content {
            flex: 1;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .mobile-menu-item-title {
            font-weight: 500;
            font-size: 1rem;
        }

        .mobile-menu-item-badge {
            background-color: var(--primary);
            color: white;
            font-size: 0.75rem;
            font-weight: 600;
            padding: 0.25rem 0.5rem;
            border-radius: 9999px;
            min-width: 1.5rem;
            text-align: center;
        }

        /* Navegación móvil */
        .mobile-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            /* background-color: var(--dark); */
            background-color: var(--darkest);
            border-top: 1px solid var(--gray-800);
            padding: 0.5rem 0;
            padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
            z-index: 50;
            display: none;
            transform: translateZ(0); /* Fix for iOS scroll jitter */
        }

        body.mobile-ai-open .mobile-nav {
            display: none !important;
        }

        @media (max-width: 768px) {
            .mobile-nav {
                display: block;
            }
        }

        .mobile-nav-inner {
            display: flex;
            justify-content: space-around;
        }

        .mobile-nav-link {
            padding: 0.75rem 0.5rem;
            color: var(--gray-400);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            transition: color 0.3s;
        }

        .mobile-nav-link.active {
            color: var(--primary);
        }

        .mobile-nav-link .icon-svg {
            width: 1.5em;
            height: 1.5em;
            margin-right: 0;
            margin-bottom: 0.25rem;
        }

        .mobile-nav-link span {
            font-size: 0.75rem;
            font-weight: 500;
        }

        /* Animaciones para el menú móvil */
        .mobile-menu-redesign {
            animation: slideIn 0.3s ease-out;
        }

        @keyframes slideIn {
            from {
                transform: translateX(-100%);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .mobile-menu-item {
            animation: fadeIn 0.3s ease-out;
            animation-fill-mode: both;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Aplicar retraso a los elementos del menú para crear un efecto en cascada */
        .mobile-menu-item:nth-child(1) {
            animation-delay: 0.05s;
        }

        .mobile-menu-item:nth-child(2) {
            animation-delay: 0.1s;
        }

        .mobile-menu-item:nth-child(3) {
            animation-delay: 0.15s;
        }

        .mobile-menu-item:nth-child(4) {
            animation-delay: 0.2s;
        }

        .mobile-menu-item:nth-child(5) {
            animation-delay: 0.25s;
        }

        .mobile-menu-item:nth-child(6) {
            animation-delay: 0.3s;
        }

        .mobile-menu-item:nth-child(7) {
            animation-delay: 0.35s;
        }

        .mobile-menu-item:nth-child(8) {
            animation-delay: 0.4s;
        }

        /* Utilidades */
        .text-white {
            color: white;
        }

        .text-gray-400 {
            color: var(--gray-400);
        }

        .text-primary {
            color: var(--primary);
        }

        .bg-dark {
            background-color: var(--dark);
        }

        .bg-darker {
            background-color: var(--darker);
        }

        .bg-gray-800 {
            background-color: var(--gray-800);
        }

        .border-gray-800 {
            border-color: var(--gray-800);
        }

        .rounded-lg {
            border-radius: 0.5rem;
        }

        .p-4 {
            padding: 1rem;
        }

        .mb-6 {
            margin-bottom: 1.5rem;
        }

        .mb-8 {
            margin-bottom: 2rem;
        }

        .mx-auto {
            margin-left: auto;
            margin-right: auto;
        }

        .w-full {
            width: 100%;
        }

        .h-auto {
            height: auto;
        }

        .max-w-3xl {
            max-width: 48rem;
        }

        .space-y-4>*+* {
            margin-top: 1rem;
        }

        .border {
            border-width: 1px;
        }

        .border-t {
            border-top-width: 1px;
        }

        .border-b {
            border-bottom-width: 1px;
        }

        .hover-card:hover {
            border-color: var(--gray-700);
            transition: all 0.2s;
        }

        .hidden {
            display: none !important;
        }

        /* Global thin scrollbar */
        * {
            scrollbar-width: thin;
            scrollbar-color: var(--gray-700) transparent;
        }
        *::-webkit-scrollbar {
            width: 4px;
            height: 4px;
        }
        *::-webkit-scrollbar-track {
            background: transparent;
        }
        *::-webkit-scrollbar-thumb {
            background: var(--gray-700);
            border-radius: 4px;
        }
        *::-webkit-scrollbar-thumb:hover {
            background: var(--gray-600);
        }

        /* Botones */
        .btn {
            display: inline-block;
            font-weight: 500;
            text-align: center;
            vertical-align: middle;
            cursor: pointer;
            border: 1px solid transparent;
            padding: 0.375rem 0.75rem;
            font-size: 1rem;
            line-height: 1.5;
            border-radius: 0.25rem;
            transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
        }


        .btn-outline {
            color: var(--primary);
            background-color: transparent;
            border-color: var(--primary);
        }

        .btn-outline:hover {
            color: white;
            background-color: var(--primary);
        }

        /* Formularios */
        .form-control {
            display: block;
            width: 100%;
            padding: 0.375rem 0.75rem;
            font-size: 1rem;
            line-height: 1.5;
            color: white;
            background-color: var(--gray-800);
            border: 1px solid var(--gray-700);
            border-radius: 0.25rem;
            transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
        }

        .form-control:focus {
            border-color: var(--primary);
            outline: 0;
            box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
        }

        .form-label {
            margin-bottom: 0.5rem;
            display: inline-block;
        }

        /* Media queries */
        @media (max-width: 768px) {
            .sidebar {
                display: none;
            }

            .main-content {
                margin-left: 0;
                padding-top: 5rem;
                padding-bottom: 4rem;
            }

            .mobile-header {
                display: block;
            }

            .mobile-nav {
                display: block;
            }
        }

        /* Flexbox utilities */
        .flex {
            display: flex;
        }

        .justify-between {
            justify-content: space-between;
        }

        .items-center {
            align-items: center;
        }

        .w-8 {
            width: 2rem;
        }

        /* Splash Screen (browser-only, PWA uses native splash via pwacompat) */
        #splash-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #000000;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 99999;
            transition: opacity 0.6s ease-out, visibility 0.6s;
        }

        .splash-content {
            text-align: center;
            animation: splashPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .splash-logo {
            width: 80px;
            height: 80px;
            margin-bottom: 1.5rem;
            filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.3));
        }

        .splash-title {
            font-size: 1.75rem;
            font-weight: 800;
            color: white;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            margin-bottom: 2rem;
        }

        .splash-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid rgba(255, 255, 255, 0.1);
            border-top-color: #10b981;
            border-radius: 50%;
            animation: splashSpin 1s linear infinite;
        }

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

        @keyframes splashPop {
            from { opacity: 0; transform: scale(0.8); }
            to { opacity: 1; transform: scale(1); }
        }

        body.loaded #splash-screen {
            opacity: 0;
            visibility: hidden;
        }

    
    
        body {
            color: white;
            font-family: "Inter", sans-serif !important;
            margin: 0;
            padding: 0;
        }

        * {
            font-family: "Inter", sans-serif !important;
            box-sizing: border-box;
        }

        /* Estilos específicos para esta página */
        .main-content {
            width: calc(100% - var(--sidebar-width));
            margin-left: var(--sidebar-width);
            /* padding: 0!important; */
            min-height: 100vh;
            overflow-y: auto;
            background-color: #0a0a0a;
            /* var(--darker); */
            max-width: none;
            transition: margin-left 0.25s ease, width 0.25s ease;
        }

        @media (max-width: 768px) {
            .main-content {
                width: 100%;
                margin-left: 0;
                margin-right: 0;
                margin-bottom: 7vh;
                padding: 1rem;
                box-sizing: border-box;
                overflow-x: hidden;
            }
        }

        /* Header */
        .page-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .page-title {
            font-size: 2rem;
            font-weight: 700;
            color: white;
            margin: 0;
        }

        /* Grid layout */
        .config-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        @media (max-width: 768px) {
            .config-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
        }

        /* Secciones */
        .config-section {
            background-color: #080708;
            border-radius: 12px;
            padding: 1.5rem;
            border: 1px solid var(--gray-800);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .config-section:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        }

        .section-title {
            color: white;
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--gray-800);
        }

        .section-content p {
            color: var(--gray-300);
            font-size: 0.9rem;
            margin-bottom: 0.75rem;
            line-height: 1.5;
        }

        .section-content p strong {
            color: white;
        }

        .highlight-text {
            color: var(--primary);
            font-weight: 500;
        }

        /* Formularios */
        .config-form {
            margin-top: 1rem;
        }

        .form-group {
            margin-bottom: 1rem;
        }

        .form-label {
            display: block;
            color: var(--gray-300);
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .form-input {
            width: 100%;
            padding: 0.75rem;
            background-color: var(--darker);
            color: white;
            border: 1px solid var(--gray-700);
            border-radius: 6px;
            font-size: 0.9rem;
            box-sizing: border-box;
        }

        .form-input:focus {
            border-color: var(--primary);
            outline: none;
        }

        .form-input::placeholder {
            color: var(--gray-500);
        }

        /* Botones */
        .btn {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.2s, transform 0.2s;
            width: 100%;
            margin-top: 0.5rem;
        }


        .message-search {
            position: relative;
            margin-top: 12px;
        }

        .message-search input {
            width: 100%;
            padding: 8px 12px 8px 36px;
            background-color: #0c0b0c;
            border: 1px solid var(--gray-800);
            border-radius: 20px;
            color: white;
            font-family: 'Inter', sans-serif;
        }

        .message-search-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray-400);
        }

        .btn-primary {
            background-color: #bd2ac0;
            /* border-color: var(--primary); */
        }

        .btn-primary:hover {
            filter: brightness(0.85);
            transform: translateY(-2px);
            transition: 20ms;
        }

        .btn-danger {
            background-color: #dc3545;
            color: white;
        }

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

        .btn-install {
            background-color: var(--gray-700);
            color: white;
            margin-bottom: 1rem;
        }

        .btn-install:hover {
            background-color: var(--gray-600);
        }

        /* Tabla de notificaciones */
        .notifications-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1rem;
        }

        .notifications-table th,
        .notifications-table td {
            padding: 0.75rem;
            text-align: left;
            border-bottom: 1px solid var(--gray-800);
        }

        .notifications-table th {
            background-color: var(--gray-800);
            color: white;
            font-weight: 600;
            font-size: 0.9rem;
        }

        .notifications-table td {
            color: var(--gray-300);
            font-size: 0.9rem;
        }

        .notifications-table input[type="checkbox"] {
            transform: scale(1.2);
            cursor: pointer;
            accent-color: var(--primary);
        }

        /* Información de cuenta */
        .account-info {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .info-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 0;
        }

        .info-label {
            color: var(--gray-400);
            font-size: 0.9rem;
        }

        .info-value {
            color: white;
            font-weight: 500;
            font-size: 0.9rem;
        }

        /* 2FA Section */
        .twofa-options {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-top: 1rem;
        }

        .twofa-option {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            background-color: #0f0e11;
            border-radius: 8px;
        }

        .twofa-info {
            flex: 1;
        }

        .twofa-title {
            color: white;
            font-weight: 500;
            margin-bottom: 0.25rem;
        }

        .twofa-description {
            color: var(--gray-400);
            font-size: 0.8rem;
        }

        .twofa-status {
            font-size: 0.8rem;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            margin-right: 1rem;
        }

        .status-enabled {
            background-color: rgba(34, 197, 94, 0.2);
            color: #22c55e;
        }

        .status-disabled {
            background-color: rgba(239, 68, 68, 0.2);
            color: #ef4444;
        }

        .btn-small {
            padding: 0.5rem 1rem;
            font-size: 0.8rem;
            width: auto;
            margin: 0;
        }

        /* Footer */
        .config-footer {
            text-align: center;
            margin-top: 2rem;
            padding-top: 1rem;
            border-top: 1px solid var(--gray-800);
        }

        .config-footer p {
            color: var(--gray-400);
            font-size: 0.9rem;
        }

        .config-footer a {
            color: var(--primary);
            text-decoration: underline;
        }

        .config-footer a:hover {
            color: var(--blue-400);
        }

        /* Responsive adjustments */
        @media (max-width: 480px) {
            .main-content {
                padding: 0.75rem;
            }

            .config-section {
                padding: 1rem;
            }

            .notifications-table th,
            .notifications-table td {
                padding: 0.5rem;
                font-size: 0.8rem;
            }

            .twofa-option {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.75rem;
            }

            .btn-small {
                width: 100%;
            }
        }

        /* Chrome, Safari, Edge, Opera */
        input[type=number]::-webkit-inner-spin-button,
        input[type=number]::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        /* Firefox */
        input[type=number] {
            -moz-appearance: textfield;
        }
    
            
                @keyframes subModalPop {
                    from { opacity:0; transform:scale(0.85) translateY(20px); }
                    to { opacity:1; transform:scale(1) translateY(0); }
                }
            
            
    #argo-chat-widget {
        position: fixed;
        bottom: 0;
        right: 24px;
        z-index: 999999;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        pointer-events: none;
    }

    /* ── Panel ── */
    #argo-chat-panel {
        width: 340px;
        height: 480px;
        background: #1C1C1E;
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 32px rgba(0,0,0,0.6);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        pointer-events: all;
        transform: translateY(calc(100% - 52px));
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    #argo-chat-panel.open {
        transform: translateY(0);
    }

    /* ── Header bar ── */
    .argo-chat-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 14px;
        height: 52px;
        background: #1C1C1E;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        cursor: pointer;
        flex-shrink: 0;
        user-select: none;
    }
    .argo-chat-header-title {
        font-size: 14px;
        font-weight: 700;
        color: #fff;
        letter-spacing: 0.01em;
    }
    .argo-chat-header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .argo-chat-icon-btn {
        width: 28px; height: 28px;
        border-radius: 8px;
        background: transparent;
        border: none;
        color: #9ca3af;
        cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        transition: background 0.15s, color 0.15s;
    }
    .argo-chat-icon-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }

    /* ── Convo list ── */
    #argo-convo-list {
        flex: 1;
        overflow-y: auto;
        padding: 8px 0;
        scrollbar-width: none;
    }
    #argo-convo-list::-webkit-scrollbar { display: none; }

    .argo-convo-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 16px;
        cursor: pointer;
        transition: background 0.15s;
        border-radius: 10px;
        margin: 0 6px 2px;
    }
    .argo-convo-item:hover { background: rgba(255,255,255,0.06); }
    .argo-convo-item.unread .argo-convo-name { font-weight: 800; color: #fff; }
    .argo-convo-item.unread .argo-convo-preview { color: rgba(255,255,255,0.7); }
    .argo-convo-avatar {
        width: 36px; height: 36px; border-radius: 50%;
        object-fit: cover;
        background: rgba(16,185,129,0.2);
        border: 1.5px solid rgba(16,185,129,0.3);
        flex-shrink: 0;
        display: flex; align-items: center; justify-content: center;
        font-size: 12px; font-weight: 800; color: #10b981;
    }
    .argo-convo-body { flex: 1; min-width: 0; }
    .argo-convo-name {
        font-size: 13px; font-weight: 600;
        color: rgba(255,255,255,0.9);
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .argo-convo-preview {
        font-size: 11px; color: rgba(255,255,255,0.4);
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        margin-top: 1px;
    }
    .argo-convo-time {
        font-size: 10px; color: rgba(255,255,255,0.3);
        white-space: nowrap; flex-shrink: 0;
    }
    .argo-unread-dot {
        width: 8px; height: 8px; border-radius: 50%;
        background: #10b981;
        flex-shrink: 0;
        box-shadow: 0 0 6px rgba(16,185,129,0.6);
    }

    /* ── Empty state ── */
    .argo-chat-empty {
        flex: 1;
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;
        gap: 10px;
        color: rgba(255,255,255,0.3);
        font-size: 13px;
        text-align: center;
        padding: 24px;
    }

    /* ── Loading skeleton ── */
    .argo-chat-skeleton {
        display: flex; align-items: center; gap: 12px;
        padding: 10px 16px; margin: 0 6px 2px;
    }
    .argo-skel-avatar {
        width: 36px; height: 36px; border-radius: 50%;
        background: rgba(255,255,255,0.06); flex-shrink: 0;
        animation: argo-pulse 1.5s ease-in-out infinite;
    }
    .argo-skel-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
    .argo-skel-line {
        height: 10px; border-radius: 5px;
        background: rgba(255,255,255,0.06);
        animation: argo-pulse 1.5s ease-in-out infinite;
    }
    .argo-skel-line.short { width: 60%; }
    @keyframes argo-pulse {
        0%, 100% { opacity: 0.4; }
        50% { opacity: 0.8; }
    }

    /* ── Footer ── */
    .argo-chat-footer {
        padding: 10px 12px;
        border-top: 1px solid rgba(255,255,255,0.06);
        flex-shrink: 0;
    }
    .argo-chat-new-btn {
        width: 100%;
        padding: 8px 0;
        border-radius: 10px;
        background: rgba(16,185,129,0.1);
        border: 1px solid rgba(16,185,129,0.2);
        color: #10b981;
        font-size: 12px; font-weight: 700;
        cursor: pointer;
        transition: all 0.2s;
        display: flex; align-items: center; justify-content: center; gap: 6px;
    }
    .argo-chat-new-btn:hover {
        background: rgba(16,185,129,0.18);
        border-color: rgba(16,185,129,0.4);
    }

    /* ── Mobile: hide widget entirely ── */
    @media (max-width: 768px) {
        #argo-chat-widget, #argo-chat-bubble {
            display: none !important;
        }
    }

    /* ── Chevron rotation ── */
    #argo-chevron {
        transition: transform 0.3s ease;
    }
    #argo-chat-panel.open #argo-chevron {
        transform: rotate(180deg);
    }

    /* ── Bubble ── */
    #argo-chat-bubble {
        position: fixed;
        bottom: 24px;
        right: 24px;
        width: 56px;
        height: 56px;
        background: #1C1C1E;
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 50%;
        z-index: 999999;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 16px rgba(0,0,0,0.4);
        color: #10b981;
        transition: transform 0.2s, background 0.2s;
    }
    #argo-chat-bubble:hover {
        transform: scale(1.05);
        background: #252528;
    }
    .argo-chat-badge {
        position: absolute;
        top: 0;
        right: 0;
        background: #10b981;
        color: white;
        font-size: 10px;
        font-weight: bold;
        min-width: 18px;
        height: 18px;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        border: 2px solid #1C1C1E;
    }

