body.etinion-raffle-single-body {
    font-family: "Space Grotesk", "Sora", sans-serif;
}

.raffle-single-shell {
    width: min(1150px, 94vw);
    margin: 80px auto 80px;
    color: #1d1f2b;
}

.raffle-breadcrumbs {
    font-size: 0.9rem;
    color: #6b6f80;
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
}

.raffle-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.raffle-hero {
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 40px;
    background: #232323;
    border-radius: 10px;
    padding: 32px;
     box-shadow: var(--shadow-sm);
}

.raffle-column-media {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.raffle-media-main {
    width: 100%;
    padding-top: 100%;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(145deg, #eef1ff, #fbfcff);
    border: 1px solid #edeff7;
}

.raffle-media-main img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.raffle-media-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 12px;
}

.raffle-thumb {
    border: 1px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    background: none;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.raffle-thumb img {
    width: 100%;
    height: 72px;
    object-fit: cover;
}

.raffle-thumb.is-active {
    border-color: #5a67ff;
    transform: translateY(-2px);
}

.raffle-column-details h1 {
    font-size: 23px;
    margin: 12px 0 16px;
    line-height: 1.35;
    color:#fff;
}

.raffle-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: #e8ff4d;
    margin: 0;
}

.raffle-status {
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #434343;
    color: #ffffff;
}

.raffle-status.raffle-ready {
    background: #e7fff6;
    color: #13825d;
}

.raffle-status.raffle-finished {
    background: #fdeaea;
    color: #a8242b;
}

.raffle-progress {
    margin: 24px 0;
}

.raffle-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    color: #586075;
    font-size: 0.9rem;
}

.raffle-progress-head strong {
    color: #fff;
}

.raffle-progress-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.raffle-progress-remaining {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6c7392;
}

.raffle-progress-bar {
    margin-top: 10px;
    height: 12px;
    background: #e9ecf5;
    border-radius: 999px;
    overflow: hidden;
}

.raffle-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(120deg, #5a67ff, #8b5cf6);
    transition: width 0.4s ease;
}

.raffle-price-inline {
    margin: 18px 0 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.raffle-price-current {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #11142a;
}

.raffle-price-current strong {
    font-size: 1.6rem;
    letter-spacing: 0.03em;
    color:#fff;
}

.raffle-point-icon svg {
    display: block;
    fill: #fff;
    width: 30px;
    height: 30px;
}

.raffle-price-chip {
    background: #eef0ff;
    color: #4d50d7;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
}

.raffle-price-compare {
    font-size: 0.95rem;
    color: #8a92ab;
    text-decoration: line-through;
    padding-left: 36px;
}

.raffle-purchase {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.raffle-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d4d9eb;
    border-radius: 999px;
    overflow: hidden;
    margin: 12px 0;
}

.raffle-qty input {
    width: 64px;
    border: none;
    text-align: center;
    font-size: 1rem;
    padding: 10px 0;
    background: transparent;
    color:#fff;
}

.raffle-qty .qty-btn {
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    cursor: pointer;
    color:#fff;
}

.raffle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 999px;
    border: none;
    background: #E3FF00;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    margin-right: 18px;
    transition: opacity 0.2s ease;
}

.raffle-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.raffle-btn.raffle-btn-wide {
    width: 100%;
    margin-right: 0;
}

.raffle-note {
    font-size: 0.85rem;
    color: #4f556b;
    margin-top: 4px;
}

.raffle-note.subtle {
    font-size: 0.78rem;
    color: #959abc;
    margin-top: -6px;
}

body.raffle-modal-open {
    overflow: hidden;
}

.raffle-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 200000;
}

.raffle-modal[hidden] {
    display: none;
}

.raffle-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 11, 30, 0.55);
    backdrop-filter: blur(8px);
    z-index: 0;
}

.raffle-modal-dialog {
    position: relative;
    width: min(520px, 94vw);
    background: #fff;
    border-radius: 26px;
    padding: 30px;
    box-shadow: 0 35px 70px rgba(17, 23, 56, 0.25);
    z-index: 1;
    max-height: min(92vh, 760px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.raffle-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #eef0f8;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.raffle-modal-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.raffle-modal-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    color: #656c8c;
    margin: 0;
}

.raffle-modal-content {
    margin-top: 16px;
    color: #1f2233;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.raffle-modal-note {
    font-size: 0.82rem;
    color: #6b708a;
    margin: -6px 0 4px;
}

.raffle-modal-warning,
.raffle-modal-error {
    color: #be1f3a;
    font-weight: 600;
    background: rgba(190, 31, 58, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
}

.raffle-modal-error {
    margin: 0;
}

.raffle-wallet-card {
    border: 1px solid #eceef6;
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(140deg, #fff8ee, #fffaf4);
}

.raffle-wallet-card__label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8c6b35;
}

.raffle-wallet-card strong {
    font-size: 1.5rem;
    color: #1d1f2b;
}

.raffle-modal-summary-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.raffle-modal-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid #eceef6;
    background: #f8f8ff;
}

.raffle-modal-summary-row span {
    font-size: 0.9rem;
    color: #6c7392;
}

.raffle-modal-summary-row strong {
    font-size: 1.1rem;
    color: #1d1f2b;
}

.raffle-modal-deficit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(190, 31, 58, 0.25);
    background: #fff5f5;
}

.raffle-modal-deficit span {
    font-size: 0.9rem;
    color: #a03c3c;
}

.raffle-modal-deficit strong {
    color: #a03c3c;
}

.raffle-modal-status {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid #eceef6;
    background: #f6f7fb;
    font-size: 0.92rem;
}

.raffle-modal-status__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.raffle-modal-status.is-success {
    border-color: rgba(34, 158, 106, 0.35);
    background: #e9f8f2;
}

.raffle-modal-status.is-success .raffle-modal-status__icon {
    background: #d4f1e5;
    color: #13885d;
}

.raffle-modal-actions {
    display: flex;
    justify-content: center;
    margin-top: 18px;
    width: 100%;
}

.digital-btn[data-raffle-confirm] {
    width: 100%;
    border-radius: 999px;
    background: #E3FF00;
    color: #000;
    font-weight: 600;
    padding: 14px 32px;
    text-transform: none;
}

.digital-btn[data-raffle-confirm]:disabled {
    opacity: 0.6;
}

.digital-btn.is-loading {
    position: relative;
    color: transparent !important;
}

.digital-btn.is-loading::after {
    content: attr(data-loading-label);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    animation: raffle-btn-pulse 1.1s ease infinite;
}

@keyframes raffle-btn-pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

.raffle-success-view {
    text-align: center;
    padding: 20px 0 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.raffle-success-message {
    font-size: 1rem;
    color: #20233a;
    line-height: 1.6;
    margin: 0;
}

.raffle-success-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    margin: 0 auto;
    background: #e6f7f0;
    color: #0aa066;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 600;
}

.raffle-success-view p {
    color: #575c74;
    margin: 0;
}

.raffle-success-note {
    font-size: 0.9rem;
    color: #7b809c;
}

.raffle-success-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 30px;
    background: linear-gradient(120deg, #2f53ff, #4a87ff);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    margin: 10px auto 0;
    width: fit-content;
    box-shadow: 0 10px 25px rgba(47, 83, 255, 0.35);
}

.raffle-success-action:hover {
    opacity: 0.9;
}

.raffle-modal-codes {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.raffle-modal-codes li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid #eceef6;
    background: #f5f6ff;
    gap: 12px;
}

.raffle-code-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #6c7392;
}

.raffle-code-meta span {
    font-size: 0.85rem;
    color: #252847;
}

.raffle-modal-codes small {
    font-size: 0.72rem;
    color: #989fbb;
}

.raffle-modal-codes strong {
    letter-spacing: 0.08em;
}

.raffle-modal-codes button {
    border: none;
    background: #151a6a;
    color: #fff;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.78rem;
    cursor: pointer;
}

.raffle-success-close-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #edf0ff;
    color: #1e2dbf;
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
}

.raffle-description-section {
    margin-top: 25px;
    background: #4b4b4b;
    padding: 32px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(18, 16, 52, 0.06);
}

.raffle-description h2,
.raffle-description-section h2 {
    margin-top: 0;
    color:#fff;
    margin-bottom:10px;
}

.raffle-description {
    color: #3b3f52;
}

.raffle-description.has-toggle .description-content {
    max-height: 220px;
    overflow: hidden;
    mask-image: linear-gradient(180deg, #000 60%, transparent);
    color:#fff;
}

.raffle-description.is-expanded .description-content {
    max-height: none;
    mask-image: none;
}

.raffle-link-button {
    border: none;
    background: none;
    color: #e8ff4d;
    font-weight: 600;
    margin-top: 16px;
    cursor: pointer;
}

@media (max-width: 980px) {
    .raffle-hero {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .raffle-column-media,
    .raffle-column-details {
        width: 100%;
    }

    .raffle-column-details h1 {
        font-size: 20px;
    }

    .raffle-modal {
        padding: 18px;
        align-items: flex-start;
    }

    .raffle-modal-dialog {
        width: 100%;
        margin-top: 32px;
        max-height: 90vh;
    }
}

@media (max-width: 640px) {
    .raffle-single-shell {
        width: 92vw;
        margin: 64px auto 60px;
    }

    .raffle-breadcrumbs {
        flex-wrap: wrap;
    }

    .raffle-price-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .raffle-btn {
        width: 100%;
        margin-right: 0;
    }

    .raffle-media-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    }

    .raffle-column-details h1 {
        font-size: 18px;
    }

    .raffle-modal {
        padding: 12px;
    }

    .raffle-modal-dialog {
        border-radius: 22px;
        padding: 24px;
        max-height: 88vh;
    }
}
