/* =========================================================
   USDT DIRECTO - DESIGN SYSTEM (NEO-BANK & GLASSMORPHISM)
   ========================================================= */
:root {
    --primary-bg: #0a0e1a;
    --secondary-bg: rgba(15, 23, 42, 0.85);
    --card-bg: rgba(15, 23, 42, 0.65);
    --card-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-blur: blur(12px) saturate(180%);
    
    --accent-blue: #3b82f6;
    --accent-blue-dark: #1d4ed8;
    --accent-blue-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    
    --accent-green: #10b981;
    --accent-green-dark: #059669;
    --accent-green-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    
    --accent-red: #ef4444;
    --accent-red-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    
    --accent-yellow: #f59e0b;
    --accent-yellow-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --hover-color: rgba(255, 255, 255, 0.06);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --max-width: 1200px;
}

/* Reset y Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--primary-bg);
    background-image: 
        radial-gradient(at 10% 10%, rgba(59, 130, 246, 0.08) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(16, 185, 129, 0.06) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 60px;
}

/* Glassmorphism Global Utilities */
.glass-card, .card, .bg-card {
    background: var(--card-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-glass) !important;
    color: var(--text-primary) !important;
}

.glass-card-header, .card-header {
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-primary) !important;
}

.glass-modal, .modal-content {
    background: rgba(10, 14, 26, 0.95) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    color: var(--text-primary) !important;
}

.glass-input, .form-control, .form-select {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
}

.glass-input:focus, .form-control:focus, .form-select:focus {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4) !important;
    color: #ffffff !important;
}

/* Standardizing Buttons with Vibrant Neo-Bank Gradients */
.btn-primary, .btn-primary-gradient {
    background: var(--accent-blue-gradient) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
    transition: all 0.25s ease !important;
}
.btn-primary:hover, .btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5) !important;
    filter: brightness(1.1);
}

.btn-success, .btn-success-gradient {
    background: var(--accent-green-gradient) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
    transition: all 0.25s ease !important;
}
.btn-success:hover, .btn-success-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5) !important;
    filter: brightness(1.1);
}

.btn-danger, .btn-danger-gradient {
    background: var(--accent-red-gradient) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
    transition: all 0.25s ease !important;
}

.btn-warning, .btn-warning-gradient {
    background: var(--accent-yellow-gradient) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3) !important;
    transition: all 0.25s ease !important;
}

/* Light/White Background & Dark Text Overrides */
.bg-white, .bg-light {
    background: rgba(15, 23, 42, 0.75) !important;
    color: #f8fafc !important;
}

.text-dark {
    color: #f8fafc !important;
}

.text-muted {
    color: #94a3b8 !important;
}

.table {
    color: #f8fafc !important;
}

.table th, .table td {
    border-color: rgba(255, 255, 255, 0.08) !important;
}
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 60px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    padding: 0 15px;
}

.header-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--accent-yellow);
    text-decoration: none;
}

.logo-icon {
    margin-right: 8px;
    font-size: 1.4rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.nav-icon {
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.nav-icon:hover {
    color: var(--text-primary);
    background: var(--hover-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: var(--card-bg);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    height: 32px;
    
}

.user-profile:hover {
    background: var(--hover-color);
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-yellow));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
}

.user-name {
    font-size: 0.8rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.nav-icons-group {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}

/* FOOTER - Ancho completo consistente */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s;
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 60px;
}

.nav-item i {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
    color: var(--accent-yellow);
    background: rgba(240, 185, 11, 0.1);
}

/* CONTENEDORES PRINCIPALES - Mismo ancho máximo */
.main-container,
.dashboard-container,
.bank-container,
.content-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2px 5px 100px;
    width: 100%;
}

.bank-container {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
}

/* DASHBOARD HEADER */
.dashboard-header {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    width: 100%;
}

.dashboard-header h1 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.welcome-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* INFORMACIÓN DE SALDO */
.balance-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 5px;
    width: 100%;
}

.balance-card {
    background: var(--secondary-bg);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-yellow);
    width: 100%;
}

.balance-card h3 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-amount {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
}

.balance-amount.usdt {
    color: var(--accent-green);
}

.balance-amount.locked {
    color: var(--accent-yellow);
}

/* ESTADO KYC */
.kyc-section {
    width: 100%;
}

.kyc-status {
    background: linear-gradient(135deg, var(--accent-green), #026e4a);
    border-radius: 8px;
    padding: 10px;
    margin: 15px 0;
    border: 1px solid rgba(3, 166, 109, 0.3);
    width: 100%;
}

.kyc-status h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.kyc-level {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.kyc-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 8px;
}

.kyc-badge::before {
    content: "✓";
    margin-right: 5px;
    font-weight: bold;
}

/* SECCIONES */
.orders-section,
.transactions-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px 10px;
    margin: 25px 25px 120px;
    border: 1px solid var(--border-color);
    width: 100%;
    margin-bottom: 0;
}

.orders-section h2,
.transactions-section h2 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* TARJETAS */
.card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    width: 100%;
}

/* BOTONES DE ACCIÓN RÁPIDA */
.quick-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
    width: 100%;
}

.quick-actions .btn {
    flex: 1;
    min-width: 200px;
}

/* BOTONES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 8px;
    box-sizing: border-box;
}

.btn-primary {
    background: var(--accent-yellow);
    color: var(--primary-bg);
}

.btn-primary:hover {
    background: #f8d347;
    transform: translateY(-1px);
}

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

.btn-success:hover {
    background: #04b877;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--accent-blue);
    color: white;
}

.btn-secondary:hover {
    background: #1a67d8;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--accent-red);
    color: white;
}

.btn-danger:hover {
    background: #c53030;
    transform: translateY(-1px);
}

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

/* FORMULARIOS */
.form-group {
    margin-bottom: 20px;
    width: 100%;
}

select,
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--secondary-bg);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control {
    background: var(--secondary-bg);
    font-size: 0.95rem;
    padding: 12px;
    color: var(--text-primary);
    width: 100%;
    box-sizing: border-box;
}

/* Focus state */
.form-group input:focus,
select:focus {
    border-color: var(--accent-yellow);
    outline: none;
    box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.1);
}

/* FILTROS */
.filters-form {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
}

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

/* TABLAS */
.table-container {
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 100%;
}

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

thead {
    background: var(--secondary-bg);
}

th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

tbody tr {
    transition: background 0.2s;
}

tbody tr:hover {
    background: var(--hover-color);
}

/* ==============================================================================
   RESPONSIVE DATA TABLES & NEO-BANK GLASSMORPHISM SCROLLBARS
   ============================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.4) rgba(10, 14, 26, 0.6);
}

/* Custom Sleek Dark Webkit Scrollbar */
.table-responsive::-webkit-scrollbar {
    height: 6px !important;
    width: 6px !important;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(10, 14, 26, 0.6) !important;
    border-radius: 10px !important;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.4) !important;
    border-radius: 10px !important;
    transition: background 0.2s ease !important;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.8) !important;
}

/* Table Text Wrap Control & Neo-Bank Styling */
.table-responsive table,
.text-nowrap th,
.text-nowrap td,
.table-responsive th,
.table-responsive td,
.data-table th,
.data-table td,
.admin-dash-neo-table th,
.admin-dash-neo-table td,
.master-audit-table th,
.master-audit-table td,
.master-liq-table th,
.master-liq-table td,
.master-ref-table th,
.master-ref-table td {
    white-space: nowrap !important;
}

.table-responsive table tbody tr:hover,
.data-table tbody tr:hover,
.admin-dash-neo-table tbody tr:hover,
.master-audit-table tbody tr:hover,
.master-liq-table tbody tr:hover,
.master-ref-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03) !important;
    transition: background-color 0.2s ease !important;
}

/* PANELES ADMIN */
/* =========================================
       BOTONES DE HERRAMIENTA TIPO APP
       ========================================= */
       .admin-app-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        padding: 15px 5px;
        text-decoration: none !important;
        transition: all 0.2s ease;
        height: 100%;
        border: 1px solid rgba(255,255,255,0.05);
        box-shadow: 0 4px 2px rgba(0,0,0,0.1);
    }
    
    .admin-app-btn i {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    
    .admin-app-btn span {
        font-size: 0.65rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 95%; /* Evita que textos largos rompan el botón */
    }
    
    .admin-app-btn:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.3);
        filter: brightness(1.15); /* Aclara ligeramente el botón al pasar el mouse */
        color: #fff !important; /* Fuerza el texto blanco al hacer hover */
    }

    /* Colores de fondo suave (Soft Colors) para los botones */
    .bg-info-soft { background-color: rgba(14, 165, 233, 0.15) !important; }
    .bg-primary-soft { background-color: rgba(67, 97, 238, 0.15) !important; }
    .bg-danger-soft { background-color: rgba(239, 71, 111, 0.15) !important; }
    .bg-warning-soft { background-color: rgba(255, 209, 102, 0.15) !important; }
    .bg-success-soft { background-color: rgba(6, 214, 160, 0.15) !important; }

.admin-panel-link,
.disputes-link {
    color: var(--accent-yellow);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
}

.admin-panel-link:hover,
.disputes-link:hover {
    color: #f8d347;
}

/* LÍNEA DIVISORIA */
.divider {
    height: 1px;
    background: var(--border-color);
    margin: 25px 0;
    opacity: 0.6;
    width: 100%;
}

/* MENSAJES FLASH */
.flash-container {
    margin: 15px 0;
    width: 100%;
}

.flash-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-weight: 500;
    border: 1px solid;
    width: 100%;
    box-sizing: border-box;
}

.flash-message.success {
    background: rgba(3, 166, 109, 0.1);
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.flash-message.error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--accent-red);
    border-color: var(--accent-red);
}

.flash-message.info {
    background: rgba(33, 114, 229, 0.1);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

/* BANK DETAILS */
.bank-details-container .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    width: 100%;
}

.bank-details-container .detail-row:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.bank-details-container p {
    margin: 0;
    word-break: break-all;
    padding-right: 10px;
}

.copy-btn {
    background-color: #3182ce;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.copy-btn:hover {
    background-color: #2c5aa0;
}

.copy-btn.copied {
    background-color: #38a169;
}

/* FILE UPLOAD */
.input[type="file"] {
    display: none;
}

.custom-file-upload {
    display: inline-block;
    background-color: #3182ce;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.custom-file-upload:hover {
    background-color: #2c5aa0;
}

/* RESPONSIVE DESIGN - MANTENER MISMO ANCHO EN MOBILE */
@media (max-width: 768px) {
    body {
        padding-top: 50px;
    }

    .app-header {
        height: 50px;
        padding: 6px 0;
    }

    
    .payment-tag {
        font-size: 0.6rem; color: #495057; font-weight: 500;
    }

    .header-content {
        padding: 15px;
    }

    .main-container,
    .dashboard-container,
    .bank-container,
    .content-wrapper {
        padding: 5px 5px 10px;
        max-width: var(--max-width)
    }

    .dashboard-header,
    .orders-section,
    .transactions-section {
        padding: 20px;
        max-width: var(--max-width);
        width: 100%;
    }

    .balance-info {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .balance-card {
        padding: 5px;
    }

    .quick-actions {
        flex-direction: column;
    }

    .quick-actions .btn {
        width: 100%;
        min-width: auto;
    }

    .filters-form {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .footer-nav {
        padding: 10px 0;
    }

    .nav-item {
        padding: 6px 8px;
        min-width: 50px;
    }

    .nav-item i {
        font-size: 1.1rem;
    }

    .nav-item span {
        font-size: 0.65rem;
    }

    /* Asegurar que todos los elementos ocupen el ancho completo */
    .card,
    .admin-panel-card,
    .disputes-card,
    .table-container,
    .form-group,
    select,
    .form-group input,
    .flash-message {
        max-width: none;
        width: 100%;
    }

    .table-container::after {
        content: "← Desliza para ver más →";
        display: block;
        text-align: center;
        padding: 10px;
        background: var(--secondary-bg);
        color: var(--text-secondary);
        font-size: 0.8rem;
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 15px;
    }

    .main-container,
    .dashboard-container,
    .bank-container {
        padding: 5px 5px 10px;
    }

    .dashboard-header,
    .orders-section,
    .transactions-section {
        padding: 15px;
    }

    
    
    .header-nav {
        gap: 8px;
    }
    
    .nav-icon {
        font-size: 1rem;
        min-width: 28px;
        height: 28px;
    }

    .card {
        padding: 5px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* SCROLLBAR PERSONALIZADO */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.balance-amount.usdt {
    color: var(--accent-green);
}

.balance-amount.locked {
    color: var(--accent-yellow);
}

/* Estado KYC */
.kyc-section {
    width: 100%;
}

.kyc-status {
    background: linear-gradient(135deg, var(--accent-green), #026e4a);
    border-radius: 8px;
    padding: 10px;
    margin: 15px 0;
    border: 1px solid rgba(3, 166, 109, 0.3);
    width: 100%;
}

.kyc-status h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.kyc-level {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.kyc-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 8px;
}

.kyc-badge::before {
    content: "✓";
    margin-right: 5px;
    font-weight: bold;
}

/* FORMULARIOS - Ancho completo */
.form-group {
    margin-bottom: 20px;
    width: 100%;
}

select,
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--secondary-bg);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control {
    background: var(--secondary-bg);
    font-size: 0.95rem;
    padding: 12px;
    color: var(--text-primary);
    width: 100%;
    box-sizing: border-box;
}

/* Focus state para inputs */
.form-group input:focus,
select:focus {
    border-color: var(--accent-yellow);
    outline: none;
    box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.1);
}

/* TABLAS - Ancho completo */
.table-container {
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 100%;
}

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

/* FILTROS - Ancho completo */
.filters-form {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
}

/* PANELES ADMIN - Mismo ancho */
.admin-panel-card,
.disputes-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.2s;
    width: 100%;
}

/* CONTENIDO PRINCIPAL */
.content-wrapper {
    padding: 20px 0;
    max-width: var(--max-width)
}

/* Botones de acción rápida */
.quick-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
    width: 100%;
}

.quick-actions .btn {
    flex: 1;
    min-width: 200px;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 8px;
    box-sizing: border-box;
}

.btn-primary {
    background: var(--accent-yellow);
    color: var(--primary-bg);
}

.btn-primary:hover {
    background: #f8d347;
    transform: translateY(-1px);
}

/* RESTANTE DEL CSS DEL HEADER Y NAV */
.header-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--accent-yellow);
    text-decoration: none;
}

.logo-icon {
    margin-right: 8px;
    font-size: 1.4rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.nav-icon {
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.nav-icon:hover {
    color: var(--text-primary);
    background: var(--hover-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: var(--card-bg);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    height: 32px;
}

.user-profile:hover {
    background: var(--hover-color);
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-yellow));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
}

.user-name {
    font-size: 0.8rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.nav-icons-group {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s;
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 60px;
}

.nav-item i {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
    color: var(--accent-yellow);
    background: rgba(240, 185, 11, 0.1);
}


/* Estilos adicionales para bank details */
.bank-details-container .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    width: 100%;
}

.bank-details-container .detail-row:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.bank-details-container p {
    margin: 0;
    word-break: break-all;
    padding-right: 10px;
}

.copy-btn {
    background-color: #3182ce;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.copy-btn:hover {
    background-color: #2c5aa0;
}

.copy-btn.copied {
    background-color: #38a169;
}

.input[type="file"] {
    display: none;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background-color: #f9f9f9;
}

.custom-file-upload {
    display: inline-block;
    background-color: #3182ce;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

@media (max-width: 768px) {
    body {
        padding-top: 50px;
    }

    .app-header {
        height: 50px;
        padding: 6px 0;
    }

    .header-content {
        padding: 0 15px;
        max-width: 100%; /* CRÍTICO: Permitir que ocupe el ancho completo */
    }

    .main-container,
    .dashboard-container,
    .bank-container,
    .content-wrapper {
        padding: 5px 5px 10px;
        max-width: 100%; /* CRÍTICO: Eliminar limitación de max-width */
        width: 100%;
    }

    .dashboard-header,
    .orders-section,
    .transactions-section {
        padding: 20px;
        max-width: 100%; /* CRÍTICO: Eliminar limitación */
        width: 100%;
    }

    .balance-info {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .balance-card {
        padding: 5px;
    }

    .quick-actions {
        flex-direction: column;
        width: 100%;
    }

    .quick-actions .btn {
        width: 100%;
        min-width: auto;
    }

    .footer-nav {
        padding: 10px 0;
    }

    /* FORZAR ANCHO COMPLETO EN TODOS LOS ELEMENTOS INTERNOS */
    .dashboard-header > *,
    .orders-section > *,
    .transactions-section > *,
    .balance-info > *,
    .kyc-section > * {
        max-width: 100% !important;
        width: 100% !important;
    }
    .tooltip-text{
        font-size: 9px;
        line-height: 0.8;
    }
    .divider {
        height: 0.5px;
        background: var(--border-color);
        margin: 5px 0;
        opacity: 0.6;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 15px;
    }

    .divider {
        height: 0.5px;
        background: var(--border-color);
        margin: 5px 0;
        opacity: 0.6;
        width: 100%;
    }

    .main-container,
    .dashboard-container,
    .bank-container {
        padding: 10px 15px 70px;
    }

    .dashboard-header,
    .orders-section,
    .transactions-section {
        padding: 15px;
    }
   
    
    .header-nav {
        gap: 8px;
    }
    
    .nav-icon {
        font-size: 1rem;
        min-width: 28px;
        height: 28px;
    }
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Estilos para notificaciones */
.notifications-container {
    position: relative;
    display: inline-block;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notifications-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 400px;
    overflow: hidden;
}

.notifications-dropdown.show {
    display: block;
}

.notifications-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.notifications-header h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.notifications-actions {
    display: flex;
    gap: 10px;
}

.notifications-actions button {
    background: none;
    border: none;
    color: #007bff;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.notifications-actions button:hover {
    background: #f0f0f0;
}

.notifications-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #f0f7ff;
    border-left: 3px solid #007bff;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
}

.notification-body {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-time {
    font-size: 11px;
    color: #999;
}

.notification-empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-style: italic;
}

/* --- AGREGAR ESTO A TU CSS EXISTENTE --- */

/* Estilo para el botón de editar (azul claro/info) */
.btn-info {
    background-color: #17a2b8; /* Azul Info */
    border: 1px solid #17a2b8;
    color: white !important; /* Forzar texto blanco */
}
.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
}

/* Contenedor de botones para escritorio */
.action-buttons {
    display: flex;
    gap: 10px; /* Espacio entre Editar y Cancelar */
    align-items: center;
}

/* ACTUALIZACIÓN RESPONSIVE MOBILE (Dentro de @media max-width: 768px) */
@media (max-width: 768px) {
    /* ... tus estilos existentes ... */
    
    .order-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    /* Hacemos que el grupo de botones también se comporte como columna en móvil */
    .action-buttons {
        display: flex;
        flex-direction: column; 
        gap: 10px;
        width: 100%;
    }

    /* Aseguramos que los botones ocupen todo el ancho */
    .action-buttons .btn, 
    .action-buttons form,
    .action-buttons form .btn {
        width: 100%;
        text-align: center;
    }
}

/* ========================================================
   DISEÑO NEO-BANK MINIMALISTA (Dashboard)
   ======================================================== */
.neo-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Header & Badges */
.neo-greeting { font-size: 0.9rem; letter-spacing: 0.5px; }
.neo-username { font-size: 1.8rem; letter-spacing: -0.5px; line-height: 1; }

.neo-badges { gap: 8px; }
.neo-badge {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    padding: 3px 8px; border-radius: 6px; letter-spacing: 0.5px;
}
.badge-plus { background: rgba(67, 97, 238, 0.15); color: #60a5fa; border: 1px solid rgba(67, 97, 238, 0.3); }
.badge-kyc { background: rgba(6, 214, 160, 0.15); color: #34d399; border: 1px solid rgba(6, 214, 160, 0.3); }
.badge-master { background: rgba(239, 71, 111, 0.15); color: #f43f5e; border: 1px solid rgba(239, 71, 111, 0.3); }
.badge-alert { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); cursor: pointer; }

/* Botones Iconos Superiores */
.neo-btn-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; border: 1px solid rgba(255,255,255,0.1); transition: background 0.2s;
}
.neo-btn-icon:hover { background: rgba(255,255,255,0.1); }

/* Banner Master */
.neo-master-banner {
    background: rgba(244, 63, 94, 0.05); border: 1px dashed rgba(244, 63, 94, 0.3);
    border-radius: 12px; padding: 10px 15px; font-size: 0.8rem; font-weight: 600; color: #f8fafc;
}

/* Balance Principal */
.tracking-wide { letter-spacing: 1px; }
.neo-main-balance { font-size: 2.8rem; letter-spacing: -1px; line-height: 1; }
.neo-main-balance .currency-symbol { font-size: 1.5rem; position: relative; top: -10px; }
.neo-main-balance .currency-code { font-size: 1rem; font-weight: 600; letter-spacing: 0; }

/* Tarjetas Globales */
.neo-card {
    background: #1e293b; border-radius: 20px;
    border: 1px solid #334155; box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Toggle Express */
.neo-express-toggle {
    display: flex; background: #0f172a; border-radius: 10px; padding: 4px;
}
.neo-express-toggle .toggle-btn {
    background: transparent; border: none; color: #94a3b8;
    font-size: 0.8rem; font-weight: 700; padding: 6px 15px; border-radius: 8px; transition: all 0.2s;
}
.neo-express-toggle .toggle-btn.active {
    background: #334155; color: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Inputs Express Bank-style */
.neo-input-group {
    background: #0f172a; border: 1px solid #334155;
    border-radius: 14px; padding: 12px 15px; transition: border 0.3s;
}
.neo-input-group:focus-within { border-color: #4361ee; }
.neo-input-group.readonly { background: rgba(0,0,0,0.2); border-style: dashed; }
.input-label { display: block; font-size: 0.75rem; color: #64748b; font-weight: 600; text-transform: uppercase; margin-bottom: 5px; }

.neo-amount-input {
    background: transparent; border: none; outline: none;
    color: #f8fafc; font-size: 1.8rem; font-weight: 800; width: 100%;
}
.neo-amount-input::placeholder { color: #475569; }

.neo-currency-select {
    background: transparent; border: none; outline: none;
    color: #f8fafc; font-size: 1.1rem; font-weight: 700; cursor: pointer; text-align: right;
}
.neo-currency-select option { background: #1e293b; }

/* Botones Neo */
.neo-btn-primary {
    background: #4361ee; color: #fff; font-weight: 800; border: none;
    padding: 15px; border-radius: 14px; font-size: 1rem; transition: transform 0.1s;
}
.neo-btn-primary:active { transform: scale(0.98); }
.neo-btn-secondary {
    background: transparent; border: 1px solid #334155; color: #94a3b8;
    padding: 10px; border-radius: 12px; font-weight: 600; font-size: 0.85rem; transition: all 0.2s;
}
.neo-btn-secondary:hover { background: rgba(255,255,255,0.05); color: #fff; }

/* Listas Planas (Transacciones) */
.neo-list-item {
    display: flex; align-items: center; padding: 15px;
    background: #1e293b; border-radius: 16px; border: 1px solid #334155;
    transition: background 0.2s;
}
.neo-list-item:hover { background: #26334a; }
.neo-list-item.alert-item { border-color: rgba(244, 63, 94, 0.4); background: rgba(244, 63, 94, 0.05); }

.icon-circle {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; margin-right: 15px;
}
/* Colores de iconos */
.bg-warning-soft { background: rgba(245, 158, 11, 0.15); }
.bg-success-soft { background: rgba(16, 185, 129, 0.15); }
.bg-secondary-soft { background: rgba(148, 163, 184, 0.15); }
.bg-danger-soft { background: rgba(244, 63, 94, 0.15); }
.bg-primary-soft { background: rgba(67, 97, 238, 0.15); }
.bg-info-soft { background: rgba(14, 165, 233, 0.15); }

.item-details { flex-grow: 1; }
.item-details .title { margin: 0; font-weight: 700; font-size: 0.95rem; }
.item-details .subtitle { margin: 0; font-size: 0.8rem; color: #94a3b8; }

.status-pill {
    font-size: 0.7rem; font-weight: 700; padding: 4px 8px; border-radius: 8px;
}

.item-actions { display: flex; gap: 10px; }
.neo-icon-btn {
    background: transparent; border: none; padding: 5px; cursor: pointer; font-size: 1rem;
}

/* ========================================================
   ACCIONES RÁPIDAS (Billetera) - VERSIÓN BLINDADA
   ======================================================== */
   .neo-quick-actions {
    display: flex !important;
    flex-direction: row !important;      /* Fuerza estrictamente la dirección horizontal */
    flex-wrap: nowrap !important;        /* PROHÍBE que salten a la siguiente línea */
    justify-content: center !important;  /* Centra los botones */
    align-items: center !important;
    gap: 30px !important;                /* Espacio exacto entre botones */
    width: 100% !important;
    margin-top: 20px !important;
}

.neo-action-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;              /* CRÍTICO: Evita que el botón ocupe el 100% de la pantalla */
    min-width: 65px !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
}

.neo-action-btn .icon-wrapper {
    width: 50px !important; 
    height: 50px !important; 
    border-radius: 16px !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    font-size: 1.3rem !important; 
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    margin-bottom: 8px !important;
}

.neo-action-btn:hover .icon-wrapper { 
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.neo-action-btn span {
    transition: color 0.2s;
    font-size: 0.8rem !important;
    text-align: center !important;
    display: block !important;
}

.neo-action-btn:hover span {
    color: #f8fafc !important;
}

/* ========================================================
   TARJETA DE SALDO (CREDIT CARD STYLE)
   ======================================================== */
   .neo-wallet-card {
    position: relative;
    /* Fondo oscuro premium con un toque azul medianoche */
    background: linear-gradient(135deg, #1e293b 0%, #0b1120 100%);
    border-radius: 20px;
    padding: 25px;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    /* Sombra profunda y un borde interior blanco sutil (efecto cristal) */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    z-index: 1;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Efectos de iluminación de fondo (Glows abstractos) */
.card-bg-elements {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.card-bg-elements .glow-1 {
    position: absolute;
    width: 250px; height: 250px;
    border-radius: 50%;
    /* Luz azul en la esquina superior derecha */
    background: radial-gradient(circle, rgba(67, 97, 238, 0.3) 0%, rgba(67, 97, 238, 0) 70%);
    top: -100px; right: -50px;
}
.card-bg-elements .glow-2 {
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    /* Luz verde/esmeralda en la esquina inferior izquierda */
    background: radial-gradient(circle, rgba(6, 214, 160, 0.1) 0%, rgba(6, 214, 160, 0) 70%);
    bottom: -150px; left: -100px;
}

/* Tipografía dentro de la tarjeta */
.neo-wallet-card .card-content { z-index: 2; position: relative; }

.neo-wallet-card .card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
    font-weight: 700;
}

.neo-wallet-card .neo-main-balance {
    display: flex;
    align-items: baseline;
    margin-top: 10px;
    margin-bottom: 20px;
}

.neo-wallet-card .currency-symbol {
    font-size: 1.5rem;
    color: #94a3b8;
    margin-right: 6px;
}

.neo-wallet-card .amount {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.neo-wallet-card .currency-code {
    font-size: 1rem;
    color: #94a3b8;
    margin-left: 8px;
    font-weight: 700;
}

.neo-wallet-card .locked-label {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    display: block;
}

.neo-wallet-card .locked-amount {
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
}

/* --- ESTILOS DE ADMIN_DASHBOARD.HTML --- */
.admin-dash-kpi-grid-blindada {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    margin-bottom: 15px !important;
}
@media (min-width: 768px) {
    .admin-dash-kpi-grid-blindada {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.admin-dash-app-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 15px 5px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
}

.admin-dash-app-btn i {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.admin-dash-app-btn span {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 95%;
}

.admin-dash-app-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    filter: brightness(1.15);
    color: #fff !important;
}

.admin-dash-bg-info-soft { background-color: rgba(14, 165, 233, 0.15) !important; }
.admin-dash-bg-primary-soft { background-color: rgba(67, 97, 238, 0.15) !important; }
.admin-dash-bg-danger-soft { background-color: rgba(239, 71, 111, 0.15) !important; }
.admin-dash-bg-warning-soft { background-color: rgba(255, 209, 102, 0.15) !important; }
.admin-dash-bg-success-soft { background-color: rgba(6, 214, 160, 0.15) !important; }

.admin-dash-neo-table {
    width: 100%;
    color: #f8fafc;
    border-collapse: collapse;
}

.admin-dash-neo-table th {
    background: rgba(0,0,0,0.2);
    color: #94a3b8;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 800;
    white-space: nowrap;
}

.admin-dash-neo-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: middle;
}

.admin-dash-neo-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

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

.admin-dash-pulse-danger-soft {
    animation: admin-dash-pulse-border-red 2s infinite;
}

@keyframes admin-dash-pulse-border-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 71, 111, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(239, 71, 111, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 71, 111, 0); }
}

/* --- ESTILOS DE PROFILE.HTML --- */
.profile-header-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.profile-avatar-large {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    border: 2px solid rgba(255,255,255,0.15);
}

.profile-identity h2 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-role-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 700;
    vertical-align: middle;
}
.profile-badge-plus { background: linear-gradient(135deg, #8b5cf6, #d946ef); color: white; box-shadow: 0 2px 10px rgba(139, 92, 246, 0.4); }
.profile-badge-avanzado { background: var(--accent-blue); color: white; }
.profile-badge-normal { background: var(--text-secondary); color: #fff; }

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

.profile-stat-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s;
}
.profile-stat-box:hover { transform: translateY(-2px); border-color: var(--accent-blue); }

.profile-stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 3px;
}
.profile-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.profile-text-green { color: #10b981 !important; }
.profile-text-red { color: #ef4444 !important; }

.profile-referral-card {
    background: linear-gradient(135deg, rgba(46, 16, 101, 0.7) 0%, rgba(30, 27, 75, 0.7) 100%);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
    color: white;
}

.profile-ref-code-box {
    background: rgba(0,0,0,0.3);
    padding: 10px 20px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
    border: 1px dashed #a78bfa;
    color: #ddd6fe;
    cursor: pointer;
}

.profile-payment-method-item {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.profile-bank-logo {
    width: 40px; height: 40px;
    background: #e2e8f0;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #475569; margin-right: 15px;
}

.profile-form-section {
    background: var(--secondary-bg);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-top: 25px;
}

.profile-security-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.profile-sec-safe { background: rgba(0, 192, 135, 0.1); color: #00c087; border: 1px solid #00c087; }
.profile-sec-danger { background: rgba(255, 80, 80, 0.1); color: #ff5050; border: 1px solid #ff5050; animation: pulse 2s infinite; }

@media (max-width: 768px) {
    .profile-header-card { flex-direction: column; text-align: center; }
    .profile-payment-method-item { flex-direction: column; text-align: center; gap: 10px; }
    .profile-stats-grid-container { grid-template-columns: 1fr 1fr; }
}

/* --- ESTILOS DE P2P_TRANSACTION.HTML --- */
.p2p-tx-main-container { 
    max-width: 600px; 
    margin: 0 auto; 
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-height) - var(--bottom-nav-height) - 30px);
    min-height: 500px;
}

.p2p-tx-header-card {
    background: var(--card-bg);
    border-radius: var(--radius, 16px);
    padding: 20px;
    border: 1px solid var(--border, #334155);
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.p2p-tx-status-badge {
    display: inline-block; padding: 6px 12px; border-radius: 50px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    margin-bottom: 10px;
}
.p2p-tx-st-pending { background: rgba(67, 97, 238, 0.15); color: var(--accent-blue, #4361ee); border: 1px solid var(--accent-blue, #4361ee); }
.p2p-tx-st-paid { background: rgba(255, 209, 102, 0.15); color: #ffd166; border: 1px solid #ffd166; }
.p2p-tx-st-completed { background: rgba(6, 214, 160, 0.15); color: var(--accent-green, #06d6a0); border: 1px solid var(--accent-green, #06d6a0); }
.p2p-tx-st-dispute { background: rgba(239, 71, 111, 0.15); color: #ef476f; border: 1px solid #ef476f; }

.p2p-tx-amount-display {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(43, 47, 58, 0.8); padding: 15px; border-radius: 12px; margin-top: 15px;
}
.p2p-tx-amt-box h3 { margin: 0; font-size: 1.4rem; font-weight: 800; color: white; }
.p2p-tx-amt-box span { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; }
.p2p-tx-fiat-val { color: var(--accent-green, #06d6a0); }

.p2p-tx-nav-tabs-custom {
    display: flex; border-bottom: 1px solid var(--border, #334155); margin-bottom: 0;
    flex-shrink: 0;
}
.p2p-tx-nav-item-custom {
    flex: 1; text-align: center; padding: 15px; cursor: pointer;
    color: var(--text-secondary); font-weight: 600; border-bottom: 3px solid transparent;
    transition: all 0.2s; background: var(--card-bg);
}
.p2p-tx-nav-item-custom:first-child { border-top-left-radius: 16px; }
.p2p-tx-nav-item-custom:last-child { border-top-right-radius: 16px; }

.p2p-tx-nav-item-custom.active { color: var(--accent-blue, #4361ee); border-bottom-color: var(--accent-blue, #4361ee); background: rgba(67, 97, 238, 0.05); }
.p2p-tx-nav-item-custom:hover { color: var(--text-primary); }

.p2p-tx-tab-content-area {
    background: var(--card-bg);
    border: 1px solid var(--border, #334155); border-top: none;
    border-bottom-left-radius: 16px; border-bottom-right-radius: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.p2p-tx-tab-pane {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

#tab-chat.p2p-tx-tab-pane {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.p2p-tx-bank-box {
    background: rgba(255, 255, 255, 0.03); border: 1px dashed var(--border, #334155);
    border-radius: 12px; padding: 15px; margin-bottom: 20px;
}
.p2p-tx-bank-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 8px; }
.p2p-tx-bank-lbl { color: var(--text-secondary); }
.p2p-tx-bank-val { color: white; font-weight: 600; text-align: right; }
.p2p-tx-copy-icon { cursor: pointer; color: var(--accent-blue, #4361ee); margin-left: 8px; }

.p2p-tx-btn-main {
    width: 100%; padding: 14px; border-radius: 12px; border: none;
    font-weight: 800; font-size: 1rem; cursor: pointer; text-transform: uppercase;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    color: white; transition: transform 0.1s;
    text-decoration: none;
}
.p2p-tx-btn-blue { background: var(--accent-blue, #4361ee); }
.p2p-tx-btn-green { background: var(--accent-green, #06d6a0); color: #0f0f23; }
.p2p-tx-btn-red { background: transparent; border: 1px solid #ef476f; color: #ef476f; font-size: 0.8rem; padding: 10px; }
.p2p-tx-btn-main:active { transform: scale(0.98); }
.p2p-tx-btn-main:hover { text-decoration: none; color: white; opacity: 0.9; }

.p2p-tx-chat-container { 
    height: 100%;
    display: flex; 
    flex-direction: column; 
    background-color: #0b141a;
    background-image: url("https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png");
    background-blend-mode: soft-light;
    background-repeat: repeat;
    background-size: 400px;
}

.p2p-tx-chat-msgs { 
    flex: 1; 
    overflow-y: auto; 
    padding: 15px; 
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.p2p-tx-w-msg { 
    max-width: 80%; 
    padding: 8px 12px; 
    border-radius: 8px; 
    font-size: 0.9rem; 
    position: relative; 
    color: #e9edef;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    word-wrap: break-word;
}

.p2p-tx-w-msg.me { 
    background: #005c4b; 
    align-self: flex-end; 
    border-top-right-radius: 0; 
}

.p2p-tx-w-msg.other { 
    background: #202c33; 
    align-self: flex-start; 
    border-top-left-radius: 0; 
}

.p2p-tx-w-time {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.6);
    text-align: right;
    margin-top: 2px;
    display: block;
}

.p2p-tx-w-sender {
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 4px;
    display: block;
    text-transform: capitalize;
}

.p2p-tx-chat-img-thumb {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 5px;
    cursor: pointer;
    display: block;
}

.p2p-tx-chat-input-area { 
    padding: 10px; 
    background-color: #202c33;
    display: flex; 
    align-items: center; 
    gap: 10px;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.p2p-tx-chat-input { 
    flex: 1;
    background: #2a3942; 
    border: none; 
    color: white; 
    border-radius: 20px; 
    padding: 12px 15px; 
    outline: none; 
    font-size: 0.95rem;
    min-width: 0;
}

.p2p-tx-btn-circle { 
    width: 45px; height: 45px; border-radius: 50%; border: none; 
    cursor: pointer; display: flex; align-items: center; justify-content: center; 
    font-size: 1.2rem; transition: background 0.2s;
    flex-shrink: 0;
}

.p2p-tx-chat-attach { background: transparent; color: #8696a0; }
.p2p-tx-chat-attach:hover { color: #f1f5f9; background: rgba(255,255,255,0.1); }

.p2p-tx-chat-send { background: var(--accent-green, #06d6a0); color: #000; }
.p2p-tx-chat-send:hover { background: #05b589; }

.p2p-tx-timer-badge {
    background: rgba(255, 209, 102, 0.1); color: #ffd166;
    padding: 5px 10px; border-radius: 8px; font-weight: 700; font-size: 0.9rem;
    display: flex; align-items: center; gap: 6px;
}

@media (max-width: 400px) {
    .p2p-tx-btn-circle { width: 40px; height: 40px; font-size: 1.1rem; }
    .p2p-tx-chat-input { padding: 10px 12px; font-size: 0.9rem; }
    .p2p-tx-chat-input-area { padding: 8px; gap: 8px; }
    .p2p-tx-main-container { height: calc(100vh - var(--header-height) - 10px); }
}

/* --- ESTILOS DE USER_REFERRALS.HTML --- */
.user-ref-rewards-hero {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(16, 185, 129, 0.05));
    border-radius: var(--radius-card, 16px);
    padding: 1.8rem 1.2rem;
    margin-bottom: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}
.user-ref-rewards-hero::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 70%);
    top: -100px;
    right: -80px;
    border-radius: 50%;
    pointer-events: none;
}
.user-ref-rewards-hero h2 {
    font-weight: 800;
    font-size: clamp(1.3rem, 3.5vw, 2.2rem);
    background: linear-gradient(135deg, #ffffff, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.3rem;
    position: relative;
    z-index: 1;
}
.user-ref-rewards-hero p {
    color: var(--text-muted, #94a3b8);
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}
.user-ref-rewards-hero p strong {
    color: white;
    font-weight: 600;
}

.user-ref-glass-card {
    background: rgba(18, 28, 46, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-card, 16px);
    padding: 1.2rem 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.user-ref-glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), rgba(16, 185, 129, 0.01));
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.user-ref-glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.6);
}
.user-ref-glass-card:hover::before {
    opacity: 1;
}

.user-ref-stat-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0.8rem;
}
.user-ref-stat-icon-wrapper {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: rgba(59, 130, 246, 0.08);
}
.user-ref-stat-icon-wrapper.user-ref-green-bg {
    background: rgba(16, 185, 129, 0.08);
}
.user-ref-stat-icon-wrapper .user-ref-stat-icon {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.user-ref-stat-icon-wrapper .user-ref-stat-icon.pure {
    -webkit-text-fill-color: initial;
    color: #64748b;
}
.user-ref-stat-info {
    flex: 1;
    min-width: 0;
}
.user-ref-stat-label {
    color: #64748b;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: block;
    line-height: 1.2;
}
.user-ref-stat-value {
    font-size: clamp(1.1rem, 2vw, 1.8rem);
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1.2;
    display: block;
}
.user-ref-stat-value.user-ref-green-glow {
    color: #10b981;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}
.user-ref-stat-value.user-ref-blue-glow {
    color: #3b82f6;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.user-ref-invite-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    color: white;
    padding: 0.6rem 0.9rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
    height: 100%;
}
.user-ref-invite-box:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}
.user-ref-btn-copy {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 6px 16px -6px rgba(59, 130, 246, 0.3);
    height: 100%;
}
.user-ref-btn-copy:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 24px -6px rgba(59, 130, 246, 0.5);
    color: white;
}
.user-ref-btn-copy:active {
    transform: scale(0.97);
}
.user-ref-code-manual {
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}
.user-ref-code-manual strong {
    color: #f1f5f9;
    font-weight: 600;
}

.user-ref-table-modern {
    color: #f1f5f9;
    vertical-align: middle;
    margin-bottom: 0;
}
.user-ref-table-modern thead th {
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 2px solid rgba(255, 255, 255, 0.06);
    color: #64748b;
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 0.8rem 0.6rem;
}
.user-ref-table-modern tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: transparent;
    padding: 0.7rem 0.6rem;
    font-size: 0.85rem;
}
.user-ref-table-modern tbody tr:last-child td {
    border-bottom: none;
}
.user-ref-table-modern tbody tr {
    transition: all 0.3s ease;
}
.user-ref-table-modern tbody tr:hover {
    background: rgba(59, 130, 246, 0.04);
}

.user-ref-user-avatar {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    color: white;
}

.user-ref-badge-status {
    font-weight: 600;
    font-size: 0.6rem;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.user-ref-badge-status.user-ref-claimed {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.15);
}
.user-ref-badge-status.user-ref-pending {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.12);
}

.user-ref-empty-state {
    padding: 1.8rem 0.5rem;
    text-align: center;
}
.user-ref-empty-state i {
    font-size: 2.2rem;
    color: #64748b;
    opacity: 0.4;
    margin-bottom: 0.5rem;
    display: block;
}
.user-ref-empty-state p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}
.user-ref-btn-outline-copy {
    background: transparent;
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    border-radius: 10px;
    padding: 0.4rem 1.2rem;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}
.user-ref-btn-outline-copy:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: white;
}

.user-ref-btn-social {
    border: none;
    border-radius: 12px;
    padding: 0.65rem 1rem;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 1;
    max-width: 180px;
    text-decoration: none;
    white-space: nowrap;
}
.user-ref-btn-social span {
    white-space: nowrap;
}
.user-ref-btn-whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2); }
.user-ref-btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); color: white; }

.user-ref-btn-telegram { background: linear-gradient(135deg, #0088cc, #005580); box-shadow: 0 4px 15px rgba(0, 136, 204, 0.2); }
.user-ref-btn-telegram:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4); color: white; }

.user-ref-btn-native { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px); }
.user-ref-btn-native:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); color: white; }

.user-ref-viral-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}

@media (max-width: 767.98px) {
    .user-ref-rewards-hero {
        padding: 1.2rem 0.8rem;
        margin-bottom: 1.2rem;
        border-radius: 10px;
    }
    .user-ref-rewards-hero h2 { font-size: 1.2rem; }
    .user-ref-rewards-hero p { font-size: 0.8rem; }

    .user-ref-glass-card {
        padding: 0.8rem 0.6rem;
        border-radius: 10px;
    }

    .user-ref-stat-item { padding: 0.3rem 0.4rem; gap: 0.5rem; }
    .user-ref-stat-icon-wrapper { width: 30px; height: 30px; min-width: 30px; font-size: 0.8rem; border-radius: 8px; }
    .user-ref-stat-value { font-size: 1rem; }
    .user-ref-stat-label { font-size: 0.5rem; }

    .user-ref-invite-box { font-size: 0.7rem; padding: 0.5rem 0.6rem; border-radius: 10px 10px 0 0; }
    .user-ref-btn-copy { font-size: 0.75rem; padding: 0.5rem 0.8rem; width: 100%; border-radius: 0 0 10px 10px; }
    .input-group { display: flex; flex-direction: row; width: 100%; }
    .input-group .user-ref-invite-box { border-radius: 10px 0 0 10px !important; border-right: none !important; }
    .input-group .user-ref-btn-copy { border-radius: 0 10px 10px 0 !important; }
    .user-ref-code-manual { font-size: 0.75rem; margin-top: 0.6rem; }

    .user-ref-viral-container { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 10px; width: 100%; }

    .user-ref-table-modern thead { display: none; }
    .user-ref-table-modern tbody tr { display: block; padding: 0.6rem 0.3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
    .user-ref-table-modern tbody td { display: flex; align-items: center; justify-content: space-between; padding: 0.25rem 0; border: none; font-size: 0.8rem; flex-wrap: wrap; gap: 0.2rem; }
    .user-ref-table-modern tbody td::before { content: attr(data-label); font-weight: 600; color: #64748b; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.4px; }
    .user-ref-table-modern tbody td:first-child { padding-top: 0.3rem; }
    .user-ref-table-modern tbody td:last-child { padding-bottom: 0.3rem; border-bottom: none; }
    .user-ref-user-avatar { width: 26px; height: 26px; min-width: 26px; font-size: 0.6rem; }
    .user-ref-table-modern tbody td .d-flex.align-items-center span { font-size: 0.8rem; }
    .user-ref-badge-status { font-size: 0.55rem; padding: 0.2rem 0.6rem; }

    .user-ref-empty-state { padding: 1.2rem 0.3rem; }
    .user-ref-empty-state i { font-size: 1.8rem; }
    .user-ref-empty-state p { font-size: 0.8rem; }
    .user-ref-btn-outline-copy { font-size: 0.7rem; padding: 0.3rem 1rem; }

    .user-ref-glass-card h5 { font-size: 0.95rem !important; margin-bottom: 0.5rem !important; }
}

@media (max-width: 575.98px) {
    .user-ref-rewards-hero { padding: 0.8rem 0.6rem; }
    .user-ref-rewards-hero h2 { font-size: 1rem; }
    .user-ref-rewards-hero p { font-size: 0.7rem; }

    .user-ref-stat-value { font-size: 0.9rem; }
    .user-ref-stat-icon-wrapper { width: 26px; height: 26px; min-width: 26px; font-size: 0.7rem; }
    .user-ref-stat-item { padding: 0.2rem 0.2rem; gap: 0.4rem; }
    .user-ref-glass-card { padding: 0.6rem 0.4rem; }

    .user-ref-invite-box { font-size: 0.65rem; padding: 0.4rem 0.5rem; }
    .user-ref-btn-copy { font-size: 0.7rem; padding: 0.4rem 0.6rem; }
    
    .user-ref-btn-social { flex-direction: row; padding: 0.5rem 0.4rem; font-size: 0.75rem; gap: 4px; border-radius: 10px; }
    .user-ref-btn-social span { font-size: 0.75rem; font-weight: 600; }
    .user-ref-btn-social i { font-size: 0.9rem !important; }
    .user-ref-viral-container { gap: 6px !important; }
}

@media (min-width: 768px) {
    .input-group .user-ref-invite-box { border-radius: 10px 0 0 10px !important; }
    .input-group .user-ref-btn-copy { border-radius: 0 10px 10px 0 !important; }
    .user-ref-stat-item { padding: 0.8rem 1rem; }
    .user-ref-stat-icon-wrapper { width: 44px; height: 44px; min-width: 44px; font-size: 1.3rem; }
}

/* --- ESTILOS DE REGISTER.HTML --- */
.register-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}
.register-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 70%);
    top: -250px;
    right: -150px;
    animation: registerFloatOrb 12s ease-in-out infinite alternate;
}
.register-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2), transparent 70%);
    bottom: -200px;
    left: -100px;
    animation: registerFloatOrb 14s ease-in-out infinite alternate-reverse;
}
.register-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
    top: 40%;
    left: 60%;
    animation: registerFloatOrb 16s ease-in-out infinite alternate;
}

@keyframes registerFloatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, -40px) scale(1.2); }
}

.register-navbar-custom {
    padding: 1.2rem 0;
    position: relative;
    z-index: 10;
}
.register-navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}
.register-navbar-brand i {
    font-size: 1.8rem;
    -webkit-text-fill-color: initial;
    color: var(--accent-blue, #3b82f6);
}
.register-badge-vip {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 6px 14px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.register-hero-wrapper {
    padding: 1.5rem 0 3rem 0;
    position: relative;
    z-index: 2;
}
.register-hero-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #93bbfc;
    letter-spacing: 0.3px;
    margin-bottom: 1.5rem;
}
.register-hero-badge i { color: #fbbf24; margin-right: 8px; }
.register-hero-title {
    font-weight: 900;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}
.register-hero-title .highlight {
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.register-hero-sub {
    color: var(--text-secondary, #94a3b8);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    font-weight: 400;
}
.register-hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 3.5rem;
    margin-top: 1rem;
}
.register-hero-stats .register-stat-item { text-align: center; }
.register-hero-stats .register-stat-number { font-weight: 800; font-size: 1.6rem; color: white; display: block; }
.register-hero-stats .register-stat-label { font-size: 0.8rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }

.register-benefit-card {
    background: rgba(18, 28, 46, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem 1.8rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}
.register-benefit-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(16, 185, 129, 0.02));
    opacity: 0; transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.register-benefit-card:hover {
    transform: translateY(-8px); border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}
.register-benefit-card:hover::before { opacity: 1; }
.register-benefit-icon {
    font-size: 2.2rem; margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block;
}
.register-benefit-card h5 { font-weight: 700; font-size: 1.15rem; margin-bottom: 0.5rem; }
.register-benefit-card p { color: var(--text-secondary, #94a3b8); font-size: 0.95rem; margin-bottom: 0; }

.register-box {
    background: rgba(18, 28, 46, 0.75);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 24px;
    padding: 2.8rem 2.2rem; box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.8);
    position: relative; z-index: 2;
}
.register-box .register-form-title { font-weight: 700; font-size: 1.6rem; margin-bottom: 0.3rem; }
.register-box .register-form-sub { color: var(--text-secondary, #94a3b8); font-size: 0.9rem; margin-bottom: 2rem; }

.register-btn-premium {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white; border: none; border-radius: 12px; padding: 1rem 1.5rem;
    font-weight: 700; font-size: 1.05rem; width: 100%; transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 12px 25px -8px rgba(59, 130, 246, 0.35); position: relative; overflow: hidden;
}
.register-btn-premium::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0; transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.register-btn-premium:hover { transform: translateY(-2px); box-shadow: 0 18px 35px -10px rgba(59, 130, 246, 0.5); }
.register-btn-premium:hover::after { opacity: 1; }
.register-btn-premium i { transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.register-btn-premium:hover i { transform: translateX(4px); }

.register-form-footer-text { color: #64748b; font-size: 0.85rem; margin-top: 1.5rem; text-align: center; }
.register-form-footer-text a { color: #3b82f6; text-decoration: none; font-weight: 600; }
.register-form-footer-text a:hover { text-decoration: underline; }

@media (max-width: 991px) {
    .register-hero-title { font-size: 2.6rem; }
    .register-box { padding: 2rem 1.5rem; }
    .register-orb-1, .register-orb-2 { opacity: 0.3; }
}
@media (max-width: 576px) {
    .register-hero-title { font-size: 2rem; }
    .register-hero-sub { font-size: 1rem; }
    .register-hero-stats { gap: 1.2rem; }
    .register-hero-stats .register-stat-number { font-size: 1.3rem; }
    .register-benefit-card { padding: 1.5rem; }
    .register-box { padding: 1.5rem 1.2rem; }
}

/* --- ESTILOS DE TRANSACTION_RECEIPT.HTML --- */
.tx-receipt-wrapper {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 20px 10px; min-height: 80vh;
}

.tx-receipt-voucher-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    width: 100%; max-width: 380px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    overflow: hidden;
    position: relative;
    color: #1e293b;
}

.tx-receipt-voucher-card::before, .tx-receipt-voucher-card::after {
    content: ""; position: absolute; top: 110px; width: 30px; height: 30px;
    background-color: var(--bg-color, #0f0f23); border-radius: 50%; z-index: 2;
}
.tx-receipt-voucher-card::before { left: -15px; }
.tx-receipt-voucher-card::after { right: -15px; }

.tx-receipt-voucher-header {
    background: #0f172a; padding: 30px 20px 40px; text-align: center; color: white;
}

.tx-receipt-voucher-logo { font-size: 1.5rem; font-weight: 800; color: #34d399; letter-spacing: -0.5px; }
.tx-receipt-voucher-check { width: 60px; height: 60px; background: #34d399; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #0f172a; margin: 20px auto 10px; border: 5px solid #0f172a; box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.2); }

.tx-receipt-voucher-body { padding: 40px 30px 30px; background: white; }

.tx-receipt-amount-text { font-size: 2.8rem; font-weight: 900; color: #0f172a; text-align: center; line-height: 1; margin-bottom: 5px; letter-spacing: -1px; }
.tx-receipt-amount-currency { font-size: 1rem; color: #64748b; font-weight: 700; text-align: center; margin-bottom: 30px; display: block; }

.tx-receipt-detail-row { display: flex; justify-content: space-between; margin-bottom: 15px; border-bottom: 1px dashed #e2e8f0; padding-bottom: 15px; }
.tx-receipt-detail-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.tx-receipt-detail-label { color: #64748b; font-size: 0.85rem; font-weight: 600; }
.tx-receipt-detail-value { color: #0f172a; font-size: 0.9rem; font-weight: 800; text-align: right; }

.tx-receipt-voucher-footer {
    background: #f1f5f9; padding: 15px; text-align: center; font-size: 0.7rem; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}

.tx-receipt-action-buttons { width: 100%; max-width: 380px; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.tx-receipt-btn-download { background: #4361ee; color: white; border-radius: 12px; padding: 15px; font-weight: 800; border: none; width: 100%; transition: 0.2s; }
.tx-receipt-btn-wa { background: #25D366; color: white; border-radius: 12px; padding: 15px; font-weight: 800; border: none; width: 100%; text-decoration: none; text-align: center; display: block; transition: 0.2s; }
.tx-receipt-btn-download:hover, .tx-receipt-btn-wa:hover { opacity: 0.9; color: white; text-decoration: none; transform: translateY(-2px); }

/* --- ESTILOS DE ADMIN_USUARIOS.HTML --- */
.admin-users-user-role, .admin-users-kyc-level {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
}

.admin-users-role-master { background-color: #f39c12; color: white; }
.admin-users-role-avanzado { background-color: var(--accent-blue, #3b82f6); color: white; }
.admin-users-role-plus { background-color: #6f42c1; color: white; }
.admin-users-role-normal { background-color: #64748b; color: white; }

.admin-users-kyc-pendiente { background-color: #f1c40f; color: #1e293b; }
.admin-users-kyc-avanzado { background-color: var(--accent-green, #10b981); color: white; }
.admin-users-kyc-rechazado { background-color: #e74c3c; color: white; }
.admin-users-kyc-normal { background-color: #bdc3c7; color: #1e293b; }

.admin-users-pagination-controls {
    margin-top: 20px;
    text-align: center;
}
.admin-users-page-info {
    margin: 0 10px;
    font-weight: 600;
}

.admin-users-actions-cell {
    white-space: nowrap;
}
.admin-users-action-btn {
    margin-right: 8px;
    font-size: 1.1em;
    cursor: pointer;
    text-decoration: none;
}
.admin-users-action-btn:hover {
    opacity: 0.7;
}

/* --- ESTILOS DE LOGIN.HTML --- */
.login-view-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 80vh;
}

.login-form-section {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    width: 100%;
}

.login-promo-section {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-promo-bubble {
    padding: 20px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: default;
}

.login-promo-bubble:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.login-promo-advanced {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-left: 5px solid #3b82f6;
}
.login-promo-advanced h4 { color: #60a5fa; }

.login-promo-plus {
    background: linear-gradient(135deg, #2e1065 0%, #1e1b4b 100%);
    border-left: 5px solid #8b5cf6;
    position: relative;
}
.login-promo-plus::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, transparent 45%, rgba(255,255,255,0.05) 50%, transparent 55%);
    background-size: 200% 200%;
    animation: loginShine 3s infinite;
    pointer-events: none;
}
.login-promo-plus h4 { color: #c084fc; display: flex; align-items: center; gap: 8px; }

.login-promo-content h4 {
    margin: 0 0 5px 0;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
}
.login-promo-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.4;
}
.login-promo-content ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.login-icon-large {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 4rem;
    opacity: 0.1;
    transform: rotate(-15deg);
}

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

@media (max-width: 768px) {
    .login-view-wrapper { 
        flex-direction: column;
        padding: 20px 15px;
        gap: 25px;
    } 
    
    .login-promo-section, .login-form-section { 
        width: 100%; 
        max-width: 100%;
    }

    .login-promo-bubble {
        padding: 15px;
    }
    
    .login-icon-large {
        font-size: 3rem;
    }
}

/* --- ESTILOS DE CHANGE_PASSWORD.HTML --- */
.ch-pass-field-wrapper {
    position: relative;
    width: 100%;
    display: block;
}

.ch-pass-custom-password-input {
    padding-right: 42px !important;
    border-radius: 8px !important;
}

.ch-pass-toggle-password-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #64748b;
    opacity: 0.5;
    transition: opacity 0.2s ease, color 0.2s ease;
    cursor: pointer;
    z-index: 10;
    box-shadow: none !important;
    outline: none !important;
}

.ch-pass-toggle-password-btn:hover {
    opacity: 0.8;
    color: var(--accent-blue, #4361ee);
}

/* --- ESTILOS DE DASHBOARD.HTML --- */
.dash-neo-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}
.dash-neo-toggle input { opacity: 0; width: 0; height: 0; }
.dash-slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #334155;
    transition: .4s; border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}
.dash-slider:before {
    position: absolute; content: "";
    height: 18px; width: 18px; left: 3px; bottom: 3px;
    background-color: white;
    transition: .4s; border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
input:checked + .dash-slider { background-color: #4361ee; }
input:checked + .dash-slider:before { transform: translateX(24px); }

.dash-toggle-visibility-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    transition: color 0.2s;
}
.dash-toggle-visibility-btn:hover {
    color: white;
}

/* --- ESTILOS DE EDIT_P2P_ORDER.HTML --- */
.edit-order-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
}

.edit-order-method-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.edit-order-method-label {
    display: block;
    padding: 10px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(15, 23, 42, 0.6);
    margin: 0;
    color: white;
}

.edit-order-method-checkbox:checked + .edit-order-method-label {
    border-color: var(--accent-blue, #4361ee);
    background-color: rgba(67, 97, 238, 0.15);
    box-shadow: 0 0 0 1px var(--accent-blue, #4361ee);
}

.edit-order-disabled-card .edit-order-method-label {
    opacity: 0.5;
    background-color: rgba(255,255,255,0.02);
    cursor: not-allowed;
    border-color: rgba(255,255,255,0.05);
}

/* --- ESTILOS DE HISTORY.HTML --- */
.hist-header {
    background: linear-gradient(135deg, var(--accent-blue, #4361ee), #3a0ca3);
    border-radius: 16px;
    padding: 25px;
    color: white;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.2);
}

.hist-card {
    background-color: var(--secondary-bg, #1e293b);
    border: 1px solid var(--border-color, #334155);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hist-card:hover {
    border-color: var(--accent-blue, #4361ee);
    background-color: rgba(67, 97, 238, 0.03);
}

.hist-icon-circle {
    width: 45px; height: 45px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.hist-icon-in { background: rgba(6, 214, 160, 0.15); color: #06d6a0; }
.hist-icon-out { background: rgba(239, 71, 111, 0.15); color: #ef476f; }
.hist-icon-neutral { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }

.hist-details {
    background-color: rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid var(--border-color, #334155);
}

.hist-detail-label { font-size: 0.75rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
.hist-detail-value { font-size: 0.95rem; font-weight: 700; color: var(--text-primary, #f8fafc); }

.hist-btn-action {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    display: flex; justify-content: center; align-items: center; gap: 8px;
}

.hist-btn-chat { background: rgba(67, 97, 238, 0.1); color: #60a5fa; border: 1px solid rgba(67, 97, 238, 0.3); }
.hist-btn-chat:hover { background: #4361ee; color: white; }

.hist-btn-receipt { background: rgba(6, 214, 160, 0.1); color: #34d399; border: 1px solid rgba(6, 214, 160, 0.3); }
.hist-btn-receipt:hover { background: #06d6a0; color: #0f172a; }

/* --- ESTILOS DE MASTER_AUDIT.HTML --- */
.master-audit-table { width: 100%; color: #f8fafc; border-collapse: collapse; }
.master-audit-table th {
    background: rgba(0,0,0,0.2); color: #94a3b8; font-size: 0.65rem; text-transform: uppercase;
    letter-spacing: 1px; padding: 12px 15px; border-bottom: 1px solid var(--border-color, #334155); font-weight: 800; white-space: nowrap;
}
.master-audit-table td { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: middle; }
.master-audit-table tr:hover td { background: rgba(255,255,255,0.02); }

.master-audit-pulse-danger-soft {
    animation: masterAuditPulseRed 2s infinite;
}
@keyframes masterAuditPulseRed {
    0% { background-color: rgba(239, 71, 111, 0.1); }
    50% { background-color: rgba(239, 71, 111, 0.3); }
    100% { background-color: rgba(239, 71, 111, 0.1); }
}

/* --- ESTILOS DE MASTER_LIQUIDITY.HTML --- */
.master-liq-bg-info-soft { background-color: rgba(14, 165, 233, 0.15) !important; }
.master-liq-bg-secondary-soft { background-color: rgba(148, 163, 184, 0.15); }

.master-liq-table { width: 100%; color: #f8fafc; border-collapse: collapse; }
.master-liq-table th {
    background: rgba(0,0,0,0.2); color: #94a3b8; font-size: 0.65rem; text-transform: uppercase;
    letter-spacing: 1px; padding: 12px 15px; border-bottom: 1px solid var(--border-color, #334155); font-weight: 800; white-space: nowrap;
}
.master-liq-table td { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: middle; }
.master-liq-table tr:hover td { background: rgba(255,255,255,0.02); }

.master-liq-icon-circle { border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; }

.master-liq-badge { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; letter-spacing: 0.5px; }

/* --- ESTILOS DE MASTER_REFERRALS.HTML --- */
.master-ref-bg-info-soft { background-color: rgba(14, 165, 233, 0.15) !important; }

.master-ref-table { width: 100%; color: #f8fafc; border-collapse: collapse; }
.master-ref-table th {
    background: rgba(0,0,0,0.2); color: #94a3b8; font-size: 0.65rem; text-transform: uppercase;
    letter-spacing: 1px; padding: 12px 15px; border-bottom: 1px solid var(--border-color, #334155); font-weight: 800; white-space: nowrap;
}
.master-ref-table td { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: middle; }
.master-ref-table tr:hover td { background: rgba(255,255,255,0.02); }
.master-ref-table tr:last-child td { border-bottom: none; }

.master-ref-icon-circle {
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800;
}

/* --- ESTILOS DE P2P_EXPRESS.HTML --- */
.p2p-exp-container {
    max-width: 450px;
    margin: 40px auto;
}

.p2p-exp-card {
    background: var(--card-bg, #1e293b);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid #334155;
}

.p2p-exp-tabs {
    display: flex;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 30px;
}
.p2p-exp-tab-btn {
    flex: 1; text-align: center; padding: 12px; border-radius: 10px;
    font-weight: 800; cursor: pointer; transition: all 0.3s;
    color: #94a3b8; font-size: 1.1rem;
}
.p2p-exp-tab-btn.active.p2p-exp-buy-tab { background: var(--accent-green, #0ecb81); color: #000; }
.p2p-exp-tab-btn.active.p2p-exp-sell-tab { background: #f6465d; color: #fff; }

.p2p-exp-input-group {
    background: #2b2f3a;
    border-radius: 16px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    transition: border 0.3s;
    margin-bottom: 15px;
}
.p2p-exp-input-group:focus-within { border-color: #4361ee; box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2); }

.p2p-exp-input {
    background: transparent; border: none; color: white;
    font-size: 2rem; font-weight: 800; width: 100%; outline: none;
}
.p2p-exp-input::placeholder { color: #475569; }

.p2p-exp-currency-selector {
    background: transparent; border: none; color: white;
    font-size: 1.2rem; font-weight: 700; outline: none; cursor: pointer;
}
.p2p-exp-currency-selector option { background: #1e293b; }

.p2p-exp-quote-box {
    text-align: center; margin: 20px 0; min-height: 50px;
}
.p2p-exp-quote-text { font-size: 1.2rem; font-weight: 800; color: #f8fafc; }
.p2p-exp-quote-sub { font-size: 0.8rem; color: #94a3b8; }

.p2p-exp-btn-submit {
    width: 100%; padding: 16px; border-radius: 16px; border: none;
    font-size: 1.2rem; font-weight: 900; text-transform: uppercase;
    cursor: pointer; transition: transform 0.1s;
}
.p2p-exp-btn-submit:active { transform: scale(0.97); }

.p2p-exp-btn-buy-mode { background: #0ecb81; color: #000; }
.p2p-exp-btn-sell-mode { background: #f6465d; color: #fff; }

/* --- ESTILOS DE P2P_ORDER_DETAILS.HTML --- */
.p2p-det-container { max-width: 650px; margin: 0 auto; padding-bottom: 80px; }

.p2p-det-back-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: #94a3b8; font-weight: 600; font-size: 0.9rem;
    margin-bottom: 20px; text-decoration: none; transition: color 0.2s;
}
.p2p-det-back-link:hover { color: white; text-decoration: none; }

.p2p-det-order-card {
    background: #1e293b;
    border-radius: 20px;
    border: 1px solid #334155;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    overflow: hidden;
}

.p2p-det-merchant-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; align-items: center; gap: 15px;
    background: rgba(0,0,0,0.1);
}
.p2p-det-m-avatar {
    width: 45px; height: 45px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue, #4361ee), #3a0ca3);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.2rem; color: white;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}
.p2p-det-m-info h5 { margin: 0; font-weight: 800; font-size: 1.1rem; color: white; display: flex; align-items: center; gap: 5px; }
.p2p-det-m-stats { font-size: 0.8rem; color: #94a3b8; margin-top: 2px; }

.p2p-det-order-body { padding: 25px; }

.p2p-det-price-display { margin-bottom: 25px; text-align: center; }
.p2p-det-price-display span { display: block; font-size: 0.8rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.p2p-det-price-display h2 { margin: 0; font-size: 2.5rem; font-weight: 900; letter-spacing: -1px; }

.p2p-det-info-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px;
    background: rgba(0,0,0,0.2); padding: 20px; border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05); margin-bottom: 25px;
}
.p2p-det-info-item label { display: block; font-size: 0.75rem; color: #94a3b8; margin-bottom: 2px; }
.p2p-det-info-item div { font-size: 0.95rem; font-weight: 600; color: white; }

.p2p-det-payment-methods-wrap { margin-bottom: 25px; }
.p2p-det-payment-methods-wrap label { font-size: 0.8rem; color: #94a3b8; display: block; margin-bottom: 8px; }
.p2p-det-methods-list { display: flex; flex-wrap: wrap; gap: 8px; }
.p2p-det-method-tag {
    background: rgba(67, 97, 238, 0.1); color: #93c5fd;
    border: 1px solid rgba(67, 97, 238, 0.3);
    padding: 6px 12px; border-radius: 8px; font-size: 0.8rem; font-weight: 600;
}

.p2p-det-terms-box {
    background: #0f172a; border-left: 3px solid var(--accent-blue, #4361ee);
    padding: 15px; border-radius: 0 12px 12px 0; margin-bottom: 30px;
    font-size: 0.85rem; color: #cbd5e1; line-height: 1.5;
    max-height: 150px; overflow-y: auto;
}
.p2p-det-terms-box::-webkit-scrollbar { width: 6px; }
.p2p-det-terms-box::-webkit-scrollbar-thumb { background: #475569; border-radius: 3px; }

.p2p-det-swap-area { margin-bottom: 25px; }
.p2p-det-swap-label { display: flex; justify-content: space-between; font-size: 0.85rem; color: #94a3b8; margin-bottom: 8px; font-weight: 600; }
.p2p-det-input-wrapper {
    display: flex; align-items: center; background: #0f172a;
    border: 1px solid #334155; border-radius: 12px;
    padding: 5px 15px; transition: border-color 0.2s;
}
.p2p-det-input-wrapper:focus-within { border-color: #4361ee; box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1); }
.p2p-det-swap-input {
    flex: 1; background: transparent; border: none; color: white;
    font-size: 1.5rem; font-weight: 800; outline: none; padding: 10px 0;
}
.p2p-det-swap-input::placeholder { color: #475569; }
.p2p-det-currency-suffix { font-weight: 800; color: white; font-size: 1.1rem; }

.p2p-det-conversion-result {
    background: rgba(0,0,0,0.2); padding: 15px; border-radius: 12px;
    margin-top: 10px; display: flex; justify-content: space-between; align-items: center;
    border: 1px dashed #334155;
}
.p2p-det-conversion-result span { color: #94a3b8; font-size: 0.85rem; }
.p2p-det-conversion-result strong { font-size: 1.2rem; color: white; font-weight: 800; }

.p2p-det-custom-check-area { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 25px; }
.p2p-det-custom-check-area input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent-blue, #4361ee); cursor: pointer; }
.p2p-det-custom-check-area label { font-size: 0.8rem; color: #94a3b8; cursor: pointer; line-height: 1.4; }

.p2p-det-action-buttons { display: flex; gap: 15px; }
.p2p-det-btn-action {
    flex: 1; padding: 15px; border-radius: 12px; font-weight: 800; font-size: 1rem;
    text-transform: uppercase; border: none; cursor: pointer; transition: transform 0.1s, opacity 0.2s;
    text-align: center; text-decoration: none;
}
.p2p-det-btn-action:active { transform: scale(0.98); }
.p2p-det-btn-action:hover { opacity: 0.9; text-decoration: none; color: white; }

@media (max-width: 500px) {
    .p2p-det-info-grid { grid-template-columns: 1fr; gap: 10px; }
    .p2p-det-action-buttons { flex-direction: column-reverse; }
}

/* --- ESTILOS DE P2P_ORDERS.HTML --- */
.p2p-orders-trade-toggle-wrapper {
    display: flex;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color, #334155);
}

.p2p-orders-toggle-btn {
    flex: 1; text-align: center; padding: 12px 0; border-radius: 8px;
    font-weight: 800; font-size: 1rem; text-transform: uppercase;
    color: #94a3b8; text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.p2p-orders-toggle-btn:hover { color: white; text-decoration: none; }

.p2p-orders-toggle-btn.p2p-orders-active-buy { background: #0ecb81; color: #000; box-shadow: 0 4px 10px rgba(14, 203, 129, 0.3); }
.p2p-orders-toggle-btn.p2p-orders-active-sell { background: #f6465d; color: #fff; box-shadow: 0 4px 10px rgba(246, 70, 93, 0.3); }

.p2p-orders-filter-bar {
    display: flex; flex-wrap: wrap; align-items: center; background: #1e293b;
    border-radius: 12px; padding: 10px 15px; border: 1px solid #334155;
    gap: 10px; margin-bottom: 25px;
}

.p2p-orders-filter-group {
    display: flex; align-items: center; background: rgba(0,0,0,0.2);
    border-radius: 8px; padding: 8px 12px; border: 1px solid transparent; flex: 1; min-width: 150px;
}
.p2p-orders-filter-group:focus-within { border-color: #4361ee; }

.p2p-orders-filter-input, .p2p-orders-filter-select {
    background: transparent; border: none; color: white; width: 100%;
    font-size: 0.85rem; font-weight: 700; outline: none; cursor: pointer;
}
.p2p-orders-filter-select option { background: #1e293b; color: white; font-weight: 600; }
.p2p-orders-filter-input::placeholder { color: #64748b; font-weight: 500; }
.p2p-orders-filter-divider { width: 1px; height: 30px; background: #334155; margin: 0 5px; }

.p2p-orders-card {
    background: #1e293b; border-radius: 16px; padding: 20px;
    margin-bottom: 20px; border: 1px solid #334155;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
}
.p2p-orders-card:hover { transform: translateY(-2px); border-color: #475569; }

.p2p-orders-special-card {
    border: 2px solid #fbbf24 !important;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.15) !important;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.08) 0%, #1e293b 100%) !important;
    margin-top: 10px;
}
.p2p-orders-special-badge {
    position: absolute;
    top: -14px;
    left: 20px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #000;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    z-index: 10;
    animation: p2pOrdersPulseGold 2s infinite;
}

@keyframes p2pOrdersPulseGold {
    0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(251, 191, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

.p2p-orders-merchant-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; border-bottom: 1px dashed #334155; padding-bottom: 15px; }
.p2p-orders-merchant-info { display: flex; align-items: center; gap: 10px; }
.p2p-orders-merchant-avatar {
    width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem;
}
.p2p-orders-avatar-master { background: linear-gradient(135deg, #fbbf24, #b45309) !important; color: black;}

.p2p-orders-merchant-name { font-size: 1rem; font-weight: 800; color: white; text-decoration: none; display: flex; align-items: center; gap: 5px; }
.p2p-orders-merchant-name:hover { text-decoration: underline; color: #60a5fa; }
.p2p-orders-merchant-stats { font-size: 0.75rem; color: #94a3b8; display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.p2p-orders-stat-divider { color: #334155; }
.p2p-orders-stat-good { color: #34d399; font-weight: 700; }

.p2p-orders-order-body { display: flex; justify-content: space-between; align-items: flex-end; }
.p2p-orders-price-section { margin-bottom: 10px; }
.p2p-orders-price-label { font-size: 0.75rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
.p2p-orders-price-value { font-size: 1.8rem; font-weight: 900; margin: 0; line-height: 1; letter-spacing: -0.5px; }
.p2p-orders-price-currency { font-size: 0.9rem; font-weight: 600; color: #94a3b8; }

.p2p-orders-limits-section { font-size: 0.8rem; display: flex; flex-direction: column; gap: 4px; }
.p2p-orders-limit-row { display: flex; justify-content: space-between; width: 100%; gap: 15px; }
.p2p-orders-limit-lbl { color: #94a3b8; }
.p2p-orders-limit-val { color: white; font-weight: 600; text-align: right; }

.p2p-orders-order-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; }
.p2p-orders-payment-methods { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.p2p-orders-pay-tag {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: #cbd5e1; font-size: 0.7rem; font-weight: 600; padding: 4px 8px; border-radius: 6px; display: flex; align-items: center; gap: 4px;
}
.p2p-orders-pay-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #3b82f6; }

.p2p-orders-btn-trade {
    padding: 10px 20px; border-radius: 8px; font-weight: 800; font-size: 0.9rem;
    text-transform: uppercase; border: none; cursor: pointer;
    transition: transform 0.1s, opacity 0.2s; text-decoration: none;
    min-width: 120px; text-align: center;
}
.p2p-orders-btn-trade:active { transform: scale(0.95); }
.p2p-orders-btn-trade:hover { opacity: 0.9; text-decoration: none; color: white; }
.p2p-orders-btn-buy-action { background: #0ecb81; color: #000; }
.p2p-orders-btn-sell-action { background: #f6465d; color: #fff; }

.p2p-orders-btn-special-action { background: linear-gradient(135deg, #fbbf24, #d97706); color: #000; box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3); }

.p2p-orders-time-window { font-size: 0.75rem; color: #94a3b8; text-align: right; margin-bottom: 5px; }

@media (max-width: 768px) {
    .p2p-orders-filter-divider { display: none; }
    
    .p2p-orders-card { 
        padding: 12px 15px; 
        margin-bottom: 12px; 
    }

    .p2p-orders-merchant-header { 
        margin-bottom: 8px; 
        padding-bottom: 8px; 
        align-items: center;
    }
    .p2p-orders-merchant-info { gap: 8px; }
    .p2p-orders-merchant-avatar { width: 30px; height: 30px; font-size: 0.85rem; }
    .p2p-orders-merchant-name { font-size: 0.9rem; }
    .p2p-orders-merchant-stats { font-size: 0.7rem; }
    .p2p-orders-time-window { font-size: 0.65rem; text-align: right; }

    .p2p-orders-order-body { 
        flex-direction: row; 
        align-items: flex-end; 
        justify-content: space-between; 
        gap: 10px; 
    }
    .p2p-orders-price-section { margin-bottom: 0; }
    .p2p-orders-price-value { font-size: 1.4rem; }
    .p2p-orders-price-currency { font-size: 0.8rem; }
    
    .p2p-orders-limits-section { 
        width: auto; 
        text-align: right; 
        font-size: 0.7rem; 
    }
    .p2p-orders-limit-row { justify-content: flex-end; gap: 8px; }
    .p2p-orders-limit-val { text-align: right; }

    .p2p-orders-order-footer { 
        flex-direction: row; 
        align-items: center; 
        justify-content: space-between; 
        margin-top: 10px; 
        gap: 10px; 
    }
    
    .p2p-orders-payment-methods { 
        flex-wrap: nowrap; 
        overflow-x: auto; 
        padding-bottom: 2px; 
    }
    .p2p-orders-payment-methods::-webkit-scrollbar { display: none; }
    
    .p2p-orders-pay-tag { 
        font-size: 0.65rem; 
        padding: 3px 6px; 
        white-space: nowrap; 
    }

    .p2p-orders-btn-trade { 
        width: auto; 
        padding: 6px 16px; 
        font-size: 0.8rem; 
        min-width: 100px; 
    }

    .p2p-orders-special-badge { top: -10px; left: 15px; font-size: 0.65rem; padding: 3px 10px; }
}

/* --- ESTILOS DE SOLICITAR_AVANZADO.HTML --- */
.sol-av-file-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 25px 15px;
    text-align: center;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.sol-av-file-dropzone:hover {
    border-color: #4361ee;
    background: rgba(67, 97, 238, 0.05);
}

.sol-av-file-dropzone input[type="file"] {
    display: none;
}

.sol-av-file-name-display {
    display: block;
    font-size: 0.85rem;
    color: #34d399;
    font-weight: 700;
    word-break: break-all;
}

/* --- ESTILOS DE USER_PUBLIC_PROFILE.HTML --- */
.usr-prof-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px; padding: 30px; border: 1px solid #334155;
    text-align: center; margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.usr-prof-avatar {
    width: 100px; height: 100px; margin: 0 auto 15px;
    background: #3b82f6; color: white; font-size: 3rem; font-weight: 800;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 5px solid rgba(255,255,255,0.1);
}

.usr-prof-stats-row { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-top: 20px; }
.usr-prof-stat-card {
    background: rgba(255,255,255,0.05); border-radius: 12px; padding: 15px;
    min-width: 140px; border: 1px solid #334155;
}
.usr-prof-stat-num { font-size: 1.4rem; font-weight: 800; color: white; display: block; }
.usr-prof-stat-lbl { font-size: 0.75rem; text-transform: uppercase; color: #94a3b8; letter-spacing: 1px; }

.usr-prof-badge-container { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap;}
.usr-prof-badge {
    display: flex; align-items: center; gap: 6px; padding: 6px 12px;
    border-radius: 20px; font-size: 0.8rem; font-weight: 700;
    border: 1px solid rgba(255,255,255,0.1);
}
.usr-prof-bg-primary-soft { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.usr-prof-bg-warning-soft { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.usr-prof-bg-success-soft { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.usr-prof-bg-info-soft { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }

.usr-prof-review-item {
    background: #1e293b; padding: 15px; border-radius: 12px; margin-bottom: 10px;
    border-left: 4px solid #334155;
}
.usr-prof-review-item.positive { border-left-color: #10b981; }
.usr-prof-review-item.negative { border-left-color: #ef476f; }

/* --- ESTILOS DE POST_P2P_ORDER.HTML --- */
.post-p2p-form-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.post-p2p-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
}

.post-p2p-method-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.post-p2p-method-label {
    display: block;
    padding: 10px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(15, 23, 42, 0.6);
    margin: 0;
    color: white;
}

.post-p2p-method-checkbox:checked + .post-p2p-method-label {
    border-color: var(--accent-blue, #4361ee);
    background-color: rgba(67, 97, 238, 0.15);
    box-shadow: 0 0 0 1px var(--accent-blue, #4361ee);
}

.post-p2p-disabled-card .post-p2p-method-label {
    opacity: 0.5;
    background-color: rgba(255,255,255,0.02);
    cursor: not-allowed;
    border-color: rgba(255,255,255,0.05);
}

.post-p2p-error-message {
    font-size: 0.85rem;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .post-p2p-form-container {
        padding: 15px !important;
        padding-bottom: 30px !important;
    }
    
    .post-p2p-methods-grid {
        grid-template-columns: 1fr;
        max-height: 200px;
        gap: 8px;
    }
}

/* --- ESTILOS DE PREREGISTRO.HTML --- */
.prereg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}
.prereg-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 70%);
    top: -250px;
    right: -150px;
    animation: preregFloatOrb 12s ease-in-out infinite alternate;
}
.prereg-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2), transparent 70%);
    bottom: -200px;
    left: -100px;
    animation: preregFloatOrb 14s ease-in-out infinite alternate-reverse;
}
.prereg-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
    top: 40%;
    left: 60%;
    animation: preregFloatOrb 16s ease-in-out infinite alternate;
}

@keyframes preregFloatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, -40px) scale(1.2); }
}

.prereg-navbar-custom {
    padding: 1.2rem 0;
    position: relative;
    z-index: 10;
}
.prereg-navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}
.prereg-navbar-brand i {
    font-size: 1.8rem;
    -webkit-text-fill-color: initial;
    color: var(--accent-blue, #3b82f6);
}
.prereg-badge-vip {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 6px 14px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.prereg-hero-wrapper {
    padding: 1.5rem 0 3rem 0;
    position: relative;
    z-index: 2;
}
.prereg-hero-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #93bbfc;
    letter-spacing: 0.3px;
    margin-bottom: 1.5rem;
}
.prereg-hero-badge i {
    color: #fbbf24;
    margin-right: 8px;
}
.prereg-hero-title {
    font-weight: 900;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}
.prereg-hero-title .highlight {
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.prereg-hero-sub {
    color: #94a3b8;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    font-weight: 400;
}
.prereg-hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 3.5rem;
    margin-top: 1rem;
}
.prereg-hero-stats .prereg-stat-item {
    text-align: center;
}
.prereg-hero-stats .prereg-stat-number {
    font-weight: 800;
    font-size: 1.6rem;
    color: white;
    display: block;
}
.prereg-hero-stats .prereg-stat-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prereg-benefit-card {
    background: rgba(18, 28, 46, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem 1.8rem;
    height: 100%;
    transition: all 0.4s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}
.prereg-benefit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(16, 185, 129, 0.02));
    opacity: 0;
    transition: all 0.4s ease;
}
.prereg-benefit-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}
.prereg-benefit-card:hover::before {
    opacity: 1;
}
.prereg-benefit-icon {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.prereg-benefit-card h5 {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.prereg-benefit-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.prereg-register-box {
    background: rgba(18, 28, 46, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.8rem 2.2rem;
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
}
.prereg-register-box .prereg-form-title {
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}
.prereg-register-box .prereg-form-sub {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.prereg-btn-premium {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    width: 100%;
    transition: all 0.4s ease;
    box-shadow: 0 12px 25px -8px rgba(59, 130, 246, 0.35);
    position: relative;
    overflow: hidden;
}
.prereg-btn-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: all 0.4s ease;
}
.prereg-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px -10px rgba(59, 130, 246, 0.5);
}
.prereg-btn-premium:hover::after {
    opacity: 1;
}
.prereg-btn-premium i {
    transition: all 0.4s ease;
}
.prereg-btn-premium:hover i {
    transform: translateX(4px);
}

.prereg-form-footer-text {
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 1.2rem;
    text-align: center;
}
.prereg-form-footer-text i {
    color: #10b981;
}

@media (max-width: 991px) {
    .prereg-hero-title { font-size: 2.6rem; }
    .prereg-register-box { padding: 2rem 1.5rem; }
    .prereg-orb-1, .prereg-orb-2 { opacity: 0.3; }
}
@media (max-width: 576px) {
    .prereg-hero-title { font-size: 2rem; }
    .prereg-hero-sub { font-size: 1rem; }
    .prereg-hero-stats { gap: 1.2rem; }
    .prereg-hero-stats .prereg-stat-number { font-size: 1.3rem; }
    .prereg-benefit-card { padding: 1.5rem; }
    .prereg-register-box { padding: 1.5rem 1.2rem; }
}

/* --- ESTILOS DE PLUS_ENVIOS_CALCULATOR.HTML --- */
.plus-calc-container {
    max-width: 1000px;
    margin: 0 auto;
}

.plus-calc-card {
    background: var(--secondary-bg, #1e293b);
    border: 1px solid var(--border-color, #334155);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.plus-calc-card::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(67,97,238,0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.plus-calc-input-group {
    display: flex;
    flex-direction: column;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border-color, #334155);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}
.plus-calc-input-group:focus-within {
    border-color: #4361ee;
    box-shadow: 0 0 20px rgba(67, 97, 238, 0.4);
}

.plus-calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.plus-calc-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 1px;
}

.plus-calc-currency-selector {
    background: transparent;
    color: #fff;
    border: none;
    font-size: 1.2rem;
    font-weight: 800;
    outline: none;
    cursor: pointer;
}
.plus-calc-currency-selector option { background: #1e293b; color: #fff; }

.plus-calc-amount-input-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plus-calc-amount-input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    width: 100%;
    outline: none;
}
.plus-calc-amount-input::placeholder { color: #475569; }

.plus-calc-bank-selector-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color, #334155);
}

.plus-calc-bank-selector {
    width: 100%;
    background: rgba(255,255,255,0.05);
    color: #f1f5f9;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}
.plus-calc-bank-selector:focus { border-color: #4361ee; }
.plus-calc-bank-selector option { background: #1e293b; color: #fff; }

.plus-calc-swap-btn-container {
    display: flex;
    justify-content: center;
    margin: -15px 0;
    position: relative;
    z-index: 2;
}
.plus-calc-swap-btn {
    width: 45px; height: 45px;
    background: #1e293b;
    border: 1px solid var(--border-color, #334155);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer;
    color: #4361ee;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.plus-calc-swap-btn:hover { background: #4361ee; color: #fff; transform: rotate(180deg); }

.plus-calc-btn-calc {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 1;
}
.plus-calc-btn-calc:hover { transform: translateY(-2px); box-shadow: 0 15px 25px rgba(67, 97, 238, 0.4); color: white;}

.plus-calc-ticket-card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid var(--border-color, #334155);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}
.plus-calc-ticket-card.plus-calc-best-route {
    border: 1px solid #06d6a0;
    box-shadow: 0 0 20px rgba(6, 214, 160, 0.15);
}
.plus-calc-ticket-badge {
    position: absolute; top: 0; right: 0;
    background: #06d6a0; color: #000;
    padding: 5px 15px;
    font-weight: 800; font-size: 0.7rem;
    border-bottom-left-radius: 12px;
}
.plus-calc-ticket-amount-large {
    font-size: 2.2rem;
    font-weight: 800;
    color: #06d6a0;
    line-height: 1;
}
.plus-calc-ticket-rate {
    display: inline-block;
    background: rgba(255,255,255,0.05);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #94a3b8;
    border: 1px solid var(--border-color, #334155);
}
.plus-calc-btn-ticket {
    background: #06d6a0;
    color: #000;
    font-weight: 800;
    border-radius: 10px;
    border: none;
    padding: 12px;
    transition: all 0.2s;
}
.plus-calc-btn-ticket:hover { background: #05b589; color: #000; transform: scale(0.98); text-decoration: none;}

/* --- ESTILOS DE VIEW_PLUS_ENVIO.HTML --- */
.v-plus-summary-card {
    background: var(--secondary-bg, #1e293b); border-radius: 20px; padding: 25px;
    text-align: center; border: 1px solid var(--border-color, #334155); margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.v-plus-summary-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.v-plus-sum-box { flex: 1; }
.v-plus-sum-label { font-size: 0.7rem; text-transform: uppercase; color: #94a3b8; letter-spacing: 1px; }
.v-plus-sum-val { font-size: 1.5rem; font-weight: 800; color: white; display: block;}
.v-plus-sum-curr { font-size: 0.8rem; color: var(--accent-blue, #4361ee); font-weight: 700; }
.v-plus-sum-arrow { font-size: 1.2rem; color: #94a3b8; opacity: 0.5; }
.v-plus-sum-val.receive { color: #06d6a0; }

.v-plus-status-pill {
    display: inline-block; padding: 6px 15px; border-radius: 50px;
    font-size: 0.8rem; font-weight: 700; margin-bottom: 15px;
    background: rgba(67, 97, 238, 0.15); color: var(--accent-blue, #4361ee);
    border: 1px solid rgba(67, 97, 238, 0.3);
}
.v-plus-status-pill.action { background: rgba(255, 209, 102, 0.15); color: #ffd166; border-color: #ffd166; }
.v-plus-status-pill.success { background: rgba(6, 214, 160, 0.15); color: #06d6a0; border-color: #06d6a0; }

.v-plus-action-card {
    background: white; color: #1e293b; border-radius: 20px; padding: 25px;
    text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px; position: relative; overflow: hidden;
}
.v-plus-action-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--accent-blue, #4361ee); }
.v-plus-action-card.border-warning::before { background: #ffd166; }
.v-plus-action-card.border-success::before { background: #06d6a0; }

.v-plus-action-title { font-weight: 800; font-size: 1.1rem; margin-bottom: 15px; text-transform: uppercase; }

.v-plus-bank-box { background: #f1f5f9; padding: 15px; border-radius: 12px; text-align: left; margin-bottom: 15px; border: 1px dashed #cbd5e1; }
.v-plus-bank-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 5px; }
.v-plus-copy-btn { cursor: pointer; color: var(--accent-blue, #4361ee); }

.v-plus-btn-main {
    width: 100%; padding: 15px; border-radius: 12px; border: none;
    font-weight: 800; text-transform: uppercase; font-size: 0.95rem;
    cursor: pointer; transition: transform 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    color: white;
}
.v-plus-btn-blue { background: var(--accent-blue, #4361ee); }
.v-plus-btn-green { background: #06d6a0; color: #0f0f23; }
.v-plus-btn-warning { background: #ffd166; color: #0f0f23; }
.v-plus-btn-outline { background: transparent; border: 2px solid #cbd5e1; color: #64748b; }

.v-plus-icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 20px; }
.v-plus-icon-card {
    background: var(--secondary-bg, #1e293b); border: 1px solid var(--border-color, #334155);
    border-radius: 16px; padding: 15px 10px; text-align: center;
    cursor: pointer; transition: all 0.3s;
}
.v-plus-icon-card:hover, .v-plus-icon-card.active { border-color: var(--accent-blue, #4361ee); background: rgba(67, 97, 238, 0.1); }
.v-plus-icon-symbol { font-size: 1.5rem; margin-bottom: 5px; display: block; }
.v-plus-icon-label { font-size: 0.7rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; }

.v-plus-info-section { display: none; margin-top: 20px; animation: vPlusSlideDown 0.3s ease; }
.v-plus-info-section.show { display: block; }
@keyframes vPlusSlideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.v-plus-chat-btn-group { display: flex; gap: 10px; margin-bottom: 10px; }
.v-plus-chat-tab-btn {
    flex: 1; padding: 12px; border-radius: 10px; border: 1px solid var(--border-color, #334155);
    background: var(--secondary-bg, #1e293b); color: #94a3b8; font-size: 0.9rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
}
.v-plus-chat-tab-btn.active { background: var(--accent-blue, #4361ee); color: white; border-color: var(--accent-blue, #4361ee); }

.v-plus-chat-window { 
    background-color: #0b141a;
    background-image: url("https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png");
    background-blend-mode: soft-light;
    border-radius: 16px; 
    height: 450px; 
    display: flex; 
    flex-direction: column; 
    border: 1px solid var(--border-color, #334155);
    overflow: hidden;
}

.v-plus-chat-header { 
    background: #202c33; 
    padding: 10px 15px; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    font-weight: 700; font-size: 0.9rem; 
    display: flex; justify-content: space-between; align-items: center;
}

.v-plus-chat-msgs { 
    flex: 1; 
    overflow-y: auto; 
    padding: 15px; 
    display: flex; 
    flex-direction: column; 
    gap: 8px;
}

.v-plus-w-msg { 
    max-width: 80%; 
    padding: 6px 12px; 
    border-radius: 8px; 
    font-size: 0.9rem; 
    position: relative; 
    color: #e9edef;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    word-wrap: break-word;
}

.v-plus-w-msg.me { 
    background: #005c4b; 
    align-self: flex-end; 
    border-top-right-radius: 0; 
}

.v-plus-w-msg.other { 
    background: #202c33; 
    align-self: flex-start; 
    border-top-left-radius: 0; 
}

.v-plus-msg-sender {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 2px;
    display: block;
    line-height: 1.2;
}
.v-plus-w-msg.other .v-plus-msg-sender { color: #60a5fa; }
.v-plus-w-msg.me .v-plus-msg-sender { color: #a7f3d0; }

.v-plus-w-time {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.6);
    text-align: right;
    margin-top: 4px;
    display: block;
    margin-bottom: -2px;
}

.v-plus-chat-img-thumb {
    max-width: 100%;
    border-radius: 6px;
    margin-bottom: 5px;
    cursor: pointer;
    display: block;
}

.v-plus-chat-input-area { 
    background: #202c33;
    padding: 10px; 
    display: flex; 
    align-items: center;
    gap: 10px; 
}

.v-plus-chat-input { 
    flex: 1; 
    background: #2a3942; 
    border: none; 
    color: white; 
    border-radius: 20px; 
    padding: 12px 15px; 
    outline: none; 
    font-size: 0.95rem;
}

.v-plus-btn-circle {
    width: 40px; height: 40px; border-radius: 50%; border: none;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    font-size: 1.2rem; transition: background 0.2s;
}

.v-plus-btn-attach { background: transparent; color: #8696a0; }
.v-plus-btn-attach:hover { color: #f1f5f9; background: rgba(255,255,255,0.1); }

.v-plus-btn-send { background: #06d6a0; color: #000; }
.v-plus-btn-send:hover { background: #05b589; }

/* --- ESTILOS DE COMPONENTS/_CHAT_WIDGET.HTML --- */
.cw-chat-history {
    height: 400px;
    overflow-y: auto;
    background-color: rgba(10, 14, 26, 0.7);
    display: flex;
    flex-direction: column;
}

.cw-msg-image-container img {
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
}

.cw-msg-row {
    display: flex;
    margin-bottom: 8px;
    width: 100%;
}

.cw-msg-me {
    justify-content: flex-end;
}

.cw-msg-them {
    justify-content: flex-start;
}

.cw-msg-bubble {
    max-width: 75%;
    padding: 8px 12px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    word-wrap: break-word;
}

.cw-msg-me .cw-msg-bubble {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #ffffff;
    border-radius: 15px 0 15px 15px;
}

.cw-msg-them .cw-msg-bubble {
    background: rgba(30, 41, 59, 0.85);
    color: #f8fafc;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0 15px 15px 15px;
}

.cw-msg-text {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 4px;
}

.cw-msg-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    margin-top: -2px;
}

.cw-msg-me .cw-msg-meta {
    color: rgba(255,255,255,0.85);
}

.cw-msg-time {
    margin-right: 4px;
}

.cw-msg-check {
    font-size: 0.7rem;
    color: #38bdf8;
}

.cw-chat-history::-webkit-scrollbar {
    width: 6px;
}
.cw-chat-history::-webkit-scrollbar-track {
    background: transparent;
}
.cw-chat-history::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.15);
    border-radius: 3px;
}

/* --- ESTILOS DE MASTER/MASTER_SUPPORT_PANEL.HTML --- */
.mst-supp-badge-danger { background-color: #dc3545; }
.mst-supp-badge-warning { background-color: #ffc107; color: #343a40; }
.mst-supp-badge-info { background-color: #17a2b8; }
.mst-supp-badge-success { background-color: #28a745; }
.mst-supp-table-danger-light { background-color: rgba(220, 53, 69, 0.15) !important; }

/* --- ESTILOS DE MASTER/PLUS_MONITOR.HTML --- */
.pm-god-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 0; border-bottom: 2px solid #334155; margin-bottom: 30px;
}

.pm-card-op {
    background: var(--secondary-bg, #1e293b); border: 1px solid #334155; border-radius: 12px;
    margin-bottom: 20px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    position: relative; overflow: hidden;
}
.pm-card-op.pm-dispute { border: 2px solid #ef476f; }

.pm-op-top-bar {
    background: rgba(0,0,0,0.3); padding: 10px 20px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.85rem; color: #94a3b8;
}

.pm-actors-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 10px; padding: 20px; text-align: center;
}
.pm-actor-col { position: relative; }
.pm-avatar-circle {
    width: 50px; height: 50px; border-radius: 50%; 
    background: #334155; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.2rem; margin: 0 auto 10px;
    border: 2px solid transparent;
    position: relative;
}
.pm-av-adv { border-color: #3b82f6; color: #3b82f6; }
.pm-av-plus { border-color: #8b5cf6; color: #8b5cf6; }

.pm-money-badge {
    position: absolute; top: -5px; right: -5px;
    background: #22c55e; color: black; font-size: 0.6rem; 
    padding: 2px 6px; border-radius: 10px; font-weight: bold;
    box-shadow: 0 0 5px rgba(34, 197, 94, 0.5);
}

.pm-tools-row {
    display: flex; justify-content: center; gap: 5px; margin-top: 5px;
}
.pm-btn-tool {
    background: rgba(255,255,255,0.05); border: none; color: #94a3b8;
    width: 30px; height: 30px; border-radius: 6px; cursor: pointer;
    transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.pm-btn-tool:hover { background: rgba(255,255,255,0.1); color: white; }
.pm-btn-tool.pm-chat:hover { color: #facc15; }
.pm-btn-tool.pm-wallet:hover { color: #22c55e; }

.pm-progress-track {
    height: 4px; background: #334155; margin: 0 20px; border-radius: 2px;
    position: relative; top: -30px; z-index: 0;
}
.pm-progress-fill {
    height: 100%; background: #6366f1; width: 0%; transition: width 0.5s;
    box-shadow: 0 0 10px #6366f1;
}

.pm-op-actions {
    padding: 15px 20px; background: rgba(0,0,0,0.2);
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid #334155;
}

.pm-timer-badge { font-family: monospace; font-size: 0.9rem; color: #f59e0b; }
.pm-timer-badge.danger { color: #ef476f; }

.pm-wallet-tooltip {
    display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
    background: #0f172a; border: 1px solid #475569; padding: 10px; border-radius: 8px;
    width: 200px; z-index: 100; text-align: left; font-size: 0.8rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.pm-actor-col:hover .pm-wallet-tooltip { display: block; }
.pm-w-row { display: flex; justify-content: space-between; margin-bottom: 2px; }
.pm-w-val { font-weight: bold; color: white; }

/* --- ESTILOS DE PLUS/PLUS_DASHBOARD.HTML --- */
.plus-dash-hub-header {
    text-align: center;
    padding: 40px 20px;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 70%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 30px;
}

.plus-dash-big-diamond {
    font-size: 4rem;
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 50%, #104e8b 51%, #1565c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.5));
    animation: floatGem 4s ease-in-out infinite;
    display: inline-block;
}

.plus-dash-title {
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 10px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plus-dash-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    padding: 0 15px;
}

.plus-dash-stat-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.plus-dash-stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
}
.plus-dash-text-gold { color: #ffd700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
.plus-dash-text-cyan { color: #06b6d4; text-shadow: 0 0 10px rgba(6, 182, 212, 0.3); }

.plus-dash-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

.plus-dash-action-grid {
    display: grid;
    gap: 20px;
    padding: 0 15px 40px;
    max-width: 600px;
    margin: 0 auto;
}

.plus-dash-action-card {
    background: var(--secondary-bg, #1e293b);
    border-radius: 24px;
    padding: 25px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.plus-dash-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: #253045;
    color: white;
}

.plus-dash-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.plus-dash-bg-icon-gold { background: rgba(255, 215, 0, 0.1); color: #ffd700; }
.plus-dash-bg-icon-cyan { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }

.plus-dash-action-text h4 { margin: 0 0 5px; font-weight: 800; font-size: 1.1rem; }
.plus-dash-action-text p { margin: 0; font-size: 0.85rem; color: #94a3b8; }

.plus-dash-arrow-icon { margin-left: auto; color: #475569; }

.plus-dash-action-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
}
.plus-dash-border-gold::before { background: #ffd700; }
.plus-dash-border-cyan::before { background: #06b6d4; }

@keyframes floatGem {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- ESTILOS DE SUPPORT/CREATE_TICKET.HTML --- */
.crt-tkt-container {
    max-width: 650px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.crt-tkt-card {
    background-color: var(--secondary-bg, #1e293b);
    border: 1px solid var(--border-color, #334155);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.crt-tkt-header {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(0, 0, 0, 0));
    padding: 25px;
    border-bottom: 1px solid var(--border-color, #334155);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.crt-tkt-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary, #f8fafc);
    display: flex;
    align-items: center;
    gap: 10px;
}

.crt-tkt-body {
    padding: 30px 25px;
}

.crt-tkt-form-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.crt-tkt-input {
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color, #334155);
    color: #ffffff;
    border-radius: 12px;
    padding: 12px 15px;
    width: 100%;
    transition: all 0.3s;
}

.crt-tkt-input:focus {
    background-color: rgba(0,0,0,0.3);
    border-color: var(--accent-blue, #4361ee);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
    outline: none;
}

.crt-tkt-input::placeholder {
    color: #64748b;
}

.crt-tkt-file-upload-wrapper {
    position: relative;
    width: 100%;
    height: 60px;
    border: 2px dashed var(--border-color, #334155);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.1);
    transition: all 0.2s;
    cursor: pointer;
}

.crt-tkt-file-upload-wrapper:hover {
    border-color: var(--accent-blue, #4361ee);
    background-color: rgba(67, 97, 238, 0.05);
}

.crt-tkt-file-upload-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.crt-tkt-file-upload-text {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.crt-tkt-btn-submit {
    background: var(--accent-blue, #4361ee);
    color: white;
    font-weight: 800;
    border: none;
    border-radius: 12px;
    padding: 15px;
    width: 100%;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.crt-tkt-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
    background: #3651d4;
}

.crt-tkt-btn-submit:active {
    transform: scale(0.98);
}

.crt-tkt-char-counter {
    font-size: 0.75rem;
    color: #64748b;
    text-align: right;
    margin-top: 5px;
    display: block;
}

/* =========================================================
   DASHBOARD BINANCE-STYLE TABS & CHIPS FILTERING
   ========================================================= */

.dash-filter-container {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
}

/* Tabs Principales */
.dash-tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.dash-tabs-nav::-webkit-scrollbar {
    display: none;
}

.dash-tab {
    position: relative;
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 9px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.dash-tab:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

.dash-tab.active {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.2);
}

/* Indicador de Alerta (Punto Naranja Pulse) */
.pulse-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 9px;
    height: 9px;
    background-color: #f97316;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
    animation: pulse-orange 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-orange {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
    }
    70% {
        transform: scale(1.15);
        box-shadow: 0 0 0 7px rgba(249, 115, 22, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    }
}

/* Sub-filtros Chips */
.dash-chips-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-top: 4px;
}
.dash-chips-nav::-webkit-scrollbar {
    display: none;
}

.dash-chip {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.dash-chip:hover {
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.dash-chip.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(29, 78, 216, 0.25) 100%);
    color: #ffffff;
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Transición suave para las tarjetas del Dashboard */
.dash-tx-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dash-card-fade-in {
    animation: fadeInCard 0.35s ease forwards;
}

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

/* =========================================================
   NEO-BANK CUSTOM SELECT COMPONENT & BOTTOM SHEET
   ========================================================= */
.neo-select-native-hidden {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    pointer-events: none !important;
    border: none !important;
}

.neo-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.neo-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--text-primary, #f8fafc);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    outline: none;
}

.neo-select-trigger:hover, .neo-select-trigger:focus {
    border-color: var(--accent-blue, #3b82f6);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.neo-select-trigger-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.neo-select-chevron {
    transition: transform 0.2s ease;
    font-size: 0.75rem;
    color: var(--text-secondary, #94a3b8);
    margin-left: 8px;
}

.neo-select-wrapper.open .neo-select-chevron {
    transform: rotate(180deg);
}

/* Dropdown Menu (Desktop) */
.neo-select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    z-index: 9999 !important;
    display: none;
    padding: 6px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.neo-select-dropdown.open, .neo-select-wrapper.open .neo-select-dropdown {
    display: block !important;
    animation: neoSelectFadeIn 0.15s ease-out;
}

@keyframes neoSelectFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.neo-select-option {
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--text-primary, #f8fafc);
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.neo-select-option:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue, #3b82f6);
}

.neo-select-option.selected {
    background: rgba(59, 130, 246, 0.25);
    color: var(--accent-blue, #3b82f6);
    font-weight: 600;
}

/* Mobile Bottom Sheet Mode (Portaled to Body) */
.neo-select-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 9998 !important;
    display: none;
}

.neo-select-backdrop.active {
    display: block !important;
}

@media (max-width: 768px) {
    .neo-select-dropdown-mobile {
        position: fixed !important;
        top: auto !important;
        bottom: -100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: 70vh !important;
        border-radius: 20px 20px 0 0 !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-bottom: none !important;
        background: #0f172a !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8) !important;
        z-index: 9999 !important;
        padding: 16px !important;
        transition: bottom 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
        display: block !important;
        pointer-events: none;
    }

    .neo-select-dropdown-mobile.open, .neo-select-dropdown-mobile.show, .neo-select-dropdown-mobile.active {
        bottom: 0 !important;
        pointer-events: auto !important;
    }

    .neo-select-bottom-sheet-handle {
        width: 36px;
        height: 4px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
        margin: 0 auto 12px auto;
    }
}