
*{
box-sizing:border-box;
font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}

body{
margin:0;
background:#0b1220;
min-height:100vh;
display:flex;
align-items:center;
justify-content:center;
padding:20px;
color:#fff;
}

.container{
width:100%;
display:flex;
justify-content:center;
}

.card{
width:100%;
max-width:420px;
background:#111827;
border-radius:18px;
padding:32px 26px;
box-shadow:0 25px 50px rgba(0,0,0,.6);
}

.logo-box{
display:flex;
justify-content:center;
margin-bottom:22px;
}

.logo{
max-width:140px;
width:100%;
height:auto;
object-fit:contain;
}

.field{
margin-bottom:18px;
}

.field label{
font-size:13px;
opacity:.8;
}

.field input{
width:100%;
padding:14px;
margin-top:6px;
border-radius:10px;
border:1px solid #1f2937;
background:#020617;
color:#fff;
font-size:16px;
outline:none;
transition:.2s;
}

.field input:focus{
border-color:#2563eb;
box-shadow:0 0 0 2px rgba(37,99,235,.3);
}

.remember{
font-size:13px;
margin-bottom:20px;
}

.btn-primary{
width:100%;
padding:15px;
border:none;
border-radius:12px;
background:#2563eb;
color:#fff;
font-size:16px;
cursor:pointer;
transition:.15s;
}

.btn-primary:hover{
background:#1d4ed8;
}

.btn-primary:active{
transform:scale(.96);
}

.btn-secondary{
display:block;
text-align:center;
padding:14px;
border-radius:12px;
background:#1f2937;
color:#fff;
text-decoration:none;
margin-top:16px;
transition:.15s;
}

.btn-secondary:hover{
background:#374151;
}

.btn-secondary:active{
transform:scale(.96);
}

.btn-ghost{
display:block;
text-align:center;
padding:14px;
border-radius:12px;
border:1px solid #334155;
color:#fff;
text-decoration:none;
margin-top:10px;
transition:.15s;
}

.btn-ghost:hover{
background:#0f172a;
}

.btn-ghost:active{
transform:scale(.96);
}

.erro{
background:#dc2626;
padding:12px;
border-radius:10px;
margin-bottom:16px;
font-size:14px;
text-align:center;
}

@media (max-width:420px){

.card{
padding:26px 20px;
}

.logo{
max-width:120px;
}

}


body.sheet-open{
overflow:hidden;
}

.cadastro-body{
padding:16px;
}

.cadastro-card{
max-width:440px;
padding:24px 20px 22px;
}

.wizard-head{
display:flex;
align-items:flex-start;
justify-content:space-between;
gap:16px;
margin-bottom:16px;
}

.wizard-kicker{
font-size:12px;
text-transform:uppercase;
letter-spacing:.08em;
color:#93c5fd;
margin-bottom:4px;
}

.wizard-title{
margin:0;
font-size:24px;
line-height:1.1;
font-weight:700;
}

.step-badge{
min-width:58px;
height:34px;
display:flex;
align-items:center;
justify-content:center;
border-radius:999px;
background:#0f172a;
border:1px solid #1e3a8a;
font-size:13px;
font-weight:700;
color:#dbeafe;
}

.progress-wrap{
margin-bottom:16px;
}

.progress-bar{
width:100%;
height:8px;
background:#0b1220;
border-radius:999px;
overflow:hidden;
}

.progress-bar span{
display:block;
width:16.66%;
height:100%;
background:linear-gradient(90deg,#2563eb,#60a5fa);
border-radius:999px;
transition:width .25s ease;
}

.inline-alert{
background:rgba(220,38,38,.15);
border:1px solid rgba(239,68,68,.35);
color:#fecaca;
padding:12px 14px;
border-radius:12px;
margin-bottom:14px;
font-size:14px;
}

.hidden{
display:none !important;
}

.wizard-steps{
position:relative;
min-height:220px;
}

.wizard-step{
display:none;
animation:fadeStep .22s ease;
}

.wizard-step.active{
display:block;
}

@keyframes fadeStep{
from{opacity:0;transform:translateY(8px);}
to{opacity:1;transform:translateY(0);}
}

.field-label{
display:block;
font-size:14px;
font-weight:600;
color:#dbeafe;
margin-bottom:8px;
}

.text-input{
width:100%;
padding:15px 16px;
border-radius:14px;
border:1px solid #1f2937;
background:#020617;
color:#fff;
font-size:16px;
outline:none;
transition:.2s;
}

.text-input:focus{
border-color:#2563eb;
box-shadow:0 0 0 3px rgba(37,99,235,.18);
}

.readonly-input{
opacity:.82;
}

.field-help{
margin-top:8px;
font-size:12px;
color:#94a3b8;
}

.mt-16{
margin-top:16px;
}

.select-box{
width:100%;
min-height:58px;
border:none;
border-radius:16px;
padding:16px;
background:#020617;
border:1px solid #1f2937;
color:#fff;
display:flex;
align-items:center;
justify-content:space-between;
gap:12px;
font-size:16px;
cursor:pointer;
text-align:left;
transition:.2s;
}

.select-box:active{
transform:scale(.985);
}

.select-arrow{
font-size:24px;
line-height:1;
opacity:.65;
}

.wizard-actions{
display:flex;
gap:12px;
margin-top:18px;
}

.btn-inline{
margin-top:0;
}

.btn-inline.hidden{
display:none !important;
}

.cadastro-footer-link{
text-align:center;
margin-top:16px;
}

.cadastro-footer-link a{
color:#93c5fd;
text-decoration:none;
font-size:14px;
}

.sheet-backdrop{
position:fixed;
inset:0;
background:rgba(2,6,23,.6);
backdrop-filter:blur(2px);
z-index:90;
}

.bottom-sheet{
position:fixed;
left:0;
right:0;
bottom:0;
z-index:100;
background:#0f172a;
border-top-left-radius:24px;
border-top-right-radius:24px;
box-shadow:0 -18px 40px rgba(0,0,0,.45);
padding:10px 16px 18px;
max-height:82vh;
overflow:auto;
animation:sheetUp .2s ease;
}

@keyframes sheetUp{
from{transform:translateY(18px);opacity:0;}
to{transform:translateY(0);opacity:1;}
}

.sheet-handle{
width:48px;
height:5px;
background:#334155;
border-radius:999px;
margin:4px auto 12px;
}

.sheet-header{
display:flex;
align-items:center;
justify-content:space-between;
gap:12px;
margin-bottom:14px;
color:#fff;
}

.sheet-close{
border:none;
background:transparent;
color:#93c5fd;
font-size:14px;
cursor:pointer;
}

.sheet-search{
margin-bottom:12px;
}

.sheet-list{
display:flex;
flex-direction:column;
gap:10px;
}

.sheet-item{
width:100%;
padding:15px 16px;
border:none;
border-radius:16px;
background:#111827;
border:1px solid #1f2937;
color:#fff;
text-align:left;
cursor:pointer;
transition:.16s;
}

.sheet-item:active{
transform:scale(.985);
border-color:#2563eb;
}

.sheet-item-title{
display:block;
font-size:15px;
font-weight:700;
margin-bottom:4px;
}

.sheet-item-code{
display:block;
font-size:12px;
color:#94a3b8;
}

.sheet-empty{
padding:18px 10px;
text-align:center;
color:#94a3b8;
font-size:14px;
}

@media (min-width:768px){
.bottom-sheet{
max-width:460px;
left:50%;
right:auto;
transform:translateX(-50%);
border-radius:24px;
bottom:20px;
}
}


/* Ajustes finos cadastro */
.wizard-actions .btn-ghost{
background:#0b1220;
border:1px solid #334155;
color:#e5eefc;
}

.wizard-actions .btn-ghost:hover{
background:#111c30;
}

.wizard-actions .btn-ghost:active{
background:#16233b;
transform:scale(.98);
}

.wizard-actions .btn-primary{
box-shadow:0 12px 24px rgba(37,99,235,.22);
}

.bottom-sheet{
padding:12px 14px 18px;
background:linear-gradient(180deg,#0f172a 0%, #111827 100%);
}

.sheet-header{
margin-bottom:12px;
}

.sheet-header strong{
font-size:16px;
letter-spacing:.01em;
}

.sheet-search .text-input{
border-radius:16px;
background:#020817;
border:1px solid #243041;
padding:14px 15px;
}

.sheet-list{
gap:12px;
padding-bottom:6px;
}

.sheet-item{
padding:16px 16px;
border-radius:18px;
background:linear-gradient(180deg,#172133 0%, #111827 100%);
border:1px solid #263244;
box-shadow:0 10px 22px rgba(0,0,0,.22);
}

.sheet-item:hover{
border-color:#3b82f6;
background:linear-gradient(180deg,#1a2740 0%, #13203a 100%);
}

.sheet-item:active{
transform:scale(.985);
border-color:#60a5fa;
box-shadow:0 8px 18px rgba(37,99,235,.18);
}

.sheet-item-title{
font-size:15px;
line-height:1.3;
color:#f8fafc;
}

.sheet-item-code{
margin-top:2px;
font-size:12px;
color:#a9b8cf;
}

.sheet-empty{
padding:20px 12px;
border-radius:16px;
background:#111827;
border:1px solid #1f2937;
}

@media (max-width: 480px){
  .bottom-sheet{
    padding:10px 12px 16px;
    border-top-left-radius:22px;
    border-top-right-radius:22px;
  }

  .sheet-search .text-input{
    font-size:16px;
    padding:14px 14px;
  }

  .sheet-list{
    gap:10px;
  }

  .sheet-item{
    padding:15px 14px;
    border-radius:16px;
  }

  .sheet-item-title{
    font-size:14px;
  }

  .sheet-item-code{
    font-size:11px;
  }
}



/* Ajuste nome em caixa alta e campo de data mais bonito */
#nome{
text-transform:uppercase;
}

.date-input-wrap{
position:relative;
}

.text-input-date{
appearance:none;
-webkit-appearance:none;
min-height:56px;
padding-right:52px;
background:
linear-gradient(180deg, rgba(37,99,235,.06), rgba(37,99,235,0)) padding-box,
#020617;
border:1px solid #243041;
border-radius:16px;
color:#f8fafc;
box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
}

.text-input-date::-webkit-calendar-picker-indicator{
opacity:0;
position:absolute;
right:0;
width:56px;
height:56px;
cursor:pointer;
}

.date-input-wrap::after{
content:"📅";
position:absolute;
right:16px;
top:50%;
transform:translateY(-50%);
font-size:18px;
pointer-events:none;
filter:saturate(.8);
}

.text-input-date:focus{
border-color:#3b82f6;
box-shadow:0 0 0 3px rgba(37,99,235,.18), 0 10px 24px rgba(37,99,235,.08);
}

.text-input-date::-webkit-datetime-edit,
.text-input-date::-webkit-datetime-edit-fields-wrapper,
.text-input-date::-webkit-datetime-edit-text,
.text-input-date::-webkit-datetime-edit-month-field,
.text-input-date::-webkit-datetime-edit-day-field,
.text-input-date::-webkit-datetime-edit-year-field{
color:#f8fafc;
}

.text-input-date::-moz-focus-inner{
border:0;
}



/* Padrão global de mensagens */
.toast-stack{
position:fixed;
left:50%;
bottom:20px;
transform:translateX(-50%);
width:calc(100% - 28px);
max-width:440px;
display:flex;
flex-direction:column;
gap:12px;
z-index:9999;
pointer-events:none;
}

.app-toast{
display:flex;
align-items:center;
gap:14px;
padding:14px 14px;
border-radius:22px;
box-shadow:0 18px 38px rgba(2,6,23,.28);
border:1px solid rgba(255,255,255,.08);
backdrop-filter:blur(8px);
transform:translateY(10px) scale(.98);
opacity:0;
transition:transform .22s ease, opacity .22s ease;
pointer-events:auto;
background:#f8fafc;
color:#0f172a;
}

.app-toast.is-visible{
transform:translateY(0) scale(1);
opacity:1;
}

.app-toast.is-leaving{
transform:translateY(8px) scale(.98);
opacity:0;
}

.app-toast-icon{
width:46px;
height:46px;
min-width:46px;
border-radius:999px;
display:flex;
align-items:center;
justify-content:center;
font-size:24px;
font-weight:800;
background:#e2e8f0;
color:#0f172a;
box-shadow:inset 0 1px 0 rgba(255,255,255,.6);
}

.app-toast-content{
flex:1;
min-width:0;
}

.app-toast-message{
font-size:15px;
font-weight:700;
line-height:1.25;
}

.app-toast-close{
border:none;
background:transparent;
color:inherit;
font-size:28px;
line-height:1;
cursor:pointer;
padding:0 2px;
opacity:.56;
}

.app-toast-success .app-toast-icon{
background:#22c55e;
color:#fff;
}

.app-toast-error .app-toast-icon{
background:#f97316;
color:#fff;
}

.app-toast-info .app-toast-icon,
.app-toast-question .app-toast-icon{
background:#3b82f6;
color:#fff;
}

@media (max-width:480px){
  .toast-stack{
    width:calc(100% - 20px);
    bottom:14px;
    gap:10px;
  }

  .app-toast{
    padding:13px 12px;
    border-radius:20px;
  }

  .app-toast-icon{
    width:42px;
    height:42px;
    min-width:42px;
    font-size:22px;
  }

  .app-toast-message{
    font-size:14px;
  }
}
\n\n
/* Index refinado */
.index-card{
max-width:460px;
}

.home-list{
display:flex;
flex-direction:column;
gap:12px;
}

.contrib-btn{
width:100%;
min-height:82px;
display:flex;
align-items:center;
gap:14px;
padding:16px 16px;
border:none;
border-radius:18px;
background:linear-gradient(180deg,#172133 0%, #111827 100%);
border:1px solid #263244;
box-shadow:0 12px 24px rgba(0,0,0,.22);
color:#f8fafc;
text-align:left;
cursor:pointer;
text-decoration:none;
transition:.18s;
}

.contrib-btn:hover{
border-color:#3b82f6;
background:linear-gradient(180deg,#1a2740 0%, #13203a 100%);
}

.contrib-btn:active{
transform:scale(.985);
border-color:#60a5fa;
}

.contrib-link{
display:flex;
}

.contrib-icon{
width:48px;
height:48px;
min-width:48px;
border-radius:14px;
display:flex;
align-items:center;
justify-content:center;
font-size:24px;
background:rgba(37,99,235,.14);
box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

.contrib-texts{
display:flex;
flex-direction:column;
gap:4px;
flex:1;
min-width:0;
}

.contrib-texts strong{
font-size:16px;
line-height:1.2;
font-weight:700;
color:#f8fafc;
}

.contrib-texts small{
font-size:12px;
line-height:1.2;
color:#9db0c9;
}

.contrib-arrow{
font-size:26px;
line-height:1;
color:#7ea8ff;
opacity:.9;
}

.amount-screen{
background:linear-gradient(180deg,#1d4ed8 0%, #1e40af 100%);
border-radius:24px;
padding:18px 16px 22px;
box-shadow:0 16px 30px rgba(30,64,175,.28);
margin-bottom:16px;
}

.amount-kicker{
font-size:13px;
color:#dbeafe;
opacity:.94;
margin-bottom:12px;
text-align:right;
}

.amount-display{
font-size:54px;
line-height:1;
text-align:center;
font-weight:300;
letter-spacing:-.04em;
color:#fff;
min-height:62px;
display:flex;
align-items:center;
justify-content:center;
}

.amount-keypad{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:12px;
}

.keypad-btn{
min-height:74px;
border:none;
border-radius:18px;
background:linear-gradient(180deg,#172133 0%, #111827 100%);
border:1px solid #263244;
color:#f8fafc;
font-size:36px;
font-weight:300;
box-shadow:0 10px 22px rgba(0,0,0,.2);
cursor:pointer;
transition:.16s;
}

.keypad-btn:active{
transform:scale(.985);
border-color:#60a5fa;
}

.keypad-btn-action{
font-size:24px;
font-weight:700;
}

.index-summary-card{
padding:16px;
border-radius:18px;
background:linear-gradient(180deg,#172133 0%, #111827 100%);
border:1px solid #263244;
box-shadow:0 10px 22px rgba(0,0,0,.18);
}

.summary-row{
display:flex;
align-items:flex-start;
justify-content:space-between;
gap:12px;
padding:10px 0;
border-bottom:1px solid rgba(148,163,184,.12);
}

.summary-row:last-child{
border-bottom:none;
padding-bottom:0;
}

.summary-row span{
font-size:13px;
color:#94a3b8;
}

.summary-row strong{
font-size:15px;
font-weight:700;
text-align:right;
color:#f8fafc;
}

.pix-card{
padding:16px;
border-radius:20px;
background:linear-gradient(180deg,#172133 0%, #111827 100%);
border:1px solid #263244;
box-shadow:0 10px 22px rgba(0,0,0,.18);
}

.pix-status{
font-size:14px;
font-weight:700;
color:#dbeafe;
margin-bottom:12px;
}

.pix-box{
min-height:190px;
border-radius:18px;
background:#0b1220;
border:1px dashed #334155;
display:flex;
align-items:center;
justify-content:center;
padding:16px;
}

.pix-placeholder{
word-break:break-word;
text-align:center;
font-size:14px;
line-height:1.5;
color:#cbd5e1;
}

@media (max-width:480px){
  .contrib-btn{
    min-height:76px;
    padding:14px 14px;
    border-radius:16px;
  }

  .contrib-icon{
    width:44px;
    height:44px;
    min-width:44px;
    font-size:22px;
  }

  .contrib-texts strong{
    font-size:15px;
  }

  .amount-display{
    font-size:48px;
    min-height:56px;
  }

  .amount-keypad{
    gap:10px;
  }

  .keypad-btn{
    min-height:68px;
    font-size:34px;
    border-radius:16px;
  }
}



/* Pix QR / resultado */
.pix-qr-wrap{
display:flex;
justify-content:center;
margin-bottom:14px;
}

.pix-qr-image{
width:220px;
height:220px;
max-width:100%;
border-radius:18px;
background:#fff;
padding:10px;
box-shadow:0 10px 24px rgba(0,0,0,.18);
}

.pix-actions{
margin-top:14px;
}

.pix-copy-btn{
width:100%;
}

.pix-result-card{
padding:22px 18px;
border-radius:22px;
background:linear-gradient(180deg,#172133 0%, #111827 100%);
border:1px solid #263244;
box-shadow:0 10px 22px rgba(0,0,0,.18);
text-align:center;
}

.pix-result-icon{
width:72px;
height:72px;
margin:0 auto 14px;
border-radius:999px;
display:flex;
align-items:center;
justify-content:center;
font-size:40px;
font-weight:800;
color:#fff;
}

.pix-result-title{
font-size:24px;
font-weight:800;
line-height:1.15;
color:#f8fafc;
margin-bottom:8px;
}

.pix-result-text{
font-size:15px;
line-height:1.35;
color:#cbd5e1;
}

.pix-result-success .pix-result-icon{
background:#22c55e;
}

.pix-result-error .pix-result-icon{
background:#f97316;
}

@media (max-width:480px){
  .pix-qr-image{
    width:200px;
    height:200px;
  }

  .pix-result-title{
    font-size:22px;
  }
}



/* Countdown + aprovação */
.pix-countdown-wrap{
margin-bottom:14px;
text-align:center;
}

.pix-countdown-label{
font-size:12px;
text-transform:uppercase;
letter-spacing:.08em;
color:#93c5fd;
margin-bottom:6px;
}

.pix-countdown{
font-size:30px;
font-weight:800;
letter-spacing:.04em;
color:#f8fafc;
}

.pix-countdown.is-ending{
color:#f97316;
}

.pix-result-card.is-approved{
animation:approvedPop .5s ease, approvedGlow 1.2s ease-in-out infinite alternate;
}

@keyframes approvedPop{
0%{transform:scale(.82);opacity:0;}
60%{transform:scale(1.05);opacity:1;}
100%{transform:scale(1);}
}

@keyframes approvedGlow{
from{box-shadow:0 10px 22px rgba(0,0,0,.18), 0 0 0 rgba(34,197,94,.0);}
to{box-shadow:0 12px 28px rgba(0,0,0,.22), 0 0 24px rgba(34,197,94,.18);}
}



/* Layout tipo aplicativo sem barra de rolagem */
html,
body{
width:100%;
height:100%;
overflow:hidden;
}

body{
min-height:100dvh;
height:100dvh;
}

.container{
width:100%;
max-width:100vw;
min-height:100dvh;
height:100dvh;
padding:12px;
display:flex;
align-items:center;
justify-content:center;
overflow:hidden;
}

.card,
.cadastro-card,
.index-card{
width:min(100%, 460px);
max-width:460px;
max-height:calc(100dvh - 24px);
overflow:hidden;
display:flex;
flex-direction:column;
justify-content:flex-start;
}

.wizard-steps{
flex:1;
min-height:0;
overflow:hidden;
display:flex;
flex-direction:column;
}

.wizard-step{
flex:1;
min-height:0;
overflow:hidden;
}

.wizard-step.active{
display:flex;
flex-direction:column;
justify-content:flex-start;
}

.home-list,
.amount-keypad,
.index-summary-card,
.pix-card{
width:100%;
}

.home-list{
gap:10px;
}

.contrib-btn{
min-height:72px;
padding:14px 14px;
}

.contrib-icon{
width:42px;
height:42px;
min-width:42px;
font-size:21px;
}

.contrib-texts strong{
font-size:15px;
}

.contrib-texts small{
font-size:11px;
}

.amount-screen{
padding:14px 14px 16px;
margin-bottom:12px;
border-radius:20px;
}

.amount-display{
font-size:clamp(38px, 7vw, 54px);
min-height:48px;
}

.amount-keypad{
gap:10px;
grid-template-columns:repeat(3,1fr);
}

.keypad-btn{
min-height:clamp(56px, 8.4vh, 74px);
font-size:clamp(28px, 5vw, 36px);
border-radius:16px;
}

.index-summary-card{
padding:14px;
border-radius:16px;
}

.summary-row{
padding:8px 0;
}

.pix-card{
padding:14px;
border-radius:18px;
}

.pix-qr-image{
width:min(46vw, 220px);
height:min(46vw, 220px);
}

.pix-box{
min-height:110px;
max-height:140px;
overflow:auto;
}

.pix-placeholder{
font-size:13px;
}

.wizard-actions{
margin-top:14px;
flex-shrink:0;
}

.btn-inline,
.btn-primary,
.btn-ghost,
.btn-secondary{
min-height:50px;
}

.bottom-sheet{
max-height:min(78dvh, 680px);
}

.sheet-list{
max-height:52dvh;
overflow:auto;
padding-right:2px;
}

.sheet-item{
padding:14px 14px;
}

.logo-box{
margin-bottom:14px;
}

.logo{
max-width:120px;
max-height:72px;
object-fit:contain;
}

.wizard-head{
margin-bottom:12px;
}

.wizard-title{
font-size:clamp(22px, 5.2vw, 28px);
}

.inline-alert{
padding:10px 12px;
margin-bottom:12px;
font-size:13px;
}

.text-input,
.select-box{
min-height:52px;
}

.textarea-input{
min-height:84px;
max-height:120px;
}

.toast-stack{
max-width:min(440px, calc(100vw - 20px));
}

@media (max-height: 760px){
  .container{
    padding:10px;
  }

  .card,
  .cadastro-card,
  .index-card{
    max-height:calc(100dvh - 20px);
    padding:18px 14px 16px;
    border-radius:18px;
  }

  .logo{
    max-width:106px;
    max-height:62px;
  }

  .wizard-head{
    margin-bottom:10px;
  }

  .wizard-kicker{
    font-size:11px;
  }

  .wizard-title{
    font-size:clamp(20px, 4.8vw, 25px);
    line-height:1.05;
  }

  .progress-wrap{
    margin-bottom:12px;
  }

  .field-label{
    margin-bottom:6px;
    font-size:13px;
  }

  .text-input,
  .select-box{
    min-height:48px;
    padding:13px 14px;
    border-radius:14px;
  }

  .contrib-btn{
    min-height:66px;
    padding:12px 13px;
    border-radius:16px;
  }

  .contrib-icon{
    width:38px;
    height:38px;
    min-width:38px;
    font-size:19px;
    border-radius:12px;
  }

  .contrib-texts strong{
    font-size:14px;
  }

  .contrib-texts small{
    font-size:10px;
  }

  .amount-screen{
    padding:12px 12px 14px;
    margin-bottom:10px;
    border-radius:18px;
  }

  .amount-kicker{
    margin-bottom:8px;
    font-size:12px;
  }

  .amount-display{
    font-size:clamp(34px, 6.2vw, 46px);
    min-height:42px;
  }

  .amount-keypad{
    gap:8px;
  }

  .keypad-btn{
    min-height:clamp(50px, 7.4vh, 64px);
    font-size:clamp(24px, 4.6vw, 32px);
    border-radius:14px;
  }

  .index-summary-card,
  .pix-card,
  .pix-result-card{
    padding:12px;
    border-radius:16px;
  }

  .summary-row{
    padding:7px 0;
  }

  .summary-row span{
    font-size:12px;
  }

  .summary-row strong{
    font-size:14px;
  }

  .pix-qr-wrap{
    margin-bottom:10px;
  }

  .pix-qr-image{
    width:min(40vw, 190px);
    height:min(40vw, 190px);
    border-radius:14px;
  }

  .pix-status{
    margin-bottom:8px;
    font-size:13px;
  }

  .pix-countdown{
    font-size:24px;
  }

  .pix-box{
    min-height:92px;
    max-height:120px;
    border-radius:14px;
    padding:12px;
  }

  .pix-result-icon{
    width:58px;
    height:58px;
    margin-bottom:10px;
    font-size:30px;
  }

  .pix-result-title{
    font-size:20px;
    margin-bottom:6px;
  }

  .pix-result-text{
    font-size:14px;
  }

  .wizard-actions{
    margin-top:12px;
    gap:10px;
  }

  .btn-inline,
  .btn-primary,
  .btn-ghost,
  .btn-secondary{
    min-height:46px;
    padding:12px 14px;
    border-radius:14px;
  }
}

@media (max-width: 380px){
  .container{
    padding:8px;
  }

  .card,
  .cadastro-card,
  .index-card{
    max-height:calc(100dvh - 16px);
    padding:16px 12px 14px;
  }

  .logo{
    max-width:96px;
    max-height:56px;
  }

  .wizard-title{
    font-size:clamp(18px, 5vw, 22px);
  }

  .step-badge{
    min-width:52px;
    height:30px;
    font-size:12px;
  }

  .contrib-btn{
    min-height:62px;
    padding:11px 12px;
  }

  .contrib-icon{
    width:34px;
    height:34px;
    min-width:34px;
    font-size:17px;
  }

  .contrib-texts strong{
    font-size:13px;
  }

  .contrib-texts small{
    font-size:10px;
  }

  .amount-display{
    font-size:clamp(30px, 9vw, 40px);
  }

  .keypad-btn{
    min-height:48px;
    font-size:26px;
  }

  .text-input,
  .select-box{
    min-height:46px;
    font-size:15px;
  }

  .pix-qr-image{
    width:min(44vw, 168px);
    height:min(44vw, 168px);
  }
}



/* Index extras */
.top-actions{
display:flex;
justify-content:flex-end;
margin-bottom:6px;
}

.top-action-btn{
display:inline-flex;
align-items:center;
justify-content:center;
min-height:38px;
padding:0 14px;
border-radius:999px;
background:#0b1220;
border:1px solid #243041;
color:#dbeafe;
text-decoration:none;
font-size:13px;
font-weight:700;
}

.home-greeting{
margin-bottom:14px;
}

.historico-sheet{
max-height:min(84dvh, 760px);
}

.historico-toolbar{
display:flex;
flex-direction:column;
gap:14px;
margin-bottom:14px;
}

.historico-headline{
padding:14px 16px;
border-radius:16px;
background:linear-gradient(180deg,#172133 0%, #111827 100%);
border:1px solid #263244;
}

.historico-total-label{
font-size:12px;
text-transform:uppercase;
letter-spacing:.08em;
color:#93c5fd;
margin-bottom:4px;
}

.historico-total-value{
font-size:24px;
font-weight:800;
color:#f8fafc;
}

.historico-filtros{
display:flex;
flex-direction:column;
gap:12px;
}

.switch-row{
display:flex;
align-items:center;
gap:10px;
padding:12px 14px;
border-radius:14px;
background:#111827;
border:1px solid #263244;
color:#e5eefc;
font-size:14px;
}

.switch-row input{
width:18px;
height:18px;
accent-color:#2563eb;
}

.historico-datas{
display:grid;
grid-template-columns:1fr 1fr;
gap:10px;
}

.historico-consultar-btn{
width:100%;
}

.historico-grid-wrap{
flex:1;
min-height:0;
overflow:hidden;
}

.historico-grid{
height:100%;
overflow:auto;
display:flex;
flex-direction:column;
gap:10px;
padding-right:2px;
}

.historico-row{
padding:14px;
border-radius:16px;
background:linear-gradient(180deg,#172133 0%, #111827 100%);
border:1px solid #263244;
box-shadow:0 10px 22px rgba(0,0,0,.14);
}

.historico-row-top,
.historico-row-main{
display:flex;
align-items:flex-start;
justify-content:space-between;
gap:12px;
}

.historico-row-main{
margin-top:8px;
}

.historico-row-main strong{
font-size:15px;
color:#f8fafc;
}

.historico-row-main span{
font-size:13px;
color:#9fb0c7;
}

.historico-row-meta{
margin-top:10px;
display:flex;
flex-direction:column;
gap:3px;
font-size:12px;
color:#94a3b8;
}

.historico-status{
display:inline-flex;
align-items:center;
justify-content:center;
min-height:26px;
padding:0 10px;
border-radius:999px;
font-size:11px;
font-weight:800;
text-transform:uppercase;
letter-spacing:.05em;
background:#1e293b;
color:#e2e8f0;
}

.historico-status.aprovado{
background:rgba(34,197,94,.16);
color:#86efac;
}

.historico-status.expirado{
background:rgba(249,115,22,.16);
color:#fdba74;
}

.historico-valor{
font-size:15px;
color:#f8fafc;
}

.historico-empty{
padding:18px 12px;
text-align:center;
color:#94a3b8;
border-radius:16px;
background:#111827;
border:1px solid #263244;
}

@media (max-width:480px){
  .historico-datas{
    grid-template-columns:1fr;
  }

  .historico-total-value{
    font-size:22px;
  }

  .historico-row{
    padding:12px;
  }
}



/* Index shell uniforme */
.index-shell{
width:min(100%, 460px);
max-width:460px;
max-height:calc(100dvh - 24px);
height:calc(100dvh - 24px);
display:flex;
flex-direction:column;
padding:14px 14px 16px;
border-radius:22px;
background:#111827;
box-shadow:0 25px 50px rgba(0,0,0,.6);
overflow:hidden;
}

.app-header-fixed{
flex-shrink:0;
}

.app-logo-box{
margin-bottom:10px;
}

.index-head{
align-items:flex-start;
margin-bottom:10px;
}

.index-head-text{
flex:1;
min-width:0;
}

.home-greeting-fixed{
margin-bottom:0;
}

.app-stage{
flex:1;
min-height:0;
display:flex;
flex-direction:column;
overflow:hidden;
}

.app-stage-inner{
flex:1;
min-height:0;
overflow:hidden;
display:flex;
}

.index-steps-equal{
height:100%;
min-height:0;
width:100%;
}

.step-screen{
height:100%;
min-height:0;
display:flex;
flex-direction:column;
justify-content:flex-start;
}

.step-home{
justify-content:flex-start;
}

.step-amount .amount-keypad{
flex:1;
align-content:stretch;
}

.step-pix .pix-card,
.step-summary .index-summary-card,
.step-result .pix-result-card{
height:100%;
}

.step-pix .pix-card,
.step-summary .index-summary-card,
.step-result .pix-result-card,
.step-details{
display:flex;
flex-direction:column;
}

.step-details .index-summary-card{
margin-top:auto;
}

.top-actions{
margin-bottom:2px;
}

@media (max-height: 760px){
  .index-shell{
    height:calc(100dvh - 20px);
    max-height:calc(100dvh - 20px);
    padding:12px 12px 14px;
    border-radius:18px;
  }

  .app-logo-box{
    margin-bottom:8px;
  }

  .index-head{
    margin-bottom:8px;
  }
}

@media (max-width: 380px){
  .index-shell{
    width:100%;
    height:calc(100dvh - 16px);
    max-height:calc(100dvh - 16px);
    padding:10px 10px 12px;
  }
}
