/* Loyalty points + lucky wheel — scoped to .loyalty-page */
.loyalty-page {
    background: var(--color-background);
    min-height: 100%;
    margin: 0;
    padding-bottom: 24px;
    overflow-x: hidden;
}

.loyalty-hero {
    margin: 12px;
    padding: 22px 16px 18px;
    background: linear-gradient(180deg, #2b6bed 0%, #1e4ed8 100%);
    color: #fff;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-card);
}

.loyalty-hero__kicker {
    margin: 0;
    font-size: var(--font-size-sm);
    opacity: 0.85;
}

.loyalty-hero__pts {
    margin: 6px 0 0;
    font-size: 40px;
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
}

.loyalty-hero__unit {
    margin: 0 0 8px;
    font-size: var(--font-size-sm);
    opacity: 0.85;
}

.loyalty-hero__miles {
    margin: 0;
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

.loyalty-checkin {
    margin: 0 12px 12px;
}

.loyalty-checkin__btn,
.lw-center,
.lw-modal__ok {
    width: 100%;
    min-height: var(--button-height);
    border: 0;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: #fff;
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
}

.loyalty-checkin__btn:disabled,
.lw-center:disabled {
    opacity: 0.55;
}

.loyalty-wheel-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 12px 12px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, #f97316 0%, #ef4444 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.28);
}

.loyalty-wheel-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.loyalty-wheel-card__icon svg {
    width: 24px;
    height: 24px;
}

.loyalty-wheel-card__copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.loyalty-wheel-card__go {
    font-size: 22px;
}

.loyalty-card {
    margin: 0 12px 12px;
    padding: 14px 12px 16px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.loyalty-card__title {
    margin: 0 0 10px;
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
}

.loyalty-ledger {
    list-style: none;
    margin: 0;
    padding: 0;
}

.loyalty-ledger__item {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
}

.loyalty-ledger__item:last-child {
    border-bottom: 0;
}

.loyalty-ledger__item .is-plus {
    color: var(--color-success);
}

.loyalty-ledger__item .is-minus {
    color: var(--color-danger);
}

.loyalty-empty {
    margin: 0;
    padding: 16px 0;
    text-align: center;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    list-style: none;
}

.lw-balance {
    margin: 12px 12px 4px;
    text-align: center;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.lw-stage {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 8px auto 12px;
}

.lw-pointer {
    position: absolute;
    top: -2px;
    left: 50%;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 16px solid #ef4444;
    transform: translateX(-50%);
}

.lw-disc {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 8px solid #fff;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.12, 0.75, 0.2, 1);
}

.lw-label {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 92px;
    margin-left: -46px;
    text-align: center;
    color: #fff;
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.35);
    transform: rotate(calc(var(--i) * 360deg / var(--n) + 180deg / var(--n))) translateY(-108px);
}

.lw-center {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    width: 72px;
    min-height: 72px;
    margin: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
}

.lw-cost {
    margin: 0 12px 4px;
    text-align: center;
    font-weight: var(--font-weight-semibold);
}

.lw-status {
    min-height: 20px;
    margin: 0 12px 12px;
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.lw-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    font-size: var(--font-size-sm);
}

.lw-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lw-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.lw-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-overlay);
    padding: 20px;
}

.lw-modal[hidden] {
    display: none;
}

.lw-modal__card {
    width: 100%;
    max-width: 320px;
    padding: 20px 16px 16px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    text-align: center;
}

.lw-modal__title {
    margin: 0 0 8px;
    font-weight: var(--font-weight-semibold);
}

.lw-modal__body {
    margin: 0 0 16px;
    font-size: var(--font-size-md);
}
