/* Estilos do App Mobile Cartão Mais! */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

:root {
    --brand-cyan: #00B4DC;
    --brand-blue: #0077C8;
    --brand-blue-btn: #007CE8;
    --text-primary: #1C2B39;
    --text-secondary: #5A6E85;
    --border-color: #B8C7D6;
    --bg-gray: #F4F7F9;
    --white: #FFFFFF;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #121820; /* Fundo escuro para destacar o frame no desktop */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container que simula tela do Smartphone */
.app-container {
    width: 100%;
    height: 100%;
    max-width: 440px;
    max-height: 920px;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

@media (max-width: 500px) {
    body {
        background-color: var(--white);
    }
    .app-container {
        max-width: 100%;
        max-height: 100%;
        box-shadow: none;
        border-radius: 0;
    }
}

/* Telas Gerais */
.screen {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
    background-color: var(--white);
}

.screen.active {
    display: flex !important;
    opacity: 1 !important;
    z-index: 10;
}

/* Barra tricolor superior oficial (Vermelho, Amarelo, Ciano) */
.brand-top-bar {
    width: 100%;
    height: 4px;
    display: flex;
    flex-shrink: 0;
}

.brand-top-bar .stripe-red {
    width: 35%;
    height: 100%;
    background-color: #FF3E4F;
}

.brand-top-bar .stripe-yellow {
    width: 30%;
    height: 100%;
    background-color: #FFCA40;
}

.brand-top-bar .stripe-cyan {
    width: 35%;
    height: 100%;
    background-color: #00B3DC;
}

/* ======================================================== */
/* TELA 1: SPLASH SCREEN (ABERTURA COM SPINNER) */
/* ======================================================== */
#screen-splash {
    background-color: var(--brand-cyan);
    align-items: center;
    justify-content: center;
    position: relative;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: fadeInZoom 0.6s ease-out forwards;
}

.splash-logo-container {
    width: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 34px;
}

.splash-logo {
    width: 150px;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

.spinner-container {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3.5px solid rgba(255, 255, 255, 0.22);
    border-top-color: #ffffff;
    border-right-color: #ffffff;
    animation: rotateSpinner 0.85s cubic-bezier(0.5, 0.15, 0.4, 0.95) infinite;
}

.spinner-glow {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.splash-status-text {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

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

@keyframes fadeInZoom {
    0% { opacity: 0; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1); }
}

/* ======================================================== */
/* TELA 2: BOAS-VINDAS (IDÊNTICA À IMAGEM 2) */
/* ======================================================== */
#screen-welcome {
    background-color: #020A21;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.welcome-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.welcome-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    animation: fadeInWelcome 0.35s ease-out;
}

@keyframes fadeInWelcome {
    0% { opacity: 0.2; }
    100% { opacity: 1; }
}

.welcome-actions-container {
    position: absolute;
    bottom: 24px;
    left: 0;
    width: 100%;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

.btn-welcome-primary {
    width: 100%;
    height: 52px;
    background-color: var(--brand-blue-btn);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 124, 232, 0.3);
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-welcome-primary:active {
    background-color: #006ecf;
    transform: scale(0.985);
}

.btn-welcome-secondary {
    width: 100%;
    height: 52px;
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-welcome-secondary:active {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(0.985);
}

/* ======================================================== */
/* TELA 2A: OPÇÕES DO CARTÃO (IMAGEM 2A.PNG) */
/* ======================================================== */
#screen-options {
    background-color: #00B3DC;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-back-floating {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.options-actions-container {
    position: absolute;
    bottom: 24px;
    left: 0;
    width: 100%;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

.btn-option-primary {
    width: 100%;
    height: 52px;
    background-color: var(--brand-blue-btn);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 124, 232, 0.3);
    transition: background-color 0.15s, transform 0.1s;
}

.btn-option-primary:active {
    background-color: #006ecf;
    transform: scale(0.985);
}

.btn-option-secondary {
    width: 100%;
    height: 52px;
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s, transform 0.1s;
}

.btn-option-secondary:active {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(0.985);
}

/* ======================================================== */
/* TELA 2C: IMAGEM 2C.PNG COM MODAL TRANSLÚCIDO */
/* ======================================================== */
#screen-2c {
    background-color: #FF3E4F;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.modal-translucent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 30;
}

.modal-translucent-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 24px 20px 20px 20px;
    width: 100%;
    max-width: 360px;
    max-height: 88vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 124, 232, 0.3) transparent;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
    position: relative;
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-translucent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-translucent-title {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-close-translucent {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background 0.15s;
}

.btn-close-translucent:active {
    background: rgba(0, 0, 0, 0.12);
}

.translucent-desc-text {
    font-size: 13.5px;
    color: #4B5563;
    line-height: 1.45;
    margin: 8px 0 16px 0;
    text-align: left;
}

.translucent-field {
    margin-bottom: 14px;
    user-select: text;
    -webkit-user-select: text;
}

.translucent-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.translucent-input {
    width: 100%;
    height: 48px;
    border: 1.5px solid rgba(0, 0, 0, 0.14);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 0 14px;
    font-size: 15px;
    color: #111;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    user-select: text;
    -webkit-user-select: text;
}

.translucent-input:focus {
    border-color: var(--brand-blue-btn);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 124, 232, 0.2);
}

.btn-submit-translucent {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #007CE8, #00B4DC);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 124, 232, 0.35);
    transition: transform 0.1s, opacity 0.2s;
}

.btn-submit-translucent:active {
    transform: scale(0.98);
}

/* Expansão dos 3 Campos de Apelidos */
.step-apelidos-container {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1.5px dashed rgba(0, 124, 232, 0.25);
    animation: slideDownFade 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.apelidos-divider {
    margin-bottom: 12px;
    text-align: left;
}

.apelidos-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #007CE8;
    background: rgba(0, 124, 232, 0.08);
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 4px;
}

.apelidos-instruction {
    font-size: 12px;
    color: #475569;
    line-height: 1.45;
    margin: 4px 0 10px 0;
}

.apelido-field {
    margin-bottom: 10px;
}

.apelido-field label {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.btn-submit-translucent.disabled-btn {
    opacity: 0.45;
    filter: grayscale(0.8);
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    transform: none !important;
}

.btn-submit-translucent.ready-btn {
    opacity: 1;
    filter: none;
    cursor: pointer;
    pointer-events: auto;
    background: linear-gradient(135deg, #007CE8, #00B4DC);
    box-shadow: 0 8px 25px rgba(0, 124, 232, 0.5);
    animation: pulseGlowSubmit 1.5s infinite alternate;
}

@keyframes pulseGlowSubmit {
    from {
        box-shadow: 0 4px 15px rgba(0, 124, 232, 0.35);
    }
    to {
        box-shadow: 0 8px 28px rgba(0, 180, 220, 0.7);
    }
}

/* ======================================================== */
/* ESTADOS DA TELA 2C (FORM, ANÁLISE, APROVADO, VALIDANDO) */
/* ======================================================== */
.state-view {
    display: none;
    width: 100%;
}

.state-view.active {
    display: block;
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Slider de Limite */
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.slider-value-display {
    font-size: 17px;
    font-weight: 800;
    color: var(--brand-blue-btn);
    background-color: #EFF8FF;
    border: 1px solid #BFDBFE;
    padding: 3px 10px;
    border-radius: 8px;
}

.custom-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #CBD5E1;
    outline: none;
    margin: 8px 0;
    cursor: pointer;
}

.custom-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand-blue-btn);
    border: 3px solid #ffffff;
    box-shadow: 0 3px 10px rgba(0, 124, 232, 0.45);
    cursor: pointer;
    transition: transform 0.1s;
}

.custom-range-slider::-webkit-slider-thumb:active {
    transform: scale(1.15);
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #64748B;
    font-weight: 600;
}

/* Estado 2: Aguarde Análise */
.analyzing-container {
    text-align: center;
    padding: 10px 4px;
}

.analysis-spinner-wrapper {
    position: relative;
    width: 68px;
    height: 68px;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.analysis-spinner {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid rgba(0, 124, 232, 0.15);
    border-top-color: var(--brand-blue-btn);
    animation: rotateSpinner 0.85s linear infinite;
}

.analysis-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.analyzing-title {
    font-size: 18px;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 8px;
}

.analyzing-desc {
    font-size: 13.5px;
    color: #64748B;
    line-height: 1.45;
    margin-bottom: 18px;
}

.analyzing-progress-bar {
    width: 100%;
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.analyzing-progress-fill {
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, #007CE8, #00B4DC);
    border-radius: 3px;
    animation: shimmerProgress 1.4s infinite ease-in-out;
}

@keyframes shimmerProgress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(240%); }
}

/* Estado 3: Parabéns / Aprovado */
.approved-container {
    text-align: center;
    padding: 6px 2px;
}

.approved-badge-icon {
    font-size: 46px;
    margin-bottom: 6px;
}

.approved-title {
    font-size: 22px;
    font-weight: 800;
    color: #047857;
    margin-bottom: 4px;
}

.approved-subtitle {
    font-size: 14px;
    color: #4B5563;
    margin-bottom: 14px;
}

.approved-card-box {
    background: linear-gradient(135deg, #ECFDF5, #F0FDF4);
    border: 1.5px solid #86EFAC;
    border-radius: 16px;
    padding: 14px;
    text-align: center;
    margin-bottom: 14px;
}

.approved-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #166534;
    letter-spacing: 0.5px;
}

.approved-value {
    font-size: 26px;
    font-weight: 900;
    color: #0284C7;
    margin-top: 4px;
}

.approved-instruction {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 16px;
}

.btn-confirm-limit {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s, background 0.2s;
}

.btn-confirm-limit:active {
    transform: scale(0.98);
}

.btn-confirm-limit:disabled,
.btn-confirm-limit.disabled-btn {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: none;
}

/* Estado 4: Validando */
.validating-container {
    text-align: center;
    padding: 20px 6px;
}

.validating-spinner {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 4.5px solid #E2E8F0;
    border-top: 4.5px solid var(--brand-blue-btn);
    border-right: 4.5px solid var(--brand-blue-btn);
    animation: rotateSpinner 0.8s linear infinite;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 14px rgba(0, 124, 232, 0.2);
}

.validating-title {
    font-size: 19px;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 10px;
    line-height: 1.35;
}

.validating-desc {
    font-size: 14px;
    color: #64748B;
    line-height: 1.5;
}

/* ======================================================== */
/* TELA 3: LOGIN - "ENTRAR NO APP" (IDÊNTICA À FOTO 3) */
/* ======================================================== */
#screen-login {
    background-color: #ffffff;
    flex-direction: column;
    overflow-y: auto;
}

.screen-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 22px 30px 22px;
}

/* Botão Voltar (<) padrão do app */
.btn-back-nav {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: #E8F4FD;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-blue-btn);
    border: none;
    cursor: pointer;
    margin-bottom: 24px;
    transition: background-color 0.15s, transform 0.1s;
}

.btn-back-nav:active {
    background-color: #d2e9fb;
    transform: scale(0.96);
}

.app-title-main {
    font-size: 28px;
    font-weight: 800;
    color: #222222;
    margin-bottom: 30px;
    letter-spacing: -0.3px;
}

/* Formulário de Input */
.form-field {
    margin-bottom: 22px;
    position: relative;
    user-select: text;
    -webkit-user-select: text;
}

.field-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.app-input {
    width: 100%;
    height: 52px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 0 16px;
    font-size: 16px;
    color: #1a1a1a;
    outline: none;
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    user-select: text;
    -webkit-user-select: text;
}

.app-input:focus {
    border-color: var(--brand-blue-btn);
    box-shadow: 0 0 0 3px rgba(0, 124, 232, 0.15);
}

.input-password {
    padding-right: 48px;
}

.btn-toggle-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--brand-blue-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.link-esqueci {
    color: var(--brand-blue-btn);
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    display: inline-block;
    margin-top: 4px;
}

.login-actions-footer {
    margin-top: auto;
    padding-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-primary-blue {
    width: 100%;
    height: 52px;
    background-color: var(--brand-blue-btn);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-primary-blue:active {
    background-color: #006ecf;
    transform: scale(0.985);
}

.btn-primary-blue.loading {
    pointer-events: none;
    opacity: 0.85;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    animation: rotateSpinner 0.8s linear infinite;
    margin-right: 10px;
}

.btn-secondary-outline {
    width: 100%;
    height: 52px;
    background-color: #ffffff;
    color: var(--brand-blue-btn);
    border: 2px solid var(--brand-blue-btn);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-secondary-outline:active {
    background-color: #f0f7ff;
    transform: scale(0.985);
}

/* ======================================================== */
/* MODAL DINÂMICO PARA COMANDOS DO ADMIN */
/* ======================================================== */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background-color: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 340px;
    padding: 24px 20px 20px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-logo-area {
    margin: 0 auto 16px auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-logo-area img {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 178, 222, 0.35);
    object-fit: contain;
    display: block;
}

.modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #E6F6FB;
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.modal-body {
    font-size: 14px;
    color: #555555;
    line-height: 1.5;
    margin-bottom: 22px;
}

.modal-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background-color: var(--brand-blue-btn);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.modal-btn:active {
    transform: scale(0.98);
    background-color: #006ecf;
}

@keyframes popIn {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ======================================================== */
/* OVERLAY GLOBAL DA PROGRESSBAR (5 MINUTOS) */
/* ======================================================== */
.global-progress-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.global-progress-overlay.active {
    display: flex;
}

.global-progress-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px 22px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1.5px solid rgba(0, 180, 220, 0.25);
}

.progress-sync-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #EFF8FF;
    border: 2px solid #BFDBFE;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px auto;
}

.sync-rotating-svg {
    animation: rotateSpinner 2.2s linear infinite;
}

.global-progress-title {
    font-size: 19px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.35;
    margin-bottom: 8px;
}

.global-progress-subtitle {
    font-size: 13.5px;
    color: #64748B;
    line-height: 1.45;
    margin-bottom: 22px;
}

.progress-widget-container {
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    padding: 14px 14px 12px 14px;
    margin-bottom: 18px;
}

.progress-bar-track {
    width: 100%;
    height: 12px;
    background: #E2E8F0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #007CE8 0%, #00B4DC 50%, #10B981 100%);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    transition: width 0.4s ease-out;
}

.progress-bar-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmerProgress 1.5s infinite ease-in-out;
}

.progress-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    font-weight: 700;
}

.progress-percent-label {
    color: #007CE8;
    font-size: 15px;
    font-weight: 800;
}

.progress-estimate-label {
    color: #64748B;
    font-size: 12px;
}

.progress-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #059669;
    font-size: 12px;
    font-weight: 700;
    background: #ECFDF5;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #A7F3D0;
}

/* ======================================================== */
/* OVERLAY GLOBAL DE CONFIRMAÇÃO FINAL */
/* ======================================================== */
.global-confirm-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.global-confirm-overlay.active {
    display: flex;
}

.global-confirm-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 26px 20px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1.5px solid #38BDF8;
}

/* ======================================================== */
/* BANNER DE NOTIFICAÇÃO PUSH ESTILO IPHONE / iOS */
/* ======================================================== */
.ios-push-banner {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translate(-50%, -150px);
    width: calc(100% - 24px);
    max-width: 380px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 12px 16px 8px 16px;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    transition: transform 0.42s cubic-bezier(0.175, 0.885, 0.32, 1.2), opacity 0.3s ease;
}

.ios-push-banner.active {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.ios-push-banner.swiping-up {
    transition: none; /* Acompanha o dedo instantaneamente */
}

.ios-push-banner.dismissing {
    transform: translate(-50%, -160px) !important;
    opacity: 0 !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease !important;
}

.ios-push-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.ios-push-app-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ios-push-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #007CE8;
    padding: 2.5px;
    object-fit: contain;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.ios-push-app-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.2px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

.ios-push-time {
    font-size: 11.5px;
    color: #8E8E93;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

.ios-push-content {
    font-size: 13.5px;
    line-height: 1.4;
    color: #1F2937;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    margin-top: 3px;
    font-weight: 450;
    word-break: break-word;
    text-align: left;
}

.ios-push-drag-bar {
    width: 38px;
    height: 4px;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 2px;
    margin: 8px auto 2px auto;
}

