@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --accent: #f59e0b;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(255, 255, 255, 0.05);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing);
}

.login-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

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

.login-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-lg);
    text-align: center;
}

.login-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.login-header p {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 300;
}

.login-body {
    padding: var(--spacing) var(--spacing-xl) var(--spacing-lg);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.form-control, .form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='rgba(255,255,255,0.5)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Password Input Group */
.password-input-group {
    position: relative;
    display: flex;
}

.password-input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.password-input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 0.75rem;
    min-width: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-success {
    background: var(--secondary);
    color: white;
    border: none;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

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

.btn-outline-primary, .btn-outline-info, .btn-outline-warning, 
.btn-outline-success, .btn-outline-danger, .btn-outline-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-outline-primary:hover { background: var(--primary); color: white; border-color: var(--primary); }
.btn-outline-info:hover { background: var(--secondary); color: white; border-color: var(--secondary); }
.btn-outline-success:hover { background: var(--secondary); color: white; border-color: var(--secondary); }
.btn-outline-warning:hover { background: var(--warning); color: white; border-color: var(--warning); }
.btn-outline-danger:hover { background: var(--danger); color: white; border-color: var(--danger); }
.btn-outline-secondary:hover { background: var(--text-muted); color: white; border-color: var(--text-muted); }

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
}

/* Dashboard Header */
.dashboard-header {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: var(--spacing) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    position: relative; /* Para que el menú móvil se posicione correctamente */
}

.navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--primary);
}

.welcome-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Mobile Menu */
.mobile-menu-toggle {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    padding: 0;
    cursor: pointer;
    z-index: 1000;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu-toggle:hover span {
    background: var(--primary);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
}

.mobile-menu-content {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: var(--spacing);
    margin: 0 var(--spacing);
    box-shadow: var(--shadow-lg);
}

.welcome-text-mobile {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    padding: var(--spacing-sm);
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: var(--spacing);
}

.mobile-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* Dashboard Content */
.dashboard-content {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
}

/* Stats Cards */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: var(--transition);
    height: 100%;
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.stat-card .stat-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    margin-bottom: var(--spacing);
}

.stat-card .stat-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1;
}

.stat-card .stat-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: var(--spacing-xs) 0 0 0;
}

/* Accounts Section */
.accounts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing);
    border-bottom: 1px solid var(--border);
}

.accounts-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

/* Account Cards */
.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing);
    transition: var(--transition);
    animation: fadeIn 0.5s ease-out;
}

.account-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

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

.account-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-lg);
}

.account-details h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.account-details p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: var(--spacing-xs) 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.account-details strong {
    color: var(--text-primary);
    font-weight: 500;
}

.user-text, .password-hidden {
    background: var(--bg-glass);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8125rem;
    border: 1px solid var(--border);
}

.password-actions {
    display: flex;
    gap: var(--spacing-xs);
    margin-left: var(--spacing-sm);
}

.account-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Server Badges */
.server-badge, .platform-badge {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.server-badge.ftmo {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.server-badge.otro {
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.platform-badge.mt4 {
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.platform-badge.mt5 {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Phase Badges */
.phase-badge {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.phase-badge.fase-1 {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.phase-badge.fase-2 {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.phase-badge.live {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Modals */
.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    color: var(--text-primary);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-bottom: none;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: var(--spacing-lg);
}

.modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-footer {
    background: transparent;
    border-top: 1px solid var(--border);
    padding: var(--spacing-lg);
}

.btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.btn-close:hover {
    opacity: 1;
}

/* Selection Cards */
.selection-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing);
    margin-top: var(--spacing-sm);
}

.selection-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: var(--spacing);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing);
    position: relative;
    overflow: hidden;
}

.selection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.selection-card:hover::before {
    left: 100%;
}

.selection-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--bg-card), rgba(59, 130, 246, 0.05));
}

.selection-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.selection-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    animation: checkmark 0.3s ease;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

.selection-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.selection-card:hover .selection-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.selection-card.selected .selection-icon {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: scale(1.05);
}

.selection-text {
    flex: 1;
}

.selection-text h6 {
    margin: 0 0 4px 0;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.selection-text p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.selection-card:hover .selection-text h6 {
    color: var(--primary);
}

.selection-card.selected .selection-text h6 {
    color: var(--primary);
    font-weight: 700;
}

/* Wallet Modal */
.wallet-info {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(245, 158, 11, 0.02));
    border: 1px solid rgba(245, 158, 11, 0.1);
    border-radius: var(--radius);
    padding: var(--spacing);
}

.wallet-info h6 {
    color: var(--warning);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.wallet-features {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--spacing);
    margin-top: var(--spacing);
}

.wallet-features h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.btn-warning {
    background: var(--warning);
    border-color: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: #d97706;
    border-color: #d97706;
    color: white;
}

/* Payments History Modal */
.payments-info {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--spacing);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.03));
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius);
    padding: var(--spacing);
    height: 100%;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.info-card h6 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
}

.wallet-address {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
    word-break: break-all;
}

.total-payments {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.125rem;
    font-weight: 700;
    color: #2775ca;
    margin: 0;
}

.payments-table-container {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--spacing);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.payments-table-container h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--spacing);
}

.payments-table {
    margin-bottom: 0;
    color: var(--text-primary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.payments-table thead th {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    border-bottom: 2px solid var(--border);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.75rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.payments-table tbody td {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    vertical-align: middle;
    text-align: center;
}

.payments-table tbody tr {
    transition: all 0.3s ease;
}

.payments-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.03));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.payment-method {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.875rem;
}

.payment-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

.payment-amount {
    font-family: 'Space Grotesk', monospace;
    text-align: center;
}

.payment-amount strong {
    color: #2775ca;
    font-size: 0.9375rem;
}

.status-completado {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-pendiente {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-fallido {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.payment-notes {
    font-size: 0.8125rem;
    max-width: 200px;
    text-align: center;
    margin: 0 auto;
}

.empty-payments {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing);
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.empty-payments i {
    font-size: 3rem;
    margin-bottom: var(--spacing);
    opacity: 0.3;
    color: var(--primary);
}

.empty-payments h5 {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.modal-lg .modal-content {
    min-height: 500px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

#historialModal .modal-header {
    background: linear-gradient(135deg, var(--primary), #1e40af);
    border-bottom: 1px solid var(--border);
}

#historialModal .modal-body {
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
}

#historialModal .modal-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

/* Alerts */
.alert {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    padding: 1rem;
    font-size: 0.875rem;
    margin-bottom: var(--spacing);
    animation: slideDown 0.3s ease-out;
}

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

.alert-success {
    border-left: 3px solid var(--secondary);
    background: rgba(16, 185, 129, 0.05);
}

.alert-danger {
    border-left: 3px solid var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing);
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: var(--spacing);
    opacity: 0.3;
    color: var(--text-muted);
}

.empty-state h4 {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    top: var(--spacing);
    right: var(--spacing);
    background: var(--secondary);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    z-index: 9999;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing);
    }
    
    /* Header responsive mejorado */
    .dashboard-header {
        padding: var(--spacing-sm) 0;
    }
    
    /* Logo más compacto en móvil */
    .dashboard-header .d-flex.align-items-center:first-child img {
        width: 120px !important;
        margin-right: var(--spacing-sm) !important;
    }
    
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    /* Estadísticas más compactas */
    .stat-card {
        margin-bottom: var(--spacing-sm);
        padding: var(--spacing);
    }
    
    .stat-card .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .stat-card .stat-info h3 {
        font-size: 1.5rem;
    }
    
    .stat-card .stat-info p {
        font-size: 0.75rem;
    }
    
    /* Grid de estadísticas responsive mejorado */
    .row.mb-4 {
        margin-bottom: var(--spacing) !important;
    }
    
    .row.mb-4 > div {
        margin-bottom: var(--spacing-sm) !important;
    }
    
    /* Hacer más compacto el panel forex */
    .forex-header {
        flex-direction: column !important;
        gap: var(--spacing-sm);
        padding: var(--spacing);
    }
    
    .forex-header .header-left h3 {
        font-size: 1.25rem;
    }
    
    .forex-header .header-left p {
        font-size: 0.75rem;
        display: none; /* Ocultar descripción en móvil */
    }
    
    .forex-header .d-flex.align-items-center.gap-3 {
        flex-wrap: wrap;
        gap: var(--spacing-xs) !important;
        justify-content: center;
    }
    
    .forex-header .d-flex.align-items-center.gap-3 > div {
        font-size: 0.75rem;
    }
    
    .forex-header .btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
    
    .dashboard-content {
        padding: var(--spacing);
        margin: var(--spacing) 0;
    }
    
    .accounts-header {
        flex-direction: column;
        gap: var(--spacing);
        text-align: center;
    }
    
    .account-info {
        flex-direction: column;
        gap: var(--spacing);
        text-align: center;
    }
    
    .password-actions {
        justify-content: center;
        margin-left: 0;
    }
    
    .selection-cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .selection-card {
        padding: var(--spacing-sm);
    }
    
    .selection-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .login-card {
        margin: var(--spacing);
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    /* Header ultra compacto */
    .dashboard-header .d-flex.align-items-center:first-child img {
        width: 100px !important;
    }
    
    .navbar-brand {
        font-size: 0.9rem !important;
    }
    
    /* Grid de estadísticas a 2 columnas en móviles muy pequeños */
    .row.mb-4 > div {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
    
    .stat-card {
        padding: var(--spacing-sm);
        text-align: center;
    }
    
    .stat-card .stat-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        margin: 0 auto var(--spacing-xs) auto;
    }
    
    .stat-card .stat-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }
    
    .stat-card .stat-info p {
        font-size: 0.65rem;
        margin: 0;
        line-height: 1.2;
    }
    
    /* Ocultar elementos no esenciales en móvil muy pequeño */
    .forex-header .d-flex.align-items-center.gap-3 > div:not(:first-child) {
        display: none;
    }
    
    .login-header h2 {
        font-size: 1.25rem;
    }
    
    .accounts-header h2 {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }
    
    .form-control, .form-select {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

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

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

/* Navigation Tabs */
.nav-tabs {
    border-bottom: 1px solid var(--border);
}

.nav-tabs .nav-link {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    border-radius: var(--radius) var(--radius) 0 0;
    margin-bottom: -1px;
}

.nav-tabs .nav-link:hover {
    color: var(--text-primary);
    border-color: var(--border);
    background: var(--bg-card);
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    background: var(--bg-card);
    border-color: var(--border) var(--border) transparent;
}

.tab-content {
    padding-top: var(--spacing-lg);
}

/* Dropdown Menus */
.dropdown-menu {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    margin-top: 0.25rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--bg-card);
    color: var(--text-primary);
}

.dropdown-item.text-danger {
    color: var(--danger);
}

.dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.dropdown-divider {
    border-top: 1px solid var(--border);
    margin: 0.5rem 0;
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
}

/* Account Actions */
.account-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing);
}

/* Settings Section */
.form-text {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-top: var(--spacing-xs);
}

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

/* USDC Icon */
.fas.fa-coins {
    color: #2775ca;
}

/* Enhanced Status Badge */
.status-badge i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Account Card Enhancements */
.account-details h5 {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.account-meta {
    margin-top: var(--spacing-sm);
}

/* Server Status Panel */
.server-status-panel {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.05) 0%, 
        rgba(16, 185, 129, 0.03) 50%, 
        rgba(245, 158, 11, 0.05) 100%);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
    overflow: hidden;
}

.server-status-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.server-status-panel > * {
    position: relative;
    z-index: 1;
}

.server-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.server-status-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.server-status-header .header-left h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.03em;
}

.server-status-header .header-left p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    font-weight: 400;
}

.server-status-header .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Forex Panel */
.forex-panel {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.06) 0%, 
        rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 0;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
}

.forex-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.forex-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    position: relative;
}

.forex-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 2px;
}

.forex-header .header-left h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.03em;
}

.forex-header .header-left p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    font-weight: 400;
}

.forex-header .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.forex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    padding: var(--spacing-lg);
}

.forex-card {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.forex-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    opacity: 0;
    transition: all 0.3s ease;
}

.forex-card:hover::before {
    opacity: 1;
}

.forex-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.forex-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.pair-details h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.02em;
}

.pair-details p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

.forex-flags {
    display: flex;
    gap: 0.25rem;
}

.forex-flags .flag {
    width: 24px;
    height: 18px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.forex-price {
    text-align: left;
}

.price-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.price-change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.price-change.positive {
    color: var(--secondary);
}

.price-change.negative {
    color: var(--danger);
}

.price-change i {
    font-size: 0.75rem;
    padding: 0.25rem;
    border-radius: 50%;
    background: currentColor;
    color: white;
}

.server-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.server-card {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 1.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: all 0.4s ease;
}

.server-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
    transform: scale(0);
    pointer-events: none;
}

.server-card.online::before {
    opacity: 1;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #10b981 20%, 
        #22c55e 50%, 
        #10b981 80%, 
        transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

.server-card.offline::before {
    opacity: 1;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #ef4444 20%, 
        #dc2626 50%, 
        #ef4444 80%, 
        transparent 100%);
}

.server-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.server-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.server-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.server-flag {
    width: 48px;
    height: 36px;
    border-radius: 8px;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.server-flag:hover {
    transform: scale(1.15);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.2) inset;
}

.server-details {
    flex: 1;
    min-width: 0;
}

.server-details h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

.server-details h4 i {
    font-size: 1rem;
    opacity: 0.8;
}

.server-location {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    opacity: 0.9;
}

.server-timezone {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.server-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    backdrop-filter: blur(10px);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.status-dot.online {
    background: #22c55e;
    box-shadow: 
        0 0 0 3px rgba(34, 197, 94, 0.2),
        0 0 12px rgba(34, 197, 94, 0.4);
}

.status-dot.online::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-online 2s ease-in-out infinite;
    z-index: -1;
}

.status-dot.offline {
    background: #ef4444;
    box-shadow: 
        0 0 0 3px rgba(239, 68, 68, 0.2),
        0 0 12px rgba(239, 68, 68, 0.4);
}

.status-dot.offline::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse-offline 2s ease-in-out infinite;
    z-index: -1;
}

.status-text {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.status-latency {
    font-size: 0.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: var(--text-primary);
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    backdrop-filter: blur(10px);
    min-width: 65px;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-latency.good {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    color: #22c55e;
}

.status-latency.medium {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    color: #f59e0b;
}

.status-latency.poor {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    color: #ef4444;
}

.server-metrics {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-item {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.metric-value.allowed {
    color: var(--secondary);
}

.metric-value.unavailable {
    color: var(--text-muted);
}

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

@keyframes pulse-online {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.4);
    }
}

@keyframes pulse-offline {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.3);
    }
}

@media (max-width: 768px) {
    .server-status-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing);
    }
    
    .server-card {
        padding: var(--spacing);
    }
    
    .server-status-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
}

/* ========================================
   MODERN ACCOUNTS DESIGN - CREATIVE & MODERN
   ======================================== */

/* Accounts Grid Layout */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

/* Modern Account Card */
.modern-account-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    min-height: 350px;
    animation: fadeInCard 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

.modern-account-card:nth-child(2) { animation-delay: 0.1s; }
.modern-account-card:nth-child(3) { animation-delay: 0.2s; }
.modern-account-card:nth-child(4) { animation-delay: 0.3s; }

.modern-account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.modern-account-card:hover::before {
    opacity: 1;
}

.modern-account-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

/* Card Header */
.card-header-modern {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.account-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.account-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.account-title h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
}

.account-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    opacity: 0.8;
}

/* Status Indicator */
.status-indicator-modern {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.status-icon.warning {
    background: linear-gradient(135deg, var(--warning), #e97e0f);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.status-icon.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.status-icon.success {
    background: linear-gradient(135deg, var(--secondary), #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.status-icon.danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.status-icon.live {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.status-icon.muted {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.status-text {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-text.warning { color: var(--warning); }
.status-text.primary { color: var(--primary); }
.status-text.success { color: var(--secondary); }
.status-text.danger { color: var(--danger); }
.status-text.live { color: #ff6b35; }
.status-text.muted { color: var(--text-muted); }

/* Animations */
.rotating {
    animation: rotate 2s linear infinite;
}

.spinning {
    animation: spin 1s linear infinite;
}

.pulse {
    animation: statusPulse 2s ease-in-out infinite;
}

.rocket {
    animation: rocket 3s ease-in-out infinite;
}

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

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

@keyframes statusPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes rocket {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(2deg); }
    75% { transform: translateY(3px) rotate(-2deg); }
}

/* Card Body */
.card-body-modern {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.platform-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.platform-badges {
    display: flex;
    gap: 0.5rem;
}

.modern-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-badge.server-ftmo {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.modern-badge.server-pepperstone {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.modern-badge.platform-mt4 {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.modern-badge.platform-mt5 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.phase-badge-modern {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phase-badge-modern.fase-1 {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

.phase-badge-modern.fase-2 {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.phase-badge-modern.live {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
}

/* Credentials Section */
.credentials-section {
    margin-bottom: 1.5rem;
}

.credential-item {
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.credential-item label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credential-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.user-display, .password-display {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.password-controls {
    display: flex;
    gap: 0.3rem;
}

.copy-btn, .toggle-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.copy-btn:hover, .toggle-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Timeline */
.account-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.timeline-item i {
    color: var(--primary);
    width: 16px;
}

/* Card Footer */
.card-footer-modern {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.progress-indicator {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-right: 1rem;
}

.progress-bar {
    height: 100%;
    width: 100%;
    border-radius: 2px;
    animation: progressFlow 2s ease-in-out infinite;
}

.progress-bar.warning {
    background: linear-gradient(90deg, transparent, var(--warning), transparent);
}

.progress-bar.primary {
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.progress-bar.success {
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.progress-bar.danger {
    background: linear-gradient(90deg, transparent, var(--danger), transparent);
}

.progress-bar.live {
    background: linear-gradient(90deg, transparent, #ff6b35, transparent);
}

@keyframes progressFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.card-actions {
    display: flex;
    gap: 0.3rem;
}

.action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

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

.edit-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.settings-btn:hover {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.delete-btn:hover {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Empty State Modern */
.empty-state-modern {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.empty-illustration {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.empty-illustration i {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

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

.empty-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation: particleFloat 4s ease-in-out infinite;
}

.particle:nth-child(2) {
    top: 60%;
    right: 20%;
    animation: particleFloat 4s ease-in-out infinite 1s;
}

.particle:nth-child(3) {
    bottom: 20%;
    left: 50%;
    animation: particleFloat 4s ease-in-out infinite 2s;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0px) scale(0.8); opacity: 0.3; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 0.8; }
}

.empty-state-modern h4 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.empty-state-modern p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.empty-action {
    margin-top: 1.5rem;
}

.btn-glow {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-glow:hover::before {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .accounts-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .accounts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modern-account-card {
        margin: 0 1rem;
    }
    
    .card-header-modern {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .status-indicator-modern {
        align-items: center;
    }
    
    .platform-info {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .credential-value {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .password-controls {
        justify-content: center;
    }
}

/* Beta Badge - Modern & Creative */
.logo-container {
    position: relative;
    display: inline-block;
    margin-right: 1rem; /* Añadir espacio después del logo */
}

.beta-badge {
    position: absolute;
    top: -6px;
    right: -12px;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #ffab00);
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 
        0 3px 12px rgba(255, 107, 53, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: betaPulse 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    font-family: 'Space Grotesk', sans-serif;
}

.beta-badge::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #ffab00, #ff6b35);
    border-radius: 11px;
    z-index: -1;
    animation: betaGlow 2s linear infinite;
    opacity: 0.6;
}

.beta-badge::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -6px;
    font-size: 0.7rem;
    animation: sparkle 4s ease-in-out infinite;
}

@keyframes betaPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 3px 12px rgba(255, 107, 53, 0.25),
            0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 
            0 4px 16px rgba(255, 107, 53, 0.35),
            0 0 0 2px rgba(255, 255, 255, 0.15);
    }
}

@keyframes betaGlow {
    0%, 100% {
        filter: blur(0.5px);
        opacity: 0.6;
    }
    50% {
        filter: blur(1px);
        opacity: 0.8;
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: rotate(0deg) scale(0.7);
    }
    25%, 75% {
        opacity: 1;
        transform: rotate(45deg) scale(0.9);
    }
    50% {
        opacity: 0.7;
        transform: rotate(90deg) scale(1);
    }
}

/* Support Link Styles */
.support-link {
    margin-left: 1.5rem !important; /* Más espacio entre Mis cuentas y Soporte */
}

/* Asegurar que ambos navbar-brand (Mis cuentas y Soporte) tengan el mismo hover */
.navbar-brand:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .logo-container {
        margin-right: 0.75rem;
    }
    
    .beta-badge {
        font-size: 0.5rem;
        padding: 0.2rem 0.4rem;
        top: -5px;
        right: -8px;
        border-radius: 8px;
    }
    
    .beta-badge::after {
        top: -8px;
        right: -5px;
        font-size: 0.6rem;
    }
    
    .logo-container img {
        width: 120px !important;
    }
    
    .support-link {
        font-size: 0.9rem !important;
        margin-left: 1rem !important;
    }
}

@media (max-width: 480px) {
    .logo-container {
        margin-right: 0.5rem;
    }
    
    .beta-badge {
        font-size: 0.45rem;
        padding: 0.15rem 0.35rem;
        top: -4px;
        right: -6px;
        border-radius: 6px;
    }
    
    .beta-badge::after {
        top: -7px;
        right: -4px;
        font-size: 0.55rem;
    }
    
    .logo-container img {
        width: 100px !important;
    }
    
    .support-link {
        font-size: 0.8rem !important;
        margin-left: 0.75rem !important;
    }
}

/* Dashboard Footer */
.dashboard-footer {
    background: linear-gradient(135deg, 
        rgba(15, 15, 35, 0.95) 0%, 
        rgba(26, 26, 46, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.dashboard-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.dashboard-footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    position: relative;
    display: inline-block;
    width: fit-content;
}

.beta-badge-footer {
    position: absolute;
    top: -6px;
    right: -10px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    font-family: 'Space Grotesk', sans-serif;
    z-index: 10;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    max-width: 280px;
    line-height: 1.5;
}

.footer-center {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    width: 100%;
}

.footer-right {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.footer-copyright {
    text-align: right;
}

.footer-copyright p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.footer-copyright strong {
    color: var(--text-primary);
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-version {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    font-style: italic;
    margin-top: 0.25rem !important;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.footer-bottom-content .fas.fa-heart {
    color: #ef4444 !important;
    animation: heartbeat 2s ease-in-out infinite;
    margin: 0 0.25rem;
}

.footer-year {
    font-weight: 600;
    color: var(--text-secondary);
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Footer Responsive */
@media (max-width: 768px) {
    .dashboard-footer {
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-left,
    .footer-center,
    .footer-right {
        justify-content: center;
        align-items: center;
    }
    
    .footer-copyright {
        text-align: center;
    }
    
    .footer-description {
        max-width: none;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .footer-logo img {
        width: 100px !important;
    }
    
    .beta-badge-footer {
        font-size: 0.45rem;
        padding: 0.15rem 0.35rem;
        top: -5px;
        right: -8px;
    }
}

@media (max-width: 480px) {
    .footer-links {
        align-items: center;
    }
    
    .footer-links a {
        font-size: 0.8125rem;
    }
    
    .footer-copyright p {
        font-size: 0.8125rem;
    }
    
    .footer-bottom-content {
        font-size: 0.75rem;
    }
} 