/* xeseo3 (01-12-2026): raffles.xelementia.com/guide — «Solana NFT raffles, explained». Same palette as the raffles pages. */
.rg-hero-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
}

.rg-shell {
    max-width: 1040px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
    color: #d8e1f2;
    line-height: 1.65;
}

.rg-section,
.rg-intro,
.rg-cta {
    border: 1px solid rgba(255, 179, 71, 0.22);
    border-radius: 18px;
    background: linear-gradient(170deg, rgba(13, 18, 29, 0.95), rgba(10, 14, 24, 0.92));
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
    padding: clamp(1.1rem, 2.6vw, 1.9rem);
    margin-bottom: 1.25rem;
}

.rg-section h2,
.rg-cta h2 {
    margin: 0 0 0.75rem;
    color: #ffe0b8;
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    font-weight: 800;
    letter-spacing: 0.01em;
}

.rg-section p {
    margin: 0 0 0.7rem;
    font-size: 0.97rem;
}

.rg-section p:last-child {
    margin-bottom: 0;
}

.rg-section a,
.rg-terms-note a {
    color: #ffd8a8;
    text-decoration: underline;
    text-decoration-color: rgba(255, 216, 168, 0.45);
    text-underline-offset: 3px;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.rg-section a:hover,
.rg-terms-note a:hover {
    color: #fff1de;
    text-decoration-color: currentColor;
}

/* ===== Intro ===== */
.rg-intro {
    border-color: rgba(255, 20, 147, 0.28);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(255, 20, 147, 0.12), transparent 55%),
        radial-gradient(120% 140% at 100% 100%, rgba(255, 123, 0, 0.12), transparent 55%),
        linear-gradient(170deg, rgba(13, 18, 29, 0.96), rgba(10, 14, 24, 0.94));
}

.rg-kicker {
    margin: 0 0 0.6rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffb347;
}

.rg-lede {
    margin: 0;
    font-size: clamp(1rem, 1.9vw, 1.12rem);
    color: #e8eefb;
    max-width: 62ch;
}

.rg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.15rem;
}

.rg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.6rem 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 179, 71, 0.45);
    background: rgba(255, 179, 71, 0.06);
    color: #ffe0b8;
    font-weight: 700;
    font-size: 0.93rem;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.rg-btn:hover {
    background: rgba(255, 179, 71, 0.14);
    border-color: rgba(255, 179, 71, 0.8);
    transform: translateY(-1px);
}

.rg-btn--primary {
    border-color: transparent;
    background: linear-gradient(135deg, #ff7b00, #ff1493);
    color: #fff;
    box-shadow: 0 8px 22px rgba(255, 20, 147, 0.28);
}

.rg-btn--primary:hover {
    background: linear-gradient(135deg, #ff8f26, #ff3aa6);
    box-shadow: 0 10px 26px rgba(255, 20, 147, 0.38);
}

.rg-btn:focus-visible,
.rg-faq-item summary:focus-visible,
.rg-section a:focus-visible,
.rg-terms-note a:focus-visible {
    outline: 2px solid #ffb347;
    outline-offset: 3px;
}

/* ===== Steps ===== */
.rg-steps {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.8rem;
}

.rg-step {
    --rg-rgb: 255, 179, 71;
    position: relative;
    border-radius: 14px;
    border: 1px solid rgba(var(--rg-rgb), 0.32);
    background: linear-gradient(180deg, rgba(var(--rg-rgb), 0.1), rgba(var(--rg-rgb), 0.02) 60%);
    padding: 1rem 0.95rem 1.05rem;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.rg-step:hover {
    border-color: rgba(var(--rg-rgb), 0.6);
    transform: translateY(-2px);
}

.rg-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(var(--rg-rgb), 0.18);
    border: 1px solid rgba(var(--rg-rgb), 0.55);
    color: rgb(var(--rg-rgb));
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.rg-step h3 {
    margin: 0 0 0.4rem;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.3;
}

.rg-step p {
    margin: 0;
    font-size: 0.88rem;
    color: #c9d4e8;
}

/* ===== Standard / Flash ===== */
.rg-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.rg-card {
    border-radius: 14px;
    border: 1px solid rgba(96, 165, 250, 0.32);
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.08), rgba(96, 165, 250, 0.01));
    padding: 1.05rem 1.1rem;
}

.rg-card--flash {
    border-color: rgba(250, 204, 21, 0.38);
    background: linear-gradient(180deg, rgba(250, 204, 21, 0.09), rgba(250, 204, 21, 0.01));
}

.rg-card h3 {
    margin: 0 0 0.7rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
}

.rg-facts {
    margin: 0;
    display: grid;
    gap: 0.45rem;
}

.rg-facts div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.rg-facts div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.rg-facts dt {
    color: #9fb0cc;
    font-size: 0.88rem;
}

.rg-facts dd {
    margin: 0;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: right;
}

.rg-note {
    margin: 0.75rem 0 0 !important;
    color: #9fb0cc;
    font-size: 0.85rem !important;
}

/* ===== Honest box ===== */
.rg-honest {
    margin-top: 0.9rem !important;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(45, 212, 191, 0.3);
    background: rgba(45, 212, 191, 0.06);
    color: #d4efea;
}

/* ===== Features ===== */
.rg-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.rg-features li {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
    padding: 0.9rem 1rem;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.rg-features li:hover {
    border-color: rgba(255, 179, 71, 0.4);
    background: rgba(255, 179, 71, 0.05);
}

.rg-features strong {
    display: block;
    color: #ffe0b8;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.rg-features span {
    display: block;
    color: #c9d4e8;
    font-size: 0.88rem;
}

/* ===== FAQ ===== */
.rg-faq {
    display: grid;
    gap: 0.55rem;
}

.rg-faq-item {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 0.18s ease, background 0.18s ease;
}

.rg-faq-item[open] {
    border-color: rgba(255, 179, 71, 0.4);
    background: rgba(255, 179, 71, 0.045);
}

.rg-faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    min-height: 44px;
    color: #fff;
    font-weight: 700;
    font-size: 0.96rem;
    border-radius: 12px;
}

.rg-faq-item summary::-webkit-details-marker {
    display: none;
}

.rg-faq-item summary::after {
    content: '+';
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 179, 71, 0.45);
    color: #ffb347;
    font-weight: 800;
    transition: transform 0.2s ease;
}

.rg-faq-item[open] summary::after {
    content: '−';
}

.rg-faq-item summary:hover {
    color: #ffe0b8;
}

.rg-faq-item p {
    margin: 0 !important;
    padding: 0 1rem 0.95rem;
    color: #c9d4e8;
    font-size: 0.93rem !important;
}

.rg-terms-note {
    margin: 1rem 0 0;
    color: #9fb0cc;
    font-size: 0.88rem;
}

/* ===== Final call ===== */
.rg-cta {
    text-align: center;
    border-color: rgba(255, 20, 147, 0.3);
    background:
        radial-gradient(90% 120% at 50% 0%, rgba(255, 20, 147, 0.14), transparent 60%),
        linear-gradient(170deg, rgba(13, 18, 29, 0.96), rgba(10, 14, 24, 0.94));
}

.rg-cta p {
    margin: 0;
    color: #c9d4e8;
}

.rg-cta .rg-actions {
    justify-content: center;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .rg-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rg-step:last-child {
        grid-column: 1 / -1;
    }

    .rg-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .rg-hero-shell {
        padding: 1rem 1rem 0;
    }
}

@media (max-width: 640px) {
    .rg-steps,
    .rg-compare,
    .rg-features {
        grid-template-columns: minmax(0, 1fr);
    }

    .rg-step:last-child {
        grid-column: auto;
    }

    .rg-actions .rg-btn {
        flex: 1 1 100%;
    }

    .rg-facts div {
        flex-direction: column;
        gap: 0.1rem;
    }

    .rg-facts dd {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rg-btn,
    .rg-step,
    .rg-features li,
    .rg-faq-item,
    .rg-faq-item summary::after {
        transition: none;
    }

    .rg-btn:hover,
    .rg-step:hover {
        transform: none;
    }
}
