/*
⚠️ IMPORTANTE: Sigue las directrices del framework Vibe.
Ver: /.github/copilot-instructions.md

Layout Global Styles - Estilos globales con Sidebar
Vibe Framework Implementation
*/

:root {
    /* Colores Base */
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-tertiary: #334155;
    --bg-quaternary: #475569;
    
    /* Textos */
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    
    /* Acentos Neón */
    --accent-cyan: #06B6D4;
    --accent-magenta: #D946EF;
    --accent-purple: #8B5CF6;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-cyan: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
    
    /* Sombras y Glow */
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    --glow-blue: 0 0 20px rgba(59, 130, 246, 0.4);
    
    --sidebar-width: 280px;
}

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

body.app-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Layout con Sidebar */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--bg-secondary) 0%, #1a2332 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, top 0.3s ease, height 0.3s ease;
    z-index: 100;
}

/* Ajuste del sidebar cuando hay impersonación activa */
body.impersonating .sidebar {
    top: 38px;
    height: calc(100vh - 38px);
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.header-info {
    flex: 1;
    min-width: 0; /* Para que funcione el text-overflow */
}

.sidebar-title {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.sidebar-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-badge-small {
    display: inline-block;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    color: var(--accent-cyan);
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: var(--glow-blue);
}

/* Navegación - Optimizada y compacta */
.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 1.25rem;
}

.nav-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0 1.25rem;
    margin-bottom: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 1.25rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    position: relative;
}

.nav-item:hover:not(.nav-disabled) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border-left-color: var(--accent-cyan);
}

.nav-item:hover:not(.nav-disabled) .nav-icon svg {
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.6));
    transform: scale(1.05);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.12) 0%, transparent 100%);
    color: var(--accent-cyan);
    border-left-color: var(--accent-cyan);
    font-weight: 600;
}

.nav-item.active .nav-icon svg {
    filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.5));
}

.nav-item.nav-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.nav-item-single {
    margin-top: 0.5rem;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
    transition: all 0.2s ease;
}

.nav-text {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
}

.nav-badge {
    font-size: 0.65rem;
    background: rgba(148, 163, 184, 0.15);
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-weight: 600;
}

/* Quick Actions - Botón de acción rápida */
.quick-actions {
    margin-top: 0.75rem;
    padding: 0 1.25rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    color: var(--accent-cyan);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(6, 182, 212, 0.3);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
    border-color: var(--accent-cyan);
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(6, 182, 212, 0.3);
}

.quick-action-btn:active {
    transform: translateY(0);
}

.quick-action-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

/* Selector de Idioma */
.language-selector {
    margin-bottom: 1rem;
}

.language-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.language-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.lang-btn {
    flex: 1;
    padding: 0.6rem 0.5rem;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.lang-btn:hover {
    background: var(--bg-quaternary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: var(--gradient-cyan);
    color: white;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.btn-logout {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-logout:hover {
    background: var(--bg-quaternary);
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2.5rem;
    transition: margin-left 0.3s ease;
}

/* Mobile: padding más generoso */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
}

.sidebar.collapsed + .main-content {
    margin-left: 0;
}

/* Toggle Button - Diseño Moderno en Esquina Superior Derecha */
.sidebar-toggle-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(6, 182, 212, 0.2);
    border-radius: 10px;
    color: var(--accent-cyan);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(6, 182, 212, 0.1);
    position: relative;
    overflow: hidden;
}

.sidebar-toggle-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-toggle-btn:hover::before {
    opacity: 1;
}

.sidebar-toggle-btn:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(6, 182, 212, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sidebar-toggle-btn:active {
    transform: translateY(0) scale(0.98);
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-weight: 600;
    z-index: 1;
    position: relative;
}

/* Botón Flotante para Abrir Sidebar Colapsado */
.sidebar-open-btn {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    width: 36px;
    height: 36px;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 8px;
    color: var(--accent-cyan);
    cursor: pointer;
    z-index: 101;
    display: none; /* Oculto por defecto */
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 20px rgba(6, 182, 212, 0.2);
}

/* Ajuste del botón flotante cuando hay impersonación */
body.impersonating .sidebar-open-btn {
    top: calc(38px + 0.75rem);
}

.sidebar.collapsed ~ .main-content .sidebar-open-btn {
    display: flex; /* Solo visible cuando sidebar está colapsado */
    animation: fadeInScale 0.3s ease-out;
}

.sidebar-open-btn:hover {
    background: rgba(51, 65, 85, 0.98);
    border-color: var(--accent-cyan);
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), 0 0 30px rgba(6, 182, 212, 0.4);
}

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

/* ========== RESPONSIVE MOBILE ========== */
@media (max-width: 768px) {
    /* Sidebar oculto por defecto en mobile */
    .sidebar {
        transform: translateX(-100%);
        z-index: 1000;
    }
    
    /* Sidebar visible cuando NO está collapsed */
    .sidebar:not(.collapsed) {
        transform: translateX(0);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
    }
    
    /* Main content sin margen en mobile */
    .main-content {
        margin-left: 0;
    }
    
    /* Botón flotante visible cuando sidebar está collapsed */
    .sidebar.collapsed ~ .main-content .sidebar-open-btn {
        display: flex;
    }
    
    /* Overlay oscuro cuando sidebar está abierto */
    .sidebar:not(.collapsed)::after {
        content: '';
        position: fixed;
        top: 0;
        left: var(--sidebar-width);
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        animation: fadeIn 0.3s ease;
    }
}

/* Utilidades Globales */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: var(--accent-cyan);
    transition: color 0.2s ease;
}

a:hover {
    color: #22D3EE;
}

::selection {
    background: rgba(59, 130, 246, 0.3);
}

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 5px;
}

/* Global Date Input Styles */
input[type="date"] {
    color-scheme: dark;
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.8;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* ==================== 🚧 MAINTENANCE BANNER GLOBAL ==================== */
.maintenance-banner-global {
    margin: 0 0 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.2) 100%);
    border: 2px solid rgba(245, 158, 11, 0.5);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    animation: slideInDown 0.5s ease-out;
}

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

.maintenance-banner-global .maintenance-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.maintenance-banner-global .maintenance-icon {
    font-size: 2rem;
    flex-shrink: 0;
    animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% { 
        opacity: 0.85;
        box-shadow: 0 0 0 4px rgba(245, 158, 11, 0);
    }
}

.maintenance-banner-global .maintenance-text {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
}

.maintenance-banner-global .maintenance-message {
    font-size: 1.125rem;
    font-weight: 700;
    color: #FCD34D;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.maintenance-banner-global .maintenance-details {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Mobile: Banner más compacto */
@media (max-width: 768px) {
    .maintenance-banner-global {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .maintenance-banner-global .maintenance-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
    
    .maintenance-banner-global .maintenance-icon {
        font-size: 1.75rem;
    }
    
    .maintenance-banner-global .maintenance-message {
        font-size: 1rem;
    }
    
    .maintenance-banner-global .maintenance-details {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .maintenance-banner-global {
        padding: 0.875rem;
        margin-bottom: 0.75rem;
        border-width: 2px;
    }
    
    .maintenance-banner-global .maintenance-icon {
        font-size: 1.5rem;
    }
    
    .maintenance-banner-global .maintenance-message {
        font-size: 0.95rem;
    }
    
    .maintenance-banner-global .maintenance-details {
        font-size: 0.8rem;
    }
}

/* =============================================================================
   MODAL GLOBAL: Nueva Transacción
   ============================================================================= */

.global-tx-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem 1rem;
    overflow-y: auto;
}

.global-tx-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 0;
}

.global-tx-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 680px;
    background: var(--bg-secondary, #1e293b);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: modalSlideIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.global-tx-modal-body {
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    padding: 0;
}

/* Scrollbar personalizado dentro del modal */
.global-tx-modal-body::-webkit-scrollbar { width: 5px; }
.global-tx-modal-body::-webkit-scrollbar-track { background: transparent; }
.global-tx-modal-body::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.3); border-radius: 3px; }

/* Header compacto del modal */
.tx-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 0;
    background: linear-gradient(135deg, rgba(102,126,234,0.08), rgba(118,75,162,0.08));
    border-bottom: 1px solid rgba(148,163,184,0.1);
    padding-bottom: 1rem;
    margin-bottom: 0;
}

.tx-modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.modal-close-x {
    background: rgba(148,163,184,0.1);
    border: 1px solid rgba(148,163,184,0.2);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.modal-close-x:hover {
    background: rgba(239,68,68,0.15);
    border-color: rgba(239,68,68,0.3);
    color: #ef4444;
}

/* Estado de carga */
.global-tx-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    gap: 1rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(102,126,234,0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.global-tx-modal-error {
    padding: 2rem;
    text-align: center;
    color: #ef4444;
}

.global-tx-modal-error button {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444;
    border-radius: 6px;
    cursor: pointer;
}

/* Ajustes del formulario dentro del modal */
.global-tx-modal-body .transaction-form-container {
    padding: 0 !important;
}

.global-tx-modal-body .tx-header,
.global-tx-modal-body .info-card {
    display: none !important;
}

.global-tx-modal-body .form-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 1.25rem 1.5rem;
}

.global-tx-modal-body .section-card {
    background: rgba(15,23,42,0.4) !important;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

/* Asset type info badge */
.asset-type-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.375rem;
}

.asset-type-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.asset-type-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    font-style: italic;
}

/* Quick action btn como botón (no link) */
.quick-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    width: 100%;
}

/* Mobile: modal ocupa más pantalla */
@media (max-width: 768px) {
    .global-tx-modal {
        padding: 0;
        align-items: flex-end;
    }

    .global-tx-modal-dialog {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        margin: 0;
        max-height: 92vh;
    }

    .global-tx-modal-body {
        max-height: calc(92vh - 60px);
    }
}

/* =============================================================================
   MODAL GLOBAL: Step-1 — Selector de portfolio + tipo de operación
   ============================================================================= */

.modal-step1-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-step1-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.modal-step1-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-step1-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
    appearance: auto;
}

.modal-step1-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.modal-step1-types {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-type-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    color: #f1f5f9;
    width: 100%;
}

.modal-type-btn:hover {
    background: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateX(4px);
}

.type-btn-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    width: 44px;
    text-align: center;
}

.type-btn-label {
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
    display: block;
    line-height: 1.3;
}

.type-btn-sub {
    font-size: 0.75rem;
    color: #64748b;
    display: block;
    margin-top: 0.15rem;
}

/* Colores específicos por tipo */
.modal-type-btn[data-optype="standard"]:hover {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
}

.modal-type-btn[data-optype="cash"]:hover {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.08);
}

.modal-type-btn[data-optype="futures"]:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.08);
}

@media (max-width: 480px) {
    .modal-step1-body {
        padding: 1rem;
    }

    .type-btn-icon { font-size: 1.4rem; width: 36px; }
    .type-btn-label { font-size: 0.9rem; }
}
