/* Estilos Generales y Reset */
:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --panel-bg: rgba(17, 24, 39, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Colores Temáticos */
    --color-green: #10b981;
    --color-green-glow: rgba(16, 185, 129, 0.35);
    --color-red: #ef4444;
    --color-red-glow: rgba(239, 68, 68, 0.35);
    --color-purple: #6366f1;
    --color-purple-glow: rgba(99, 102, 241, 0.35);
    --color-yellow: #f59e0b;
    --color-dark-panel: #070a13;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #1f2937;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #374151;
}

/* Utilidades */
.text-green { color: var(--color-green); }
.text-red { color: var(--color-red); }
.text-yellow { color: var(--color-yellow); }
.text-glow-green {
    color: var(--color-green);
    text-shadow: 0 0 15px var(--color-green-glow);
}
.hidden { display: none !important; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-15 { margin-bottom: 15px; }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* Glassmorphism Panel */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}
.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Botones */
.btn-primary-glow {
    background: linear-gradient(135deg, var(--color-purple), #4f46e5);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--color-purple-glow);
}
.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    filter: brightness(1.1);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}
.btn-full {
    width: 100%;
    text-align: center;
    display: block;
    padding: 12px;
}
.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* Barra de Navegación */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}
.logo-icon {
    color: var(--color-green);
    margin-right: 8px;
    text-shadow: 0 0 10px var(--color-green-glow);
}
.logo span {
    color: var(--color-green);
}
.nav-menu {
    display: flex;
    gap: 30px;
}
.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
    padding: 8px 0;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-green);
    box-shadow: 0 0 8px var(--color-green-glow);
    border-radius: 2px;
}
.nav-toggle {
    display: none;
    color: var(--text-primary);
    font-size: 1.3rem;
}

/* Sección Hero */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.15), transparent 45%);
}
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.hero-badge {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}
.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    max-width: 600px;
}
.hero-buttons {
    display: flex;
    gap: 20px;
}
.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}
.stat-card:hover {
    transform: translateX(-5px);
    border-color: rgba(255, 255, 255, 0.12);
}
.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.icon-win {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.icon-signals {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-yellow);
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.icon-users {
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-purple);
    border: 1px solid rgba(99, 102, 241, 0.2);
}
.stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Cabeceras de Sección */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}
.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Perfil de Usuario */
.profile-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    margin-bottom: 30px;
}
.profile-info {
    display: flex;
    align-items: center;
    gap: 16px;
}
.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-purple);
}
.profile-email {
    font-weight: 600;
    font-size: 0.95rem;
}
.profile-wallet {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.profile-status {
    display: flex;
    align-items: center;
    gap: 16px;
}
.badge-free {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.badge-premium {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-green);
    text-shadow: 0 0 10px var(--color-green-glow);
}
.btn-logout {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.3s;
}
.btn-logout:hover {
    color: var(--color-red);
}

/* Dashboard Grid */
.dashboard-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
}
.dashboard-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.card-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Temporizador Circular */
.timer-box {
    display: flex;
    align-items: center;
    gap: 10px;
}
#candle-timer-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.timer-circle {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#candle-timer-sec {
    font-size: 0.85rem;
    font-weight: 700;
    position: absolute;
    font-family: 'Outfit', sans-serif;
}
.svg-timer {
    width: 40px;
    height: 40px;
    transform: rotate(-90deg);
}
.svg-timer circle {
    fill: transparent;
    stroke-width: 3;
}
.svg-timer circle.bg {
    stroke: rgba(255, 255, 255, 0.05);
}
.svg-timer circle.progress {
    stroke: var(--color-purple);
    stroke-dasharray: 113; /* 2 * PI * R (18) */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.1s linear;
}

/* Placeholder de Sin Señal */
.no-signal-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    flex-grow: 1;
}
.placeholder-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    animation: rotateSlow 8s linear infinite;
}
@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.no-signal-placeholder p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    max-width: 350px;
}
.btn-scan-manual {
    font-size: 1rem;
    padding: 12px 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Contenido de Señal Activa */
.active-signal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.signal-asset-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 6px 20px;
    border-radius: 6px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}
.signal-direction-card {
    width: 100%;
    padding: 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-weight: 800;
    font-size: 1.6rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
}
.signal-direction-card.call {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--color-green);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.1);
}
.signal-direction-card.put {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--color-red);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.1);
}
.signal-meta-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.meta-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
}
.meta-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.meta-val {
    font-size: 1.1rem;
    font-weight: 700;
}
.audio-alert-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Switch (Checkbox Slider) */
.switch-label {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}
.switch-label input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    transition: .3s;
    border-radius: 34px;
}
.slider-round:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
input:checked + .slider-round {
    background-color: var(--color-purple);
}
input:checked + .slider-round:before {
    transform: translateX(22px);
}

/* Columna Derecha: Lista de Activos */
.assets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 16px;
}
.assets-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3px;
}
.tab-btn {
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    color: var(--text-secondary);
    transition: all 0.3s;
}
.tab-btn.active {
    background: var(--color-purple);
    color: #fff;
    box-shadow: 0 2px 8px var(--color-purple-glow);
}

.assets-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.assets-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 5px;
}
.asset-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s;
}
.asset-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}
.asset-name-col {
    display: flex;
    flex-direction: column;
}
.asset-symbol {
    font-weight: 700;
    font-size: 0.95rem;
}
.asset-type-badge {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}
.asset-price-col {
    text-align: right;
    font-family: monospace;
    font-weight: 600;
    font-size: 0.95rem;
}
.asset-status-col {
    display: flex;
    align-items: center;
    gap: 8px;
}
.badge-signal-call {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--color-green);
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
}
.badge-signal-put {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--color-red);
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
}
.badge-neutral {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

/* Paywall Premium */
.premium-paywall-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    z-index: 10;
}
.paywall-content {
    text-align: center;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lock-icon-glow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--color-purple);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 20px var(--color-purple-glow);
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 0 15px rgba(99, 102, 241, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 25px rgba(99, 102, 241, 0.6); }
    100% { transform: scale(1); box-shadow: 0 0 15px rgba(99, 102, 241, 0.3); }
}
.paywall-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.paywall-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.btn-unlock-now {
    font-size: 0.85rem;
    padding: 10px 20px;
    width: 100%;
}

/* Tabla Historial de Señales */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}
.history-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.history-table th, .history-table td {
    padding: 16px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}
.history-table th {
    background: rgba(255, 255, 255, 0.01);
    font-weight: 600;
    color: var(--text-secondary);
}
.history-table tbody tr {
    transition: background 0.3s;
}
.history-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.badge-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--color-green);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
}

/* Sección Precios */
.pricing-section {
    padding: 100px 0;
    position: relative;
    background: radial-gradient(circle at 10% 80%, rgba(99, 102, 241, 0.1), transparent 45%);
}
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}
.pricing-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}
.pricing-card.active {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}
.card-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}
.card-badge-premium {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    color: var(--color-yellow);
    display: flex;
    align-items: center;
    gap: 6px;
}
.plan-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.plan-price {
    font-size: 3.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    font-family: 'Outfit', sans-serif;
}
.price-period {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.plan-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}
.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    margin-bottom: 40px;
    flex-grow: 1;
}
.plan-features li {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Sección Características */
.features-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.feature-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    font-size: 1.4rem;
    color: var(--color-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* MODALES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 10, 19, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    animation: modalBG 0.3s ease;
}
@keyframes modalBG {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-content {
    position: relative;
    max-width: 460px;
    width: 100%;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    animation: modalShow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalShow {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: color 0.3s;
}
.modal-close:hover {
    color: var(--text-primary);
}
.modal-header {
    text-align: center;
    margin-bottom: 30px;
}
.modal-logo-icon {
    font-size: 2.2rem;
    color: var(--color-purple);
    margin-bottom: 15px;
}
.modal-header h2 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}
.modal-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.form-group input {
    background: var(--color-dark-panel);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}
.form-group input:focus {
    border-color: var(--color-purple);
}
.input-tip {
    font-size: 0.75rem;
    color: var(--color-yellow);
}

/* Modal de Pago */
.modal-payment-size {
    max-width: 580px;
}
.payment-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.payment-instructions {
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 24px;
}
.wallet-address-box {
    background: var(--color-dark-panel);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 12px;
}
#target-wallet-address {
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
    user-select: all;
    color: var(--text-primary);
}
#btn-copy-wallet {
    color: var(--color-purple);
    font-size: 1.1rem;
    padding-left: 10px;
    transition: color 0.3s;
}
#btn-copy-wallet:hover {
    color: #818cf8;
}
.payment-qr-container {
    width: 160px;
    height: 160px;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.qr-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
}
.qr-icon {
    font-size: 6rem;
}
.payment-polling-status {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 20px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.loader-ring {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border-top-color: var(--color-green);
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.status-text {
    display: flex;
    flex-direction: column;
}
.status-text span {
    font-size: 0.85rem;
    font-weight: 600;
}
.status-text .sub-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}
.payment-notice-card {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.warning-icon {
    color: var(--color-yellow);
    font-size: 1.1rem;
    margin-top: 2px;
}
.payment-notice-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* WIDGET DE CHATBOT */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-purple), #4f46e5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    cursor: pointer;
}
.chatbot-widget:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}
.chatbot-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: var(--color-green);
    border: 2px solid var(--bg-primary);
    border-radius: 50%;
}

.chatbot-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 420px;
    height: 620px;
    max-height: calc(100vh - 120px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: chatbotShow 0.3s ease;
}
@keyframes chatbotShow {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.chatbot-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chatbot-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chatbot-title i {
    font-size: 1.5rem;
    color: var(--color-purple);
}
.chatbot-title h4 {
    font-size: 0.95rem;
    font-weight: 600;
}
.chatbot-title span {
    font-size: 0.7rem;
    color: var(--color-green);
    display: flex;
    align-items: center;
    gap: 4px;
}
.chatbot-title span::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-green);
}
.chatbot-close {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.3s;
}
.chatbot-close:hover {
    color: var(--text-primary);
}

.chatbot-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--color-dark-panel);
}
.chat-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
}
.chat-message.bot {
    background: rgba(255, 255, 255, 0.04);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid var(--border-color);
}
.chat-message.user {
    background: var(--color-purple);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chatbot-options {
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--border-color);
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chat-opt-btn {
    width: 100%;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    transition: all 0.25s ease;
}
.chat-opt-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.5);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
    transform: translateX(4px);
}

.chatbot-input-container {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
    padding: 12px 20px;
    gap: 10px;
    align-items: center;
}
.chatbot-input-container input {
    flex-grow: 1;
    background: var(--color-dark-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s;
}
.chatbot-input-container input:focus {
    border-color: var(--color-purple);
}
#btn-send-chat {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--color-purple);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px var(--color-purple-glow);
    flex-shrink: 0;
}
#btn-send-chat:hover {
    background: #4f46e5;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.signal-warning-text {
    font-size: 0.8rem;
    color: var(--color-orange);
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    animation: pulseWarning 2s infinite;
}
@keyframes pulseWarning {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Paginación de Tabla de Historial */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}
.pagination-info {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.pagination-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}
.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.page-btn:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--color-purple);
    color: #fff;
}
.page-btn.active {
    background: var(--color-purple);
    border-color: var(--color-purple);
    color: #fff;
    box-shadow: 0 0 10px var(--color-purple-glow);
}
.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Sección de Vista Previa de Activos para el Trader */
.trader-assets-preview {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}
.assets-display-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.asset-group-card {
    padding: 24px;
}
.asset-group-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.asset-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.asset-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.asset-chip:hover {
    border-color: var(--color-purple);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}
.asset-chip span.source-tag {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* SECCIÓN TESTIMONIOS Y PRUEBA SOCIAL */
.testimonials-section {
    padding: 80px 0;
    position: relative;
    border-top: 1px solid var(--border-color);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.testimonial-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-purple);
}
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.trader-avatar-initials {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.trader-avatar-initials.bg-purple { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.trader-avatar-initials.bg-green { background: linear-gradient(135deg, #10b981, #059669); }
.trader-avatar-initials.bg-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }

.trader-info {
    flex-grow: 1;
}
.trader-info h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.trader-location {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.verified-badge {
    font-size: 0.72rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
.rating-stars {
    color: #fbbf24;
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: flex;
    gap: 3px;
}
.testimonial-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #cbd5e1;
    font-style: normal;
    flex-grow: 1;
    margin-bottom: 18px;
}
.testimonial-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}
.plan-tag {
    font-size: 0.75rem;
    color: #a5b4fc;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* FLOATING TOAST NOTIFICATION DE ACTIVACIÓN EN VIVO */
.toast-activation {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    max-width: 340px;
    animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 0.3s ease;
}
@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(251, 191, 36, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.toast-content {
    display: flex;
    flex-direction: column;
}
.toast-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}
.toast-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* SITE FOOTER Y SECCIÓN LEGAL */
.site-footer {
    background: rgba(10, 15, 30, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
    margin-top: 60px;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}
.footer-brand .footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
    max-width: 500px;
    line-height: 1.5;
}
.footer-links-group h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links .link-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    transition: color 0.2s ease;
}
.footer-links .link-btn:hover {
    color: var(--color-purple);
}

.footer-risk-warning {
    padding: 20px 24px;
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.03);
    border: 1px solid rgba(251, 191, 36, 0.2);
    margin-bottom: 30px;
}
.footer-risk-warning p {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* LEGAL MODALS STYLING */
.legal-modal-size {
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}
.legal-text-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 0.88rem;
    line-height: 1.65;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.legal-text-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 6px;
}
.legal-text-body p {
    margin: 0;
}

/* SECCIÓN ARQUITECTURA Y TECNOLOGÍA ALGORÍTMICA */
.technology-section {
    padding: 80px 0;
    position: relative;
    border-top: 1px solid var(--border-color);
}
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.tech-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-purple);
}
.tech-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 20px;
}
.tech-icon-box.bg-purple { background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4); }
.tech-icon-box.bg-green { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4); }
.tech-icon-box.bg-yellow { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4); }
.tech-icon-box.bg-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); }

.tech-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.tech-card p {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}
.tech-tag {
    font-size: 0.75rem;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    align-self: flex-start;
}

/* BANNER ESCUDO ANTI-NOTICIAS */
.news-shield-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 30px;
    border-radius: 14px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05), rgba(15, 23, 42, 0.8));
}
.news-shield-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(251, 191, 36, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}
.news-shield-text h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
}
.news-shield-text p {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
}

/* BANNER DE COMPATIBILIDAD Y AUDITORÍA DE PRECIOS REALES */
.broker-audit-card {
    width: 100%;
    padding: 38px;
    border-radius: 18px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(15, 23, 42, 0.95));
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    margin-top: 40px;
}
.audit-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 5px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}
.audit-card-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}
.audit-intro {
    font-size: 0.96rem;
    color: #e2e8f0;
    line-height: 1.65;
    margin-bottom: 26px;
}
.audit-intro strong {
    color: #ffffff;
}
.audit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 26px;
}
.audit-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.audit-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.audit-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}
.audit-item p {
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .tech-grid {
        grid-template-columns: 1fr;
    }
    .news-shield-banner {
        flex-direction: column;
        text-align: center;
    }
    .audit-grid {
        grid-template-columns: 1fr;
    }
    .audit-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    .stat-card {
        flex: 1 1 200px;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .nav-menu {
        display: none; /* Se implementaría toggle en JS para desplegar */
    }
    .nav-toggle {
        display: block;
    }
}
