:root{
  --bg:#09090b;
  --bg2:#141417;
  --bg3:#1c1c20;
  --text:#fafafa;
  --muted:#a1a1aa;
  --muted-strong:#d4d4d8;
  --border:rgba(255,255,255,.09);
  --purple:#6366f1;
  --purple2:#8b5cf6;
  --purple-glow:rgba(139,92,246,.28);
  --green:#10b981;
  --yellow:#f59e0b;
  --danger:#ef4444;
  --surface:rgba(255,255,255,.04);
  --radius:18px;
  --safe-top:env(safe-area-inset-top,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;}
html,body{margin:0;padding:0;height:100%;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;overscroll-behavior-y:none;}
body{background-image:radial-gradient(ellipse at top,#17171d,#09090b);background-attachment:fixed;}
a{color:inherit;text-decoration:none;}
button,input,select,textarea{font:inherit;color:inherit;}
button{border:none;cursor:pointer;background:none;}
svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
h1,h2,h3,p{margin:0;}

#app{min-height:100vh;display:flex;flex-direction:column;}

.screen{flex:1;display:flex;flex-direction:column;padding:24px 20px calc(24px + var(--safe-bottom));padding-top:calc(24px + var(--safe-top));max-width:480px;margin:0 auto;width:100%;}
.screen-centered{justify-content:center;}

.brand{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:32px;}
.brand-logo-img{height:34px;width:auto;display:block;}

h1.title{font-size:24px;font-weight:700;letter-spacing:-.02em;margin-bottom:6px;}
p.subtitle{color:var(--muted);font-size:14px;line-height:1.5;margin-bottom:26px;}

.field{margin-bottom:16px;}
.field label{display:block;font-size:12.5px;font-weight:600;color:var(--muted-strong);margin-bottom:7px;}
.field input{width:100%;padding:14px 15px;background:var(--bg3);border:1px solid var(--border);border-radius:13px;font-size:15.5px;outline:none;transition:border-color .15s;}
.field input:focus{border-color:var(--purple2);}
.field select{width:100%;padding:14px 40px 14px 15px;background-color:var(--bg3);color:var(--text);border:1px solid var(--border);border-radius:13px;font-size:15.5px;outline:none;transition:border-color .15s;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:18px;}
.field select:focus{border-color:var(--purple2);}
.field select option{background:var(--bg3);color:var(--text);}
.field-hint{font-size:12px;color:var(--muted);margin-top:6px;}

.password-wrap{position:relative;}
.password-wrap input{padding-right:46px;}
.password-toggle{position:absolute;right:5px;top:5px;bottom:5px;width:36px;display:flex;align-items:center;justify-content:center;color:var(--muted);border-radius:9px;transition:all .15s;}
.password-toggle:hover{color:var(--text);background:var(--surface);}
.password-toggle .icone-olho{width:19px;height:19px;}

.captcha-wrap{display:flex;gap:8px;align-items:center;margin-bottom:10px;}
.captcha-img{flex:1;height:56px;width:100%;border-radius:11px;border:1px solid var(--border);background:var(--bg3);object-fit:cover;}
.captcha-refresh{flex-shrink:0;width:44px;height:44px;border-radius:11px;background:var(--surface);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--muted);transition:all .15s;}
.captcha-refresh:hover{color:var(--text);background:var(--surface-strong,var(--surface));}
.captcha-refresh svg{width:19px;height:19px;}
.field-error{font-size:12px;color:var(--danger);margin-top:6px;}

.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:15px 20px;border-radius:14px;font-size:15px;font-weight:600;transition:all .15s;}
.btn-primary{background:linear-gradient(135deg,var(--purple),var(--purple2));color:#fff;box-shadow:0 6px 20px var(--purple-glow);}
.btn-primary:active{transform:scale(.98);}
.btn-primary:disabled{opacity:.55;}
.btn-ghost{background:var(--surface);border:1px solid var(--border);color:var(--text);}
.btn-link{color:var(--purple2);font-weight:600;font-size:14px;padding:8px;width:auto;}

.alert{padding:12px 14px;border-radius:12px;font-size:13.5px;margin-bottom:18px;}
.alert-error{background:rgba(239,68,68,.12);border:1px solid rgba(239,68,68,.3);color:#fecaca;}
.alert-success{background:rgba(16,185,129,.12);border:1px solid rgba(16,185,129,.3);color:#a7f3d0;}

.link-row{text-align:center;margin-top:20px;font-size:13.5px;color:var(--muted);}

.card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:20px;margin-bottom:16px;}
.card-title{font-size:14px;font-weight:600;color:var(--muted-strong);margin-bottom:12px;text-transform:uppercase;letter-spacing:.04em;}

.otp-secret{font-family:ui-monospace,Consolas,monospace;font-size:18px;letter-spacing:.12em;text-align:center;background:var(--bg3);border:1px solid var(--border);border-radius:12px;padding:16px;margin:14px 0;word-break:break-all;}
.otp-input{text-align:center;font-size:26px;letter-spacing:.5em;font-family:ui-monospace,Consolas,monospace;}

.secret-copy-row{display:flex;align-items:center;gap:10px;background:var(--bg3);border:1px solid var(--border);border-radius:12px;padding:13px 14px;margin-top:14px;}
.secret-copy-row code{flex:1;font-family:ui-monospace,Consolas,monospace;font-size:14.5px;letter-spacing:.08em;word-break:break-all;}
.btn-outline-sm{flex-shrink:0;padding:9px 14px;font-size:12.5px;font-weight:600;border-radius:9px;background:var(--surface);border:1px solid var(--border);color:var(--text);transition:all .15s;}
.btn-outline-sm:hover{background:rgba(255,255,255,.08);}

.app-shell{flex:1;display:flex;flex-direction:column;}
.app-topbar{display:flex;align-items:center;gap:10px;padding:calc(16px + var(--safe-top)) 20px 14px;position:sticky;top:0;background:rgba(9,9,11,.75);backdrop-filter:blur(14px);z-index:10;border-bottom:1px solid var(--border);}
.app-topbar h1{font-size:18px;font-weight:700;flex:1;}
.topbar-logo{height:22px;width:auto;display:block;flex-shrink:0;}
.topbar-voltar{flex-shrink:0;width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:10px;color:var(--text);background:var(--surface);}
.topbar-voltar:hover{background:rgba(255,255,255,.08);}
.topbar-voltar svg{width:19px;height:19px;}
.topbar-spacer{width:34px;flex-shrink:0;}
.topbar-bell{position:relative;flex-shrink:0;width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:10px;color:var(--text);background:var(--surface);}
.topbar-bell:hover{background:rgba(255,255,255,.08);}
.topbar-bell svg{width:19px;height:19px;}
.topbar-badge{position:absolute;top:-3px;right:-3px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:var(--danger);color:#fff;font-size:9.5px;font-weight:700;display:flex;align-items:center;justify-content:center;line-height:1;border:2px solid var(--bg);}
.app-content{flex:1;padding:20px 20px calc(100px + var(--safe-bottom));max-width:520px;margin:0 auto;width:100%;}

.bottom-nav{position:fixed;left:0;right:0;bottom:0;display:flex;justify-content:space-around;background:rgba(9,9,11,.85);backdrop-filter:blur(16px);border-top:1px solid var(--border);padding:10px 6px calc(10px + var(--safe-bottom));z-index:20;}
.nav-btn{display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--muted);font-size:10.5px;font-weight:600;padding:4px 10px;border-radius:12px;transition:color .15s;flex:1;max-width:80px;}
.nav-btn.active{color:var(--purple2);}
.nav-btn svg{width:22px;height:22px;}

.stat-hero{background:linear-gradient(135deg,rgba(99,102,241,.18),rgba(139,92,246,.08));border:1px solid var(--border);border-radius:var(--radius);padding:24px;margin-bottom:18px;}
.stat-hero-label{font-size:12.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px;}
.stat-hero-value{font-size:32px;font-weight:800;letter-spacing:-.02em;}
.stat-hero-destaque{border-color:rgba(139,92,246,.35);box-shadow:0 8px 28px var(--purple-glow);}
.stat-hero-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;}
.stat-hero-header .stat-hero-label{margin-bottom:0;}
.btn-eye{flex-shrink:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:9px;color:var(--muted);background:rgba(255,255,255,.06);}
.btn-eye:hover{color:var(--text);}
.btn-eye svg{width:17px;height:17px;}

.saudacao{display:flex;align-items:center;gap:12px;margin-bottom:22px;}
.saudacao-emoji{font-size:28px;line-height:1;}
.saudacao-texto{font-size:13px;color:var(--muted);}
.saudacao-nome{font-size:20px;font-weight:700;letter-spacing:-.01em;}

.empty-block{text-align:center;padding:50px 20px;color:var(--muted);}

.lock-block{display:flex;flex-direction:column;align-items:center;text-align:center;padding:50px 20px;}
.lock-icon{width:64px;height:64px;border-radius:50%;background:rgba(239,68,68,.12);border:1px solid rgba(239,68,68,.3);display:flex;align-items:center;justify-content:center;margin-bottom:20px;}
.lock-icon svg{width:28px;height:28px;color:var(--danger);}
.empty-block svg{width:40px;height:40px;margin-bottom:12px;opacity:.5;}

.avatar-wrap{width:96px;margin:4px auto 24px;position:relative;}
.avatar-circle{width:96px;height:96px;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,var(--purple),var(--purple2));display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px var(--purple-glow);cursor:pointer;}
.avatar-circle img{width:100%;height:100%;object-fit:cover;display:block;}
.avatar-circle svg{width:44px;height:44px;color:#fff;}
.avatar-edit-btn{position:absolute;bottom:2px;right:2px;width:30px;height:30px;border-radius:50%;background:var(--bg3);border:2px solid var(--bg);display:flex;align-items:center;justify-content:center;color:var(--text);}
.avatar-edit-btn svg{width:14px;height:14px;}
.avatar-edit-btn:hover{background:var(--surface-strong,var(--bg2));}

.profile-row{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--border);}
.profile-row:last-child{border-bottom:none;}
.profile-row-label{color:var(--muted);font-size:13.5px;}
.profile-row-value{font-weight:600;font-size:13.5px;}

.badge{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;background:var(--purple-glow);color:var(--purple2);}

.install-icon-wrap{width:64px;height:64px;border-radius:18px;background:linear-gradient(135deg,var(--purple),var(--purple2));display:flex;align-items:center;justify-content:center;margin:0 auto 20px;box-shadow:0 8px 24px var(--purple-glow);}
.install-icon-wrap svg{width:30px;height:30px;color:#fff;}

.install-step{display:flex;align-items:flex-start;gap:12px;margin-bottom:14px;}
.install-step:last-child{margin-bottom:0;}
.install-step-num{flex-shrink:0;width:26px;height:26px;border-radius:50%;background:var(--purple-glow);color:var(--purple2);font-size:12.5px;font-weight:700;display:flex;align-items:center;justify-content:center;}
.install-step-text{font-size:13.5px;color:var(--muted-strong);line-height:1.5;padding-top:3px;}
.install-step-text strong{color:var(--text);font-weight:600;}

.spinner{width:22px;height:22px;border-radius:50%;border:2.5px solid rgba(255,255,255,.25);border-top-color:#fff;animation:spin .7s linear infinite;}
@keyframes spin{to{transform:rotate(360deg);}}

.toast{position:fixed;left:20px;right:20px;bottom:calc(90px + var(--safe-bottom));background:var(--bg2);border:1px solid var(--border);border-radius:14px;padding:13px 16px;font-size:13.5px;box-shadow:0 8px 30px rgba(0,0,0,.4);z-index:100;max-width:440px;margin:0 auto;}
.toast-error{border-color:rgba(239,68,68,.4);color:#fecaca;}
.toast-success{border-color:rgba(16,185,129,.4);color:#a7f3d0;}

.progress-track{height:8px;border-radius:999px;background:var(--surface);overflow:hidden;margin:10px 0 4px;}
.progress-fill{height:100%;background:linear-gradient(90deg,var(--purple),var(--purple2));border-radius:999px;transition:width .3s;}

.timeline{position:relative;padding:10px 0 2px;}
.timeline::before{content:'';position:absolute;top:6px;bottom:14px;left:50%;width:2px;background:linear-gradient(var(--purple2),var(--border));transform:translateX(-50%);}
.timeline-item{position:relative;width:50%;padding-bottom:22px;box-sizing:border-box;}
.timeline-esquerda{left:0;padding-right:18px;text-align:right;}
.timeline-direita{left:50%;padding-left:18px;text-align:left;}
.timeline-dot{position:absolute;top:16px;width:12px;height:12px;border-radius:50%;background:var(--purple2);box-shadow:0 0 0 4px var(--bg),0 0 10px var(--purple-glow);}
.timeline-esquerda .timeline-dot{right:-6px;}
.timeline-direita .timeline-dot{left:-6px;}
.timeline-card{display:inline-block;text-align:left;background:var(--bg2);border:1px solid var(--border);border-radius:14px;padding:12px 13px;max-width:100%;}
.timeline-premio{font-size:12.5px;font-weight:700;margin-bottom:6px;line-height:1.3;}
.timeline-valores{font-size:10.5px;color:var(--muted);margin-top:6px;}
.timeline-periodo{font-size:10px;color:var(--muted);margin-top:4px;text-transform:capitalize;}
.timeline-card .progress-track{margin:0;}

.tld-chips{display:flex;flex-wrap:wrap;gap:8px;}
.tld-chip{background:var(--bg3);border:1px solid var(--border);border-radius:10px;padding:8px 12px;font-size:12.5px;color:var(--muted-strong);}
.tld-chip strong{color:var(--text);}

.plano-card{padding:12px 0;border-bottom:1px solid var(--border);}
.plano-card:last-child{border-bottom:none;padding-bottom:0;}
.plano-nome{font-size:13.5px;font-weight:700;margin-bottom:3px;}
.plano-detalhe{font-size:12px;color:var(--muted);}

.sistema-card{margin-bottom:10px;transition:border-color .15s;}
.sistema-card:hover{border-color:var(--purple2);}
.sistema-icone{flex-shrink:0;width:44px;height:44px;border-radius:12px;background:var(--surface);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--purple2);overflow:hidden;}
.sistema-icone svg{width:22px;height:22px;}
.sistema-icone img{width:100%;height:100%;object-fit:cover;}
.sistema-lista-card{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--border);}
.sistema-lista-card:last-child{border-bottom:none;padding-bottom:0;}
.sistema-lista-nome{font-size:13.5px;font-weight:700;}
.sistema-lista-desc{font-size:12px;color:var(--muted);margin-top:2px;}

.pedido-card{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 0;border-bottom:1px solid var(--border);}
.pedido-card:last-child{border-bottom:none;}
.pedido-info{display:flex;flex-direction:column;gap:3px;}
.pedido-status{font-size:11.5px;color:var(--muted);}

.plataforma-row{cursor:pointer;transition:opacity .15s;}
.plataforma-row:active{opacity:.65;}
.plataforma-chevron{width:16px;height:16px;color:var(--muted);flex-shrink:0;}

.plataforma-header{display:flex;align-items:center;gap:13px;margin-bottom:20px;}
.plataforma-icone{flex-shrink:0;width:46px;height:46px;border-radius:14px;background:var(--surface);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--purple2);}
.plataforma-icone svg{width:22px;height:22px;}
.plataforma-nome{font-size:16.5px;font-weight:700;}
.plataforma-meta{font-size:12px;color:var(--muted);margin-top:2px;}
.plataforma-status-badge{margin-left:auto;flex-shrink:0;}

.chart-diario{display:flex;align-items:flex-end;gap:6px;height:120px;padding-top:8px;}
.chart-col{flex:1;display:flex;flex-direction:column;align-items:center;height:100%;min-width:0;}
.chart-bar-wrap{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center;}
.chart-bar{width:60%;max-width:26px;background:linear-gradient(180deg,var(--purple2),var(--purple));border-radius:6px 6px 2px 2px;min-height:3px;transition:height .3s;}
.chart-label{font-size:9.5px;color:var(--muted);margin-top:6px;text-transform:capitalize;white-space:nowrap;}

.app-modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.65);backdrop-filter:blur(3px);z-index:300;display:flex;align-items:flex-end;justify-content:center;}
.app-modal{background:var(--bg2);border:1px solid var(--border);border-top-left-radius:22px;border-top-right-radius:22px;width:100%;max-width:520px;max-height:88vh;overflow-y:auto;padding:22px 20px calc(22px + var(--safe-bottom));}
.app-modal h2{font-size:17px;margin-bottom:14px;}
.app-modal-close{position:sticky;top:0;text-align:right;margin-bottom:4px;}

.qr-box{text-align:center;background:#fff;border-radius:14px;padding:16px;margin:16px 0;}
.qr-box img{max-width:220px;width:100%;}
.pix-code{font-family:ui-monospace,Consolas,monospace;font-size:11.5px;word-break:break-all;background:var(--bg3);border:1px solid var(--border);border-radius:10px;padding:12px;margin-bottom:14px;}
