/* ==========================================
   BRADESCO APP DESIGN — fiel ao app oficial
   Red: #CC092F | White: #fff | Gray: #f4f4f6
   ========================================== */

/* ── TOKENS ── */
:root {
    --red:        #CC092F;
    --red-dark:   #A00723;
    --red-deeper: #7A0519;
    --red-light:  #E8193F;
    --red-pale:   #fce8ec;

    --white: #ffffff;
    --gray-bg: #f4f4f6;
    --gray-card: #ffffff;
    --gray-border: #e8e8ec;
    --gray-text: #6b6b78;
    --dark-text: #1a1a2e;

    --green: #16a34a;
    --green-light: #22c55e;
    --yellow: #d97706;
    --yellow-light: #fbbf24;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 20px;
    --r-xl: 26px;
    --r-full: 9999px;

    --shadow-sm: 0 1px 4px rgba(0,0,0,0.08), 0 2px 10px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

    --t: 0.22s cubic-bezier(0.4,0,0.2,1);

    --header-h: 58px;
}

/* ── RESET ── */
*, *::before, *::after {
    -webkit-box-sizing: border-box; box-sizing: border-box;
    margin: 0; padding: 0;
}

html {
    -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font);
    background: var(--gray-bg);
    color: var(--dark-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    touch-action: manipulation;
}

a { text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
input { font-family: inherit; font-size: 16px; border-radius: 0; -webkit-appearance: none; appearance: none; outline: none; }
img { display: block; max-width: 100%; height: auto; }

/* ==========================================
   ACCESS SCREEN
   ========================================== */
.access-screen {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--gray-bg);
    display: -webkit-flex; display: flex;
    -webkit-flex-direction: column; flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.access-screen.hidden { display: none; }

/* Red top */
.access-top {
    background: -webkit-linear-gradient(160deg, var(--red-dark) 0%, var(--red) 60%, var(--red-light) 100%);
    background: linear-gradient(160deg, var(--red-dark) 0%, var(--red) 60%, var(--red-light) 100%);
    color: #fff;
    padding: max(env(safe-area-inset-top, 0px), 0px) 0 0;
    position: relative;
    overflow: hidden;
}

/* Background wave texture in red section */
.access-top::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -10%; right: -10%;
    height: 120px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
}

.access-top-inner {
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    -webkit-justify-content: space-between; justify-content: space-between;
    padding: 14px 20px 0;
    position: relative; z-index: 1;
}

.access-bell {
    width: 40px; height: 40px;
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    -webkit-justify-content: center; justify-content: center;
    color: rgba(255,255,255,0.85);
}

.access-brand {
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    gap: 3px;
    position: absolute; left: 50%; -webkit-transform: translateX(-50%); transform: translateX(-50%);
}

.bradesco-logo-svg {
    display: block;
    fill: currentColor;
    color: #ffffff;
    flex-shrink: 0;
}

.access-brand .bradesco-logo-svg {
    height: 25px;
    width: 25px;
}

.access-brand-name {
    font-size: 1.25rem; font-weight: 800;
    color: #ffffff; letter-spacing: -0.02em;
}

/* Greeting area (replaces "Meu saldo") */
.access-greeting-area {
    text-align: center;
    padding: 28px 20px 20px;
    position: relative; z-index: 1;
}

.access-greeting-label {
    font-size: 0.875rem; font-weight: 600;
    color: rgba(255,255,255,0.80);
    margin-bottom: 12px;
}

.access-balance-bar {
    display: -webkit-inline-flex; display: inline-flex;
    -webkit-align-items: center; align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.75);
}

.access-code-bar-dots {
    display: -webkit-flex; display: flex;
    gap: 6px;
}

.access-code-bar-dots span {
    width: 28px; height: 8px;
    background: rgba(255,255,255,0.35);
    border-radius: var(--r-full);
}

/* Icon row */
.access-icons-row {
    display: -webkit-flex; display: flex;
    -webkit-justify-content: center; justify-content: center;
    gap: 32px;
    padding: 0 20px 32px;
    position: relative; z-index: 1;
}

.access-icon-item {
    display: -webkit-flex; display: flex;
    -webkit-flex-direction: column; flex-direction: column;
    -webkit-align-items: center; align-items: center;
    gap: 6px;
}

.access-icon-circle {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.22);
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    -webkit-justify-content: center; justify-content: center;
    color: #ffffff;
}

.access-icon-item span {
    font-size: 0.68rem; font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-align: center;
}

/* Wave */
.app-wave {
    position: relative;
    height: 48px;
    overflow: hidden;
    margin-top: -2px;
    z-index: 10;
    will-change: transform;
    transition: transform 0.08s ease-out;
}

.wave-track {
    position: absolute;
    top: 0; left: 0;
    width: 200%; height: 100%;
    display: -webkit-flex; display: flex;
}

.wave-track svg {
    width: 50%;
    height: 100%;
    display: block;
}

.wave-track-1 {
    z-index: 2;
    -webkit-animation: waveMoveLeft 12s linear infinite;
    animation: waveMoveLeft 12s linear infinite;
}

.wave-track-2 {
    z-index: 1;
    -webkit-animation: waveMoveRight 18s linear infinite;
    animation: waveMoveRight 18s linear infinite;
}

@-webkit-keyframes waveMoveLeft {
    0% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
    100% { -webkit-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); }
}
@keyframes waveMoveLeft {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

@-webkit-keyframes waveMoveRight {
    0% { -webkit-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); }
    100% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
}
@keyframes waveMoveRight {
    0% { transform: translate3d(-50%, 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

/* Form area */
.access-form-area {
    background: var(--white);
    padding: 28px 20px 36px;
    -webkit-flex: 1; flex: 1;
    padding-bottom: max(36px, env(safe-area-inset-bottom, 0px));
}

.access-form-title {
    font-size: 1.35rem; font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 6px;
    letter-spacing: -0.025em;
}

.access-form-desc {
    font-size: 0.875rem; color: var(--gray-text);
    line-height: 1.6; margin-bottom: 24px;
}

.access-code-group {
    display: -webkit-flex; display: flex;
    gap: 10px; margin-bottom: 16px;
    -webkit-justify-content: center; justify-content: center;
}

.access-code-input {
    width: 52px; height: 64px;
    text-align: center; font-size: 1.6rem; font-weight: 800;
    border: 2px solid var(--gray-border);
    border-radius: var(--r-md);
    background: #fafafa;
    color: var(--dark-text);
    caret-color: var(--red);
    -webkit-transition: border-color var(--t), -webkit-box-shadow var(--t);
    transition: border-color var(--t), box-shadow var(--t);
}

.access-code-input:focus {
    border-color: var(--red);
    -webkit-box-shadow: 0 0 0 3px rgba(204,9,47,0.12);
    box-shadow: 0 0 0 3px rgba(204,9,47,0.12);
    background: #fff; outline: none;
}

.access-code-input.error {
    border-color: var(--red);
    -webkit-animation: inputShake 0.45s ease;
    animation: inputShake 0.45s ease;
}

@-webkit-keyframes inputShake {
    0%,100%{ -webkit-transform:translateX(0); }
    20%{ -webkit-transform:translateX(-6px); }
    40%{ -webkit-transform:translateX(6px); }
    60%{ -webkit-transform:translateX(-4px); }
    80%{ -webkit-transform:translateX(4px); }
}
@keyframes inputShake {
    0%,100%{ transform:translateX(0); }
    20%{ transform:translateX(-6px); }
    40%{ transform:translateX(6px); }
    60%{ transform:translateX(-4px); }
    80%{ transform:translateX(4px); }
}

.access-error {
    display: none;
    -webkit-align-items: center; align-items: center;
    -webkit-justify-content: center; justify-content: center;
    gap: 6px;
    color: var(--red); font-size: 0.84rem; font-weight: 600;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: var(--red-pale);
    border-radius: var(--r-sm);
}
.access-error.show { display: -webkit-flex; display: flex; }

/* ── SHARED BUTTONS ── */
.app-btn-primary {
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    -webkit-justify-content: center; justify-content: center;
    gap: 8px;
    width: 100%; padding: 16px;
    background: var(--red);
    color: #ffffff;
    border-radius: var(--r-full);
    font-size: 1rem; font-weight: 700;
    min-height: 52px;
    -webkit-box-shadow: 0 4px 16px rgba(204,9,47,0.30);
    box-shadow: 0 4px 16px rgba(204,9,47,0.30);
    -webkit-transition: opacity var(--t), -webkit-transform var(--t);
    transition: opacity var(--t), transform var(--t);
    border: none;
    -webkit-appearance: none; appearance: none;
    font-family: inherit;
    cursor: pointer;
    touch-action: manipulation;
}
.app-btn-primary:active { opacity: 0.88; -webkit-transform: scale(0.98); transform: scale(0.98); }

.app-btn-outline {
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    -webkit-justify-content: center; justify-content: center;
    gap: 8px;
    width: 100%; padding: 14px;
    border: 1.5px solid var(--red);
    color: var(--red);
    border-radius: var(--r-full);
    font-size: 0.95rem; font-weight: 700;
    background: transparent;
    min-height: 50px;
    -webkit-transition: background var(--t);
    transition: background var(--t);
    font-family: inherit; cursor: pointer;
    touch-action: manipulation;
}
.app-btn-outline:active { background: var(--red-pale); }

/* ==========================================
   MAIN CONTENT
   ========================================== */
.main-content { display: none; }
.main-content.active {
    display: block;
    -webkit-animation: fadeIn 0.35s ease;
    animation: fadeIn 0.35s ease;
}

@-webkit-keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

/* ── APP HEADER ── */
.app-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--header-h);
    background: var(--red);
    padding-top: env(safe-area-inset-top, 0px);
    -webkit-box-shadow: 0 2px 12px rgba(122,5,25,0.35);
    box-shadow: 0 2px 12px rgba(122,5,25,0.35);
}

.app-header-inner {
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    -webkit-justify-content: space-between; justify-content: space-between;
    height: 100%;
    padding: 0 16px;
    max-width: 600px; margin: 0 auto;
}

.app-sair-btn {
    font-size: 0.875rem; font-weight: 600;
    color: rgba(255,255,255,0.88);
    min-width: 40px; min-height: 40px;
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
}
.app-sair-btn:active { color: #fff; }

.app-header-brand {
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    gap: 3px;
    position: absolute; left: 50%;
    -webkit-transform: translateX(-50%); transform: translateX(-50%);
}

.app-header-brand .bradesco-logo-svg {
    height: 22px;
    width: 22px;
}

.app-brand-text {
    font-size: 1.1rem; font-weight: 800;
    color: #ffffff; letter-spacing: -0.02em;
    white-space: nowrap;
}

.app-bell-btn {
    width: 40px; height: 40px;
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    -webkit-justify-content: center; justify-content: center;
    color: rgba(255,255,255,0.88);
    position: relative;
}
.app-bell-btn:active { color: #fff; }

.bell-alert-dot {
    position: absolute; top: 8px; right: 8px;
    width: 8px; height: 8px;
    background: #ffffff;
    border-radius: 50%;
    border: 2px solid var(--red);
    -webkit-animation: dotBlink 2s infinite;
    animation: dotBlink 2s infinite;
}

@-webkit-keyframes dotBlink { 0%,100%{opacity:1} 50%{opacity:0.3} }
@keyframes dotBlink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ── RED SECTION ── */
.app-red-section {
    background: -webkit-linear-gradient(160deg, var(--red-dark) 0%, var(--red) 65%, var(--red-light) 100%);
    background: linear-gradient(160deg, var(--red-dark) 0%, var(--red) 65%, var(--red-light) 100%);
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-bottom: 0;
    color: #fff;
    position: relative;
    overflow: hidden;
    max-width: 600px; margin: 0 auto;
    width: 100%;
}

/* Decorative soft circle (like the wave in the screenshots) */
.app-red-section::before {
    content: '';
    position: absolute;
    bottom: -60px; left: -20%; right: -20%;
    height: 160px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
}

/* Greeting row */
.app-greeting {
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    -webkit-justify-content: space-between; justify-content: space-between;
    padding: 22px 0 6px;
    position: relative; z-index: 1;
}

.app-greeting-hello { font-size: 1rem; font-weight: 500; color: rgba(255,255,255,0.90); }
.app-greeting-name { font-weight: 700; color: #fff; }

.app-sair-mobile {
    font-size: 0.84rem; font-weight: 600;
    color: rgba(255,255,255,0.82);
    min-height: 36px; padding: 0 4px;
}

/* Status block (replaces "Meu saldo") */
.app-status-block {
    padding: 14px 0 20px;
    position: relative; z-index: 1;
}

.app-status-label {
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    gap: 6px;
    font-size: 0.78rem; font-weight: 700;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.app-status-bar {
    height: 8px;
    background: rgba(255,255,255,0.18);
    border-radius: var(--r-full);
    overflow: hidden;
    margin-bottom: 8px;
}

.app-status-bar-fill {
    height: 100%; width: 72%;
    background: -webkit-linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0.9));
    background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0.9));
    border-radius: var(--r-full);
    -webkit-animation: barGrow 1.2s cubic-bezier(0.22,1,0.36,1) both;
    animation: barGrow 1.2s cubic-bezier(0.22,1,0.36,1) both;
}

@-webkit-keyframes barGrow { from{width:0} }
@keyframes barGrow { from{width:0} }

.app-status-meta {
    display: -webkit-flex; display: flex;
    -webkit-justify-content: space-between; justify-content: space-between;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.65);
}

.app-status-threat strong { color: #ffc2c2; }

/* Quick action icons (4 items like Extrato / Open Finance / Meus Bancos) */
.app-quick-actions {
    display: -webkit-flex; display: flex;
    -webkit-justify-content: space-around; justify-content: space-around;
    padding: 4px 0 28px;
    position: relative; z-index: 1;
}

.app-quick-item {
    display: -webkit-flex; display: flex;
    -webkit-flex-direction: column; flex-direction: column;
    -webkit-align-items: center; align-items: center;
    gap: 7px;
    min-width: 60px;
    -webkit-transition: opacity var(--t); transition: opacity var(--t);
}
.app-quick-item:active { opacity: 0.7; }

.app-quick-icon {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.22);
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    -webkit-justify-content: center; justify-content: center;
    color: #ffffff;
}

.app-quick-item span {
    font-size: 0.7rem; font-weight: 600;
    color: rgba(255,255,255,0.88);
    text-align: center;
    line-height: 1.2;
}

/* ── WAVE SEPARATOR ── */
.app-wave-separator {
    position: relative;
    height: 56px;
    overflow: hidden;
    max-width: 600px;
    margin: -1px auto 0;
    z-index: 5;
    will-change: transform;
    transition: transform 0.08s ease-out;
}

/* ── WHITE SECTION ── */
.app-white-section {
    background: var(--gray-bg);
    padding: 0 14px;
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
    padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
    max-width: 600px; margin: 0 auto;
}

/* ── APP CARD (generic) ── */
.app-card {
    background: var(--white);
    border-radius: var(--r-lg);
    -webkit-box-shadow: var(--shadow-md); box-shadow: var(--shadow-md);
    margin-bottom: 14px;
    overflow: hidden;
}

.app-card-header {
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    gap: 8px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--gray-border);
    font-size: 0.8rem; font-weight: 700;
    color: var(--gray-text);
    text-transform: uppercase; letter-spacing: 0.08em;
}

.app-card-badge {
    margin-left: auto;
    font-size: 0.65rem; font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--r-full);
}

.app-card-badge--alert {
    background: var(--red-pale);
    color: var(--red);
}

/* Info grid */
.app-info-grid { padding: 14px 18px 0; }

.app-info-row {
    display: -webkit-flex; display: flex;
    -webkit-justify-content: space-between; justify-content: space-between;
    -webkit-align-items: center; align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--gray-border);
    gap: 16px;
}
.app-info-row:last-child { border-bottom: none; }

.app-info-label {
    font-size: 0.78rem; font-weight: 600;
    color: var(--gray-text);
    -webkit-flex-shrink: 0; flex-shrink: 0;
}

.app-info-value {
    font-size: 0.9rem; font-weight: 700;
    color: var(--dark-text);
    text-align: right;
    word-break: break-all;
}

/* Threat pills */
.app-threat-row {
    display: -webkit-flex; display: flex;
    gap: 8px; -webkit-flex-wrap: wrap; flex-wrap: wrap;
    padding: 14px 18px;
}

.app-threat-pill {
    display: -webkit-inline-flex; display: inline-flex;
    -webkit-align-items: center; align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: var(--r-full);
    font-size: 0.7rem; font-weight: 700;
}

.app-threat-pill--red { background: var(--red-pale); color: var(--red); }
.app-threat-pill--gray { background: #f0f0f4; color: var(--gray-text); }

/* Card actions */
.app-card-actions {
    display: -webkit-flex; display: flex;
    -webkit-flex-direction: column; flex-direction: column;
    gap: 10px;
    padding: 14px 18px 18px;
}

/* ── SECTION LABEL ── */
.app-section-label {
    font-size: 0.88rem; font-weight: 700;
    color: var(--dark-text);
    margin: 6px 0 12px;
    letter-spacing: -0.01em;
}

/* ── FAVORITOS GRID (8 icons, 4×2) ── */
.app-fav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    background: var(--white);
    border-radius: var(--r-lg);
    -webkit-box-shadow: var(--shadow-md); box-shadow: var(--shadow-md);
    padding: 18px 10px;
    margin-bottom: 14px;
}

.app-fav-item {
    display: -webkit-flex; display: flex;
    -webkit-flex-direction: column; flex-direction: column;
    -webkit-align-items: center; align-items: center;
    gap: 7px;
    -webkit-transition: opacity var(--t); transition: opacity var(--t);
}
.app-fav-item:active { opacity: 0.65; }

.app-fav-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--red-pale);
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    -webkit-justify-content: center; justify-content: center;
    color: var(--red);
}

.app-fav-item span {
    font-size: 0.66rem; font-weight: 600;
    color: var(--dark-text);
    text-align: center; line-height: 1.2;
}

/* ── NEWS BANNER ── */
.app-news-banner {
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    gap: 14px;
    background: var(--white);
    border-radius: var(--r-lg);
    -webkit-box-shadow: var(--shadow-md); box-shadow: var(--shadow-md);
    padding: 16px 18px;
    margin-bottom: 20px;
    -webkit-transition: opacity var(--t); transition: opacity var(--t);
    overflow: hidden;
}
.app-news-banner:active { opacity: 0.80; }

.app-news-icon {
    width: 52px; height: 52px;
    border-radius: var(--r-md);
    background: var(--red-pale);
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    -webkit-justify-content: center; justify-content: center;
    color: var(--red);
    -webkit-flex-shrink: 0; flex-shrink: 0;
}

.app-news-text {
    -webkit-flex: 1; flex: 1;
    display: -webkit-flex; display: flex;
    -webkit-flex-direction: column; flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.app-news-text strong { font-size: 0.9rem; font-weight: 700; color: var(--dark-text); }
.app-news-text span { font-size: 0.75rem; color: var(--gray-text); line-height: 1.4; }

.app-news-arrow { color: var(--red); -webkit-flex-shrink: 0; flex-shrink: 0; }

/* ── SECTION ── */
.app-section { margin-bottom: 20px; }

.app-section-header {
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    -webkit-justify-content: space-between; justify-content: space-between;
    margin-bottom: 12px;
}

.app-section-title {
    font-size: 1rem; font-weight: 800;
    color: var(--dark-text); letter-spacing: -0.015em;
}

.app-section-tag {
    font-size: 0.7rem; font-weight: 700;
    color: var(--gray-text);
    background: #f0f0f4;
    padding: 3px 10px; border-radius: var(--r-full);
}

/* ── STEP CARDS ── */
.app-steps-list {
    display: -webkit-flex; display: flex;
    -webkit-flex-direction: column; flex-direction: column;
    gap: 10px;
}

.app-step-card {
    background: var(--white);
    border-radius: var(--r-lg);
    -webkit-box-shadow: var(--shadow-sm); box-shadow: var(--shadow-sm);
    padding: 18px 18px 16px;
    border-left: 3px solid var(--red);
    -webkit-transition: -webkit-box-shadow var(--t); transition: box-shadow var(--t);
}

.app-step-head {
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.app-step-num {
    font-size: 1.4rem; font-weight: 900;
    color: var(--red); letter-spacing: -0.04em;
    line-height: 1;
    min-width: 32px;
}

.app-step-icon-wrap {
    width: 42px; height: 42px;
    border-radius: var(--r-sm);
    background: var(--red-pale);
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    -webkit-justify-content: center; justify-content: center;
    color: var(--red);
    -webkit-flex-shrink: 0; flex-shrink: 0;
}

.app-step-icon-wrap--green {
    background: rgba(22,163,74,0.12);
    color: var(--green);
}

.app-step-head-text { -webkit-flex: 1; flex: 1; min-width: 0; }
.app-step-head-text h3 { font-size: 0.9rem; font-weight: 700; color: var(--dark-text); line-height: 1.3; }

.app-step-status {
    display: inline-block;
    font-size: 0.65rem; font-weight: 700;
    padding: 2px 8px; border-radius: var(--r-full);
    margin-top: 3px;
}
.app-step-status--pending { background: rgba(217,119,6,0.12); color: var(--yellow); }
.app-step-status--wait    { background: #f0f0f4; color: var(--gray-text); }
.app-step-status--done    { background: rgba(22,163,74,0.12); color: var(--green); }

.app-step-desc {
    font-size: 0.84rem; color: var(--gray-text);
    line-height: 1.65; margin-bottom: 14px;
}

.app-step-btn {
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    -webkit-justify-content: center; justify-content: center;
    gap: 8px;
    width: 100%; padding: 13px;
    background: var(--red);
    color: #fff; border-radius: var(--r-full);
    font-size: 0.9rem; font-weight: 700;
    min-height: 48px;
    -webkit-transition: opacity var(--t); transition: opacity var(--t);
    font-family: inherit; cursor: pointer; border: none;
    -webkit-appearance: none; appearance: none;
}
.app-step-btn:active { opacity: 0.85; }

/* Check item */
.app-check-item {
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    gap: 10px;
    font-size: 0.875rem; color: var(--gray-text);
    cursor: pointer;
    min-height: 40px;
}

.app-checkmark {
    width: 22px; height: 22px;
    border-radius: 6px;
    border: 2px solid var(--gray-border);
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    -webkit-justify-content: center; justify-content: center;
    -webkit-flex-shrink: 0; flex-shrink: 0;
}
.app-checkmark--done {
    background: var(--green-light);
    border-color: var(--green-light);
    color: #fff;
}

/* ── VERIFY CARDS ── */
.app-verify-list {
    display: -webkit-flex; display: flex;
    -webkit-flex-direction: column; flex-direction: column;
    gap: 10px;
}

.app-verify-card {
    background: var(--white);
    border-radius: var(--r-lg);
    -webkit-box-shadow: var(--shadow-sm); box-shadow: var(--shadow-sm);
    padding: 18px;
}

.app-verify-head {
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.app-verify-icon {
    width: 42px; height: 42px;
    border-radius: var(--r-sm);
    background: var(--red-pale);
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    -webkit-justify-content: center; justify-content: center;
    color: var(--red);
    -webkit-flex-shrink: 0; flex-shrink: 0;
}

.app-verify-head h3 { font-size: 0.9rem; font-weight: 700; color: var(--dark-text); }

.app-verify-status {
    display: inline-block;
    font-size: 0.65rem; font-weight: 700;
    padding: 2px 8px; border-radius: var(--r-full);
    margin-top: 3px;
}
.app-verify-status--pending { background: rgba(217,119,6,0.12); color: var(--yellow); }
.app-verify-status--ok      { background: rgba(22,163,74,0.12); color: var(--green); }

.app-verify-card > p {
    font-size: 0.84rem; color: var(--gray-text);
    line-height: 1.65; margin-bottom: 14px;
}

/* Progress bar */
.app-progress-bar {
    height: 4px; background: #f0f0f4;
    border-radius: var(--r-full); overflow: hidden;
}
.app-progress-fill {
    height: 100%; background: var(--red);
    border-radius: var(--r-full);
    -webkit-transition: width 1s ease; transition: width 1s ease;
}

/* Code inputs */
.code-input-group {
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    gap: 6px; margin-bottom: 14px;
    -webkit-flex-wrap: nowrap; flex-wrap: nowrap;
}

.code-input {
    width: 40px; height: 50px;
    text-align: center; font-size: 1.2rem; font-weight: 700;
    border: 1.5px solid var(--gray-border);
    border-radius: var(--r-sm);
    background: #fafafa; color: var(--dark-text);
    caret-color: var(--red);
    -webkit-transition: border-color var(--t), -webkit-box-shadow var(--t);
    transition: border-color var(--t), box-shadow var(--t);
    -webkit-flex-shrink: 0; flex-shrink: 0;
}
.code-input:focus {
    border-color: var(--red);
    -webkit-box-shadow: 0 0 0 3px rgba(204,9,47,0.12);
    box-shadow: 0 0 0 3px rgba(204,9,47,0.12);
    background: #fff; outline: none;
}

.code-separator { color: #ccc; font-weight: 300; font-size: 1.2rem; -webkit-flex-shrink:0; flex-shrink:0; }

/* Upload area */
.app-upload-area {
    display: -webkit-flex; display: flex;
    -webkit-flex-direction: column; flex-direction: column;
    -webkit-align-items: center; align-items: center;
    gap: 8px; padding: 28px 16px;
    border: 2px dashed var(--gray-border);
    border-radius: var(--r-md);
    text-align: center; cursor: pointer;
    color: var(--gray-text);
    -webkit-transition: border-color var(--t), background var(--t);
    transition: border-color var(--t), background var(--t);
}
.app-upload-area:active { border-color: var(--red); background: var(--red-pale); }
.app-upload-area span { font-size: 0.875rem; font-weight: 600; }
.app-upload-area small { font-size: 0.72rem; color: #aaa; }

/* ── TIPS HORIZONTAL SCROLL ── */
.app-tips-section { margin-bottom: 20px; }

.app-tips-scroll {
    display: -webkit-flex; display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 12px;
    scroll-snap-type: x mandatory;
    /* hide scrollbar */
    scrollbar-width: none; -ms-overflow-style: none;
}
.app-tips-scroll::-webkit-scrollbar { display: none; }

.app-tip-card {
    background: var(--white);
    border-radius: var(--r-lg);
    -webkit-box-shadow: var(--shadow-sm); box-shadow: var(--shadow-sm);
    padding: 18px 16px;
    min-width: 200px; max-width: 220px;
    -webkit-flex-shrink: 0; flex-shrink: 0;
    scroll-snap-align: start;
}

.app-tip-emoji { font-size: 1.8rem; margin-bottom: 10px; line-height: 1; }
.app-tip-card h4 { font-size: 0.88rem; font-weight: 700; color: var(--dark-text); margin-bottom: 6px; }
.app-tip-card p { font-size: 0.78rem; color: var(--gray-text); line-height: 1.55; }

/* ── CONTACT LIST ── */
.app-contact-list {
    display: -webkit-flex; display: flex;
    -webkit-flex-direction: column; flex-direction: column;
    gap: 1px;
    background: var(--white);
    border-radius: var(--r-lg);
    -webkit-box-shadow: var(--shadow-md); box-shadow: var(--shadow-md);
    overflow: hidden;
}

.app-contact-card {
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
    -webkit-transition: background var(--t); transition: background var(--t);
}
.app-contact-card:last-child { border-bottom: none; }
.app-contact-card:active { background: #fafafa; }

.app-contact-icon {
    width: 46px; height: 46px;
    border-radius: var(--r-sm);
    background: var(--red-pale);
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    -webkit-justify-content: center; justify-content: center;
    color: var(--red);
    -webkit-flex-shrink: 0; flex-shrink: 0;
}

.app-contact-info { -webkit-flex: 1; flex: 1; min-width: 0; }
.app-contact-info h3 { font-size: 0.9rem; font-weight: 700; color: var(--dark-text); margin-bottom: 2px; }
.app-contact-info p { font-size: 0.82rem; color: var(--gray-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.app-contact-avail { font-size: 0.7rem; font-weight: 600; color: var(--green); }

.app-contact-arrow { color: #ccc; -webkit-flex-shrink: 0; flex-shrink: 0; }

.app-contact-btn {
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: var(--red);
    color: #fff; border-radius: var(--r-full);
    font-size: 0.8rem; font-weight: 700;
    -webkit-flex-shrink: 0; flex-shrink: 0;
    -webkit-transition: opacity var(--t); transition: opacity var(--t);
    font-family: inherit; cursor: pointer; border: none;
    -webkit-appearance: none; appearance: none;
}
.app-contact-btn:active { opacity: 0.85; }

/* ── FOOTER ── */
.app-footer {
    margin-top: 28px;
    text-align: center;
    padding: 28px 0 0;
    border-top: 1px solid var(--gray-border);
}

.app-footer-brand {
    display: -webkit-inline-flex; display: inline-flex;
    -webkit-align-items: center; align-items: center;
    gap: 5px;
    margin-bottom: 12px;
    font-size: 1.1rem; font-weight: 800;
    color: var(--red);
}

.app-footer-brand .bradesco-logo-svg {
    height: 26px;
    width: 26px;
}

.app-footer-desc { font-size: 0.8rem; color: var(--gray-text); line-height: 1.6; margin-bottom: 16px; }

.app-footer-links {
    display: -webkit-flex; display: flex;
    -webkit-justify-content: center; justify-content: center;
    -webkit-flex-wrap: wrap; flex-wrap: wrap;
    gap: 8px 20px; margin-bottom: 16px;
}
.app-footer-links a { font-size: 0.78rem; color: var(--gray-text); -webkit-transition: color var(--t); transition: color var(--t); min-height: 36px; display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center; }
.app-footer-links a:active { color: var(--red); }

.app-footer-copy { font-size: 0.72rem; color: #bbb; padding-bottom: 24px; }

/* ── SCROLL ANIMATIONS ── */
.animate-in {
    opacity: 0;
    -webkit-transform: translateY(20px); transform: translateY(20px);
    -webkit-animation: fadeInUp 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
    animation: fadeInUp 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
}
.delay-1 { -webkit-animation-delay: 0.10s; animation-delay: 0.10s; }
.delay-2 { -webkit-animation-delay: 0.20s; animation-delay: 0.20s; }
.delay-3 { -webkit-animation-delay: 0.30s; animation-delay: 0.30s; }

@-webkit-keyframes fadeInUp { to{ opacity:1; -webkit-transform:translateY(0); } }
@keyframes fadeInUp { to{ opacity:1; transform:translateY(0); } }

/* step/verify scroll-driven visibility */
.app-step-card, .app-verify-card, .app-tip-card, .app-contact-card { opacity: 1; }

/* ==========================================
   WIDER SCREENS — center & cap at 600px
   ========================================== */
@media (min-width: 600px) {
    .access-screen { max-width: 480px; left: 50%; right: auto; -webkit-transform: translateX(-50%); transform: translateX(-50%); border-radius: 0; -webkit-box-shadow: 0 0 60px rgba(0,0,0,0.15); box-shadow: 0 0 60px rgba(0,0,0,0.15); }
    body { background: #e8e8ee; }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        -webkit-animation-duration: 0.01ms !important; animation-duration: 0.01ms !important;
        -webkit-transition-duration: 0.01ms !important; transition-duration: 0.01ms !important;
    }
    .animate-in { opacity: 1; -webkit-transform: none; transform: none; }
}
