* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

body {
    background-color: #f4f6fa;
    color: #2b2d42;
    display: flex;
    justify-content: center;
    padding: 20px 14px;
    min-height: 100vh;
}

/* Trava anti-zoom para smartphones (Apenas em campos de digitação, liberando os botões) */
input, select, textarea {
    font-size: 16px !important;
}

.container {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(27, 54, 93, 0.08);
    box-sizing: border-box;
}

.header {
    text-align: center;
    margin-bottom: 24px;
}

/* Identidade da Logo: "Fidelí" Laranja + "ssimo." Azul Marinho */
.logo {
    font-size: 2rem;
    font-weight: 800;
    color: #F39200;
    letter-spacing: -0.5px;
}

.logo span {
    color: #1A3B70;
}

.subtitle {
    font-size: 0.88rem;
    color: #6c757d;
    margin-top: 4px;
}

/* =============================================================
   BOTÕES GLOBAIS COMPACTOS E PROPORCIONAIS
   ============================================================= */
.btn-primary {
    width: 100%;
    height: 42px;
    padding: 0 16px;
    background: #F39200;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background: #df8400;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    background: #1A3B70;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-secondary:hover {
    background: #132b53;
}

.footer-creditos {
    text-align: center;
    font-size: 0.75rem;
    color: #a0aec0;
    margin-top: 24px;
}

.hidden {
    display: none !important;
}

.active {
    display: block !important;
}

/* =============================================================
   MODAL GLOBAL DE AVISOS / NOTIFICAÇÕES - FIDELÍSSIMO
   ============================================================= */
.fid-alert-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 99999;
    animation: fidAlertFadeIn 0.18s ease;
}

.fid-alert-card {
    background: #ffffff;
    width: 100%;
    max-width: 370px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(26, 59, 112, 0.28);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.fid-alert-topo {
    background: #1A3B70;
    color: #ffffff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 4px solid #F39200;
}

.fid-alert-topo.fid-tipo-erro {
    border-bottom-color: #e74c3c;
}

.fid-alert-topo.fid-tipo-sucesso {
    border-bottom-color: #27ae60;
}

.fid-alert-icone {
    font-size: 1.25rem;
    line-height: 1;
}

.fid-alert-titulo {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.fid-alert-corpo {
    padding: 20px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.fid-alert-msg {
    margin: 0;
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.45;
    white-space: pre-line;
    word-break: break-word;
}

.fid-alert-btn {
    width: auto !important;
    min-width: 140px;
    margin: 0 !important;
    padding: 0 24px !important;
    background: #1A3B70 !important;
    color: #ffffff !important;
}

.fid-alert-btn:hover {
    background: #132b53 !important;
}

@keyframes fidAlertFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Input e botões do Modal Global de PIN */
.fid-pin-input {
    width: 100%;
    max-width: 220px;
    padding: 11px 14px;
    border: 2px solid #1A3B70;
    border-radius: 10px;
    text-align: center;
    font-size: 1.4rem !important;
    font-weight: 800;
    letter-spacing: 6px;
    color: #1A3B70;
    background: #f8fafd;
    outline: none;
}

.fid-pin-input:focus {
    border-color: #F39200;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(243, 146, 0, 0.18);
}

.fid-pin-acoes {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.fid-pin-btn-cancelar {
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    height: 40px;
    padding: 0 16px;
    font-size: 0.86rem !important;
    font-weight: 700;
    color: #495057;
    cursor: pointer;
    min-width: 110px;
}

.fid-pin-btn-confirmar {
    width: auto !important;
    min-width: 120px;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    background: #1A3B70 !important;
}

/* Banner discreto de lembrete: pedido presencial sem WhatsApp no Anota AI */
.banner-lembrete-sem-whats {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-left: 4px solid #f59e0b;
    color: #78350f;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.84rem;
    line-height: 1.4;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.12);
}

.banner-lembrete-sem-whats.hidden {
    display: none !important;
}

.banner-lembrete-sem-whats-texto {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.btn-dispensar-lembrete-whats {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-dispensar-lembrete-whats:hover {
    background: #fde68a;
}