* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #060504;
    font-family: 'Inter', sans-serif;
    color: #eef5ff;
    overflow-x: hidden;
    padding-bottom: 80px;
}

.trading-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 25% 40%, rgba(212, 175, 55, 0.02) 1px, transparent 1px);
    background-size: 35px 35px;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 28px;
    position: relative;
    z-index: 2;
}

/* Header */
.header-premium {
    background: #060504;
    border-radius: 24px;
    padding: 24px 32px;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.logo-img {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.3));
    background: transparent;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #F5E7B2, #D4AF37, #C0C0C0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.badge-accuracy {
    background: rgba(212, 175, 55, 0.18);
    padding: 8px 20px;
    border-radius: 60px;
    border: 1px solid #D4AF37;
    font-weight: 600;
    font-size: 0.85rem;
    color: #F5E7B2;
}

/* BotÃ³n de menÃº lateral */
.menu-toggle-btn {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid #D4AF37;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #D4AF37;
    font-size: 1.4rem;
}

.menu-toggle-btn:hover {
    background: #D4AF37;
    color: #060504;
    transform: scale(1.05);
}

/* MenÃº lateral */
.side-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, #0a0a0a 0%, #060504 100%);
    border-right: 1px solid #D4AF37;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.side-menu.open {
    left: 0;
}

.side-menu-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-menu-header h3 {
    color: #D4AF37;
    font-size: 1.3rem;
}

.side-menu-close {
    background: rgba(212, 175, 55, 0.2);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #D4AF37;
    font-size: 1.2rem;
}

.side-menu-close:hover {
    background: #D4AF37;
    color: #060504;
}

.side-menu-items {
    padding: 20px 0;
}

.side-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.side-menu-item:hover, .side-menu-item.active {
    background: rgba(212, 175, 55, 0.1);
    border-left-color: #D4AF37;
}

.side-menu-item i {
    width: 25px;
    font-size: 1.2rem;
    color: #D4AF37;
}

.side-menu-item span {
    font-size: 1rem;
    font-weight: 500;
}

.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
}

.side-menu-overlay.active {
    display: block;
}

/* Botones flotantes */
.floating-buttons {
    position: fixed;
    bottom: 90px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 150;
}

.support-btn,
.android-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.support-btn {
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    color: #060504;
}

.android-btn {
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    color: #060504;
}

.support-btn i,
.android-btn i {
    font-size: 1.6rem;
}

.support-btn:hover,
.android-btn:hover {
    transform: scale(1.05);
}

/* PÃ¡ginas independientes para secciones del menÃº */
.menu-page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.menu-page.active-page {
    display: block;
}

/* Testimonios - videos */
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.testimonio-card {
    background: #0a0a0a;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.testimonio-video {
    width: 100%;
    height: 200px;
    background: #1a1a1a;
}

.testimonio-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.testimonio-info {
    padding: 15px;
    text-align: center;
}

.testimonio-info h4 {
    color: #D4AF37;
    font-size: 1rem;
}

.testimonio-info p {
    font-size: 0.8rem;
    color: #ccc;
    margin-top: 5px;
}

/* Transacciones */
.transaccion-item {
    background: #0a0a0a;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 3px solid #D4AF37;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.transaccion-tipo {
    font-weight: 600;
    color: #D4AF37;
}

.transaccion-monto {
    font-weight: 700;
}

.transaccion-fecha {
    font-size: 0.7rem;
    color: #8a8a7a;
}

/* Contactos */
.contactos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    text-align: center;
    margin-top: 20px;
}

.contacto-card {
    background: #0a0a0a;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #eef5ff;
    display: block;
}

.contacto-card:hover {
    border-color: #D4AF37;
    transform: translateY(-3px);
}

.contacto-card i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.contacto-card span {
    font-size: 0.8rem;
}

.contacto-card.whatsapp i {
    color: #25D366;
}

.contacto-card.telegram i {
    color: #26A5E4;
}

.contacto-card.email i {
    color: #D44638;
}

.contacto-card.facebook i {
    color: #1877F2;
}

.contacto-card.tiktok i {
    color: #010101;
    text-shadow: 0 0 3px #00f2ea;
}

.contacto-card.youtube i {
    color: #FF0000;
}

.contacto-card.instagram i {
    color: #E4405F;
}

/* Promociones */
.promociones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.promocion-card {
    background: #0a0a0a;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.promocion-img {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
}

.promocion-info {
    padding: 15px;
}

.promocion-info h4 {
    color: #D4AF37;
    margin-bottom: 8px;
}

.promocion-info p {
    font-size: 0.8rem;
    color: #ccc;
}

/* Resto de estilos existentes */
.stats-row {
    display: flex;
    gap: 28px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    background: rgba(212, 175, 55, 0.1);
    padding: 6px 16px;
    border-radius: 40px;
    border: 0.5px solid rgba(192, 192, 192, 0.3);
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.stat:hover,
a.stat:hover {
    background: rgba(212, 175, 55, 0.3);
    border-color: #D4AF37;
    transform: translateY(-2px);
    color: #F5E7B2 !important;
}

a.stat {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
}

.balance-card {
    background: #060504;
    border-radius: 28px;
    padding: 24px 28px;
    margin-bottom: 28px;
    border: 1px solid rgba(212, 175, 55, 0.6);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.balance-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #E6D5A8, #D4AF37);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.action-buttons {
    display: flex;
    gap: 18px;
}

.btn-action {
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid #D4AF37;
    padding: 10px 28px;
    border-radius: 48px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #F5E7B2;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
}

.btn-action i {
    color: #D4AF37;
}

.btn-action:hover {
    background: #D4AF37;
    color: #060504;
    border-color: #F5E7B2;
    transform: translateY(-2px);
}

.btn-action:hover i {
    color: #060504;
}

.balance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 12px;
}

.balance-item {
    background: rgba(10, 10, 18, 0.8);
    border-radius: 24px;
    padding: 16px 12px;
    text-align: center;
    border-bottom: 2px solid;
}

.balance-item.principal {
    border-bottom-color: #D4AF37;
}

.balance-item.residual {
    border-bottom-color: #C0C0C0;
}

.balance-item.equipo {
    border-bottom-color: #E8C468;
}

.balance-item.membresia {
    border-bottom-color: #B8860B;
}

.balance-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: #B9B1A0;
    margin-bottom: 10px;
}

.balance-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #F5E7B2;
    line-height: 1.2;
}

.balance-item.membresia .balance-number {
    font-size: 1rem;
    line-height: 1.3;
    white-space: normal;
}

.countdown-card {
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    border-radius: 20px;
    padding: 12px 20px;
    margin-top: 15px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.countdown-label {
    font-size: 0.7rem;
    color: #B9B1A0;
    letter-spacing: 1px;
}

.countdown-timer {
    font-size: 1.3rem;
    font-weight: 700;
    color: #D4AF37;
    font-family: monospace;
    margin-top: 5px;
}

.countdown-expired {
    color: #ff6b6b;
    font-weight: 600;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0a0a0a;
    border-top: 1px solid rgba(212, 175, 55, 0.5);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 10px 8px 18px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 6px 8px;
    border-radius: 40px;
    color: #8a8a7a;
    flex: 1;
    text-align: center;
    min-width: 0;
}

.nav-item i {
    font-size: 1.3rem;
}

.nav-item span {
    font-size: 0.65rem;
    font-weight: 500;
    white-space: nowrap;
}

.nav-item.active {
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.15);
}

.nav-item:hover {
    color: #F5E7B2;
    transform: translateY(-2px);
}

.chat-modal {
    position: fixed;
    bottom: 150px;
    right: 20px;
    width: 280px;
    max-width: calc(100vw - 40px);
    background: #0f0f0f;
    border-radius: 20px;
    border: 1px solid #D4AF37;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 160;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInUp 0.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-modal.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    padding: 12px 15px;
    border-bottom: 1px solid #D4AF37;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    color: #D4AF37;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.chat-close {
    cursor: pointer;
    font-size: 1.2rem;
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.2);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.2s;
}

.chat-close:hover {
    background: #D4AF37;
    color: #060504;
    transform: scale(1.1);
}

.chat-messages {
    height: 220px;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #0a0a0a;
}

.message-bot {
    background: #1a1a1a;
    color: #F5E7B2;
    padding: 8px 10px;
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    max-width: 85%;
    align-self: flex-start;
    font-size: 0.75rem;
    border: 0.5px solid rgba(212, 175, 55, 0.3);
}

.message-user {
    background: #D4AF37;
    color: #060504;
    padding: 8px 10px;
    border-radius: 14px;
    border-bottom-right-radius: 4px;
    max-width: 85%;
    align-self: flex-end;
    font-size: 0.75rem;
}

.chat-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    background: #0f0f0f;
    gap: 8px;
}

.chat-input-area input {
    flex: 1;
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid #D4AF37;
    border-radius: 30px;
    color: white;
    font-size: 0.75rem;
    outline: none;
}

.chat-input-area button {
    background: #D4AF37;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    color: #060504;
    font-size: 0.8rem;
    transition: 0.2s;
}

.section-page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.section-page.active-page {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-overlay .modal-content {
    background: #0a0a0a;
    border-radius: 32px;
    max-width: 550px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px;
    border: 1px solid #D4AF37;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    cursor: pointer;
    color: #D4AF37;
}

.rules-box {
    background: #1a1a1a;
    padding: 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    font-size: 0.75rem;
    border-left: 3px solid #D4AF37;
    color: #ccc;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
    background: #1a1a1a;
    padding: 15px;
    border-radius: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 40px;
    transition: all 0.2s;
}

.radio-group label.active-radio {
    background: rgba(212, 175, 55, 0.3);
    border: 1px solid #D4AF37;
}

.radio-group input[type="radio"] {
    accent-color: #D4AF37;
    width: 18px;
    height: 18px;
    margin: 0;
}

.form-group {
    margin: 20px 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #D4AF37;
}

.form-group input,
.withdraw-input {
    width: 100%;
    padding: 14px;
    background: #1E1E1E;
    border: 1px solid #D4AF37;
    border-radius: 16px;
    color: white;
    font-size: 1rem;
}

.btn-submit {
    background: linear-gradient(90deg, #D4AF37, #B8860B);
    width: 100%;
    padding: 14px;
    border-radius: 40px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    color: #060504;
    font-size: 1rem;
    margin-top: 15px;
    transition: all 0.2s;
}

.btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.qr-img {
    width: 180px;
    margin: 15px auto;
    display: block;
    border-radius: 16px;
    background: white;
    padding: 8px;
}

.wallet-address {
    background: #1a1a1a;
    padding: 12px;
    border-radius: 16px;
    word-break: break-all;
    font-family: monospace;
    margin: 15px 0;
    border: 1px solid #D4AF37;
}

.btn-copy {
    background: #D4AF37;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    color: #060504;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #D4AF37;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.toast-notify {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: #1E1E1E;
    border-left: 5px solid #D4AF37;
    padding: 12px 20px;
    border-radius: 12px;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.toast-notify.show {
    transform: translateX(0);
}

.tv-container {
    width: 100%;
    height: 600px;
    /* Mas alto para mejor visualizaciÃ³n */
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.markets-grid-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    /* Mayor separaciÃ³n entre filas y columnas */
    margin-bottom: 60px;
}

.widget-card {
    background: #0a0a0a;
    border-radius: 28px;
    padding: 24px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: fit-content;
    overflow: hidden;
    /* Asegura que nada salga de las lineas */
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #F5E7B2;
}

.live-badge {
    background: rgba(212, 175, 55, 0.2);
    color: #F5E7B2;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
}

.ticker-section {
    margin-bottom: 20px;
}

.carousel-section {
    margin-bottom: 20px;
}

.carousel-container {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 280px;
    background-size: cover;
    position: relative;
}

.slide-text {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: #F5E7B2;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: black;
    border: none;
    z-index: 10;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: #D4AF37;
    transform: translateY(-50%) scale(1.1);
}

.btn-prev {
    left: 20px;
}

.btn-next {
    right: 20px;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
}

.dot {
    width: 8px;
    height: 8px;
    background: #4A3F28;
    border-radius: 10px;
    cursor: pointer;
}

.dot.active {
    background: #D4AF37;
    width: 20px;
}

.section-title {
    font-size: 1.3rem;
    margin: 30px 0 20px;
    border-left: 4px solid #D4AF37;
    padding-left: 18px;
}

.vip-packages {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
    margin: 40px 0;
}

.vip-card {
    background: #0a0a0a;
    border-radius: 32px;
    padding: 24px;
    width: 280px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.vip-card:hover {
    border-color: #D4AF37;
    transform: translateY(-4px);
}

.vip-price {
    font-size: 2rem;
    font-weight: 800;
    color: #F5E7B2;
    margin: 12px 0;
}

.vip-features {
    list-style: none;
    text-align: left;
    margin: 15px 0;
    color: #ccc;
    font-size: 0.85rem;
}

.vip-features li {
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-vip {
    background: linear-gradient(90deg, #D4AF37, #B8860B);
    padding: 12px;
    border-radius: 40px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    border: none;
}

.referral-section {
    background: #060504;
    border-radius: 32px;
    padding: 24px;
    margin: 40px 0;
    border: 1px solid rgba(212, 175, 55, 0.5);
}

.ref-link {
    background: #0a0a0a;
    padding: 12px;
    border-radius: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.commission-levels {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 16px 0;
}

.level-badge {
    background: #1E1A10;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    border: 0.5px solid #D4AF37;
}

.team-container {
    background: #0a0a0a;
    border-radius: 24px;
    padding: 20px 16px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.leader-card-simple {
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    border-radius: 20px;
    padding: 18px 15px;
    display: inline-block;
    width: 100%;
    max-width: 260px;
    border: 1px solid #D4AF37;
    margin-bottom: 20px;
}

.empty-team-message {
    color: #8a8a7a;
    padding: 20px 15px;
    text-align: center;
    border-top: 1px dashed #D4AF37;
    margin-top: 10px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.event-card {
    background: #0a0a0a;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.event-img {
    height: 160px;
    background-size: cover;
    background-position: center;
}

.event-info {
    padding: 16px;
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.7rem;
    border-top: 1px solid #D4AF37;
    margin-top: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #D4AF37;
    text-decoration: none;
    font-size: 0.75rem;
    cursor: pointer;
}

.risk-warning {
    font-size: 0.7rem;
    color: #8a8a7a;
    margin-top: 12px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.history-list {
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    background: #1a1a1a;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: 0.75rem;
    border-left: 3px solid #D4AF37;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.history-status {
    color: #D4AF37;
    font-weight: 600;
}

.legal-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.legal-section {
    margin-bottom: 24px;
}

.legal-section h4 {
    color: #D4AF37;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.legal-section p {
    color: #ccc;
    line-height: 1.6;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.legal-section ul {
    color: #ccc;
    padding-left: 20px;
    margin: 10px 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

.back-to-home {
    margin-bottom: 20px;
}

.back-to-home button {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid #D4AF37;
    padding: 10px 20px;
    border-radius: 40px;
    color: #D4AF37;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.back-to-home button:hover {
    background: #D4AF37;
    color: #060504;
}

/* Forms and Premium Inputs */
.form-label-premium {
    color: #D4AF37;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

.input-group-text-premium {
    background: rgba(212, 175, 55, 0.15) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    color: #D4AF37 !important;
    border-radius: 16px 0 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 45px !important;
    height: 50px !important;
    padding: 0 !important;
}

.input-premium {
    background: #000 !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    color: #F5E7B2 !important;
    border-radius: 0 16px 16px 0 !important;
    height: 50px !important;
    padding: 0 15px !important;
    transition: all 0.3s;
    flex: 1 !important;
}

.input-premium:focus {
    background: #0a0a0a !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.1) !important;
    outline: none;
}

/* Premium Buttons */
.btn-modern-gold {
    background: linear-gradient(90deg, #D4AF37, #B8860B) !important;
    color: #060504 !important;
    border: none !important;
    border-radius: 40px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4) !important;
    cursor: pointer !important;
    padding: 12px 24px !important;
}

.btn-modern-gold:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6) !important;
    background: linear-gradient(90deg, #F5E7B2, #D4AF37) !important;
}

/* Password Toggle Eyeball Fix */
.toggle-password {
    background: rgba(212, 175, 55, 0.1) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    color: #D4AF37 !important;
    border-radius: 0 16px 16px 0 !important;
    height: 50px !important;
    margin-left: -1px !important;
    padding: 0 15px !important;
    transition: 0.2s;
}

/* Premium Cards */
.card-premium {
    background: #0a0a0a;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 28px;
    overflow: hidden;
    margin-bottom: 24px;
}

.card-header-premium {
    background: rgba(212, 175, 55, 0.05);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 20px 24px;
    color: #D4AF37;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-body-premium {
    padding: 24px;
}

/* File Input override */
input[type="file"]::file-selector-button {
    background: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
    border: 1px solid #D4AF37;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    margin-right: 12px;
    transition: 0.2s;
}

input[type="file"]::file-selector-button:hover {
    background: #D4AF37;
    color: #060504;
}

@media (min-width: 769px) and (max-width: 1100px) {
    .markets-grid-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    .markets-grid-widgets {
        grid-template-columns: 1fr;
    }

    .balance-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tv-container {
        height: 350px;
    }

    .bottom-nav {
        padding: 8px 4px 16px;
    }

    .nav-item i {
        font-size: 1.1rem;
    }

    .nav-item span {
        font-size: 0.6rem;
    }

    .floating-buttons {
        bottom: 85px;
        right: 15px;
        gap: 10px;
    }

    .support-btn,
    .android-btn {
        width: 45px;
        height: 45px;
    }

    .support-btn i,
    .android-btn i {
        font-size: 1.4rem;
    }

    .chat-modal {
        width: 260px;
        bottom: 140px;
        right: 15px;
    }

    .side-menu {
        width: 280px;
        left: -280px;
    }

    .testimonios-grid {
        grid-template-columns: 1fr;
    }

    .contactos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MODO DÍA - Overrides */
body.light-mode {
    background: #f8faff !important;
    color: #1e293b !important;
}

.light-mode .trading-bg {
    background-image: radial-gradient(circle at 25% 40%, rgba(212, 175, 55, 0.05) 1px, transparent 1px) !important;
    background-color: #f8faff !important;
}

.light-mode .header-premium {
    background: white !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    color: #1e293b !important;
}

.light-mode .logo h1 {
    background: linear-gradient(135deg, #0f172a, #334155, #D4AF37);
    -webkit-background-clip: text;
    background-clip: text;
}

.light-mode .stat {
    background: rgba(0, 0, 0, 0.03) !important;
    color: #334155 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.light-mode .balance-card,
.light-mode .widget-card,
.light-mode .section-page,
.light-mode .card-premium {
    background: white !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    color: #1e293b !important;
}

.light-mode h1,
.light-mode h2,
.light-mode h3,
.light-mode h4,
.light-mode h5,
.light-mode p {
    color: #1e293b !important;
}

.light-mode .input-premium,
.light-mode .form-control-config {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}

.light-mode .input-group-text-premium {
    background: #e2e8f0 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}

.light-mode .bottom-nav {
    background: white !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05) !important;
}

.light-mode .nav-item {
    color: #64748b !important;
}

.light-mode .nav-item.active {
    background: rgba(212, 175, 55, 0.1) !important;
    color: #D4AF37 !important;
}

.light-mode .side-menu {
    background: white !important;
    color: #1e293b !important;
}

.light-mode .side-menu-header {
    background: #f8fafc !important;
    color: #1e293b !important;
}

.light-mode .side-menu-item:hover {
    background: #f1f5f9 !important;
}

.light-mode .side-menu-item i {
    color: #D4AF37 !important;
}

.light-mode .form-label-premium {
    color: #64748b !important;
}

/* Elite Membership Upgrades */
.vip-card {
    position: relative;
    overflow: hidden;
}

.promo-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background: linear-gradient(135deg, #ff4b2b, #ff416c);
    color: white;
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: 800;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(255, 75, 43, 0.3);
    z-index: 10;
    letter-spacing: 1px;
}

.old-price {
    text-decoration: line-through;
    opacity: 0.5;
    font-size: 0.9rem;
    color: #8a8a7a;
    display: block;
    margin-bottom: -5px;
}

.vip-card.most-popular {
    border: 2px solid #D4AF37 !important;
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
}

.vip-description {
    line-height: 1.5;
    margin-top: 15px;
}