:root{--bg:#0f1226;--card:#14183a;--text:#e7e9ff;--muted:#a7abcf;--accent:#7c5cff;--accent2:#00e0ff;--danger:#ff6b6b}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:Poppins,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",Arial,"Noto Sans","Apple Color Emoji","Segoe UI Emoji";background:radial-gradient(1200px 800px at 10% 10%,#0b0f28 0%,#0f1226 40%,#0a0c1a 100%);color:var(--text);overflow:hidden}
.bg{position:fixed;inset:0;z-index:-1;filter:blur(40px);opacity:.8}
.blob{position:absolute;width:420px;height:420px;border-radius:50%;background:linear-gradient(135deg,var(--accent),var(--accent2));animation:float 12s ease-in-out infinite;mix-blend:screen}
.b1{left:-120px;top:-80px}
.b2{right:-160px;bottom:-120px;animation-delay:3s}
.b3{left:50%;top:60%;transform:translate(-50%,-50%);animation-delay:6s}
@keyframes float{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-25px) scale(1.05)}}
.container{height:100%;display:grid;place-items:center;padding:24px}
.card{width:min(420px,92vw);background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.12);border-radius:18px;box-shadow:0 10px 40px rgba(0,0,0,.4);padding:28px 24px 20px;transform:translateY(8px);animation:enter .8s ease forwards}
@keyframes enter{to{transform:translateY(0);opacity:1}} 
.logo{display:flex;align-items:center;gap:12px;font-size:18px;color:var(--muted);opacity:.95}
.logo span{font-size:28px;filter:drop-shadow(0 4px 8px rgba(124,92,255,.35))}
.card h1{margin:14px 0 4px 0;font-size:26px}
.subtitle{margin:0 0 18px 0;color:var(--muted)}
.form{display:grid;gap:10px}
label{font-size:13px;color:var(--muted)}
input{width:100%;padding:12px 14px;border-radius:12px;border:1px solid rgba(255,255,255,.16);background:#0f1230;color:var(--text);outline:none;transition:box-shadow .2s,border .2s}
input:focus{border-color:rgba(124,92,255,.6);box-shadow:0 0 0 4px rgba(124,92,255,.15)}
.password{display:flex;gap:8px;align-items:center}
.password input{flex:1}
.password button{height:44px;padding:0 12px;border-radius:12px;border:1px solid rgba(255,255,255,.16);background:#0f1230;color:var(--muted);cursor:pointer;transition:all .2s}
.password button:hover{color:var(--text);border-color:rgba(124,92,255,.4)}
.btn{margin-top:6px;display:inline-flex;justify-content:center;align-items:center;gap:10px;height:46px;border-radius:12px;border:0;background:linear-gradient(135deg,var(--accent),var(--accent2));color:white;font-weight:600;cursor:pointer;box-shadow:0 8px 20px rgba(124,92,255,.35),0 2px 8px rgba(0,224,255,.25);transition:transform .12s,filter .2s}
.btn:hover{filter:brightness(1.06)}
.btn:active{transform:translateY(1px)}
.feedback{min-height:20px;font-size:13px;color:var(--danger)}
.foot{margin-top:14px;text-align:center;color:var(--muted);font-size:12px}
@media (max-width:380px){.card{padding:22px 16px}}

/* Loading do PIX - Preload Visual */
.pix-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.pix-loading-content {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 350px;
    width: 90%;
}

.pix-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(124, 92, 255, 0.3);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: pixSpin 1s linear infinite;
    margin: 0 auto 25px;
}

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

.pix-loading-content h3 {
    color: var(--text);
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.pix-loading-content p {
    color: var(--muted);
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Botões de tipo de usuário - DESIGN PICA! 🔥 */
.user-type-selection {
    margin-bottom: 30px;
}

.user-type-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.user-type-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px 20px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Efeito de brilho animado */
.user-type-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

/* Efeito de partículas */
.user-type-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(124, 92, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 224, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.user-type-btn:hover {
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(145deg, rgba(124, 92, 255, 0.2), rgba(0, 224, 255, 0.15));
    color: var(--text);
    box-shadow: 
        0 20px 40px rgba(124, 92, 255, 0.3),
        0 0 60px rgba(124, 92, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.user-type-btn:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.user-type-btn:hover::after {
    opacity: 1;
}

.user-type-btn.active {
    background: linear-gradient(145deg, rgba(124, 92, 255, 0.4), rgba(0, 224, 255, 0.3));
    color: var(--text);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 25px 50px rgba(124, 92, 255, 0.4),
        0 0 80px rgba(124, 92, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(124, 92, 255, 0.6);
}

.user-type-btn.active::before {
    opacity: 1;
    animation: shine 2s infinite;
}

.user-type-btn.active::after {
    opacity: 1;
}

@keyframes shine {
    0% { transform: rotate(45deg) translate(-100%, -100%); }
    50% { transform: rotate(45deg) translate(100%, 100%); }
    100% { transform: rotate(45deg) translate(-100%, -100%); }
}

.btn-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.user-type-btn:hover .btn-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 25px rgba(124, 92, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.user-type-btn.active .btn-icon {
    background: linear-gradient(145deg, rgba(124, 92, 255, 0.6), rgba(0, 224, 255, 0.4));
    transform: scale(1.15) rotate(10deg);
    box-shadow: 
        0 15px 30px rgba(124, 92, 255, 0.4),
        0 0 40px rgba(124, 92, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: inherit;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.btn-subtitle {
    font-size: 14px;
    opacity: 0.9;
    color: inherit;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Efeito de pulso para botão ativo */
.user-type-btn.active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 25px 50px rgba(124, 92, 255, 0.4), 0 0 80px rgba(124, 92, 255, 0.3); }
    50% { box-shadow: 0 25px 50px rgba(124, 92, 255, 0.6), 0 0 100px rgba(124, 92, 255, 0.5); }
    100% { box-shadow: 0 25px 50px rgba(124, 92, 255, 0.4), 0 0 80px rgba(124, 92, 255, 0.3); }
}

/* Responsividade para botões de usuário */
@media (max-width: 480px) {
    .user-type-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .user-type-btn {
        padding: 20px 18px;
        flex-direction: row;
        text-align: left;
        gap: 18px;
    }
    
    .btn-icon {
        font-size: 28px;
        width: 55px;
        height: 55px;
    }
    
    .btn-title {
        font-size: 16px;
    }
    
    .btn-subtitle {
        font-size: 13px;
    }
}

/* Modal Profissional de Sucesso */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: modalFadeIn 0.3s ease-out;
    /* Bloquear interações com elementos de fundo */
    pointer-events: auto;
    /* Prevenir scroll do body */
    overflow: hidden;
}

/* Bloquear scroll do body quando modal estiver aberto */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.success-modal {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease-out;
    position: relative;
    overflow: hidden;
    /* Garantir que o modal seja sempre visível */
    max-height: 90vh;
    overflow-y: auto;
}

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

.success-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 20px 20px 0 0;
}

.success-header {
    margin-bottom: 25px;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-body {
    margin-bottom: 30px;
}

.success-message {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 10px 0;
}

.numbers-info {
    font-size: 16px;
    color: var(--muted);
    margin: 0 0 15px 0;
    font-weight: 500;
}

.sub-message {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
    opacity: 0.9;
}

.success-footer {
    margin-top: 25px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(124, 92, 255, 0.3);
    min-width: 200px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(124, 92, 255, 0.4);
    filter: brightness(1.05);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(124, 92, 255, 0.3);
}

/* Responsividade do Modal */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
        /* Garantir centralização perfeita no mobile */
        align-items: center;
        justify-content: center;
    }
    
    .success-modal {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 30px 20px;
        border-radius: 15px;
        min-height: 50vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Centralização perfeita no mobile */
        position: relative;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .success-header h2 {
        font-size: 26px;
        margin-bottom: 20px;
    }
    
    .success-icon {
        font-size: 42px;
        margin-bottom: 12px;
    }
    
    .success-message {
        font-size: 17px;
        margin-bottom: 8px;
    }
    
    .numbers-info {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .sub-message {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 20px;
    }
    
    .btn-primary {
        padding: 14px 30px;
        font-size: 15px;
        min-width: 220px;
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 5px;
    }
    
    .success-modal {
        padding: 25px 15px;
        border-radius: 12px;
        min-height: 60vh;
    }
    
    .success-header h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .success-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .success-message {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .numbers-info {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .sub-message {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 18px;
    }
    
    .btn-primary {
        padding: 12px 25px;
        font-size: 14px;
        min-width: 200px;
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 360px) {
    .success-modal {
        padding: 20px 12px;
        min-height: 65vh;
    }
    
    .success-header h2 {
        font-size: 20px;
    }
    
    .success-icon {
        font-size: 32px;
    }
    
    .success-message {
        font-size: 15px;
    }
    
    .numbers-info {
        font-size: 13px;
    }
    
    .sub-message {
        font-size: 12px;
    }
    
    .btn-primary {
        padding: 11px 20px;
        font-size: 13px;
        min-width: 180px;
    }
}