:root {
    --brand-orange: #e95420;
    --brand-orange-soft: #ff8d67;
    --brand-black: #101010;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

body.home-theme {
    background:
        radial-gradient(900px 540px at 15% 95%, rgba(233, 84, 32, 0.34), rgba(233, 84, 32, 0.06) 60%),
        radial-gradient(760px 420px at 88% 102%, rgba(255, 141, 103, 0.30), rgba(255, 141, 103, 0.08) 66%),
        linear-gradient(180deg, #050506 0%, #0e0c0b 22%, #1e1410 48%, #3a2016 74%, #6a301c 100%);
    background-attachment: fixed;
}

body.home-theme header {
    background: rgba(12, 11, 12, 0.72);
    border-bottom-color: rgba(233, 84, 32, 0.34);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

body.home-theme header nav a[href="/"] {
    background: rgba(255, 236, 224, 0.07);
    border-color: rgba(255, 174, 133, 0.34);
}

body.home-theme header nav a[href="/"]:hover {
    background: rgba(255, 236, 224, 0.11);
    color: #ffd7c2;
}

body.home-theme header nav a[href="/admin/login"] {
    box-shadow: 0 4px 14px rgba(233, 84, 32, 0.35);
}

body.home-theme .skeleton {
    background: #2b2421;
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 0,
        rgba(255, 177, 135, 0.12) 22%,
        rgba(255, 255, 255, 0.03) 44%
    );
}

body.home-theme #homeContent article,
body.home-theme #homeSkeleton article,
body.home-theme section.rounded-3xl {
    box-shadow: 0 16px 38px rgba(233, 84, 32, 0.20), 0 0 0 1px rgba(255, 141, 103, 0.12);
}

.cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 1rem 1.5rem;
    pointer-events: none;
}

.cookie-overlay[hidden] {
    display: none;
}

.cookie-consent {
    width: 100%;
    max-width: 560px;
    padding: 1.4rem 1.5rem 1.2rem;
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    pointer-events: all;
}

.cookie-consent__title {
    margin: 0 0 0.65rem;
    color: #4a1d96;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cookie-consent__text {
    margin: 0 0 1.1rem;
    color: #27272a;
    font-size: 0.88rem;
    line-height: 1.55;
}

.cookie-consent__actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.cookie-consent__button {
    border-radius: 999px;
    padding: 0.65rem 1.25rem;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.cookie-consent__button:hover {
    transform: translateY(-1px);
    opacity: 0.88;
}

.cookie-consent__button--ghost {
    background: transparent;
    border: 1.5px solid #a855f7;
    color: #7c3aed;
}

.cookie-consent__button--ghost:hover {
    background: rgba(168, 85, 247, 0.07);
}

.cookie-consent__button--primary {
    border: none;
    background: linear-gradient(135deg, #6ee7b7, #10b981, #34d399);
    color: #064e35;
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.30);
}

.cookie-consent__button--primary:hover {
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.42);
}

.floating-whatsapp {
    position: fixed;
    right: 1.1rem;
    bottom: 6.5rem;
    z-index: 89;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 4rem;
    padding: 0.6rem 1rem 0.6rem 0.7rem;
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(10, 35, 20, 0.94), rgba(18, 109, 52, 0.96));
    box-shadow: 0 16px 34px rgba(5, 29, 15, 0.34);
    transform-origin: center;
    animation: whatsappPulse 1.8s ease-in-out infinite;
}

.floating-whatsapp:hover {
    animation-play-state: paused;
    transform: translateY(-2px) scale(1.02);
}

.floating-whatsapp__badge {
    position: absolute;
    top: -0.4rem;
    right: 0.6rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: #fef08a;
    color: #3f2d00;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.floating-whatsapp__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 999px;
    background: #25d366;
    color: #04210f;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.floating-whatsapp__icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.floating-whatsapp__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.floating-whatsapp__text strong {
    font-size: 0.98rem;
    font-weight: 800;
}

.floating-whatsapp__text small {
    margin-top: 0.18rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
}

@keyframes whatsappPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 16px 34px rgba(5, 29, 15, 0.34), 0 0 0 0 rgba(37, 211, 102, 0.34);
    }
    45% {
        transform: scale(1.04);
        box-shadow: 0 18px 38px rgba(5, 29, 15, 0.4), 0 0 0 12px rgba(37, 211, 102, 0);
    }
    70% {
        transform: scale(0.985);
    }
}

.skeleton {
    position: relative;
    overflow: hidden;
    background: #27272a;
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.02) 0,
        rgba(255, 255, 255, 0.08) 20%,
        rgba(255, 255, 255, 0.02) 40%
    );
    background-size: 1000px 100%;
    animation: shimmer 1.8s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.ticket-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(24, 24, 27, 0.8);
    color: #d4d4d8;
    transition: all 160ms ease;
    cursor: pointer;
}

.ticket-btn:not(.sold):active {
    transform: scale(0.88);
}

.ticket-btn:hover {
    border-color: rgba(233, 84, 32, 0.7);
    color: #fff;
}

.ticket-btn.selected {
    background: linear-gradient(125deg, var(--brand-orange), var(--brand-orange-soft));
    color: #101010;
    border-color: transparent;
    font-weight: 700;
}

.ticket-btn.sold {
    background: rgba(63, 63, 70, 0.65);
    color: #71717a;
    border-color: rgba(113, 113, 122, 0.3);
    cursor: not-allowed;
}

.collage-item {
    transition: transform 250ms ease, box-shadow 250ms ease, opacity 250ms ease;
}

.collage-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

.collage-item.active {
    border-color: rgba(233, 84, 32, 0.75) !important;
    box-shadow: 0 0 0 2px rgba(233, 84, 32, 0.35);
}

#mainCollageImage {
    transition: opacity 0.22s ease;
}

@keyframes winnersMarquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.winner-showcase {
    position: relative;
    padding: 2rem 0 2.2rem;
    background: linear-gradient(180deg, #4a2417 0%, #3a1b10 40%, #2a1309 100%);
    border: 1px solid rgba(255, 120, 40, 0.25);
}

.winner-showcase__hero {
    padding: 0 1.25rem 1.25rem;
    text-align: center;
}

.winner-showcase__eyebrow {
    margin: 0;
    color: rgba(255, 160, 80, 0.9);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.winner-showcase__title {
    margin: 0.45rem 0 0;
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: 0.96;
    text-transform: uppercase;
}

.winner-showcase__subtitle {
    margin: 0.55rem auto 0;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 700;
}

.winner-showcase__rows {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.winner-marquee {
    overflow: hidden;
}

.winner-marquee__track {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: max-content;
    animation: winnersMarquee 38s linear infinite;
    will-change: transform;
}

.winner-marquee--reverse .winner-marquee__track {
    animation-direction: reverse;
    animation-duration: 44s;
}

.winner-marquee--static .winner-marquee__track {
    animation: none;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    padding: 0 1rem;
    gap: 1rem;
}

.winner-card {
    position: relative;
    flex: 0 0 auto;
    width: 8rem;
    height: 10.5rem;
    overflow: hidden;
    border-radius: 0.9rem;
    background: rgba(255, 100, 30, 0.12);
    box-shadow: 0 14px 28px rgba(180, 60, 10, 0.28);
    border: 1px solid rgba(255, 120, 40, 0.2);
}

.winner-card:nth-child(3n) {
    width: 12rem;
}

.winner-card:nth-child(5n) {
    width: 17rem;
}

.winner-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.winner-card__caption {
    position: absolute;
    left: 0.55rem;
    right: 0.55rem;
    bottom: 0.55rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0.8rem;
    background: linear-gradient(180deg, rgba(13, 10, 17, 0.15), rgba(13, 10, 17, 0.82));
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.winner-card__caption strong {
    font-size: 0.8rem;
    font-weight: 800;
}

.winner-card__caption span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.84);
}

.home-whatsapp-cta {
    position: relative;
    border-color: rgba(255, 120, 40, 0.28);
    background:
        radial-gradient(circle at top right, rgba(255, 166, 77, 0.14), transparent 34%),
        linear-gradient(135deg, rgba(74, 36, 23, 0.96), rgba(44, 20, 12, 0.98));
}

.home-whatsapp-cta__shell {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
}

.home-whatsapp-cta__visual {
    position: relative;
    min-height: 14rem;
    border-radius: 1.6rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(255, 122, 44, 0.26), rgba(68, 24, 10, 0.28));
}

.home-whatsapp-cta__orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
}

.home-whatsapp-cta__orb--one {
    top: 1.2rem;
    left: 1.6rem;
    width: 7rem;
    height: 7rem;
    background: rgba(255, 164, 77, 0.28);
}

.home-whatsapp-cta__orb--two {
    right: 1.4rem;
    bottom: 1.2rem;
    width: 8.5rem;
    height: 8.5rem;
    background: rgba(233, 84, 32, 0.24);
}

.home-whatsapp-cta__phone {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 8.5rem;
    height: 8.5rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 153, 80, 0.12));
    color: #fff5eb;
    box-shadow: 0 24px 48px rgba(23, 9, 5, 0.34);
    transform: translate(-50%, -50%) rotate(-14deg);
}

.home-whatsapp-cta__phone svg {
    width: 3.6rem;
    height: 3.6rem;
}

.home-whatsapp-cta__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-whatsapp-cta__eyebrow {
    margin: 0;
    color: rgba(255, 166, 77, 0.92);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.home-whatsapp-cta__title {
    margin: 0.45rem 0 0;
    max-width: 14ch;
    color: #ffffff;
    font-size: clamp(2rem, 4.4vw, 3.9rem);
    font-weight: 900;
    line-height: 0.94;
}

.home-whatsapp-cta__subtitle {
    margin: 0.65rem 0 0;
    max-width: 36rem;
    color: rgba(255, 237, 224, 0.82);
    font-size: 1rem;
    font-weight: 600;
}

.home-whatsapp-cta__button {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1.25rem;
    padding: 0.95rem 1.35rem;
    border-radius: 999px;
    color: #2c1308;
    font-size: 0.95rem;
    font-weight: 900;
    text-decoration: none;
    background: linear-gradient(135deg, #fff0d7, #ffb86e);
    box-shadow: 0 18px 34px rgba(233, 84, 32, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-whatsapp-cta__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 38px rgba(233, 84, 32, 0.28);
}

.home-whatsapp-cta__button svg {
    width: 1.15rem;
    height: 1.15rem;
}

.raffle-payment-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 219, 255, 0.28);
    border-radius: 1.6rem;
    background:
        radial-gradient(circle at top right, rgba(128, 59, 176, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(7, 10, 12, 0.98), rgba(8, 14, 18, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 34px rgba(0, 0, 0, 0.18);
}

.raffle-payment-card__content {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.4rem 1.5rem;
}

.raffle-payment-card__info {
    min-width: 0;
}

.raffle-payment-card__eyebrow {
    margin: 0;
    color: #0fd8ff;
    font-size: 0.8rem;
    font-weight: 900;
    line-height: 1.35;
    text-transform: uppercase;
}

.raffle-payment-card__amount {
    margin: 0.7rem 0 0;
    color: #ffffff;
    font-size: clamp(2.15rem, 4.2vw, 3rem);
    font-weight: 900;
    line-height: 1;
}

.raffle-payment-card__copy-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1rem;
}

.raffle-payment-card__number-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(157, 70, 214, 0.42);
    border-radius: 0.95rem;
    background: linear-gradient(135deg, rgba(53, 20, 78, 0.96), rgba(40, 19, 65, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.raffle-payment-card__number-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    font-weight: 900;
    white-space: nowrap;
}

.raffle-payment-card__number {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.raffle-payment-card__copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 3rem;
    padding: 0 0.9rem;
    height: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.raffle-payment-card__copy-button:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 216, 255, 0.5);
    background: rgba(15, 216, 255, 0.1);
}

.raffle-payment-card__copy-button svg {
    width: 1.2rem;
    height: 1.2rem;
}

.raffle-payment-card__feedback {
    min-height: 1.1rem;
    margin: 0.55rem 0 0;
    color: rgba(15, 216, 255, 0.84);
    font-size: 0.78rem;
    font-weight: 700;
}

.raffle-payment-card__qr-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 9.6rem;
    height: 9.6rem;
    padding: 0.75rem;
    border-radius: 1.3rem;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.raffle-payment-card__qr {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 640px) {
    #pageLoader p {
        font-size: 1.55rem;
    }

    .cookie-overlay {
        padding-bottom: 1rem;
    }

    .cookie-consent {
        max-width: 100%;
        padding: 1.1rem 1.1rem 1rem;
    }

    .cookie-consent__actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cookie-consent__button {
        width: 100%;
    }

    .floating-whatsapp {
        right: 0.75rem;
        bottom: 7.2rem;
        padding-right: 0.85rem;
    }

    .floating-whatsapp__text strong {
        font-size: 0.9rem;
    }

    .floating-whatsapp__text small {
        font-size: 0.72rem;
    }

    .winner-showcase {
        padding: 1.6rem 0 1.8rem;
        border-radius: 1.5rem;
    }

    .winner-showcase__hero {
        padding: 0 1rem 1rem;
    }

    .winner-showcase__subtitle {
        font-size: 0.88rem;
    }

    .winner-card {
        width: 6.6rem;
        height: 8.8rem;
    }

    .winner-card:nth-child(3n) {
        width: 9rem;
    }

    .winner-card:nth-child(5n) {
        width: 11.2rem;
    }

    .home-whatsapp-cta__shell {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .home-whatsapp-cta__visual {
        min-height: 9.5rem;
    }

    .home-whatsapp-cta__phone {
        width: 6.4rem;
        height: 6.4rem;
        border-radius: 1.5rem;
    }

    .home-whatsapp-cta__phone svg {
        width: 2.7rem;
        height: 2.7rem;
    }

    .home-whatsapp-cta__title {
        max-width: none;
        font-size: 2rem;
    }

    .home-whatsapp-cta__subtitle {
        font-size: 0.9rem;
    }

    .home-whatsapp-cta__button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .raffle-payment-card__content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .raffle-payment-card__copy-row {
        flex-wrap: wrap;
    }

    .raffle-payment-card__number-wrap {
        flex: 1 1 100%;
        justify-content: space-between;
    }

    .raffle-payment-card__copy-button {
        width: 100%;
    }

    .raffle-payment-card__qr-wrap {
        width: 8.5rem;
        height: 8.5rem;
        margin: 0 auto;
    }
}
