/* ================================================================
   BETUXO — Flow States / Modals (Figma F04-F19)
   ================================================================ */

/* ---------- Shared state modal overlay ---------- */
.state-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(4,8,12,.8); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px; animation: state-fade-in .25s ease;
}
@keyframes state-fade-in { from { opacity: 0; } }

.state-modal {
    background: #111C2A; border-radius: 16px; border: 1px solid rgba(255,255,255,.08);
    padding: 32px; max-width: 440px; width: 100%; text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,.6); animation: state-slide-up .3s ease;
}
@keyframes state-slide-up { from { opacity: 0; transform: translateY(16px); } }

.state-icon {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
}
.state-icon.success { background: rgba(102,219,170,.1); color: #66DBAA; }
.state-icon.error { background: rgba(255,140,149,.1); color: #FF8C95; }
.state-icon.warning { background: rgba(244,204,119,.1); color: #F4CC77; }
.state-icon.info { background: rgba(195,249,1,.08); color: var(--primary); }
.state-icon.neutral { background: rgba(139,141,151,.1); color: #9EA7B5; }

.state-title { font-size: 20px; font-weight: 700; color: #F7F8FA; margin: 0 0 8px; }
.state-desc { font-size: 14px; color: #9EA7B5; margin: 0 0 24px; line-height: 1.5; }

.state-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; height: 48px; border-radius: 12px; font-size: 15px; font-weight: 700;
    cursor: pointer; transition: all .15s; border: none; font-family: inherit;
    text-decoration: none;
}
.state-btn.primary { background: var(--primary); color: #080F16; }
.state-btn.primary:hover { background: #D4FF3A; }
.state-btn.secondary { background: #1A2B3D; color: #F7F8FA; border: 1px solid rgba(255,255,255,.06); margin-top: 10px; }
.state-btn.secondary:hover { border-color: var(--primary); color: var(--primary); }
.state-btn.danger { background: rgba(255,140,149,.15); color: #FF8C95; }
.state-btn.danger:hover { background: rgba(255,140,149,.25); }

.state-close {
    position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
    border-radius: 8px; border: none; background: rgba(255,255,255,.06); color: #9EA7B5;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.state-close:hover { background: rgba(255,255,255,.1); color: #F7F8FA; }

/* ---------- F04 — 2FA / Verificacao em duas etapas ---------- */
.state-2fa-inputs {
    display: flex; gap: 8px; justify-content: center; margin-bottom: 24px;
}
.state-2fa-inputs input {
    width: 48px; height: 56px; border-radius: 10px; text-align: center;
    font-size: 22px; font-weight: 700; color: #F7F8FA;
    background: #1A2B3D; border: 1px solid rgba(255,255,255,.08);
    outline: none; font-family: inherit;
}
.state-2fa-inputs input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(195,249,1,.08); }
.state-resend { font-size: 13px; color: #9EA7B5; margin-top: 16px; }
.state-resend a { color: var(--primary); font-weight: 600; }

/* ---------- F05 — Pix aguardando ---------- */
.state-pix-waiting .state-icon { background: rgba(195,249,1,.08); }
.state-pix-amount { font-size: 32px; font-weight: 800; color: #F7F8FA; margin: 0 0 4px; }
.state-pix-qr {
    width: 180px; height: 180px; margin: 20px auto; background: #fff;
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.state-pix-copy {
    display: flex; gap: 8px; margin-bottom: 20px;
}
.state-pix-copy input {
    flex: 1; background: #1A2B3D; border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px; padding: 10px 14px; color: #F7F8FA; font-size: 12px;
    font-family: monospace; outline: none;
}
.state-pix-copy button {
    padding: 10px 16px; border-radius: 8px; background: var(--primary);
    color: #080F16; border: none; font-weight: 700; font-size: 13px; cursor: pointer;
    font-family: inherit;
}
.state-timer {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 14px; color: #F4CC77; margin-bottom: 16px;
}

/* ---------- F06 — Deposito confirmado ---------- */
.state-check-anim {
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(102,219,170,.12); margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    animation: state-check-pop .4s ease;
}
@keyframes state-check-pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- F10-F11 — Verificar identidade ---------- */
.state-upload-zone {
    border: 2px dashed rgba(255,255,255,.08); border-radius: 12px;
    padding: 32px 20px; text-align: center; margin-bottom: 20px;
    cursor: pointer; transition: all .15s;
}
.state-upload-zone:hover { border-color: var(--primary); }
.state-upload-zone svg { margin-bottom: 8px; color: #9EA7B5; }
.state-upload-zone p { font-size: 13px; color: #9EA7B5; margin: 0; }
.state-upload-zone span { font-size: 11px; color: #6B7686; }

/* ---------- F12 — Busca sem resultados ---------- */
.state-no-results { text-align: center; padding: 48px 20px; }
.state-no-results .state-icon { margin: 0 auto 16px; }
.state-suggestions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.state-suggestion-chip {
    padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 500;
    color: #9EA7B5; background: #1A2B3D; border: 1px solid rgba(255,255,255,.06);
    cursor: pointer; transition: all .15s; text-decoration: none;
}
.state-suggestion-chip:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- F15-F17 — Pausa / Autoexclusao ---------- */
.state-danger-zone {
    background: rgba(255,140,149,.06); border: 1px solid rgba(255,140,149,.12);
    border-radius: 12px; padding: 16px; margin-bottom: 20px; text-align: left;
}
.state-danger-zone h4 { font-size: 14px; font-weight: 700; color: #FF8C95; margin: 0 0 6px; }
.state-danger-zone p { font-size: 13px; color: #9EA7B5; margin: 0; line-height: 1.5; }

.state-select {
    width: 100%; height: 48px; border-radius: 10px;
    background: #1A2B3D; border: 1px solid rgba(255,255,255,.06);
    color: #F7F8FA; font-size: 14px; font-family: inherit; padding: 0 14px;
    outline: none; margin-bottom: 16px; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 5.5l3 3 3-3' stroke='%238B8D97' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}

/* ---------- F19 — Regras do chat ---------- */
.state-rules-list { text-align: left; margin-bottom: 20px; }
.state-rules-list li {
    display: flex; align-items: flex-start; gap: 10px; padding: 10px 0;
    font-size: 13px; color: #C9D1DC; line-height: 1.4;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.state-rules-list li:last-child { border-bottom: none; }
.state-rules-list .rule-num {
    width: 24px; height: 24px; border-radius: 6px; background: rgba(195,249,1,.08);
    color: var(--primary); font-size: 11px; font-weight: 700; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}

@media (max-width: 480px) {
    .state-modal { padding: 24px 20px; margin: 0 12px; }
    .state-2fa-inputs input { width: 42px; height: 50px; font-size: 18px; }
    .state-pix-qr { width: 150px; height: 150px; }
}
