.checkin-shell {
    --checkin-bg: #070b14;
    --checkin-panel: #101827;
    --checkin-panel-soft: #172033;
    --checkin-line: rgba(250, 204, 21, 0.28);
    --checkin-gold: #facc15;
    --checkin-orange: #fb923c;
    --checkin-red: #ef4444;
    --checkin-green: #4ade80;
    --checkin-cyan: #22d3ee;
    --checkin-white: #f8fafc;
    --checkin-muted: #cbd5e1;
    color: var(--checkin-white);
}

.checkin-shell *,
.checkin-shell *::before,
.checkin-shell *::after {
    box-sizing: border-box;
}

.checkin-hero,
.raffle-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
    gap: 2rem;
    align-items: center;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 3.4rem);
    border: 1px solid rgba(250, 204, 21, 0.5);
    border-radius: 30px;
    background:
        radial-gradient(circle at 86% 18%, rgba(250, 204, 21, 0.24), transparent 18rem),
        radial-gradient(circle at 8% 100%, rgba(239, 68, 68, 0.24), transparent 22rem),
        linear-gradient(135deg, #190707 0%, #4a0d12 45%, #0b1220 100%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46);
}

.checkin-hero::before,
.raffle-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to right, #000, transparent 80%);
}

.checkin-kicker,
.checkin-calendar-heading > div:first-child > span,
.raffle-section-heading > div > span,
.checkin-complete-panel span,
.checkin-recovery-panel__copy > span,
.checkin-wait-panel span,
.raffle-more span {
    display: block;
    color: #fde68a;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.checkin-hero h1,
.raffle-hero h1 {
    max-width: 760px;
    margin: 0.75rem 0 1rem;
    color: #ffffff;
    font-size: clamp(2.3rem, 5vw, 4.8rem);
    font-weight: 950;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.checkin-hero h1 span,
.raffle-hero h1 span {
    color: var(--checkin-gold);
    text-shadow: 0 0 26px rgba(250, 204, 21, 0.28);
}

.checkin-hero__copy > p,
.raffle-hero__copy > p {
    max-width: 720px;
    margin: 0;
    color: #fef3c7;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.7;
}

.checkin-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.35rem;
}

.checkin-hero__facts span {
    padding: 0.58rem 0.78rem;
    border: 1px solid rgba(254, 243, 199, 0.32);
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(2, 6, 23, 0.6);
    font-size: 0.86rem;
    font-weight: 800;
}

.checkin-vault,
.raffle-count {
    padding: 1.6rem;
    border: 1px solid rgba(250, 204, 21, 0.65);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(2, 6, 23, 0.92), rgba(30, 41, 59, 0.86));
    box-shadow: inset 0 0 34px rgba(250, 204, 21, 0.08), 0 20px 38px rgba(0, 0, 0, 0.35);
}

.checkin-vault__eyebrow,
.raffle-count > span {
    color: #fde68a;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.checkin-vault > strong,
.raffle-count > strong {
    display: block;
    margin-top: 0.3rem;
    color: #ffffff;
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 950;
    line-height: 1;
}

.checkin-vault > span:not(.checkin-vault__eyebrow),
.raffle-count > small,
.checkin-vault > small {
    color: var(--checkin-muted);
}

.checkin-progress {
    height: 12px;
    margin: 1.15rem 0 0.7rem;
    overflow: hidden;
    border-radius: 999px;
    background: #020617;
}

.checkin-progress span {
    display: block;
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--checkin-red), var(--checkin-orange), var(--checkin-gold));
    box-shadow: 0 0 18px rgba(250, 204, 21, 0.55);
}

.checkin-prize-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1rem 0;
}

.checkin-prize-strip__item {
    padding: 1rem 1.2rem;
    border: 1px solid rgba(74, 222, 128, 0.45);
    border-radius: 18px;
    background: linear-gradient(135deg, #052e16, #0f172a);
}

.checkin-prize-strip__item span,
.checkin-prize-strip__item strong {
    display: block;
}

.checkin-prize-strip__item span {
    color: #bbf7d0;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.checkin-prize-strip__item strong {
    margin-top: 0.2rem;
    color: #ffffff;
    font-size: 1.2rem;
}

.checkin-prize-strip__item--jackpot {
    border-color: rgba(250, 204, 21, 0.72);
    background: linear-gradient(135deg, #422006, #7c2d12);
}

.checkin-prize-strip__item--jackpot span {
    color: #fef08a;
}

.checkin-claim-panel,
.checkin-recovery-panel,
.checkin-complete-panel,
.checkin-wait-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1.35rem;
    align-items: center;
    margin: 1rem 0 2rem;
    padding: 1.4rem;
    border-radius: 22px;
}

.checkin-claim-panel {
    border: 1px solid rgba(34, 211, 238, 0.55);
    background: linear-gradient(135deg, #083344, #0f172a);
}

.checkin-claim-panel__day {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border: 2px solid #67e8f9;
    border-radius: 50%;
    color: #ecfeff;
    background: #164e63;
    font-size: 1rem;
    font-weight: 950;
}

.checkin-claim-panel__prize small,
.checkin-claim-panel__prize strong,
.checkin-claim-panel__prize span {
    display: block;
}

.checkin-claim-panel__prize small {
    color: #a5f3fc;
    font-weight: 800;
}

.checkin-claim-panel__prize strong {
    color: #ffffff;
    font-size: 2.3rem;
    line-height: 1.1;
}

.checkin-claim-panel__prize span {
    color: #fef08a;
    font-size: 0.85rem;
    font-weight: 800;
}

.checkin-claim-panel form,
.checkin-recovery-panel form {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-align: center;
}

.checkin-claim-panel form small,
.checkin-recovery-panel form small {
    color: var(--checkin-muted);
}

.checkin-recovery-panel {
    border: 1px solid rgba(248, 113, 113, 0.65);
    background: linear-gradient(135deg, #450a0a, #1e293b);
}

.checkin-recovery-panel__icon,
.checkin-complete-panel__icon {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border-radius: 20px;
    font-size: 2rem;
}

.checkin-recovery-panel__icon {
    color: #ffffff;
    background: #991b1b;
}

.checkin-recovery-panel h2,
.checkin-complete-panel h2,
.checkin-wait-panel h2 {
    margin: 0.2rem 0 0.4rem;
    color: #ffffff;
    font-size: 1.45rem;
}

.checkin-recovery-panel p,
.checkin-complete-panel p,
.checkin-wait-panel p {
    margin: 0;
    color: #e2e8f0;
    line-height: 1.6;
}

.checkin-complete-panel {
    border: 1px solid rgba(250, 204, 21, 0.7);
    background: linear-gradient(135deg, #422006, #052e16);
}

.checkin-complete-panel__icon {
    color: #422006;
    background: linear-gradient(135deg, #fef08a, #f59e0b);
}

.checkin-wait-panel {
    grid-template-columns: auto minmax(0, 1fr) auto;
    border: 1px solid rgba(96, 165, 250, 0.5);
    background: linear-gradient(135deg, #172554, #0f172a);
}

.checkin-wait-panel > i {
    color: #93c5fd;
    font-size: 2.2rem;
}

.checkin-btn {
    min-height: 48px;
    padding: 0.78rem 1.1rem;
    border-radius: 14px;
    font-weight: 900;
}

.checkin-btn--claim {
    border: 0;
    color: #07111f;
    background: linear-gradient(135deg, #67e8f9, #4ade80);
    box-shadow: 0 12px 26px rgba(34, 211, 238, 0.2);
}

.checkin-btn--claim:hover,
.checkin-btn--claim:focus {
    color: #020617;
    background: linear-gradient(135deg, #cffafe, #86efac);
}

.checkin-btn--gold {
    border: 0;
    color: #211500;
    background: linear-gradient(135deg, #fef08a, #f59e0b);
}

.checkin-btn--gold:hover,
.checkin-btn--gold:focus {
    color: #111827;
    background: linear-gradient(135deg, #ffffff, #facc15);
}

.checkin-btn--danger {
    border: 1px solid #fecaca;
    color: #ffffff;
    background: #b91c1c;
}

.checkin-btn--danger:disabled {
    border-color: #64748b;
    color: #cbd5e1;
    background: #334155;
    opacity: 1;
}

.checkin-btn--outline {
    border: 1px solid #93c5fd;
    color: #ffffff;
    background: #172554;
}

.checkin-calendar-heading,
.raffle-section-heading {
    display: flex;
    gap: 1rem;
    align-items: end;
    justify-content: space-between;
    margin: 2rem 0 1rem;
}

.checkin-calendar-heading h2,
.raffle-section-heading h2 {
    margin: 0.2rem 0 0;
    color: #ffffff;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

.checkin-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--checkin-muted);
    font-size: 0.82rem;
}

.checkin-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.checkin-dot--claimed { background: var(--checkin-green); }
.checkin-dot--available { background: var(--checkin-cyan); }
.checkin-dot--locked { background: #64748b; }

.checkin-calendar {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.8rem;
}

.checkin-day {
    min-width: 0;
    min-height: 178px;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid #334155;
    border-radius: 19px;
    color: #f8fafc;
    background: linear-gradient(145deg, #151f31, #0b1220);
}

.checkin-day__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #cbd5e1;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.09em;
}

.checkin-day__amount {
    display: block;
    margin-top: 0.75rem;
    color: #ffffff;
    font-size: 1.55rem;
}

.checkin-day__caption {
    color: #94a3b8;
    font-size: 0.72rem;
}

.checkin-day__bonuses {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.8rem;
}

.checkin-bonus {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.44rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 900;
}

.checkin-bonus--owp {
    color: #fef9c3;
    background: #713f12;
}

.checkin-bonus--ticket {
    color: #e0f2fe;
    background: #075985;
}

.checkin-bonus.is-collected::after {
    content: "✓";
    color: #86efac;
}

.checkin-day--claimed {
    border-color: rgba(74, 222, 128, 0.58);
    background: linear-gradient(145deg, #064e3b, #0f172a);
}

.checkin-day--claimed .checkin-day__top i {
    color: #86efac;
}

.checkin-day--available {
    border: 2px solid #22d3ee;
    background: linear-gradient(145deg, #164e63, #0f172a);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.09), 0 18px 40px rgba(8, 145, 178, 0.18);
    animation: checkin-ready-pulse 2s ease-in-out infinite;
}

.checkin-day--available .checkin-day__top i {
    color: #67e8f9;
}

.checkin-day--missed {
    border-color: #f87171;
    background: linear-gradient(145deg, #7f1d1d, #1e293b);
}

.checkin-day--locked {
    color: #94a3b8;
    background: linear-gradient(145deg, #111827, #0b1220);
}

.checkin-day--locked .checkin-day__amount {
    color: #cbd5e1;
}

.checkin-day--final {
    border-color: rgba(250, 204, 21, 0.72);
    background:
        radial-gradient(circle at 100% 0, rgba(250, 204, 21, 0.24), transparent 7rem),
        linear-gradient(145deg, #422006, #1e293b);
}

.raffle-teaser,
.raffle-grand-prize,
.raffle-more,
.checkin-rules {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1.2rem;
    align-items: center;
    margin-top: 1.4rem;
    padding: 1.5rem;
    border-radius: 22px;
}

.raffle-teaser,
.raffle-grand-prize {
    border: 1px solid rgba(250, 204, 21, 0.58);
    background: linear-gradient(135deg, #422006, #3f0a0a, #0f172a);
}

.raffle-teaser__badge,
.raffle-grand-prize__icon,
.raffle-more__icon {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    border-radius: 20px;
    color: #422006;
    background: linear-gradient(135deg, #fef08a, #f59e0b);
    font-size: 1.8rem;
}

.raffle-teaser span,
.raffle-grand-prize span {
    color: #fde68a;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.raffle-teaser h2,
.raffle-grand-prize h2,
.raffle-more h2,
.checkin-rules h2 {
    margin: 0.25rem 0 0.4rem;
    color: #ffffff;
}

.raffle-teaser p,
.raffle-grand-prize p,
.raffle-more p,
.checkin-rules p {
    margin: 0;
    color: #e2e8f0;
    line-height: 1.6;
}

.checkin-rules {
    display: block;
    border: 1px solid #334155;
    background: #101827;
}

.checkin-final-modal .modal-content {
    overflow: hidden;
    border: 2px solid #facc15;
    border-radius: 28px;
    color: #ffffff;
    background:
        radial-gradient(circle at 50% 0, rgba(250, 204, 21, 0.28), transparent 16rem),
        linear-gradient(145deg, #3f0a0a, #0f172a);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}

.checkin-final-modal .modal-body {
    padding: 2.2rem;
}

.checkin-final-modal__trophy {
    display: grid;
    width: 96px;
    height: 96px;
    margin: 0 auto 1rem;
    place-items: center;
    border-radius: 50%;
    color: #422006;
    background: linear-gradient(135deg, #fff7ae, #f59e0b);
    font-size: 2.8rem;
    box-shadow: 0 0 45px rgba(250, 204, 21, 0.42);
}

.checkin-final-modal span {
    color: #fde68a;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.checkin-final-modal h2 {
    margin: 0.5rem 0;
    color: #ffffff;
    font-size: 2rem;
}

.checkin-final-modal p {
    color: #fef3c7;
    line-height: 1.7;
}

.checkin-confetti {
    position: fixed;
    z-index: 2000;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.checkin-confetti i {
    position: absolute;
    top: -24px;
    left: var(--x);
    width: 10px;
    height: 18px;
    border-radius: 3px;
    background: var(--color);
    animation: checkin-confetti-fall var(--duration) var(--delay) linear forwards;
}

.raffle-shell .raffle-hero {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.28fr);
}

.raffle-count {
    text-align: center;
}

.raffle-ticket-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.raffle-ticket {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(250, 204, 21, 0.64);
    border-radius: 20px;
    background: linear-gradient(135deg, #fff7d6, #facc15);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.raffle-ticket__main {
    min-width: 0;
    padding: 1.3rem;
    color: #211500;
}

.raffle-ticket__brand {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    color: #7c2d12;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.08em;
}

.raffle-ticket code {
    display: block;
    margin: 1rem 0 0.55rem;
    overflow-wrap: normal;
    white-space: nowrap;
    color: #111827;
    background: transparent;
    font-size: clamp(1rem, 2.4vw, 1.8rem);
    font-weight: 950;
}

.raffle-ticket__main > strong,
.raffle-ticket__main > small {
    display: block;
}

.raffle-ticket__main > strong {
    color: #3f1d0b;
}

.raffle-ticket__main > small {
    margin-top: 0.35rem;
    color: #713f12;
}

.raffle-ticket__stub {
    display: grid;
    place-content: center;
    border-left: 2px dashed rgba(255, 255, 255, 0.5);
    color: #ffffff;
    background: linear-gradient(180deg, #991b1b, #450a0a);
    text-align: center;
}

.raffle-ticket__stub span {
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.raffle-ticket__stub strong {
    margin: 0.2rem 0 0.7rem;
    font-size: 1.35rem;
}

.raffle-empty,
.raffle-more {
    padding: 2rem;
    border: 1px solid #334155;
    border-radius: 24px;
    color: #ffffff;
    background: #101827;
    text-align: center;
}

.raffle-empty > i {
    color: #facc15;
    font-size: 3rem;
}

.raffle-empty h2 {
    color: #ffffff;
}

.raffle-empty p {
    color: #cbd5e1;
}

.raffle-more {
    grid-template-columns: auto minmax(0, 1fr);
    text-align: left;
}

@keyframes checkin-ready-pulse {
    50% { box-shadow: 0 0 0 7px rgba(34, 211, 238, 0.05), 0 20px 48px rgba(8, 145, 178, 0.28); }
}

@keyframes checkin-confetti-fall {
    to {
        transform: translate3d(var(--drift), 110vh, 0) rotate(900deg);
        opacity: 0.85;
    }
}

@keyframes checkin-screen-buzz {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-5px, 2px); }
    40% { transform: translate(5px, -2px); }
    60% { transform: translate(-3px, -2px); }
    80% { transform: translate(3px, 2px); }
}

.checkin-final-buzz {
    animation: checkin-screen-buzz 0.12s linear 8;
}

@media (max-width: 1199.98px) {
    .checkin-calendar {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .checkin-hero,
    .raffle-hero {
        grid-template-columns: 1fr;
    }

    .checkin-calendar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .raffle-ticket-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .checkin-prize-strip {
        grid-template-columns: 1fr;
    }

    .checkin-claim-panel,
    .checkin-recovery-panel,
    .checkin-complete-panel,
    .checkin-wait-panel,
    .raffle-teaser,
    .raffle-grand-prize {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .checkin-claim-panel__day {
        width: 68px;
        height: 68px;
    }

    .checkin-calendar-heading,
    .raffle-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .checkin-hero,
    .raffle-hero {
        padding: 1.25rem;
        border-radius: 22px;
    }

    .checkin-hero h1,
    .raffle-hero h1 {
        font-size: 2.45rem;
    }

    .checkin-calendar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .checkin-day {
        min-height: 158px;
        padding: 0.8rem;
        border-radius: 16px;
    }

    .checkin-day__amount {
        font-size: 1.3rem;
    }

    .raffle-ticket {
        grid-template-columns: minmax(0, 1fr) 82px;
    }

    .raffle-ticket__main {
        padding: 1rem;
    }

    .raffle-ticket__brand {
        font-size: 0.58rem;
    }

    .raffle-ticket code {
        font-size: 1.05rem;
    }

    .raffle-ticket__stub strong {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .checkin-day--available,
    .checkin-final-buzz,
    .checkin-confetti i {
        animation: none !important;
    }
}
