/* --- NOVOS ESTILOS PARA SPLASH E LOGIN --- */

/* Controle de Telas */
.screen {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow-y: auto;
    background-color: white;
}

.screen.active {
    display: block;
}

#main-app.screen.active {
    display: flex;
    flex-direction: column;
}

/* Estilo Splash */
#splash-screen {
    background-color: #ffffff;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

#splash-screen.active {
    display: flex;
}

.splash-content {
    text-align: center;
}

.splash-logo {
    width: 80px;
    margin-bottom: 15px;
}

.splash-text {
    font-size: 24px;
    color: #1a1a1a;
}

.pag-text-bold {
    font-weight: 700;
}

/* Estilo Tela Login */
.login-header {
    background-color: #00a859; /* Verde PagBank */
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: white;
    gap: 10px;
}

.header-logo-small {
    width: 30px;
    height: 30px;
}

.header-title {
    font-weight: 600;
    font-size: 18px;
    flex: 1;
}

.header-help {
    font-size: 24px;
}

.login-content {
    padding: 30px 25px;
}

.login-content h2 {
    font-size: 20px;
    margin-bottom: 35px;
    color: #333;
    text-align: center;
}

.input-group {
    margin-bottom: 25px;
    border-bottom: 1px solid #ccc;
}

.input-group label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    border: none;
    padding: 8px 0;
    font-size: 16px;
    outline: none;
}

.password-wrapper {
    display: flex;
    align-items: center;
}

.password-wrapper i {
    color: #0076bd;
    font-size: 20px;
}

.login-options {
    margin-bottom: 30px;
}

.remember-me {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #333;
}

.toggle-switch {
    width: 40px;
    height: 20px;
    background: #ddd;
    border-radius: 10px;
    position: relative;
}

.toggle-switch::after {
    content: '';
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    position: absolute;
    left: 1px;
    top: 1px;
}

.btn-primary-blue {
    width: 100%;
    background-color: #0076bd;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    cursor: pointer;
}

.btn-secondary-white {
    width: 100%;
    background-color: white;
    color: #0076bd;
    border: 2px solid #0076bd;
    padding: 13px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
}

.forgot-password {
    display: block;
    text-align: center;
    color: #0076bd;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* --- ESTILOS ORIGINAIS (MANTIDOS) --- */
:root {
    --pag-green: #00a859;
    --pag-dark-green: #008143;
    --pag-bg: #f5f6f8;
    --pag-text: #1a1a1a;
    --pag-gray: #666666;
    --pag-blue: #0076bd;
    --pag-yellow: #ffcc00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.app-container {
    background-color: var(--pag-bg);
    width: 100%;
    max-width: 414px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

header {
    background-color: green;
    color: white;
    padding-top: 15px;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

.profile-area {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid rgb(0, 85, 0);
    border-radius: 50px;
    background-color: rgb(0, 100, 0);
}

.profile-icon {
    width: 40px;
    height: 40px;
    background-image: url('pagbank.png');
    background-size: cover;
    background-position: center; 
    background-repeat: no-repeat;
    border-radius: 50%;
    border: 2px solid white;
}

.profile-text span { font-size: 13px; display: block; margin-right: 12px;}
.profile-text small { font-size: 12px; opacity: 0.9; }

.header-actions {
    display: flex;
    gap: 20px;
    font-size: 24px;
}

.tabs {
    display: flex;
    margin-top: 15px;
}

.tab {
    flex: 1;
    text-align: center;
    padding-bottom: 12px;
    font-size: 15px;
    font-weight: 500;
    opacity: 0.8;
}

.tab.active {
    opacity: 1;
    border-bottom: 3px solid white;
    margin-left: 12px;
}

main {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 100px;
}

/* SALDO AREA */
.balance-area {
    background-color: green;
    padding: 12px;
    color: white;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    margin-bottom: 15px;
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
}

.balance-content .label { font-size: 14px; margin-left: 5px }
.balance-content h1 { font-size: 28px; font-weight: 500; margin-left: 4px}

.btn-deposit {
    background-color: rgb(0, 85, 0);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
}

.statement-link {
    background-color: rgb(0, 85, 0);
    padding: 10px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.statement-link span {
    margin-left: 5px;
}

.open-finance-card {
    background-color: white;
    border-radius: 20px;
    display: flex;
    overflow: hidden; /* Garante que o fundo colorido respeite o arredondamento */
    height: 70px;
    align-items: center;
}

.of-icon-container {
    background-color: #62dab8; /* O verde água/menta da print */
    width: 70px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.of-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.of-text {
    display: flex;
    flex-direction: column;
}

.of-title {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
}

.of-link {
    color: #0076bd; /* Azul do link na print */
    font-size: 14px;
    font-weight: 500;
}

.of-close {
    color: #0076bd;
    font-size: 24px;
    cursor: pointer;
    margin-top: -15px; /* Alinha o X um pouco mais para cima como na print */
}

/* SHORTCUTS GRID */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 10px 15px;
}

.shortcut-card {
    background: white;
    padding: 20px 10px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0px 10px 10px 0px rgb(0, 0, 0, 0.1);
    position: relative;
}

.shortcut-card i { font-size: 28px; color: #1a1a1a; margin-bottom: 12px; }
.shortcut-card span { font-size: 12px; font-weight: 600; color: var(--pag-blue); line-height: 1.2; }

.badge {
    position: absolute;
    top: -5px;
    background: var(--pag-yellow);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

/* PROMO CARDS */
.promo-section {
    padding: 15px;
}

.tap-on-card {
    background: white;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.tap-on-card i { font-size: 24px; }
.tap-content { flex: 1; }
.tag { background: #e0f2f1; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 4px; color: var(--pag-dark-green); }
.tap-content strong { display: block; margin-top: 4px; font-size: 14px; }

.portability-card {
    background: white;
    border-radius: 15px;
    display: flex;
    padding: 15px;
    gap: 15px;
    border: 1px solid #eee;
}

.port-img img { width: 70px; height: 90px; border-radius: 8px; object-fit: cover; }
.port-content strong { font-size: 16px; display: block; margin-bottom: 5px; }
.port-content p { font-size: 13px; color: var(--pag-gray); margin-bottom: 10px; }
.port-content a { color: var(--pag-blue); font-weight: 700; text-decoration: none; font-size: 14px; }

.pagination-dots { display: flex; justify-content: center; gap: 6px; margin-top: 15px; }
.dot { width: 6px; height: 6px; background: #ddd; border-radius: 50%; }
.dot.active { width: 25px; border-radius: 10px; background: var(--pag-green); }

/* LIST ITEMS */
.action-list { background: white; margin-top: 15px; }
.list-item { padding: 20px; display: flex; gap: 15px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.list-item i { font-size: 24px; color: #1a1a1a; }
.item-text strong { display: block; font-size: 15px; margin-bottom: 5px; }
.item-text p { font-size: 13px; color: var(--pag-gray); margin-bottom: 8px; line-height: 1.4; }
.blue-link { color: var(--pag-blue); font-weight: 700; font-size: 14px; }
.no-icon { flex: 1; }
.badge-yellow { background: var(--pag-yellow); font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; display: inline-block; margin-bottom: 8px; }

/* HELP SECTION */
.help-section { background: white; margin-top: 15px; }
.row-link { padding: 18px 20px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid #eee; }
.row-link span { flex: 1; font-weight: 600; font-size: 15px; }
.row-link i:first-child { font-size: 22px; }

/* RATING */
.rating-section { background: white; padding: 30px 20px; margin-top: 15px; border-radius: 15px; border: 1px solid #eee; margin: 15px; }
.rating-section h3 { font-size: 18px; margin-bottom: 8px; }
.rating-section p { font-size: 13px; color: var(--pag-gray); margin-bottom: 20px; }
.stars { display: flex; gap: 10px; font-size: 32px; color: #ccc; margin-bottom: 10px; }
.rating-labels { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: #333; }

/* BOTTOM NAV */
.bottom-nav {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0 25px;
    border-top: 1px solid #eee;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--pag-gray);
    font-size: 10px;
    font-weight: 600;
}

.nav-item i { font-size: 24px; margin-bottom: 4px; }
.nav-item.active { color: #1a1a1a; position: relative; }
.nav-item.active::after { content: ''; width: 25px; height: 3px; background: var(--pag-green); position: absolute; top: -10px; }

/* Ocultar Saldo */
.balance-hidden {
    background-color: rgba(255,255,255,0.2);
    color: transparent !important;
    border-radius: 8px;
    user-select: none;
}