/* Calendário e etapas da barra de recompensas. */
.stage-page{padding-bottom:max(30px,env(safe-area-inset-bottom));background:linear-gradient(180deg,#fff52f 0%,#fff935 58%,#fff62e 100%)}
.stage-header{height:176px;background:transparent}
.stage-header h1{margin:24px 0 0 24px;max-width:250px;font-size:25px;line-height:1.14}
.stage-header h1 strong{font-size:.92em}
.stage-header h1 span{display:inline-block;color:#29251b;font-size:.82em;line-height:1.28;font-weight:600;letter-spacing:-.2px}
.stage-header-art{width:141px;right:15px;top:29px;filter:drop-shadow(0 8px 9px #c9940b33)}

.activity-calendar{margin:0 16px 20px;padding:18px 16px 15px;border:1px solid #ffe46c;border-radius:23px;background:linear-gradient(145deg,#fffef2,#fff9d9);box-shadow:0 12px 26px #b3941722}
.calendar-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:14px}
.calendar-header span{display:block;margin-bottom:3px;color:#a46c10;font-size:10px;font-weight:800;letter-spacing:.13em}
.calendar-header h2{margin:0;color:#22221f;font-size:17px;line-height:1.25;font-weight:800}
.calendar-header strong{flex:none;align-self:center;border-radius:999px;padding:6px 9px;background:#fff0a6;color:#7d530d;font-size:10px;font-weight:700;text-transform:capitalize}
.calendar-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.month-card{position:relative;min-width:0;min-height:93px;padding:9px 8px 8px;border:1px solid #efe7c0;border-radius:14px;background:#fffdf3;box-shadow:0 2px 5px #725a1010;animation:month-enter .44s both;animation-delay:calc(var(--month-index)*55ms)}
.month-card.is-complete{border-color:#f6dc7b;background:linear-gradient(145deg,#fffef5,#fff2c5)}
.month-card.is-current{border:2px solid #fcab36;background:linear-gradient(145deg,#fffaf0,#ffeab5);box-shadow:0 4px 12px #f5a22535}
.month-heading{display:flex;align-items:center;justify-content:space-between;gap:3px;margin-bottom:8px}
.month-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#31302a;font-size:11px;font-weight:800}
.month-status{flex:none;display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#e9e5d5;color:#8c8370;font-size:11px;font-weight:800}
.is-complete .month-status{background:#33bb7b;color:white}
.is-current .month-status{background:#ff9e30;color:white}
.month-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px 2px;justify-items:center}
.day-dot{width:7px;height:7px;border-radius:50%;background:#ece8d8;transform:scale(.85)}
.day-dot.is-done{background:#f6af33;box-shadow:0 0 0 1px #f6af3320;animation:dot-fill .35s both;animation-delay:calc(var(--month-index)*55ms + 190ms)}
.day-dot.is-today{width:9px;height:9px;margin:-1px;outline:2px solid #fff;box-shadow:0 0 0 3px #ff8737;background:#ff8737}
.calendar-note{margin:12px 2px 0;color:#806e43;font-size:10px;line-height:1.35}

.stage-one,.stage-two{background:#ffd91b}
.stage-one h2,.stage-two h2{color:#82511d}
.stage-progress{height:25px;margin:0 8px;border:2px solid #ffe7af;background:linear-gradient(180deg,#ffe6c9,#ffcfad);box-shadow:inset 0 2px 4px #ab5e1921,0 4px 8px #d9893218;overflow:visible}
.stage-progress-fill{background:linear-gradient(90deg,#ffb63e,#ff703e 65%,#ff5945);box-shadow:inset 0 1px 2px #ffffffa8;transition:width .8s cubic-bezier(.2,.8,.25,1)}
.stage-progress .stage-progress-badge{position:absolute;right:-2px;top:-5px;display:flex;align-items:center;gap:5px;width:auto;height:31px;max-width:calc(100% + 4px);padding:3px 10px;border:2px solid #fff8e9;border-radius:999px;background:linear-gradient(135deg,#ff8a49,#ff5843);box-shadow:0 3px 8px #e0523552;color:white;line-height:1;white-space:nowrap}
.stage-progress-badge svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;display:none}
.stage-progress .stage-progress-badge #stage-progress-label{position:static;display:inline;width:auto;height:auto;padding:0;border:0;background:none;font-size:11px;line-height:1;font-weight:700}
.stage-progress.is-complete{border-color:#ffdc76;background:#ffe7a8;box-shadow:0 5px 14px #f4852740}
.stage-progress.is-complete .stage-progress-fill{position:relative;width:100%!important;overflow:hidden;background:linear-gradient(90deg,#ffbf3b,#ff8c35 45%,#ff6045)}
.stage-progress.is-complete .stage-progress-fill::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,#ffffff80 50%,transparent 70%);animation:progress-shine 3s ease-in-out infinite}
.stage-progress.is-complete .stage-progress-badge{right:50%;transform:translateX(50%);padding:3px 16px;background:linear-gradient(135deg,#ffad2e,#ff633f);font-size:12px;box-shadow:0 4px 12px #e9712970}
.stage-progress.is-complete .stage-progress-badge svg{display:block}
.stage-progress.is-complete .stage-progress-badge #stage-progress-label{font-size:12px;font-weight:800;letter-spacing:.02em}

.stage-two{margin-top:20px}
.invite-card{gap:13px;align-items:flex-start;padding:18px 16px 20px;background:#fffefa}
.invite-icon{flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:15px;background:#fff0be;color:#ec7936}
.invite-icon svg,.invite-copy button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.invite-copy{min-width:0;flex:1}
.invite-copy strong{display:block;color:#24211b;font-size:16px;line-height:1.3}
.invite-copy p{margin:5px 0 13px;color:#716a59;font-size:13px;line-height:1.45}
.invite-copy button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:138px;min-height:42px;padding:9px 17px;border:0;border-radius:999px;background:#ff6044;color:#fff;box-shadow:0 3px 0 #dc4d32;font:700 14px Poppins,sans-serif;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}
.invite-copy button:hover{transform:translateY(-2px);box-shadow:0 5px 0 #dc4d32}
.invite-copy button:active{transform:translateY(2px);box-shadow:0 1px 0 #dc4d32}
.invite-copy button svg{width:17px;height:17px}
.invite-copy small{display:block;min-height:0;margin-top:8px;color:#76541e;font-size:11px;line-height:1.35}
.invite-copy small:empty{display:none}
.invite-copy button:focus-visible{outline:3px solid #313b84;outline-offset:3px}

.invite-overlay{position:fixed;inset:0;z-index:20;display:flex;align-items:flex-end;justify-content:center;background:#16120ca8;animation:invite-backdrop .25s ease-out both}
.invite-overlay[hidden]{display:none}
.invite-sheet{position:relative;width:min(100%,430px);padding:12px 22px max(25px,env(safe-area-inset-bottom));border-radius:27px 27px 0 0;background:#fffdf5;box-shadow:0 -12px 40px #0003;animation:invite-rise .42s cubic-bezier(.2,.8,.2,1) both}
.invite-sheet-handle{width:38px;height:5px;margin:0 auto 17px;border-radius:99px;background:#ded9c8}
.invite-sheet-close{position:absolute;right:19px;top:20px;display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:#f1eddf;color:#38342c;cursor:pointer}
.invite-sheet-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.invite-sheet-eyebrow{display:block;margin-bottom:4px;color:#b4721e;font-size:10px;font-weight:800;letter-spacing:.12em}
.invite-sheet h2{margin:0 35px 6px 0;color:#241e18;font-size:21px;line-height:1.25}
.invite-sheet>p:not(.invite-sheet-feedback){margin:0 0 22px;color:#746e62;font-size:13px;line-height:1.5}
.invite-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.invite-options button{display:flex;align-items:center;flex-direction:column;gap:7px;min-width:0;padding:3px 0 7px;border:0;background:transparent;color:#3d3933;font:600 10px Poppins,sans-serif;cursor:pointer}
.invite-options button>span:last-child{width:100%;overflow:hidden;text-overflow:ellipsis;text-align:center;white-space:nowrap}
.invite-app{display:grid;place-items:center;width:52px;height:52px;border-radius:17px;color:white;box-shadow:0 4px 9px #0002;transition:transform .2s ease}
.invite-options button:hover .invite-app{transform:translateY(-4px)}
.invite-app svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.invite-app--whatsapp{background:linear-gradient(145deg,#44db7b,#00a851)}
.invite-app--whatsapp svg{width:33px;height:33px}
.invite-app--whatsapp .wa-bubble{fill:none;stroke:#fff;stroke-width:2.15;stroke-linecap:round;stroke-linejoin:round}
.invite-app--whatsapp .wa-phone{fill:#fff;stroke:none}
.invite-app--instagram{background:linear-gradient(145deg,#6548db,#ce3d9c 55%,#ffae43)}
.invite-app--facebook{background:#1877f2}
.invite-app--facebook svg{fill:#fff;stroke:none}
.invite-app--sms{background:#42c96b}
.invite-app--copy{background:#ff9d3d}
.invite-sheet-feedback{min-height:18px;margin:13px 0 0;color:#88531d;font-size:11px;line-height:1.4;text-align:center}
.invite-sheet-close:focus-visible,.invite-options button:focus-visible{outline:3px solid #f58a27;outline-offset:3px}

/* Como funciona, cadastro Pix e validação usam o mesmo painel inferior. */
.balance-overlay{align-items:center;justify-content:flex-end;padding:0;background:#16120ca8;overflow:hidden}
.balance-overlay .balance-dialog-group{position:relative;flex:none;width:min(100%,430px);margin:0 auto;align-items:stretch;overflow:visible;animation:balance-sheet-rise .48s cubic-bezier(.2,.82,.2,1) both}
.balance-overlay .how-card{width:100%;max-height:calc(100dvh - 90px);overflow-y:auto;overscroll-behavior:contain;padding:65px 24px max(28px,env(safe-area-inset-bottom));border-radius:27px 27px 0 0;box-shadow:0 -12px 40px #0003;scrollbar-width:thin}
.balance-overlay .how-close{z-index:3;right:19px;top:19px;width:34px;height:34px}
.balance-overlay .how-art{z-index:2;left:50%;right:auto;pointer-events:none}
.balance-overlay .how-art--intro{width:230px;top:-65px;margin-left:-115px}
.balance-overlay .how-art--pix{width:208px;top:-75px;margin-left:-104px}
.balance-overlay .how-card.mode-registration{padding-top:76px}
.balance-overlay .how-card.mode-loading,.balance-overlay .how-card.mode-ready{padding-top:39px}
@keyframes balance-sheet-rise{from{opacity:.65;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}
@media(max-width:390px){.balance-overlay .how-card{padding-left:20px;padding-right:20px}.balance-overlay .how-art--intro{width:204px;top:-59px;margin-left:-102px}.balance-overlay .how-art--pix{width:190px;top:-70px;margin-left:-95px}.balance-overlay .how-card.mode-registration{padding-top:70px}}
@media(max-height:650px){.balance-overlay .how-card{max-height:calc(100dvh - 82px)}}
@keyframes invite-backdrop{from{opacity:0}to{opacity:1}}
@keyframes invite-rise{from{opacity:.7;transform:translateY(80px)}to{opacity:1;transform:translateY(0)}}

@keyframes month-enter{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes dot-fill{from{opacity:.4;transform:scale(.25)}to{opacity:1;transform:scale(1)}}
@keyframes progress-shine{0%,25%{transform:translateX(-110%)}60%,100%{transform:translateX(110%)}}
@media(max-width:390px){.stage-header{height:167px}.stage-header h1{margin-left:20px;margin-top:23px;font-size:22px;max-width:225px}.stage-header-art{width:122px;right:12px;top:37px}.activity-calendar{margin-left:10px;margin-right:10px;padding:16px 12px}.calendar-header h2{font-size:15px}.calendar-header strong{font-size:9px}.calendar-grid{gap:6px}.month-card{min-height:85px;padding:8px 6px}.month-name{font-size:10px}.month-days{gap:3px 1px}.day-dot{width:6px;height:6px}.day-dot.is-today{width:8px;height:8px}}
@media(max-width:340px){.stage-header h1{font-size:20px}.stage-header-art{width:105px;right:9px;top:45px}.activity-calendar{padding:14px 10px}.calendar-header{flex-wrap:wrap}.calendar-header strong{margin-top:2px}.month-card{padding:7px 5px}.month-name{font-size:9px}}
@media(max-width:360px){.invite-sheet{padding-left:15px;padding-right:15px}.invite-app{width:45px;height:45px;border-radius:14px}.invite-app svg{width:25px;height:25px}.invite-options button{font-size:9px}}
@media(prefers-reduced-motion:reduce){.month-card,.day-dot.is-done,.stage-progress.is-complete .stage-progress-fill::after{animation:none}}
