/* Live Offers — theme-matched (uses site --primary-color / --secondary-color) */

.lo-page {
    --lo-primary: var(--primary-color, #5f259f);
    --lo-secondary: var(--secondary-color, #e5a60b);
    --lo-primary-soft: color-mix(in srgb, var(--lo-primary) 12%, #fff);
    --lo-ink: #1f1633;
    --lo-muted: #6b6280;
    --lo-white: #fff;
    --lo-row: #f4effb;
    --lo-row-alt: #ebe3f7;
    --lo-radius: 14px;
    padding: 28px 0 48px;
    background:
        radial-gradient(ellipse 70% 45% at 0% 0%, color-mix(in srgb, var(--lo-primary) 14%, transparent), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 0%, color-mix(in srgb, var(--lo-secondary) 16%, transparent), transparent 50%),
        #faf8fc;
}

.lo-intro {
    text-align: center;
    max-width: 740px;
    margin: 0 auto 26px;
}

.lo-intro__eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    background: var(--lo-primary);
    border-radius: 999px;
}

.lo-intro__title {
    margin: 0 0 10px;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    color: var(--lo-primary);
    line-height: 1.25;
}

.lo-intro__text {
    margin: 0 auto 16px;
    color: var(--lo-muted);
    font-size: 0.96rem;
    line-height: 1.55;
}

.lo-intro__text strong {
    color: var(--lo-primary);
}

.lo-intro__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.lo-intro__chips span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lo-primary);
    background: var(--lo-primary-soft);
    border: 1px solid color-mix(in srgb, var(--lo-primary) 22%, transparent);
    border-radius: 999px;
}

.lo-intro__chips i {
    color: var(--lo-secondary);
}

.lo-empty {
    text-align: center;
    padding: 48px 20px;
    background: var(--lo-white);
    border-radius: var(--lo-radius);
    border: 1px solid color-mix(in srgb, var(--lo-primary) 12%, transparent);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--lo-primary) 8%, transparent);
}

.lo-empty i {
    font-size: 2.4rem;
    color: var(--lo-secondary);
    margin-bottom: 12px;
}

.lo-empty h3 {
    margin: 0 0 6px;
    color: var(--lo-ink);
}

.lo-empty p {
    margin: 0;
    color: var(--lo-muted);
}

/* Tabs */
.lo-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    max-width: 720px;
    margin: 0 auto 18px;
}

.lo-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 14px 16px;
    border: 2px solid color-mix(in srgb, var(--lo-primary) 14%, transparent);
    border-radius: var(--lo-radius);
    background: var(--lo-white);
    color: var(--lo-ink);
    cursor: pointer;
    text-align: left;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--lo-primary) 6%, transparent);
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.lo-tab i {
    color: var(--lo-primary);
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.lo-tab span {
    font-weight: 800;
    font-size: 0.98rem;
}

.lo-tab small {
    color: var(--lo-muted);
    font-size: 12px;
}

.lo-tab.is-active {
    border-color: var(--lo-secondary);
    background: linear-gradient(160deg, color-mix(in srgb, var(--lo-secondary) 18%, #fff), #fff);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--lo-secondary) 28%, transparent);
    transform: translateY(-1px);
}

.lo-tab.is-active i {
    color: var(--lo-secondary);
}

.lo-panel {
    display: none;
}

.lo-panel.is-active {
    display: block;
}

.lo-how {
    margin: 0 0 14px;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--lo-primary);
    color: #f6f0ff;
    font-size: 0.92rem;
    line-height: 1.45;
}

.lo-how strong,
.lo-how em {
    color: var(--lo-secondary);
    font-style: normal;
}

/* Table */
.lo-table-wrap {
    overflow-x: auto;
    border-radius: var(--lo-radius);
    box-shadow: 0 10px 32px color-mix(in srgb, var(--lo-primary) 18%, transparent);
    background: var(--lo-primary);
    padding: 3px;
}

.lo-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
    margin: 0;
}

.lo-table thead th {
    background: var(--lo-primary) !important;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 14px 12px;
    text-align: center;
    border: none;
    white-space: nowrap;
}

.lo-table thead th:first-child {
    border-radius: 11px 0 0 0;
}

.lo-table thead th:last-child {
    border-radius: 0 11px 0 0;
}

.lo-table tbody td {
    background: var(--lo-row);
    color: var(--lo-ink);
    font-weight: 700;
    font-size: 0.93rem;
    padding: 12px;
    text-align: center;
    border-bottom: 2px solid color-mix(in srgb, var(--lo-primary) 12%, transparent);
    vertical-align: middle;
}

.lo-table tbody tr:nth-child(even) td {
    background: var(--lo-row-alt);
}

.lo-table tbody tr:last-child td {
    border-bottom: none;
}

.lo-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 11px;
}

.lo-table tbody tr:last-child td:last-child {
    border-radius: 0 0 11px 0;
}

.lo-level {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 8px;
    background: var(--lo-primary);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 800;
}

.lo-buy {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--lo-primary) 10%, #fff);
    color: var(--lo-primary);
    font-size: 0.8rem;
    font-weight: 700;
}

/* Prize stack — wallet + gift */
.lo-prize-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.lo-chip {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 8px;
    padding: 7px 10px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.9rem;
    max-width: 100%;
}

.lo-chip i {
    font-size: 0.85rem;
}

.lo-chip em {
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.85;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.lo-chip--cash {
    background: #e8f7ef;
    color: #0b6b38;
    border: 1px solid #b7e4c7;
}

.lo-chip--cash i {
    color: #0b6b38;
}

.lo-chip--gift {
    background: color-mix(in srgb, var(--lo-primary) 12%, #fff);
    color: var(--lo-primary);
    border: 1px solid color-mix(in srgb, var(--lo-primary) 28%, transparent);
}

.lo-chip__thumb {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid color-mix(in srgb, var(--lo-primary) 25%, transparent);
}

.lo-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 2px;
    padding: 4px 10px;
    border: none;
    border-radius: 999px;
    background: var(--lo-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    line-height: 1.2;
    transition: background 0.15s, transform 0.15s;
}

.lo-view-btn:hover {
    background: color-mix(in srgb, var(--lo-primary) 85%, #000);
    transform: scale(1.03);
}

.lo-both-note {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--lo-muted);
}

/* Mobile cards */
.lo-cards {
    display: none;
    gap: 12px;
    margin-top: 4px;
}

.lo-card {
    background: var(--lo-white);
    border-radius: var(--lo-radius);
    padding: 14px;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--lo-primary) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--lo-primary) 12%, transparent);
}

.lo-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.lo-card__period {
    font-size: 13px;
    font-weight: 700;
    color: var(--lo-muted);
}

.lo-card__prize {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--lo-secondary) 16%, #fff),
        color-mix(in srgb, var(--lo-primary) 10%, #fff)
    );
}

.lo-card__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.lo-card__meta li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding: 8px 10px;
    background: var(--lo-primary-soft);
    border-radius: 8px;
}

.lo-card__meta span {
    color: var(--lo-muted);
    font-weight: 600;
}

.lo-card__meta b {
    color: var(--lo-ink);
}

.lo-cta {
    margin: 18px 0 8px;
    text-align: center;
}

.lo-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--lo-primary);
    color: #fff !important;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--lo-primary) 35%, transparent);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.lo-btn:hover {
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--lo-primary) 88%, #000);
    color: var(--lo-secondary) !important;
}

.lo-notes {
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: var(--lo-radius);
    background: var(--lo-primary);
    color: #f3e9ff;
}

.lo-notes h3 {
    margin: 0 0 10px;
    color: var(--lo-secondary);
    font-size: 1.05rem;
}

.lo-notes ul {
    margin: 0;
    padding: 0 0 0 18px;
}

.lo-notes li {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 0.92rem;
}

.lo-notes li:last-child {
    margin-bottom: 0;
}

.lo-notes strong {
    color: var(--lo-secondary);
}

/* Gift lightbox */
.lo-modal[hidden] {
    display: none !important;
}

.lo-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.lo-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 10, 40, 0.72);
    cursor: pointer;
}

.lo-modal__box {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    padding: 20px 18px 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    border-top: 4px solid var(--lo-secondary);
}

.lo-modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: none;
    background: var(--lo-primary-soft);
    color: var(--lo-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    font-weight: 700;
}

.lo-modal__title {
    margin: 0 28px 14px 0;
    color: var(--lo-primary);
    font-size: 1.15rem;
    font-weight: 800;
}

.lo-modal__body {
    text-align: center;
    background: var(--lo-primary-soft);
    border-radius: 12px;
    padding: 12px;
}

.lo-modal__body img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 10px;
    object-fit: contain;
}

body.lo-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .lo-page {
        padding: 18px 0 36px;
    }

    .lo-table-wrap {
        display: none;
    }

    .lo-cards {
        display: grid;
    }

    .lo-how {
        font-size: 0.86rem;
    }

    .lo-tabs {
        max-width: none;
    }

    .lo-chip {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (min-width: 768px) {
    .lo-cards {
        display: none !important;
    }
}

/* Fallback if color-mix unsupported */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
    .lo-page {
        --lo-primary-soft: #f3eef9;
        background: #faf8fc;
    }

    .lo-intro__chips span,
    .lo-tab {
        border-color: #d9ccec;
    }

    .lo-table tbody td {
        background: #f4effb;
        border-bottom-color: #d9ccec;
    }

    .lo-table tbody tr:nth-child(even) td {
        background: #ebe3f7;
    }

    .lo-chip--gift {
        background: #f3eef9;
        border-color: #c9b4e3;
    }

    .lo-btn {
        box-shadow: 0 8px 20px rgba(95, 37, 159, 0.3);
    }
}
