
.surp-wrap{padding:14px 14px 28px;display:flex;flex-direction:column;gap:12px;}
.surp-hero{border-radius:16px;padding:16px;background:linear-gradient(140deg,rgba(255,123,0,.20),rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.08);}
.surp-hero h1{margin:0 0 4px;font-size:19px;font-weight:800;color:#fff;}
.surp-hero p{margin:0 0 10px;font-size:12px;line-height:1.5;color:var(--text-secondary,#9aa4ad);}
.surp-stats{display:flex;gap:8px;flex-wrap:wrap;}
.surp-stat{flex:1 1 90px;background:rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:9px 10px;}
.surp-stat b{display:block;font-size:15px;color:#fff;font-weight:800;}
.surp-stat span{font-size:10px;color:var(--text-muted,#6f7880);text-transform:uppercase;letter-spacing:.08em;}
.surp-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;}
.surp-box{position:relative;border-radius:14px;padding:11px 9px;min-height:104px;display:flex;flex-direction:column;justify-content:space-between;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);text-align:center;}
.surp-box .n{font-size:10px;font-weight:800;color:var(--text-muted,#6f7880);letter-spacing:.1em;text-transform:uppercase;}
.surp-box .ico{font-size:26px;line-height:1;margin:2px 0 4px;}
.surp-box .t{font-size:10.5px;line-height:1.35;color:#fff;font-weight:600;}
.surp-box .s{font-size:9.5px;color:var(--text-muted,#6f7880);margin-top:3px;}
.surp-box.lvl1{background:linear-gradient(160deg,rgba(120,140,160,.22),rgba(255,255,255,.03));}
.surp-box.lvl2{background:linear-gradient(160deg,rgba(90,160,255,.22),rgba(255,255,255,.03));}
.surp-box.lvl3{background:linear-gradient(160deg,rgba(255,140,0,.24),rgba(255,255,255,.03));}
.surp-box.lvl4{background:linear-gradient(160deg,rgba(255,60,120,.26),rgba(255,255,255,.03));}
.surp-box.next{border-color:var(--accent,#ff7b00);box-shadow:0 0 0 1px rgba(255,123,0,.45),0 8px 22px rgba(255,123,0,.18);}
.surp-box.done{opacity:.62;}
.surp-box.locked{opacity:.45;}
.surp-box.opened .ico{animation:surpPop .45s ease-out;}
@keyframes surpPop{0%{transform:scale(.4) rotate(-18deg);}60%{transform:scale(1.22) rotate(6deg);}100%{transform:scale(1) rotate(0);}}
.surp-cta{width:100%;padding:14px;border:0;border-radius:14px;background:var(--accent,#ff7b00);color:#111;font-size:14px;font-weight:800;cursor:pointer;}
.surp-cta:disabled{background:rgba(255,255,255,.10);color:#8b939b;cursor:default;}
.surp-note{font-size:11px;line-height:1.55;color:var(--text-muted,#6f7880);}
.surp-hist{display:flex;flex-direction:column;gap:7px;}
.surp-hist-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);}
.surp-hist-row b{font-size:12.5px;color:#fff;font-weight:700;}
.surp-hist-row span{font-size:11px;color:var(--text-muted,#6f7880);}
.surp-hist-row .v{font-size:12.5px;font-weight:800;color:var(--accent,#ff7b00);}

/* Convite + rede (evento "Bau dos Premios" da referencia) */
.surp-invite{background:#1c1c1c;border-radius:8px;padding:12px;}
.surp-invite h4{margin:0 0 10px;color:#fff;font-size:13px;font-weight:700;}
.surp-invite-row{display:flex;gap:12px;align-items:flex-start;}
.surp-invite-qr{flex:0 0 84px;text-align:center;}
.surp-invite-qr img{width:84px;height:84px;border-radius:8px;background:#fff;}
.surp-invite-qr span{display:block;margin-top:4px;font-size:10px;color:var(--text-muted,#6f7880);cursor:pointer;}
.surp-invite-data{flex:1;min-width:0;}
.surp-invite-code{font-size:12px;color:var(--text-secondary,#9aa4ad);margin-bottom:8px;}
.surp-invite-code strong{color:#fff;}
.surp-rede{margin-top:8px;font-size:12px;color:var(--text-secondary,#9aa4ad);}
.surp-rede b{color:#ffbc00;}
.surp-details{background:#1c1c1c;border-radius:8px;padding:12px;color:#aaa;font-size:11.5px;line-height:1.6;}
.surp-details h4{margin:0 0 8px;color:#fff;font-size:13px;font-weight:700;}
.surp-details p{margin:0 0 6px;}
.surp-details p:last-child{margin-bottom:0;}
.surp-details b{color:#fff;}

/* Theme-2 reference uses inset gray event cards and silver/gold/diamond selectors. */
#page-lucky-wheel { background:#222; --wheel-rim:#aeb4c0; --wheel-dark:#176ede; --wheel-light:#20a5f6; }
#page-lucky-wheel[data-wheel="gold"] { --wheel-rim:#f3c760; --wheel-dark:#dd8f1c; --wheel-light:#f4c44f; }
#page-lucky-wheel[data-wheel="diamond"] { --wheel-rim:#d6b2ef; --wheel-dark:#8d39cb; --wheel-light:#bf72ef; }
.wheel-page-header { background:#292929; height:54px; }
.wheel-page-header h2 {font-size:16px;font-weight:500;}
.wheel-game-card,.wheel-feed-card,.wheel-rules {background:#2d2d2d;}
.wheel-points-line {font-size:12px;color:#aaa;}
.wheel-game-card>p {font-size:12px;color:#aaa;border-color:#444;line-height:1.5;}
.lucky-wheel-shell {position:relative;width:min(100%,300px);height:auto;aspect-ratio:1;border-color:var(--wheel-rim);}
.lucky-wheel-disc {background:repeating-conic-gradient(from -18deg,var(--wheel-dark) 0 36deg,var(--wheel-light) 36deg 72deg);}
.lucky-wheel-disc>span {top:0;width:42px;margin-left:-21px;height:100%;transform-origin:center center;transform:rotate(calc(var(--i)*36deg));padding-top:8px;font-size:17px;pointer-events:none;}
#lucky-wheel-disc>span::after {font-size:20px;margin-top:5px;}
#lucky-wheel-disc>button {display:none;}
#page-lucky-wheel #wheel-spin-button {position:absolute;z-index:6;left:50%;top:50%;width:88px;height:88px;transform:translate(-50%,-50%);border:6px solid var(--wheel-rim);border-radius:50%;background:linear-gradient(var(--wheel-light),var(--wheel-dark));box-shadow:0 0 0 3px #505c73;color:#fff;font-size:15px;cursor:pointer;}
#page-lucky-wheel #wheel-spin-button:disabled {opacity:.65;cursor:wait;}
.wheel-pointer {display:none;}
.lucky-wheel-shell::after {content:'';position:absolute;z-index:7;left:50%;top:-12px;transform:translateX(-50%);border-left:12px solid transparent;border-right:12px solid transparent;border-top:28px solid var(--wheel-rim);pointer-events:none;}
.wheel-levels {gap:8px;}
.wheel-levels button {background:#2d2d2d;border-color:#505050;cursor:pointer;}
.wheel-levels button.active {background:var(--wheel-dark);border-color:var(--wheel-rim);}
.wheel-levels strong {font-size:11px;font-weight:400;}
.wheel-levels small {font-size:9px;}
.wheel-feed-tabs button {font-size:13px;color:#aaa;}
.wheel-feed-tabs button.active {color:#ffbc00;}
.wheel-feed-tabs button.active::after {background:#ffbc00;}
.wheel-feed-empty {min-height:170px;display:grid;place-items:center;}
.wheel-rules {color:#aaa;}
#page-surpresa {background:#222;}
#page-surpresa .agent-header-bar {background:#292929;}
.surp-hero {background:#2d2d2d;border:0;border-radius:8px;}
.surp-hero h1 {font-size:16px;font-weight:500;}
.surp-hero p {color:#aaa;}
.surp-stat {border:0;background:#252525;border-radius:7px;}
.surp-stat b {color:#ffbc00;}
.surp-stat span {text-transform:none;letter-spacing:0;color:#aaa;}
.surp-box {border-radius:8px;background:#2d2d2d;min-height:145px;}
.surp-box .ico {display:grid;place-items:center;}
.surp-box .ico svg {width:70px;max-width:100%;height:60px;filter:drop-shadow(0 4px 7px #0006);}
.surp-box .n {letter-spacing:0;color:#ccc;}
.surp-box.locked .ico {filter:grayscale(1);}
.surp-box.next {border-color:#ffbc00;box-shadow:0 0 12px #ffbc0029;}
.surp-cta {background:#ffbc00;color:#222;border-radius:7px;}
.surp-cta:disabled {background:#444;}
.surp-hist-row {background:#2d2d2d;border:0;}
#page-surpresa :focus-visible,#page-lucky-wheel :focus-visible {outline:2px solid #ffbc00;outline-offset:3px;}
@media(prefers-reduced-motion:reduce){.lucky-wheel-disc{transition-duration:.01ms}.surp-box.opened .ico{animation:none}}

#page-surpresa.active {height:calc(100dvh - 76px);overflow-y:auto;}

/* ============================================================================
   CHECK IN DIÁRIO 1:1 (evento da referência F1-AVIAOPG, template 3)
   Medidas convertidas do rem da referência (1rem = 51,43px em viewport 390px).
   ========================================================================== */
#page-checkin { background:#222; }
#page-checkin .agent-header-bar { background:#292929; }
.ci-wrap { padding:10px 10px 28px; display:flex; flex-direction:column; gap:10px; }

.ci-summary { display:flex; flex-direction:column; gap:7.7px; padding:10.3px; background:#1c1c1c; border-radius:5.1px; box-shadow:0 1.5px 4.5px rgba(0,0,0,.06); }
.ci-summary-row { display:flex; gap:10.3px; justify-content:space-between; width:100%; }
.ci-item { flex:1; color:#777; font-size:12.3px; line-height:15.9px; text-align:left; }
.ci-item b { color:#c7c7c7; font-weight:400; margin-right:3px; }
.ci-item.fail b { color:#ea4e3d; }
.ci-item.success b { color:#04be02; }
.ci-right { flex:1; text-align:right; }
.ci-right strong { color:#ffaa09; font-weight:400; }

.ci-list { display:flex; flex-wrap:wrap; margin:10.3px 0 10.3px; padding:10.3px 0 2.5px 10.3px; background:#1c1c1c; border-radius:7.2px; }
.ci-day { position:relative; z-index:1; width:100.8px; height:131px; margin:0 10.8px 10.3px 0; background:#1c1c1c; border:1px solid #505050; border-radius:7.2px; box-shadow:0 .5px 4.5px rgba(68,68,68,.1); overflow:hidden; }
.ci-day:nth-child(3n) { margin-right:0; }
.ci-day.done { opacity:.62; }
.ci-day.current { border-color:#ffbc00; box-shadow:0 0 12px rgba(255,188,0,.16); }
.ci-day.locked { opacity:.5; }
.ci-pattern { display:flex; align-items:center; justify-content:center; width:63.8px; height:63.8px; margin:10.3px auto 0; }
.ci-pattern img { display:block; width:100%; height:100%; }
.ci-day.done .ci-pattern img { filter:grayscale(1); }
.ci-value { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; width:100%; height:15.4px; margin:0 5px 10.3px; font-size:11.3px; line-height:15.4px; text-align:center; color:#ffaa09; }
.ci-divider { border-top:1px solid #505050; margin:0 5px; }
.ci-caption { display:flex; align-items:center; justify-content:center; height:20.6px; color:#777; font-size:12.3px; }
.ci-enter-btn { width:61.7px; height:20.6px; font-size:9.3px; font-weight:700; border-radius:5.1px; border:0; background:#04be02; color:#fff; cursor:pointer; }
.ci-enter-btn:disabled { background:#444; color:#8b939b; cursor:default; }

.ci-rules { background:#1c1c1c; border-radius:7.2px; padding:12px; color:#aaa; font-size:11.5px; line-height:1.6; }
.ci-rules h4 { margin:10px 0 6px; color:#fff; font-size:12.5px; font-weight:700; }
.ci-rules h4:first-child { margin-top:0; }
.ci-rules p { margin:0 0 6px; }
.ci-rules ol { margin:0; padding-left:16px; }
.ci-rules li { margin-bottom:6px; }
#page-checkin.active { height:calc(100dvh - 76px); overflow-y:auto; }
#page-checkin :focus-visible { outline:2px solid #ffbc00; outline-offset:3px; }

