/* =========================================================
   DINHEIRO DIÁRIO — tela de check-in (daily.js)
   Mesmo visual do restante do site: coluna de até 430px, azul/verde/dourado.
   ========================================================= */
.dd { position: fixed; z-index: 62; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 430px); display: flex; flex-direction: column; background: #0a0f1d; color: #fff; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.dd.hidden { display: none !important; }
.dd * { box-sizing: border-box; }

.dd-head {
    flex: 0 0 auto; position: relative; display: flex; align-items: center; justify-content: center;
    height: calc(56px + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px);
    background: linear-gradient(180deg, #1b5bc6, #1244a2); box-shadow: 0 2px 10px #0008;
}
.dd-head h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: .1px; }
.dd-back {
    position: absolute; left: 4px; bottom: 0; width: 50px; height: 56px; display: grid; place-items: center;
    background: none; border: 0; color: #fff;
}
.dd-back svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.dd-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 14px 14px calc(26px + env(safe-area-inset-bottom, 0px)); background: #0a0f1d; }

/* ---------- cartão principal ---------- */
.dd-hero { position: relative; padding: 20px 16px 16px; border-radius: 14px; text-align: center; background: #111b30; border: 1px solid #22345a; }
.dd-hero > * { position: relative; }
.dd-ico { display: block; margin: 0 auto 10px; width: 200px; max-width: 72%; height: auto; }
.dd-hero h3 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: #8fa5cf; }
.dd-today { margin: 6px 0 0; font-size: 13px; color: #b9c7e4; }
.dd-amount { margin: 2px 0 0; font-size: 38px; line-height: 1.15; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; }
.dd-sub { margin: 4px 0 16px; font-size: 12.5px; color: #8fa5cf; }

.dd-cta { width: 100%; height: 48px; border: 0; border-radius: 10px; font-size: 15px; font-weight: 700; letter-spacing: .3px; color: #fff; background: #1fb957; transition: background .15s ease; }
.dd-cta:active:not(:disabled) { background: #17964a; }
.dd-cta:disabled { cursor: default; color: #8fa5cf; background: #16233f; border: 1px solid #22345a; }
@keyframes ddPulse { 0%, 100% { box-shadow: 0 6px 18px #1fb95755, inset 0 1px 0 #ffffff80; } 50% { box-shadow: 0 6px 26px #1fb957aa, inset 0 1px 0 #ffffff80; } }
@keyframes ddShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }

.dd-next { margin: 12px 0 0; font-size: 12.5px; color: #8fa5cf; }
.dd-next b { display: inline-block; min-width: 68px; font-variant-numeric: tabular-nums; color: #fff; font-size: 14px; font-weight: 600; }

/* ---------- progresso e números ---------- */
.dd-card { margin-top: 12px; padding: 14px; border-radius: 12px; background: #111b30; border: 1px solid #22345a; }
.dd-prog-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; color: #c6d6f5; }
.dd-prog-top b { font-size: 17px; color: #fff; }
.dd-bar { margin-top: 9px; height: 10px; border-radius: 99px; background: #0a1226; border: 1px solid #1b2f57; overflow: hidden; }
.dd-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: #1fb957; transition: width .6s ease; }
.dd-stats { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dd-stat { padding: 10px 10px; border-radius: 12px; background: #0a1226; border: 1px solid #172a4f; text-align: center; }
.dd-stat small { display: block; font-size: 10.5px; color: #8fa5cf; letter-spacing: .3px; }
.dd-stat b { display: block; margin-top: 2px; font-size: 15px; font-variant-numeric: tabular-nums; color: #eaf1ff; }
.dd-stat b.g { color: #19e07a; }

/* ---------- calendário de 30 dias ---------- */
.dd-sec { margin: 20px 2px 8px; font-size: 14px; font-weight: 600; color: #eaf1ff; }
.dd-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.dd-day {
    position: relative; aspect-ratio: 1 / 1.12; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    border-radius: 10px; background: #0d1830; border: 1px solid #1b2f57; color: #9fb3dc; overflow: hidden;
}
.dd-day span { font-size: 9px; font-weight: 600; letter-spacing: .2px; }
.dd-day b { font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; color: #cfdcf7; }
.dd-day svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dd-day.done { background: #123324; border-color: #1f7a4a; color: #5fd58f; }
.dd-day.done b { color: #b8ffcf; }
.dd-day.today { background: #14301f; border: 2px solid #1fb957; color: #fff; }
.dd-day.today b { color: #fff; }
.dd-day.last { grid-column: span 6; aspect-ratio: auto; min-height: 0; flex-direction: row; gap: 12px; padding: 8px 10px; background: #111b30; border-color: #5a4a1e; color: #e0b64a; }
.dd-day.last.done { background: linear-gradient(160deg, #124d33, #0c3a2a); border-color: #23a35f; color: #7dff9b; }
.dd-day.last.today { background: #14301f; }
.dd-day.last div { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.dd-day.last svg.tr { width: 26px; height: 26px; stroke-width: 2.2; flex: 0 0 auto; }
.dd-day.last span { font-size: 11px; } .dd-day.last b { font-size: 14px; }
@keyframes ddToday { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ---------- faixas de valor ---------- */
.dd-tiers { display: flex; flex-direction: column; gap: 6px; }
.dd-tier { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 12px; background: #0d1830; border: 1px solid #1b2f57; font-size: 13px; }
.dd-tier span { color: #c6d6f5; }
.dd-tier b { font-variant-numeric: tabular-nums; color: #fff; font-size: 14px; font-weight: 600; }
.dd-tier.on { border-color: #1f7a4a; background: #123324; }
.dd-tier.on span::after { content: "  ← você está aqui"; font-size: 10.5px; color: #7dff9b; font-weight: 700; }
.dd-tier-total { display: flex; justify-content: space-between; padding: 8px 12px 0; font-size: 12.5px; color: #9db4e0; }
.dd-tier-total b { color: #19e07a; }

/* ---------- regras ---------- */
.dd-rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; line-height: 1.45; color: #b3c4e8; }
.dd-rules li { position: relative; padding-left: 20px; }
.dd-rules li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: #5d7098; }
.dd-rules b { color: #fff; }

/* ---------- carregando / erro ---------- */
.dd-state { padding: 50px 20px; text-align: center; color: #9db4e0; font-size: 14px; }
.dd-state button { margin-top: 14px; height: 42px; padding: 0 22px; border: 0; border-radius: 10px; font-weight: 700; color: #fff; background: #1fb957; }
.dd-spin { width: 34px; height: 34px; margin: 0 auto 12px; border-radius: 50%; border: 3px solid #1b2f57; border-top-color: #1fb957; animation: ddSpin .8s linear infinite; }
@keyframes ddSpin { to { transform: rotate(360deg); } }

/* ---------- comemoração ao resgatar ---------- */
.dd-win { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 20px; overflow: hidden; background: rgba(4, 8, 18, .88); animation: ddFade .2s ease-out; }
.dd-win.hidden { display: none; }
.dd-win-card { position: relative; z-index: 2; width: min(100%, 330px); padding: 22px 18px 18px; border-radius: 14px; text-align: center; background: #111b30; border: 1px solid #22345a; box-shadow: 0 16px 40px #000a; animation: ddPop .3s ease-out; }
.dd-win-card img { width: 170px; max-width: 70%; height: auto; margin: 0 auto 6px; display: block; }
.dd-win-card h4 { margin: 4px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: #8fa5cf; }
.dd-win-amt { margin: 4px 0 2px; font-size: 38px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; color: #fff; }
.dd-win-day { margin: 0; font-size: 13px; color: #c6d6f5; }
.dd-win-note { margin: 12px 0 14px; padding: 9px 10px; border-radius: 10px; background: #0a1226; border: 1px solid #1b2f57; font-size: 12px; line-height: 1.4; color: #a9bde6; }
.dd-win-note b { color: #fff; }
.dd-win .dd-cta { animation: none; }
.dd-coin { display: none; position: absolute; top: -40px; z-index: 1; width: 22px; height: 22px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle at 35% 30%, #fff3a6, #ffc926 55%, #e08a00); border: 2px solid #9a5a00; animation: ddFall linear forwards; }
@keyframes ddFall { to { transform: translateY(115vh) rotate(540deg); } }
@keyframes ddFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ddPop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ddBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
    .dd *, .dd-win *, .dd-win { animation: none !important; transition: none !important; }
    .dd-coin { display: none; }
}
@media (max-width: 360px) { .dd-amount { font-size: 38px; } .dd-day span { font-size: 8px; } .dd-day b { font-size: 9px; } }

/* ---------- faixa "Dinheiro Diário" na home e na aba Eventos ---------- */
.dd-strip { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 8px; padding: 8px 12px 8px 8px; border-radius: 10px; text-align: left; color: #fff; cursor: pointer; line-height: 1.25; background: #111b30; border: 1px solid #22345a; }
.dd-strip img { flex: none; width: 58px; height: auto; filter: drop-shadow(0 3px 6px #000a); }
.dd-strip > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dd-strip b { font-size: 13px; font-weight: 700; letter-spacing: .3px; color: #fff; }
.dd-strip small { font-size: 11px; color: #9fb0d2; }
.dd-strip small em { font-style: normal; font-weight: 700; color: #fff; }
.dd-strip i { flex: none; font-style: normal; font-size: 24px; line-height: 1; color: #5d7098; }
.dd-strip-pm { margin: 0 0 8px; }

/* ---------- bolinha no botão flutuante quando há resgate disponível ---------- */
.h-float-bonus { position: fixed; }
.h-float-bonus.has-claim::after {
    content: ""; position: absolute; top: 2px; right: 6px; width: 13px; height: 13px; border-radius: 50%;
    background: #ff3b3b; border: 2px solid #0a0f1d; box-shadow: 0 0 8px #ff3b3baa; 
}
@keyframes ddPulseDot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
