
*{box-sizing:border-box}
body{
    margin:0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg,#dcecf5);
    color:#002b45;
    font-size:14px;
}
a{color:inherit}
.page-wrap{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    padding:38px 14px;
}
.app-card{
    width:100%;
    max-width:520px;
    background:#fff;
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 3px 12px rgba(0,0,0,.14);
}
.logo-top{
    background:var(--header,#89c5fa);
    border-bottom:1px solid var(--header,#c4d7e3);
    padding:18px 20px 17px;
    text-align:center;
}
.logo-top img{
    max-width:180px;
    max-height:70px;
    object-fit:contain;
}
.title-bar{
    text-align:center;
    padding:17px 24px;
    border-bottom:1px solid #c9d7e2;
    font-weight:700;
    font-size:14px;
    color:var(--primary,#004c69);
}
.progress-wrap{
    padding:12px 24px 0;
}
.progress{
    width:100%;
    height:5px;
    border-radius:99px;
    background:#e1e5ea;
    overflow:hidden;
}
.progress span{
    display:block;
    height:100%;
    width:16.66%;
    background:var(--primary,#006b86);
    border-radius:99px;
    transition:.25s;
}
.step-title{
    padding:16px 24px 9px;
    font-size:16px;
    color:#001b35;
    border-bottom:1px solid #c9d7e2;
}
.form-body{
    padding:16px 24px 24px;
}
.field{margin-bottom:16px}
label{
    display:block;
    font-size:13px;
    color:#2d2d2f;
    margin-bottom:7px;
    font-weight:500;
}
input,select,textarea{
    width:100%;
    height:38px;
    border:1px solid #dfdfdf;
    border-radius:4px;
    background:#fff;
    padding:8px 10px;
    font-size:13px;
    color:#001b35;
    outline:none;
}
textarea{height:85px;resize:vertical}
input:focus,select:focus,textarea:focus{
    border-color:var(--primary,#006b86);
    box-shadow:0 0 0 2px rgba(0,107,134,.12);
}
input[readonly]{
    background:#f8fafc;
}
.form-actions{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding-top:14px;
}
.btn{
    border:0;
    border-radius:4px;
    height:40px;
    padding:0 24px;
    cursor:pointer;
    font-size:14px;
    font-weight:700;
}
.btn-primary{
    background:var(--primary,#006b86);
    color:#fff;
}
.btn-light{
    background:#fff;
    color:#32435a;
    border:1px solid #dfdfdf;
}
.info-box{
    border:1px solid #dfdfdf;
    border-radius:4px;
    padding:18px 16px;
    margin-bottom:22px;
    color:#334155;
    line-height:1.6;
}
.info-box h3{
    margin:0 0 6px;
    color:#0f172a;
    font-size:17px;
}
.alert-box{
    border:1px solid #b8d6ff;
    background:#edf5ff;
    color:#003ec5;
    border-radius:4px;
    padding:14px 16px;
    line-height:1.55;
    margin:10px 0 16px;
}
.radio-group{margin-bottom:22px}
.radio-group p{
    margin:0 0 10px;
    font-weight:700;
    color:#111827;
}
.radio-line{
    display:flex;
    align-items:flex-start;
    gap:8px;
    margin:8px 0;
    font-size:13px;
}
.radio-line input{
    width:auto;
    height:auto;
    margin-top:2px;
}
.two-cols{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}
.orange{color:#ff5a00;font-weight:500}
.terms{
    line-height:1.65;
    color:#002b45;
}
.check-line{
    display:flex;
    gap:8px;
    align-items:flex-start;
    margin:11px 0;
}
.check-line input{
    width:auto;
    height:auto;
    margin-top:3px;
}
.modal-overlay{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    z-index:999;
    align-items:center;
    justify-content:center;
    padding:18px;
}
.modal{
    width:100%;
    max-width:480px;
    background:#fff;
    border-radius:8px;
    padding:24px;
    color:#1f2937;
    box-shadow:0 10px 35px rgba(0,0,0,.25);
}
.modal h3{margin:0 0 18px}
.modal-actions{
    display:flex;
    justify-content:flex-end;
    gap:12px;
    margin-top:22px;
}
.summary-title{
    text-align:center;
    font-size:20px;
    margin:18px 0 20px;
    color:#0f172a;
}
.summary-box{
    border:1px solid #dfdfdf;
    border-radius:4px;
    padding:16px;
    line-height:1.55;
}
.summary-paper{
    background:#f3f4f6;
    padding:14px;
    border-radius:4px;
    margin:12px 0;
}
.summary-paper p{margin:8px 0}
.green{color:#03984d;font-weight:700}
.full-btn{
    width:100%;
    margin-top:12px;
}
.center{text-align:center}
.small-link{
    display:inline-block;
    margin-top:14px;
    color:#005d7b;
    cursor:pointer;
}
.qr-box{
    margin-top:14px;
    background:#f8fafc;
    border:1px solid #d5e1ea;
    border-radius:6px;
    padding:14px;
    word-break:break-all;
    font-size:12px;
}
.admin-wrap{
    max-width:980px;
    margin:30px auto;
    padding:0 14px;
}
.admin-card{
    background:#fff;
    border-radius:8px;
    box-shadow:0 2px 10px rgba(0,0,0,.12);
    padding:22px;
    margin-bottom:18px;
}
.table{
    width:100%;
    border-collapse:collapse;
    font-size:13px;
}
.table th,.table td{
    border-bottom:1px solid #e5edf4;
    padding:9px;
    text-align:left;
}
.admin-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}
@media(max-width:600px){
    .page-wrap{padding:8px 12px 0;justify-content:flex-start}
    .app-card{max-width:none;border-radius:0;box-shadow:none}
    .logo-top{padding:12px 18px}
    .logo-top img{max-height:54px}
    .title-bar{font-size:12px;padding:14px 18px}
    .progress-wrap,.step-title,.form-body{padding-left:17px;padding-right:17px}
    .two-cols,.admin-grid{grid-template-columns:1fr}
    .btn{padding:0 20px}
}


.pix-qrcode{
    display:flex;
    justify-content:center;
    margin:16px 0;
}
.pix-qrcode img{
    width:210px;
    height:210px;
    border:1px solid #d5e1ea;
    border-radius:8px;
    background:#fff;
    padding:8px;
}
.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    margin-top:14px;
}
.stat-box{
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:8px;
    padding:14px;
}
.stat-box strong{
    display:block;
    font-size:22px;
    color:var(--primary,#006b86);
    margin-bottom:4px;
}
@media(max-width:760px){
    .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:440px){
    .stats-grid{grid-template-columns:1fr}
    .pix-qrcode img{width:190px;height:190px}
}

.pix-value{text-align:center;font-size:17px;margin:8px 0 4px}
.pix-expire{text-align:center;color:#b45309;font-weight:700;margin:8px 0}
.pix-warning{text-align:center;color:#b91c1c;font-size:13px;line-height:1.45;margin:8px 0 12px}
.waiting-payment{display:flex;align-items:center;justify-content:center;gap:8px;margin:14px 0;font-weight:700;color:#334155}
.spinner{width:18px;height:18px;border:3px solid #dbeafe;border-top-color:var(--primary,#006b86);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
