/* ============================================================
   PIRATE WIN — GIVEAWAY / RAFFLE
   Modern Rewards Platform Design
   ============================================================ */

:root {

    --rw-bg: #0f1729;

    --rw-card: #18243b;
    --rw-card-light: #1e2a45;

    --rw-border: rgba(255, 255, 255, 0.07);

    --rw-purple: #8b5cf6;
    --rw-purple-light: #a78bfa;

    --rw-cyan: #06b6d4;

    --rw-green: #22c55e;
    --rw-red: #ef4444;

    --rw-white: #ffffff;
    --rw-text: #cbd5e1;
    --rw-muted: #94a3b8;

    --rw-radius: 20px;
    --rw-radius-lg: 28px;
}


/* ============================================================
   WRAPPER
   ============================================================ */

.rw-wrap {

    width: 100%;
    max-width: 1080px;

    margin: 0 auto;

    color: var(--rw-white);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


/* ============================================================
   HERO
   ============================================================ */

.rw-hero {

    position: relative;

    overflow: hidden;

    margin-bottom: 20px;

    border-radius: var(--rw-radius-lg);

    background:
        linear-gradient(
            135deg,
            #1c2945,
            #151f35
        );

    border: 1px solid var(--rw-border);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.22);
}


.rw-hero::before {

    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    top: -250px;
    right: 10%;

    border-radius: 50%;

    background: rgba(139, 92, 246, 0.12);

    filter: blur(80px);

    pointer-events: none;
}


.rw-hero::after {

    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    bottom: -220px;
    left: 10%;

    border-radius: 50%;

    background: rgba(6, 182, 212, 0.05);

    filter: blur(70px);

    pointer-events: none;
}


.rw-hero-content {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns: 1fr 340px;

    gap: 50px;

    align-items: center;

    padding: 45px;
}


/* ============================================================
   HERO MAIN
   ============================================================ */

.rw-hero-main {

    min-width: 0;
}


.rw-eyebrow {

    display: inline-flex;

    align-items: center;

    margin-bottom: 14px;

    padding: 6px 11px;

    border-radius: 8px;

    background: rgba(139, 92, 246, 0.1);

    border: 1px solid rgba(139, 92, 246, 0.18);

    color: var(--rw-purple-light);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.6px;

    text-transform: uppercase;
}


.rw-title {

    margin: 0 0 12px;

    color: var(--rw-white);

    font-size: clamp(30px, 4vw, 48px);

    line-height: 1.1;

    font-weight: 900;

    letter-spacing: -0.035em;
}


.rw-subtitle {

    max-width: 650px;

    margin: 0 0 24px;

    color: var(--rw-muted);

    font-size: 15px;

    line-height: 1.7;
}


/* ============================================================
   COUNTDOWN
   ============================================================ */

.rw-countdown-wrap {

    margin-bottom: 22px;
}


.rw-countdown-label {

    margin: 0 0 8px;

    color: var(--rw-muted);

    font-size: 12px;

    font-weight: 600;
}


.rw-countdown {

    display: flex;

    gap: 8px;
}


.rw-time {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-width: 62px;

    padding: 9px 8px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid var(--rw-border);
}


.rw-time strong {

    color: var(--rw-white);

    font-size: 20px;

    line-height: 1;

    font-weight: 800;
}


.rw-time span {

    margin-top: 5px;

    color: var(--rw-muted);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


/* ============================================================
   ENTRY INFORMATION
   ============================================================ */

.rw-entry-info {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 24px;

    color: var(--rw-muted);

    font-size: 13px;
}


.rw-entry-info strong {

    color: var(--rw-purple-light);

    font-weight: 700;
}


.rw-entry-separator {

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: #475569;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.rw-primary-btn {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 45px;

    padding: 11px 20px;

    border: 0;

    border-radius: 12px;

    color: #ffffff !important;

    background:
        linear-gradient(
            135deg,
            #8b5cf6,
            #7c3aed
        );

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    box-shadow:
        0 7px 20px rgba(139, 92, 246, 0.18);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.rw-primary-btn:hover {

    transform: translateY(-2px);

    background:
        linear-gradient(
            135deg,
            #9f67ff,
            #8b5cf6
        );

    box-shadow:
        0 10px 28px rgba(139, 92, 246, 0.28);
}


/* ============================================================
   PRIZE
   ============================================================ */

.rw-prize {

    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-height: 250px;

    padding: 30px;

    border-radius: 24px;

    background:
        radial-gradient(
            circle at center,
            rgba(139, 92, 246, 0.12),
            rgba(139, 92, 246, 0.02) 65%,
            transparent 70%
        );

    border: 1px solid rgba(139, 92, 246, 0.15);
}


.rw-prize-label {

    margin-bottom: 12px;

    color: var(--rw-muted);

    font-size: 12px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1px;
}


.rw-prize-value {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;
}


.rw-prize-value img {

    width: 46px;
    height: 46px;

    object-fit: contain;
}


.rw-prize-value strong {

    color: var(--rw-white);

    font-size: clamp(42px, 5vw, 62px);

    line-height: 1;

    font-weight: 900;

    letter-spacing: -0.04em;
}


.rw-prize-unit {

    margin-top: 10px;

    color: var(--rw-purple-light);

    font-size: 14px;

    font-weight: 700;
}


/* ============================================================
   STATS
   ============================================================ */

.rw-stats {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 16px;

    margin-bottom: 35px;
}


.rw-stat {

    padding: 20px;

    text-align: center;

    border-radius: var(--rw-radius);

    background: var(--rw-card);

    border: 1px solid var(--rw-border);
}


.rw-stat-value {

    display: block;

    margin-bottom: 5px;

    color: var(--rw-white);

    font-size: 24px;

    font-weight: 850;
}


.rw-stat-value small {

    color: var(--rw-muted);

    font-size: 12px;

    font-weight: 500;
}


.rw-stat-label {

    color: var(--rw-muted);

    font-size: 12px;
}


/* ============================================================
   ENTRY CARD
   ============================================================ */

.rw-entry-card {

    margin-bottom: 35px;

    padding: 28px;

    border-radius: var(--rw-radius-lg);

    background: var(--rw-card);

    border: 1px solid var(--rw-border);
}


.rw-entry-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;

    padding-bottom: 20px;

    border-bottom: 1px solid var(--rw-border);
}


.rw-section-label {

    display: block;

    margin-bottom: 5px;

    color: var(--rw-purple-light);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.7px;

    text-transform: uppercase;
}


.rw-entry-header h3 {

    margin: 0;

    color: var(--rw-white);

    font-size: 21px;

    font-weight: 800;
}


/* ============================================================
   BALANCE
   ============================================================ */

.rw-balance {

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    padding-left: 20px;

    border-left: 1px solid var(--rw-border);
}


.rw-balance span {

    color: var(--rw-muted);

    font-size: 11px;
}


.rw-balance strong {

    color: var(--rw-purple-light);

    font-size: 16px;

    font-weight: 800;
}


/* ============================================================
   EXISTING ENTRY
   ============================================================ */

.rw-existing-entry {

    margin-bottom: 20px;

    padding: 12px 15px;

    border-radius: 10px;

    background: rgba(139, 92, 246, 0.07);

    border: 1px solid rgba(139, 92, 246, 0.14);

    color: var(--rw-muted);

    font-size: 13px;
}


.rw-existing-entry strong {

    color: var(--rw-purple-light);
}


/* ============================================================
   ENTRY CONTROLS
   ============================================================ */

.rw-entry-controls {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;

    align-items: end;

    margin-bottom: 20px;
}


.rw-quantity label {

    display: block;

    margin-bottom: 8px;

    color: var(--rw-muted);

    font-size: 12px;

    font-weight: 600;
}


.rw-quantity-control {

    display: flex;

    width: 100%;

    height: 45px;

    border-radius: 12px;

    overflow: hidden;

    border: 1px solid var(--rw-border);

    background: rgba(255, 255, 255, 0.025);
}


.rw-qty-btn {

    width: 48px;

    border: 0;

    color: var(--rw-text);

    background: transparent;

    font-size: 22px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.rw-qty-btn:hover {

    color: var(--rw-white);

    background: rgba(139, 92, 246, 0.1);
}


.rw-qty-input {

    flex: 1;

    min-width: 0;

    border: 0;

    outline: 0;

    color: var(--rw-white);

    background: transparent;

    text-align: center;

    font-family: inherit;

    font-size: 16px;

    font-weight: 700;
}


/* ============================================================
   COST
   ============================================================ */

.rw-cost {

    display: flex;

    flex-direction: column;

    justify-content: center;

    min-height: 45px;

    padding: 0 16px;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid var(--rw-border);
}


.rw-cost span {

    color: var(--rw-muted);

    font-size: 11px;
}


.rw-cost strong {

    color: var(--rw-purple-light);

    font-size: 16px;
}


/* ============================================================
   BUY BUTTON
   ============================================================ */

.rw-buy-btn {

    width: 100%;
}


/* ============================================================
   MESSAGE
   ============================================================ */

.rw-message {

    margin-top: 15px;

    padding: 12px 15px;

    border-radius: 10px;

    font-size: 13px;

    line-height: 1.5;

    text-align: center;
}


/* ============================================================
   LOGIN
   ============================================================ */

.rw-login-card {

    display: flex;

    align-items: center;

    gap: 18px;

    margin-bottom: 35px;

    padding: 24px;

    border-radius: var(--rw-radius);

    background: var(--rw-card);

    border: 1px solid var(--rw-border);
}


.rw-login-icon {

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 48px;
    height: 48px;

    border-radius: 14px;

    background: rgba(139, 92, 246, 0.08);

    font-size: 20px;
}


.rw-login-card h3 {

    margin: 0 0 4px;

    color: var(--rw-white);

    font-size: 17px;

    font-weight: 750;
}


.rw-login-card p {

    margin: 0;

    color: var(--rw-muted);

    font-size: 13px;
}


.rw-login-actions {

    display: flex;

    gap: 10px;

    margin-left: auto;

    flex-shrink: 0;
}


.rw-secondary-btn {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 45px;

    padding: 10px 18px;

    border-radius: 12px;

    color: var(--rw-text);

    background: transparent;

    border: 1px solid var(--rw-border);

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;
}


.rw-secondary-btn:hover {

    color: var(--rw-white);

    border-color: rgba(255, 255, 255, 0.15);

    background: rgba(255, 255, 255, 0.03);
}


/* ============================================================
   DISCLAIMER
   ============================================================ */

.rw-disclaimer {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin-bottom: 50px;

    padding: 17px 18px;

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid var(--rw-border);
}


.rw-disclaimer-icon {

    flex-shrink: 0;

    color: var(--rw-muted);

    font-size: 16px;

    line-height: 1.5;
}


.rw-disclaimer strong {

    display: block;

    margin-bottom: 5px;

    color: var(--rw-text);

    font-size: 12px;

    font-weight: 700;
}


.rw-disclaimer p {

    margin: 0;

    color: #718096;

    font-size: 11px;

    line-height: 1.7;
}


/* ============================================================
   HISTORY
   ============================================================ */

.rw-history {

    margin-top: 20px;
}


.rw-section-heading {

    margin-bottom: 18px;
}


.rw-section-heading h2 {

    margin: 0;

    color: var(--rw-white);

    font-size: 25px;

    font-weight: 850;
}


.rw-history-table-wrap {

    overflow-x: auto;

    border-radius: var(--rw-radius);

    border: 1px solid var(--rw-border);

    background: var(--rw-card);
}


.rw-history-table {

    width: 100%;

    border-collapse: collapse;

    min-width: 600px;
}


.rw-history-table th {

    padding: 14px 18px;

    color: var(--rw-muted);

    background: rgba(255, 255, 255, 0.025);

    border-bottom: 1px solid var(--rw-border);

    font-size: 11px;

    font-weight: 700;

    text-align: left;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


.rw-history-table td {

    padding: 15px 18px;

    color: var(--rw-text);

    border-bottom: 1px solid var(--rw-border);

    font-size: 13px;
}


.rw-history-table tbody tr:last-child td {

    border-bottom: 0;
}


.rw-history-table tbody tr {

    transition: background 0.2s ease;
}


.rw-history-table tbody tr:hover {

    background: rgba(255, 255, 255, 0.02);
}


.rw-history-prize {

    color: var(--rw-purple-light);

    font-weight: 700;
}


.rw-rollover {

    color: var(--rw-muted);

    font-style: normal;
}


/* ============================================================
   PAUSED STATE
   ============================================================ */

.rw-paused {

    padding: 70px 25px;

    text-align: center;

    border-radius: var(--rw-radius-lg);

    background: var(--rw-card);

    border: 1px solid var(--rw-border);
}


.rw-paused-icon {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;

    margin: 0 auto 18px;

    border-radius: 16px;

    background: rgba(139, 92, 246, 0.08);

    color: var(--rw-purple-light);

    font-size: 24px;
}


.rw-paused h2 {

    margin: 0 0 8px;

    color: var(--rw-white);

    font-size: 24px;

    font-weight: 800;
}


.rw-paused p {

    max-width: 500px;

    margin: 0 auto;

    color: var(--rw-muted);

    font-size: 14px;

    line-height: 1.6;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {

    .rw-hero-content {

        grid-template-columns: 1fr;

        gap: 30px;

        padding: 35px;
    }

    .rw-prize {

        min-height: 180px;
    }

}


@media (max-width: 700px) {

    .rw-hero-content {

        padding: 28px 22px;
    }

    .rw-stats {

        grid-template-columns: 1fr;
    }

    .rw-entry-header {

        align-items: flex-start;

        flex-direction: column;
    }

    .rw-balance {

        align-items: flex-start;

        width: 100%;

        padding-left: 0;
        padding-top: 15px;

        border-left: 0;

        border-top: 1px solid var(--rw-border);
    }

    .rw-login-card {

        align-items: flex-start;

        flex-wrap: wrap;
    }

    .rw-login-actions {

        width: 100%;

        margin-left: 0;
    }

    .rw-login-actions a {

        flex: 1;
    }

}


@media (max-width: 550px) {

    .rw-title {

        font-size: 32px;
    }

    .rw-countdown {

        width: 100%;
    }

    .rw-time {

        flex: 1;

        min-width: 0;
    }

    .rw-entry-controls {

        grid-template-columns: 1fr;
    }

    .rw-entry-card {

        padding: 22px 18px;
    }

    .rw-disclaimer {

        padding: 15px;
    }

}


@media (max-width: 400px) {

    .rw-time strong {

        font-size: 17px;
    }

    .rw-time span {

        font-size: 8px;
    }

    .rw-prize-value strong {

        font-size: 40px;
    }

}