/* RESET TOTAL PARA EVITAR CONFLICTOS CON STYLE.CSS */
html, body.generator-page {
    position: static !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    width: 100% !important;
    background: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.generator-page #app-wrapper {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
}

/* HEADER VIP */
body.generator-page .main-header {
    background: #000 !important;
    border-bottom: 2px solid #ff8c00 !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    padding: 0 15px !important;
}

body.generator-page .header-container {
    width: 100% !important;
    max-width: 500px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 0 auto !important;
}

body.generator-page .logo-brand {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
}

body.generator-page .logo-brand img {
    width: 45px !important;
    height: 45px !important;
    border: 1px solid #ff8c00 !important;
    border-radius: 50% !important;
}

body.generator-page .logo-brand span {
    color: #bc1888 !important; /* Purple VIP color */
    font-weight: 900 !important;
    font-size: 22px !important;
    text-transform: uppercase !important;
    font-family: 'Kanit', sans-serif !important;
}

/* BOTÓN MENÚ NARANJA */
body.generator-page .side-menu-toggle {
    width: 50px !important;
    height: 40px !important;
    background: #ff8c00 !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.4) !important;
}

body.generator-page .side-menu-toggle span {
    width: 25px !important;
    height: 3px !important;
    background: #000 !important;
    border-radius: 2px !important;
    display: block !important;
    transition: 0.3s !important;
    transform: none !important;
    opacity: 1 !important;
}

/* TARJETA PRINCIPAL COMPACTA */
body.generator-page .container.main-generator-card {
    position: relative !important;
    inset: auto !important;
    width: 92% !important;
    max-width: 400px !important;
    margin: 10px auto !important;
    background: #000 !important;
    border: 2px solid #ff8c00 !important;
    border-radius: 15px !important;
    padding: 15px 15px !important;
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.2) !important;
    display: block !important;
    height: auto !important;
    transform: none !important;
    z-index: 10 !important;
    overflow: visible !important;
}

.card-top-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.ff-logo-top {
    width: 80px;
}

.remaining-box {
    background: rgba(255, 140, 0, 0.05);
    border: 1px solid rgba(255, 140, 0, 0.3);
    padding: 5px 12px;
    border-radius: 8px;
    text-align: right;
    box-shadow: inset 0 0 10px rgba(255, 140, 0, 0.1), 0 0 15px rgba(0,0,0,0.5);
    animation: neon-glow 2s infinite alternate;
}

@keyframes neon-glow {
    from { border-color: rgba(255, 140, 0, 0.3); box-shadow: 0 0 5px rgba(255, 140, 0, 0.1); }
    to { border-color: rgba(255, 140, 0, 0.6); box-shadow: 0 0 15px rgba(255, 140, 0, 0.3); }
}

.rem-label {
    font-size: 9px;
    color: #ff8c00;
    font-weight: 900;
    display: block;
    margin-bottom: 1px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rem-value {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rem-value img { width: 15px; }
.rem-value span {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    font-family: 'Teko', sans-serif;
    letter-spacing: 0.5px;
}

.main-title {
    color: #ff8c00 !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    text-align: center;
    line-height: 0.9;
    margin-bottom: 8px !important;
    font-family: 'Teko', sans-serif !important;
    text-transform: uppercase !important;
    background: linear-gradient(180deg, #fff 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.5));
    letter-spacing: 1px;
}

.main-subtitle {
    font-size: 11px;
    color: #bbb;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ERROR MESSAGE PROFESSIONAL ULTRA */
.error-message {
    position: relative !important;
    background: rgba(255, 68, 68, 0.15) !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid #ff4444 !important;
    color: #fff !important;
    padding: 15px 15px 15px 50px !important; /* Espacio para el icono */
    border-radius: 12px !important;
    font-family: 'Kanit', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: left !important;
    margin: 15px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(255, 68, 68, 0.1) !important;
    display: block !important;
    animation: error-shake 0.4s cubic-bezier(.36,.07,.19,.97) both !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
}

.error-message::before {
    content: "⚠️" !important;
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 20px !important;
    filter: drop-shadow(0 0 5px #ff4444) !important;
}

@keyframes error-shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.error-message.hidden { display: none !important; }

/* TOTAL BOX PREMIUM */
.total-solicitud-box {
    border: 1px solid rgba(255, 140, 0, 0.4);
    background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

.total-solicitud-box::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, #ff8c00, transparent);
}

/* INPUTS SECTION COMPACT */
.vip-input-group {
    background: #111 !important;
    border: 1px solid #222 !important;
    border-radius: 8px !important;
    padding: 10px !important;
    display: flex !important;
    align-items: center !important;
    margin-bottom: 10px !important;
    width: 100% !important;
    position: relative !important;
}

.input-icon-vip {
    width: 22px !important;
    height: 22px !important;
    margin-right: 15px !important;
    object-fit: contain !important;
}

.vip-input-premium {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 15px !important;
    width: 100% !important;
    outline: none !important;
    font-family: 'Kanit', sans-serif !important;
    text-align: left !important;
    text-transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* TOTAL BOX ULTRA VIP */
.total-solicitud-box {
    border: 2px solid #ff8c00;
    background: linear-gradient(135deg, #111 0%, #050505 100%);
    border-radius: 12px;
    padding: 12px 15px;
    margin: 15px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(255, 140, 0, 0.05);
    position: relative;
    overflow: visible;
    border-left-width: 4px;
}

.total-solicitud-box::after {
    content: "VIP ACCESS";
    position: absolute;
    top: -9px;
    right: 15px;
    background: linear-gradient(90deg, #ff8c00, #ffb347);
    color: #000;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.3);
    letter-spacing: 1px;
}

.total-inner {
    display: flex;
    align-items: center;
    gap: 15px;
}

.total-big-diamond {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.5)) brightness(1.1);
    animation: float-diamond 3s ease-in-out infinite;
}

@keyframes float-diamond {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(3deg); }
}

.total-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.total-label {
    font-size: 10px;
    color: #ff8c00;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0px;
    opacity: 0.9;
}

.total-amount-display {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    font-family: 'Teko', sans-serif;
    line-height: 0.9;
    display: flex;
    align-items: baseline;
    gap: 5px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

#totalAmount {
    color: #fff;
    background: linear-gradient(180deg, #fff 30%, #bbb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.total-amount-display span:last-child {
    font-size: 14px;
    color: #ff8c00;
    letter-spacing: 0.5px;
}

/* BOTÓN SOLICITAR COMPACT */
.btn-solicitar-vip {
    width: 100% !important;
    background: linear-gradient(180deg, #ffb347 0%, #ff8c00 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 15px !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    color: #000 !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    font-family: 'Kanit', sans-serif !important;
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.4) !important;
    margin-top: 5px !important;
}

/* MODALES */
.modal {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,0.95) !important;
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

.modal.hidden { display: none !important; }

.modal-panel {
    background: #0a0a0a !important;
    border: 2px solid #ff8c00 !important;
    border-radius: 15px !important;
    padding: 25px !important;
    width: 100% !important;
    max-width: 400px !important;
    text-align: center !important;
}

.modal-panel h3 {
    color: #fff !important;
    font-family: 'Kanit', sans-serif !important;
    font-size: 22px !important;
    margin-bottom: 20px !important;
    text-transform: uppercase !important;
}

.region-options {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
}

.region-btn {
    background: #111 !important;
    border: 1px solid #333 !important;
    color: #888 !important;
    padding: 12px !important;
    border-radius: 8px !important;
    font-family: 'Kanit', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: 0.3s !important;
}

.region-btn.active {
    background: rgba(255, 140, 0, 0.1) !important;
    border-color: #ff8c00 !important;
    color: #ff8c00 !important;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.2) !important;
}

.modal-actions {
    display: flex !important;
    gap: 10px !important;
}

.modal-cancel, .modal-confirm {
    flex: 1 !important;
    padding: 12px !important;
    border-radius: 8px !important;
    font-family: 'Kanit', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    border: none !important;
}

.modal-cancel {
    background: #222 !important;
    color: #fff !important;
}

.modal-confirm {
    background: linear-gradient(180deg, #ffb347 0%, #ff8c00 100%) !important;
    color: #000 !important;
}

.modal-confirm:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* BARRA DE ESTADO DEL SERVIDOR */
.server-status-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff00;
    animation: status-pulse 1.5s infinite;
}

@keyframes status-pulse {
    0% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.4; transform: scale(0.8); }
}

.status-text {
    font-size: 11px;
    font-weight: 800;
    color: #888;
    text-transform: uppercase;
    font-family: 'Kanit', sans-serif;
}

.status-icon {
    font-size: 12px;
}

/* REFINAMIENTO DE INPUTS */
.vip-input-premium:focus {
    color: #ff8c00 !important;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
}

.vip-input-group:focus-within {
    border-color: #ff8c00 !important;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.3) !important;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* MODAL DE ENVÍO Y ANIMACIONES */
.sending-progress-container {
    width: 100%;
    height: 8px;
    background: #1a1a1a;
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 210, 255, 0.2);
}

.sending-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    box-shadow: 0 0 10px #00d2ff;
    transition: width 0.3s ease;
}

.sending-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 9px;
    color: #666;
    font-weight: 900;
}

.stat-value {
    font-size: 13px;
    color: #00d2ff;
    font-weight: 700;
    font-family: 'Teko', sans-serif;
}

.sending-animation-box {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: relative;
    background: rgba(0, 210, 255, 0.03);
    border-radius: 15px;
    padding: 20px;
}

.anim-diamond-icon {
    width: 40px;
    animation: bounce 1s infinite alternate;
}

.anim-ff-logo {
    width: 60px;
    filter: grayscale(1) brightness(0.5);
}

.anim-waves {
    display: flex;
    gap: 5px;
}

.anim-waves span {
    width: 10px;
    height: 10px;
    background: #00d2ff;
    border-radius: 50%;
    animation: wave-pulse 1s infinite;
}

.anim-waves span:nth-child(2) { animation-delay: 0.2s; }
.anim-waves span:nth-child(3) { animation-delay: 0.4s; }

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

@keyframes wave-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 1; box-shadow: 0 0 10px #00d2ff; }
}

/* SIDE MENU */
.side-menu {
    position: fixed !important;
    top: 0 !important;
    right: -300px !important;
    width: 280px !important;
    height: 100vh !important;
    background: #0a0a0a !important;
    z-index: 10500 !important;
    transition: 0.3s !important;
    padding: 30px 20px !important;
    border-left: 2px solid #ff8c00 !important;
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.side-menu.active {
    right: 0 !important;
}

.side-menu-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,0.8) !important;
    backdrop-filter: blur(5px) !important;
    z-index: 10400 !important;
    display: none !important;
}

.side-menu-backdrop.active {
    display: block !important;
}

/* OCULTAR ELEMENTOS MOLESTOS DE STYLE.CSS */
.floating-reward { display: none !important; }
.card::after { display: none !important; }
